MemInsight: Autonomous Memory Augmentation for LLM Agents

Rana Salama, Jason Cai, Michelle Yuan, Anna Currey, Monica Sunkara, Yi Zhang, Yassine Benajiba

TL;DR

This paper introduces MemInsight, a novel approach to autonomously augment the memory of Large Language Model (LLM) agents. By intelligently extracting and structuring key information from past interactions, MemInsight significantly improves the agent's ability to recall relevant context, leading to more accurate, coherent, and persuasive responses across various tasks like recommendation, question answering, and summarization.

What Problem Does This Paper Address?

LLM agents are becoming increasingly sophisticated, capable of complex reasoning and interaction. A crucial component for their effectiveness is a robust memory system that stores and retrieves past interactions. However, as the volume of interactions grows, memory management becomes a significant challenge. Raw historical data can become noisy and difficult to navigate, hindering the agent's ability to access relevant information. Existing methods often rely on unstructured memory or manually defined schemas, which are not scalable or adaptable. This paper tackles the problem of creating an autonomous and structured memory augmentation system that can automatically identify, extract, and organize key information, making LLM agent memory more efficient and effective.

Methods

MemInsight introduces a three-module framework:

  1. Attribute Mining: This module autonomously extracts semantically meaningful attributes from dialogues. It considers two key dimensions:
  2. Perspective: Whether attributes are entity-centric (e.g., movie director, book author) or conversation-centric (e.g., user intent, emotion, sentiment).
  3. Granularity: The level of detail, ranging from turn-level (specific to a single utterance) to session-level (capturing broader patterns across the entire conversation). An LLM backbone is used to identify and generate these attributes.

  4. Annotation and Attribute Prioritization: The extracted attributes and their values are used to annotate the agent's memory. A key aspect here is Priority Augmentation, which sorts attribute-value pairs based on their relevance to the memory instance, ensuring that the most important information is processed first.

  5. Memory Retrieval: MemInsight supports two retrieval methods:
  6. Attribute-based Retrieval: Uses the augmented attributes as filters to select relevant memory instances.
  7. Embedding-based Retrieval: Embeds memory augmentations into dense vectors and uses similarity search to find relevant memories. The paper explores two embedding strategies: averaging independent attribute embeddings and embedding all augmentations together, finding the latter to be more consistent.

Datasets

The authors evaluated MemInsight on two existing benchmarks:

  • LLM-REDIAL: A dataset for conversational movie recommendation.
  • LoCoMo: A dataset for evaluating Question Answering and Event Summarization, featuring multi-session dialogues with various question types.

Key Insights and Ideas

  • Autonomous Augmentation is Key: The core innovation is the ability to autonomously discover and structure memory, removing the need for manual schema definition. This makes the system more scalable and adaptable.
  • Attribute Prioritization Matters: Sorting attributes by relevance (Priority Augmentation) significantly improves retrieval accuracy and contextual understanding, especially for complex tasks.
  • Conversation-Centric Attributes Enhance Context: Beyond just entities, capturing conversational aspects like intent, emotion, and motivation provides richer context for LLM agents.
  • Structured Memory Improves Performance Across Tasks: MemInsight's benefits are not limited to one domain; it shows significant improvements in recommendation persuasiveness, question answering accuracy, and event summarization quality.

Key Results

  • Conversational Recommendation: MemInsight improved persuasiveness by up to 14% on the LLM-REDIAL dataset. It also achieved comparable results to baselines with significantly less memory retrieved.
  • Question Answering: MemInsight achieved a 34% improvement in recall over RAG baselines on the LoCoMo benchmark. It also showed significant gains in single-hop, temporal, and adversarial questions.
  • Event Summarization: MemInsight's augmentations enhanced the factual and semantic quality of generated summaries, with turn-level augmentations showing particular promise.
  • Qualitative Analysis: A DeepEval hallucination metric showed that 99.14% of MemInsight's annotations were factually consistent with the source dialogues.

Limitations and Future Work

  • Abstract/Generic Annotations: MemInsight can sometimes produce abstract or overly generic annotations, which might reduce retrieval specificity in certain tasks.
  • LLM Backbone Dependency: The performance of attribute generation is dependent on the capabilities of the underlying LLM used.
  • Text-Only Interactions: The current implementation is limited to text-based interactions.

Future work could extend MemInsight to support multimodal inputs (images, audio) and explore more advanced LLM backbones for improved augmentation quality.

Summary updated

BibTeX
@inproceedings{salama2025meminsight,
  author = {Rana Salama and Jason Cai and Michelle Yuan and Anna Currey and Monica Sunkara and Yi Zhang and Yassine Benajiba},
  title = {{MemInsight: Autonomous Memory Augmentation for LLM Agents}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure