Optimizing Data Collection in Deep Reinforcement Learning

James Gleeson, Daniel Snider, Yvonne Yang, Moshe Gabel, Eyal de Lara +1 more
7/15/2022
cs.LG

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Reinforcement learning (RL) workloads take a notoriously long time to train due to the large number of samples collected at run-time from simulators. Unfortunately, cluster scale-up approaches remain expensive, and commonly used CPU implementations of simulators induce high overhead when switching back and forth between GPU computations. We explore two optimizations that increase RL data collection efficiency by increasing GPU utilization: (1) GPU vectorization: parallelizing simulation on the GPU for increased hardware parallelism, and (2) simulator kernel fusion: fusing multiple simulation steps to run in a single GPU kernel launch to reduce global memory bandwidth requirements. We find that GPU vectorization can achieve up to $1024\times$ speedup over commonly used CPU simulators. We profile the performance of different implementations and show that for a simple simulator, ML compiler implementations (XLA) of GPU vectorization outperform a DNN framework (PyTorch) by $13.4\times$ by reducing CPU overhead from repeated Python to DL backend API calls. We show that simulator kernel fusion speedups with a simple simulator are $11.3\times$ and increase by up to $1024\times$ as simulator complexity increases in terms of memory bandwidth requirements. We show that the speedups from simulator kernel fusion are orthogonal and combinable with GPU vectorization, leading to a multiplicative speedup.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gleeson2022optimizing,
  title  = {Optimizing Data Collection in Deep Reinforcement Learning},
  author = {James Gleeson and Daniel Snider and Yvonne Yang and Moshe Gabel and Eyal de Lara and Gennady Pekhimenko},
  year   = {2022},
  eprint = {2207.07736},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.07736v1}
}

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/2207.07736.svg)](https://codeofpaper.com/paper/2207.07736)

Discussion