Marginalized Bundle Adjustment: Multi-View Camera Pose from Monocular Depth Estimates

Shengjie Zhu, Ahmed Abdelkader, Mark J. Matthews, Xiaoming Liu, Wen-Sheng Chu

TL;DR

This paper introduces Marginalized Bundle Adjustment (MBA), a novel approach to estimate camera poses in 3D vision by leveraging dense depth maps from Monocular Depth Estimation (MDE) models. MBA effectively handles the inherent noise and high variance in MDE outputs, achieving state-of-the-art or competitive results in Structure-from-Motion and camera relocalization tasks, even at large scales.

What Problem Does This Paper Address?

Structure-from-Motion (SfM) is a cornerstone of 3D computer vision, aiming to reconstruct scene geometry and camera poses from multiple images. Traditional SfM relies on sparse 2D feature correspondences, which can fail in textureless or parallax-limited scenes. Recent advances in Monocular Depth Estimation (MDE) offer dense depth maps from single images, providing a rich structural prior. However, integrating these dense, yet noisy, MDE outputs into SfM pipelines has been challenging. Existing methods often discard the dense information or struggle with its high error variance, limiting the potential of MDE for robust 3D reconstruction. This paper addresses the challenge of effectively utilizing dense, high-variance MDE depth maps for accurate multi-view camera pose estimation.

Methods

The core contribution is the Marginalized Bundle Adjustment (MBA) objective. Inspired by RANSAC's robust estimation principles, MBA tackles the high variance of MDE depth maps by leveraging their density. Instead of relying on discrete inlier counts like traditional RANSAC, MBA uses the density of projective residuals from MDE. The key insight is that the inlier count for a given error threshold can be approximated by the Cumulative Distribution Function (CDF) of the empirical residual distribution.

MBA formulates a robust objective function that maximizes the area under the curve (AUC) of this empirical CDF. This effectively marginalizes out the dependence on a specific error threshold, making it robust to varying levels of noise. The authors derive a differentiable surrogate loss for this objective, enabling gradient-based optimization.

The overall system pipeline involves:

  1. Preprocessing: Using pre-trained MDE and correspondence models to generate dense depth maps and pairwise correspondence maps.
  2. Initialization: Estimating camera intrinsics and initial extrinsics and depth affine corrections.
  3. Coarse-Stage SfM: Applying a graph decomposition strategy and a modified L2 norm objective to mitigate local minima issues.
  4. Fine-Stage SfM: Using the standard MBA objective over the full pose graph.

The method is designed to be flexible, allowing for different MDE models and robust loss functions.

Datasets

The authors evaluate their method on several standard benchmarks:

  • Structure-from-Motion (SfM): ETH3D [59], IMC2021 [6], ScanNet [14], and Tanks & Temples [30].
  • Camera Re-localization: 7-Scenes [60] and Wayspots [9].

They also compare their method against baselines on large-scale datasets like Mip-NeRF360 [4], NeRF-OSR [52], and others, demonstrating scalability.

Key Insights and Ideas

  • MDE as a Primary Source for SfM: The paper convincingly demonstrates that dense depth maps from general-purpose MDE models, despite their inherent noise, are sufficient for achieving state-of-the-art or competitive results in SfM and camera relocalization, challenging the notion that explicit feature matching is always necessary.
  • RANSAC-Inspired Robustness for Dense Data: MBA cleverly adapts RANSAC's robustness principles to dense, high-variance data by leveraging the statistical properties of residuals (CDF) rather than discrete inlier/outlier counts. This is a significant step towards making dense prediction models more directly usable in geometric vision tasks.
  • Marginalizing the Error Threshold: The core innovation of MBA is its ability to implicitly handle the choice of an error threshold by integrating over a range of thresholds, leading to a more stable and robust optimization.
  • Scalability of MDE-based SfM: The method is shown to scale to very large datasets (thousands of frames), outperforming previous learning-based SfM methods that often struggle with memory limitations.

Key Results

  • State-of-the-Art Performance: MBA achieves state-of-the-art or competitive results across various SfM and camera relocalization benchmarks, including ETH3D, IMC2021, ScanNet, and Wayspots.
  • Improved Accuracy: On ETH3D, MBA significantly outperforms previous methods, achieving 97.3% RRA and 90.2% RTA.
  • Scalability: The method successfully performs global BA on pose graphs with up to 8,000 frames, a scale that is prohibitive for many existing methods.
  • Flexibility: MBA demonstrates comparable performance to MAGSAC++ on two-view RANSAC, highlighting its versatility. It also shows that using different MDE models (e.g., ZoeDepth, UniDepth) leads to predictable performance improvements.

Limitations and Future Work

  • Runtime: The paper acknowledges that the use of first-order gradient descent for optimization leads to higher runtime compared to some traditional SfM pipelines like COLMAP. While this facilitates scaling to larger problems, further optimization could improve efficiency.
  • Integration with Feed-Forward Models: The authors suggest investigating a tighter integration of MBA with end-to-end feed-forward SfM models like VGGT for potentially even better performance.
  • MDE Model Dependence: While MBA is designed to be general, its performance is still influenced by the quality of the input MDE models. Future work could explore how to best leverage MDE models with varying strengths and weaknesses.

Summary updated

BibTeX
@inproceedings{zhu2026marginalized,
  author = {Shengjie Zhu and Ahmed Abdelkader and Mark J. Matthews and Xiaoming Liu and Wen-Sheng Chu},
  title = {{Marginalized Bundle Adjustment: Multi-View Camera Pose from Monocular Depth Estimates}},
  booktitle = {3DV},
  year = {2026},
  doi = {10.1109/3dv69130.2026.00051},
}

Loading related content...

Figure