Abstract
We introduce POPGym Arcade, a benchmark consisting of 7 pixel-based environments each with three difficulties, utilizing a single observation and action space. Each environment offers both fully observable and partially observable variants, enabling counterfactual studies on partial observability. POPGym Arcade utilizes JIT compilation on hardware accelerators to achieve substantial speedups over CPU-bound environments. Moreover, this enables Podracer-style architectures to further increase hardware utilization and training speed. We evaluate memory models on our environments using a Podracer variant of Q learning, and examine the results. Finally, we generate memory saliency maps, uncovering how memories propagate through policies. Our library is available at https://github.com/bolt-research/popgym_arcade.
Introduction
In reinforcement learning (RL), agents operating in real-world scenarios rarely have access to the complete state of their environment. This condition, known as partial observability, requires agents to maintain a memory of past observations to infer hidden information. However, evaluating memory architectures in Deep RL is often a "blunt instrument" approach, typically relying on final return scores. This makes it difficult to determine if a model's performance is due to its memory capacity, its parameter count, or the inherent difficulty of the task. POPGym Arcade addresses this by providing a controlled environment where observability is the primary variable.
The POPGym Arcade Benchmark
POPGym Arcade consists of 10 Atari-inspired base environments, including classics like Battleship, Minesweeper, and Tetris. These environments are implemented in JAX, allowing for high-speed execution on GPUs and TPUs.
A unique feature of this benchmark is the use of "environment twins." Every task exists in two forms: a fully observable Markov Decision Process (MDP) version and a partially observable (POMDP) version. Because both versions share identical dynamics and action spaces, researchers can perform counterfactual studies to isolate the impact of partial observability on agent performance.
Analytical Framework
To move beyond simple return metrics, the authors introduced several analytical tools:
- Observability Gap: Quantifies the performance loss specifically attributable to the transition from full to partial observability.
- Memory Bias: Measures the performance impact of adding a memory module to a task that is already fully observable, identifying whether the architecture itself introduces optimization overhead.
- Recall Density & Saliency Maps: Quantitative and visual tools that use gradients to track which specific past pixels and observations influence current decision-making.
Key Results and Insights
Experimental results demonstrate that POPGym Arcade is approximately 100x faster than previous CPU-bound benchmarks while handling significantly larger pixel observations.
Value Smearing and Memory Bias
The study uncovered a pathology termed "value smearing," where recurrent models (like GRUs) incorrectly attribute importance to irrelevant historical data. Furthermore, the "Memory Bias" experiments revealed that adding memory to fully observable tasks often decreases performance, suggesting that memory architectures can introduce significant optimization complexities.
State Contamination
The benchmark also highlighted the risk of "recurrent state contamination." In long-horizon tasks, a single noisy or out-of-distribution observation can corrupt the agent's hidden state for hundreds of timesteps. This finding has significant implications for sim-to-real transfer, where sensor glitches could lead to persistent failures.
Conclusion
POPGym Arcade provides a rigorous, high-performance framework for investigating the nuances of memory in RL. By disentangling task difficulty from memory utility, it offers a clearer path for developing more robust and efficient memory-augmented agents. Future work will expand these investigations to more complex 3D environments and a broader range of architectures, including modern Transformers.
Summary updated