On Memory Construction and Retrieval for Personalized Conversational Agents

Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Xufang Luo, Hao Cheng +6 more
2/12/2026

No official code found. Best implementation: microsoft/SeCom (60 stars, MIT, last commit 2025-03-01).

Abstract

To deliver coherent and personalized experiences in long-term conversations, existing approaches typically perform retrieval augmented response generation by constructing memory banks from conversation history at either the turn-level, session-level, or through summarization techniques.In this paper, we present two key findings: (1) The granularity of memory unit matters: turn-level, session-level, and summarization-based methods each exhibit limitations in both memory retrieval accuracy and the semantic quality of the retrieved content. (2) Prompt compression methods, such as LLMLingua-2, can effectively serve as a denoising mechanism, enhancing memory retrieval accuracy across different granularities. Building on these insights, we propose SeCom, a method that constructs the memory bank at segment level by introducing a conversation segmentation model that partitions long-term conversations into topically coherent segments, while applying compression based denoising on memory units to enhance memory retrieval. Experimental results show that SeCom exhibits a significant performance advantage over baselines on long-term conversation benchmarks LOCOMO and Long-MT-Bench+. Additionally, the proposed conversation segmentation method demonstrates superior performance on dialogue segmentation datasets such as DialSeg711, TIAGE, and SuperDialSeg.

View on arXivView PDF

Code Implementations(1)

microsoft/SeComCommunity69%
MIT

SECOM: On Memory Construction and Retrieval for Personalized Conversational Agents, ICLR 2025

604Shell, PythonFeb 25, 20251 years agoMIT

Cite this paper

@article{pan2026memory,
  title  = {On Memory Construction and Retrieval for Personalized Conversational Agents},
  author = {Zhuoshi Pan and Qianhui Wu and Huiqiang Jiang and Xufang Luo and Hao Cheng and Dongsheng Li and Yuqing Yang and Chin-Yew Lin and H. V. Zhao and Lili Qiu and Jianfeng Gao},
  year   = {2026},
  eprint = {2502.05589},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.05589},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.05589.svg)](https://codeofpaper.com/paper/2502.05589)

Discussion