Remember Less, Adapt Longer: Bounded-State In-Context Reinforcement Learning with Recurrent Summary Memory
On the map: Deep reinforcement learning methods → Deep RL algorithms and representations
Abstract (arXiv)
In-context reinforcement learning (ICRL) enables agents to adapt to new tasks without parameter updates, relying on memory to retain what they learn from experience. For agents operating continually, existing approaches using memory trade off bounded cost against access to past experience. Approaches using growing memories, such as full-history attention and accumulating summaries, incur storage and per-decision costs that increase with task length. Fixed-size memories bound storage but restrict access: sliding windows discard older steps, while recurrent networks compress even recent interactions into a hidden state. We introduce Recurrent Summary Memory (RSM), a Transformer policy that attends exactly to a short working buffer of recent interactions and carries a fixed-capacity summary of earlier experience. When the buffer fills, RSM rewrites the summary from its previous contents and the buffer, then clears the buffer, so deployment memory and per-decision cost stay O(1) in task length. On long-running partially observable tasks, frozen RSM policies sustain their adapted performance for eight times the training horizon with about 1% of full-history memory, ending ahead of every evaluated baseline while growing memories deteriorate. When the task configuration changes mid-run, RSM re-adapts better than growing and recurrent memories. Clearing the summary or blocking the policy's access to it removes its benefit, while swapping in another task's summary steers behaviour towards that task. Together, these results show that our fixed-capacity summary can sustain in-context adaptation far beyond the training horizon.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Deep RL algorithms and representations, one of 15 directions in Deep reinforcement learning methods. Builds on 36 of its 41 references that are in the map. Submitted 19 Oct 2026.
Builds on
36 of 41 references.
Closest ancestors · 4
Same direction, newest first
- 2026Memory Retention Is Not Enough to Master Memory Tasks in Reinforcement Learning21 Jan
- 2025Memo: Training Memory-Efficient Embodied Agents with Reinforcement Learning22 Oct
- 2024Unraveling the Complexity of Memory in RL Agents: an Approach for Classification and Evaluation9 Dec
- 2024Stable Hadamard Memory: Revitalizing Memory-Augmented Agents for Reinforcement Learning14 Oct
Other references · 32
- 2017Attention Is All You Needcited by 62,125
- 2016Layer Normalizationcited by 6,002
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,222
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,932
- 2019Attention is not Explanationcited by 991
- 2021Deep Reinforcement Learning at the Edge of the Statistical Precipicecited by 889
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
- 2016RL2: Fast Reinforcement Learning via Slow Reinforcement Learningcited by 528
- 2019Efficient Off-Policy Meta-Reinforcement Learning via Probabilistic Context Variablescited by 399
- 2016Learning to reinforcement learncited by 396
- 2023Adapting Language Models to Compress Contextscited by 390
20 more
- 2020Critic Regularized Regressioncited by 281
- 2019Stabilizing Transformers for Reinforcement Learningcited by 276
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 227
- 2019VariBAD: A Very Good Method for Bayes-Adaptive Deep RL via Meta-Learningcited by 221
- 2022Recurrent Memory Transformercited by 220
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 205
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 149
- 2021Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPscited by 129
- 2022Block-Recurrent Transformerscited by 122
- 2023Structured State Space Models for In-Context Reinforcement Learningcited by 116
- 2016Learning values across many orders of magnitudecited by 90
- 2015Memory-based control with recurrent neural networkscited by 81
- 2023POPGym: Benchmarking Partially Observable Reinforcement Learningcited by 71
- 2023When Do Transformers Shine in RL? Decoupling Memory from Credit Assignmentcited by 68
- 2018Unsupervised Predictive Memory in a Goal-Directed Agentcited by 58
- 2022Evaluating Long-Term Memory in 3D Mazescited by 51
- 2023Recurrent Action Transformer with Memorycited by 21
- 2023Memory Gym: Towards Endless Tasks to Benchmark Memory Capabilities of Agentscited by 19
- 2023AGaLiTe: Approximate Gated Linear Transformers for Online Reinforcement Learningcited by 8
- 2025ELMUR: External Layer Memory with Update/Rewrite for Long-Horizon RL Problemscited by 7
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Verifiable Memory: Learning Unified Memory Management with Local and Global Verifiers for Large Language Model Agents
- 2026RECAP: Training Long-horizon LLM Agents with Context Compaction
- 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks
- 2025Memento 2: Learning by Stateful Reflective Memory
- 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents
- 2026ALER: Adaptive Learnable Experience Rewriting for Reinforcement Learning
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learning
- 2024Reinforcement Learning for Dynamic Memory Allocation