Abstract
Bundle Adjustment (BA) is a fundamental technique in computer vision for refining 3D scene structures and camera parameters. However, its reliance on least-squares optimization makes it highly sensitive to outliers. This paper introduces a simple yet effective method to integrate robust cost functions, such as $L_q$ and Huber losses, into standard Levenberg-Marquardt (LM) solvers. By employing "attenuation factors" to modify the error vector, we demonstrate that existing BA pipelines can be made significantly more robust without requiring entirely new optimization frameworks. Our evaluation on the NotreDame dataset shows that these modifications maintain high reconstruction accuracy even with up to 40% outliers.
Introduction
In the field of Structure-from-Motion (SfM), Bundle Adjustment (BA) serves as the gold standard for final refinement. It traditionally minimizes the sum of squared re-projection errors between observed image points and projected 3D coordinates. While computationally efficient, this $L_2$ approach is notoriously fragile; a single incorrect point match (an outlier) can disproportionately influence the result due to the quadratic nature of the error penalty.
While robust cost functions like the $L_1$ norm or Huber loss are well-known solutions, they are often avoided in practice because they are perceived as difficult to implement within the highly optimized, Jacobian-based LM frameworks used by most engineers. This work bridges that gap by providing a "drop-in" modification for standard BA pipelines.
Methodology: The Attenuation Factor
The core innovation of this work is the realization that robust optimization does not require a new solver, but rather a transformation of the input to the existing one.
The "LM Trick"
Standard LM solvers minimize the squared norm of an error vector $E$. To minimize a different, robust cost function $\rho(E)$, we can define a modified error vector $E'$ such that $\|E'\|^2 = \rho(E)$. This is achieved by multiplying each error component $e_i$ by a scalar attenuation factor $\alpha_i$.
As shown in the figure above for standard Squared Error, the attenuation factor is constant. However, for robust functions, $\alpha_i$ decreases as the error magnitude increases, effectively "down-weighting" outliers so they do not dominate the optimization process.
Robust Cost Functions
The authors explore several robust formulations using this attenuation framework:
- $L_q$ Optimization ($1 \le q < 2$): Minimizes the sum of the $q$-th power of errors.
- Absolute Value (AV): A specific implementation for $L_1$ minimization.
- Isotropic Huber (IsoH): Unlike standard Huber loss, which treats $x$ and $y$ coordinates independently, this acts on the magnitude of the 2D error vector, providing a more physically intuitive model for camera sensors.
- Re-thresholded Huber: An iterative strategy that gradually decreases the Huber threshold $b$, allowing the solver to settle near a global minimum before applying stricter outlier rejection.
Experimental Results
The proposed methods were evaluated using a 20-view subset of the NotreDame dataset. To test robustness, synthetic outliers (up to 40%) were injected into the point projections.
Key Findings
- Superior Robustness: While standard $L_2$ methods failed significantly at high outlier levels, the $L_q$ and Huber variants maintained high accuracy in camera rotation and 3D point estimation.
- The Optimal Strategy: The Re-thresholded Isotropic Huber technique consistently outperformed other variants, combining the initial stability of least squares with the final precision of robust estimation.
- Initialization Stability: The $L_1$ (Absolute Value) method demonstrated remarkable convergence stability, reaching nearly identical solutions even when the starting parameters were significantly perturbed.
Conclusion
This paper demonstrates that robust bundle adjustment can be achieved through a remarkably simple modification to standard Levenberg-Marquardt solvers. By scaling error vectors with attenuation factors, practitioners can leverage the benefits of $L_q$ and Huber cost functions within their existing pipelines. Future work will focus on scaling these techniques to city-scale reconstructions and further automating hyperparameter selection for the re-thresholding process.
Summary updated