QuaRL: Quantization for Fast and Environmentally Sustainable Reinforcement Learning

Srivatsan Krishnan, Maximilian Lam, Sharad Chitlangia, Zishen Wan, Gabriel Barth-Maron +2 more
10/2/2019
cs.LGcs.AIcs.RO
rl

Official code: harvard-edge/QuaRL (90 stars, Python, last commit 2023-03-24).

Abstract

Deep reinforcement learning continues to show tremendous potential in achieving task-level autonomy, however, its computational and energy demands remain prohibitively high. In this paper, we tackle this problem by applying quantization to reinforcement learning.

Show full abstract

To that end, we introduce a novel Reinforcement Learning (RL) training paradigm, \textit{ActorQ}, to speed up actor-learner distributed RL training. \textit{ActorQ} leverages 8-bit quantized actors to speed up data collection without affecting learning convergence. Our quantized distributed RL training system, \textit{ActorQ}, demonstrates end-to-end speedups \blue{between 1.5 $\times$ and 5.41$\times$}, and faster convergence over full precision training on a range of tasks (Deepmind Control Suite) and different RL algorithms (D4PG, DQN). Furthermore, we compare the carbon emissions (Kgs of CO2) of \textit{ActorQ} versus standard reinforcement learning \blue{algorithms} on various tasks. Across various settings, we show that \textit{ActorQ} enables more environmentally friendly reinforcement learning by achieving \blue{carbon emission improvements between 1.9$\times$ and 3.76$\times$} compared to training RL-agents in full-precision. We believe that this is the first of many future works on enabling computationally energy-efficient and sustainable reinforcement learning. The source code is available here for the public to use: \url{https://github.com/harvard-edge/QuaRL}.

View on arXivView PDF

Code Implementations(1)

harvard-edge/QuaRLOfficial100%

QuaRL is an open-source framework for systematically studying the effect of applying quantization to reinforcement learning algorithms.

9019Python, ShellSep 29, 20193 years ago
artificial-intelligencedeep-reinforcement-learningquantizationrobotics

Similar Papers

Cite this paper

@article{krishnan2019quarl,
  title  = {QuaRL: Quantization for Fast and Environmentally Sustainable Reinforcement Learning},
  author = {Srivatsan Krishnan and Maximilian Lam and Sharad Chitlangia and Zishen Wan and Gabriel Barth-Maron and Aleksandra Faust and Vijay Janapa Reddi},
  year   = {2019},
  eprint = {1910.01055},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.01055}
}

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

Discussion