Generalized Weiszfeld Algorithms for Lq Optimization

Khurrum Aftab, Richard I. Hartley, Jochen TrumpfIEEE TPAMI 2015 · DOI

Introduction

Robust optimization is a cornerstone of computer vision, particularly in tasks like 3D reconstruction where sensor noise and outliers are prevalent. While $L_2$ optimization (least squares) is computationally convenient, it is notoriously sensitive to outliers. $L_1$ optimization, or finding the geometric median, offers significant robustness but introduces non-differentiability. This paper presents a generalization of the classic Weiszfeld algorithm to $L_q$ optimization ($1 \le q < 2$) on both Euclidean spaces and Riemannian manifolds, providing a bridge between efficiency and robustness.

Problem Formulation: The Need for Robustness

In many computer vision problems, we seek a model $x$ that minimizes the distance to a set of measurements $y_i$. The $L_q$ cost function is defined as: $$f(x) = \sum_{i=1}^n d(x, y_i)^q$$ For $q=2$, this is the standard mean. For $q=1$, it is the geometric median. The $L_q$ norm for $1 \le q < 2$ is inherently "outlier-rejection" friendly. As $q$ approaches 1, the influence of large errors is dampened compared to the quadratic penalty of $L_2$. Choosing $q$ slightly larger than 1 (e.g., $q=1.1$) maintains the robustness of $L_1$ while ensuring the cost function remains differentiable everywhere, avoiding the numerical "stuckness" associated with pure $L_1$ costs.

The Generalized $L_q$ Weiszfeld Algorithm

The authors propose an Iteratively Reweighted Least Squares (IRLS) approach. Instead of solving the non-linear $L_q$ problem directly, the algorithm iteratively solves a simpler weighted $L_2$ sub-problem.

At each iteration $t$, weights are assigned based on the distance from the current estimate: $$w_i^t = d(x^t, y_i)^{q-2}$$ Points further away (potential outliers) receive lower weights. On a Riemannian manifold, such as the space of 3D rotations $SO(3)$, the algorithm utilizes the Logarithm map to project points into a flat tangent space, performs the weighted average there, and uses the Exponential map to return the result to the manifold.

Iterative optimization on a Riemannian manifold using tangent space projections.

The paper provides a theoretical proof of convergence to the global minimum on manifolds with non-negative sectional curvature, provided the data points lie within a specific radius (e.g., $\pi/2$ for $SO(3)$).

Application: Rotation Averaging

A primary application of this framework is rotation averaging, a critical step in Structure-from-Motion (SfM) pipelines. The paper distinguishes between two main tasks:

  • Single Rotation Averaging: Finding a single rotation that best fits multiple relative measurements.
  • Multiple Rotation Averaging: Determining the absolute orientations of multiple cameras from a graph of noisy relative rotations between image pairs.
Comparison between single and multiple rotation averaging in 3D reconstruction.

While single rotation averaging is provably global under this framework, multiple rotation averaging is non-convex. However, the $L_q$ Weiszfeld approach serves as an efficient and robust solver in practice, especially when initialized with a spanning tree.

Experimental Results

The algorithm was evaluated on the Notre Dame Cathedral dataset, involving 595 images and over 42,000 relative rotation pairs.

  • Robustness: In synthetic tests with 40% outliers, the $L_1$ version maintained low median error, whereas $L_2$ error spiked significantly.
  • Efficiency: The algorithm is highly performant, computing absolute rotations for the entire Notre Dame dataset in just 36 seconds for $L_1$ on a standard laptop.
  • Initialization: The authors demonstrated that $L_1$ averaging provides a superior initialization for final bundle adjustment compared to standard $L_2$ methods.

Conclusion

The Generalized Weiszfeld Algorithm offers a robust, provably convergent, and computationally efficient method for $L_q$ optimization on manifolds. By bridging the gap between $L_1$ and $L_2$ norms, it provides a practical tool for handling outliers in large-scale geometric computer vision tasks. Future work includes extending the framework to other manifolds and automating the selection of the optimal $q$ parameter based on data noise characteristics.

Summary updated

BibTeX
@article{aftab2015generalized,
  author = {Khurrum Aftab and Richard I. Hartley and Jochen Trumpf},
  title = {{Generalized Weiszfeld Algorithms for Lq Optimization}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2015},
  doi = {10.1109/tpami.2014.2353625},
}
Figure