TL;DR
MemCoRe introduces a hierarchical compression framework for LLM agent memory to balance the tradeoff between reducing redundancy and preserving retrievability. By organizing memory into three progressive layers—detailed notes, extracted keywords, and clustered topic groups—and utilizing a gated update mechanism, it dramatically improves evidence recall and downstream reasoning performance over state-of-the-art baselines.
What Problem Does This Paper Address?
As LLM agents engage in long-term interactions, their history grows exponentially. To reason effectively, they must retrieve relevant past context. However, existing memory systems face a fundamental tension formalized by the Information Bottleneck principle: retaining too much raw history causes target evidence to be buried under a mountain of redundant entries ("evidence dilution"), while compressing too aggressively risks permanently discarding crucial details.
The authors' diagnostic analysis reveals a striking failure mode in current systems: even when a memory system retains nearly all raw information, close to half of the ground-truth evidence fails to surface during retrieval because near-duplicate entries crowd out the correct answers. This failure severely degrades downstream reasoning, particularly for open-domain and multi-hop queries.
Methods
MemCoRe (Memory Compression and Recovery) addresses this challenge by structuring agent memory as a multi-level compression hierarchy and pairing it with an intelligent, tri-pathway retrieval system.
1. Memory Construction
- Semantic Ingestion: Raw observations are transformed into structured notes containing verbatim content, a denoised context summary, dense embeddings, and extracted entity keywords.
- Gated Construction: Instead of blindly appending every new note, an LLM-based gate evaluates its semantic relationship to existing memory candidates and chooses one of three operations:
- Merge: If the information is redundant, it synthesizes it into an existing note to combat bloat.
- Link: If it is complementary, it stores the note separately but creates an associative edge (e.g.,
SUPPORTS,CONFLICTS) to assist multi-hop reasoning. - Append: If the information is entirely novel, it creates a new autonomous note.
- Topic Evolution: Keywords from the notes form a graph that is periodically partitioned into broader topic groups using the Leiden community detection algorithm.
2. Memory Retrieval
When a query arrives, MemCoRe executes a Tri-Pathway Retrieval strategy across all levels of the hierarchy:
- Topic Channel (Coarsest): Matches the query's thematic intent to topic groups for broad coverage.
- Keyword Channel (Intermediate): Performs precise entity-level matching.
- Neighbor Expansion Channel (Finest): Traverses the associative links from initially retrieved notes to find logically related evidence that might lack surface-level similarity to the query.
Results from these pathways are fused using Reciprocal Rank Fusion (RRF). If the retrieved evidence is deemed insufficient, an Iterative Evidence Refinement (IER) protocol generates targeted sub-queries to progressively fill information gaps.
Datasets
The framework was evaluated on the LoCoMo benchmark, a dataset specifically designed to test long-term conversational memory and information synthesis in LLM agents. LoCoMo features long-horizon dialogues with interleaved topics and evolving entity states, split across five distinct reasoning categories: Multi-Hop, Temporal, Open Domain, Single Hop, and Adversarial.
Key Insights and Ideas
- Redundancy is a Silent Killer: Standard memory systems suffer not from a lack of capacity, but from a lack of consolidation. 28.2% of retrieved results in baseline systems are near-duplicates, which actively distracts the LLM during generation.
- Structure Governs Retrievability: Different queries require different granularities of information. Single-hop queries excel with keyword matching, open-domain queries benefit from topic-level routing, and multi-hop queries depend heavily on associative links between notes.
- Relational Links Reject Distractors: Ablation studies show that removing the "Link" operation severely harms performance on adversarial tasks. Explicitly modeling relationships (like contrasts or supports) preserves the logical structure needed to filter out misleading context.
Key Results
MemCoRe was evaluated across four backbone models (GPT-4o, GPT-4o-mini, Qwen3-8B, and Qwen3-14B) and consistently outperformed strong baselines like MemGPT, A-MEM, and Mem0.
- Overall Performance: On GPT-4o-mini, MemCoRe achieved a 43.76% average F1 score, outperforming the runner-up (A-MEM) by 1.79 points. On the open-source Qwen3-8B, it reached 38.62% F1, a 3.53-point improvement over the next best baseline.
- Balanced Profile: Unlike baselines that excel in one category but collapse in others (e.g., LoCoMo scoring high on adversarial but failing on temporal queries), MemCoRe maintained high, stable performance across all five categories due to its multi-level hierarchy.
- Ablation Validation: Removing gated updates entirely caused the most severe performance drop, proving that active memory consolidation is absolutely vital for long-term agent stability.
Limitations and Future Work
The primary limitation of MemCoRe is its computational overhead during construction. Because the gated mechanism requires an LLM call per candidate pair to evaluate semantic relationships, it prioritizes memory quality and retrieval accuracy over ingestion speed.
For future work, the authors plan to explore methods to directly optimize the mathematical Information Bottleneck objective during construction to reduce LLM dependency. They also aim to extend the framework to handle multi-modal interactions and domain-specific memory tasks.
Summary updated