Abstract
Deep reinforcement learning (DRL) often requires a large number of data and environment interactions, making the training process time-consuming. This challenge is further exacerbated in the case of batch RL, where the agent is trained solely on a pre-collected dataset without environment interactions. Recent advancements in quantum computing suggest that quantum models might require less data for training compared to classical methods. In this paper, we investigate this potential advantage by proposing a batch RL algorithm that utilizes VQC as function approximators within the discrete batch-constraint deep Q-learning (BCQ) algorithm. Additionally, we introduce a novel data re-uploading scheme by cyclically shifting the order of input variables in the data encoding layers. We evaluate the efficiency of our algorithm on the OpenAI CartPole environment and compare its performance to the classical neural network-based discrete BCQ.
Introduction
Reinforcement Learning (RL) has achieved remarkable success in various domains, yet its reliance on massive interaction datasets remains a significant bottleneck. This is particularly critical in Batch (or Offline) RL, where agents must learn from fixed, pre-collected datasets without the luxury of exploration. Two primary challenges in this field are distributional shift and extrapolation error, where function approximators like Deep Neural Networks (DNNs) may produce overoptimistic and erroneous Q-value estimates for state-action pairs not present in the training data.
While classical algorithms like Batch-Constrained Q-learning (BCQ) address these issues by restricting the agent's actions to the support of the training data, they still typically require large datasets to generalize effectively. This paper explores the hypothesis that Variational Quantum Circuits (VQCs), known for their potential data efficiency and high expressivity in low-dimensional spaces, can outperform classical DNNs in low-data Batch RL regimes.
Methodology
Quantum Function Approximation
The proposed BCQQ (Batch-Constraint Quantum Q-Learning) algorithm replaces the classical Q-networks and generative models within the BCQ framework with VQCs. These circuits utilize parameterized quantum gates, which are optimized using classical gradient-based methods. Specifically, the authors employ the Simultaneous Perturbation Stochastic Approximation (SPSA) algorithm with the AMSGrad optimizer to handle the challenges of quantum gradient estimation.
Cyclic Data Re-uploading
To enhance the expressivity of the VQC, the authors introduce a novel Cyclic Data Re-uploading (DRU) scheme. While standard DRU repeats the same input encoding throughout the circuit, the cyclic approach shifts the order of input variables $(x_0, x_1, x_2, x_3)$ in a round-robin fashion across successive layers (e.g., $(x_1, x_2, x_3, x_0)$). This ensures that every qubit interacts with every feature of the input state, maximizing the information spread across the quantum register.
Experimental Results
Performance in Low-Data Regimes
The BCQQ algorithm was benchmarked against a classical BCQ agent on the OpenAI CartPole-v1 environment. The results demonstrate a significant quantum advantage in data efficiency. In a "worst-case" scenario using a random policy buffer with only 100 samples, the BCQQ agent achieved a perfect score of 500. In contrast, a classical neural network with a comparable parameter count (67 parameters) failed to learn, scoring only 12.88. The classical model required nearly a million samples to reach similar performance levels.
Theoretical Analysis: Fisher Information and Effective Dimension
To understand the source of this advantage, the authors analyzed the Fisher Information Matrix (FIM) and the effective dimension of the models. The analysis revealed that the cyclic DRU scheme significantly increases the effective dimension compared to standard VQCs and classical networks. This suggests that the quantum model can represent a broader and more complex class of functions with fewer parameters.
Stability and Hardware Validation
Beyond raw performance, BCQQ exhibited superior long-term stability, maintaining a balanced pole for up to 100,000 steps in globality tests. Furthermore, the model was successfully deployed on IBMQ hardware. By utilizing Zero Noise Extrapolation (ZNE) to mitigate hardware noise, the agent achieved a reward of 495, demonstrating the feasibility of BCQQ on current Noisy Intermediate-Scale Quantum (NISQ) devices.
Conclusion and Future Work
BCQQ presents a promising step toward practical quantum-enhanced reinforcement learning. By combining batch-constrained learning with cyclic data re-uploading, the authors achieved near-optimal performance with orders of magnitude less data than classical methods. Future research will focus on scaling these VQC architectures to higher-dimensional state spaces and exploring the applicability of cyclic re-uploading in other quantum machine learning domains.
Summary updated