SAG-Mem improves long-term chat memory using full dialogue chunks

SAG-Mem-1.0 Technical Report

Computation and LanguageInformation Retrieval

Summary

Remembering details from long conversations is hard because facts are spread out and sometimes only loosely related. The authors propose SAG-Mem, a system that keeps every message from past chats in small pieces without losing details. When asked a question, it finds helpful bits by searching with words that relate to the question and then expands the search based on found clues. SAG-Mem can better recall relevant past chat parts than previous methods, working efficiently and preserving timing details. They also made a lighter version that is faster with a slight drop in accuracy.

What this means in practice

  • For chatbot developers: Improve chatbots’ ability to recall relevant past conversation details across multiple sessions using full message retrieval and guided search expansion.
  • For customer support teams: Help support agents quickly retrieve detailed customer-chat history spanning many interactions without missing context or timing details.

Authors

Yuchao Wu, XingCheng Liang, Xuanze Wang, Yini Huang, Yue Wu

Abstract

Long-term conversational memory requires retrieving complementary facts scattered across dialogue sessions, including intermediate evidence with limited similarity to the original question. Existing approaches often rely on derived memory representations or persistent relational structures, introducing construction costs and potentially losing source details. We present SAG-Mem, a conversational memory framework that preserves complete dialogue messages in non-overlapping chunks and discovers complementary evidence through query-time lexical expansion. Memory construction requires no model inference, using a lexical index without LLM-based extraction, summarization, or semantic relation construction. At query time, BM25 retrieves initial candidates, an evidence evaluator identifies useful chunks, and lexical cues from selected evidence guide an additional retrieval round. Retrieved dialogue is further annotated with calendar interpretations of supported relative-time expressions, preserving the original wording and temporal granularity. We also introduce SAG-Mem-Lite, an alternative configuration that replaces evidence scoring with embedding-based candidate scoring, achieving lower operational cost than Full Context and all memory-based baselines across both benchmarks with low query latency. On LoCoMo and LongMemEval, SAG-Mem achieves overall scores of 83.08 and 80.20, respectively, the highest among the evaluated methods on both benchmarks. On LongMemEval, it exceeds the strongest compared baseline by 7.20 points. SAG-Mem-Lite achieves scores of 77.09 and 77.20, respectively. These results support dialogue preservation and evidence-guided retrieval expansion as an effective design for long-term conversational memory.