Incorporating Domain Knowledge in Matching Problems via Harmonic - - PowerPoint PPT Presentation

incorporating domain knowledge in matching problems via
SMART_READER_LITE
LIVE PREVIEW

Incorporating Domain Knowledge in Matching Problems via Harmonic - - PowerPoint PPT Presentation

Motivation Learning QAPs Algebra of S n Algorithm Experiments Incorporating Domain Knowledge in Matching Problems via Harmonic Analysis Deepti Pachauri (joint work with Maxwell Collins, Risi Kondor, Vikas Singh) University of


slide-1
SLIDE 1

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Incorporating Domain Knowledge in Matching Problems via Harmonic Analysis

Deepti Pachauri (joint work with Maxwell Collins, Risi Kondor, Vikas Singh)

University of Wisconsin-Madison University of Chicago

International Conference on Machine Learning 2012

slide-2
SLIDE 2

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Matching Problems are Ubiquitous

Photo Tourism

slide-3
SLIDE 3

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Matching Problems are Ubiquitous

Shape Matching

slide-4
SLIDE 4

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Matching Problems are Ubiquitous

Shape Matching General Strategy Write the functional form of the matching problem and then use an appropriate optimization engine to find a solution.

slide-5
SLIDE 5

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Matching Problems are Ubiquitous

Shape Matching General Strategy Write the functional form of the matching problem and then use an appropriate optimization engine to find a solution. Use past knowledge to make future instances easier . . . ?

slide-6
SLIDE 6

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Overview Motivation Problem Setup Graph Matching and QAPs Why learn QAPs? Algebraic Structure of Sn and Harmonic Analysis Learning in Fourier Space Evaluations

slide-7
SLIDE 7

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

slide-8
SLIDE 8

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

G =       1 1 1 1 1 1 1 1       G′ =       1 1 1 1 1 1 1 1      

slide-9
SLIDE 9

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

G =       1 1 1 1 1 1 1 1       G′ =       1 1 1 1 1 1 1 1      

Solution of matching problem is a permutation matrix y

y =       1 1 1 1 1       σ := (51342) such that yGy⊤ = G′

slide-10
SLIDE 10

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Quadratic Assignment Problem (QAP)

y∗ = arg max

y

  • ii′

cii′yii′ +

  • ii′jj′

dii′jj′yii′yjj′

slide-11
SLIDE 11

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Quadratic Assignment Problem (QAP)

y∗ = arg max

y

  • ii′

cii′yii′ +

  • ii′jj′

dii′jj′yii′yjj′ Computationally expensive: n ≥ 40 infeasible in general.

slide-12
SLIDE 12

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Supervised Learning

Given Training data : ((x1, y1), ..., (xm, ym)) f ω(xi) ≈ yi (x1, y1) : f ω(x1) ≈ y1 (x2, y2) : f ω(x2) ≈ y2 (x3, y3) : f ω(x3) ≈ y3 and so on ....... . . . and we will solve arg max f ω(x3) cheaply.

slide-13
SLIDE 13

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning for QAPs?

Given Training data : ((x1, σ1), ..., (xm, σm)) arg max f ω(xi) ≈ σi (x1, σ1) : arg max f ω(x1) ≈ σ1 (x2, σ2) : arg max f ω(x2) ≈ σ2 (x3, σ3) : arg max f ω(x3) ≈ σ3 and so on .......

slide-14
SLIDE 14

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning for QAPs?

Given Training data : ((x1, σ1), ..., (xm, σm)) arg max f ω(xi) ≈ σi (x1, σ1) : arg max f ω(x1) ≈ σ1 (x2, σ2) : arg max f ω(x2) ≈ σ2 (x3, σ3) : arg max f ω(x3) ≈ σ3 and so on ....... . . . and we want to solve arg max f ω(xi) cheaply.

slide-15
SLIDE 15

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Inspired in part by

Caetano et al., PAMI 2009 Structure learning approach to find most violated constraints using linear assignment. Xu et al., JMLR 2009 Use disciminative learning to acquire a domain–specific heuristic for controlling beam–search. Stobbe et al., AISTATS 2012 Fourier space sparsity to recover a set function from very few samples.

slide-16
SLIDE 16

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Structure of σ ∈ Sn

Harmonic Analysis Fourier transform of a function f : R → C ˆ f(λ) =

  • x∈R

f(x)e2πixλ λ ∈ R,

slide-17
SLIDE 17

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Structure of σ ∈ Sn

Harmonic Analysis on Symmetric Groups Sn ˆ f(ρλ) =

  • σ∈Sn

f(σ)ρλ(σ) ρλ ∈ R λ is the integer partition of n, λ ⊢ n ρλ(σ) is the irreducible representation of Sn ρλ(σ) =   ρ1,1 · · ρ1,dλ · · · · ρdλ,1 · · ·  

slide-18
SLIDE 18

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Properties Sn

Convolution (f ∗ g)(σ) =

τ∈Sn f(στ −1) g(τ)

  • f ∗ g(λ) = ˆ

f(λ)ˆ g(λ) Correlation (f ⋆ g)(σ) =

τ∈Sn f(στ)g(τ)∗

  • f ⋆ g(λ) = ˆ

f(λ)ˆ g(λ)†

Sn−1 is a subgroup of Sn

slide-19
SLIDE 19

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Properties Sn

Convolution (f ∗ g)(σ) =

τ∈Sn f(στ −1) g(τ)

  • f ∗ g(λ) = ˆ

f(λ)ˆ g(λ) Correlation (f ⋆ g)(σ) =

τ∈Sn f(στ)g(τ)∗

  • f ⋆ g(λ) = ˆ

f(λ)ˆ g(λ)†

Sn−1 is a subgroup of Sn The set σSn−1 is called a left coset of σ Two left (right) cosets are either disjoint or the same

slide-20
SLIDE 20

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Coset Tree

Cosets provide a partition of Sn:

213 S3 312 S2 S2 S2 132 123 321 231

slide-21
SLIDE 21

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

f : Sn → C

Graph function of G fA(σ) = Aσ(n),σ(n−1) Properties: Sn−2-invariant function on adjacency matrix A (Kondor, 2010) Band-limited in Fourier domain (Rockmore, 2002) Under relabeling, fAπ = f π

A

slide-22
SLIDE 22

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Graph Matching Problem

Standard QAP: Given a pair of graphs

max

σ∈Sn f(σ) = n

  • i,j=1

Ai,jA′

σ(i),σ(j)

Graph Correlation: f(σ) = 1 (n − 2)!

  • π∈Sn

fA(σπ)fA′(π) (A, A′) could be weighted or unweighted adjacency matrices.

slide-23
SLIDE 23

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Graph Matching

Given: A training set of related graph pairs with D encodings

  • f adjacency matrices : (Gm, G′

m), m = {1, · · · , M}.

Goal: “Learn” parameters ω such that QAP procedure finds a good solution (quickly) for the test case (unseen graph pairs).

slide-24
SLIDE 24

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Graph Matching

Given: A training set of related graph pairs with D encodings

  • f adjacency matrices : (Gm, G′

m), m = {1, · · · , M}.

Goal: “Learn” parameters ω such that QAP procedure finds a good solution (quickly) for the test case (unseen graph pairs). Define parameter vector ω ∈ RD

slide-25
SLIDE 25

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Graph Matching

Given: A training set of related graph pairs with D encodings

  • f adjacency matrices : (Gm, G′

m), m = {1, · · · , M}.

Goal: “Learn” parameters ω such that QAP procedure finds a good solution (quickly) for the test case (unseen graph pairs). Define parameter vector ω ∈ RD

QAP Objective for Learning: f ω(σ) =

D

  • d=1

ωdf d(σ)

where f d(σ) =

1 (n−2)!

  • π∈Sn

fAd(σπ)fA′d(π) =

  • i,j

Ad

ijA′d σ(i)σ(j)

slide-26
SLIDE 26

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Correct bounds on Coset Tree

213 S3 312 S2 S2 S2 132 123 321 231

slide-27
SLIDE 27

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Correct bounds on Coset Tree

213 S3 312 S2 S2 S2 132 123 321 231

slide-28
SLIDE 28

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Correct bounds on Coset Tree

slide-29
SLIDE 29

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Learning Correct bounds on Coset Tree

slide-30
SLIDE 30

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Fourier Domain QAP Solver

Fast Fourier Transform ˆ f ω(λ) =

n

  • i=1

dλ ndµ ρλ([[i, n]])

  • µ∈λ↓n−1

ˆ f ω

i (µ)

Fourier Space Bounds [Kondor et.al.] Bn→i =

  • µ⊢n−1

ˆ f ω

i (µ)∗

slide-31
SLIDE 31

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Risk Minimization

Loss Function

n

  • k=1
  • i∈children((n−k+1)∗)
  • ˆ

f ω

i (µ)∗ − ˆ

f ω

i∗

n−k(µ)∗ + 1

+ i∗

n−k is the correct node at level n − k in coset tree.

slide-32
SLIDE 32

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Risk Minimization

Jensen’s Inequality For parameterization: ˆ f ω

i (µ) = D d=1 ωdˆ

f d

i (µ)

ˆ f ω

i (µ)∗ = D

  • d=1

ωdˆ f d

i (µ)∗ ≤ D

  • d=1

ωdˆ f d

i (µ)∗

slide-33
SLIDE 33

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Risk Minimization

Jensen’s Inequality For parameterization: ˆ f ω

i (µ) = D d=1 ωdˆ

f d

i (µ)

ˆ f ω

i (µ)∗ = D

  • d=1

ωdˆ f d

i (µ)∗ ≤ D

  • d=1

ωdˆ f d

i (µ)∗

Fourier space Stochastic Gradient Descent Solver Each update takes the form ωd ← ωd − η

  • ˆ

f d

i (µ)∗ − ˆ

f d

i∗

n−k(µ)∗ +

ν MO(n2)ωd ν MO(n2)ωd

slide-34
SLIDE 34

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Risk Minimization

Jensen’s Inequality For parameterization: ˆ f ω

i (µ) = D d=1 ωdˆ

f d

i (µ)

ˆ f ω

i (µ)∗ = D

  • d=1

ωdˆ f d

i (µ)∗ ≤ D

  • d=1

ωdˆ f d

i (µ)∗

Fourier space Stochastic Gradient Descent Solver Each update takes the form ωd ← ωd − η

  • ˆ

f d

i (µ)∗ − ˆ

f d

i∗

n−k(µ)∗ +

ν MO(n2)ωd ν MO(n2)ωd

Convergence: emulate proof for D-dimensional Perceptron.

slide-35
SLIDE 35

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Experimental Results

Setup Edge: Delaunay triangulation on interest points Distance: Euclidean distance between interest points Shape Context (60 in all): Similarities based on local shape-based appearance of interest points

slide-36
SLIDE 36

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Experimental Results

Setup Edge: Delaunay triangulation on interest points Distance: Euclidean distance between interest points Shape Context (60 in all): Similarities based on local shape-based appearance of interest points Task Learn ω using training instances Solve the learnt problem “cheaply” (e.g., greedy or linear assignment) Evaluate compromise on accuracy? Evaluate improvements in running time?

slide-37
SLIDE 37

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Experimental Results: CMU House

Figure: (Green) the ground truth and (red) the learnt correspondences.

slide-38
SLIDE 38

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Experimental Results: CMU Hotel

Figure: (Green) the ground truth and (red) the learnt correspondences.

slide-39
SLIDE 39

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Experimental Results: Silhouette

Figure: (Green) the ground truth and (red) the learnt correspondences.

slide-40
SLIDE 40

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Accuracy vs. Offset: CMU House

Figure: Our method compared with no-learn baseline. (Red) learning and (blue) no-learning.

slide-41
SLIDE 41

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Accuracy vs. Offset: CMU Hotel

Figure: Our method compared with no-learn baseline. (Red) learning and (blue) no-learning.

slide-42
SLIDE 42

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Accuracy vs. Offset: Silhouette

Figure: Our method compared with no-learn baseline. (Red) learning and (blue) no-learning.

slide-43
SLIDE 43

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Conclusions

Incorporating domain knowledge help solving hard problems. Harmonic analysis provide nice structure for matching problems. Other parameterization schemes might provide further insights. Please come to the poster session. Poster 15 in Informatics Forum.

slide-44
SLIDE 44

Motivation Learning QAPs Algebra of Sn Algorithm Experiments

Thank You!