Top Banner
Markov Random Fields & Conditional Random Fields John Winn MSR Cambridge
14

Markov Random Fields & Conditional Random Fields

Feb 01, 2016

Download

Documents

ismet

Markov Random Fields & Conditional Random Fields. John Winn MSR Cambridge. Road map. Markov Random Fields What they are Uses in vision/object recognition Advantages Difficulties Conditional Random Fields What they are Further difficulties.  12.  23. X 1. X 2. X 3.  234. X 4. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Markov Random Fields & Conditional Random Fields

Markov Random Fields & Conditional Random Fields

John WinnMSR Cambridge

Page 2: Markov Random Fields & Conditional Random Fields

Road map

Markov Random Fields What they are Uses in vision/object recognition Advantages Difficulties

Conditional Random Fields What they are Further difficulties

Page 3: Markov Random Fields & Conditional Random Fields

Markov Random Fields

c

cccZ XXP )|()|( )(1

X1 X212

X323

X4

234

X c

ccc XZ )|()(

Page 4: Markov Random Fields & Conditional Random Fields

Examples of use in vision Grid-shaped MRFs for pixel labelling e.g.

segmentation

MRFs (e.g. stars) over part positions for pictorial structures/constellation models.

Page 5: Markov Random Fields & Conditional Random Fields

Advantages Probabilistic model:

Captures uncertainty No ‘irreversible’ decisions Iterative reasoning Principled fusing of different cues

Undirected model Allows ‘non-causal’ relationships (soft constraints)

Efficient algorithms:inference now practical for MRFs with millions variables – can be applied to raw pixels.

Page 6: Markov Random Fields & Conditional Random Fields

Maximum Likelihood Learning

const.)||(KL

)(log)|log(

)|(log)...,(

1

)(

1

)()()1(

PP

ZX

XPXXJ

data

n

i cc

ic

n

i

in

)|(1

)( )|()|(

XPcc

n

i cc

i

k

XXJ

kk

Sufficient statisticsof data

Expected model sufficient statistics

Page 7: Markov Random Fields & Conditional Random Fields

Difficulty I: Inference

Exact inference intractable except in a few cases e.g. small models

Must resort to approximate methods Loopy belief propagation MCMC sampling Alpha expansion (MAP solution only)

Page 8: Markov Random Fields & Conditional Random Fields

Difficulty II: Learning

Gradient descent – vulnerable to local minima Slow – must perform expensive inference at each

iteration. Can stop inference early…

Contrastive divergence Piecewise training + variants

Need fast + accurate methods

Page 9: Markov Random Fields & Conditional Random Fields

Difficulty III: Large cliques For images, we want to look at patches not pairs of

pixels. Therefore would like to use large cliques. Cost of inference (memory and CPU) typically

exponential in clique size.

Example: Field of Experts, Black + Roth Training: contrastive divergence

over a week on a cluster of 50+ machines Test: Gibbs sampling

very slow?

Page 10: Markov Random Fields & Conditional Random Fields

Other MRF issues…

Local minima when performing inference in high-dimensional latent spaces

MRF models often require making inaccurate independence assumptions about the observations.

Page 11: Markov Random Fields & Conditional Random Fields

Conditional Random Fields

c

cccIZ IXIXP ),|(),|( ),(1

X1 X212

X323

X4

234

X c

ccc IXIZ ),|(),(

I

Lafferty et al., 2001

Page 12: Markov Random Fields & Conditional Random Fields

Examples of use in vision Grid-shaped CRFs for pixel labelling

(e.g. segmentation), using boosted classifiers.

Page 13: Markov Random Fields & Conditional Random Fields

Difficulty IV: CRF Learning

n

i

iinn IXPIIXXJ1

)()()()1()()1( ),|(log)...,...,(

),|(

)(

1

)()(

)(

),|(),|(

i

kk

IXPcc

in

i cc

ii

k

IXIXJ

Sufficient statisticsof labels given the image

Expected sufficient statistics given the image

Page 14: Markov Random Fields & Conditional Random Fields

Difficulty V: Scarcity of labels

CRF is a conditional model – needs labels. Labels are expensive + increasingly hard to

define. Labels are also inherently lower dimensional than

the data and hence support learning fewer parameters than generative models.