Investigating Memory in Model-Free RL with POPGym Arcade

Zekang Wang, Zhe He, Borong Zhang, Edan Toledo, Steven Morad

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.
Figure 2. The relationship between the Memory Bias and Observability Gap. Memory Bias detects hidden confounders introduced by memory model f, such as increased parameter count or optimization difficulty. Observability Gap quantifies how well memory miti- gates partial observability. Combining said metrics with equivalent MDP/POMDPs (M, P), enables counterfactual studies of memory.

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.

POPGym Arcade provides identical pixel-space MDP/POMDP twins alongside memory analysis tools.

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

Abstract

How should we analyze memory in deep RL? We introduce tools for analyzing policies under partial observability and revealing how agents use memory to make decisions. To utilize these tools, we present POPGym Arcade, a collection of Atari-inspired, hardware-accelerated environments sharing a single observation and action space. Each environment provides fully and partially observable variants, enabling counterfactual studies on observability. We find that controlled studies are necessary for fair comparisons and identify a pathology where value functions smear credit over irrelevant history. Using this pathology, we demonstrate how out-of-distribution scenarios can contaminate memory, perturbing the policy far into the future. Our code is available at https://github.com/bolt-research/popgym-arcade.
BibTeX
@inproceedings{wang2026investigating,
  author = {Zekang Wang and Zhe He and Borong Zhang and Edan Toledo and Steven Morad},
  title = {{Investigating Memory in Model-Free RL with POPGym Arcade}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=vBMdonzFEV},
}
Figure