Abstract: We present MDP Playground, an efficient benchmark for Reinforcement Learning (RL) algorithms with various dimensions of hardness that can be controlled independently to challenge algorithms in different ways and to obtain varying degrees of hardness in generated environments. We consider and allow control over a wide variety of key hardness dimensions, including delayed rewards, rewardable sequences, sparsity of rewards, stochasticity, image representations, irrelevant features, time unit, and action max. While it is very time consuming to run RL algorithms on standard benchmarks, we define a parameterised collection of fast-to-run toy benchmarks in OpenAI Gym by varying these dimensions. Despite their toy nature and low compute requirements, we show that these benchmarks present substantial challenges to current RL algorithms. Furthermore, since we can generate environments with a desired value for each of the dimensions, in addition to having fine-grained control over the environments' hardness, we also have the ground truth available for evaluating algorithms. Finally, we evaluate the kinds of transfer for these dimensions that may be expected from our benchmarks to more complex benchmarks. We believe that MDP Playground is a valuable testbed for researchers designing new, adaptive and intelligent RL algorithms and those wanting to unit test their algorithms.
1. Introduction
Reinforcement Learning (RL) has achieved remarkable milestones, yet diagnosing why an agent fails remains a significant challenge. Standard benchmarks like Atari or MuJoCo are often "black boxes" of difficulty where multiple challenges—such as sparse rewards, noisy observations, and long temporal delays—are inextricably linked. This lack of granularity makes it difficult to isolate which environmental factor is the primary cause of failure for a given algorithm.
2. The MDP Playground Framework
To address this, we introduce MDP Playground, a "glass box" benchmark that allows researchers to isolate and control specific dimensions of hardness. Built as a Python package that generates parameterized OpenAI Gym environments, it provides a fast, low-compute way to unit-test algorithms. A full DQN run of 20,000 steps takes approximately 35 seconds on a single laptop CPU core, enabling rapid iteration that is impossible on standard high-compute benchmarks.
3. Dimensions of Hardness
The framework allows researchers to independently adjust several "knobs" of difficulty:
- Temporal Credit Assignment: Controlled via reward delay ($d$) and rewardable sequence length ($n$).
- Sparsity and Noise: Independent control over reward sparsity and transition/reward stochasticity.
- Representation: Image-based tasks using polygons with specific transforms like rotation, shift, or noise.
- Continuous Control: Parameters for "action max" and "time unit" discretization.
Because these environments are generated, the ground truth (optimal policy and value function) is known, allowing for precise evaluation beyond simple total reward metrics.
4. Experimental Results and Insights
Experiments conducted in MDP Playground reveal critical insights into algorithm behavior. For instance, while CNNs are theoretically spatially invariant, we found that spatial shifts in image-based tasks are significantly harder for agents to handle than rotations, requiring many more samples to master.
In temporal challenges, the playground highlights the relative robustness of advanced algorithms. As shown in the figures below, while both vanilla DQN and Rainbow DQN suffer as the sequence length (the number of steps required to achieve a reward) increases, Rainbow DQN maintains significantly higher performance at greater lengths, demonstrating its superior credit assignment capabilities.
Furthermore, we found a Spearman rank correlation of $\ge 0.7$ between performance trends in these toy environments and complex benchmarks like Atari and MuJoCo. This confirms that the failure modes identified in seconds on a laptop are representative of the challenges faced in large-scale RL tasks.
5. Conclusion
MDP Playground moves RL research toward a more principled, engineering-heavy approach. By providing a framework for unit testing, researchers can move away from expensive trial-and-error on black-box benchmarks and toward a deeper understanding of algorithm robustness across isolated dimensions of hardness.
Summary updated