Introduction
In computer vision, fitting geometric models like 3D rotations or camera poses to noisy data containing many outliers is a fundamental challenge. The standard approach, RANSAC (Random Sample Consensus), relies on a "hypothesize-and-test" loop. However, the verification stage—checking a hypothesis against thousands of data points—becomes a significant bottleneck in "needle-in-a-haystack" scenarios where the inlier rate is extremely low.
Methodology: Latent Space Hashing
Latent RANSAC addresses this bottleneck by transforming the verification step from a linear-time operation ($O(N)$) into a constant-time operation ($O(1)$). Instead of immediate full-data verification, the algorithm uses a proxy based on hypothesis similarity.
The process follows these key steps:
- Latent Space Mapping: Model hypotheses are mapped into a latent vector space where geometric similarity corresponds to proximity.
- Random Grids Hashing: Latent vectors are hashed into random grids.
- Collision Detection: A "collision" occurs when a new hypothesis falls into a grid cell already occupied by a previous one. This suggests that two independent random samples have converged on the same model, a strong indicator of correctness.
- Selective Verification: Expensive full-data verification is only triggered upon a collision. Since outlier-based hypotheses are scattered randomly, they rarely collide, effectively filtering out most incorrect models at near-zero cost.
Evaluation and Datasets
The method was evaluated across several geometric problems, including 2D-Homography estimation (ZuBuD dataset) and Camera Localization (PoseNet). A particularly challenging test was the Redwood loop closure benchmark for 3D rigid alignment.
The Redwood dataset contains fragments of 3D scans where inlier rates can drop as low as 2%. In such extreme cases, standard RANSAC requires millions of iterations, making the efficiency of Latent RANSAC's screening process critical.
Key Results and Insights
- Massive Speedups: Latent RANSAC achieved speedups of over 10x compared to standard RANSAC in PnP problems, outperforming previous state-of-the-art accelerators like SPRT.
- Robustness in Extremes: On the Redwood benchmark, the method achieved the highest recall among compared methods, demonstrating its effectiveness even when 98% of the data consists of outliers.
- Constant-Time Scaling: Because the hashing process is independent of the number of data points ($N$), the algorithm scales exceptionally well to massive datasets.
Conclusion and Future Work
Latent RANSAC demonstrates that in a robust estimation context, two "votes" (a collision) are often sufficient to justify expensive verification. While highly effective for homographies and 3D transforms, future work involves developing suitable latent mappings for more complex models like the Fundamental Matrix. Despite a small memory overhead for hash tables, the massive speedups in low-inlier scenarios make it a powerful tool for real-time geometric vision.
Summary updated