Applied Bayesian Nonparametrics 5. Spatial Models via Gaussian - - PowerPoint PPT Presentation

applied bayesian nonparametrics 5 spatial models via
SMART_READER_LITE
LIVE PREVIEW

Applied Bayesian Nonparametrics 5. Spatial Models via Gaussian - - PowerPoint PPT Presentation

Applied Bayesian Nonparametrics 5. Spatial Models via Gaussian Processes, not MRFs Tutorial at CVPR 2012 Erik Sudderth Brown University NIPS 2008: E. Sudderth & M. Jordan, Shared Segmentation of Natural Scenes using Dependent Pitman-Yor


slide-1
SLIDE 1

Applied Bayesian Nonparametrics

  • 5. Spatial Models via Gaussian

Processes, not MRFs

Tutorial at CVPR 2012 Erik Sudderth

Brown University

NIPS 2008: E. Sudderth & M. Jordan, Shared Segmentation

  • f Natural Scenes using Dependent Pitman-Yor Processes.

CVPR 2012: S. Ghosh & E. Sudderth, Nonparametric Learning for Layered Segmentation of Natural Images.

slide-2
SLIDE 2

Human Image Segmentation

slide-3
SLIDE 3

BNP Image Segmentation

  • ! How many regions does this image contain?
  • ! What are the sizes of these regions?

Segmentation as Partitioning

  • ! Huge variability in segmentations across images
  • ! Want multiple interpretations, ranked by probability

Why Bayesian Nonparametrics?

slide-4
SLIDE 4

BNP Image Segmentation

Inference !! Stochastic search & expectation propagation Model !! Dependent Pitman-Yor processes !! Spatial coupling via Gaussian processes Results !! Multiple segmentations of natural images cesses Learning !! Conditional covariance calibration

slide-5
SLIDE 5

Feature Extraction

  • ! Partition image into ~1,000 superpixels
  • ! Compute texture and color features:

Texton Histograms (VQ 13-channel filter bank) Hue-Saturation-Value (HSV) Color Histograms

  • ! Around 100 bins for each histogram
slide-6
SLIDE 6

Pitman-Yor Mixture Model

Observed features (color & texture) Assign features to segments PY segment size prior Visual segment appearance model Color: Texture:

π z1 z2 z3 z4 x1 x2 x3 x4

xc

i ∼ Mult(θc zi)

xs

i ∼ Mult(θs zi)

zi ∼ Mult(π)

πk = vk

k−1

  • ℓ=1

(1 − vℓ) vk ∼ Beta(1 − a, b + ka)

slide-7
SLIDE 7

Dependent DP&PY Mixtures

Observed features (color & texture) Visual segment appearance model Color: Texture:

z1 z2 z3 z4 x1 x2 x3 x4

xc

i ∼ Mult(θc zi)

xs

i ∼ Mult(θs zi)

π1 π2 π3 π4

Assign features to segments

zi ∼ Mult(πi)

Some dependent prior with DP/PY “like” marginals Kernel/logistic/probit stick-breaking process,

  • rder-based DDP,

!

slide-8
SLIDE 8

Example: Logistic of Gaussians

  • ! Pass set of Gaussian processes through softmax to get

probabilities of independent segment assignments

  • ! Nonparametric analogs have similar properties

Figueiredo et. al., 2005, 2007 Fernandez & Green, 2002 Woolrich & Behrens, 2006 Blei & Lafferty, 2006

slide-9
SLIDE 9

Discrete Markov Random Fields

Ising and Potts Models

  • ! Interactive foreground segmentation
  • ! Supervised training for known categories

Previous Applications

!but learning is challenging, and little success at unsupervised segmentation.

GrabCut: Rother, Kolmogorov, & Blake 2004 Verbeek & Triggs, 2007

slide-10
SLIDE 10

Region Classification with Markov Field Aspect Models

Local: 74% MRF: 78% Verbeek & Triggs, CVPR 2007

slide-11
SLIDE 11

10-State Potts Samples

States sorted by size: largest in blue, smallest in red

slide-12
SLIDE 12

number of edges on which states take same value

1996 IEEE DSP Workshop

edge strength

Even within the phase transition region, samples lack the size distribution and spatial coherence of real image segments

natural images giant cluster very noisy

slide-13
SLIDE 13

Geman & Geman, 1984

200 Iterations

128 x128 grid 8 nearest neighbor edges K = 5 states Potts potentials:

10,000 Iterations

slide-14
SLIDE 14

Product of Potts and DP?

Orbanz & Buhmann 2006 Potts Potentials DP Bias:

slide-15
SLIDE 15

Spatially Dependent Pitman-Yor

  • ! Cut random surfaces

(samples from a GP) with thresholds

(as in Level Set Methods)

  • ! Assign each pixel to

the first surface which exceeds threshold

(as in Layered Models)

Duan, Guindani, & Gelfand, Generalized Spatial DP, 2007

π z1 z2 z3 z4 x1 x2 x3 x4

slide-16
SLIDE 16

Spatially Dependent Pitman-Yor

  • ! Cut random surfaces

(samples from a GP) with thresholds

(as in Level Set Methods)

  • ! Assign each pixel to

the first surface which exceeds threshold

(as in Layered Models)

Duan, Guindani, & Gelfand, Generalized Spatial DP, 2007

slide-17
SLIDE 17

Spatially Dependent Pitman-Yor

  • ! Cut random surfaces

(samples from a GP) with thresholds

(as in Level Set Methods)

  • ! Assign each pixel to

the first surface which exceeds threshold

(as in Layered Models)

  • ! Retains Pitman-Yor

marginals while jointly modeling rich spatial dependencies

(as in Copula Models)

slide-18
SLIDE 18

Stick-Breaking Revisited

1 Multinomial Sampler: Sequential Binary Sampler:

slide-19
SLIDE 19

PY Gaussian Thresholds

Sequential Binary Sampler: Gaussian Sampler:

Normal CDF because

slide-20
SLIDE 20

PY Gaussian Thresholds

Sequential Binary Sampler: Gaussian Sampler:

slide-21
SLIDE 21

Spatially Dependent Pitman-Yor

Non-Markov Gaussian Processes: PY prior: Segment size Feature Assignments

Normal CDF

slide-22
SLIDE 22

Preservation of PY Marginals Preserva

Why Ordered Layer Assignments? Stick Size Prior Random Thresholds

slide-23
SLIDE 23

Samples from PY Spatial Prior

Comparison: Potts Markov Random Field

slide-24
SLIDE 24

Outline

Inference !! Stochastic search & expectation propagation Model !! Dependent Pitman-Yor processes !! Spatial coupling via Gaussian processes Results !! Multiple segmentations of natural images cesses Learning !! Conditional covariance calibration

slide-25
SLIDE 25

Mean Field for Dependent PY

K K

Factorized Gaussian Posteriors Sufficient Statistics

Allows closed form update of via

slide-26
SLIDE 26

Mean Field for Dependent PY

K K

Updating Layered Partitions

Evaluation of beta normalization constants:

Jointly optimize each layer’s threshold and Gaussian assignment surface, fixing all other layers, via backtracking conjugate gradient with line search

Reducing Local Optima

Place factorized posterior on eigenfunctions

  • f Gaussian process, not single features
slide-27
SLIDE 27

Robustness and Initialization

Log-likelihood bounds versus iteration, for many random initializations of mean field variational inference on a single image.

slide-28
SLIDE 28

Alternative: Inference by Search

Consider hard assignments of superpixels to layers (partitions) Integrate likelihood parameters analytically (conjugacy) Marginalize layer support functions via expectation propagation (EP): approximate but very accurate

No need for a finite, conservative model truncation!

slide-29
SLIDE 29

Maximization Expectation

EM Algorithm !! E-step: Marginalize latent variables (approximate) ! M-step: Maximize likelihood bound given model parameters ME Algorithm !! M-step: Maximize likelihood given latent assignments ! E-step: Marginalize random parameters (exact)

Kurihara & Welling, 2009

Why Maximization-Expectation? !! Parameter marginalization allows Bayesian “model selection” !! Hard assignments allow efficient algorithms, data structures !! Hard assignments consistent with clustering objectives !! No need for finite truncation of nonparametric models

slide-30
SLIDE 30

Discrete Search Moves

!! Merge: Combine a pair of regions into a single region !! Split: Break a single region into a pair of regions (for diversity, a few proposals) !! Shift: Sequentially move single superpixels to the most probable region !! Permute: Swap the position

  • f two layers in the order

Stochastic proposals, accepted if and only if they improve our EP estimate of marginal likelihood: Marginalization of continuous variables simplifies these moves!

slide-31
SLIDE 31

Inferring Ordered Layers

Order A: Front, Middle, Back Order B: Front, Middle, Back

!! Which is preferred by a diagonal covariance? !! Which is preferred by a spatial covariance? Order B Order A

slide-32
SLIDE 32

Inference Across Initializations

Mean Field Variational EP Stochastic Search Best Worst Best Worst

slide-33
SLIDE 33

BSDS: Spatial PY Inference

Spatial PY (EP) Spatial PY (MF)

slide-34
SLIDE 34

Outline

Inference !! Stochastic search & expectation propagation Model !! Dependent Pitman-Yor processes !! Spatial coupling via Gaussian processes Results !! Multiple segmentations of natural images cesses Learning !! Conditional covariance calibration

slide-35
SLIDE 35

Covariance Kernels

  • ! Thresholds determine segment size: Pitman-Yor
  • ! Covariance determines segment shape:

Roughly Independent Image Cues:

Berkeley Pb (probability of boundary) detector

probability that features at locations are in the same segment

!! Color and texture histograms within each region: Model generatively via multinomial likelihood (Dirichlet prior) ! Pixel locations and intervening contour cues: Model conditionally via GP covariance function

slide-36
SLIDE 36

Learning from Human Segments

!! Data unavailable to learn models of all the categories we’re interested in: We want to discover new categories! ! Use logistic regression, and basis expansion of image cues, to learn binary “are we in the same segment” predictors:

!! Generative: Distance only !! Conditional: Distance, intervening contours, !

slide-37
SLIDE 37

From Probability to Correlation

There is an injective mapping between covariance and the probability that two superpixels are in the same segment.

slide-38
SLIDE 38

Low-Rank Covariance Projection

!! The pseudo-covariance constructed by considering each superpixel pair independently may not be positive definite !! Projected gradient method finds low rank (factor analysis), unit diagonal covariance close to target estimates

slide-39
SLIDE 39

Prediction of Test Partitions

Heuristic versus Learned Image Partition Probabilities Learned Probability versus Rand index measure

  • f partition overlap
slide-40
SLIDE 40

Comparing Spatial PY Models

Image PY Learned PY Heuristic

slide-41
SLIDE 41

Outline

Inference !! Stochastic search & expectation propagation Model !! Dependent Pitman-Yor processes !! Spatial coupling via Gaussian processes Results !! Multiple segmentations of natural images cesses Learning !! Conditional covariance calibration

slide-42
SLIDE 42

Other Segmentation Methods

FH Graph Mean Shift NCuts gPb+UCM Spatial PY

slide-43
SLIDE 43

Quantitative Comparisons

Berkeley Segmentation LabelMe Scenes !! On BSDS, similar or better than all methods except gPb ! On LabelMe, performance of Spatial PY is better than gPb !! Implementation efficiency and search run-time !! Histogram likelihoods discard too much information !! Most probable segmentation does not minimize Bayes risk Room for Improvement:

slide-44
SLIDE 44

Multiple Spatial PY Modes

Most Probable

slide-45
SLIDE 45

Multiple Spatial PY Modes

Most Probable

slide-46
SLIDE 46

Spatial PY Segmentations

slide-47
SLIDE 47

Conclusions

!! efficient variational parsing of scenes into unknown numbers of segments !! empirically justified power law priors !! accurate learning of non-local spatial statistics of natural scenes !! promise in other application domains! Spatial Pitman-Yor Processes allow!

slide-48
SLIDE 48

Conclusions

!! Conventional MCMC & variational learning prone to local optima, hard to scale to large datasets. But better methods on the way! !! Literature remains fairly technical. But growing number of tutorials! !but bravery is required