Abstract
We consider the visual disambiguation task of determining whether a pair of visually similar images depict the same or distinct 3D surfaces (e.g., the same or opposite sides of a symmetric building). Illusory image matches, where two images observe distinct but visually similar 3D surfaces, can be challenging for humans to differentiate, and can also lead 3D reconstruction algorithms to produce erroneous results. We propose a learning-based approach to visual disambiguation, formulating it as a binary classification task on image pairs. To that end, we introduce a new dataset for this problem, Doppelgangers, which includes image pairs of similar structures with ground truth labels. We also design a network architecture that takes the spatial distribution of local keypoints and matches as input, allowing for better reasoning about both local and global cues. Our evaluation shows that our method can distinguish illusory matches in difficult cases, and can be integrated into SfM pipelines to produce correct, disambiguated 3D reconstructions.
Introduction: The Challenge of Visual Disambiguation
In computer vision, Structure from Motion (SfM) is a fundamental process for estimating 3D structures from 2D image sequences. This process relies heavily on finding matching "keypoints" between images. However, many real-world structures are highly symmetric or repetitive—such as the four identical faces of Big Ben or the two sides of the Arc de Triomphe.
Standard feature matching algorithms (e.g., SIFT or LoFTR) are frequently deceived by these "doppelgangers." They may find thousands of geometrically consistent matches between two different sides of a building, leading SfM pipelines to "collapse" the 3D model (merging distinct sides into one) or create "ghost" structures. While humans can often spot differences by observing subtle cues like specific brick patterns or background details, automated systems have historically struggled with this visual disambiguation task.
Methodology
The authors formulate visual disambiguation as a binary classification task: given a pair of images, does it depict the same 3D surface (positive) or two different but similar surfaces (negative)?
Input Representation and Architecture
Instead of feeding raw RGB images directly into a network, the proposed approach provides the model with spatial "hints." The input is a 10-channel tensor consisting of:
- Two RGB images.
- Binary masks indicating the locations of all detected keypoints.
- Binary masks indicating the locations of successful matches.
This representation allows the network to reason about where matches didn't occur—a critical negative signal. To facilitate comparison, the images are warped to a common coordinate frame using a rough affine transformation estimated from initial matches. A modified ResNet-18 backbone processes these inputs to output a match probability score.
SfM Integration
The classifier serves as a robust filter within the SfM pipeline. If the probability of a match between two images falls below a specific threshold, that edge is pruned from the SfM "scene graph" before the 3D reconstruction begins, preventing erroneous merges.
The Doppelgangers Dataset
To train and evaluate the model, the authors introduced the Doppelgangers Dataset, a large-scale benchmark specifically designed for disambiguation.
- Data Mining: The dataset was constructed using Wikimedia Commons, leveraging its hierarchical category system (e.g., "North facade" vs. "South facade") to automatically generate ground truth labels.
- Hard Negatives: To increase difficulty, the authors employed horizontal flipping augmentation. By flipping a positive pair, they create a "mirror-image" negative pair that is visually similar but geometrically distinct.
- Scale: The final dataset contains over 1 million visually similar image pairs across 222 world landmarks.
Key Results and Insights
The proposed method achieved an Average Precision (AP) of 95.2%, significantly outperforming baselines such as LoFTR (86.0%) and DINO (63.3%). When integrated into the COLMAP SfM pipeline, it successfully reconstructed 12 out of 16 "impossible" scenes that typically cause standard COLMAP to fail.
Insights
- The Power of "Missing" Information: The absence of matches is often more informative than their presence. By analyzing regions where one image has detail but the other does not, the model learns to identify doppelgangers.
- RGB is Not Enough: Training on raw RGB images alone yields poor results. The network requires the explicit spatial distribution of local features to distinguish global symmetry from local identity.
- Pairwise Reasoning: Surprisingly, reasoning about just two images at a time is often sufficient to resolve global reconstruction errors, whereas previous state-of-the-art methods required analyzing the entire image collection simultaneously.
Conclusion and Future Work
While highly effective, the model still faces challenges in extreme cases, such as nighttime shots with obscured background cues or extreme close-ups lacking global context. Future research may involve incorporating more sophisticated global context or 3D-aware features. Additionally, integrating pairwise reasoning more deeply into the incremental SfM process, rather than as a pre-processing filter, could further enhance robustness.
Summary updated