Abstract
Image feature matching is a fundamental task in computer vision, yet traditional methods often struggle in texture-less regions or under significant viewpoint changes. This paper presents SemaGlue, a novel framework that incorporates high-level semantic context into the matching process. By introducing a Cross-Domain Alignment (CDA) block, SemaGlue effectively bridges the gap between abstract semantic features and precise geometric descriptors. Experimental results on benchmarks like MegaDepth and Aachen Day-Night demonstrate that SemaGlue significantly outperforms existing state-of-the-art matchers, particularly in challenging environments.
Introduction
The task of finding correspondences between images is essential for 3D reconstruction and autonomous navigation. Conventional algorithms typically focus on local geometric structures like edges and corners. However, these "myopic" descriptors are prone to failure in scenes with repetitive patterns, low texture (e.g., blank walls), or extreme lighting variations. In contrast, human perception leverages semantic understanding—recognizing objects and their spatial relationships—to resolve such ambiguities. SemaGlue mimics this capability by moving beyond simple semantic filtering to "semantic amalgamation," where semantic information directly enriches the local feature descriptors.
Methods
SemaGlue's architecture is designed to integrate semantic and geometric information seamlessly. It consists of four primary components:
- Semantic Extractor: A lightweight, frozen SegNext model extracts high-level semantic maps from the input images.
- Cross-Domain Alignment (CDA) Block: This critical component aligns abstract, viewpoint-invariant semantic features with sensitive, precise geometric features using a correlation mechanism. It ensures the semantic information is "applicable" to the geometric points.
- Semantic-Aware Fusion (SAF) Block: Aligned semantic priors are injected into local descriptors via an attention mechanism, allowing feature points to selectively focus on relevant semantic cues.
- Information Interaction Block: Utilizing self- and cross-attention, this block enables feature points to communicate within and across images to resolve ambiguities, similar to the LightGlue architecture.
Key Results
SemaGlue achieves state-of-the-art performance across multiple standard datasets, demonstrating the power of semantic stability across lighting and perspective shifts:
- Relative Pose Estimation: On the MegaDepth dataset, SemaGlue reached an AUC@5° of 45.79, a substantial improvement over LightGlue's 39.14.
- Visual Localization: In the Aachen Day-Night "Night" challenge, it achieved 86.7% accuracy at the 0.25m threshold, showcasing its robustness to extreme illumination changes.
- Generalization: Zero-shot tests on the Scannet dataset revealed a 6.1% improvement over LightGlue, indicating superior generalization to unseen indoor environments without retraining.
Conclusion
SemaGlue demonstrates that integrating semantic perception into the feature matching pipeline significantly enhances robustness and accuracy. The CDA block is pivotal in making semantic information applicable to geometric matching. While performance is currently tied to the underlying segmentation model, future research will explore more advanced foundation models (like DINOv2) to further improve semantic extraction and domain alignment.
Summary updated