RLtools: A Fast, Portable Deep Reinforcement Learning Library for Continuous Control

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Eschmann, Jonas, Albani, Dario, Loianno, Giuseppe
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913580644827136
author Eschmann, Jonas
Albani, Dario
Loianno, Giuseppe
author_facet Eschmann, Jonas
Albani, Dario
Loianno, Giuseppe
contents Deep Reinforcement Learning (RL) can yield capable agents and control policies in several domains but is commonly plagued by prohibitively long training times. Additionally, in the case of continuous control problems, the applicability of learned policies on real-world embedded devices is limited due to the lack of real-time guarantees and portability of existing libraries. To address these challenges, we present RLtools, a dependency-free, header-only, pure C++ library for deep supervised and reinforcement learning. Its novel architecture allows RLtools to be used on a wide variety of platforms, from HPC clusters over workstations and laptops to smartphones, smartwatches, and microcontrollers. Specifically, due to the tight integration of the RL algorithms with simulation environments, RLtools can solve popular RL problems up to 76 times faster than other popular RL frameworks. We also benchmark the inference on a diverse set of microcontrollers and show that in most cases our optimized implementation is by far the fastest. Finally, RLtools enables the first-ever demonstration of training a deep RL algorithm directly on a microcontroller, giving rise to the field of TinyRL. The source code as well as documentation and live demos are available through our project page at https://rl.tools.
format Preprint
id arxiv_https___arxiv_org_abs_2306_03530
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle RLtools: A Fast, Portable Deep Reinforcement Learning Library for Continuous Control
Eschmann, Jonas
Albani, Dario
Loianno, Giuseppe
Machine Learning
Artificial Intelligence
Robotics
Deep Reinforcement Learning (RL) can yield capable agents and control policies in several domains but is commonly plagued by prohibitively long training times. Additionally, in the case of continuous control problems, the applicability of learned policies on real-world embedded devices is limited due to the lack of real-time guarantees and portability of existing libraries. To address these challenges, we present RLtools, a dependency-free, header-only, pure C++ library for deep supervised and reinforcement learning. Its novel architecture allows RLtools to be used on a wide variety of platforms, from HPC clusters over workstations and laptops to smartphones, smartwatches, and microcontrollers. Specifically, due to the tight integration of the RL algorithms with simulation environments, RLtools can solve popular RL problems up to 76 times faster than other popular RL frameworks. We also benchmark the inference on a diverse set of microcontrollers and show that in most cases our optimized implementation is by far the fastest. Finally, RLtools enables the first-ever demonstration of training a deep RL algorithm directly on a microcontroller, giving rise to the field of TinyRL. The source code as well as documentation and live demos are available through our project page at https://rl.tools.
title RLtools: A Fast, Portable Deep Reinforcement Learning Library for Continuous Control
topic Machine Learning
Artificial Intelligence
Robotics
url https://arxiv.org/abs/2306.03530