CLAP: Concave Linear APproximation for Quadratic Graph Matching
Yongqing Liang, Huijun Han, Xin Li*
Texas A&M University, USA
{lyq, hazelhan, xinli} @ tamu.edu
ISVC 2024
Lake Tahoe, USA
Background: Keypoints in Computer Vision
LF-Detection (Ono et al.’18)
SIFT Detector
Source: https://www.codeproject.com/articles/619039/bag-of-features-descriptor-on-sift-features-with-o?fid=1836776&df=90&mpp=25&prof=True&sort=Position&view=Normal&spc=Relaxed&fr=76
Point-wise Correspondence
Keypoints detection and matching
Source: RF-Net. Shen et al.
Applications in Computer Vision
Image stitching
3D reconstruction from image
SLAM
Keypoints detection 🡪 Correspondence Matching 🡪 Camera poses / 3D object
Source: https://pyimagesearch.com/2018/12/17/image-stitching-with-opencv-and-python/
Graph Matching in Computer Vision
Unary Matching: Finding correspondences by node features
Node features:
Problem of using nodes for graph matching
Pairwise Matching: Finding correspondences by pairwise features
Pairwise features:
Introduction
Problem Setting
Node Features:
1 | 2 | 3 | 4 |
1 | 2 | 3 | 4 |
Graph matching?
Adjacency Features:
0 | X | X | X |
X | 0 | X | X |
X | X | 0 | X |
X | X | X | 0 |
0 | Y | Y | Y |
Y | 0 | X | Y |
Y | Y | 0 | Y |
Y | Y | Y | 0 |
Node Features:
1 | 2 | 3 | 4 |
1 | 2 | 3 | 4 |
Adjacency Features:
0 | X | X | X |
X | 0 | X | X |
X | X | 0 | X |
X | X | X | 0 |
0 | Y | Y | Y |
Y | 0 | X | Y |
Y | Y | 0 | Y |
Y | Y | Y | Y |
P
0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 |
1 | 0 | 0 | 0 |
0 | 1 | 0 | 0 |
1
2
3
4
1
2
3
4
Objective
function
New
Objective
function
Our CLAP Model
But, solving P in discrete space is an NP problem.
We need to relax P to a continuous field P’.
The objective function is quadratic and its Hessian matrix is indefinite
🡪 Non-concave
🡪 Many local maximums
So existing solvers require long computing time to converge.
1
2
3
4
0 | 2 | 6 | 3 |
2 | 0 | 4 | 5 |
6 | 4 | 0 | inf |
3 | 5 | inf | 0 |
3
2
6
5
4
Example 2: Inner-product distance matrix
So,
Our contribution is find a linear approximation that is concave to solve the graph matching.
Our CLAP Model
Our Concave Linear APproximation (CLAP)
Node Features:
1 | 2 | 3 | 4 |
Adjacency Features:
0 | X | X | X |
X | 0 | X | X |
X | X | 0 | X |
X | X | X | 0 |
Here, we optimize a L2 norm term indeed.
Can we optimize a L1 norm term instead?
Yes, we can.
Our Concave Linear APproximation (CLAP)
Node Features:
1 | 2 | 3 | 4 |
Adjacency Features:
0 | X | X | X |
X | 0 | X | X |
X | X | 0 | X |
X | X | X | 0 |
🡪
Sum of squares 🡪 Sum of absolutes approximation
Advantages:
Our CLAP Model
From Symmetry to Semi-positive Definite
Node Features:
1 | 2 | 3 | 4 |
Adjacency Features:
0 | X | X | X |
X | 0 | X | X |
X | X | 0 | X |
X | X | X | 0 |
Observation of adjacency matrices DA , DB
We can modify the adjacency matrices to make them semi-positive definite while preserving their original meaning.
According to Gershgorin circle theorem, we could achieve this by modifying the diagonal entries.
Gershgorin Circle Theorem
0
Converting Symmetry to Semi-positive Definite
x could be A or B
Our CLAP Model
Differentiable Linear Solver (Sinkhorn)
Objective function
Lagrangian function
Derivatives
P_ij can be iteratively optimized.
Results on Synthetic Dataset
Synthetic dataset: random affine transformation
Qc-DGM: Deep graph matching under quadratic constraint. (2021 CVPR)
Acc. And Speedup compared with baseline
Qc-DGM: Deep graph matching under quadratic constraint. (2021 CVPR)
Results compared with related work
Qc-DGM: Deep graph matching under quadratic constraint. (2021 CVPR)
IPCA: Learning combinatorial embedding networks for deep graph matching. (2019 ICCV)
PCA : Combinatorial learning of robust deep graph matching: an embedding based approach (2020 T-PAMI)
CIE-H: Learning deep graph matching with channel independent embedding and hungarian attention. (2019 ICLR)
Pascal VOC Benchmark
Conclusion
CLAP: Concave Linear APproximation for Quadratic Graph Matching
Yongqing Liang, Huijun Han, Xin Li*
Texas A&M University, USA
{lyq, hazelhan, xinli} @ tamu.edu
ISVC 2024
Lake Tahoe, USA