Abstract
Feature matching is a fundamental task in computer vision, often bottlenecked by the quadratic computational complexity of modern attention-based Graph Neural Networks (GNNs). We present SGMNet (Seeded Graph Matching Network), a sparse architecture that utilizes a small set of reliable "seed" correspondences to facilitate global communication between keypoints. SGMNet achieves competitive accuracy to state-of-the-art methods like SuperGlue while being up to 7x faster and using 50% less memory, making it suitable for high-resolution and real-time applications.
Introduction
Matching local features between images is critical for 3D reconstruction and visual localization. While traditional nearest-neighbor methods are efficient, they lack the global context necessary for robust matching in challenging environments. Recent advancements, notably SuperGlue, have addressed this by employing dense attention mechanisms where every keypoint interacts with every other keypoint. However, this $O(N^2)$ complexity becomes prohibitive as the number of keypoints $N$ increases.
SGMNet addresses this bottleneck by introducing a "seeded" communication structure. Instead of all-to-all interactions, information is routed through a small set of $K$ seeds, reducing complexity to $O(NK)$.
Methodology
The SGMNet architecture consists of two primary components: a Seeding Module and a Seeded GNN.
Seeding Module
The process begins by identifying $K$ reliable matches using a fast heuristic, such as nearest-neighbor search with a ratio test. These initial correspondences serve as "seeds" or hubs for information exchange.
Seeded GNN
The core of SGMNet is a three-step "sandwich" message-passing process within each block:
- Attentional Pooling: All $N$ keypoints aggregate their local features into the $K$ seeds.
- Seed Filtering: The seeds exchange information globally across images. Because $K \ll N$, this all-to-all communication is computationally inexpensive.
- Attentional Unpooling: The refined global context from the seeds is broadcast back to the original $N$ keypoints.
To maintain robustness, SGMNet predicts an inlier likelihood for each seed, using it to weight the information during unpooling. This ensures that outlier seeds do not degrade the final feature representations. The process can be iterated through "reseeding" to further refine matches.
Experimental Results
SGMNet was evaluated on several benchmarks, including YFCC100M, ScanNet, and Aachen Day-Night, using both handcrafted (SIFT) and learned (SuperPoint) features.
Efficiency and Performance
SGMNet demonstrates significant efficiency gains. For 10,000 keypoints, it is 7x faster than SuperGlue and reduces GPU memory usage by 50%. In a large-scale Structure-from-Motion (SfM) task on the "Alamo" scene (2,915 images), SGMNet completed matching in 5.5 hours, a dramatic improvement over SuperGlue's 42.5 hours, while registering more images (943 vs 916).
Accuracy
Despite its sparse connectivity, SGMNet maintains competitive accuracy. On the YFCC100M dataset, SGMNet achieved a pose estimation AUC@20° of 81.48 (compared to SuperGlue's 82.26) while providing higher precision (86.08% vs 81.08%). These results suggest that the sparse "hub" model effectively regularizes the matching process by focusing on prominent geometric structures.
Conclusion
SGMNet proves that dense all-to-all attention is not strictly necessary for high-quality feature matching. By leveraging a sparse seeded architecture, SGMNet breaks the quadratic complexity barrier, enabling efficient and robust matching for large-scale and real-time vision tasks. Future work may explore adaptive seeding strategies to further optimize performance across varying image complexities.
Summary updated