Parallel Q-Learning: Scaling Off-policy Reinforcement Learning under Massively Parallel Simulation

Zechu Li, Tao Chen, Zhang-Wei Hong, Anurag Ajay, Pulkit Agrawal
7/24/2023
cs.LGcs.AIcs.RO

Official code: Improbable-AI/pql (77 stars, MIT, last commit 2023-08-02).

Abstract

Reinforcement learning is time-consuming for complex tasks due to the need for large amounts of training data. Recent advances in GPU-based simulation, such as Isaac Gym, have sped up data collection thousands of times on a commodity GPU. Most prior works used on-policy methods like PPO due to their simplicity and ease of scaling. Off-policy methods are more data efficient but challenging to scale, resulting in a longer wall-clock training time. This paper presents a Parallel $Q$-Learning (PQL) scheme that outperforms PPO in wall-clock time while maintaining superior sample efficiency of off-policy learning. PQL achieves this by parallelizing data collection, policy learning, and value learning. Different from prior works on distributed off-policy learning, such as Apex, our scheme is designed specifically for massively parallel GPU-based simulation and optimized to work on a single workstation. In experiments, we demonstrate that $Q$-learning can be scaled to \textit{tens of thousands of parallel environments} and investigate important factors affecting learning speed. The code is available at https://github.com/Improbable-AI/pql.

View on arXivView PDF

Code Implementations(1)

Improbable-AI/pqlOfficial100%
MIT

Parallel Q-Learning: Scaling Off-policy Reinforcement Learning under Massively Parallel Simulation

775Shell, PythonJul 25, 20233 years agoMIT

Similar Papers

Cite this paper

@article{li2023parallel,
  title  = {Parallel Q-Learning: Scaling Off-policy Reinforcement Learning under Massively Parallel Simulation},
  author = {Zechu Li and Tao Chen and Zhang-Wei Hong and Anurag Ajay and Pulkit Agrawal},
  year   = {2023},
  eprint = {2307.12983},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.12983v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.12983.svg)](https://codeofpaper.com/paper/2307.12983)

Discussion