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

Learning Combinatorial Embedding Networks for Deep Graph Matching

Runzhong Wang, Junchi Yan, Xiaokang YangICCV 2019 · DOI

Abstract

Graph matching refers to finding node correspondence between graphs, such that the corresponding node and edge's affinity can be maximized. In addition with its NP-completeness nature, another important challenge is effective modeling of the node-wise and structure-wise affinity across graphs and the resulting objective, to guide the matching procedure effectively finding the true matching against noises. To this end, this paper devises an end-to-end differentiable deep network pipeline to learn the affinity for graph matching. It involves a supervised permutation loss regarding with node correspondence to capture the combinatorial nature for graph matching. Meanwhile deep graph embedding models are adopted to parameterize both intra-graph and cross-graph affinity functions, instead of the traditional shallow and simple parametric forms e.g. a Gaussian kernel. The embedding can also effectively capture the higher-order structure beyond second-order edges. The permutation loss model is agnostic to the number of nodes, and the embedding model is shared among nodes such that the network allows for varying numbers of nodes in graphs for training and inference. Moreover, our network is class-agnostic with some generalization capability across different categories. All these features are welcomed for real-world applications. Experiments show its superiority against state-of-the-art graph matching learning methods.

Introduction

Graph Matching (GM) is a fundamental problem in computer vision, essential for tasks like 3D reconstruction and action recognition. The goal is to find the optimal point-to-point correspondence between two sets of nodes (graphs) to maximize structural and feature similarity. However, GM faces two major hurdles: combinatorial complexity (it is NP-complete) and the difficulty of modeling affinity. Traditional methods often rely on simple, predefined functions like Gaussian kernels, which struggle to capture complex, high-order structural nuances, especially under noise. While previous deep learning approaches exist, they frequently use "displacement loss," which minimizes coordinate distances but fails to respect the discrete, combinatorial nature of matching.

Methodology

The proposed framework introduces an end-to-end differentiable pipeline that replaces hand-crafted affinity functions with deep graph convolutional embeddings.

The proposed deep graph matching pipeline featuring CNN feature extraction, GCN-based embedding layers, and a Sinkhorn layer for permutation prediction.

The architecture consists of four primary stages:

  1. Feature Extraction: A VGG16 backbone extracts local visual features from image patches around keypoints.
  2. Intra-graph & Cross-graph Embedding: The model employs Graph Convolutional Networks (GCNs). Intra-graph layers capture local structure by allowing nodes to aggregate information from neighbors. Cross-graph layers (CrossConv) enable nodes to aggregate context from similar nodes in the paired graph.
  3. Affinity Metric Learning: A learned bi-linear mapping computes a node-to-node affinity matrix, encoding structural similarity into a linear assignment space.
  4. Sinkhorn Layer & Permutation Loss: A Sinkhorn Network iteratively transforms the affinity matrix into a doubly-stochastic matrix. A Permutation Cross-Entropy Loss then directly supervises the matching results against ground-truth correspondences, capturing the combinatorial nature of the problem.

Experimental Results and Insights

The model was evaluated on synthetic graphs, Pascal VOC Keypoints, and the Willow ObjectClass dataset. On Pascal VOC, the proposed PCA-GM model achieved 63.8% mean accuracy, significantly outperforming the previous state-of-the-art GMN (55.3%).

The Advantage of Permutation Loss

A key insight of this work is the superiority of permutation loss over displacement loss. Displacement loss can be misled by symmetric features; for example, it might assign high probability to both ears of a horse. While the average coordinate error might be low, the discrete match is incorrect.

Visualization of node correspondence probabilities. Permutation loss effectively penalizes discrete errors that displacement loss might overlook in symmetric structures.

Structural Encoding and Generalization

By utilizing GCNs, the network learns higher-order information, matching nodes based on their structural context (e.g., a patch connected to a saddle) rather than just local appearance. Furthermore, the model demonstrates class-agnostic generalization, performing well on unseen categories by learning the underlying logic of structural matching.

Conclusion

This paper presents a robust framework for graph matching using deep combinatorial embeddings and permutation loss. By moving beyond shallow affinity models and displacement-based supervision, the network achieves state-of-the-art performance and exhibits strong generalization across object categories. Future work may explore more stable multi-step iterative reasoning and applications in 3D point cloud matching or molecular graph analysis.

Summary updated

BibTeX
@inproceedings{wang2019learning,
  author = {Runzhong Wang and Junchi Yan and Xiaokang Yang},
  title = {{Learning Combinatorial Embedding Networks for Deep Graph Matching}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00315},
}
Figure