Cross-order Consensus Graph Matching

Yu Xie, Yiming Zhang, Xinyan Liang, Junqi Liu, Ming LiNeurIPS 2026

TL;DR

Matching keypoints across two images is easy when points look unique, and notoriously difficult when they look identical—like the four corners of a table. While most deep graph matching models squash structural "edge" clues into point features early on (losing vital geometric context), Cross-order Consensus Graph Matching (CCGM) treats edges as first-class citizens alongside nodes. By running parallel node-matching and edge-matching streams that cross-examine each other using exact mathematical principles, CCGM sets a new bar for accuracy and robustness under tricky viewpoints and visual noise.

What Problem Does This Paper Address?

Imagine trying to match keypoints between two photos of a chair taken from different angles. You want points that look alike to match (first-order or unary compatibility), and you want the geometric lines connecting them to match too (second-order or pairwise structural consistency). Classically, this is framed as a Quadratic Assignment Problem (QAP)—an NP-hard puzzle.

Deep learning approaches have tackled this end-to-end, but usually hit one of two snags:

  1. The Compression Bottleneck: Many models use Graph Neural Networks where edges merely act as pipes to pass messages between nodes. Before the final matching step, all edge geometry gets squashed into node embeddings. By the data processing inequality, compressing edge features into node features inevitably throws away structural clues needed to tell apart visually identical keypoints (like a left chair leg vs. a right chair leg).
  2. Optimization Drift: Methods that do keep explicit pairwise constraints have to differentiate through combinatorial black-box solvers or truncated approximations during training. This often yields gradient updates that drift away from the true mathematical direction of the QAP objective.

Methods

CCGM avoids collapsing edge data by keeping node matching and edge matching separate, explicit, and mutually verifiable throughout the entire pipeline.

Here is how they pull what is new out of standard building blocks:

  • Standard Foundations: Like prior work, CCGM extracts image features via a pretrained VGG-16 backbone, connects keypoints into sparse planar graphs using Delaunay triangulation, refines features with self- and cross-attention Transformer blocks, and normalizes final assignment scores via Sinkhorn iterations.
  • Line-Graph Transformation (with Path Sampling): To match edges directly, CCGM converts each primal graph into a line graph—where every original edge becomes a node, and two line-graph nodes connect if their original edges share an endpoint. Crucially, each edge's feature isn't just its two endpoints glued together; CCGM bilinearly samples visual features along the spatial line segment between keypoints on the image feature map.
  • Cross-order Consensus Solver: Instead of guessing how nodes and edges should talk to each other, the authors derive the exact analytical gradient of the factorized relaxed QAP. That math naturally dictates a two-way street: project node scores onto edges (N2E), and project edge scores back onto nodes (E2N). CCGM turns this into a 4-step iterative solver, using degree-normalized LogSumExp (so high-degree hub nodes don't dominate) and lightweight entropy-aware gates that measure matching sharpness to dynamically weigh self-confidence against cross-order structural advice.
  • Cross-order Alignment Regularization (CAR): During training, alongside standard supervised matching losses, CAR adds a penalty whenever the final node distribution disagrees with the edge-projected node support (and vice versa).

Datasets

No new datasets are introduced; the authors evaluate on three standard visual graph matching benchmarks of escalating difficulty:

  • Pascal VOC (with Berkeley annotations): 7,020 training and 1,682 testing images across 20 object categories (6–23 keypoints per image), featuring pose variations and occlusions.
  • SPair-71k: A tougher, large-scale benchmark with 70,958 image pairs across 18 categories, marked by severe viewpoint shifts and scale changes.
  • Willow Object Class: A smaller, largely saturated benchmark of 256 images across 5 categories (10 keypoints per image).

Key Insights and Ideas

  • Exact QAP math gives you a blueprint for neural architecture: Deriving the exact gradient of the continuous QAP relaxation reveals that you cannot make a structurally faithful update from node scores alone—you mathematically must project nodes to edges, weight by edge compatibility, and project back to nodes. Building a neural solver around this exact structure gives you classical theoretical grounding with deep learning flexibility.
  • Planar geometry keeps line graphs cheap: Turning edges into nodes sounds like a recipe for a combinatorial explosion. However, because keypoints are connected via Delaunay triangulation (which produces planar graphs), Euler's formula guarantees at most $3n - 6$ edges for $n$ keypoints. Thus, the line-graph stream scales linearly with the number of keypoints!
  • Symmetric objects are the ultimate litmus test: Look at where CCGM wins biggest—categories like Chair and Table. When local visual patches look identical due to symmetry or severe camera rotation, keeping persistent edge-to-edge affinities allows the solver to use global geometry to break ties.

Key Results

CCGM consistently outperforms competitive baselines across benchmarks:

  • Pascal VOC: Achieves 86.4% mean accuracy, beating the strongest baseline (COMMON at 82.7%) by 3.7 percentage points. On structurally ambiguous categories like Chair, it jumps from 61.6% (COMMON) to 75.8%, and hits 100.0% on Table.
  • SPair-71k: Reaches 86.0% mean accuracy (+1.5 points over COMMON). When broken down by viewpoint difficulty, its biggest lead is on the Hard split (80.3%, a +3.9 point gain).
  • Willow Object: Ties the state-of-the-art mean accuracy at 99.1%, hitting 100% on Face, Mbike, and Wbottle.
  • Outlier Robustness: When synthetic spurious keypoints (0 to 10 outliers) are injected to try and fool the matcher, baselines degrade sharply while CCGM holds steady at roughly 93% accuracy even with 10 outliers. Ablations confirm every piece pulls its weight (84.9% base $\rightarrow$ 85.8% with Solver $\rightarrow$ 86.0% with Line Graph $\rightarrow$ 86.4% with CAR).

Limitations and Future Work

  • Learnable Approximations vs. Strict Guarantees: The authors transparently note that while their solver mirrors the structure of the exact QAP gradient, their neural tweaks (orientation-invariant max pooling, LogSumExp, and learned sigmoid gates) mean the network isn't executing a literal Euclidean projected gradient step—trading strict theoretical monotonicity for empirical adaptability.
  • Non-rigid Articulation: On Willow Object, CCGM slightly trails COMMON on the Duck category (96.6% vs. 98.7%), which the authors attribute to non-rigid articulation and small sample sizes.
  • Future Directions: Because CCGM only models first-order (nodes) and second-order (edges) relationships across pairs of graphs, the authors point to higher-order geometric relations (like triangles/hypergraphs) and multi-graph matching as natural next frontiers.

Summary updated

Abstract

Graph matching aims to establish node correspondences while preserving both unary appearance compatibility and pairwise structural consistency. Recent deep graph matching methods have achieved strong empirical performance, but many of them either compress edge information into node embeddings before matching or rely on surrogate optimization signals for quadratic objectives. These design choices can weaken structural discrimination and may lead to optimization directions that are not aligned with the relaxed quadratic assignment problem (QAP). We propose Cross-order Consensus Graph Matching (CCGM), a framework that explicitly couples first-order node assignment and second-order edge assignment. CCGM constructs line graphs to convert edge matching into a node matching problem, learns node and edge affinities in parallel, and refines them through a Cross-order Consensus Solver motivated by the exact gradient of the factorized relaxed QAP. We further introduce Cross-order Alignment Regularization to encourage agreement between node-induced edge assignments and edge-induced node support during training. Experiments on standard visual graph matching benchmarks show that CCGM consistently improves matching accuracy over competitive baselines.
BibTeX
@inproceedings{xie2026cross,
  author = {Yu Xie and Yiming Zhang and Xinyan Liang and Junqi Liu and Ming Li},
  title = {{Cross-order Consensus Graph Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=JfYnVbWGRN},
}
Figure