A quantum-classical reinforcement learning model to play Atari games

Dominik Freinberger, Julian Lemmel, Radu Grosu, Sofiène JerbiarXiv 2024 · DOI

Introduction

Reinforcement learning (RL) has achieved remarkable success in complex environments, yet it remains computationally intensive, particularly when processing high-dimensional visual inputs. While Quantum Reinforcement Learning (QRL) theoretically offers exponential speed-ups, practical implementation on Noisy Intermediate-Scale Quantum (NISQ) devices is hindered by low qubit counts. Current hardware cannot directly ingest raw $84 \times 84$ pixel game frames. This research explores a hybrid quantum-classical architecture designed to bridge this gap, investigating whether specific architectural refinements can enable quantum agents to compete with classical Deep Q-Networks (DQNs) in high-dimensional Atari environments.

The Hybrid "Sandwich" Architecture

The researchers propose a multi-stage architecture that integrates classical feature extraction with quantum decision-making. This "sandwich" approach allows the model to handle high-dimensional data while leveraging the unique properties of quantum circuits.

The hybrid quantum-classical architecture featuring dimensionality reduction, pre-processing, quantum processing (PQC), and post-processing.
  1. Dimensionality Reduction (Classical): Three convolutional layers (CNN) and a linear pre-processing layer compress the high-dimensional game image into a small latent feature vector (e.g., 16 or 36 values).
  2. Quantum Processing (PQC): These features are fed into a Parametrized Quantum Circuit (PQC). The model employs data re-uploading, where input data is repeatedly encoded into the circuit to enhance mathematical expressivity. The circuit utilizes trainable variational gates and entangling gates to generate quantum correlations.
  3. Post-processing (Classical): The expectation values from the qubits are passed through a final classical linear layer to produce Q-values, representing the predicted rewards for specific actions.

Experimental Setup and Key Findings

The model was evaluated on two iconic Atari 2600 games: Pong, a task used to verify basic solvability, and Breakout, a more complex environment used to test performance limits and hyperparameter sensitivity.

The Oscillatory Landscape and Reward Scaling

A critical insight from the study is the nature of the quantum reward landscape. Quantum circuits naturally produce Q-value surfaces composed of sine and cosine functions, leading to a "wiggly" landscape compared to the piecewise-linear surfaces of classical ReLU-based networks. This can cause "crossings" where suboptimal actions are incorrectly assigned higher scores. The authors found that upscaling rewards (10x to 100x) provided the necessary numerical "room" for these oscillations, significantly stabilizing the learning process.

Bottleneck Comparison

To ensure the quantum circuit was contributing meaningfully, the authors compared the hybrid model against a "classical reference" model with an identical artificial bottleneck. This confirmed that the quantum circuit's performance was not merely a byproduct of the classical CNN's feature extraction.

Results

The hybrid model demonstrated that near-term quantum models are indeed capable of tackling complex visual environments, contradicting previous assumptions about their limited expressivity.

  • Pong: The hybrid model successfully solved the environment, matching the classical reference by reaching a maximum mean reward of 20.
  • Breakout: While an initial 41% performance gap existed between the hybrid and classical models, increasing the latent space (more qubits and encoding gates) and optimizing reward scaling reduced this gap to just 13%.

Conclusion and Future Work

This study proves the feasibility of using hybrid quantum-classical models for complex RL tasks. While the model does not yet demonstrate a "quantum advantage" over classical systems, it establishes a competitive baseline for NISQ-era devices. Future research will focus on addressing scaling issues, such as "barren plateaus" in larger circuits, and testing the architecture on real quantum hardware to assess the impact of decoherence and physical noise.

Summary updated

BibTeX
@misc{freinberger2024quantum,
  author = {Dominik Freinberger and Julian Lemmel and Radu Grosu and Sofiène Jerbi},
  title = {{A quantum-classical reinforcement learning model to play Atari games}},
  year = {2024},
  eprint = {2412.08725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.08725},
}
Figure