CONSAC: Robust Multi-Model Fitting by Conditional Sample Consensus

Florian Kluger, Eric Brachmann, Hanno Ackermann, Carsten Rother, Michael Ying Yang, Bodo Rosenhahn

Abstract

Robustly fitting multiple geometric models to noisy data is a persistent challenge in computer vision. Traditional methods like RANSAC excel at single-model estimation but struggle with "pseudo-outliers"—inliers of one model that act as noise for another. We present CONSAC (Conditional Sample Consensus), a neural-guided sequential estimator. By conditioning the search for new models on previously identified ones, CONSAC learns to intelligently mask explained data and focus on remaining structures. Our approach achieves state-of-the-art performance in vanishing point estimation and homography fitting, demonstrating the power of combining deep learning with classical geometric solvers.

Introduction

In many computer vision applications, such as architectural reconstruction or motion segmentation, we must fit multiple instances of a geometric model (e.g., lines, planes, or vanishing points) to a single set of observations. While RANSAC is the gold standard for single-model fitting, multi-model scenarios introduce the problem of pseudo-outliers. Standard approaches often resort to computationally expensive global optimization or greedy sequential fitting, which frequently converges to local optima.

CONSAC addresses this by learning a search strategy. The core insight is that the estimator should know what it has already found. By feeding the current state of the fitting process back into a neural network, the system learns to "look elsewhere" for subsequent model instances. This effectively transforms a complex multi-model problem into a series of guided single-model searches.

Methodology: Conditional Sequential Sampling

The CONSAC framework operates through three nested loops designed to ensure both robustness and accuracy.

1. Sequential Multi-Hypothesis Generation

This is the heart of CONSAC. Unlike traditional methods that treat each model search independently, CONSAC maintains a "state" vector that tracks which data points have been explained by previously found models. A neural network takes the input data and this state vector to predict sampling weights. These weights guide a RANSAC-like process toward unexplained regions of the data.

The CONSAC sequential pipeline showing the neural-guided RANSAC loop.

2. Single Model Sampling and Global Optimization

Within each step of the sequence, a minimal set of points is sampled based on the neural weights to form a model hypothesis. To ensure global consistency, the entire sequential process is repeated multiple times (Multi-Hypothesis Sampling). The final set of models is selected by maximizing a global scoring function, such as the joint inlier count across all detected instances.

3. Training Strategies

CONSAC can be trained in two ways:

  • Supervised: Using ground-truth labels and a task-specific loss function (e.g., angular error for vanishing points).
  • Self-Supervised: Maximizing the total number of inliers explained by the set of models, allowing the network to learn optimal search patterns without manual annotations.

Experiments and Results

We evaluated CONSAC on several benchmarks, including the new NYU-VP dataset (1,449 indoor scenes) and the AdelaideRMF dataset for homography fitting.

Overview of CONSAC results across different geometric fitting tasks.

Vanishing Point Estimation

On the NYU-VP dataset, CONSAC achieved an Average AUC of 65.0%, significantly outperforming traditional robust estimators like T-Linkage (57.8%). Notably, it also surpassed specialized state-of-the-art vanishing point detectors that utilize full RGB information, despite CONSAC only using geometric primitives.

Homography and Motion Segmentation

In self-supervised mode, CONSAC-S achieved a misclassification error of 5.21% on the AdelaideRMF dataset, a marked improvement over the previous state-of-the-art, Progressive-X (6.86%). Ablation studies confirmed that the "Conditional" aspect is critical; removing state feedback caused performance to drop from 65% to 48% AUC in vanishing point tasks.

Conclusion

CONSAC demonstrates that neural networks can effectively guide classical robust estimators by learning the search process itself. By conditioning sampling on the current state of the solution, the algorithm avoids the pitfalls of greedy search and pseudo-outliers. While determining the optimal number of models automatically remains a challenge for future work, CONSAC provides a powerful, general-purpose framework for multi-model fitting in complex, noisy environments.

Summary updated

BibTeX
@inproceedings{kluger2020consac,
  author = {Florian Kluger and Eric Brachmann and Hanno Ackermann and Carsten Rother and Michael Ying Yang and Bodo Rosenhahn},
  title = {{CONSAC: Robust Multi-Model Fitting by Conditional Sample Consensus}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00469},
}
Figure