Just-in-Time Memory: Learning to Curate Task-Adaptive Memory for LLM Agents
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Agentic memory systems reuse past experience to improve future performance, yet most existing designs curate memory at write time: once a task is completed, its trajectory is distilled into a fixed artifact, such as a reflection, workflow, skill, or reasoning strategy, that is later retrieved by similarity. This forces the system to decide what is worth remembering before the future query is known, irreversibly discarding information and producing a query-independent summary that must serve many possible downstream tasks. Learning such a write-time curator is also difficult because the value of a storage decision may only become apparent when a relevant query arrives, potentially many tasks later, creating a long-horizon credit-assignment problem. We instead retain raw trajectories and defer curation until read time, when the current task is known. Given the retrieved traces and the new task, a memory curator synthesizes a compact, task-adaptive payload tailored to the immediate need. Because this payload is consumed on the same task, the curator can be trained directly from immediate task success, avoiding delayed utility signals and the need to artificially group related tasks. Across ALFWorld, WebShop, and τ2-bench, our Just-in-Time Memory (JitMem) consistently outperforms no-memory agents as well as heuristic and learned write-time memory methods, improving over the strongest baseline by 16.2, 16.3, and 3.9 absolute success-rate points, respectively. Notably, even an untrained curator is already competitive with or surpasses these baselines, showing that task-adaptive read-time curation itself is a major source of the gain; training the curator further compounds the improvement.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 35 of its 38 references that are in the map. First posted on arXiv 23 Sep 2026.
Builds on
35 of 38 references.
Closest ancestors · 14
Same direction, newest first
- 2026MemHarness: Memory Is Reconstructed, Not Replayed30 Jul
- 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents15 Jul
- 2026MemRefine: LLM-Guided Compression for Long-Term Agent Memory11 Jun
- 2026MemToolAgent: Leveraging Memory for Tool Using Agents Based on Environment and User Feedback6 Jun
- 2026From Storage to Experience: A Survey on the Evolution of LLM Agent Memory Mechanisms7 May
- 2026Escaping the Context Bottleneck: Active Context Curation for LLM Agents via Reinforcement Learning13 Apr
- 2026Decocted Experience Improves Test-Time Inference in LLM Agents6 Apr
- 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents5 Jan
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory29 Sep
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
- 2025Memento: Fine-tuning LLM Agents without Fine-tuning LLMs22 Aug
- 2025Memp: Exploring Agent Procedural Memory8 Aug
2 more
Other references · 21
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
- 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 627
- 2024Agent Workflow Memorycited by 383
9 more
- 2023Synapse: Trajectory-as-Exemplar Prompting with Memory for Computer Controlcited by 187
- 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimizationcited by 112
- 2026SkillOS: Learning Skill Curation for Self-Evolving Agentscited by 49
- 2025Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agentscited by 27
- 2025MemSearcher: Training LLMs to Reason, Search and Manage Memory via End-to-End Reinforcement Learningcited by 27
- 2025Sculptor: Empowering LLMs with Cognitive Agency via Active Context Managementcited by 18
- 2026Remember When It Matters: Proactive Memory Agent for Long-Horizon Agentscited by 11
- 2026Skills on the Fly: Test-Time Adaptive Skill Synthesis for LLM Agentscited by 10
- 2026Recursive Experiential-Working Memory Evolution for Long-Horizon Agent Harnessescited by 9
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Just-In-Time Agent Memory with Runtime Agentic Research
- 2026MemAgent: Learning to Manage Heterogeneous Memory Providers for LLM Agents
- 2026AdMem: Advanced Memory for Task-solving Agents
- 2026Agent Memory: Characterization and System Implications of Stateful Long-Horizon Workloads
- 2026Exploring Cross-Scenario Generality of Agentic Memory Systems: Diagnostics and a Strong Baseline
- 2026Rosetta Memory: Adaptive Memory for Cross-LLM Agents
- 2025How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following Behavior
- 2026Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents