Learning to learn with quantum neural networks via classical neural networks

Guillaume Verdon, Michael Broughton, Jarrod R. McClean, Kevin J. Sung, Ryan Babbush, Zhang Jiang, Hartmut Neven, Masoud MohseniarXiv 2019

Abstract

Variational Quantum Algorithms (VQAs) are promising for near-term quantum applications but suffer from difficult optimization landscapes. Researchers from Google and the University of Waterloo propose a meta-learning framework using classical Recurrent Neural Networks (RNNs) to optimize Quantum Neural Networks (QNNs). By training a Long Short-Term Memory (LSTM) network on small, classically simulatable problems, they developed a specialized optimizer that generalizes to larger systems, significantly reducing the iterations required on quantum hardware and avoiding local minima.

Introduction: The Challenge of Quantum Optimization

Variational Quantum Algorithms, or Quantum Neural Networks, are the primary candidates for achieving utility on Noisy Intermediate-Scale Quantum (NISQ) devices. These algorithms function by iteratively tuning the parameters of a quantum circuit to minimize a cost function, such as the energy of a molecular state.

However, the "parameter landscape" of these circuits is notoriously difficult to navigate. It is often characterized by "barren plateaus"—regions where gradients vanish—and a multitude of local minima. Standard classical optimizers, such as Nelder-Mead or Gradient Descent, frequently require thousands of iterations to converge. Given the slow readout times and inherent noise of current quantum processors, such high iteration counts are often prohibitively expensive. Finding an effective initialization point is critical, yet generic heuristics often fail to account for the specific structure of the problem.

Methods: A Meta-Learning Framework

The authors address this by employing a meta-learning approach: using one machine learning model to learn how to optimize another.

The core of this framework is a classical Long Short-Term Memory (LSTM) network. Unlike traditional optimizers that follow fixed update rules, the LSTM acts as a "black-box" controller. It processes the history of previous parameters ($\theta_t$) and their corresponding cost function values ($y_t$) to predict the optimal next set of parameters ($\theta_{t+1}$).

The meta-learning architecture: a classical RNN (LSTM) iteratively updates the parameters of a Quantum Neural Network (QNN) to minimize a loss function.

The LSTM is trained on thousands of small-scale problem instances that can be simulated classically. During this "offline" training phase, the LSTM is rewarded for "observed improvement"—its ability to find lower cost values rapidly. Once trained, the LSTM serves as a "few-shot" global optimizer. In practice, it runs for approximately 10 iterations to identify a promising region of the parameter space. This "LSTM seed" is then passed to a local optimizer (like Nelder-Mead) for final refinement.

Experimental Setup and Datasets

The researchers evaluated the framework across three major classes of synthetic problem instances:

  • MaxCut QAOA: Finding the maximum cut in random graphs ($G_{n,p}$).
  • Ising QAOA: Finding the ground state of Sherrington-Kirkpatrick (SK) spin glasses.
  • Hubbard VQE: Preparing ground states for the 2D Hubbard model, a benchmark in condensed matter physics.

Training was conducted on small systems (e.g., 6–9 qubits), while testing was performed on larger systems (e.g., 12 qubits) to assess the model's ability to generalize across scales.

Key Results and Insights

The meta-learning approach demonstrated significant advantages over traditional optimization strategies in terms of speed, accuracy, and robustness.

Performance benchmarks showing relative error vs. objective queries. The LSTM-seeded Nelder-Mead (red) consistently outperforms random and heuristic initializations across different problem domains.

Speed and Accuracy

The LSTM-initialized optimizer reached high-accuracy solutions in far fewer iterations than standard methods. As shown in the performance plots, the LSTM often found a better starting point in just 10 steps than random initialization could achieve in hundreds. For the complex VQE Hubbard model, standard local optimizers struggled with noisy evaluations, whereas the LSTM-seeded Nelder-Mead was the only method to consistently converge to a low-error state.

Generalization and Heuristic Learning

A pivotal finding was that an LSTM trained on 6-qubit problems effectively "understands" the landscape of 12-qubit problems. This suggests that optimal parameters for algorithms like QAOA concentrate around specific values regardless of system size. Instead of relying on human-designed heuristics (like adiabatic initialization), the LSTM learns a problem-specific "warm-start" strategy directly from data.

Robustness to Noise

The framework was tested against simulated Gaussian noise to emulate the stochastic nature of quantum measurements. The LSTM-based initialization remained superior, effectively helping local optimizers bypass noise-induced local minima that typically trap standard algorithms.

Limitations and Future Outlook

While promising, the approach has limitations. The "offline" meta-training cost is high, as it requires simulating millions of quantum circuit executions classically, which currently limits the complexity of the QNNs used for training. Additionally, the current architecture assumes a fixed number of variational parameters; changing the circuit depth would likely necessitate retraining.

Future research aims to extend this to "Quantum Dynamical Descent" and develop more flexible meta-learning architectures capable of scaling to an arbitrary number of parameters. Testing on real NISQ hardware will also be crucial to evaluate performance against systematic device errors beyond simple Gaussian noise.

Summary updated

BibTeX
@misc{verdon2019learning,
  author = {Guillaume Verdon and Michael Broughton and Jarrod R. McClean and Kevin J. Sung and Ryan Babbush and Zhang Jiang and Hartmut Neven and Masoud Mohseni},
  title = {{Learning to learn with quantum neural networks via classical neural networks}},
  year = {2019},
  eprint = {1907.05415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.05415},
}
Figure