NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Combinatorial Solver for Graph Matching

Tao Wang, He Liu, Yidong Li, Yi Jin, Xiaohui Hou, Haibin Ling

Abstract

Graph matching is a fundamental problem in computer vision, typically formulated as a Quadratic Assignment Problem (QAP). Traditional methods rely on fixed, non-trainable solvers that often act as a bottleneck in deep learning pipelines. This paper introduces a novel, fully trainable framework that treats graph matching as a node classification task on a specially constructed "assignment graph." By employing a Graph Neural Network (GNN) as the solver, the model learns to perform structural reasoning, achieving state-of-the-art performance on challenging benchmarks like Pascal VOC and Willow Object Class, demonstrating superior robustness and structural reasoning capabilities.

Introduction

The objective of graph matching is to establish correspondences between nodes in two distinct graphs while preserving their structural relationships. This task is mathematically equivalent to the NP-hard Quadratic Assignment Problem. While recent advances have integrated deep learning for feature extraction, the final matching step often utilizes "hard-coded" solvers like Sinkhorn layers or spectral relaxations. These solvers are not optimized for the specific data distribution, limiting the overall system's potential. This work proposes replacing these rigid components with a trainable GNN-based solver that can be optimized end-to-end.

Methodology

The proposed framework transforms the combinatorial matching problem into a local node labeling problem through a multi-stage pipeline.

The end-to-end pipeline featuring assignment graph generation, GNN-based convolution modules, and a dual-supervision loss.

Assignment Graph Generation

The core innovation lies in the construction of an assignment graph, $G^A$. In this graph, each node represents a potential match between a node in the first graph and a node in the second graph. Edges in $G^A$ represent the compatibility between these candidate matches based on the original graph structures. This reframes a global permutation search into a local classification task.

GNN-based Solver

The solver utilizes 10 stacked Graph Network blocks. Each block performs edge and node convolutions to aggregate structural information. This iterative process allows the network to refine its confidence in each match by considering the surrounding context. Simple Multi-Layer Perceptrons (MLPs) act as encoders to map geometric attributes into a latent space and as decoders to produce binary labels for each candidate match.

Dual-Supervision Loss

To ensure valid permutations, the model is trained with a combination of two loss functions:

  • Permutation Loss: A standard cross-entropy loss against ground truth labels.
  • Constraint Loss: A novel regularization term that enforces "one-to-one" matching constraints, preventing the model from matching a single node in one graph to multiple nodes in the other.

Experimental Results

The model was evaluated across synthetic datasets and real-world benchmarks including CMU House, Willow Object Class, and Pascal VOC Keypoints.

Performance on Real-World Data

On the Willow Object dataset, the model achieved an average accuracy of 94.9%, significantly outperforming the previous best deep learning method (PCA) at 90.2%. On the more challenging Pascal VOC dataset, which features high variability in pose and scale, the model reached 68.5% accuracy. Notably, this performance was achieved using only geometric coordinates, highlighting the strength of the learned structural reasoning over raw visual features.

Robustness Analysis

Synthetic tests demonstrated the model's resilience to noise and outliers. Unlike traditional spectral or path-following methods that degrade rapidly as complexity increases, the proposed GNN solver maintains high matching accuracy even under significant perturbations.

Robustness of the proposed method compared to baselines under varying noise and outlier conditions.

Conclusion and Future Work

This work demonstrates that combinatorial solvers for graph matching can be effectively replaced by trainable Graph Neural Networks. By reframing matching as a classification task on an assignment graph, the model achieves superior accuracy and robustness. However, the $O(n^2)$ complexity of the assignment graph construction poses scalability challenges for very large graphs. Future work will explore adaptive architectures and the integration of high-dimensional visual features to further push the boundaries of graph matching performance.

Summary updated

BibTeX
@inproceedings{wang2020learning,
  author = {Tao Wang and He Liu and Yidong Li and Yi Jin and Xiaohui Hou and Haibin Ling},
  title = {{Learning Combinatorial Solver for Graph Matching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00759},
}
Figure