Manuscript Offprint

arXiv:2608.29733

XDG: Accelerated Visual Disambiguation

Gonglin Chen, Ben Southall, Hanyuan Xiao, Wenbin Teng, Haolin Xiong, Tianwen Fu, Junyi Ouyang, Kshitij Singh Minhas, Supun Samarasekera, Rakesh Kumar, Yajie Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Gonglin Chen1,2^{1,2} Ben Southall3^{3} Hanyuan Xiao1,2^{1,2} Wenbin Teng1,2^{1,2}

Haolin Xiong1,2^{1,2} Tianwen Fu1,2^{1,2} Junyi Ouyang1,2^{1,2} Kshitij Singh Minhas3^{3}

Supun Samarasekera3^{3} Rakesh Kumar3^{3} Yajie Zhao1,2^{1,2}

1^{1}USC Institute for Creative Technologies 2^{2}University of Southern California 3^{3}SRI International

Figure

Figure 1. XDG efficiently removes visually plausible false matches while preserving reconstruction quality. Top left: an example of a doppelganger pair from two distinct parts of a scene (the louvre museum) from AerialMegaDepth [26]. The images share similar visual structure, but the circled details reveal inconsistent local geometry and appearance. The highlighted blue and green camera poses show where this pair is placed in each reconstruction. A vanilla COLMAP reconstruction is corrupted by multiple similar false matches, while XDG filters doppelganger edges and recovers a camera layout comparable to Doppelgangers++ (DG++) [31] and close to ground truth. Across pairwise and SfM benchmarks, XDG maintains comparable disambiguation performance compared to DG++ while significantly reduce the inference cost.

Abstract

Visual aliasing, also known as the doppelganger problem, remains a key challenge for structure-from-motion (SfM): visually similar but physically distinct surfaces can produce incorrect image matches and degrade reconstruction quality. Previous work mitigates this issue with geometry-aware foundation-model features, but places a heavy transformer classifier on top of the backbone, making large-scale disambiguation expensive. We introduce XDG, an efficient visual disambiguation model designed for scalable SfM. Our key observation is that a 3D foundation model already performs the cross-view geometric reasoning necessary for visual disambiguation, so doppelganger classi-

fication should adapt the backbone representation directly rather than relearn pair reasoning in a separate heavy decoder. XDG fine-tunes Depth Anything 3 with lightweight LoRA adapters and repurposes its camera tokens as compact pair-level classification tokens. A compact MLP head predicts whether a candidate image pair observes the same 3D surface. Extensive experiments show that XDG provides a favorable accuracy–efficiency tradeoff: it remains competitive with the state-of-the-art disambiguation method across pairwise and reconstruction benchmarks and delivers more than a 3× inference speedup. On individual LaMAR scenes containing thousands of images, XDG saves more than 10 hours of visual disambiguation processing. Code is available at https://github.com/xtcpete/xdg.

1. Introduction

Accurate 3D reconstruction from unordered image collections is fundamental to computer vision and increasingly critical for producing the geometric supervision required by emerging 3D foundation models. Modern structure-from-motion (SfM) systems rely on robust image retrieval, local feature matching, and geometric verification to build match graphs before reconstruction [22]. Despite these advances, SfM pipelines remain vulnerable to visual aliasing: distinct physical surfaces can share highly similar appearance, causing false image matches that pass local matching and contaminate the reconstruction. This failure mode is formalized as the doppelganger problem [2]. If such edges remain in the match graph, SfM can merge unrelated structures, register cameras incorrectly, or produce fragmented and distorted reconstructions, as shown in Fig. 1. A practical disambiguation system must therefore satisfy two competing requirements. It must be geometrically informed enough to distinguish true overlap from repeated appearance, while also being efficient enough to run on large SfM graphs containing thousands of candidate image pairs. Early work addressed this problem with a CNN-based binary classifier trained on labeled doppelganger pairs, where tentative correspondences from LoFTR [24] were used to estimate an affine warp before classification [2]. Doppelgangers++ (DG++) [31] improved generalization by leveraging MAST3R [11], a large 3D model, and then training transformer-based classifiers [25] on its features. DG++ already disambiguates many challenging cases effectively; its runtime, rather than its accuracy, becomes the practical bottleneck at scale. Its geometry-aware backbone and heavy transformer classifiers must be evaluated over every candidate edge, so processing scenes with thousands of images can require tens of hours.

In this work, we introduce XDG, an efficient geometry-aware doppelganger classifier designed for scalable SfM disambiguation. Our key idea is to adapt the 3D backbone directly and classify from its native representation with a lightweight classifier. XDG uses Depth Anything 3 (DA3) [13] as the geometry-aware backbone and inserts low-rank adaptation (LoRA) modules [9] into its attention and feed-forward projections. Instead of training a separate transformer decoder, XDG repurposes DA3's stage-wise camera tokens as compact pair-level classification tokens. These tokens already participate in DA3's alternating local and global feature interactions, so after LoRA fine-tuning, they efficiently summarize the relationship between views. A small MLP head then predicts whether the pair is a true match or a doppelganger edge.

This design differs from prior geometry-aware disambiguation in three ways. First, XDG adapts the foundation model itself to the doppelganger disambiguation task using parameter-efficient LoRA updates, while keeping the pre-

trained DA3 weights frozen. Second, XDG removes the heavy post-backbone transformer classifier and performs classification directly from compact camera tokens. Third, XDG evaluates both image orders for robustness to input order, but fuses the resulting tokens before classification, avoiding the two separate order-specific classification heads used in prior work [31]. Importantly, our ablation in Tab. 6 shows that backbone replacement alone is insufficient: using DA3 with a DG++-style dense-token transformer classifier provides only limited acceleration. The main efficiency gain instead comes from the proposed modules, which classify image pairs directly from the backbone's native camera tokens, enforce order consistency through symmetric token aggregation, and use a lightweight MLP head for final prediction.

We evaluate XDG on both pairwise visual disambiguation and downstream reconstruction. On the DG [2] and VisymScenes [31] pairwise benchmarks, XDG achieves accuracy comparable to the state-of-the-art method DG++ [31] while reducing per-pair inference time by more than 3×. Across multiple reconstruction benchmarks, including the unseen WRIVA [1] and LaMAR [21] datasets, XDG is competitive overall and significantly reduces total processing time. On the LaMAR scenes with 7.5K–9.3K images, XDG saves 10.85–13.91 hours of visual-disambiguation processing per scene compared with DG++. In summary, our contributions are:

  1. We propose XDG, an efficient geometry-aware classifier for removing doppelganger edges from SfM match graphs.

  2. We show that doppelganger classification does not require a heavy transformer classifier on top of a frozen 3D foundation model; instead, parameter-efficient LoRA adaptation with a simple MLP head can directly adapt the backbone to the task.

  3. We demonstrate that XDG achieves competitive pairwise disambiguation and downstream SfM reconstruction performance while substantially reducing disambiguation cost, a key advantage for large-scale scene reconstruction.

References (34)

  • WRIVA public data
  • Doppelgangers: Learning to disambiguate images of similar structures
  • RDD: Robust feature detector and descriptor using deformable transformer
  • Geometry-aware feature matching for large-scale structure from motion
  • SuperPoint: Self-supervised interest point detection and description
  • MASt3R-SfM: A fully-integrated solution for unconstrained structure-from-motion
  • Detector-free structure from motion
  • Correcting for duplicate scene structure in sparse 3D reconstruction
  • LoRA: Low-rank adaptation of large language models
  • Seeing double without confusion: Structure-from-motion in highly ambiguous scenes
  • Grounding image matching in 3D with MASt3R
  • MegaDepth: Learning single-view depth prediction from internet photos
  • Depth Anything 3: Recovering the Visual Space from Any Views
  • Focal loss for dense object detection
  • LightGlue: Local Feature Matching at Light Speed
  • Decoupled weight decay regularization
  • Global structure-from-motion meets feedforward reconstruction
  • Neighbourhood consensus networks
  • SuperGlue: Learning feature matching with graph neural networks
  • LaMAR: Benchmarking localization and mapping for augmented reality
  • Structure-from-motion revisited
  • A vote-and-verify strat-egy for fast spatial verification in image retrieval
  • LoFTR: Detector-free local feature matching with transformers
  • Attention is all you need
  • AerialMegaDepth: Learning aerial-ground reconstruction and view synthesis
  • VGGT: Visual geometry grounded transformer
  • DUST3R: Geometric 3D vision made easy
  • $\pi^{3}$: Permutation-equivariant visual geometry learning (opens arXiv in a new tab)
  • Network principles for sfm: Disambiguating repeated structures with local context
  • Doppelgangers++: Improved visual disambiguation with geometric 3D features
  • Distinguishing the indistinguishable: Exploring structural ambiguities via geodesic context
  • Lift: Learned invariant feature transform
  • What can missing correspondences tell us about 3D structure and motion? In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1–8, 2008
  • Disambiguating visual relations using loop constraints