arXiv:2609.10629cs.AISep 2026

Manuscript Offprint

arXiv:2609.10629

Automating Quadratic Unconstrained Binary Optimization (QUBO) Formulation Generation from Natural Language

Niloy Kumar Mondal, Md Rizwan Parvez

Abstract

Quadratic Unconstrained Binary Optimization (QUBO) is a central formulation for combinatorial optimization and has gained increasing attention due to its compatibility with quantum, hybrid quantum-classical, and quantum-inspired solvers. However, translating natural-language problem descriptions into correct QUBO formulations remains difficult, requiring the identification of binary variables, constraints, objective functions, penalty terms, and suitable penalty weights. This process is time-consuming and often demands substantial domain expertise. To address this challenge, we propose an end-to-end multi-agent framework that automatically generates QUBO formulations from natural-language problem descriptions, supported by structured or unstructured test cases. To evaluate its performance, We also introduce QUBOBench, a benchmark containing 100 combinatorial optimization problems across 12 application domains, curated from peer-reviewed literature, competitions, and canonical NP-hard problems. Experimental results show that our framework achieves 68% accuracy on QUBOBench, outperforming a direct single-call baseline by 22%. Further analysis identifies iterative self-repair as the most important component contributing to improved performance. The data and code are open-sourced at https://quitttcat.github.io/QuantumQUBOAgent/.

1. Introduction

The Quadratic Unconstrained Binary Optimization (QUBO) problem is a combinatorial optimization problem classified as NP-hard, meaning no efficient algorithm is known to solve it optimally in polynomial time. It has a variety of application areas such as Computer Science, Finance, Physics, Engineering, Medicine, VLSI design, Quantum Computing, Traffic Management, Machine Scheduling, and many more (Punnen, 2022). With advances in quantum computing (Preskill, 2018), QUBO problems have become increasingly important because they can be addressed by quantum, hybrid quantum-classical, and quantum-inspired methods such as quantum annealing (Rajak et al., 2023) and the Quantum Approximate Optimization Algorithm (QAOA) (Farhi & Harrow, 2016). Quantum annealing is a powerful heuristic for solving optimization problems (Somma et al., 2012).

Researchers across many domains are exploring quantum optimization algorithms with the goal of potential speedups and improved accuracy. These algorithms have been applied to machine learning tasks such as feature selection (Mücke et al., 2023; Samanta et al., 2025; Pathak et al., 2025) and Bayesian network structure learning (Shikuri, 2025), computer vision problems including image segmentation and denoising (Heidari et al., 2024; Kerger & Miyazaki, 2023; Venkatesh et al., 2024), supply chain (Moncayo-Martínez & He, 2025; Ciacco et al., 2026), drug discovery (Yang, 2025), RNA folding (Fox et al., 2022), satellite observation (Ferrari et al., 2025), scheduling problems (Zhou et al., 2025; Gebler et al., 2024), cybersecurity (Marini & Arpe, 2025), IoT (Zhang et al., 2025b), and computational chemistry (Negre et al., 2022).

To apply quantum algorithms across domains, optimization problems must first be reformulated as QUBO and often as Ising formulations (Lucas, 2014). In general, given a natural-language description of a combinatorial optimization problem, the task is to find the values of binary decision variables x∈{0,1}nx \in \{0, 1\}^n that minimize a cost function of the form

1^{1}Bangladesh University of Engineering and Technology 2^{2}Qatar Computing Research Institute, HBKU, Doha, Qatar. Correspondence to: Niloy Kumar Mondal nkm2105044@gmail.com, Md Rizwan Parvez mparvez@hbku.edu.qa.

min⁡x∈{0,1}nE(x)=x⊤Qx+c,(1)\min_{x\in\{0,1\}^{n}}E(x)=x^{\top}Q x+c, \tag{1}

where Q is a matrix of coefficients and c is a constant offset(Glover et al., 2019). The solution space contains 2n2^{n}

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

candidate bitstrings, and finding the optimum is NP-hard in general.

The cognitive task therefore involves identifying the binary decision variables, extracting the implicit and explicit constraints, designing the cost function and penalty terms for constraint violations, selecting appropriate penalty weights, and finally solving the resulting QUBO using classical heuristics or state-of-the-art quantum solvers. These steps are extremely challenging and time-consuming, as such a complex task often requires domain expertise, mathematical rigor, and experimental feedback.

To address this cognitive bottleneck, we propose an end-to-end multi-agent framework that generates the QUBO formulation from natural language problem description, together with either structured or unstructured test cases. To evaluate our framework, we introduce QUBOBench, a 100 combinatorial optimization problems 12 application domains, curated from peer-reviewed venues, competitions, and canonical NP-hard problems. Our framework achieves 68% accuracy on QUBOBench, outperforming the direct single-call baseline (46%) by a 22 percentage margin, with iterative self repair identified as the most critical component driving performance.