Quantum approximate optimization algorithm applied to the binary perceptron

Pietro Torta, Glen Bigan Mbeng, Carlo Baldassi, Riccardo Zecchina, Giuseppe E. Santoro · DOI

Abstract

This paper investigates the application of the Quantum Approximate Optimization Algorithm (QAOA) to the binary perceptron, a non-local optimization problem central to neural network training. We demonstrate that QAOA systematically outperforms traditional digitized Quantum Annealing (dQA). Crucially, we find that optimal control parameters are smooth and transferable across different problem instances, suggesting that pre-learned quantum schedules can be applied to new datasets without exhaustive re-optimization.

Introduction

Most research in quantum optimization focuses on "2-local" problems, such as MaxCut, where interactions occur only between pairs of variables. However, real-world challenges, particularly training Artificial Neural Networks (ANNs), are often highly non-local. The binary perceptron serves as a benchmark for such problems, characterized by a "glassy" energy landscape filled with local minima that challenge classical algorithms.

The Binary Perceptron Problem

The goal of the binary perceptron is to find a set of weights (±1) that correctly classifies a set of patterns. Due to non-linear activation functions, the resulting cost function involves complex, multi-body interactions.

Schematic of a binary perceptron showing inputs, weights, and the non-linear sign activation function.

This study focuses on "hard" instances where classical Simulated Annealing (SA) fails to find the global minimum, testing whether quantum fluctuations can effectively navigate these rugged landscapes.

Methodology

The authors compare two primary quantum approaches:

  1. Digitized Quantum Annealing (dQA): A discrete version of traditional annealing following a linear schedule.
  2. QAOA: A variational algorithm where the schedule (defined by parameters $\beta$ and $\gamma$) is optimized.

To address the difficulty of finding optimal parameters, the researchers developed a "QAOA-2" protocol. This heuristic strategy starts with dQA parameters, uses a local optimizer (BFGS), and applies a smoothing procedure to remove high-frequency noise. This results in a robust protocol that avoids the qualitative pitfalls of standard annealing.

Key Results: Performance and Scaling

The study utilized 10 specific hard instances of the binary perceptron with $N=21$ spins and $M=17$ patterns. The results show a clear advantage for the variational approach.

Variational energy $\epsilon_P$ as a function of the number of steps $P$, comparing dQA, QAOA-1, and QAOA-2 for different problem settings.

As illustrated above, the QAOA-2 protocol consistently achieves lower variational energies than dQA across all tested values of $P$. Furthermore, as the number of steps $P$ increases, the performance gap between QAOA and dQA widens, indicating that QAOA makes more efficient use of additional quantum resources.

Key Insights and Transferability

One of the most significant findings is the transferability of optimal parameters. Parameters found for one specific training set work remarkably well for others of the same size. This suggests that the computational cost of the classical optimization loop can be amortized across many problem instances.

Additionally, by comparing the original problem to randomized versions, the authors demonstrated that the quantum algorithm actively exploits the local geometry (the "dense regions" of solutions) of the perceptron landscape, rather than just the energy spectrum.

Limitations and Future Work

While promising, the study was limited to $N=21$ spins due to the costs of classical simulation. Future work will investigate whether these smooth solutions remain transferable as system sizes scale to hundreds or thousands of qubits. Furthermore, implementing the non-local perceptron Hamiltonian on current NISQ hardware remains a significant challenge, potentially requiring 2-local approximation strategies to bridge the gap to real-world quantum computers.

Summary updated

BibTeX
@misc{torta2021quantum,
  author = {Pietro Torta and Glen Bigan Mbeng and Carlo Baldassi and Riccardo Zecchina and Giuseppe E. Santoro},
  title = {{Quantum approximate optimization algorithm applied to the binary perceptron}},
  year = {2021},
  eprint = {2112.10219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.10219},
}
Figure