TL;DR
FAR (Flexible, Accurate, Robust) is a hybrid framework for 6DoF relative camera pose estimation that merges the high precision of classical geometry solvers with the robustness of deep learning. By leveraging a Transformer to intelligently weight and guide these two paradigms, FAR achieves state-of-the-art performance across diverse datasets while successfully recovering absolute translation scale.
What Problem Does This Paper Address?
Estimating the relative position and orientation (6DoF pose) between two images is a cornerstone of computer vision, essential for AR, robotics, and autonomous driving. Historically, researchers have split into two camps:
- Classical Solver-based: These methods find point correspondences and use geometric algorithms (like RANSAC + 5-point). They are incredibly precise but fragile; they fail when images have little overlap or large rotations, and they cannot determine absolute translation scale (e.g., they know you moved "forward," but not if it was 1 meter or 10).
- Learning-based: These use neural networks to regress pose directly. They are robust to difficult views and can predict scale, but they lack the "pinpoint" precision of geometric methods.
FAR bridges this gap, creating a system that is as precise as a solver when data is good, and as robust as a neural network when data is messy.
Methods
The heart of the system is a Pose Transformer that acts as a sophisticated arbitrator. It takes in either dense features or sparse correspondences and outputs two things: a direct pose regression ($T_t$) and a confidence weight ($w$).
The process happens in two rounds:
- Round 1: A classical solver generates an initial pose ($T_s$). The Transformer fuses its own prediction ($T_t$) with $T_s$ using the learned weight to create a "prior" pose, $T_1$.
- Round 2: This $T_1$ is used to bias a second solver pass. This Prior-Guided RANSAC uses the learned estimate to favor sampling better point hypotheses and to break ties in scoring when multiple models seem equally valid.
The final output is a weighted combination of the Transformer's regression and this updated, prior-guided solver output ($T_u$). Crucially, FAR uses the Transformer's predicted magnitude to scale the solver's unit-translation, solving the "no scale" problem of classical geometry.
Datasets
The authors evaluated FAR across four diverse benchmarks to prove its flexibility:
- Matterport3D: Real indoor environments with significant view changes.
- InteriorNet: A large-scale synthetic dataset of indoor home scenes.
- StreetLearn: Outdoor city-scale street view photos.
- Map-free Relocalization: Challenging user-collected videos of outdoor landmarks.
Key Insights and Ideas
- Regime-Aware Weighting: The Transformer learns to adapt to the data quality. As shown in Figure 2, when there are many reliable "inlier" correspondences, the network gives almost all the weight to the classical solver. When inliers drop, it relies more on its own learned prior.
- The Power of a Prior: In low-data regimes, standard RANSAC often fails because many incorrect models can have the same number of inliers. FAR uses the learned prior to "tie-break" these cases, significantly boosting robustness.
- Backbone Agnostic: FAR is "Flexible" because the Transformer can be swapped to handle different inputs—from dense feature maps (using an 8-Point ViT) to simple lists of point coordinates (using a Vanilla Transformer).
Key Results
FAR established a new state-of-the-art across all tested datasets:
- Precision & Scale: On Matterport3D, it reduced median translation error by 50% (from 0.52m to 0.25m) and nearly halved the mean rotation error compared to the best previous methods.
- Extreme Robustness: In stress tests with synthetic noise and outliers, the prior-guided solver maintained near-zero rotation error even when 87.5% of the input correspondences were outliers—a scenario where standard solvers degrade completely.
- Visual Success: Qualitative results show FAR succeeding in cases of extreme rotation (up to 90 degrees) where both pure learning and pure geometric baselines fail spectacularly.
Limitations and Future Work
- Inference Speed: The current implementation uses a RANSAC solver in the Kornia library, which is somewhat slow (3.3 iterations per second). The authors note that a more optimized C++ implementation could likely reach 15fps.
- Training Bias: The model was trained on Matterport3D, which consists of affluent homes. The authors acknowledge this could lead to poorer performance in more diverse or typical residential settings.
- Future Directions: Integrating this robust two-view estimator into full SLAM (Simultaneous Localization and Mapping) systems could significantly improve their stability during rapid camera movements.
Summary updated