arXiv:2610.27714cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27714

When Does Experience Memory Help Closed-Loop LLM Driving Agents? A Controlled Evaluation with Resampled Warmup Pools, Token-Matched Fillers, and Audited Baselines

Yingxin Jia, Xuanyi Li

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

Abstract

When does experience memory help a closed-loop LLM driving agent? Published gains cannot say, because planners, prompts, and implementation quality vary together across systems, and the two factors we find to matter most, which warmup experiences the pool contains and what any injected tokens do to the prompt, are controlled in none of them. We answer with a controlled evaluation on one audited HighwayEnv testbed (kinematic observations, discrete meta-actions, 1 Hz, gpt-4o-mini for the decisive contrasts). We freeze the planner, encoder, and protocol, treat the warmup pool as a resampled random factor (ten disjoint pools), and add token-matched irrelevant-filler controls, oracle-certified diagnostics, scripted certificate policies, caution-pricing metrics, and quantified audits of the baseline ports. The probe suite spans flat-text retrieval (a DiLu port), a single-frame grid port (RESPOND-inspired), our episodic temporal-graph memory TG-Mem with five variants, a retrieval-free consolidated rulebook, and a flat K-step observation-history baseline. Four findings follow, each a property of this testbed. (1) Headline memory gains belong to the warmup draw. The reported pool is the best of ten for both retrieval memories, which beat No-Memory in only one pool of ten (sign test p=0.011) and have a negative pool-averaged effect, and even the rulebook's apparent pool-immunity (0.97 to 0.98 on five pools) collapsed to 0.03 to 0.98 on five fresh draws. (2) No retrieval design tested exceeds token-matched filler, which sits significantly above both memories under paired tests. The collision-only merge ceiling is reached by a scripted always-SLOWER policy and by a single 15-token caution instruction (both 0.98), and metrics that price caution erase the rulebook's lead. (3) Representational sophistication is nowhere robustly operative. Neither retrieved structure nor raw in-context history solves the oracle-solvable history-necessity diagnostic. (4) Baseline port quality silently inverts conclusions. On this testbed, a single-pool comparison without filler controls would have reported memory gains that these controls reverse. We release the testbed, diagnostics with certificates, the replay benchmark, audited ports, seeds, and caches.

Keywords: Large language models; autonomous driving; agent memory; temporal knowledge graphs; retrieval-augmented decision making; closed-loop simulation.

1. Introduction

Large language models (LLMs) have emerged as promising decision makers for autonomous driving that reason over scenes in natural language. A recurring finding is that they improve substantially when given an experience memory, a store of past situations and the actions

© 2026 Y. Jia & X. Li.

(a) Only the memory varies

Figure

(b) The missing controls

Figure

  1. warmup pool as a random factor (10 disjoint draws + 5 × budget)

  2. token-matched irrelevant filler (4 contents, 2 doses)

  3. pre-registered diagnostics + scripted oracle certificates

(c) A pool swap flips the disposition

Figure

(d) Injection turns a caution dial

Figure

Figure 1: Overview. (a) Memory designs from our probe suite and from the literature drive one frozen planner in closed loop, and only the memory system varies. (b) The controls we introduce: the warmup pool resampled as a random factor, token-matched irrelevant filler, and pre-registered diagnostics with scripted oracle certificates. (c) Swapping one 8-episode warmup pool flips the flat memory from aggressive (all hazard episodes crash) to timid (all time out) on the history-necessity diagnostic. (d) The early-SLOWER share tracks merge safety. The retrieval-free rulebook turns this dial hardest, yet five fresh pools swing it from 0.03 to 0.98.

that worked, retrieved and injected as few-shot guidance at decision time (Wen et al., 2024; Fu et al., 2024a; Mei et al., 2024). This paper asks the question those reports leave open. When does experience memory help, and under which warmup experiences, prompt compositions, and decision cadences? Published comparisons cannot answer this, because the memory varies together with the surrounding architecture and with implementation quality, and the two factors we find to matter most, which experiences the warmup pool contains and what any injected tokens do to the prompt, are controlled in none of them.

Our primary contribution is the controlled evaluation itself. We fix one planner, one encoder, and one warm-up, freeze, and evaluate protocol, and we instrument it with controls this literature has not used. The warmup pool becomes a resampled random factor (ten disjoint pools with model-free pool-level tests). Token-matched irrelevant-filler arms span content, dose, and a disclaimer×domain factorial. Two constructed diagnostics are certified well-posed by scripted oracles before any LLM run. Scripted non-LLM certificate policies bound what caution alone achieves, metrics price caution rather than only collisions, and a quantified audit measures the fidelity of the baseline ports. On this testbed we evaluate a probe suite that spans the memory design space (§3 and §4). At the rich end sits TG-Mem (Temporal-Graph Memory), our episodic design. Published driving memories retrieve flat text by embedding cosine (Wen et al., 2024; Fu et al., 2024a; Zhou et al., 2025; Mei et al., 2024) or a single-frame grid (Chen et al., 2026), whereas TG-Mem stores episodes as small typed temporal graphs matched by a combined structural and temporal score, a prompt-level driving instantiation of the temporal knowledge-graph memory line (Rasmussen et al., 2025; Chhikara et al., 2025; Xu et al., 2025), with five variants that toggle curation, keys, and injection. At the distilled end sits a consolidated rulebook: the same experience compressed once into at most eight rules (Zhao et al., 2024) and injected at every decision with no retrieval. At the direct end sits a flat K-step history baseline, and at the content-free end a token-matched padding arm and a four-content filler suite. Each probe is both a design under evaluation and a control for its neighbors.

The evaluation yields four findings (Figure 1). Each is a statement about this testbed, HighwayEnv with kinematic observations, discrete meta-actions, a 1 Hz decision cadence, and gpt-4o-mini for every decisive contrast, and each baseline statement concerns our audited ports under this harness ( §4\S4), not the published systems. Table 1 maps each finding to the confirmatory evidence behind it.

(M1) The warmup pool acts as a lottery: the headline gains are knife-edges that resampling reverses. Both headline gains, the diagnostic's 0.45→0.950.45 \rightarrow 0.95 ( p=0.001p=0.001) and the merge margin of +0.15 (significant under pairing), are properties of a particular draw. Resampled, the diagnostic effect spans 0.95 to 0.10, and on merge the reported pool is the best of ten disjoint pools: each memory exceeds No-Memory in one pool of ten (exact sign test p=0.011p=0.011), sits significantly below it in five, and has a pool-averaged effect near -0.20 ( §5\S5). A pool swap also flips the flat memory's entire disposition from aggressive to timid on the history-necessity diagnostic (Figure 1c), and the rulebook's "pool-immunity," confirmed on five pools, reversed on five fresh draws. (M2) No retrieval design tested exceeds our token-matched fillers. Injecting content-free tokens produces merge-safety changes comparable to the memories'. Fillers span 0.59 to 0.80 on merge against the memories' 0.66 to 0.67, and the strongest filler is significantly above both under paired tests. The designs that reach the collision-only ceiling turn the caution dial hardest, and the dial needs no memory: a scripted always-SLOWER policy and a single 15-token caution instruction both score 0.98, and the rulebook's best cells sit at that operating point while metrics that price caution erase its lead ( §5.1\S5.1). (M3) The operative ingredient dissociates (curation on merges, key precision on the diagnostic), and representational sophistication is nowhere robustly operative. TG-Mem and its five variants never robustly beat flat memory across splits. Its temporal edges, the design's central component, contribute at most marginally in a pool-conditional ablation. The key×injection 2×22 \times 2 (Table S44) finds compact injection consistently harmful while the key-type attribution flips with the pool, and even raw temporal context handed to the planner directly does not pass the history-necessity diagnostic that memory was hypothesized to solve. (M4) Baseline implementation quality silently inverts conclusions. A sub-

Table 1: Evidence map: each finding, the confirmatory result behind it, and the test used (n=100n = 100 paired seeds on merge, n=40n = 40 on diagnostics; n≤20n \leq 20 cells are exploratory).

FindingConfirmatory evidenceTest; location
M1Ten disjoint 8-episode pools, n=100n = 100 each: DiLu port and TG-Mem above No-Memory in 1/10 pools, below in 5/10; pool-averaged effect −0.20[−0.29,−0.10]/[−0.30,−0.09]-0.20\left[-0.29,-0.10\right]/\left[-0.30,-0.09\right]. Rulebook 0.97–0.98 on A–E, 0.03–0.98 on pre-registered F–J.Exact sign test (p=0.011p = 0.011); per-pool tests, Holm; bootstrap over pools; Fig. 3, Tab. S45, S51, S52
M2Padding filler 0.800 vs. TG-Mem 0.660 / DiLu port 0.670 (n=100n = 100 paired); caution line 0.980 above every memory and filler; always-SLOWER certificate 0.980 (no LLM); rulebook SaS 0.00.McNemar (p=0.029p = 0.029, 0.024; ≤4×10−9\leq 4\times 10^{-9}); Tab. 2, S47, S50
M3DiLu port vs. TG-Mem indistinguishable (n=100n = 100 paired); every arm 0/20 hazard successes on the oracle-solvable telegraph-v0 (n=40n = 40, pre-registered); –temporal edges 0.55 vs. 0.66 (n=40n = 40, pool A).McNemar (p=1.0p = 1.0; 0.07); Tab. 2, S30
M4Crippled DiLu port 0.375 vs. audited port 0.670; grid port fails two of three reproduction audits (51% decisions, 49% cells reproduced).Port audits; Tab. S11

tly crippled port halved the flat baseline and manufactured a false win for our own method. We quantify the artifact and release the audited ports.

Contributions. (i) An evaluation framework for agent experience memory, with instruments this literature lacks: the warmup pool as a resampled random factor with model-free pool-level tests, token-matched filler and padding arms with a disclaimer×domain factorial (the nearest analog is exemplar sensitivity in in-context learning (Lu et al., 2022)), oracle-certified diagnostics, scripted certificate policies, caution-pricing metrics, and a quantified baseline audit. (ii) A probe suite spanning the design space, all ours: TG-Mem, the first episodic temporal-graph memory for closed-loop driving, with five variants, plus the consolidated rulebook, the flat K-step history baseline, and the filler instruments. (iii) Findings M1 to M4 from the first controlled closed-loop comparison of flat, structured, temporal-graph, distilled, and history-based context (one protocol, three backbones), a real-data-seeded replay benchmark (54 highD cut-ins), and released ports, seeds, caches, and protocols.

References (25)