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

Existing feature matchers for 3D reconstruction struggle with extreme viewpoint changes, either producing too few keypoints (detector-based) or suffering from short, pair-dependent tracks (detector-free). This paper introduces a hybrid optimization framework that uses sparse detector-based matches as geometric anchors to iteratively guide and refine dense, detector-free correspondences via Sampson distance constraints. The result is significantly denser point clouds, longer track lengths, and higher camera pose accuracy, especially in demanding wide-baseline scenarios like registering aerial drones to ground-level cameras.

What Problem Does This Paper Address?

Structure-from-Motion (SfM) reconstructs 3D scenes from collections of 2D images. This requires matching points across views with two critical properties: density (enough 3D points to capture fine scene structure) and track length (the same physical point tracked across multiple images to constrain camera poses).

Today's feature matchers fall into two competing camps:

  • Detector-based methods (e.g., SuperPoint + SuperGlue) detect discrete keypoints and match them. They excel at multi-view track consistency but struggle when images lack texture or exhibit drastic viewpoint and scale shifts.
  • Detector-free methods (e.g., LoFTR, ASpanFormer) search the full image to produce dense matches. However, because they optimize matches pair-by-pair at sub-pixel levels without fixed keypoints, correspondence tracks break easily across three or more views.

In challenging wide-baseline scenarios—such as bridging unmanned aerial vehicle (UAV) imagery with ground-level photos—both approaches frequently fail, leaving fragmented camera trajectories and incomplete 3D reconstructions.

Methods

The authors propose a geometry-aware optimization module that marries the strengths of both paradigms:

[Image Pair]
    │
    ├──> Detector-Based (SuperPoint + SuperGlue) ──> Sparse Anchor Matches (Ms)
    │                                                      │
    │                                                      ▼
    │                                            [Fundamental Matrix (Fm)]
    │                                                      │
    └──> Detector-Free (ASpanFormer) ─────────────> [Geometry Optimization]
             Dense Feature Maps (fA, fB)             Iterative Sampson Distance
                                                     Confidence Reweighting
                                                           │
                                                           ▼
                                                [Dense Refined Matches] ──> COLMAP
  1. Candidate Retrieval & Extraction: Candidate image pairs are proposed using DINOv2 global image embeddings. Sparse anchor matches ($M_s$) are extracted with SuperPoint + SuperGlue, while dense feature maps ($f_c^A, f_c^B$) are produced with ASpanFormer.
  2. Epipolar Initialization: Sparse anchor points initialize the two-view epipolar geometry (the fundamental matrix $F_m$) via the normalized 8-point algorithm.
  3. Iterative Geometric Optimization:
  4. A correlation confidence matrix $P_c$ is calculated using dual-softmax over dense feature dot products.
  5. For all matches, the Sampson Distance (a first-order approximation of epipolar reprojection error) is computed.
  6. Correspondences that violate epipolar constraints receive a confidence penalty: $$P_d(i, j) = \text{sigmoid}(\text{relu}(\tau - d(i, j)))$$
  7. The confidence matrix is iteratively updated ($P_c \leftarrow P_c \cdot P_d \cdot w$) and min-max normalized over 10 iterations.
  8. Refinement & Reconstruction: Final coarse correspondences are extracted using mutual nearest neighbor (MNN) criteria, refined to sub-pixel accuracy via a correlation-based refinement block, and fed directly into COLMAP.

Datasets

  • IMC 2021 Phototourism Benchmark: 9 outdoor scenes (100 images each) evaluated on relative pose estimation AUC.
  • ScanNet: 15 indoor test sequences with significant perspective and illumination shifts.
  • HPatches: 108 sequences used for planar homography estimation ablations.
  • Two New Air-to-Ground Datasets: Collected specifically to benchmark extreme scale and viewpoint changes:
  • Set 1: 16 UAV images + 21 ground images (37 images total).
  • Set 2: 16 UAV images + 24 ground images (40 images total). Aerial views are cropped into overlapping sub-regions (quadrants plus center) to bridge extreme scale differences.

Key Insights and Ideas

  • Geometry as a regularizer during matching: Rather than relying purely on post-hoc geometric verification (like standard RANSAC after matching), enforcing epipolar constraints directly into the matching confidence matrix prevents ambiguous, repeating textures from dominating early on.
  • Anchors fix the detector-free track-length problem: Providing explicit geometric priors from detector-based "anchor" points guides the detector-free matcher toward globally consistent epipolar lines, allowing the resulting dense matches to track reliably across 3+ frames.
  • Complementary synergy: Detector-based priors supply global rigidity, while detector-free features fill in low-texture gaps where interest-point detectors fail.

Key Results

  • Standard Benchmarks: On IMC 2021 outdoor scenes, the method achieves 69.1% AUC@3° and 90.1% AUC@10°, beating state-of-the-art ALIKED + LightGlue (66.0% / 87.6%). On ScanNet indoor scenes, it reaches 46.0% AUC@3° (vs. 44.0% for ALIKED + LightGlue and 28.5% for RoMa).
  • Extreme Air-to-Ground Matching:
  • On Air-to-Ground Set 2, all baseline methods (SIFT, SuperPoint+SuperGlue, ALIKED+LightGlue) failed to unify the scene, splitting it into two disconnected models (16 aerial / 24 ground). The proposed method was the only one to successfully register all 40 images into a single coordinate system.
  • Reconstructed 3D point cloud density increased dramatically: on Set 1, the method yielded 53.2K 3D points (compared to 12.5K for ALIKED+LG and 22.1K for DKM).

Limitations and Future Work

  • Computational Overhead: Processing dense feature maps through transformer architectures and optimizing pairwise matches is slow (averaging ~1,769 seconds for matching and ~1,478 seconds for reconstruction on a 100-image dataset). The authors suggest integrating faster backbones like Efficient LoFTR.
  • Sensitivity to Initial Anchors: If the initial detector-based backbone fails to find at least 10 reliable anchor matches, the initial fundamental matrix must fall back on unverified dense matches, which can lead to bad initialization in extreme failure cases.
  • Downstream Multi-View Optimization: The authors highlight integrating multi-view featuremetric adjustments (e.g., pixSfM) as a promising next step to further polish final poses.

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