Square Root Marginalization for Sliding-Window Bundle Adjustment

Nikolaus Demmel, David Schubert, Christiane Sommer, Daniel Cremers, Vladyslav Usenko

Introduction

Visual-Inertial Odometry (VIO) is a cornerstone of modern robotics and AR/VR, enabling devices to track their movement through space using cameras and inertial sensors. To maintain real-time performance, these systems typically use a sliding window approach, optimizing only the most recent states and "marginalizing" older ones into a prior. However, the industry-standard Schur Complement method operates on the Hessian matrix ($H = J^T J$), which squares the condition number of the problem and necessitates double-precision (64-bit) arithmetic to remain stable.

The Numerical Precision Bottleneck

Standard VIO systems often fail when implemented with single-precision (32-bit) floats. The squaring of the condition number makes the system highly sensitive to numerical noise, leading to "negative eigenvalues" in the Hessian—a physical impossibility that causes the estimator to diverge or crash. While 32-bit math is significantly faster and more power-efficient, it has historically lacked the headroom required for stable VIO.

The Square Root VIO ($\sqrt{VIO}$) Approach

The authors introduce a complete square root estimator that avoids explicitly forming the Hessian. Their method rests on three technical pillars:

  1. Landmark Elimination via Nullspace Projection: Instead of the Schur Complement, they use QR decomposition to project Jacobians onto a nullspace, which is numerically more stable and faster in single precision.
  2. Square Root Prior Storage: The marginalization prior is stored and updated as a matrix square root.
  3. Specialized QR Marginalization: A novel "specialized flat QR decomposition" allows for efficient updates to the square root prior when poses are removed from the window.

This formulation is mathematically equivalent to the standard Schur Complement but remains stable even when the system is rank-deficient (e.g., when visual information is insufficient to fully determine the state).

Key Results and Performance

The proposed $\sqrt{VIO}$ was evaluated on the EuRoC MAV, TUM VI, and KITTI benchmarks, demonstrating significant improvements in both speed and robustness.

Numerical Stability and Accuracy

As shown in Figure 1, standard VIO in single-precision (VIO-32) quickly diverges, whereas the square root version ($\sqrt{VIO}$-32) maintains the same high accuracy as double-precision versions. The plot of the minimum singular value ($\sigma_{min}$) illustrates how the square root form prevents the numerical collapse that plagues the baseline.

Trajectory comparison and numerical stability (minimum singular value) of $\sqrt{VIO}$ vs. standard VIO in single precision.

Computational Efficiency

By enabling safe 32-bit computation, $\sqrt{VIO}$ achieves a 36% speedup over the double-precision baseline. On a standard desktop CPU, it can process the EuRoC dataset 7.1x faster than real-time. This speedup is largely due to the ability of modern CPUs to use SIMD (Single Instruction, Multiple Data) instructions more effectively with 32-bit values.

Robustness to Drift

The square root formulation is also more robust to numerical drift in unobservable directions, such as absolute position and yaw. Figure 6 shows that $\sqrt{VIO}$ maintains significantly lower energy errors ($\Delta E_m$) across different degrees of freedom compared to the standard Hessian-based approach.

Energy error ($\Delta E_m$) across different degrees of freedom, demonstrating the superior numerical robustness of the square root formulation.

Conclusion

By shifting from Hessian-based marginalization to a square root Jacobian-based approach, the authors prove that high-accuracy VIO is possible using single-precision arithmetic. This advancement not only improves performance on current hardware but also paves the way for VIO implementation on specialized low-power chips where 64-bit support is limited.

Summary updated

BibTeX
@inproceedings{demmel2021square,
  author = {Nikolaus Demmel and David Schubert and Christiane Sommer and Daniel Cremers and Vladyslav Usenko},
  title = {{Square Root Marginalization for Sliding-Window Bundle Adjustment}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01301},
}
Figure