Ever-Evolving Memory by Blending and Refining the Past

Seo Hyun Kim, Keummin Ka, Yohan Jo, Seung-won Hwang, Dongha Lee, Jinyoung YeoarXiv 2024 · DOI

Abstract

Maintaining a consistent, long-term persona remains a significant challenge for Large Language Model (LLM) based chatbots. Traditional memory systems often suffer from fragmentation and contradictions as user preferences and situations evolve. This paper introduces CREEM (Contextualized Refinement based Ever-Evolving Memory), a framework that treats memory construction as an active reasoning process. By "blending" past memories with current dialogue to generate high-level insights and "refining" outdated information, CREEM ensures a chatbot's knowledge base evolves dynamically, leading to more coherent and human-like long-term interactions.

Introduction: The Challenge of Long-Term Memory

While current LLMs excel at short-term reasoning, they struggle with the temporal dynamics of human conversation. Existing systems typically accumulate session summaries, leading to two primary issues:

  1. Memory Fragmentation: Storing isolated facts fails to capture how a user’s preferences or life situations change over time.
  2. Contradiction: Without a mechanism to overwrite the past, a chatbot may recall conflicting states (e.g., remembering a user is both "sick" and "healthy"), resulting in nonsensical responses.
Comparison of memory management strategies: Traditional approaches (No Refine/Delete) often lead to contradictory or unnatural responses, whereas CREEM's Blend+Refine approach maintains consistency.

CREEM addresses these by shifting from passive storage to an active process of connecting the past to the present.

The CREEM Framework

The CREEM framework operates through a four-stage pipeline designed to synthesize and update knowledge continuously.

Rather than relying on raw dialogue for retrieval, CREEM uses an LLM to generate high-level, context-specific questions. This allows the system to retrieve "implicitly related" memories that standard keyword matching might overlook.

2. Blending

Blending is the core innovation of the framework. Instead of merely summarizing the current turn, the system synthesizes retrieved past memories with the current dialogue to produce new insights. This mimics human inference, such as recognizing that "The user used to like meat, but now prefers vegetables."

3. Refining

As new insights are generated, they are categorized as New, Redundant, or Updated. If an insight is an update to an existing fact, CREEM identifies and deletes the conflicting past memory. This "deliberate forgetting" is essential for maintaining conversational consistency.

4. Insight-Infused Response Generation

Finally, these refined insights are fed into the response generation prompt, ensuring the chatbot's output is grounded in the most current, integrated understanding of the user.

The CREEM architectural pipeline, illustrating the flow from Contextual Search through the Blend & Refine process to final Response Generation.

Experimental Evaluation

The researchers evaluated CREEM using two primary long-term conversation datasets: Multi-Session Chat (MSC), featuring human-annotated dialogues, and Conversation Chronicles (CC), a ChatGPT-generated dataset simulating diverse temporal dynamics.

Key Results

  • Superior Integration: Using G-Eval (GPT-4 based evaluation), CREEM significantly outperformed baselines like SumMem and REBOT. On the MSC dataset, it achieved an "Integration" score of 4.13 compared to the baseline's 3.44, demonstrating its ability to connect disparate sessions.
  • Reduced Contradictions: Natural Language Inference (NLI) testing showed that CREEM maintained a much lower "Degree of Contradiction" (0.1493) compared to GPTCareCall (0.3054).
  • Preserving Utility: In custom QA tasks designed to track changes in user status, CREEM achieved higher accuracy than models that simply delete all contradictions, proving that "blending" preserves more useful context than simple deletion.

Discussion and Future Work

CREEM demonstrates that effective long-term memory requires a balance of synthesis and subtraction. However, the system's performance remains dependent on the initial retrieval step; if the Contextual Search fails to find relevant memories, the blending process cannot occur. Future research may explore moving from flat insight lists to graph-based memory structures to better capture complex relationships between facts and further enhance conversational sophistication.

Summary updated

BibTeX
@misc{kim2024ever,
  author = {Seo Hyun Kim and Keummin Ka and Yohan Jo and Seung-won Hwang and Dongha Lee and Jinyoung Yeo},
  title = {{Ever-Evolving Memory by Blending and Refining the Past}},
  year = {2024},
  eprint = {2403.04787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.04787},
}
Figure