CaiRL: A High-Performance Reinforcement Learning Environment Toolkit

Per-Arne Andersen, Morten Goodwin, Ole-Christoffer Granmo
10/3/2022
cs.LGcs.AI
rl

Official code: pa-research/rl (13 stars, C++, last commit 2021-09-15).

Abstract

This paper addresses the dire need for a platform that efficiently provides a framework for running reinforcement learning (RL) experiments. We propose the CaiRL Environment Toolkit as an efficient, compatible, and more sustainable alternative for training learning agents and propose methods to develop more efficient environment simulations.

Show full abstract

There is an increasing focus on developing sustainable artificial intelligence. However, little effort has been made to improve the efficiency of running environment simulations. The most popular development toolkit for reinforcement learning, OpenAI Gym, is built using Python, a powerful but slow programming language. We propose a toolkit written in C++ with the same flexibility level but works orders of magnitude faster to make up for Python's inefficiency. This would drastically cut climate emissions. CaiRL also presents the first reinforcement learning toolkit with a built-in JVM and Flash support for running legacy flash games for reinforcement learning research. We demonstrate the effectiveness of CaiRL in the classic control benchmark, comparing the execution speed to OpenAI Gym. Furthermore, we illustrate that CaiRL can act as a drop-in replacement for OpenAI Gym to leverage significantly faster training speeds because of the reduced environment computation time.

View on arXivView PDF

Code Implementations(1)

pa-research/rlOfficial100%
130C++, CMakeApr 15, 20215 years ago
aiartificial-intelligencecppdeep-learningdeep-reinforcement-learning+7 more

Similar Papers

Cite this paper

@article{andersen2022cairl,
  title  = {CaiRL: A High-Performance Reinforcement Learning Environment Toolkit},
  author = {Per-Arne Andersen and Morten Goodwin and Ole-Christoffer Granmo},
  year   = {2022},
  eprint = {2210.01235},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01235}
}

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

Discussion