跳到正文
arXiv:cs.CL· Zijun Wang, Yifan Ji, Haidong Xin, Zhenghao Liu, Yukun Yan, Zulong Chen, Yu Gu, Ge Yu, Maosong Sun·· 11 小时前

T²Mem:面向 LLM 长交互历史的测试时记忆构建框架

Test-Time Memory Construction

AI 导读

研究者提出 T²Mem,一个将记忆构建推迟到推理阶段的测试时记忆构建框架,在推理过程中逐步构建查询专属记忆。该方法离线仅提取轻量级 episode 级元数据作为检索线索,测试时由 LLM 自适应检索并组织元数据与原始交互。在 LoCoMo 和 LongMemEval 上,T²Mem 在不同骨干 LLM 上持续超越强基线,同时大幅降低记忆构建开销,代码已开源。

正文

View PDF HTML (experimental)

Abstract: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 T$^2$Mem, a Test-Time Memory construction framework that defers memory construction to inference and progressively builds memory along the reasoning process. Specifically, T$^2$Mem 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 T$^2$Mem 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 this https URL.
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2610.13348 [cs.CL]
  (or arXiv:2610.13348v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2610.13348

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Haidong Xin [view email]
[v1] Fri, 9 Oct 2026 10:24:51 UTC (1,583 KB)

来源:arXiv:cs.CL · arxiv.org