Abstract
Bundle Adjustment (BA) is a fundamental optimization problem in 3D computer vision. Traditionally, it is solved using the Schur complement trick, which requires double-precision arithmetic for numerical stability. This paper introduces Square Root Bundle Adjustment ($\sqrt{BA}$), a novel formulation that utilizes QR-decomposition-based nullspace marginalization. By operating directly on the Jacobian matrix, $\sqrt{BA}$ avoids the numerical "stiffness" associated with squaring the condition number in the Hessian. This improved stability enables the use of single-precision (32-bit) floats, delivering a 2x speedup over standard double-precision solvers while maintaining equivalent accuracy on large-scale datasets.
Introduction: The Conditioning Problem in Bundle Adjustment
Bundle Adjustment simultaneously refines camera parameters and 3D landmark positions to minimize reprojection error. For decades, the industry standard has been the Schur complement trick, which marginalizes out landmark variables to solve a reduced camera system. However, this requires forming the "normal equations" ($J^T J$), which mathematically squares the condition number of the system, making it numerically prone to rounding errors.
To compensate, researchers almost always use double-precision (64-bit) floating-point numbers. The downside is that double precision is slower, consumes more memory, and does not fully exploit modern hardware—like GPUs or specialized mobile processors—optimized for single-precision (32-bit) math. The challenge addressed by this work is to develop a solver robust enough for single-precision execution without losing convergence quality.
Methods: Nullspace Marginalization via QR Decomposition
The core innovation of $\sqrt{BA}$ is the shift from Hessian-based marginalization to Jacobian-based Nullspace Marginalization (NM). Instead of forming the Hessian, the method applies QR decomposition directly to the landmark blocks of the Jacobian ($J_l$).
As illustrated in the figure above, the residual is projected onto the nullspace of the landmarks using a sequence of Givens rotations. This isolates the camera pose subproblem in a numerically stable way. Key advantages of this approach include:
- The "Square Root" Advantage: By avoiding $J^T J$, the solver works with the "square root" of the system's sensitivity. This improved conditioning is what allows 32-bit floats to perform as well as 64-bit floats in traditional solvers.
- Efficient Backtracking: In the Levenberg-Marquardt algorithm, if a step is rejected, the damping factor must be adjusted. $\sqrt{BA}$ allows "undoing" and "redoing" damping using stored Givens rotations, making these adjustments significantly cheaper than recomputing a Schur complement.
- Structural Stability: Standard Schur complement solvers in single precision often fail because the reduced camera system becomes numerically indefinite. $\sqrt{BA}$ is structurally guaranteed to avoid this, ensuring the optimizer never gets stuck due to math errors.
Experimental Evaluation and Key Results
The authors evaluated $\sqrt{BA}$ using the Bundle Adjustment in the Large (BAL) benchmark, encompassing 97 datasets ranging from small 16-camera sequences to massive reconstructions like the venice dataset, which contains 1,778 cameras and roughly one million landmarks.
The results demonstrate significant improvements in both speed and robustness:
- Speed vs. Accuracy: $\sqrt{BA}$ in single precision ($\sqrt{BA}$-32) is approximately twice as fast as its double-precision counterpart ($\sqrt{BA}$-64) while maintaining nearly identical accuracy.
- Beating the State-of-the-Art: On the largest venice dataset, $\sqrt{BA}$ reached a 1% cost tolerance 42% faster than the best competing iterative methods in the popular Ceres Solver.
- Stability: While standard Schur complement solvers (like
explicit-32) frequently required backtracking or failed to converge on 84 out of 97 problems when using single precision, $\sqrt{BA}$ never encountered these stability issues.
Discussion and Future Work
While $\sqrt{BA}$ offers superior stability and speed, it can have higher memory overhead on very dense problems where landmarks have many observations, as it stores landmark blocks that grow quadratically with observation density. This led to memory limitations on the absolute largest BAL dataset (final13682).
Future research will explore the application of this "square root" approach to Incremental SLAM (Simultaneous Localization and Mapping), where real-time performance on low-power mobile hardware is critical and the sparse problem structure is naturally well-suited to the $\sqrt{BA}$ formulation.
Summary updated