arXiv:2601.02845cs.CLcs.AI2026-01ACL被引 19

构建分层时间记忆树,让聊天机器人长期记忆更连贯稳定。

TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agents

  • 用时间分层树结构组织对话历史,逐级抽象形成人格表征。
  • 在两个基准上分别达到75.30%和76.88%准确率,领先现有方法。
  • 无需微调即可跨层级整合记忆,适合长期个性化对话系统。

长时对话代理需处理不断增长的交互历史,超出大语言模型有限的上下文窗口。现有记忆框架对跨层级的时间结构支持不足,常导致记忆碎片化和长期个性化不稳定。本文提出TiMem,一种时间-分层记忆框架,通过时间记忆树(TMT)组织对话,实现从原始对话观测到逐步抽象的人格表征的系统性记忆整合。TiMem具备三大特性:(1) 借助TMT实现时间-分层组织;(2) 语义引导的记忆融合,无需微调即可跨层级整合;(3) 复杂度感知的记忆召回,平衡不同复杂度查询的精度与效率。在统一评估下,TiMem在LoCoMo和LongMemEval-S上分别取得75.30%和76.88%的准确率,超越所有基线,同时在LoCoMo上减少52.20%的召回记忆长度。多维度分析显示,其在LoCoMo上呈现清晰的人格分离,在LongMemEval-S上降低记忆分散度。整体而言,TiMem将时间连续性作为长时记忆组织的核心原则。代码已开源。

原文摘要 · Abstract (English)

Long-horizon conversational agents have to manage ever-growing interaction histories that quickly exceed the finite context windows of large language models (LLMs). Existing memory frameworks provide limited support for temporally structured information across hierarchical levels, often leading to fragmented memories and unstable long-horizon personalization. We present TiMem, a temporal--hierarchical memory framework that organizes conversations through a Temporal Memory Tree (TMT), enabling systematic memory consolidation from raw conversational observations to progressively abstracted persona representations. TiMem is characterized by three core properties: (1) temporal--hierarchical organization through TMT; (2) semantic-guided consolidation that enables memory integration across hierarchical levels without fine-tuning; and (3) complexity-aware memory recall that balances precision and efficiency across queries of varying complexity. Under a consistent evaluation setup, TiMem achieves state-of-the-art accuracy on both benchmarks, reaching 75.30% on LoCoMo and 76.88% on LongMemEval-S. It outperforms all evaluated baselines while reducing the recalled memory length by 52.20% on LoCoMo. Manifold analysis indicates clear persona separation on LoCoMo and reduced dispersion on LongMemEval-S. Overall, TiMem treats temporal continuity as a first-class organizing principle for long-horizon memory in conversational agents. The code is available at https://github.com/TiMEM-AI/timem.

对话系统长时记忆分层记忆LLM应用

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。