Black Box Optimization Using QUBO and the Cross Entropy Method

Jonas Nüßlein, Christoph Roch, Thomas Gabor, Jonas Stein, Claudia Linnhoff-Popien, Sebastian Feld

TL;DR

This paper introduces BOX-QUBO, a novel black-box optimization (BBO) approach that uses a Quadratic Unconstrained Binary Optimization (QUBO) matrix as a surrogate model. Unlike prior methods that rely solely on regression, BOX-QUBO combines classification of "good" vs. "bad" solutions with regression, leading to significantly better performance by better utilizing the limited capacity of QUBO matrices. The authors also demonstrate that framing existing white-box QUBO problems as BBO can reduce QUBO matrix size to the information-theoretic minimum, yielding superior results, particularly for MAX-k-SAT.

What Problem Does This Paper Address?

Black-box optimization (BBO) deals with minimizing functions where the analytical form is unknown, and we can only query it for specific inputs. A common strategy is to build a "surrogate model" that approximates the black-box function. This surrogate model, being analytically known, can then be optimized more easily. The challenge lies in the trade-off between the surrogate model's "capacity" (how well it approximates the true function) and the difficulty of optimizing it. If the surrogate model is too complex (high capacity), optimization becomes hard. If it's too simple (low capacity), it might not accurately represent the black-box function.

This paper focuses on using QUBO matrices as surrogate models. QUBOs offer a good balance but have a limited number of trainable parameters. Traditional BBO methods train these QUBO matrices using regression on all available data. However, with limited parameters, this can lead to overfitting or poor generalization. The authors aim to improve BBO performance by developing a more efficient training strategy for QUBO surrogate models and by exploring the benefits of treating even analytically solvable QUBO problems as black-box problems to achieve a more compact representation.

Methods

The core innovation is the BOX-QUBO approach. It uses a QUBO matrix as the surrogate model. The training process is a hybrid of regression and classification:

  1. Data Splitting: The collected training data (input-output pairs from the black-box function) is sorted by the output (energy/cost). A threshold is determined, splitting the data into "good" solutions (low energy, set L) and "bad" solutions (high energy, set H).
  2. Hybrid Training:
    • Regression: Performed exclusively on the "good" solutions (set L). This aims to accurately predict the actual low energy values.
  3. Classification: Performed on the "bad" solutions (set H). The goal here is to classify whether a solution is truly "bad" (high energy) or if it's a potentially good solution that the current QUBO model is misclassifying as bad. This classification task is less demanding on the QUBO matrix's capacity than full regression.
  4. Iterative Refinement: The process iterates: sample candidate solutions using the current QUBO matrix, query the black-box oracle for their true values, update the training data, and retrain the QUBO matrix using the hybrid regression-classification loss.

A secondary contribution is the idea of applying this BBO approach to problems that can be formulated as QUBO (white-box problems). The goal is to reduce the size of the QUBO matrix to its "information-theoretic minimum," meaning using the smallest possible matrix that still encodes the problem.

Datasets

The paper evaluates BOX-QUBO on four benchmark domains:

  • MAX-k-SAT: Specifically, two variants of MAX-4-SAT with different numbers of variables and clauses.
  • Feedback Vertex Set (FVS): A problem on directed graphs.
  • MaxClique: A problem on undirected graphs.

For each domain, 15 random instances were generated. The initial training sets for the algorithms were generated using random QUBO solutions.

Key Insights and Ideas

  • Classification for Low-Capacity Models: The most significant insight is that for models with limited capacity like QUBO matrices, a hybrid approach of classification and regression is superior to pure regression. Classification helps the model learn decision boundaries without needing to precisely predict exact values for all data points, especially for "bad" solutions. This improves generalization.
  • BBO for White-Box QUBO Problems: Framing problems that have known QUBO formulations as black-box problems can lead to significantly smaller QUBO matrices (closer to the information-theoretic minimum). This is particularly impactful for problems like MAX-k-SAT where standard QUBO formulations are much larger than theoretically necessary.
  • Improved Performance: BOX-QUBO consistently outperforms the state-of-the-art black-box optimization method (FMQA) across all tested domains.

Key Results

  • Superior Performance: BOX-QUBO consistently achieved better normalized performance than FMQA across all four tested domains (MAX-4-SAT, FVS, MaxClique). For instance, in FVS, BOX-QUBO reached a mean performance of ~0.87, while FMQA reached ~0.03 after 15 iterations.
  • Dimensionality Reduction: Applying BBO to white-box QUBO problems led to substantial reductions in QUBO matrix size. For example, MAX-4-SAT instances that required QUBO matrices of size O(kC) (e.g., n=1600 for V=30, C=400) were solved with QUBO matrices of size O(V) (n=30).
  • Better Solutions for MAX-k-SAT: The experiments on MAX-4-SAT showed that using BBO to find the information-theoretic minimum QUBO formulation yielded significantly better solutions than using the larger, standard white-box QUBO formulations.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper presents hyperparameters, the sensitivity of BOX-QUBO to these parameters (like k for splitting, nCycles, nEpochs) is not deeply explored.
  • Real-World Black-Box Functions: The current evaluation is on synthetic benchmarks. The authors suggest that important future work is to apply BOX-QUBO to "real-world" black-box functions for which no white-box QUBO formulations exist.
  • Capacity Control: The authors propose introducing "ancilla QUBO variables" to dynamically control the capacity of the surrogate model as a future research direction.

Summary updated

BibTeX
@inproceedings{nulein2023black,
  author = {Jonas Nüßlein and Christoph Roch and Thomas Gabor and Jonas Stein and Claudia Linnhoff-Popien and Sebastian Feld},
  title = {{Black Box Optimization Using QUBO and the Cross Entropy Method}},
  booktitle = {ICCS},
  year = {2023},
  doi = {10.1007/978-3-031-36030-5\_4},
}
Figure