Abstract
Modern quantum annealers can find high-quality solutions to combinatorial optimisation objectives given as quadratic unconstrained binary optimisation (QUBO) problems. Unfortunately, obtaining suitable QUBO forms in computer vision remains challenging and currently requires problem-specific analytical derivations. Moreover, such explicit formulations impose tangible constraints on solution encodings. In stark contrast to prior work, this paper proposes to learn QUBO forms from data through gradient backpropagation instead of deriving them. As a result, the solution encodings can be chosen flexibly and compactly. Furthermore, our methodology is general and virtually independent of the specifics of the target problem type. We demonstrate the advantages of learnt QUBOs on the diverse problem types of graph matching, 2D point cloud alignment and 3D rotation estimation. Our results are competitive with the previous quantum state of the art while requiring much fewer logical and physical qubits, enabling our method to scale to larger problems.
Introduction
Quantum Annealing (QA) offers a powerful paradigm for solving NP-hard combinatorial optimization problems. However, its application in Computer Vision (QCV) is hindered by the requirement to formulate problems as Quadratic Unconstrained Binary Optimization (QUBO) matrices. Traditionally, this translation is a manual process involving complex analytical derivations. These "hand-crafted" QUBOs often suffer from inefficiencies, requiring a large number of qubits that exceed the capacity of current hardware.
QuAnt introduces a meta-learning framework that shifts this burden from human researchers to neural networks. By training a model to regress QUBO matrices directly from data, QuAnt enables more compact and hardware-friendly formulations that outperform traditional analytical methods in both efficiency and accuracy.
Methodology: Learning the QUBO
The QuAnt framework utilizes a hybrid quantum-classical pipeline designed to bridge the gap between continuous neural network outputs and discrete quantum solutions.
The pipeline consists of three primary stages:
- Encoding: A Multi-Layer Perceptron (MLP) acts as an encoder, taking a problem instance (e.g., point sets or graph representations) and outputting a QUBO matrix $A$.
- Solving: The matrix $A$ is passed to a solver—either a classical simulation (Simulated Annealing) or a physical D-Wave quantum annealer—to find the binary solution vector $x^* = \arg \min_{\mathbf{x} \in \{0,1\}^n} \mathbf{x}^\top \mathbf{A} \mathbf{x}$.
- Optimization: Since the solver is non-differentiable, QuAnt employs a contrastive loss ($L_{gap}$). This loss function encourages the network to assign lower energy to the ground-truth solution ($\hat{x}$) and higher energy to the solver's current prediction ($x^*$), effectively guiding the MLP to produce matrices where the global minimum corresponds to the correct answer.
This approach allows for flexible, compact encodings. For instance, instead of one-hot encodings, the network can learn logarithmic binary representations, significantly reducing the qubit count.
Experimental Evaluation
The effectiveness of QuAnt was validated across three distinct computer vision domains:
- Graph Matching: Evaluated on the real-world Willow object dataset and the synthetic RandGraph dataset.
- 2D Point Set Registration: Tested using the 2D Shape Structure dataset, featuring silhouette outlines of various objects.
- 3D Rotation Estimation: Assessed on ModelNet10, where the goal was to estimate the alignment of 3D CAD models.
Results and Discussion
QuAnt demonstrates significant improvements over previous quantum state-of-the-art methods in terms of hardware efficiency and success rates.
Efficiency and Scaling
A key advantage of learned QUBOs is their compactness. In graph matching tasks, QuAnt reduced the required qubits from 89 (analytical method) to just 15. This reduction is critical for current hardware; on D-Wave Advantage hardware, QuAnt achieved a 26% success probability, a massive leap from the 0.22% achieved by analytical formulations.
Accuracy and Robustness
In 2D registration, QuAnt achieved a mean error of 6.8°, significantly better than a pure neural network baseline (11.3°). Furthermore, in 3D rotation tasks, the method showed superior robustness to noise and outliers compared to classical gold-standard algorithms like Procrustes.
Solver Agnosticism
The framework is solver-agnostic, meaning it can be trained using classical simulated annealing and then deployed on real quantum hardware. This makes the methodology "quantum-ready" while remaining practical for development on today's classical infrastructure.
Conclusion
QuAnt represents a shift towards automated problem formulation in quantum computing. By learning to "speak quantum," neural networks can overcome the limitations of manual derivations, leading to more scalable and accurate solutions. While QuAnt excels against previous quantum methods, future research will focus on incorporating geometric priors into the network architecture to further enhance generalization across diverse problem instances.
Summary updated