Discrete Cycle-Consistency Based Unsupervised Deep Graph Matching

Siddharth Tourani, Muhammad Haris Khan, Carsten Rother, Bogdan SavchynskyyAAAI 2024

Abstract

Unsupervised deep graph matching aims to find correspondences between image keypoints without the need for expensive ground truth labels. This paper introduces CLUM (Cycle-Loss-based Unsupervised Graph Matching), a novel framework that enforces discrete cycle consistency across image triplets. By utilizing "black-box" differentiation to backpropagate through combinatorial solvers, the authors enable the model to learn from hard, discrete assignments rather than soft approximations. CLUM achieves new state-of-the-art results on standard benchmarks, significantly closing the performance gap between unsupervised and supervised matching methods.

Introduction

Graph matching (GM) is a fundamental task in computer vision, involving the discovery of optimal one-to-one mappings between sets of points across different images. While deep learning has advanced this field, high-performing models typically require massive amounts of manually labeled correspondences. Existing unsupervised methods often rely on "soft" relaxations (like the Sinkhorn operator), which can lead to ambiguous results or bias the model toward specific transformations.

The challenge addressed here is how to train a neural network using the discrete, "all-or-nothing" nature of matching without breaking the gradient-based learning process. The authors propose that enforcing consistency on discrete matches is more effective than enforcing it on probability distributions.

Methodology

The CLUM framework is built upon four core pillars designed to provide a robust supervision signal without human labels:

  1. Feature Extraction: The model uses a hybrid architecture featuring a VGG16 backbone for visual features, SplineCNN for geometric refinement, and dual attention layers. Self-attention with relative position encoding captures local structure, while cross-attention aligns features between image pairs.
  2. Combinatorial Solvers: Instead of soft approximations, CLUM employs actual combinatorial solvers for the Linear Assignment Problem (LAP) or Quadratic Assignment Problem (QAP). These solvers output hard, discrete 0/1 matches.
  3. Discrete Cycle-Consistency Loss: The model processes image triplets ($A, B, C$). It calculates matches for the chain $A \to B$, $B \to C$, and $C \to A$. The loss function penalizes "broken cycles"—instances where the path does not return to the original starting keypoint.
  4. Black-Box Differentiation: To backpropagate through discrete solvers (which have zero gradients almost everywhere), the authors use a black-box differentiation technique. This involves perturbing the solver's costs to estimate an informative gradient, allowing the network to learn from its matching errors.
The CLUM framework architecture, showing the flow from feature extraction (F.E) through combinatorial solvers (QAP) to the discrete cycle loss.

Key Insights

  • The Power of Triplets: While matching is typically a pairwise task, the triplet is the smallest unit required to define a cycle. This provides a natural, self-contained supervision signal.
  • Modularity: Because the framework treats the solver as a "black box," it is highly flexible. Users can swap a simple linear solver for a complex quadratic one (which accounts for geometric distances between pairs of points) without changing the underlying learning logic.
  • Discrete vs. Soft: Enforcing consistency on hard assignments encourages the model to produce more confident and accurate correspondences compared to methods that minimize entropy in soft assignment matrices.
Illustration of discrete cycle consistency across a triplet of images (A, B, C). The model ensures that matching points 1, 2, and 3 form a closed loop across the images.

Results and Evaluation

CLUM was evaluated on three major benchmarks: Pascal VOC, Willow Object Class, and SPair-71K. The results demonstrate a significant leap in unsupervised performance:

  • SPair-71K: Reached 43.1% accuracy, a substantial improvement over the previous unsupervised state-of-the-art (GANN) at 31.7%.
  • Pascal VOC (Filtered): Achieved 62.4% accuracy, surpassing the previous best of 57.1%.
  • Willow Object: Hit 95.6% accuracy, coming remarkably close to fully supervised models which typically hover around 97%.

The evaluation across "Filtered" (complete matching) and "Unfiltered" (incomplete matching) regimes in Pascal VOC further proved the model's robustness to occlusions and points without direct correspondences.

Conclusion and Future Work

CLUM demonstrates that discrete cycle consistency is a powerful tool for unsupervised learning in combinatorial tasks. While the use of combinatorial solvers increases computational costs during training, the gains in accuracy and confidence are significant. Future research may focus on optimizing the triplet selection process and extending this framework to other discrete problems, such as 6D pose estimation or 3D point cloud registration.

Summary updated

BibTeX
@inproceedings{tourani2024discrete,
  author = {Siddharth Tourani and Muhammad Haris Khan and Carsten Rother and Bogdan Savchynskyy},
  title = {{Discrete Cycle-Consistency Based Unsupervised Deep Graph Matching}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i6.28332},
}
Figure