Less Biased Noise Scale Estimation for Threshold-Robust RANSAC

Johan Edstedt · DOI

TL;DR

This paper tackles the challenge of automatically determining the optimal inlier threshold for RANSAC, a crucial parameter for robustly estimating geometric models from noisy data. The authors introduce SIMFIT++, an improved method that reduces bias in noise scale estimation, leading to more reliable and robust RANSAC performance across various thresholds.

What Problem Does This Paper Address?

RANSAC (Random Sample Consensus) is a widely used algorithm for robustly fitting models to data contaminated with outliers. A critical parameter in RANSAC is the inlier threshold, which defines how close a data point must be to the model to be considered an inlier. Setting this threshold manually is often difficult and requires prior knowledge of the data and noise characteristics, which is not always available. Suboptimal threshold choices can lead to poor model estimation. While previous work has explored methods to estimate the inlier noise scale (which is directly related to the optimal threshold), these methods can suffer from bias. This paper aims to address this bias and provide a more robust and automated way to determine the inlier threshold for RANSAC.

Methods

The core of the paper is the proposed SIMFIT++ algorithm, which builds upon the SIMFIT method. SIMFIT iteratively estimates the inlier noise scale ($\sigma$) and then uses this to set the RANSAC threshold. SIMFIT++ introduces two key improvements to address biases in the original SIMFIT:

  • Bias Reduction via Train/Validation Split: To mitigate bias introduced by using the same data for both model fitting and noise scale estimation, SIMFIT++ employs a train/validation split. A portion of the data is used to estimate the geometric model (e.g., fundamental matrix), and the remaining data is used to estimate the inlier noise scale. This is analogous to cross-validation techniques.
  • Debiased Noise Scale Estimator: The paper identifies that the median-based estimator used in SIMFIT can be biased, particularly when dealing with truncated distributions (due to the RANSAC thresholding). SIMFIT++ introduces a debiased median estimator that accounts for this truncation, leading to a more accurate estimation of $\sigma$.
  • Multi-Pair Extension: For improved robustness, especially when initial threshold guesses are far from optimal, SIMFIT++ offers a multi-pair extension. This involves filtering estimates across multiple image pairs using a geometric mean, motivated by the observation that estimated thresholds often follow a log-normal distribution.

Datasets

The paper uses publicly available datasets for evaluation:

  • IMC-PT: A dataset for relative pose estimation.
  • MegaDepth1500: A large-scale dataset for relative pose estimation.
  • ScanNet1500: A dataset for relative pose estimation.

These datasets are used with various feature matching methods, including SIFT, SuperGlue, LightGlue, ASpanFormer, DKM, and RoMa, to provide a comprehensive evaluation.

Key Insights and Ideas

  • The direct relationship between noise scale and threshold is key: The paper leverages the insight that the optimal RANSAC threshold is linearly related to the inlier noise scale ($\sigma$). This allows for robust threshold estimation by focusing on estimating $\sigma$.
  • Overfitting in RANSAC is a real problem: Using the same data for both model fitting and noise estimation leads to biased results. A train/validation split is a simple yet effective way to combat this.
  • Truncated distributions require careful estimation: The RANSAC threshold inherently truncates the distribution of inlier residuals. Standard estimators can be biased by this truncation, necessitating a more sophisticated approach.
  • Log-normal distribution of thresholds is common: For multi-pair scenarios, the estimated thresholds often exhibit a log-normal distribution, making a geometric mean a more appropriate filtering strategy than an arithmetic mean.

Key Results

SIMFIT++ consistently outperforms both fixed-threshold RANSAC and the original SIMFIT method across various datasets and tasks (Essential and Fundamental matrix estimation).

  • Essential Matrix Estimation: SIMFIT++ shows significant improvements, achieving performance close to an oracle (knowing the true optimal threshold) with a decrease of only about 0.5% on average, compared to SIMFIT's 1.5% drop.
  • Fundamental Matrix Estimation: Similar improvements are observed, with SIMFIT++ showing a smaller performance gap to the oracle compared to SIMFIT.
  • Robustness to Threshold: The paper demonstrates that SIMFIT++ is significantly less sensitive to the initial threshold guess compared to fixed-threshold RANSAC and even SIMFIT, as shown in Figure 1 and Figure 9.
  • MAGSAC++ Comparison: SIMFIT++ also shows improved performance over MAGSAC++ when applied to the same datasets, particularly in terms of stability across different thresholds.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Assumption of Linear Relationship: The core assumption that the optimal threshold is linearly related to the noise scale by a fixed factor might not hold perfectly in all practical scenarios. The performance gap with an oracle suggests this.
  • Unbiased Estimator Proof: While SIMFIT++ aims to reduce bias, the authors do not analytically prove that the estimator is unbiased, noting the complexity of such proofs.
  • Runtime: The iterative nature of SIMFIT++ increases runtime, which might be a concern for real-time applications. The authors suggest that running the estimation on a subset of images could mitigate this.
  • Dataset Bias: The experiments were primarily conducted on phototourism and indoor scene data. It's possible that the method's performance might vary on different types of data.
  • Future Work: The authors suggest exploring more advanced techniques for estimating the noise scale and investigating the optimal choice of the train/validation split proportion ($p$) for different scenarios.

Summary updated

BibTeX
@inproceedings{edstedt2025less,
  author = {Johan Edstedt},
  title = {{Less Biased Noise Scale Estimation for Threshold-Robust RANSAC}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure