Ensemble Quadratic Assignment Network for Graph Matching

Haoru Tan, Chuang Wang, Sitong Wu, Xu-Yao Zhang, Fei Yin, Chenglin LiuIJCV 2024

Abstract

Graph matching is a commonly used technique in computer vision and pattern recognition. Recent data-driven approaches have improved the graph matching accuracy remarkably, whereas some traditional algorithm-based methods are more robust to feature noises, outlier nodes, and global transformation (e.g. rotation). In this paper, we propose a graph neural network (GNN) based approach to combine the advantages of data-driven and traditional methods. In the GNN framework, we transform traditional graph-matching solvers as single-channel GNNs on the association graph and extend the single-channel architecture to the multi-channel network. The proposed model can be seen as an ensemble method that fuses multiple algorithms at every iteration. Instead of averaging the estimates at the end of the ensemble, in our approach, the independent iterations of the ensembled algorithms exchange their information after each iteration via a 1x1 channel-wise convolution layer. Experiments show that our model improves the performance of traditional algorithms significantly. In addition, we propose a random sampling strategy to reduce the computational complexity and GPU memory usage, so the model applies to matching graphs with thousands of nodes. We evaluate the performance of our method on three tasks: geometric graph matching, semantic feature matching, and few-shot 3D shape classification. The proposed model performs comparably or outperforms the best existing GNN-based methods.

Introduction

Graph Matching (GM) is a fundamental task in computer vision, involving the identification of optimal correspondences between two sets of points or nodes. Mathematically, this is formulated as a Quadratic Assignment Problem (QAP), which is NP-hard. Historically, researchers have relied on traditional mathematically-grounded algorithms that offer robustness to global transformations like rotation but often lack high accuracy. Conversely, modern deep learning methods, particularly Graph Neural Networks (GNNs), achieve high accuracy on specific datasets but can be brittle when faced with noise or unseen rotations. Furthermore, scaling these models to graphs with thousands of nodes remains a significant challenge due to memory constraints. The Ensemble Quadratic Assignment Network (EQAN) addresses these issues by bridging the gap between robust traditional solvers and high-capacity data-driven models.

Methodology

The core innovation of EQAN is the Ensemble Assignment Module, which treats classical iterative solvers as components of a larger neural architecture.

The overall architecture of EQAN, featuring the Initialization Module, Ensemble Assignment Module with five blocks, and the Decision Layer.

QAP-Solvers as GNNs

The authors observe that traditional iterative solvers, such as the power method, can be mathematically interpreted as single-channel GNNs operating on an "association graph"—a graph representing all possible node-to-node matches. By extending this to a multi-channel framework, EQAN can leverage multiple independent solvers simultaneously.

Iterative Information Exchange

Unlike traditional ensemble methods that average results at the final stage, EQAN facilitates communication between solvers after every iteration. As shown in the block diagram below, a 1x1 channel-wise convolution layer is used to fuse information from different solvers (channels), allowing the network to reach a consensus dynamically.

Internal structure of an Ensemble Block, where multiple QAP-solvers act as channels and exchange information via a 1x1 convolution.

Scalability and Robustness

To handle large-scale graphs, EQAN employs a random sampling strategy that reduces the number of updated matches from $n^2$ to $n\sqrt{n}$. A Straight-Through Estimator (STE) is utilized to maintain differentiability during training. Additionally, because the architecture is modeled after traditional solvers, it naturally inherits their resistance to global transformations, such as 90-degree rotations, which typically cause standard GNNs to fail.

Experiments and Results

The model was evaluated across several benchmarks, including PASCAL-PF for geometric matching, PASCAL-VOC and Spair-71K for semantic matching, and ModelNet40 for 3D shape classification.

  • Geometric Matching: EQAN achieved a state-of-the-art mean accuracy of 96.4% on PASCAL-PF.
  • Semantic Matching: On PASCAL-VOC, the model reached 80.9% accuracy, a substantial improvement over the 66.5% baseline without the ensemble module.
  • 3D Shape Classification: In 5-way 5-shot classification on ModelNet40, the randomized version (EQAN-R) achieved 84.71% accuracy, significantly outperforming previous methods like MFSC (73.20%).
  • Robustness to Rotation: In controlled tests with 90-degree rotations, EQAN maintained near-perfect accuracy, whereas competing GNN-based methods like DGMC saw performance drops from ~90% to below 20%.

Conclusion

EQAN demonstrates that fusing traditional algorithmic solvers within a GNN framework significantly enhances both accuracy and robustness. While the random sampling strategy effectively manages memory for large graphs, future work may focus on optimizing inference speed for smaller graphs where vectorized parallelization is currently disrupted by sampling masks. The success of this iterative ensemble approach suggests potential applications in other complex combinatorial optimization problems.

Summary updated

BibTeX
@article{tan2024ensemble,
  author = {Haoru Tan and Chuang Wang and Sitong Wu and Xu-Yao Zhang and Fei Yin and Chenglin Liu},
  title = {{Ensemble Quadratic Assignment Network for Graph Matching}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  url = {https://openreview.net/forum?id=pkvw2fDaUO},
}
Figure