Commonsense-augmented Memory Construction and Management in Long-term Conversations via Context-aware Persona Refinement

Hana Kim, Kai Tzu-iunn Ong, Seoyeon Kim, Dongha Lee, Jinyoung Yeo

Introduction

For an AI to function as a truly engaging long-term companion, it must maintain a consistent and evolving "memory" of the user—a persona. However, human-authored personas in existing datasets are often sparse and uninformative, limiting the depth of interaction. While researchers have attempted to expand these personas using commonsense models (e.g., inferring that "I drink coffee" implies "I want to stay awake"), this expansion often introduces logical contradictions. For instance, a user might be described as "lazy" in one session but "productive" in another.

Existing systems typically resolve these contradictions by deleting the older or conflicting information using Natural Language Inference (NLI) models. This paper argues that such an approach is sub-optimal. Human personality is inherently context-dependent; a person can be "lazy" on weekends while remaining "productive" at work. By simply deleting data, AI agents lose the rich, nuanced background necessary for intimate, human-like conversation. To address this, the authors introduce CAFFEINE (Context-Aware reFinement Framework for contradictory pErsonas IN long-tErm conversations).

The CAFFEINE Framework

CAFFEINE is designed to refine AI memory by treating contradictions as opportunities for refinement rather than reasons for deletion. The framework operates through three primary stages:

1. Commonsense Expansion

To enrich the initial sparse persona, the system utilizes the COMET model. COMET generates "if-then" inferences based on existing persona sentences, creating a more detailed and expansive memory of the user's traits, desires, and behaviors.

2. Graph-based Iterative Refinement

Processing every possible persona pair for contradictions is computationally expensive, especially as conversation history grows. CAFFEINE optimizes this by building a graph where nodes represent individual persona sentences and edges represent the probability of contradiction (calculated via an NLI model). The system then iteratively selects the most "problematic" clusters—those with the highest density of contradictions—for targeted refinement.

3. Context-Aware Refinement Strategies

Instead of a binary "keep or delete" choice, CAFFEINE employs a Large Language Model (LLM), such as ChatGPT, to analyze the original dialogue context of the conflicting personas. The LLM then applies one of three strategies:

  • Resolution: Merging conflicting points into a single, informative sentence (e.g., "I used to be sad, but now I'm happy because I found new friends").
  • Disambiguation: Adding specific context to each point to show they are not mutually exclusive (e.g., "I feel relaxed when fishing" vs. "I feel tired at work").
  • Preservation: Retaining both sentences if the NLI model's detection of a contradiction was a false positive.

Experimental Evaluation

The framework was evaluated using the Multi-Session Chat (MSC) dataset, a benchmark for long-term conversation that extends the Persona-Chat dataset across multiple sessions. This provides a robust environment for testing how well an agent manages evolving information over time.

Key Results

  • Superior Response Quality: CAFFEINE consistently outperformed baselines (such as NLI-remove or NLI-recent) in automated metrics like ROUGE and BLEU. Notably, the performance gap widened as more sessions were added, suggesting that CAFFEINE scales better with long-term memory.
  • Human Preference: Human judges significantly preferred CAFFEINE’s responses, awarding it a 71-79% win rate in "Naturalness" and a 67% win rate in "Overall Quality" compared to the NLI-remove baseline.
  • Refinement Utility: 87% of human evaluators found the refined personas more helpful for maintaining a coherent conversation than the original contradictory ones.
  • Computational Efficiency: The iterative graph approach proved to be 9x to 21x more cost-efficient than refining all persona pairs, making it a viable candidate for real-world deployment.

Discussion and Future Work

The core insight of CAFFEINE is that contradictions often stem from a lack of context. By mimicking the human cognitive process of integrating new information into existing schemas rather than overwriting them, CAFFEINE creates a more stable and sophisticated AI persona.

However, the authors note several limitations. The framework's success is dependent on the accuracy of the underlying NLI and commonsense models; if a contradiction is not detected, it cannot be refined. Additionally, the current system focuses on a single speaker's persona and does not yet account for the interaction between two different speakers' personas. Future research will also address the risk of "lost in the middle" effects as personas become increasingly detailed, exploring more efficient ways to feed rich persona data into response generation models.

Summary updated

BibTeX
@inproceedings{kim2024commonsense,
  author = {Hana Kim and Kai Tzu-iunn Ong and Seoyeon Kim and Dongha Lee and Jinyoung Yeo},
  title = {{Commonsense-augmented Memory Construction and Management in Long-term Conversations via Context-aware Persona Refinement}},
  booktitle = {EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=VXjroK3RrZ},
}
Figure