[Paper Review] BCQQ: Batch-Constraint Quantum Q-Learning with Cyclic Data Re-uploading
This paper proposes BCQQ, a batch-constraint quantum reinforcement learning algorithm that uses variational quantum circuits (VQCs) as function approximators within the discrete BCQ framework. It introduces a cyclic data re-uploading scheme to enhance expressivity without increasing parameters, achieving near-optimal performance in CartPole-v1 with as few as 100 data samples—outperforming classical counterparts in low-data regimes.
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.
Motivation & Objective
- To investigate whether quantum computing can improve sample efficiency in batch reinforcement learning (RL), especially in low-data regimes.
- To adapt the classical discrete BCQ algorithm to a quantum setting using variational quantum circuits (VQCs) as function approximators.
- To design and evaluate a novel cyclic data re-uploading scheme that enhances model expressivity without increasing parameters.
- To benchmark the proposed BCQQ algorithm against classical deep Q-learning in a low-complexity environment like CartPole-v1.
- To assess whether quantum agents can learn effective policies from a single noisy trajectory, simulating real-world data scarcity.
Proposed method
- Integrates VQCs as function approximators within the discrete batch-constraint deep Q-learning (BCQ) framework for offline RL.
- Employs a cyclic data re-uploading scheme where input features are encoded in a rotating order across successive layers of the VQC.
- Uses simultaneous perturbation stochastic approximation (SPSA) for gradient estimation in the hybrid quantum-classical training loop.
- Trains the VQC using a fixed replay buffer of previously collected transitions, without further environment interaction.
- Applies a globality test to evaluate the generalization and robustness of the trained policy beyond the training distribution.
- Compares performance across different buffer sizes (1e2, 1e4, 1e6) and initialization seeds to assess stability and data efficiency.
Experimental results
Research questions
- RQ1Can a quantum reinforcement learning agent achieve near-optimal performance in a batch RL setting with significantly fewer training samples than classical agents?
- RQ2Does the proposed cyclic data re-uploading scheme enhance the expressivity and performance of VQCs in offline RL without increasing model parameters?
- RQ3Can a VQC-based agent learn a valid policy from a single noisy trajectory that does not include terminal states?
- RQ4How does the performance of the quantum agent compare to classical deep Q-networks across varying buffer sizes and data distributions?
- RQ5Does the cyclic data re-uploading mechanism lead to better generalization and higher cumulative rewards in the CartPole-v1 environment?
Key findings
- The VQC with cyclic data re-uploading achieved a cumulative reward of 500 in all training runs on the CartPole-v1 environment, even with only 100 data samples.
- In the globality test, the cyclic data re-uploading VQC reached a cumulative reward of 88,891 over 100,000 steps, significantly outperforming all classical agents.
- The classical neural network with 67,072 parameters failed to learn a valid policy when trained on a buffer of size 100, achieving only 69.33 average reward on average.
- Even with a buffer of size 1e6, the classical agent with 55 parameters achieved only 342.22 average reward, while the quantum agent surpassed this with 88,891 in the globality test.
- The VQC with cyclic data re-uploading successfully learned to solve CartPole from a single noisy trajectory of size 100, demonstrating robustness to partial and non-terminating data.
- The cyclic data re-uploading scheme increased the Fourier frequency spectrum of the VQC, enhancing expressivity without increasing the number of parameters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.