Abstract
This paper presents an optimized version of the Random Sample Consensus (RANSAC) algorithm that incorporates Wald’s Sequential Probability Ratio Test (SPRT) to accelerate the model verification process. By statistically determining when to terminate the testing of a "bad" model early, the proposed method achieves speedups of 2x to 10x over standard RANSAC. Crucially, this efficiency is gained without compromising the mathematical guarantees required to find the correct solution, making it a robust choice for real-time computer vision applications.
Introduction
In computer vision, RANSAC is the foundational algorithm for fitting geometric models—such as camera motion or homographies—to data that is heavily contaminated with noise and outliers. The standard RANSAC loop consists of two primary phases: Hypothesize, where a minimal random subset of data is used to propose a model, and Verify, where that model is checked against the entire dataset of $N$ points to determine its support.
The primary bottleneck in this process is the verification step. In most practical scenarios, the vast majority of random samples contain at least one outlier, resulting in "bad" models that are consistent with very few data points. Standard RANSAC inefficiently checks these obviously incorrect models against every single point in the dataset. While previous "Randomized RANSAC" attempts used simple heuristics to skip points, they lacked mathematical optimality and often required prior knowledge of the outlier fraction.
Methodology: Wald’s SPRT in RANSAC
The authors reframe model verification as a sequential decision problem. Instead of a batch check of all points, the algorithm evaluates points one by one. After each point, it asks: "Is this model likely 'good' (generated from inliers) or 'bad' (generated from at least one outlier)?"
Wald’s Sequential Probability Ratio Test
The method adopts Wald’s SPRT, which calculates a likelihood ratio $\lambda_j$ after each point is checked. If $\lambda_j$ crosses a specific threshold $A$, the model is rejected as "bad" immediately.
Optimal Thresholding and Online Estimation
The core theoretical contribution is the derivation of an optimal value for the threshold $A$. In classical statistics, thresholds usually balance two types of errors. However, in the context of RANSAC, the "cost" of a False Negative (rejecting a good model) is simply the time required to draw more samples. The authors derived a formula for $A$ that minimizes the total expected runtime of the entire algorithm. Furthermore, the algorithm is "self-tuning"; it does not require the inlier ratio ($\epsilon$) or the probability of a bad model fitting a point ($\delta$) to be known in advance. Instead, it estimates these parameters on the fly as it processes the data.
Experimental Evaluation
The method was evaluated on several standard computer vision tasks using real-world image pairs, ranging from wide-baseline epipolar geometry to homography estimation.
The datasets included:
- Epipolar Geometry: ROTUNDA, THE GREAT WALL (wide-baseline), LEUVEN, and CORRIDOR (narrow-baseline).
- Homography Estimation: GRAFITTI and LEUVEN H.
These datasets provided a rigorous testbed with inlier ratios varying from a high of 60% to a challenging 28%.
Key Results
The "R-RANSAC with SPRT" consistently outperformed both standard RANSAC and previous randomized versions (such as $T_{d,d}$ tests):
- Significant Speedup: The method demonstrated a 2.8x to 10.9x speed increase over standard RANSAC.
- Verification Efficiency: In the LEUVEN H homography experiment, the SPRT version reduced the average number of checked correspondences per model from 789 down to just 20.7.
- Near-Theoretical Optimality: The performance of the online estimation strategy was found to be very close to an "a priori SPRT" (a theoretical version with perfect knowledge of the data distribution), proving the robustness of their parameter estimation.
Conclusion and Future Work
By treating model verification as a sequential statistical test, the authors have significantly reduced the computational burden of RANSAC. The ability to reject bad models after checking only a handful of points allows for much faster processing of contaminated datasets. Future work may involve extending this binary "inlier/outlier" logic to smooth cost functions (like MLESAC) to further improve accuracy in extremely noisy environments.
Summary updated