Self-applicable probabilistic inference without interpretive overhead
Oleg Kiselyov
FNMOC
- leg@pobox.com
Chung-chieh Shan
Rutgers University ccshan@rutgers.edu
Self-applicable probabilistic inference without interpretive - - PowerPoint PPT Presentation
Self-applicable probabilistic inference without interpretive overhead Oleg Kiselyov Chung-chieh Shan FNMOC Rutgers University oleg@pobox.com ccshan@rutgers.edu Tufts University 12 February 2010 Probabilistic inference Model (what)
FNMOC
Rutgers University ccshan@rutgers.edu
2/16
✾ ❂ ❀ Pr✭❘❡❛❧✐t② ❥ ❖❜s ❂ ♦❜s✮
2/16
✾ ❂ ❀ Pr✭❘❡❛❧✐t② ❥ ❖❜s ❂ ♦❜s✮
2/16
(BNT, PFP)
(BLOG, IBAL, Church)
2/16
(BNT, PFP)
(BLOG, IBAL, Church)
2/16
(BNT, PFP)
(BLOG, IBAL, Church)
2/16
(BNT, PFP)
(BLOG, IBAL, Church)
3/16
4/16
4/16
4/16
4/16
4/16
4/16
5/16
◮ Rich libraries: lists, arrays, database access, I/O, . . . ◮ Type inference ◮ Functions as first-class values ◮ Compiler ◮ Debugger ◮ Memoization
5/16
◮ Rich libraries: lists, arrays, database access, I/O, . . . ◮ Type inference ◮ Functions as first-class values ◮ Compiler ◮ Debugger ◮ Memoization
6/16
6/16
6/16
6/16
6/16
6/16
7/16
7/16
7/16
7/16
8/16
9/16
✳✽ ✳✷ ✳✸
✳✷ . . . ✳✻ . . . ✳✸ ✳✺ Exact inference by depth-first brute-force enumeration. Rejection sampling by top-down random traversal.
9/16
✳✽
✳✷ ✳✸
✳✷
✳✻
✳✸ ✳✺ Exact inference by depth-first brute-force enumeration. Rejection sampling by top-down random traversal.
9/16
✳✽
✳✷ ✳✸
✳✷
✳✻
✳✸ ✳✺ Exact inference by depth-first brute-force enumeration. Rejection sampling by top-down random traversal.
9/16
✳✽
✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺ Exact inference by depth-first brute-force enumeration. Rejection sampling by top-down random traversal.
9/16
✳✽ closed ✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺ Exact inference by depth-first brute-force enumeration. Rejection sampling by top-down random traversal.
9/16
✳✽ closed ✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺
◮ Brute-force enumeration becomes bucket elimination ◮ Sampling becomes particle filtering
9/16
✳✽ closed ✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺
(Giry 1982, Moggi 1990, Filinski 1994)
(Strachey & Wadsworth 1974, Felleisen et al. 1987, Danvy & Filinski 1989)
◮ Model runs inside a thread. ◮ dist clones the thread. ◮ fail kills the thread. ◮ Memoization mutates thread-local storage.
10/16
✳✽
✳✷ ✳✸
✳✷
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✶
10/16
✳✽
✳✷ ✳✸
✳✷
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✶
10/16
✳✽
✳✷ ✳✸
✳✷
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✶
10/16
✳✽
✳✷ ✳✸
✳✷
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✿✼✺
10/16
✳✽
✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✿✼✺
10/16
✳✽
✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✿✼✺
10/16
✳✽
✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✵
10/16
✳✽ closed ✳✷ ✳✸
✳✷ closed
✳✻
✳✸ ✳✺ Probability mass ♣❝ ❂ ✵
11/16
12/16
12/16
12/16
12/16
12/16
13/16
✺✵✪
✺✵✪ ✺✵✪
✺✵✪
✺✵✪ ✺✵✪
13/16
✺✵✪
✺✵✪ ✺✵✪
✺✵✪
✺✵✪ ✺✵✪
13/16
✺✵✪
✺✵✪ ✺✵✪
✺✵✪
✺✵✪ ✺✵✪
13/16
✺✵✪
✺✵✪ ✺✵✪
✺✵✪
✺✵✪ ✺✵✪
13/16
✺✵✪
✺✵✪ ✺✵✪
✺✵✪
✺✵✪ ✺✵✪
13/16
✺ ✵ ✪
✺✵✪
✺✵✪ ✺✵✪
✺✵✪
✺✵✪ ✺✵✪ ✺ ✵ ✪
14/16
(Pfeffer 2007)
14/16
(Pfeffer 2007)
14/16
(Pfeffer 2007)
14/16
(Pfeffer 2007)
14/16
(Pfeffer 2007)
14/16
(Pfeffer 2007)
14/16
(Pfeffer 2007)
5 10 15 20 25 30 35 40
Frequency in 100 trials ln Pr(D = 1 | S = 1) IBAL 90 seconds 30 seconds
15/16
(Milch et al. 2007)
15/16
(Milch et al. 2007)
15/16
(Milch et al. 2007)
15/16
(Milch et al. 2007)
16/16