TL;DR
Evaluating memory in deep reinforcement learning (RL) is notoriously difficult because raw returns conflate memory quality with optimization challenges and model capacity. This paper introduces a suite of diagnostic tools and a fast, JAX-based benchmark called POPGym Arcade to isolate memory performance. Using these tools, the authors uncover "value smearing"—a pathology where agents over-rely on irrelevant history, making them highly vulnerable to long-lasting policy corruption from a single noisy observation.
What Problem Does This Paper Address?
In partially observable environments (POMDPs), RL agents must use memory to track hidden information and make optimal decisions. However, standard practice evaluates memory models simply by comparing total returns. This is highly problematic because adding a memory mechanism changes many variables at once: it increases parameter count, complicates the optimization landscape, and alters representation capacity.
Consequently, a model might achieve a higher return not because it is better at reconstructing the hidden state, but simply because it has more parameters or settled into a better local optimum. To truly understand and improve memory in deep RL, we need a way to isolate its ability to resolve partial observability from these confounding factors.
Methods
The authors propose two primary metrics to disentangle memory performance:
- Observability Gap: The difference in performance when a memory-equipped agent plays a fully observable game (MDP) versus its partially observable twin (POMDP). This directly isolates how well the model infers hidden states from a stream of observations.
- Memory Bias: The difference in performance between a memory-equipped agent and a memory-free agent on a fully observable game. Because memory is unnecessary in an MDP, this metric captures the inherent overhead or optimization penalty introduced by the memory architecture.
To look inside the "black box" of learned memory, the authors introduce Pixel Visualizations (backpropagating gradients from Q-values or action distributions to past frames) and Recall Density, a quantitative metric that measures the expected relative influence of past observations across variable-length trajectories.
Datasets
The authors introduce POPGym Arcade, an Atari-inspired benchmark consisting of 10 base environments (such as Battleship, MineSweeper, and Tetris) with 120 total variants.
Crucially, every environment comes as a pair of "twins": an MDP version and a POMDP version that share the exact same pixel observation and action spaces. This allows researchers to run perfectly controlled, counterfactual studies on observability. The benchmark is implemented entirely in JAX for hardware acceleration.
Key Insights and Ideas
- Memory is a Double-Edged Sword (Negative Memory Bias): Across almost all tested architectures, Memory Bias was consistently negative. This means that adding memory to a fully observable task actually hurts performance compared to a simple MLP, highlighting the severe optimization penalties that memory models introduce.
- The Value Smearing Pathology: When visualizing what memory models actually learn, the authors discovered that even on fully observable MDPs—where the past is completely irrelevant—agents "smear" value credit across their entire history. They fail to realize that old frames contain no useful information for the current step.
- Recurrent State Contamination: Because agents fail to decorrelate the past, they are incredibly fragile to out-of-distribution (OOD) events. Injecting noise into just a single early frame can corrupt the recurrent state, altering the agent's relative Q-values and ruining its policy for up to 100 timesteps into the future.
Key Results
- Massive Speedups: Built entirely in JAX, POPGym Arcade achieves environment throughput roughly 10,000 times faster than CPU-based Atari environments, scaling linearly up to 128 parallel environments on a single GPU.
- Exposing Hidden Trade-offs: The new metrics successfully expose distinctions that raw returns hide. For instance, Gated Delta Networks (GDN) and MinGRU achieve nearly identical raw POMDP returns (~0.47). However, GDN has a significantly smaller Observability Gap (meaning it is better at state tracking) but a worse Memory Bias (meaning it is harder to optimize).
Limitations and Future Work
The study focuses strictly on pixel-based, model-free RL algorithms (such as PQN, PPO, and DQN). It remains an open question whether model-based RL (which uses world models) or heavily fine-tuned Large Language Models (LLMs) suffer from the same value smearing and state contamination pathologies. Additionally, while the authors identify value smearing as a primary suspect behind memory-induced performance penalties, establishing a strict mathematical causal link requires further investigation.
Summary updated