On Memory Construction and Retrieval for Personalized Conversational Agents

Zhuoshi Pan, Qianhui Wu, Huiqiang Jiang, Xufang Luo, Hao Cheng, Dongsheng Li, Yuqing Yang, Chin-Yew Lin, H. V. Zhao, Lili Qiu, Jianfeng Gao

arXiv:2502.05589 · 2026-07-27 공개 · arXiv · PDF

retrieval-augmented locomo long-term-conversation memory-retrieval secom dialogue-segmentation long-mt-bench personalized-conversation

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.

한국어 요약

한 줄 요약

SeCom은 세그먼트 단위 메모리와 압축 기반 디노이징을 결합해 대화 에이전트의 장기 기억 검색 정확도를 향상시킨다.

핵심 기여도

핵심 아이디어

기존 대화 에이전트는 턴 단위, 세션 단위, 혹은 요약 기반 메모리를 사용하지만, 이들 모두가 검색 정확도와 의미적 일관성에서 한계를 보인다. 예를 들어, 턴 단위는 관련 정보가 여러 턴에 분산되어 있을 경우 검색이 어려우며, 세션 단위는 여러 주제가 혼합된 경우 불필요한 정보를 포함하게 된다. 본 연구는 대화의 자연스러운 구조를 반영한 **세그먼트 단위 메모리**를 도입하고, 자연어의 내재적 중복성을 제거하기 위해 **LLMLingua-2 기반 압축 디노이징**을 적용한다. 이는 검색 모듈의 정확도를 향상시키고, 의미적으로 일관된 컨텍스트를 생성한다.

기술적 접근법

주요 결과

의의 및 한계

SeCom은 대화 에이전트의 장기 기억 관리에 있어 세그먼트 단위 메모리와 압축 디노이징을 결합한 **새로운 패러다임**을 제시한다. 특히, 자연어의 중복성을 제거함으로써 검색 정확도를 향상시키는 점이 학술적·실용적으로 의미가 크다. 다만, 압축률이 50% 이하일 경우 디노이징 효과가 감소하며, 세그먼트 분할 모델의 학습 데이터가 제한적일 경우 성능 저하가 발생할 수 있다.

실용적 활용

SeCom은 고객 지원, 개인화된 챗봇, 멀티턴 대화 시스템 등에서 **장기 대화의 일관성과 정확도를 향상**시키는 데 활용 가능하다. 특히, 대규모 대화 기록을 효율적으로 관리하고, 불필요한 정보를 제거해 사용자 경험을 개선할 수 있다.