Multidirectional Conjugate Gradients for Scalable Bundle Adjustment

Simon Weber, Nikolaus Demmel, Daniel Cremers

Abstract

Researchers from the Technical University of Munich have introduced Multidirectional Conjugate Gradients (MCG), a novel iterative solver that speeds up large-scale Bundle Adjustment by up to 61%. By decomposing camera poses into subsets and generating multiple search directions simultaneously, MCG achieves faster convergence than the industry-standard Preconditioned Conjugate Gradients (PCG), particularly for complex, "dense" reconstruction problems.

Introduction

In 3D reconstruction—such as creating a digital model of a city from thousands of tourist photos—the most significant computational bottleneck is Bundle Adjustment (BA). BA is a massive optimization problem that jointly refines 3D point locations and camera parameters to minimize "reprojection error" (the distance between where a point is observed in an image and where the 3D model says it should be).

To solve this, engineers typically use the Levenberg-Marquardt (LM) algorithm, which requires solving a massive system of linear equations (the "normal equation") at every step. For large-scale problems, iterative solvers like Preconditioned Conjugate Gradients (PCG) are used. However, PCG often struggles and requires many iterations when the problem is "dense"—meaning many cameras see the same points—leading to slow reconstruction times.

Methodology

The proposed Multidirectional Conjugate Gradients (MCG) algorithm improves upon standard PCG through several key innovations designed to handle complex couplings in the optimization problem.

  1. Enlarged Search Space: Standard PCG looks for a solution by moving along one search direction at a time. MCG instead explores a subspace of multiple directions.
  2. Pose Decomposition: The algorithm divides the set of camera poses into $N$ subsets. It performs local preconditioned solves for each subset, generating $N$ distinct search directions in every iteration.
  3. Adaptive $\tau$-test: Using multiple search directions is computationally expensive. To balance this, the authors implemented a "$\tau$-test." If the solver is converging quickly, it sticks to standard PCG. If convergence slows below a threshold ($\tau$), it automatically switches to the multidirectional mode to power through difficult parts of the optimization.
  4. Sparsity Optimization: The authors leveraged the specific block-structure of the Schur complement matrix to ensure that multidirectional updates remain efficient.
Overview of the MCG method: pose decomposition into N subsets and adaptive switching between single and multidirectional search based on convergence rate.

Experimental Setup

The authors evaluated MCG on two major benchmarks for 3D reconstruction:

  • BAL (Bundle Adjustment in the Large): Includes datasets like Final-1936 (nearly 2,000 poses and 5 million observations).
  • 1dSfM: Real-world internet photo collections of famous landmarks, including Alamo, Notre-Dame, and Piazza del Popolo.
Sample reconstructions from the BAL and 1dSfM datasets used for evaluation.

These datasets vary significantly in "density"—the ratio of how many cameras observe the same points—which allowed the authors to test how MCG handles different levels of problem complexity.

Results and Discussion

Key Insights

  • Subspaces > Vectors: For domain-decomposable problems like BA, a single global search direction is often insufficient. By allowing the solver to explore local contributions from different groups of cameras, the algorithm finds the "downhill" path much faster.
  • Density is the Deciding Factor: The performance gain of MCG is directly correlated with the density of the Schur complement matrix. In sparse problems, PCG is already quite good; in dense problems where cameras are highly interconnected, MCG's ability to handle complex couplings shines.
  • Hyperparameter Robustness: The algorithm is not overly sensitive to the exact number of subsets ($N$) or the threshold ($ au$). A wide range of values provides a significant speedup, making it practical for production pipelines.

Performance Metrics

  • Linear Solver Speedup: MCG solved the normal equations up to 61% faster than PCG (notably on the Notre-Dame dataset).
  • Total Optimization Time: When integrated into the full Bundle Adjustment loop, the overall time-to-solution was reduced by up to 22%.
  • Iteration Efficiency: On the Final-1936 dataset, MCG was 39% faster than PCG for the linear solve, contributing to a 16% faster total BA resolution.

Conclusion and Future Work

While MCG reduces the number of iterations, each multidirectional iteration is more expensive than a PCG iteration. The $\tau$-test helps find the balance. Future work could involve GPU acceleration, as the block-parallel nature of MCG makes it a prime candidate for hardware-level speedups. Additionally, automated tuning of the subset count ($N$) based on hardware memory bandwidth and problem sparsity could further optimize performance.

Summary updated

BibTeX
@inproceedings{weber2021multidirectional,
  author = {Simon Weber and Nikolaus Demmel and Daniel Cremers},
  title = {{Multidirectional Conjugate Gradients for Scalable Bundle Adjustment}},
  booktitle = {GCPR},
  year = {2021},
  doi = {10.1007/978-3-030-92659-5\_46},
}
Figure