PARSAC: Accelerating Robust Multi-Model Fitting with Parallel Sample Consensus

Florian Kluger, Bodo Rosenhahn

Abstract

Multi-model fitting is a fundamental challenge in computer vision, traditionally addressed through sequential "find-and-remove" strategies that are both computationally expensive and prone to error propagation. This paper introduces PARSAC (Parallel Sample Consensus), a deep-learning-based framework designed to fit multiple geometric models to noisy data in a single, parallelized pass. By utilizing a neural network to predict weights for multiple potential model instances simultaneously, PARSAC decouples the fitting process, allowing for massive GPU acceleration. Experimental results demonstrate that PARSAC achieves state-of-the-art accuracy on benchmarks like SU3 while reducing inference times to as low as 5 milliseconds—up to 25x faster than previous top-tier methods.

Introduction

In computer vision, robustly fitting geometric models to raw, noisy data is essential for tasks such as vanishing point detection, homography estimation, and fundamental matrix calculation. While the Random Sample Consensus (RANSAC) algorithm remains the standard for single-model fitting, extending it to multi-model scenarios has historically relied on sequential execution.

The traditional approach involves finding the most dominant model, removing its associated inliers, and repeating the process for subsequent models. This sequential bottleneck is problematic for two reasons: first, it is inherently slow; second, it suffers from a "cascading error" effect where inaccuracies in the first model lead to the misclassification of data points for all subsequent models. PARSAC addresses these issues by replacing sequential logic with a parallelized neural framework that discovers all model instances independently and simultaneously.

Methodology

Simultaneous Data Segmentation

The core of PARSAC is a neural network designed for simultaneous data segmentation. Given a set of observations (e.g., line segments or point correspondences), the network predicts two distinct sets of weights for $M^*$ potential model instances:

  1. Sample Weights ($p$): These weights indicate the likelihood of a point being part of a specific model's "minimal set"—the smallest subset of data required to generate a geometric hypothesis.
  2. Inlier Weights ($q$): These weights represent the probability that a point is a valid member of a specific model instance.

Parallel RANSAC Execution

Unlike previous methods that run a single RANSAC loop, PARSAC executes $M^*$ RANSAC processes in parallel. Each process utilizes its specific predicted weights to generate and score hypotheses. A critical innovation is the use of the predicted inlier weights ($q$) during the hypothesis selection phase. This ensures that different parallel processes focus on distinct clusters of data, preventing all processes from converging on the single most dominant model in the scene.

Ranking and Refinement

Following the parallel fitting stage, a final greedy ranking step evaluates the discovered models. Models are ranked based on their support, and those with insufficient unique inliers are discarded to ensure the final output consists only of distinct, high-confidence geometric instances.

Task-Specific Training

PARSAC is trained using a task-specific loss function, allowing for self-supervised learning. The network does not require manual ground-truth labels for point-to-model assignments; instead, it learns by minimizing the final geometric error of the models it produces, effectively rewarding the network for maximizing the explanation of the input data.

Datasets and Evaluation

To evaluate PARSAC and address the lack of large-scale training data for multi-model fitting, the authors introduced two new synthetic datasets:

  • HOPE-F: 4,000 synthetic image pairs for fundamental matrix estimation.
  • SMH (Synthetic Metropolis Homographies): Over 48,000 image pairs of city scenes, providing a diverse range of homography instances.

Standard benchmarks used for evaluation included the SU3, YUD, and NYU-VP datasets for vanishing points, and the AdelaideRMF dataset for fundamental matrices and homographies. The authors noted that while AdelaideRMF is a common benchmark, its small size (38 image pairs) makes it prone to overfitting, highlighting the necessity of the new HOPE-F and SMH datasets for robust deep learning.

Key Results and Insights

Speed and Efficiency

PARSAC demonstrates a significant leap in computational efficiency. By shifting the logic from CPU-based sequential loops to GPU-based parallel processing, the framework achieves an inference time of approximately 5ms per image for vanishing point estimation. This represents a 5x speedup over Progressive-X and a 25x speedup over DeepVP.

Accuracy and Robustness

On the SU3 dataset, PARSAC achieved an Area Under the Curve (AUC) of 90.17% (at a 5° threshold), outperforming the previous best learning-based method, CONSAC (85.69%). Furthermore, PARSAC showed superior resilience to Gaussian noise; while competing methods saw rapid performance degradation as noise levels increased, PARSAC maintained high accuracy.

The Importance of Inlier Weights

Ablation studies revealed that the predicted inlier weights ($q$) are vital for multi-model success. Without these weights, parallel processes tend to ignore less prominent models in favor of the easiest-to-find instance, effectively collapsing the multi-model search into a redundant single-model search.

Conclusion and Future Work

PARSAC represents a paradigm shift in multi-model fitting by proving that parallelization can improve both speed and accuracy. While the current framework requires a fixed maximum model capacity ($M^*$) and benefits most from modern GPU hardware, it sets a new standard for real-time geometric vision. Future work may involve integrating iterative refinement steps, such as Iteratively Reweighted Least Squares (IRLS), to further enhance precision on complex real-world datasets without sacrificing the framework's inherent speed advantages.

Summary updated

BibTeX
@inproceedings{kluger2024parsac,
  author = {Florian Kluger and Bodo Rosenhahn},
  title = {{PARSAC: Accelerating Robust Multi-Model Fitting with Parallel Sample Consensus}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.28060},
}
Figure