TiMem: Temporal-Hierarchical Memory Consolidation for Long-Horizon Conversational Agents
Kai Li, Xuanqing Yu, Ziyi Ni, Yi Zeng, Yao Xu, Zheqing Zhang, Xin Li, Jitao Sang, Xiaogang Duan, Xuelei Wang, Chengbao Liu, Jie Tan
TL;DR
TiMem introduces a temporal--hierarchical memory framework for long-horizon conversational agents by constructing a five-level Temporal Memory Tree (TMT) that progressively consolidates memories from raw observations to a stable persona. Consolidation is instruction-guided and model-agnostic, enabling memory abstraction across segment, session, day, week, and profile levels without fine-tuning. A complexity-aware recall pipeline—consisting of a planner, hierarchical recall, and recall gating—adapts retrieval to query difficulty, balancing precision and efficiency. Empirical results on LoCoMo and LongMemEval-S show state-of-the-art accuracy and substantial memory-usage reductions, supported by manifold analyses demonstrating improved persona separation and noise suppression. TiMem offers a practical, interpretable foundation for scalable, grounded long-horizon memory in conversational AI.
Abstract
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.
