A Hybrid Quantum-Classical Algorithm for Robust Fitting

Dzung Anh Doan, Michele Sasdelli, David Suter, Tat-Jun Chin

Abstract

Fitting geometric models onto outlier-contaminated data is provably intractable. Many computer vision systems rely on random sampling heuristics to solve robust fitting, which do not provide optimality guarantees and error bounds. It is therefore critical to develop novel approaches that can bridge the gap between exact solutions that are costly, and fast heuristics that offer no quality assurances. In this paper, we propose a hybrid quantum-classical algorithm for robust fitting. Our core contribution is a novel robust fitting formulation that solves a sequence of integer programs and terminates with a global solution or an error bound. The combinatorial subproblems are amenable to a quantum annealer, which helps to tighten the bound efficiently. While our usage of quantum computing does not surmount the fundamental intractability of robust fitting, by providing error bounds our algorithm is a practical improvement over randomised heuristics. Moreover, our work represents a concrete application of quantum computing in computer vision. We present results obtained using an actual quantum computer (D-Wave Advantage) and via simulation.

1. Introduction

In computer vision, robust fitting—the task of estimating geometric models from data containing outliers—is typically framed as a consensus maximization problem. The goal is to find a model that maximizes the number of inliers within a predefined error threshold. However, this problem is NP-hard, leading most practical systems to rely on randomized heuristics like RANSAC. While efficient, RANSAC provides no guarantees regarding the optimality of its solution. Conversely, exact algorithms that guarantee global optimality are often too computationally expensive for large-scale datasets. This paper introduces a hybrid approach that utilizes quantum annealing to provide deterministic quality assurances in the form of provable error bounds.

2. Methodology

2.1 Hypergraph Reformulation

The proposed method reformulates consensus maximization as a Maximum Independent Set (MIS) problem on a hypergraph. In this representation, vertices correspond to data points, and hyperedges represent "infeasible bases"—minimal subsets of points that cannot be fit by any valid model. Finding the maximum consensus set is equivalent to finding the MIS, which is the dual of the Minimum Vertex Cover (MVC) problem.

Hypergraph representation of robust fitting. (a) Data points with infeasible bases. (b) Corresponding hypergraph where vertices are points and hyperedges are infeasible bases.

2.2 Quantum Optimization and the Hybrid Loop

The MVC problem is mapped to a Quadratic Unconstrained Binary Optimization (QUBO) form, which is natively supported by quantum annealers like the D-Wave Advantage. Because the number of possible hyperedges is exponential, the algorithm employs a hybrid loop:

  1. Classical Outer Loop: Samples new infeasible bases (hyperedges) from the dataset.
  2. Quantum Inner Loop: Solves the current MVC subproblem on the QPU to find the best outlier set.
  3. Bounding: A Linear Programming (LP) relaxation is solved on a classical CPU to establish a lower bound on the number of outliers. The gap between the QPU's integer solution and this lower bound provides a concrete error bound.

3. Experimental Evaluation

The algorithm was tested on synthetic linear regression and real-world computer vision tasks, including fundamental matrix estimation (VGG and KITTI datasets) and multi-view triangulation.

Convergence of the hybrid algorithm. The number of outliers found by the QPU (z_best) approaches the lower bound (LP relaxation) as more hyperedges are sampled.

Key results include:

  • Provable Optimality: In several triangulation tests, the algorithm achieved an error bound of zero, proving the discovery of the global optimum.
  • Competitive Performance: The hybrid approach reached inlier counts comparable to state-of-the-art classical methods like LO-RANSAC.
  • Scaling: While classical simulated annealing time increases with problem size, the quantum annealing runtime remained largely constant, provided the problem fit the hardware topology.

4. Discussion and Conclusion

This work demonstrates the first application of quantum hardware to provide error bounds for robust fitting. While current limitations—such as hardware precision and the overhead of minor embedding—restrict the scale of solvable problems, the hybrid framework successfully bridges the gap between heuristics and exact solvers. Future research will focus on improving hyperedge sampling efficiency and adapting to higher-precision quantum hardware as it becomes available.

Summary updated

Abstract

Fitting geometric models onto outlier contaminated data is provably intractable. Many computer vision systems rely on random sampling heuristics to solve robust fitting, which do not provide optimality guarantees and error bounds. It is therefore critical to develop novel approaches that can bridge the gap between exact solutions that are costly, and fast heuristics that offer no quality assurances. In this paper, we propose a hybrid quantum-classical algorithm for robust fitting. Our core contribution is a novel robust fitting formulation that solves a sequence of integer programs and terminates with a global solution or an error bound. The combinatorial subproblems are amenable to a quantum annealer, which helps to tighten the bound efficiently. While our usage of quantum computing does not surmount the fundamental intractability of robust fitting, by providing error bounds our algorithm is a practical improvement over randomised heuristics. Moreover, our work represents a concrete application of quantum computing in computer vision. We present results obtained using an actual quantum computer (D-Wave Advantage) and via simulation.
BibTeX
@misc{doan2022hybrid,
  author = {Dzung Anh Doan and Michele Sasdelli and David Suter and Tat-Jun Chin},
  title = {{A Hybrid Quantum-Classical Algorithm for Robust Fitting}},
  year = {2022},
  eprint = {2201.10110},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.10110},
}
Figure