Abstract
Homography estimation is a fundamental task in computer vision, essential for applications such as image stitching, SLAM, and robotic navigation. While recent "detector-free" matching methods have improved robustness in low-texture environments by producing dense correspondences, they often lack high-level semantic context, leading to mismatches between geometrically similar but semantically distinct regions. This paper introduces SRMatcher, a novel framework that integrates semantic information from Vision Foundation Models (VFMs) directly into the feature representation process. By utilizing a Semantic-aware Fusion Block (SFB), the model learns to recognize and match features based on their semantic identity across image pairs. Experimental results demonstrate that SRMatcher achieves a significant 11% improvement in accuracy over previous state-of-the-art methods on the HPatches benchmark and exhibits superior robustness to image manipulations.
Introduction
Calculating the geometric transformation between two images of the same scene—homography estimation—has traditionally relied on detecting and matching local keypoints. While effective in many scenarios, these methods struggle when distinct keypoints are scarce. Modern detector-free frameworks, such as LoFTR, address this by establishing dense matches across the entire image. However, these models primarily focus on local textures and spatial positions.
A persistent challenge in dense matching is the lack of semantic awareness. For instance, a model might incorrectly match a patch of a building in one image to a visually similar patch of a sidewalk in another. Previous attempts to incorporate semantics often treated it as a coarse filtering step (e.g., masking). In contrast, this work argues that semantic context should be deeply integrated into the feature descriptors themselves to guide matching at a fine-grained level.
Methodology
SRMatcher is designed as a plug-and-play framework that can enhance existing dense matching backbones like LoFTR, ASpanFormer, or GeoFormer. The architecture is built around three core components:
1. Semantic Extractor
The framework leverages a frozen DINOv2 model as a semantic extractor. As a Vision Foundation Model trained on massive datasets via self-supervision, DINOv2 provides high-dimensional features that capture a "universal" understanding of objects and scene layouts. These features serve as the semantic foundation for the matching process.
2. Semantic-aware Fusion Block (SFB)
The SFB is the central innovation of the framework, facilitating cross-image semantic integration. It utilizes a Semantic-guide Interactions Block (SGIB) powered by cross-attention mechanisms. In this setup, image features act as Keys and Values, while the semantic features from the paired image act as Queries. This architecture forces the model to attend to relevant semantic categories across the image pair, ensuring that a feature in Image A is informed by the semantic context of Image B.
3. Overlap-based Fine Matching
To handle challenging viewpoint shifts where points may fall outside local search windows, SRMatcher introduces a refinement step. This module calculates similarities across overlapping windows to maintain sub-pixel accuracy even under significant geometric transformations.
Experimental Setup
The model was trained on the Oxford-Paris dataset using a self-supervised approach, where random homographies were applied to images to generate ground-truth pairs. Evaluation was conducted across three distinct benchmarks:
- HPatches: The standard benchmark for homography, featuring extreme illumination and viewpoint variations.
- ISC-HE: A dataset containing highly manipulated images (rotations, watermarks, and cutouts) to test robustness against forgery-like edits.
- MegaDepth: Used to evaluate the model’s generalization to 3D relative pose estimation, moving beyond 2D planar surfaces.
Results and Discussion
SRMatcher demonstrates a substantial performance leap over existing methods. On the HPatches benchmark, using a GeoFormer backbone, the model increased the Area Under the Curve (AUC) at a 1-pixel threshold by 11% compared to the previous state-of-the-art.
Key insights from the results include:
- Semantics as a Descriptor: By using semantics to enhance the feature vector rather than just filtering the search space, the model successfully distinguishes between similar textures (e.g., bricks on a chimney vs. bricks on a wall).
- Robustness to Manipulation: On the ISC-HE dataset, SRMatcher outperformed all baselines, indicating that semantic awareness allows the model to ignore distracting elements like watermarks or background replacements that often confuse purely texture-based models.
- Generalization: The model achieved top-tier results on MegaDepth, suggesting that semantic-aware representations are beneficial for broader 3D vision tasks beyond simple 2D homography.
- Ablation Studies: Removing the SFB caused the AUC@1px to drop from 49.2 to 45.3, confirming that the integration of semantic features is the primary driver of the observed performance gains.
Conclusion and Future Work
SRMatcher represents a significant step forward in integrating high-level scene understanding with low-level geometric matching. By leveraging the power of Vision Foundation Models, the framework provides a more robust and accurate solution for image alignment.
However, the inclusion of large models like DINOv2 introduces computational overhead, potentially limiting real-time applications on edge devices. Furthermore, while DINOv2 is highly versatile, its performance may vary in niche domains like medical or satellite imagery. Future research will focus on optimizing the model for computational efficiency and exploring domain-specific semantic extractors to further enhance generalization.
Summary updated