TL;DR
MDP Playground is a lightweight, open-source testbed that lets reinforcement learning (RL) researchers isolate and tune individual "dimensions of difficulty"—such as reward delay, transition noise, irrelevant features, and time discretization—in fast-to-run toy environments. By enabling complete agent runs in roughly 30 seconds on a laptop CPU, it provides a standardized platform to unit-test, debug, and develop RL agents before scaling up to expensive benchmarks like Atari or MuJoCo.
What Problem Does This Paper Address?
Evaluating RL algorithms on popular benchmarks like Atari 2600 or MuJoCo is notoriously expensive and opaque. A single Deep Q-Network (DQN) run on Atari can take days of compute and tens of gigabytes of memory. Worse, these environments bundle multiple challenges together—such as partial observability, delayed rewards, high-dimensional observations, and complex physics—making it nearly impossible to isolate why an agent succeeds or fails.
While researchers frequently invent ad-hoc toy problems to debug their ideas, these lack standardization. Existing suites (like DeepMind’s bsuite) offer fixed presets and omit continuous control tasks. RL lacks a fast, principled sandbox where researchers can independently vary individual factors of environment hardness in a fine-grained, orthogonal way.
Methods
The authors decompose Markov Decision Processes (MDPs) and Partially Observable MDPs (POMDPs) into orthogonal, independently controllable dimensions of difficulty:
- Reward Dynamics ($R$): Reward delay (artificially delaying reward delivery by $d$ steps), reward density/sparsity, and reward noise.
- Transition Dynamics ($P$): Transition noise (random next-state perturbation) and time unit (discretization step size $\Delta t$).
- Observation Space ($O$): Irrelevant state/action features, image representations, and visual perturbations (random shift, scale, rotation, and flip).
- Action Space ($A$): Action range and action loss penalties.
MDP Playground implements:
- Auto-generated Toy Environments: Discrete categorical MDPs and continuous 2D rigid-body navigation tasks that instantiate these dimensions while exposing the true underlying state (
augmented_state) for analysis. - Complex Environment Wrappers: Modular wrappers that inject the exact same dimensions (e.g., reward delay, observation noise) into standard Atari and MuJoCo environments to test whether insights gained on toy MDPs transfer to complex benchmarks.
Datasets and Environments
- New Benchmark: MDP Playground toy environments (discrete grid/graph MDPs and continuous control tasks).
- Complex Environments (Evaluated via Wrappers):
- Atari: Beam Rider, Breakout, Q*bert, and Space Invaders.
- MuJoCo: HalfCheetah, Pusher, and Reacher (via
mujoco-py). - Baseline Algorithms Evaluated: DQN, Rainbow, and A3C on discrete domains; DDPG, TD3, and SAC on continuous domains; plus tabular methods (Q-learning, Double Q-learning, SARSA).
Key Insights and Ideas
- CNNs Struggle Most with Spatial Shifts: When testing image perturbations, random translation/shifting degraded DQN performance far more than scaling, rotating, or flipping. This highlights that learned convolutional representations are less translation-invariant in RL policies than commonly assumed.
- Default Time Discretization is Sub-Optimal: Tuning the simulation
time_unitin toy environments revealed an inverted-U performance curve. Transferring this insight to standard "expert-tuned" benchmarks revealed that MuJoCo defaults are also sub-optimal. - Noise Can Act as Exploration: Small amounts of injected transition noise actually improved agent performance in certain tasks by providing accidental $\epsilon$-greedy exploration when policies were tuned sub-optimally.
- Rapid Debugging and CI: Because toy runs finish in seconds, MDP Playground quickly revealed subtle implementation bugs—such as a broken Noisy Nets implementation in Ray RLlib's Rainbow—that previously required multi-day cluster runs to diagnose.
Key Results
- Ultra-low Compute Overhead: A complete 20,000-step DQN training run on the toy discrete environment takes an average of 35 seconds on a single laptop CPU core (Intel Core i7-8850H). An entire 50-run study (10 seeds across 5 parameter settings) executes in roughly 30 minutes.
- Toy-to-Complex Transfer: Performance degradation trends across dimensions strongly transferred from toy environments to complex benchmarks. The Spearman rank correlation between toy and Atari experiments was $\ge 0.7$ for 19 out of 24 experiments (with an average correlation of 0.867 for transition noise, 0.733 for reward noise, and 0.617 for reward delay).
- Benchmark Performance Gains: Tuning low-level parameters inspired by toy observations (e.g., scaling action range to $0.25\times$ on MuJoCo Reacher, or optimizing
time_unit) achieved performance gains of up to 100% over standard baseline configurations.
Limitations and Future Work
- Not for Final Hyperparameter Tuning: Toy environments cannot replace complex benchmarks for sizing neural networks or replay buffers.
- Simplified Physics: The toy continuous environment models a simple rigid body and does not capture multi-joint kinematic interactions present in complex robots.
- Scope Restrictions: Multi-Agent RL, Multi-Objective RL, and non-stationary/time-varying MDPs are currently out of scope.
- Future Directions: Expanding theoretical regret analysis for each dimension, evaluating more complex domains like dexterous robotic manipulation, and incorporating additional community-contributed dimensions.
Summary updated