Abstract
We propose a differentiable nonlinear least squares framework to account for uncertainty in relative pose estimation from feature correspondences. Specifically, we introduce a symmetric version of the probabilistic normal epipolar constraint, and an approach to estimate the co-variance of feature positions by differentiating through the camera pose estimation procedure. We evaluate our approach on synthetic, as well as the KITTI and EuRoC real-world datasets. On the synthetic dataset, we confirm that our learned covariances accurately approximate the true noise distribution. In real world experiments, we find that our approach consistently outperforms state-of-the-art non-probabilistic and probabilistic approaches, regardless of the feature extraction algorithm of choice.
Introduction
Estimating the relative pose—rotation and translation—between two camera frames is a fundamental challenge in computer vision, underpinning applications in autonomous driving, robotics, and augmented reality. Most traditional pipelines rely on identifying matching "keypoints" or feature correspondences between images. However, these correspondences are rarely perfect; factors like motion blur, lack of texture, or varying illumination introduce noise into the feature positions.
Standard algorithms often treat all keypoints as equally certain or employ binary classification to filter outliers. While some probabilistic methods have been proposed, they typically rely on hand-crafted heuristics to estimate uncertainty. This paper introduces a novel framework to learn the exact noise distribution of image features directly from data by differentiating through the camera pose estimation process, eliminating the need for explicit ground-truth noise labels.
Methodology: Differentiable Nonlinear Least Squares
The core of the proposed approach is a Differentiable Nonlinear Least Squares (DNLS) framework that integrates uncertainty prediction directly into the geometric optimization loop.
Uncertainty Prediction and Symmetric PNEC
A UNet-style neural network is employed to predict dense uncertainty maps (covariances) for every pixel in an image. To utilize these uncertainties effectively, the authors introduce a symmetric version of the Probabilistic Normal Epipolar Constraint (PNEC). Unlike previous formulations that only accounted for noise in one image of a pair, this symmetric version models uncertainty in both images, leading to a more robust geometric representation.
Differentiating through the Solver
The critical innovation lies in making the pose optimizer differentiable. By plugging the predicted uncertainties into the solver, the system can calculate the gradient of the final pose error with respect to the predicted uncertainties. This allows the network to learn by "proxy": it identifies which pixels consistently contribute to pose errors and learns to assign them higher uncertainty. The training can be supervised using ground-truth poses or self-supervised using cycle consistency across image sequences.
Experimental Evaluation
The framework was rigorously tested across synthetic and real-world benchmarks, including the KITTI Odometry dataset (outdoor driving) and the EuRoC MAV dataset (indoor drone flight).
Key Results
- Accuracy Improvements: On the KITTI dataset, the method achieved up to an 11% improvement in orientation accuracy compared to existing state-of-the-art probabilistic methods. It consistently outperformed non-probabilistic baselines like the Nister 5-point algorithm.
- Feature Agnosticism: The approach proved effective regardless of the underlying feature extraction method, showing gains for both traditional KLT tracks and modern deep-learning features like SuperPoint.
- Generalization: Models trained on outdoor KITTI sequences generalized well to the indoor EuRoC environment, suggesting the network learns fundamental visual cues for uncertainty rather than scene-specific details.
Conclusion and Future Work
By differentiating through the geometric solver, this research demonstrates that positional uncertainty can be learned effectively to improve visual odometry. While the computational overhead of differentiating through an optimization loop is a consideration for real-time applications, the gains in robustness and accuracy are significant.
Future research directions include integrating this uncertainty estimation into full SLAM (Simultaneous Localization and Mapping) systems to enhance global map consistency and addressing the sparse information flow by incorporating more global image context into the uncertainty prediction network.
Summary updated