Improved RANSAC performance using simple, iterative minimal-set solvers

Edward Rosten, Gerhard Reitmayr, Tom DrummondarXiv 2010

Abstract

Estimating the essential matrix is a cornerstone of 3D reconstruction and SLAM. While traditional approaches rely on complex direct polynomial solvers for the 5-point problem within a RANSAC framework, these methods often suffer from numerical instability and high computational costs. This paper proposes replacing direct solvers with simple iterative nonlinear optimizers like Levenberg-Marquardt (LM) and Gauss-Newton (GN). Our results demonstrate that prioritizing solver speed and numerical robustness over single-hypothesis accuracy allows RANSAC to perform more iterations, ultimately leading to faster and more reliable model estimation in real-world scenarios.

Introduction

In computer vision, the geometric relationship between two camera views is described by the essential matrix. Estimating this matrix is fundamental for tasks like Structure-from-Motion (SfM) and Simultaneous Localization and Mapping (SLAM). However, real-world image data is inherently noisy and contains numerous outliers—incorrect point matches. To handle this, the Random Sample Consensus (RANSAC) algorithm is typically employed.

RANSAC operates by repeatedly selecting a "minimal set" of data points to generate a model hypothesis, which is then validated against the rest of the dataset. For the essential matrix, the minimal set consists of five points. Solving this "5-point problem" traditionally involves solving systems of high-degree polynomial equations using sophisticated methods like Gröbner bases. These direct solvers, while mathematically elegant, are often computationally expensive and numerically unstable.

Methodology: Iterative Alternatives

The authors investigate whether simple iterative optimization can replace complex direct solvers. They evaluate three primary iterative algorithms:

  1. Algorithm 1 (LM): Employs the Levenberg-Marquardt algorithm on a 5-point minimal set to minimize residual error, producing a single solution per trial.
  2. Algorithm 2 (GN): Uses Gauss-Newton optimization on a 5-point set. Although less robust than LM, its extreme speed allows for a significantly higher number of RANSAC trials within the same time budget.
  3. Algorithm 3 (Robust): Utilizes a "super-minimal" set (e.g., 10 points) with Iterative Reweighted Least Squares (IRLS) to handle environments with extremely high outlier ratios.

These are compared against Algorithm 4, an optimized version of the standard direct 5-point solver.

Key Insights: Speed vs. Quality

A central finding of this research is that in the context of RANSAC, the speed of the individual solver is often more critical than its individual success probability. A solver that is significantly faster, even if less likely to find the correct model in a single trial, allows for many more iterations. This increased sampling frequency often results in a higher overall probability of finding a valid consensus set.

Reliability vs. Time for different algorithms and configurations.

Furthermore, iterative methods offer superior numerical stability. High-degree polynomials are sensitive to small perturbations in input data, whereas iterative optimizers, parameterized using Lie groups (specifically SO(3)), provide a cleaner mathematical framework for unconstrained optimization with fewer degrees of freedom.

Experimental Results

The algorithms were tested on both synthetic datasets (with outlier ratios ranging from 40% to 95%) and real-world data captured from a camera on a rail system.

Performance and Reliability

On synthetic data, Algorithm 1 (LM) demonstrated a 1.5x speedup over the traditional 5-point algorithm. In scenarios with extreme outlier levels (90-95%), the robust "super-minimal" approach (Algorithm 3) proved most effective. While the probability of selecting 5 perfect inliers is low, the robust optimizer's ability to handle some noise within a slightly larger sample set provided a competitive advantage.

Performance comparison (Time vs. Inlier Fraction) for 95% and 99% reliability targets.

Real-World Scenarios

For real-world horizontal camera motion, the Gauss-Newton (GN) approach was the top performer. Its "fail-fast" nature allowed it to quickly discard poor hypotheses and test a vast number of candidates. However, a notable exception was found in forward-backward motion (along the optic axis). In this specific geometry, the error surface becomes complex, causing iterative optimizers to frequently stall in local minima. In these cases, the direct 5-point solver remains more reliable.

Conclusion

This paper makes a compelling case for the use of simple iterative solvers in RANSAC-based essential matrix estimation. By trading off the complexity of direct polynomial solvers for the speed and stability of iterative optimization, researchers can achieve better performance in most common camera motion scenarios. Future developments may focus on hybrid systems that switch between iterative and direct solvers based on detected motion patterns to maximize robustness across all geometric configurations.

Summary updated

BibTeX
@misc{rosten2010improved,
  author = {Edward Rosten and Gerhard Reitmayr and Tom Drummond},
  title = {{Improved RANSAC performance using simple, iterative minimal-set solvers}},
  year = {2010},
  eprint = {1007.1432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1007.1432},
}
Figure