Reinforcement learning assisted recursive QAOA

Yash J. Patel, Sofiène Jerbi, Thomas Bäck, Vedran Dunjko

TL;DR

This paper introduces RL-RQAOA, a novel algorithm that combines reinforcement learning (RL) with the recursive Quantum Approximate Optimization Algorithm (RQAOA) to tackle challenging combinatorial optimization problems. By identifying and addressing the limitations of RQAOA, RL-RQAOA demonstrates improved performance, particularly on difficult problem instances, showcasing the potential of hybrid quantum-classical approaches.

What Problem Does This Paper Address?

The paper tackles the limitations of the Quantum Approximate Optimization Algorithm (QAOA), a promising approach for solving complex optimization problems on near-term quantum computers. Specifically, it addresses the issue that low-depth QAOA circuits, while practical for current hardware (NISQ devices), suffer from locality constraints that hinder their performance on certain problem instances. To overcome this, a non-local variant called Recursive QAOA (RQAOA) was proposed. However, RQAOA itself has limitations and can fail to find optimal solutions. The authors aim to improve upon RQAOA by developing a more robust algorithm that can handle these challenging cases, particularly for the Ising problem (equivalent to the Max-Cut problem).

Methods

The core innovation is the development of RL-RQAOA, a hybrid quantum-classical algorithm. It builds upon RQAOA by using reinforcement learning to guide the decision-making process within the recursive structure.

Here's a breakdown of the key methodological aspects:

  • RQAOA as a Foundation: The paper starts with RQAOA, which iteratively reduces the problem size by eliminating variables based on correlations computed from a depth-1 QAOA circuit. The key idea is to use QAOA to find "energy-optimal" parameters for these correlations.
  • Identifying RQAOA's Weaknesses: The authors analyze scenarios where RQAOA fails, particularly when there are ties in correlation coefficients or when the "energy-optimal" QAOA parameters lead to suboptimal choices for variable elimination.
  • Reinforcement Learning Integration: Instead of relying solely on energy-optimal QAOA parameters, RL-RQAOA uses an RL agent to learn how to select edges for contraction and their corresponding signs. This is framed as a multi-step Markov Decision Process (MDP) where the state is the current graph and actions involve selecting edges.
  • Quantum-Inspired Policy: The RL agent's policy is "quantum-inspired," meaning it uses information derived from a QAOA ansatz (specifically, two-correlation coefficients) to inform its decisions. The parameters of the QAOA circuit itself are also trained by the RL agent.
  • RL-RONE (Classical Analogue): To understand the contribution of the quantum component, a purely classical algorithm, RL-RONE, is introduced. This algorithm uses the same RL framework but bypasses the quantum computation of correlations, using a simplified approach instead.
  • Policy Gradient Method (REINFORCE): The RL agent is trained using the REINFORCE algorithm, a standard policy gradient method, to maximize the expected reward.

Datasets

The paper introduces a dataset of "hard instances" for RQAOA. These are specifically generated small-scale problem instances (for the Ising model) where RQAOA is known to perform poorly (achieving an approximation ratio less than 0.95).

The dataset was constructed by:

  • Generating an ensemble of weighted random d-regular graphs.
  • Using different edge weight distributions (Gaussian and bimodal).
  • Performing a random search to identify instances where RQAOA's approximation ratio falls below a certain threshold.

In addition to these "hard instances," the paper also uses random instances (cage graphs and general d-regular graphs) for benchmarking and comparison.

Key Insights and Ideas

  • RQAOA's "Greediness" is a Bottleneck: The core insight is that RQAOA's reliance on energy-optimal QAOA parameters for variable elimination can be too "greedy." This can lead it to prematurely lock onto suboptimal solutions, especially when there are multiple plausible choices (ties) or when the energy-optimal choice isn't globally optimal.
  • RL as a "Exploration" Mechanism: Reinforcement learning provides a powerful mechanism to explore the search space more effectively. By training an RL agent, the algorithm can learn to make more informed decisions about which edges to contract, balancing exploitation of good correlations with exploration of potentially better paths.
  • Synergy Between RL and Quantum: The paper demonstrates a beneficial synergy between RL and quantum (inspired) optimization. RL can enhance the performance of quantum algorithms by learning optimal strategies for their use, and quantum computations can provide valuable information for the RL agent.
  • QAOA Parameters are Trainable: A key aspect of RL-RQAOA is that it doesn't just use pre-computed "optimal" QAOA parameters. Instead, the RL agent also learns and optimizes these parameters, allowing for more flexible and potentially better solutions.
  • Quantum Component Matters: The comparison with RL-RONE highlights that the quantum-derived correlations (even if not strictly energy-optimal) are crucial for the performance gains observed in RL-RQAOA.

Key Results

  • RL-RQAOA Outperforms RQAOA on Hard Instances: The primary result is that RL-RQAOA consistently achieves better approximation ratios than RQAOA on the identified "hard instances" where RQAOA struggles. For example, Figure 5 shows a clear separation in approximation ratios, with RL-RQAOA achieving significantly higher values.
  • Comparable Performance on "Easy" Instances: On instances where RQAOA already performs well (near-optimal), RL-RQAOA achieves similar performance, indicating it doesn't degrade performance on simpler problems.
  • RL-RQAOA Shows Advantage on Cage Graphs: Figure 4 demonstrates that RL-RQAOA (both "max" and "vote" variants) achieves higher success probabilities in finding ground states compared to RQAOA on cage graph instances, especially where RQAOA faces many ties.
  • Quantum Circuit's Importance Verified: Figure 6 shows that RL-RQAOA (quantum-inspired) outperforms RL-RONE (classical analogue), indicating that the quantum-derived correlations play a significant role in the algorithm's effectiveness.
  • Faster Convergence (Implied): While not explicitly quantified as a speedup, Figure 6 shows that RL-RQAOA's learning curves generally rise faster and reach higher rewards than RL-RONE, suggesting more efficient learning.

Limitations and Future Work

  • Classical Simulation of Depth-1 QAOA: The current work focuses on depth-1 QAOA, which is classically simulatable. The authors acknowledge that true quantum advantage would require simulating these algorithms at higher depths on actual quantum hardware.
  • Noise and Noise-Free Regimes: The performance of both RQAOA and RL-RQAOA on actual quantum processing units (QPUs) in both noisy and noise-free environments is an open question and a key area for future work.
  • Generalization to Other Problems: While tested on the Ising problem, extending RL-RQAOA to other combinatorial optimization problems is a natural next step.
  • Hyperparameter Tuning: The paper mentions that higher values of the RL agent's inverse temperature parameter (β) can hinder learning, suggesting a trade-off between exploration and exploitation. Further investigation into hyperparameter optimization for RL-RQAOA could be beneficial.
  • Instance-Dependent Learning: The current RL-RQAOA is trained on a specific instance. Developing mechanisms for generalization across different problem instances would be a significant advancement.

Summary updated

BibTeX
@inproceedings{patel2024reinforcement,
  author = {Yash J. Patel and Sofiène Jerbi and Thomas Bäck and Vedran Dunjko},
  title = {{Reinforcement learning assisted recursive QAOA}},
  booktitle = {EPJ},
  year = {2024},
  doi = {10.1140/epjqt/s40507-023-00214-w},
}
Figure