Test-Time Memory Construction
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) struggle to answer questions over long interaction histories, where relevant evidence may be scattered across distant sessions. Existing memory systems typically construct and maintain sophisticated memory representations offline, before user queries are observed, incurring substantial overhead and limiting their ability to adapt memory construction to query-specific information needs. In this paper, we propose T2Mem, a Test-Time Memory construction framework that defers memory construction to inference and progressively builds memory along the reasoning process. Specifically, T2Mem extracts lightweight episode-level metadata offline to capture key events and temporal associations as retrieval cues, while retaining links to the original interactions to facilitate the reconstruction of dependencies across episodes. At test time, the LLM adaptively retrieves and organizes metadata and raw interactions, progressively constructing query-specific memory as reasoning unfolds. Experiments on LoCoMo and LongMemEval show the effectiveness of T2Mem by consistently outperforming strong baselines across different backbone LLMs while substantially reducing the overhead of memory construction. Further analysis demonstrates that deferring memory construction to inference enables the memory construction process to dynamically adapt to the information needs of individual queries. All code is available at https://github.com/OpenBMB/T2Mem.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 38 references that are in the map. First posted on arXiv 9 Oct 2026.
Builds on
33 of 38 references.
References · 33
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 779
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 634
21 more
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 556
- 2025Search-o1: Agentic Search-Enhanced Large Reasoning Modelscited by 433
- 2025Memory in the Age of AI Agentscited by 303
- 2024Token-Budget-Aware LLM Reasoningcited by 247
- 2025LightMem: Lightweight and Efficient Memory-Augmented Generationcited by 180
- 2025Memory OS of AI Agentcited by 150
- 2025In Prospect and Retrospect: Reflective Memory Management for Long-term Personalized Dialogue Agentscited by 106
- 2025How Well do LLMs Compress Their Own Chain-of-Thought? A Token Complexity Approachcited by 97
- 2026EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoningcited by 54
- 2026TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agentscited by 31
- 2026Beyond RAG for Agent Memory: Retrieval by Decoupling and Aggregationcited by 19
- 2026HiMem: Hierarchical Long-Term Memory for LLM Long-Horizon Agentscited by 18
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 7
- 2026MetaMem: Evolving Meta-Memory for Knowledge Utilization through Self-Reflective Symbolic Optimizationcited by 7
- 2026LazyMem: Retrieve Broadly, Construct Selectively for Efficient Long-Term Agent Memorycited by 5
- 2026Finding What Matters: Anchoring Context Knowledge with Evolving Indices for Iterative Retrievalcited by 3
- 2025LISRec: Modeling User Preferences with Learned Item Shortcuts for Sequential Recommendationcited by 2
- 2026SEEK: Steering LLM Reasoning for RAG via Internal Reasoning Sketchescited by 2
- 2026AnchorMem: Anchored Facts with Associative Contexts for Building Memory in Large Language Modelscited by 1
- 2026Memory Shot for Long-Term Dialoguecited by 1
- 2026TrajWiki: Source-Grounded Memory Trajectories for Long-Horizon Dialogue Agentscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026REAL: A Reasoning-Enhanced Graph Framework for Long-Term Memory Management of LLMs
- 2026MemGuard: Preventing Memory Contamination in Long-Term Memory-Augmented Large Language Models
- 2026Temporal Evidence Forests for Long-Horizon Multi-Party Conversational Memory
- 2026MemCoT: Test-Time Scaling through Memory-Driven Chain-of-Thought
- 2026MemSearch-o1: Empowering Large Language Models with Reasoning-Aligned Memory Growth in Agentic Search
- 2026MemTrace: Probing What Final Accuracy Misses in Long-Term Memory
- 2026MemChain: Learning Interpretable Memory Traces for Memory-Augmented LLM Agents
- 2026Zero-Mem: Zero-Token Memory Operations for LLM Agents