Abstract
Two-view structure from motion (SfM) is the cornerstone of 3D reconstruction and visual SLAM (vSLAM). Many existing end-to-end learning-based methods usually formulate it as a brute regression problem. However, the inadequate utilization of traditional geometry model makes the model not robust in unseen environments. To improve the generalization capability and robustness of end-to-end two-view SfM network, we formulate the two-view SfM problem as a maximum likelihood estimation (MLE) and solve it with the proposed framework, denoted as DeepMLE. First, we propose to take the deep multi-scale correlation maps to depict the visual similarities of 2D image matches decided by ego-motion. In addition, in order to increase the robustness of our framework, we formulate the likelihood function of the correlations of 2D image matches as a Gaussian and Uniform mixture distribution which takes the uncertainty caused by illumination changes, image noise and moving objects into account. Meanwhile, an uncertainty prediction module is presented to predict the pixel-wise distribution parameters. Finally, we iteratively refine the depth and relative camera pose using the gradient-like information to maximize the likelihood function of the correlations. Extensive experimental results on several datasets prove that our method significantly outperforms the state-of-the-art end-to-end two-view SfM approaches in accuracy and generalization capability.
Introduction
Recovering 3D structure (depth) and camera motion (pose) from just two images is a foundational task for autonomous driving and robotics. Traditional methods rely on hand-crafted features or direct photometric matching, which often fail under variable lighting or dynamic scenes. Conversely, recent deep learning models often treat SfM as a brute-force regression problem. While powerful, these "black-box" models often fail to generalize to new environments because they do not fully respect the underlying geometric constraints of the physical world. DeepMLE bridges this gap by integrating traditional geometric Maximum Likelihood Estimation (MLE) principles directly into a deep learning architecture.
Methods
The DeepMLE framework consists of three main sub-modules designed to mimic classical optimization within a neural network architecture:
- Correlation Volume Calculation: The network extracts deep features and builds a 4D correlation volume. This volume represents the visual similarity between pixels in the first image and potential matches in the second, providing a rich basis for geometric reasoning.
- Uncertainty Prediction: Real-world images contain noise, occlusions, and moving objects that break standard geometric assumptions. DeepMLE models the likelihood of a match using a Gaussian + Uniform mixture distribution. The Gaussian component handles small noise and lighting shifts, while the Uniform component acts as a "sink" for outliers like moving pedestrians or vehicles. A U-Net-like network predicts these distribution parameters for every pixel.
- Deep Iterative Solver: Rather than a single-shot prediction, the model iteratively refines its depth and pose estimates. It uses "gradient-like information"—calculating how the likelihood map changes if the depth or pose is shifted—to guide the network toward the optimal solution.
Experimental Results
The model was evaluated on several major benchmarks, including KITTI (outdoor driving), vKITTI (synthetic data), DeMoN (diverse indoor/outdoor), and MVS (multi-view stereo).
DeepMLE achieved state-of-the-art accuracy on the KITTI dataset, outperforming existing end-to-end methods like DeepV2D in both depth and pose accuracy. A key strength of the model is its superior generalization: in a "zero-shot" test where the model was trained on virtual vKITTI and tested on real KITTI, DeepMLE beat specialized domain-adaptation methods by a significant margin. This suggests the model is learning actual geometry rather than just memorizing dataset-specific textures.
Qualitative results further demonstrate that DeepMLE handles dynamic objects (moving cars/vans) much better than previous state-of-the-art methods, which often produce distorted depth maps in the presence of motion. By explicitly modeling outliers through the mixture distribution, the network learns to ignore pixels that do not fit the rigid geometric model.
Conclusion
DeepMLE demonstrates that integrating traditional geometric principles with deep learning can lead to more robust and generalizable SfM systems. By parameterizing a robust MLE model with neural networks and using an iterative solver, the framework moves beyond simple regression toward a more mathematically grounded approach to 3D reconstruction. Future work may extend this two-view foundation to multi-view SLAM systems and further optimize the computational overhead of the iterative refinement process.
Summary updated