THEANINE: Revisiting Memory Management in Long-term Conversations with Timeline-augmented Response Generation

Seo Hyun Kim, Kai Tzu-iunn Ong, Taeyoon Kwon, Namyoung Kim, Keummin Ka, SeongHyeon Bae, Yohan Jo, Seung-won Hwang, Dongha Lee, Jinyoung Yeo

Abstract

Large language models (LLMs) are capable of processing lengthy dialogue histories during prolonged interaction with users without additional memory modules; however, their responses tend to overlook or incorrectly recall information from the past. In this paper, we revisit memory-augmented response generation in the era of LLMs. While prior work focuses on getting rid of outdated memories, we argue that such memories can provide contextual cues that help dialogue systems understand the development of past events and, therefore, benefit response generation. We present Theanine, a framework that augments LLMs' response generation with memory timelines -- series of memories that demonstrate the development and causality of relevant past events. Along with Theanine, we introduce TeaFarm, a counterfactual-driven question-answering pipeline addressing the limitation of G-Eval in long-term conversations. Supplementary videos of our methods and the TeaBag dataset for TeaFarm evaluation are in https://theanine-693b0.web.app/.

1. Introduction: The Information Loss Problem

Most current dialogue agents suffer from a "goldfish memory" problem. To handle long-term conversations, they typically compress past interactions into summaries and then "update" or "delete" old ones to keep the context window manageable.

This approach is fundamentally flawed because it causes severe information loss. For example, if a user once expressed a fear of cruise ships but later started taking swimming lessons to overcome that fear, a standard "memory update" might simply delete the original fear. Without that historical context, the agent cannot acknowledge the user's personal growth or the specific motivation behind their new activity. Furthermore, LLMs tend to exhibit a recency bias, often ignoring relevant historical context in favor of the most recent inputs.

Figure 1: Examples of failed responses due to memory loss or recency bias. Traditional memory updates (a) and full history inputs (b) often fail to capture the evolution of user states, whereas THEANINE (c) correctly references past events to provide a coherent response.

2. The THEANINE Framework

THEANINE introduces a three-phase approach to memory management designed to preserve the narrative arc of user interactions.

Phase I: Memory Graph Construction

Instead of a flat list of isolated snippets, memories are stored in a directed graph. New memories are linked to existing ones using temporal and cause-effect commonsense relations, such as Cause, Reason, Want, HinderedBy, and React. This structure ensures that the relationship between events is explicitly preserved.

Phase II: Timeline Retrieval and Refinement

When generating a response, the system retrieves entire "timelines"—linear paths in the graph that illustrate how a specific topic or event has evolved over time. These raw timelines are then refined by an LLM to filter out noise and highlight information specifically relevant to the current dialogue context.

Phase III: Timeline-augmented Response Generation

The final response is generated by the agent using the current dialogue context augmented by these refined, context-aware timelines. This allows the model to "remember" not just the current state, but the journey that led there.

Figure 2: Overview of the THEANINE framework, illustrating the three phases: Memory Graph Construction, Timeline Retrieval and Refinement, and Response Generation.

3. Evaluation and Datasets

The researchers evaluated THEANINE using two primary long-term conversation datasets: Multi-Session Chat (MSC), featuring conversations over five sessions, and Conversation Chronicles (CC), which includes speakers with defined professional and personal relationships.

To address the limitations of standard evaluation metrics, the authors introduced TeaFarm, a counterfactual-driven evaluation pipeline. TeaFarm generates challenging questions based on past facts to test if the agent can be "tricked" into a contradiction. For instance, if the history indicates a speaker has never visited a certain city, the evaluator might ask about their experience there. A robust agent must reference the past correctly to avoid agreeing with the false premise.

4. Key Results and Insights

The core insight of THEANINE is that "outdated" memories are not useless; they serve as essential anchors for understanding change. By linking memories instead of overwriting them, the agent gains a narrative sense that conventional retrieval methods miss.

Experimental results demonstrate that THEANINE significantly outperforms baselines:

  • Automatic Metrics: THEANINE achieved superior scores in Mauve and BertScore compared to standard retrieval and memory-update methods.
  • Human Preference: In head-to-head evaluations, THEANINE's retrieved memories were judged more helpful than those of baselines in over 50% of cases.
  • Consistency: Human judges found that THEANINE’s responses correctly aligned with (entailed) the past in 68% of cases, a dramatic improvement over the 24% achieved by standard memory retrieval.

5. Limitations and Future Work

While THEANINE represents a significant step forward, several challenges remain. The current study was limited to five dialogue sessions; as conversations extend further, additional compression strategies may be required. Furthermore, the cost of constructing and refining graphs via LLM APIs is higher than simple vector searches. Future research will focus on reducing these operational costs and optimizing prompt engineering to handle the long input sequences generated by complex timelines.

Summary updated

Abstract

Large language models (LLMs) are capable of processing lengthy dialogue histories during prolonged interaction with users without additional memory modules; however, their responses tend to overlook or incorrectly recall information from the past. In this paper, we revisit memory-augmented response generation in the era of LLMs. While prior work focuses on getting rid of outdated memories, we argue that such memories can provide contextual cues that help dialogue systems understand the development of past events and, therefore, benefit response generation. We present Theanine, a framework that augments LLMs' response generation with memory timelines -- series of memories that demonstrate the development and causality of relevant past events. Along with Theanine, we introduce TeaFarm, a counterfactual-driven question-answering pipeline addressing the limitation of G-Eval in long-term conversations. Supplementary videos of our methods and the TeaBag dataset for TeaFarm evaluation are in https://theanine-693b0.web.app/.
BibTeX
@inproceedings{kim2025theanine,
  author = {Seo Hyun Kim and Kai Tzu-iunn Ong and Taeyoon Kwon and Namyoung Kim and Keummin Ka and SeongHyeon Bae and Yohan Jo and Seung-won Hwang and Dongha Lee and Jinyoung Yeo},
  title = {{THEANINE: Revisiting Memory Management in Long-term Conversations with Timeline-augmented Response Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.435},
}
Figure