Abstract
Establishing correspondences between images is a fundamental challenge in computer vision. While Graph Neural Networks (GNNs) like SuperGlue have achieved remarkable accuracy using all-to-all attention, their quadratic complexity ($O(N^2)$) limits their use in high-resolution or real-time applications. We present SGMNet (Seeded Graph Matching Network), a sparse architecture that utilizes a small set of reliable matches as message-passing bottlenecks. SGMNet reduces complexity to $O(NK)$, achieving state-of-the-art accuracy while being up to 7x faster and using 50% less memory than SuperGlue.
Introduction: The Challenge of Quadratic Complexity
Feature matching is the backbone of tasks like 3D reconstruction (SfM) and autonomous navigation (SLAM). Recent breakthroughs have leveraged GNNs to let every keypoint in one image "talk" to every keypoint in another. However, this dense attention mechanism scales poorly; detecting 10,000 keypoints requires computing 100 million potential connections.
SGMNet addresses this by observing that most connections in dense GNNs are redundant or noisy. By designing a network that is sparse by design, we can focus computation only on the most informative geometric relationships.
Methodology: The Seeded Graph Matching Network
The core innovation of SGMNet is a three-step "bottleneck" strategy for message passing, routing information through a set of $K$ seeds where $K \ll N$.
1. Seeding Module
The process begins by identifying a small set of reliable "seed" matches using a traditional nearest-neighbor search and ratio test. These seeds serve as the initial anchors for the graph.
2. Seeded GNN
This module facilitates information flow through the seeds in three phases:
- Attentional Pooling: All $N$ keypoints in an image send their local feature information to the $K$ seeds.
- Seed Filtering: Seeds exchange information within and across images to refine their features and predict an "inlier score," determining the likelihood of a correct match.
- Attentional Unpooling: Refined information is broadcast back from the seeds to the original $N$ keypoints.
3. Reseeding
To maximize accuracy, the model performs a second pass. Updated features are used to select even higher-quality seeds, and the process is repeated to further refine the final correspondences.
Experimental Evaluation
SGMNet was evaluated across several standard benchmarks, including YFCC100M (outdoor pose estimation), ScanNet (indoor environments), and the Aachen Day-Night challenge (extreme lighting changes).
Despite the massive reduction in computation, SGMNet achieves competitive or superior results. Notably, on the Aachen Day-Night challenge, it outperformed SuperGlue when paired with RootSIFT features. Unlike previous GNNs that struggle as keypoint counts increase, SGMNet’s performance scales gracefully, enabling much denser matching than previously practical.
Key Insights and Efficiency
- Sparsity is Sufficient: SGMNet proves that global geometry can be understood without calculating every possible connection.
- Seeds as Hubs: Reliable matches act as anchors; their geometric relationships help resolve ambiguity for other points.
- Weighted Unpooling: By predicting inlier scores, the model can "mute" the influence of poor initial seeds, making the system robust to early matching errors.
In terms of efficiency, SGMNet is a significant leap forward. When matching 10,000 features, it is 7 times faster than SuperGlue and consumes 50% less GPU memory, making it far more suitable for mobile and real-time deployment.
Conclusion and Future Work
SGMNet demonstrates that seeded sparsity is a powerful alternative to dense attention for feature matching. While the current implementation relies on a heuristic for initial seeding, future work may explore fully differentiable, learnable seeding mechanisms or tighter integration with feature detectors to create a unified, end-to-end matching pipeline.
Summary updated