Manuscript Offprint

arXiv:2608.30603

DiffSAC: Diffusion-guided Sampling for Consensus-based Robust Estimation

Chang Nie, Guangming Wang, Zhe Liu, Hesheng Wang

Abstract

Robust estimation is a core computer vision task frequently tackled using sample consensus. However, traditional methods suffer from inefficient sampling as they struggle to identify effective minimum sets before hypothesis evaluation. To address these challenges, we propose a novel Diffusion-guided Sampling for Consensus-based Robust Estimation (DiffSAC) framework. DiffSAC introduces a diffusion model to learn the distribution of effective minimum sets. It refines the confidence for each data point, indicating whether it belongs to a good minimum set, rather than ranking the data points as in previous work. This significantly reduces the need to process numerous bad sets. To constrain the refinement direction, geometric features are incorporated as conditions within our diffusion model. Consequently, DiffSAC outputs a small number of high-quality minimum sets, enabling identification of the best hypothesis via consensus evaluation. Notably, compared to previous works requiring evaluating over ten thousand hypotheses, DiffSAC achieves state-of-the-art performance with only dozens, significantly boosting efficiency. Extensive experiments across five classic computer vision tasks demonstrate the superiority of DiffSAC. The diffusion model's sampling accelerators enable real-time operation, and DiffSAC can be used as a plug-and-play module to improve existing sample consensus methods.

Keywords: Robust Estimation, Diffusion Models, Line Fitting, Fundamental Matrix Estimation, Essential Matrix Estimation

1 Introduction

Robust estimation is critical to computer vision, underpinning tasks such as simultaneous localization and mapping (SLAM) [1–7], motion segmentation [8–14], point cloud registration [15–21] and structure from motion (SfM) [10, 22–27]. Despite significant progress, accurately and efficiently estimating models from data contaminated by noise remains a persistent challenge. To address the challenges of noisy data, sample consensus algorithms, notably RANdom SAmple Consensus (RANSAC) [28], are a popular approach. RANSAC operates by iteratively hypothesizing models from randomly selected minimum sets.

of data. A minimum set contains the fewest data points required to define a model. For instance, two points suffice for a 2D line. By focusing on minimum sets rather than the entire dataset, RANSAC reduces the influence of outliers. After solving a hypothesis from a minimum set, RANSAC evaluates its consensus, which is quantified by the number of data points consistent with the hypothesis within a defined tolerance. Finding a hypothesis with maximal consensus necessitates repeating this hypothesize-and-test cycle many times.

While RANSAC exhibits robustness and generalizability, its inherent random sampling strategy introduces limitations. Firstly, RANSAC samples minimum sets without prior refinement, leading to considerable variability in their quality. Secondly, the number of iterations required to find a good model grows exponentially with increasing noise levels [29], significantly impacting efficiency. Thirdly, RANSAC employs uniform random sampling, neglecting potentially valuable geometric information that could guide sampling.

In response to these limitations, many methods focus on improving the sampling process [30–35]. Early methods prioritize sampling based on heuristics, such as PROSAC [31], aiming to favor outlier-free minimum sets. Recent neural network-guided methods, like NG-RANSAC [30], incorporate probabilistic preferences to enhance sampling. However, these preference-based strategies primarily refine sampling randomness but do not eliminate the risk of selecting bad minimum sets. Furthermore, guiding sampling towards a singular optimal solution can be difficult due to complex data distributions.

For these problems in previous work, the diffusion models [36] demonstrate the potential to solve them. It excels at capturing complex data patterns and generating diverse, high-quality outputs. For example, in text-to-image generation, diffusion models [37] can create multiple plausible images from a single text prompt, allowing the selection of the most suitable result. We propose leveraging this generative power of diffusion models to directly produce a small number of reliable and deterministic high-quality minimum sets. Such a deterministic generation strategy can avoid the problem of probabilistic sampling in previous methods that often sample numerous bad minimum sets, thereby enhancing the efficiency and robustness of estimation.

Consequently, we introduce Diffusion-guided Sampling for Consensus-based Robust Estimation (DiffSAC), a novel framework designed to enhance robust estimation tasks. DiffSAC leverages the powerful distribution modeling capacity of diffusion models to improve sample consensus. Specifically, as shown in Fig. 1, DiffSAC uses a diffusion model to learn the probability distribution p(c∣χ)p(c|\chi), which represents assigning a confidence c to each data point in a dataset χ\chi. This confidence c indicates a point belonging to a minimum set. By conditioning the diffusion process on the geometric features of the data χ\chi, the generation of confidence c is guided towards the desired direction. Trained on datasets comprising data points χ\chi and corresponding optimal minimum sets, DiffSAC can then estimate confidence c for unseen data by sampling from the learned distribution p(c∣χ)p(c|\chi). This confidence estimation enables DiffSAC to prioritize high-quality minimum sets, substantially improving efficiency by avoiding the exploration of less promising candidates. The inherent stochasticity of diffusion sampling facilitates effective exploration of the probability landscape [36], making it particularly suitable for confidence prediction. To further enhance model accuracy, DiffSAC generates multiple minimum sets during inference, which are subsequently evaluated using sample consensus to identify the hypothesis with the strongest consensus. This process ultimately selects the best hypothesis from a pool of highly promising candidates.

DiffSAC achieves state-of-the-art performance in five classic robust estimation tasks. Moreover, DiffSAC can be seamlessly integrated into existing robust estimation pipelines as a plug-and-play module. While diffusion models are criticized for computational cost with high-dimensional data like images, the confidence c in DiffSAC is low-dimensional, resulting in minimal overhead. Furthermore, with diffusion model acceleration techniques, DiffSAC can operate in real-time.

The main contributions of DiffSAC are as follows:

• We present a novel framework of Diffusion-guided Sampling for Consensus-based Robust

Figure

Fig. 1 Robust estimation with DiffSAC. The 2D line fitting task is used as an example. DiffSAC predicts the confidence c of each data point being selected as the minimum set with the diffusion model. DiffSAC marries the power of sampling consensus with the strengths of the diffusion model to iteratively refine the minimum set of data points χ\chi. green, black respectively indicate inliers, and outliers.

Estimation (DiffSAC), which integrates diffusion models into sample consensus for robust estimation, effectively addressing limitations in minimum set refinement and sampling efficiency.

  • DiffSAC leverages geometric features to constrain the diffusion process, iteratively refining confidences to output reliable and deterministic, high-quality minimum sets while minimizing the selection of bad sets, thus improving both efficiency and accuracy.

• Extensive experiments on 2D line fitting, 3D plane fitting, fundamental matrix estimation, essential matrix estimation, and homography estimation demonstrate that DiffSAC achieves state-of-the-art performance and can be easily integrated into existing sampling consensus methods as a plug-and-play module for diverse robust estimation tasks.

References (82)

  • indicates the number of output channels. <table><tr><td>Module</td><td colspan=
  • Generalized relative pose and scale from affine correspondences
  • An improved ransac-icp method for registration of slam and uav-lidar point cloud at plot scale
  • Yolo-slam: A semantic slam system towards dynamic environment with geometric constraint
  • A real-time and high precision hardware implementation of ransac algorithm for visual slam achieving mismatched feature point pair elimination
  • Simultaneous localization and mapping (slam) for autonomous driving: concept and analysis
  • Ransac-based instantaneous real-time kinematic positioning with gnss triple-frequency signals in urban areas
  • Learning to find good models in ransac
  • A feasible region detection method for vehicles in unstructured environments based on psmnet and improved ransac
  • Toward efficient and robust metrics for ransac hypotheses and 3d rigid registration
  • Ransacs for 3d rigid registration: A comparative evaluation
  • Generalized differentiable ransac
  • Instance-level moving object segmentation from a single image with events
  • Effiscene: Efficient per-pixel rigidity inference for unsupervised joint learning of optical flow, depth, camera pose and motion segmentation
  • Point cloud registration based on one-point ransac and scale-annealing biweight estimation
  • Multi-source forest point cloud registration with semantic-guided keypoints and robust ransac mechanisms
  • Centralized ransac-based point cloud registration with fast convergence and high accuracy
  • Ransac back to sota: A two-stage consensus filtering for real-time 3d registration
  • Ransic: Fast and highly robust estimation for rotation search and point cloud registration using invariant compatibility
  • Geometric transformer for fast and robust point cloud registration
  • Ransac for robotic applications: A survey
  • Orb-slam3: An accurate open-source library for visual, visual-inertial, and multimap slam
  • Event-based motion segmentation with spatio-temporal graph cuts
  • Mcsfm: multicamera-based incremental structure-from-motion
  • Direct and accurate feature extraction from 3d point clouds of plants using ransac
  • Robust vision-based displacement measurement and acceleration estimation using ransac and kalman filter
  • Revisit self-supervised depth estimation with local structure-from-motion
  • Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography
  • Optimal randomized ransac
  • Neural-guided RANSAC: Learning where to sample model hypotheses
  • Matching with PROSAC-progressive sample consensus
  • Multiple structure recovery via robust preference analysis
  • Robust multi-model fitting using density and preference analysis
  • Fast and accurate 3d registration from line intersection constraints
  • Feature matching via graph clustering with local affine consensus
  • Denoising diffusion probabilistic models
  • High-resolution image synthesis with latent diffusion models
  • USAC: A Universal Framework for Random Sample Consensus
  • Learning to find good correspondences
  • Learning two-view correspondences and geometry using order-aware network
  • Napsac: High noise, high dimensional robust estimation-it's in the bag
  • Progressive NAPSAC: sampling from gradually growing neighborhoods (opens arXiv in a new tab)
  • Dgsac: Density guided sampling and consensus
  • Locally optimized RANSAC
  • Graph-cut RANSAC
  • Marginalizing Sample Consensus
  • DSAC — Differentiable RANSAC for Camera Localization
  • Deep unsupervised learning using nonequilibrium thermodynamics
  • Snapfusion: Text-to-image diffusion model on mobile devices within two seconds
  • Uni-controlnet: All-in-one control to text-to-image diffusion models
  • Paragraph-to-image generation with information-enriched diffusion model
  • Domain-studio: Fine-tuning diffusion models for domain-driven image generation using limited data
  • Diffusion model-based image editing: A survey
  • Videocrafter2: Overcoming data limitations for high-quality video diffusion models
  • Upscale-a-video: Temporal-consistent diffusion model for real-world video super-resolution
  • Lamd: Latent motion diffusion for image-conditional video generation
  • A survey on video diffusion models
  • Video diffusion models
  • Point cloud pre-training with diffusion models
  • Point cloud completion with pretrained text-to-image diffusion models
  • Tiger: Time-varying denoising model for 3d point cloud generation with diffusion process
  • Reggeonet: Learning regular representations for large-scale 3d point clouds
  • Diffusion probabilistic models for 3d point cloud generation
  • DiffLoc: Diffusion Model for Outdoor LiDAR Localization
  • Posediffusion: Solving pose estimation via diffusion-aided bundle adjustment
  • Pc2: Projection-conditioned point cloud diffusion for single-image 3d reconstruction
  • Generative modeling by estimating gradients of the data distribution
  • Denoising Diffusion Implicit Models
  • Diffuvolume: Diffusion model for volume based stereo matching
  • Implicit diffusion models for continuous super-resolution
  • Attention is all you need
  • Dpm-solver++: Fast solver for guided sampling of diffusion probabilistic models (opens arXiv in a new tab)
  • A rank-invariant method of linear and polynomial regression analysis
  • Clnet: Complex input lightweight neural network designed for massive mimo csi feedback
  • RANSAC in 2020 tutorial
  • Three things everyone should know to improve object retrieval
  • A computer algorithm for reconstructing a scene from two projections
  • An efficient solution to the five-point relative pose problem
  • Triangulation
  • Dynamic graph cnn for learning on point clouds
  • Deep fundamental matrix estimation without correspondences
  • Point-e: A system for generating 3d point clouds from complex prompts (opens arXiv in a new tab)