Geometry-Aware Feature Matching for Large-Scale Structure from Motion

Gonglin Chen, Jinsen Wu, Haiwei Chen, Wenbin Teng, Zhiyuan Gao, Andrew Feng, Rongjun Qin, Yajie Zhao

TL;DR

This paper introduces a geometry-aware feature matching method that bridges the gap between detector-based and detector-free matching techniques for Structure from Motion (SfM). By incorporating sparse detector-based matches as geometric anchors and iteratively optimizing dense matches using the Sampson Distance, the approach achieves highly accurate camera poses and dense 3D reconstructions, even in extreme large-baseline scenarios like air-to-ground imaging.

What Problem Does This Paper Address?

Reconstructing 3D scenes from unordered image collections—a process known as Structure from Motion (SfM)—heavily relies on finding accurate feature correspondences across different views. Currently, the field is split into two paradigms:

  1. Detector-based methods: Extract distinct keypoints first, then match them. They are robust but produce sparse matches and struggle in textureless regions or under drastic viewpoint changes.
  2. Detector-free methods: Match dense feature maps directly in an end-to-end manner. While they provide much denser correspondences, the exact sub-pixel locations of their matches change depending on the specific image pair. This pair-dependency leads to a "short track length" problem (illustrated in Figure 3 from the paper), making it difficult to track a single point across multiple views and causing traditional SfM pipelines to fail.

This problem becomes exceptionally severe in large-baseline scenarios, such as registering unmanned aerial vehicle (UAV) imagery with ground-level photos, where view overlap is minimal and perspective changes are extreme.

Methods

The authors propose a hybrid pipeline that combines the strengths of both paradigms through a novel Geometry-Aware Optimization Module.

Figure 4. An overview of our pipeline for SfM reconstruction. 1. the pipeline runs image retrieval based on global embeddings generated by dinov2 [29]. 2. A backbone module takes image pairs as input. The image pairs will be processed by a Detector-Free Backbone and a Detector-Based backbone. 3. A geometry-aware optimization module is applied to iteratively optimize the fundamental matrix and matches with anchor points from detector-based methods. 4. The final matched coarse points are refined using a correlation-based refinement block. 5. Final refined matches are then fed into COLMAP [38, 39] for SfM.

The workflow operates as follows:

  1. Dual Backbones: An input image pair is processed by both a detector-based backbone (e.g., SuperPoint + SuperGlue) to get robust sparse matches ($M_s$) and a detector-free backbone (e.g., ASpanFormer) to extract dense feature maps.
  2. Geometric Initialization: The sparse matches ($M_s$) serve as reliable "anchor points" to estimate an initial fundamental matrix ($F_m$), which defines the epipolar geometry between the views.
  3. Iterative Optimization Loop: Instead of naively filtering out bad matches at the end, the module uses the fundamental matrix to enforce geometric constraints during the matching process. It calculates the Sampson Distance (a first-order approximation of reprojection error) for potential dense matches. Matches that violate the epipolar geometry are penalized, updating the dense match confidence matrix. The fundamental matrix and the confidence matrix are then iteratively re-estimated and refined over multiple steps.
  4. Fine Refinement & SfM: The optimized semi-dense matches are brought to pixel-level accuracy using a correlation-based refinement block and finally fed into COLMAP to produce the 3D reconstruction.

Datasets

The method was evaluated on both standard benchmarks and challenging custom datasets:

  • IMC Phototourism 2021: A benchmark encompassing large-scale outdoor scenes with significant illumination and viewpoint variations.
  • ScanNet: A large-scale dataset containing monocular indoor sequences with ground-truth poses.
  • Air-to-Ground Datasets (New): The authors collected two unique, challenging datasets combining UAV aerial images and ground-view images (37 images and 40 images, respectively) to test extreme baseline transitions.

Key Insights and Ideas

  • The Hybrid Synergy: Rather than treating detector-based and detector-free methods as competitors, this paper shows they are complementary. Detector-based matches provide the geometric "compass" (fundamental matrix), while detector-free methods provide the raw material (dense feature maps).
  • In-Loop Geometric Verification: Traditional pipelines use geometric verification (like RANSAC) purely as a post-processing filter to discard bad matches. This paper injects geometry directly into the matching cost function, allowing the system to actively correct and reassign matches in ambiguous or repeating texture regions.

Key Results

The proposed method consistently outperformed state-of-the-art matchers in camera pose accuracy and reconstruction completeness.

  • Outdoor Performance (IMC 2021): Achieved a pose estimation Area Under the Curve (AUC) of 69.1 at @3°, outperforming the state-of-the-art detector-based combination ALIKED + LightGlue (66.0) and dense matchers like DKM (42.3).
  • Indoor Performance (ScanNet): Led the pack with an AUC of 46.0 at @3°.
  • Extreme Baselines (Air-to-Ground): In the highly challenging air-to-ground test, competing dense matchers like DKM failed entirely or generated distorted models due to a lack of multi-image tracks. The proposed method successfully registered all images, generating significantly denser point clouds (e.g., 74.4K points vs DKM's 48.0K points on Set 2) while maintaining low reprojection errors.

Limitations and Future Work

The primary bottleneck of this approach is computational efficiency. Because it relies on heavy transformer-based architectures and an iterative optimization loop over dense correspondence fields, the runtime is substantial. For a standard site of roughly 100 images, the feature matching step takes an average of 1,769 seconds (~29.5 minutes) on an RTX 4090 GPU.

The authors suggest that replacing the dense backbone with highly efficient alternatives, such as Efficient LoFTR, could alleviate this issue, albeit with a slight trade-off in matching accuracy. Additionally, integrating post-reconstruction multi-view refinement frameworks (like pixSfM) represents a promising avenue for further boosting accuracy.

Summary updated

BibTeX
@inproceedings{chen2025geometry,
  author = {Gonglin Chen and Jinsen Wu and Haiwei Chen and Wenbin Teng and Zhiyuan Gao and Andrew Feng and Rongjun Qin and Yajie Zhao},
  title = {{Geometry-Aware Feature Matching for Large-Scale Structure from Motion}},
  booktitle = {3DV},
  year = {2025},
  url = {https://openreview.net/forum?id=E3tNxq8eHh},
}
Figure