Consistency-driven multiple graph matching Junchi - - PowerPoint PPT Presentation
Consistency-driven multiple graph matching Junchi - - PowerPoint PPT Presentation
Consistency-driven multiple graph matching Junchi Yan IBM Research China (Shanghai) East China Normal University Outline Introduction on Graph Matching Reference graph based
Outline
Introduction on Graph Matching Reference graph based alternating approach, TIP’15
- Consistency-driven Alternating Optimization for Multi-
graph Matching: a Unified Approach, IEEE Transactions
- n Image Processing, 2015, 24 (3), 994-1009
More ‘distributed’ approach, TPAMI 2015
- Multi-Graph Matching via Affinity Optimization with
Graduated Consistency Regularization, IEEE Transactions
- n Pattern Analysis and Machine Intelligence, accepted
- n Sep.1 2015, in press
Summary
Outline
Introduction on Graph Matching
Reference graph based alternating approach, TIP’15
- Consistency-driven Alternating Optimization for Multi-
graph Matching: a Unified Approach, IEEE Transactions
- n Image Processing, 2015, 24 (3), 994-1009
More ‘distributed’ approach, TPAMI 2015
- Multi-Graph Matching via Affinity Optimization with
Graduated Consistency Regularization, IEEE Transactions
- n Pattern Analysis and Machine Intelligence, accepted
- n Sep.1 2015, in press
Summary
RPM / ICP Graph matching Point registration: Often use parametric transformation model between point sets, e.g. RPM, ICP Graph matching: non-parametric form, no prior transform model between graphs Node sets
RPM: Chui, H., Rangarajan, A.: A new point matching algorithm for non-rigid registration. Computer Vision and Image Understanding 89 (2003) 114–141 ICP: Z. Zhang. Iterative point matching for registration of free-form curves and surfaces. IJCV, 1994. Graph matching: Thirty years of graph matching in pattern recognition. IJPRAI, 2004.
Graph matching vs. registration
Transformation->correspondence
- >Transformation->correspondence
Node correspondence by an assignment matrix
Solution: assignment matrix, i.e. a partial permutation matrix
5 detected features 4 detected features
Assume one-to-one correspondence
b 4 Sift feature CNN feature …
Node-wise linear assignment problem
Hungarian Algorithm (Kuhn & Munkres, 1955)
Global optimality is ensured by O(n^3) time complexity where n is the number of nodes
Linear Assignment Problem
T
Node-to-node affinity/cost matrix f4 fb
Edge-wise graph matching
2nd-order Feature (eg, Edge Length) 1st-order Feature (eg. Local Texture) Graph Matching (quadratic) Feature Matching (linear)
Edge Similarity
Edge Similarity
5 3 c b Build graph by Delaunay Triangulation
Graph matching: a combinatorial
- ptimization formulation
Edge Similarity Node Similarity
Node Compatibility Edge Compatibility
Node-Edge Index Affinity maximization
- S. Gold and A. Rangarajan, “A graduated assignment algorithm for graph matching,” IEEE Transaction on PAMI, 1996
- A. Rangarajan
Steven Gold
A more clean writing by an Affinity matrix
(Leordeanu & Hebert, 2005)
Edge-to-edge relations
- M. Leordeanu
- M. Hebert
- M. Leordeanu and M. Hebert, “A spectral technique for correspondence problems using pairwise constraints,” in ICCV, 2005
Affinity matrix:
Node-to-node affinity
(Diagonal) b 3 b 3
Edge-to-edge affinity
(Off-Diagonal) c 5 b 3
Quadratic Assignment Problem
NP-hard
Branch-Bound
Koopmans & Beckmann, 1955 Lawler, 1963 Loiola et al, 2007
Spectral Approximation
Not Tight Not Discrete Spectral Method is Faster
- M. Leordeanu
- M. Hebert
- T. Cour
- J. Shi
- M. Leordeanu and M. Hebert, “A spectral technique for correspondence problems using pairwise constraints,” in ICCV, 2005
- P. S. T. Cour and J. Shi, “Balanced graph matching,” in NIPS, 2006
Faster
Double-stochastic Approximation
Not Discrete Not Convex (K is Indefinite) Slower
- S. Gold & Rangarajan, 1996
- Cho et al, 2010
- Leordeanu et al, 2009
- …
- S. Gold and A. Rangarajan, “A graduated assignment algorithm for graph matching,” IEEE Transaction on PAMI, 1996
- M. Cho, J. Lee, and K. M. Lee, “Reweighted random walks for graph matching,” in ECCV, 2010
- M. Leordeanu, M. Hebert, and R. Sukthankar, “An integer projected fixed point method for graph matching and map inference,” in NIPS, 2009
Gradient Method is More Accurate
- A. Rangarajan
- M. Cho
- K. Lee
- M. Leordeanu
- M. Hebert
- R. Sukthankar
- S. Gold
Beyond: Higher-order models
3-Order is Similarity Transformation Invariant 4-Order is Affine Transformation Invariant ?-Order is Non-rigid Invariant 2-Order is Rotation / Scale Invariant Pair-wise Matrix Triple-wise Tensor Complexity Memory for 100 nodes K (381 MB) (3.7 GB) Combinatorial Explosion
Factorized model
Fernando De la Torre Feng Zhou
Node Similarity Edge Similarity
Sparse Block- Structured
?
- F. Zhou and F. D. Torre, “Factorized graph matching,” in CVPR, 2012.
Factorize the edge affinity
- F. Zhou and F. D. Torre, “Factorized graph matching,” in CVPR, 2012.
Fernando De la Torre
- F. Zhou
Path-following optimization
Original objective New objective
Factorization
Convex relaxation Concave relaxation Optimal, Continuous
Assuming X is orthogonal Assuming X is binary Frank-Wolfe
Always discrete Interpolation Interpolation Interpolation
Initialize Frank-Wolfe
- F. Zhou and F. D. Torre, “Factorized graph matching,” in CVPR, 2012.
Fernando De la Torre
- F. Zhou
Two paradigms for two-graph matching
Spectral / Gradient Discrete Rounding
Factorization
Convex Relaxation Concave Relaxation
Non-factorized paradigm Factorized paradigm
Fernando De la Torre Feng Zhou Minsu Cho
- T. Cour
- M. Leordeanu
Matching more than two graphs
- More practical problem, with more information to use
Graphical object query and indexing, shape analysis SIGGRAPH’12
Optical image Infra-red line- scan image Cartographic data
Info fusion PRL’97 3-D weak reconstruction ICCV’15 Exploring collections of 3D models using fuzzy correspondences, SIGGRAPH’12 Multiple Graph Matching with Bayesian Inference, Pattern recognition letters’97 Multi-Image Matching via Fast Alternating Minimization ICCV’15
Motivating illustration
G1 G2 G3 G1->G2 G1->G3->G2
Interpolating graph (son) Father Mother
Existing multiple GM methods
Main categories
Designate one of the graphs as the reference, and match all the
- thers to the reference graph
- A. Sole-Ribalta, F. Serratosa, Models and algorithms for computing the
common labelling of a set of attributed graphs, CVIU 2011
Compute pairwise matchings, based on which improve overall accuracy
- D. Pachauriy, R. Kondorx, V. Singh, Solving the multi-way matching problem
by permutation synchronization, in NIPS 2013
- Y. Chen, G. Leonidas, and Q. Huang. Matching partially similar objects via
matrix completion. In ICML, 2014
One-shot multiple feature set (not graph) matching
- Z. Zeng, T. H. Chan, K. Jia, and D. Xu. Finding correspondence from multiple
images via sparse and low-rank decomposition. In ECCV, 2012
- X. Zhou, M. Zhu, and K. Daniilidis. Multi-image matching via fast alternating
- minimization. In ICCV, 2015
Outline
Introduction on Graph Matching
Reference graph based alternating approach, TIP’15
- Consistency-driven Alternating Optimization for Multi-
graph Matching: a Unified Approach, IEEE Transactions
- n Image Processing, 2015, 24 (3), 994-1009
More ‘distributed’ approach, TPAMI 2015
- Multi-Graph Matching via Affinity Optimization with
Graduated Consistency Regularization, IEEE Transactions
- n Pattern Analysis and Machine Intelligence, accepted
- n Sep.1 2015, in press
Summary
From two-graph to multi-graph (I)
- Junchi Yan et al. 2013&2015
- Journal extension
- Consistency-driven Alternating Optimization for Multi-
graph Matching: a Unified Approach, IEEE Transactions
- n Image Processing, 2015, 24 (3), 994-1009
- Conference preliminary version
- Joint optimization for consistent multiple graph
matching, in ICCV 2013
Adding up pairwise affinities
Assumption: 1) All graphs are of equal size, can be realized by adding dummy nodes or outliers 2) We are matching a collection of related graphs with common structures
Redundancy Basis
Use a basis set of pairwise matchings
Basis set: fixed updating Fix Xf1r, Xf2r, Xf3r, Xf4r Update Xur Iteration 1 Fix Xur, Xf2r, Xf3r, Xf4r Update Xf1r Iteration 2 Fix Xur, Xf1r, Xf3r, Xf4r Update Xf2r Iteration 3 Fix Xur, Xf2r, Xf1r, Xf4r Update Xf3r Iteration 4 Fix Xur, Xf2r, Xf3r, Xf1r Update Xf4r Iteration 5 Alternating updating new Graph: r,f1,f2,f3,f4,u
Two challenges
- How to select the reference graph?
- How to decide the updating order?
Consistency implies accuracy
Inconsistent matchings Consistent matchings G1 G2 G3 G1 G2 G3 1 1’ 1’’
How to select the reference graph?
GK
G1 G2 G3 G4 G5 G6 i,j=1,2,… Find the reference graph by: Yan et al. 2015 Less consistent Consistent First compute all Xij Then have the basis set: X1u, X2u, X3u, …, XNu
How to decide the updating order?
Gi Gj
G1 G2 K=1,2,… Decide the updating order of Xur in ascending order of Cp(Xij,X)
Algorithm (Non-factorized model)
How consistency helps alternating
- ptimization?
Deform test Outlier test Density test Order gain Reference graph gain
Factorized formulation
convex concave
Pass
Alternating updating
Solve lver: r: Frank Wolfe’s algorithm (FW)
Direction Y Step Convex-concave relaxation
Pass
Algorithm (Factorized model)
Pass
Overview
Non-factorized model Factorized model
Convex-concave relaxation
Direction Y Step size λ Frank Wolfe’s algorithm (FW)
RRWM IPFP GAGM etc.
QAP based two- graph matching solvers (any)
Solve a two-graph matching problem in each iteration
Pass
Pairwise GM solvers in two stages
Stage 1: compute the pairwise matchings Xij for initialization Stage 2: compute the graph matching problem each iteration
- Re-weighted Random Walk Matching
(RRWM, Cho et al. ECCV10)
- Integer Projected Fixed Point Method
(IPFP, Cho et al. NIPS09)
- Graduated Assignment for Graph
Matching (GAGM, Gold et al. PAMI96)
- Factorized Graph Matching (FGM,
Zhou et al. CVPR12)
- Fast Bipartite Matching (FBP,
Serratosa, PRL 2014)
[1] GAGM: S. Gold and A. Rangarajan, A graduated assignment algorithm for graph matching, PAMI 1996. [2] RRWM: M. Cho, J. Lee, and K. M. Lee, Reweighted random walks for graph matching, ECCV 2010 [3] IPFP: M. Leordeanu and M. Herbert, An integer projected fixed point method for graph matching and map inference, NIPS 2009 [4] Zhou and F. D. Torre, Factorized graph matching, CVPR 2012 [5] F. Serratosa, Fast computation of bipartite graph matching, Pattern Recognition Letters 2014
Pairwise GM methods
Impact of pairwise solvers – XX
Matching accuracy: RRWM~=FGM~=GAGM>IPFP>FBP By noise level Two stages use the same two-graph matching method
Impact of pairwise solvers – XX
By graph count Matching accuracy: RRWM~=FGM~=GAGM>IPFP>FBP Two stages use the same two-graph matching method
Influence of pairwise solvers - XY
Matching accuracy: RRWM~=FGM~=GAGM>IPFP>FBP Two stages use different two-graph matching method
Results on real image tests
Visual results
Outline
Introduction on Graph Matching
Reference graph based alternating approach, TIP’15
- Consistency-driven Alternating Optimization for Multi-
graph Matching: a Unified Approach, IEEE Transactions
- n Image Processing, 2015, 24 (3), 994-1009
More ‘distributed’ approach, TPAMI 2015
- Multi-Graph Matching via Affinity Optimization with
Graduated Consistency Regularization, IEEE Transactions
- n Pattern Analysis and Machine Intelligence, accepted
- n Sep.1 2015, in press
Summary
From two-graph to multi-graph (II)
- Junchi Yan et al. 2014&2015
- Journal extension
- Multi-Graph Matching via Affinity Optimization with
Graduated Consistency Regularization, IEEE Transactions
- n Pattern Analysis and Machine Intelligence, accepted
- n Sep.1 2015, in press
- Conference preliminary version
- Graduated consistency-regularized optimization for
multi-graph matching, in ECCV, 2014
Motivation
Alternating optimization may get stuck; Error may accumulate over iterations; There is not always a good reference graph for all involved graphs for matching
Composition based Affinity Optimization
Key idea: efficiently generate new candidate solutions by first-order composition
G1 G2 G3 G1->G2 G1->G3->G2
Find higher affinity score solution via composition Interpolating graph (son) Father Mother
Extend the composition chain?
deform
- utlier
Better accuracy, but not cost-effective First-order Second-order
A simple & general algorithm
Post-processing For enforcing
- verall consistency
Still only local two graphs are involved in evaluation function Jij Local noise Modeling error
Recall over fitting in machine learning
- Affinity score (noise, bias) <-> Empirical term
(noise, bias)
- Consistency score <-> Regularization term
Ablation experiment: Consistency
- nly vs. Affinity only
Affinity score only Pairwise-consistency score only deform
- utlier
Only consistency works worse than
Gradually add consistency as the regularization
Consistency works when the pairwise matchings are in general good accuracy
- Recall the consistency-driven alternating method
Hence, first use affinity to decide the composition path to lift accuracy, then gradually incorporate consistency
- Re-weight between affinity and consistency
First meet affinity good, then meet consistency good! Local noise Modeling error
Gradually consistency-weighed CAO
Affinity term Consistency score Consistency Somewhat like deep learning, first tune the network fitting with a small dataset, then try on a larger dataset!
Inexact-consistency to speedup
Exact Inexact Unary-consistency Pairwise-consistency Affinity Why slow? Because need to compute Y from scratch!! See more details in the paper One-shot computing! See more details in the paper
Two approximate variants
Experiment settings
Key control parameters for random synthetic tests Dataset
- CMU Motion Sequence
http://vasc.ri.cmu.edu//idb/html/motion/
- POSE Sequence
http://www.cvl.isy.liu.se/research/objrec/posedb/
- Willow-ObjectClass
http://www.di.ens.fr/willow/research/graphlearning/ Comparing methods
- Re-weighted Random Walk
Matching (RRWM, Cho et al. ECCV10)
- Max-Pooling Matching (MPM,
Cho et al. CVPR14)
- MatchOpt (Yan et al. TIP15,
ICCV13)
- MatchSync (Pachauri et al.
NIPS13)
- MatchLift (Chen et al. ICML14)
NIPS13 ICML14 CVPR14
Few outliers – synthetic tests (I)
CAO-C or CAO-C* works almost best!
Few outliers – real image tests (I)
CAO-C or CAO-C* works almost best!
General mechanism to handle
- utliers
Inliers Outliers Evaluation function Inliers elicitation Node-wise consistency Node-wise affinity Higher node-wise consistency or affinity, higher confidence as inliers
Assume inlier number ni is known
Can be estimated by certain means, or given a template graph with inliers Mask by node-wise consistency or affinity Elicited inliers Rejected outliers Inlier mask G1 G2 G3 G4
Redefine the evaluation terms
Node-wise consistency mask Node-wise affinity mask Inlier elicitation
Sensitivity of the pre-set ni
Synthetic test
Ground truth: ni is set to 10 Ground truth: ni is set to 6
More outliers – synthetic tests
Inlier#=6 Outlier#=12 Inlier#=6 Outlier#=12
Inlier# = 6 Inlier# = 6
More outliers – real image tests
Inlier# = 6 Inlier# = 6 Inlier# = 6 Inlier# = 6 Inlier# = 6 Inlier# = 6
Outline
Introduction on Graph Matching
Reference graph based alternating approach, TIP’15
- Consistency-driven Alternating Optimization for Multi-
graph Matching: a Unified Approach, IEEE Transactions
- n Image Processing, 2015, 24 (3), 994-1009
More ‘distributed’ approach, TPAMI 2015
- Multi-Graph Matching via Affinity Optimization with
Graduated Consistency Regularization, IEEE Transactions
- n Pattern Analysis and Machine Intelligence, accepted
- n Sep.1 2015, in press
Summary
Uncovered topics in this slide
When & what relaxation is globally optimal?
- On convex relaxation of graph isomorphism, PNAS, 2015
Many-to-many matching & progressive matching
- Density maximization for improving graph matching with its application, T-IP, 2015
Learning for graph matching
- Learning graphs to match In ICCV, 2013
Higher-order graph matching
- A flexible tensor block coordinate ascent scheme for hypergraph matching, CVPR, 2015
… More can be found in my survey paper:
- J. Yan et al. A Short Survey of Recent Advances in Graph Matching, submitted to ICMR
2016
Conclusion & outlook
Obtains
- Consistency is a simple and effective way to infuse
information across multiple graphs
- Paradigms are in fact general to feature matching and graph
matching with different cost functions and solvers
For future work (limitation of current work)
- More practical methods for graph construction
- Partial matching across graphs
- Scalable methods, parallelization
- Methods to address many-to-one, many-to-many mappings
for real applications
- Applications to practical computer vision problems, such as
- bject discovery in the wild
Code & paper can be found
- http://www.cc.gatech.edu/~zha/papers.html
- http://www.cc.gatech.edu/~zha/papers/demoCode.zip
- Papers
- Junchi Yan, M. Cho, H. Zha, X. Yang and S. Chu. Multi-Graph
Matching via Affinity Optimization with Graduated Consistency Regularization. To appear in IEEE Transactions on Pattern Analysis and Machine Intelligence, 2016.
- Junchi Yan, J. Wang, H. Zha, X.Yang and S. Chu. Consistency-
driven Alternating Optimization for Multi-Graph Matching: a Unified Approach. IEEE Transactions on Image Processing,
- vol. 24: 994-1009, 2015.
Question?
Acknowledgement
Special thanks go to Dr. Feng Zhou, Dr. Minsu Cho
- Some illustrations are originated/enlightened by their slides/papers
- Their released code is used for evaluation
http://www.di.ens.fr/~mcho/ http://f-zhou.com/ Hongyuan Zha, ECNU Xiaokang Yang, SJTU Stephen Chu, IBM Wei Sun, IBM http://pages.cs.wisc.edu/~pachauri/ web.stanford.edu/~yxchen/ http://deim.urv.cat/ ~francesc.serratosa/
Minsu Cho Feng Zhou
Graph isomorphism problem
https://www.sciencenews.org/article/new-algorithm-cracks-graph-problem Quasipolynomial algorithm for general graphs http://people.cs.uchicago.edu/~laci/quasipoly.html László Babai, Submitted on 11 Dec 2015, Graph Isomorphism in Quasipolynomial Time http://arxiv.org/abs/1512.03547v1
Thirty years