NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Insights on Training Neural Networks for QUBO Tasks

Thomas Gabor, Sebastian Feld, Hila Safi, Thomy Phan, Claudia Linnhoff-Popien · DOI

Abstract

This paper investigates the use of neural networks to address the "dimensionality explosion" inherent in Quadratic Unconstrained Binary Optimization (QUBO) problems—the standard input format for quantum annealers. By leveraging autoencoders and convolutional neural networks (CNNs), the researchers demonstrate that QUBO matrices can be compressed by up to 75% and solved directly in latent space. These findings suggest that classical neural networks can serve as efficient co-processors or mockups for limited quantum hardware.

Introduction

Quantum computers, particularly quantum annealers and those utilizing the Quantum Approximate Optimization Algorithm (QAOA), solve combinatorial problems by translating them into QUBO matrices. However, this translation is often highly inefficient. For instance, a Traveling Salesman Problem (TSP) with $m$ cities requires a QUBO matrix of size $m^2 \times m^2$. This rapid scaling quickly exceeds the qubit capacity of contemporary quantum hardware. This study explores whether classical deep learning can mitigate these scaling issues by identifying redundancies and learning the underlying logic of optimization constraints.

Methodology

The researchers employed several deep learning architectures to probe the structure and solvability of QUBOs:

  • Autoencoders (AEs): Used to compress QUBO matrices into a low-dimensional "latent space" to identify redundant information.
  • Convolutional Neural Networks (CNNs): Since QUBOs are square matrices, they were treated as images. CNNs proved superior to Recurrent Neural Networks (RNNs) at capturing the spatial, local logic of QUBO constraints.
  • Latent Space Solvers: A hybrid pipeline that first compresses a QUBO using an encoder and then feeds that compressed representation into a solver network to find the optimal bit configuration.
Overview of the neural network architectures used for QUBO compression and solving: (a) Autoencoder, (b) TSP-specific solver, (c) Encoded latent space solver, and (d) Generalized QUBO solver.

Experimental Setup

The study utilized synthetic datasets for evaluation:

  1. TSP-to-QUBO: 11,000 instances of 4-city and 8-city TSP problems translated into QUBO format.
  2. Random QUBOs: 11,000 arbitrary matrices with random values to test generalization beyond structured problem classes.
  3. Ground Truth: Solutions were generated using D-Wave’s qbsolv and verified against Google’s OR-Tools.

Key Insights

QUBO Redundancy

Autoencoder experiments revealed that QUBO matrices are significantly "hollow." A matrix can be compressed to one-fourth of its original size while maintaining over 90% reconstruction accuracy. This confirms that standard mathematical translations to QUBO introduce substantial overhead.

Spatial Logic and CNNs

CNNs outperformed RNN-based Pointer Networks. This suggests that the constraints within a QUBO—which dictate valid bit combinations—possess a spatial structure that convolutional filters are uniquely suited to identify.

Solving in Latent Space

Training a network to solve the compressed version of a problem (the latent space solver) reduced training time by approximately 50% (from 10 hours to 5) without a significant drop in accuracy. This indicates that the most critical information for optimization is preserved during compression.

Results

  • Compression Accuracy: The Convolutional Autoencoder (CAE) achieved 98% reconstruction accuracy for 4-city TSP at 25% dimensionality.
  • Solver Performance: For 4-city TSP, the CNN solver matched the optimal solution in 88% of cases.
  • Generalization: While highly effective on structured TSP data, the CNN achieved roughly 48% accuracy on 16x16 random matrices, highlighting the difficulty of solving unstructured optimization math compared to specific problem classes.
  • Transfer Learning: Pre-training on smaller (4-city) TSP instances significantly accelerated convergence when training on larger (8-city) instances.

Conclusion and Future Work

While neural networks show promise in compressing and solving QUBO tasks, scaling remains a challenge; accuracy decreases as problem size increases. Future research may explore neuromorphic hardware as a potential simulator for quantum tasks, as brain-inspired chips may handle the sparse, interconnected nature of QUBOs more efficiently than standard GPUs. Ultimately, these classical models provide a "best guess" solution that, while not mathematically proven optimal, offers a high-speed alternative for complex combinatorial tasks.

Summary updated

BibTeX
@inproceedings{gabor2020insights,
  author = {Thomas Gabor and Sebastian Feld and Hila Safi and Thomy Phan and Claudia Linnhoff-Popien},
  title = {{Insights on Training Neural Networks for QUBO Tasks}},
  booktitle = {Workshops @ ICSE},
  year = {2020},
  doi = {10.1145/3387940.3391470},
}
Figure