Investigating Memory in RL with POPGym Arcade
Zekang Wang, Zhe He, Borong Zhang, Edan Toledo, Steven Morad
TL;DR
The paper tackles the challenge of fairly evaluating memory in deep RL under partial observability by introducing a memory-analysis toolkit and POPGym Arcade, a hardware-accelerated Atari-like benchmark with MDP/POMDP twins sharing identical observation/actions. It presents formal tools such as the Observability Gap, Memory Bias, Recall Density, and Pixel Visualizations to disentangle memory effects from policy performance and to interpret how memory is used. Key findings include a memory-related bias where value can smear across irrelevant history (Value Smearing) and the demonstration that OOD observations can contaminate recurrent states, perturbing decisions far into the future, with implications for offline RL and sim-to-real transfer. The work enables controlled, high-throughput experiments and provides a foundation for fair memory evaluations and robust memory-aware RL research.
Abstract
How should we analyze memory in deep RL? We introduce mathematical tools for fairly 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, pixel-based 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. With this pathology, we demonstrate how out-of-distribution scenarios can contaminate memory, perturbing the policy far into the future, with implications for sim-to-real transfer and offline RL.
