Discovering Minimal Reinforcement Learning Environments
Jarek Liesen, Chris Lu, Andrei Lupu, Jakob N. Foerster, Henning Sprekeler, Robert T. Lange
TL;DR
The paper tackles the inefficiency of RL training when agents are repeatedly evaluated in the same environment by introducing synthetic, neural-network–parameterized environments (SEs) that are optimized to maximize transfer to a fixed EE. It extends prior work with an algorithm- and hyperparameter-invariant meta-learning approach, a horizon-curriculum to scale to Brax-like tasks, hardware-accelerated vectorized RL, and a surprising finding that contextual bandits can serve as effective proxies for complex MDPs while offering interpretability. Key contributions include showing CBs arise naturally from synthetic MDPs, enabling generalization across unseen algorithms and hyperparameters, and demonstrating downstream speedups in Learned Policy Optimization and other meta-learning contexts. The approach yields fast, transferable RL pretraining signals, provides interpretable insights into evaluation environments, and offers a practical pathway to accelerate downstream RL research and applications, including pretraining, neural architecture search, and meta-learning.
Abstract
Reinforcement learning (RL) agents are commonly trained and evaluated in the same environment. In contrast, humans often train in a specialized environment before being evaluated, such as studying a book before taking an exam. The potential of such specialized training environments is still vastly underexplored, despite their capacity to dramatically speed up training. The framework of synthetic environments takes a first step in this direction by meta-learning neural network-based Markov decision processes (MDPs). The initial approach was limited to toy problems and produced environments that did not transfer to unseen RL algorithms. We extend this approach in three ways: Firstly, we modify the meta-learning algorithm to discover environments invariant towards hyperparameter configurations and learning algorithms. Secondly, by leveraging hardware parallelism and introducing a curriculum on an agent's evaluation episode horizon, we can achieve competitive results on several challenging continuous control problems. Thirdly, we surprisingly find that contextual bandits enable training RL agents that transfer well to their evaluation environment, even if it is a complex MDP. Hence, we set up our experiments to train synthetic contextual bandits, which perform on par with synthetic MDPs, yield additional insights into the evaluation environment, and can speed up downstream applications.
