arXiv:2610.33816cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33816

Memory or a Clock? Auditing a Memory Advantage in XLand-MiniGrid with Seeds, Maps and Evaluation Noise Apart

Rodrigo Reveron-Fonseca

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

On a partially observable XLand-MiniGrid task, an LSTM agent beats a memory-free MLP by 25 percentage points. The gap looks like a clear case of memory. We ask two questions about it. First, how much of a measured gap is noise? Separating training seed, map and evaluation randomness in 60 runs, each re-evaluated three times, we find that about ten paired seeds detect a 10-point gap in final success. The binary “task acquired” verdict, a common summary of learning curves, is 76% evaluation noise and would need about a hundred seeds for the same gap. Second, is the gap memory? On a sealed panel of new maps, opened once, a memory-free MLP of the LSTM’s size comes within 3.3 points of the LSTM when it is given the time step, and gains no measurable benefit from its width without it. With the time step, an MLP a quarter of the LSTM’s size, and the LSTM with its state erased at every step, also come within about 5 points. A linear probe reads the time step from the trained LSTM’s state. On this task, most of the apparent memory advantage is an advantage of knowing the time, which matters because episodes are cut at a fixed limit and the reward shrinks with time. We recommend giving memory-free baselines the time step, and we release the protocol, the event-driven tooling and every checkpoint.

1 Introduction

When an agent cannot see everything that matters, it has to remember. The standard test of whether memory helps is a comparison: train a recurrent agent and a feedforward one on a partially observable task and see which does better. If the recurrent agent wins, the gap is read as the value of memory. Small, fast environments such as XLand-MiniGrid (Nikulin et al., 2024) make such comparisons cheap enough to run on a laptop, and so they are run often.

We started from one such comparison. In a pilot with three seeds on an XLand-MiniGrid pickup task, an LSTM agent learned the task and a memory-free MLP did not; on held-out maps the LSTM was ahead by 17 to 42 percentage points on every seed. It looked like a clean memory result. Before building on it we asked two questions that apply to any result of this kind.

How much of a measured gap is noise? A run’s score depends on the training seed, on the maps it is tested on, and on the randomness of the evaluation episodes themselves. With three seeds and a single evaluation per checkpoint these sources are mixed, and some popular summaries, such as a yes/no verdict that a task was “acquired”, may be dominated by the last one. Prior work has shown that deep RL comparisons need more seeds than are usually run (Henderson et al., 2018; Colas et al., 2018; Agarwal et al., 2021; Patterson et al., 2024); we ask how many, for which metric, and why, by separating the three sources of variation with the tools of generalizability theory (Cronbach et al., 1972; Brennan, 2001).

Is the gap memory? The LSTM in our pilot was also four times larger than the MLP, and it could do something the MLP could not: count the steps of the episode. Episodes are cut at a fixed time limit and the reward shrinks with time, so knowing the time is useful on its own (Pardo et al., 2018). A memory advantage is only an advantage of memory once capacity and time awareness are controlled.

We answer both questions with 188 runs on one laptop CPU, every one listed in a plan before its results existed, executed as an event-driven chain and re-evaluated from saved weights. Our contributions are:

• A variance decomposition of an RL comparison into training seed, map, seed × map and evaluation noise (60 runs, Section 4), with the number of seeds each metric needs. About ten paired seeds detect a 10-point gap in final success, but the binary acquisition verdict is 76% evaluation noise and needs about a hundred.

• An audit of the memory advantage with parameter-matched controls, a recurrence ablation, a short fixed memory and a clock input, tested on a sealed panel of new maps opened once (Section 5). A memory-free MLP of the LSTM's size that is told the time step comes within 3.3 points of the LSTM; width without the clock adds nothing measurable. Most of the apparent memory advantage is an advantage of knowing the time.

• Evidence for the mechanism: a linear probe reads the time step from the trained LSTM's state, but not from the observation or from an LSTM whose state is erased; and giving the time step to that erased LSTM, or to an MLP a quarter of the LSTM's size, brings either to within 5 points of the LSTM.

• Tooling and data: preregistered plans, an event-driven runner with no silent retries, re-evaluation of every checkpoint, sealed panels, and all weights and per-episode outcomes. Re-running a seed reproduces its weights bit for bit.