Adaptively Transforming Graph Matching

Fudong Wang, Nan Xue, Yipeng Zhang, Xiang Bai, Gui-Song Xia

Abstract

Graph matching is a fundamental task in computer vision, typically formulated as a Quadratic Assignment Problem (QAP). However, traditional QAP solvers suffer from a "memory wall" due to the quadratic growth of the affinity matrix. We present Adaptively Transforming Graph Matching (ATGM), a novel framework that treats graph matching as a functional transformation problem. By representing pairwise edge constraints through unary node transformations, ATGM reduces space complexity from $O(m^2n^2)$ to $O(mn)$. This efficiency allows for matching graphs with thousands of nodes and provides inherent robustness to outliers through a domain adaptation perspective.

Introduction: The Affinity Matrix Bottleneck

Finding correspondences between two sets of features is often modeled by maximizing an objective function that accounts for both node-to-node similarity and edge-to-edge consistency. In standard graph matching, this leads to an affinity matrix $\mathbf{W}$ that stores pairwise constraints. For two graphs with $n$ nodes each, $\mathbf{W}$ contains $n^2 \times n^2$ entries. As the number of nodes increases, the memory requirements become prohibitive, especially for dense or complete graphs. Furthermore, traditional methods often struggle with outliers—nodes in one graph that have no true match in the other.

Methodology: Matching as Functional Transformation

ATGM shifts the paradigm from discrete combinatorial search to continuous functional optimization. Instead of solving for a permutation matrix directly, the method defines a transformation map $\mathcal{T}$ that maps nodes from a source graph $G_X$ into the continuous convex hull of a target graph $G_Y$.

Comparison between traditional affinity-matrix-based matching and the proposed ATGM transformation approach.

The optimization is broken into two stages:

  1. Edge Discrepancy ($F_{XY}$): A non-convex functional minimizes the difference between the original edges in $G_X$ and their transformed counterparts. This step captures the global geometric structure.
  2. Node Shifting ($G_{\bar{X}Y}$): A convex functional refines the match by minimizing the displacement between transformed nodes and potential target nodes in $G_Y$.

These functionals are solved using the Frank-Wolfe algorithm, which decomposes the complex problem into a series of simple Linear Assignment Problems (LAP) solvable via the Hungarian method.

Robustness and Domain Adaptation

A key innovation of ATGM is treating the transformation as a form of domain adaptation. Because the linear transformation preserves global structure, outlier nodes—those that do not fit the global geometric pattern—will be mapped to inconsistent locations. By applying a "ratio test" similar to those used in SIFT matching, ATGM can adaptively identify and prune these outliers during the optimization process. This allows the algorithm to maintain high accuracy even in the presence of significant noise and clutter.

Experimental Results

The authors evaluated ATGM across synthetic datasets and real-world benchmarks, including the CMU House sequence and the PASCAL Cars and Motorbikes datasets.

Qualitative matching results on the CMU House sequence, showing accurate correspondences and the underlying transformation heatmaps.

Performance Highlights:

  • Scalability: ATGM successfully matched graphs with up to 1,000 nodes, a task that would require hundreds of gigabytes of memory for traditional affinity-matrix methods.
  • Accuracy: On the PASCAL "Cars" dataset, ATGM achieved 71.83% accuracy, significantly outperforming other state-of-the-art methods like MPM (63.44%).
  • Outlier Handling: The domain adaptation strategy proved so effective that using it as a pre-processing step improved the performance of other existing algorithms by over 10%.

Conclusion

Adaptively Transforming Graph Matching (ATGM) overcomes the primary computational hurdle of modern graph matching. By replacing the massive affinity matrix with a functional transformation, it achieves a two-order-of-magnitude reduction in space complexity. This not only enables large-scale matching but also provides a robust framework for handling outliers in "in-the-wild" computer vision tasks. Future work may extend this approach to hyper-graph matching and non-Euclidean manifolds.

Summary updated

BibTeX
@inproceedings{wang2018adaptively,
  author = {Fudong Wang and Nan Xue and Yipeng Zhang and Xiang Bai and Gui-Song Xia},
  title = {{Adaptively Transforming Graph Matching}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01270-0\_38},
}
Figure