ShapeFit and ShapeKick for Robust, Scalable Structure from Motion

Thomas A. Goldstein, Paul Hand, Choongbum Lee, Vladislav Voroninski, Stefano Soatto

TL;DR

This paper introduces ShapeFit, a novel convex optimization framework for robustly recovering camera locations from pairwise direction estimates, even with adversarial outliers. Their efficient implementation, ShapeKick, achieves state-of-the-art accuracy with an order-of-magnitude speedup, making it suitable for real-time applications.

What Problem Does This Paper Address?

Structure from Motion (SfM) is a fundamental computer vision task that reconstructs 3D scenes and camera poses from a collection of images. A typical SfM pipeline involves several stages, with a critical one being the reconciliation of relative camera poses (position and orientation) into a globally consistent estimate. This stage, often referred to as "location recovery," is particularly vulnerable to errors introduced in earlier stages, such as inaccurate feature matching. These errors can manifest as "outliers" that significantly degrade the final reconstruction. Existing methods often struggle with these outliers, leading to collapsed solutions or convergence to suboptimal results. This paper aims to address this by developing a method that can reliably recover camera locations even in the presence of a significant fraction of corrupted pairwise direction observations.

Methods

The core of the paper is the ShapeFit algorithm, a convex program designed for location recovery from pairwise direction observations. ShapeFit leverages the fact that relative camera directions are invariant to global translation and scale. The problem is formulated as minimizing a sum of squared deviations from the estimated directions, subject to constraints that resolve the scale and translational ambiguities. A key innovation is the objective function's structure, which is robust to outliers by using a form of L1 norm on unsquared distances.

To make ShapeFit practical, the authors propose efficient numerical implementations: ShapeFit and ShapeKick. ShapeKick is a highly optimized version that achieves significant speedups. These implementations utilize the Alternating Direction Method of Multipliers (ADMM) for efficient optimization. The paper also mentions a "kicking" procedure to accelerate ADMM convergence for real-time applications, though it may introduce slightly higher numerical errors.

Datasets

The authors validate their methods on:

  • Synthetic Data: Generated according to an Erdős-Rényi random graph model with controlled noise and corruption levels. This allows for precise evaluation of theoretical guarantees.
  • Real-World Datasets: 13 benchmark datasets containing irregular collections of images, as used in previous SfM literature.

The paper does not introduce new benchmark datasets but rather uses existing ones to compare their method against state-of-the-art approaches.

Key Insights and Ideas

  • Convex Optimization for Robustness: Framing location recovery as a convex optimization problem provides theoretical guarantees of exact recovery, even with adversarial outliers. This is a significant departure from many heuristic or iterative methods that can get stuck in local minima.
  • L1-like Objective for Outlier Tolerance: The specific form of the objective function in ShapeFit inherently handles outliers by penalizing deviations less severely than a standard L2 norm would, effectively "ignoring" the most corrupted measurements.
  • Order-of-Magnitude Speedup: The development of ShapeKick, an efficient ADMM-based implementation, demonstrates that robust methods don't necessarily have to be computationally prohibitive, achieving speedups that enable real-time applications.
  • Unified Framework: ShapeFit is presented not just as a standalone algorithm but as a flexible framework that can accommodate and potentially speed up other location recovery approaches.

Key Results

  • Exact Recovery Guarantees: Theoretical results show that ShapeFit can achieve exact recovery with high probability for i.i.d. Gaussian camera locations, even with a significant fraction of adversarially corrupted pairwise directions, provided the graph is sufficiently dense.
  • Competitive Accuracy: On real-world datasets, ShapeFit and ShapeKick achieve reconstruction errors comparable to state-of-the-art methods.
  • Significant Speedup: ShapeKick is consistently at least 10X faster than previously published location recovery methods, and in some cases, the speedup reaches 10-50X.
  • Robustness to Noise and Corruption: Experiments show that ShapeFit exhibits graceful degradation of performance with increasing noise and corruption, maintaining meaningful recovery where other methods might fail.

Limitations and Future Work

  • Theoretical Assumptions: The theoretical guarantees are primarily shown for i.i.d. Gaussian camera locations and specific graph structures. While empirical results are strong, extending theoretical guarantees to more general distributions or graph structures could be future work.
  • Computational Cost for High Accuracy: While ShapeKick is fast, achieving extremely high accuracy might still require longer computation times, as noted with the "kicking" procedure.
  • Bipartite Case: The paper mentions presenting experimental results for a bipartite case (camera locations and 3D points) in the supplementary material, suggesting this is an area of ongoing research.
  • Integration with SfM Pipeline: The authors suggest their method can replace multiple steps in the traditional SfM pipeline, implying future work could focus on seamlessly integrating ShapeFit/ShapeKick into complete SfM systems.

Summary updated

BibTeX
@inproceedings{goldstein2016shapefit,
  author = {Thomas A. Goldstein and Paul Hand and Choongbum Lee and Vladislav Voroninski and Stefano Soatto},
  title = {{ShapeFit and ShapeKick for Robust, Scalable Structure from Motion}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  url = {https://openreview.net/forum?id=RzCg1o3PeQ5},
}
Figure