Introduction to Bayesian Methods from a Cognitive Perspective
Tejas D Kulkarni (tejask@mit.edu) MIT 9.S915
Sunday, September 21, 14
Introduction to Bayesian Methods from a Cognitive Perspective Tejas - - PowerPoint PPT Presentation
Introduction to Bayesian Methods from a Cognitive Perspective Tejas D Kulkarni (tejask@mit.edu) MIT 9.S915 Sunday, September 21, 14 Everyday Inductive Leaps How do we learn so much from so little data? Properties of natural kinds
Sunday, September 21, 14
Sunday, September 21, 14
tufa tufa tufa
Sunday, September 21, 14
Sunday, September 21, 14
i P(D|H = hi)P(H = hi)
Sunday, September 21, 14
Sunday, September 21, 14
Sunday, September 21, 14
Sunday, September 21, 14
Light Nose Eyes
Outline Mouth
Nose Eyes
Outline Mouth
Shading Simulator
Image
Affine P(S, T, L, A|I) ∝ P(I|S, T, L, A)P(L)P(S)P(T)P(A) ∝ N(I − O; 0, 0.1)P(L)P(A) Y
i
P(Si)P(Ti)
Sunday, September 21, 14
Light Nose Eyes
Outline Mouth
Nose Eyes
Outline Mouth
Shading Simulator Image
Affine
Sunday, September 21, 14
Light Nose Eyes
Outline Mouth
Nose Eyes
Outline Mouth
Shading Simulator Image
Affine
Sunday, September 21, 14
Light Nose Eyes
Outline Mouth
Nose Eyes
Outline Mouth
Shading Simulator Image
Affine
Sunday, September 21, 14
Light Nose Eyes
Outline Mouth
Nose Eyes
Outline Mouth
Shading Simulator Image
Affine
Sunday, September 21, 14
Light Nose Eyes Outline Mouth Nose Eyes Outline Mouth
Shape Texture
Shading Simulator Image
Affine
? ?
? ?
Sunday, September 21, 14
Light Nose Eyes Outline Mouth Nose Eyes Outline Mouth
Shape Texture
Shading Simulator Image
Affine
Sunday, September 21, 14
Light Nose Eyes Outline Mouth Nose Eyes Outline Mouth
Shape Texture
Shading Simulator Image
Affine
Sunday, September 21, 14
Light Nose Eyes Outline Mouth Nose Eyes Outline Mouth
Shape Texture
Shading Simulator Image
Affine
Sunday, September 21, 14
Aldrian et. al., Inverse Rendering with a Morphable Model: A Multilinear Approach, ECCV 2011
Sunday, September 21, 14
Sunday, September 21, 14
P(ttotal|t) ∝ p(t|ttotal)p(ttotal)
t
ttotal
p(t|ttotal) = 1/ttotal
ttotal
t
: eg. total amount of time man/woman will live : eg. indicates his or her current age
Sunday, September 21, 14
Sunday, September 21, 14
Sunday, September 21, 14
p(ttotal) ∝ 1/ttotal
Sunday, September 21, 14
Ref: http://web.mit.edu/cocosci/Papers/Griffiths-Tenenbaum-PsychSci06.pdf
Sunday, September 21, 14
Sunday, September 21, 14
Joint: Space required to represent probability table: O(2N)
P(C, S, R, W) = P(C)P(S|C)P(R|C, S)P(W|C, S, R)
Sunday, September 21, 14
Joint (conditional ind): Space required to represent probability table (K is max fan-in of a node):
P(C, S, R, W) = P(C)P(S|C)P(R|C)P(W|S, R)
O(N2K)
Sunday, September 21, 14
P(S = 1|W = 1) = P(S = 1, W = 1) P(W = 1) = X
c,r
P(C = c, S = 1, R = r, W = 1) P(W = 1) = 0.2781/0.6471 P(R = 1|W = 1) = P(R = 1, W = 1) P(W = 1) = X
c,s
P(C = c, S = s, R = 1, W = 1) P(W = 1) = 0.4581/0.6471
P(W = 1) = X
c,r,s
P(C = c, S = s, R = r, W = 1) = 0.6471
Sunday, September 21, 14
P(S = 1|W = 1, R = 1) = 0.19
P(S = 1|W = 1) = P(S = 1, W = 1) P(W = 1) = X
c,r
P(C = c, S = 1, R = r, W = 1) P(W = 1) = 0.2781/0.6471
0.42
Sunday, September 21, 14
Sunday, September 21, 14
Sunday, September 21, 14
Light Nose Eyes Outline Mouth Nose Eyes Outline Mouth
Shape Texture
Shading Simulator Image
Affine
SNose ∼ randn(50) TNose ∼ randn(50)
SMouth ∼ randn(50) TMouth ∼ randn(50)
P(I|S, T) ∝ Normal(O − R; 0, σ0)
Sunday, September 21, 14
SNose ∼ randn(50) TNose ∼ randn(50)
SMouth ∼ randn(50) TMouth ∼ randn(50)
P(I|S, T) ∝ Normal(O − R; 0, σ0)
Repeat until convergence:
(1) Let x be either Si or Ti
We sample new x0 ∼ randn(50)
(2) r = p(x0)q(x|x0) p(x)q(x0|x)
(3) Accept x’ with probability: α = min{1, r} Otherwise, x’= x
Sunday, September 21, 14
Kemp et. al., The discovery of structural form, PNAS 2008
Sunday, September 21, 14
Kemp et. al., The discovery of structural form, PNAS 2008
Sunday, September 21, 14
Kemp et. al., The discovery of structural form, PNAS 2008
Sunday, September 21, 14
Ref: http://mlg.eng.cam.ac.uk/zoubin/talks/uai05tutorial-b.pdf
Sunday, September 21, 14
Ref: http://mlg.eng.cam.ac.uk/zoubin/talks/uai05tutorial-b.pdf
Sunday, September 21, 14
Ref: Slide idea from Noah Goodman’s PLOT presentation
0.125 0.25 0.375 0.5 1 2 3
P(n) = ✓3 n ◆ 0.3n0.73−n
Probabilistic Program (assume a (flip 0.3)) (assume b (flip 0.3)) (assume c (flip 0.3)) (+ a b c) Execution: (a=1, b=0, c=0),(a=0,b=0, c=0), (a=1,b=0, c=1), ... Theorem: Any computable distribution can be represented by a Church expression (Freer & Roy, 2012)
Sunday, September 21, 14
Sunday, September 21, 14
ASSUME road_width (uniform_discrete 5 8) //arbitrary units ASSUME road_height (uniform_discrete 70 150) ASSUME lane_pos_x (uniform_continuous -1.0 1.0) //uncentered renderer ASSUME lane_pos_y (uniform_continuous -5.0 0.0) //coordinate system ASSUME lane_pos_z (uniform_continuous 1.0 3.5) ASSUME lane_size (uniform_continuous 0.10 0.35) ASSUME eps (gamma 1 1) ASSUME theta_left (list 0.13 ... 0.03) ASSUME theta_right (list 0.03 ... 0.02) ASSUME theta_road (list 0.05 ... 0.07) ASSUME theta_lane (list 0.01 ... 0.21) ASSUME surfaces (render_surfaces lane_pos_x lane_pos_y lane_pos_z road_width road_height lane_size) ASSUME data (load_image "frame201.png") OBSERVE (incorporate_stochastic_likelihood theta_left theta_right theta_road theta_lane data surfaces eps) True
Sunday, September 21, 14
Method Accuracy Aly et al [1] 68.31% GPGP (Best Single Appearance) 64.56% GPGP (Maximum Likelihood over Multiple Appearances) 74.60%
Sunday, September 21, 14
Assumptions violated: broad posterior Assumptions satisfied: narrower posterior
Sunday, September 21, 14
Sunday, September 21, 14
Learning and Inference “
Sunday, September 21, 14