MemCoRe: Recovering Evidence from Progressively Compressed Factual Knowledge for Agent Memory

Zhenyuan Zhang, Xianzhang Jia, Zhiqin Yang, Zhenbo Song, Wei Xue, Sirui Han, Yike Guo

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.

Figure 1: Diagnostic analysis on LoCoMo (A-MEM, Qwen3-8B). (a) Per-category top-20 retrieval recall; 28.2% of results are near-duplicates. (b) Downstream F1 when target evidence is diluted to 100%/50%/10% of the retrieved context. Setup details in Appendix A.

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.

Figure 2: Overview of the MEMCORE framework. Left: Memory construction processes incoming observations through semantic ingestion and gated construction, where each observation is merged, linked, or appended based on its semantic relation to existing memory. Center: The memory state is organized as a compression hierarchy spanning notes, keywords, and topic groups, with associative edges connecting related notes. Right: Memory retrieval searches across levels of the hierarchy via topic, keyword, and neighbor expansion channels, followed by iterative evidence refinement for complex queries.

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:

  1. Topic Channel (Coarsest): Matches the query's thematic intent to topic groups for broad coverage.
  2. Keyword Channel (Intermediate): Performs precise entity-level matching.
  3. 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.
Figure 3: Category-wise F1 scores (%) for ablation vari- ants on LoCoMo (Qwen3-8B). (a) Ablations on memory construction components. (b) Ablations on retrieval path- ways and iterative refinement.

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

BibTeX
@inproceedings{zhang2026memcore,
  author = {Zhenyuan Zhang and Xianzhang Jia and Zhiqin Yang and Zhenbo Song and Wei Xue and Sirui Han and Yike Guo},
  title = {{MemCoRe: Recovering Evidence from Progressively Compressed Factual Knowledge for Agent Memory}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=44OXi5apfR},
}
Figure