TL;DR
MetaMem introduces a self-evolving "meta-memory" framework that teaches Large Language Models (LLMs) how to effectively reason over scattered and fragmented long-term memories. By iteratively optimizing natural language guidelines through a process of self-reflection and symbolic updates, MetaMem prevents common retrieval errors like double-counting and temporal confusion, outperforming existing memory baselines by over 3.6%.
What Problem Does This Paper Address?
To handle long-term human-LLM interactions beyond standard context windows, modern systems use external databases to store past conversations as manageable memory fragments. However, this chunking and summarization process often breaks the logical and temporal coherence of the original interactions.
When an LLM retrieves these scattered fragments, it frequently struggles to synthesize them correctly. For example, if a user's history contains both a summary of a "1,200-mile trip to Yellowstone" and a note about driving "300 miles on the first day," a standard LLM might naively add these numbers together, double-counting the first day's distance. Existing systems focus heavily on what to store, but neglect teaching the model how to utilize these fragmented pieces of information without getting confused by redundancies or contradictions.
Methods
Instead of altering the underlying memory storage, MetaMem introduces a task-agnostic Meta-Memory ($E$) layer. This layer consists of explicit, natural language guidelines that instruct the LLM on how to handle retrieved information.
To learn and refine these guidelines, the authors develop a Self-Reflective Symbolic Optimization workflow that operates in mini-batches:
- Response Sampling: The LLM generates multiple candidate answers to a history-based question, conditioned on the current meta-memory state.
- Self-Reflection: A stronger LLM acts as a judge to score the answers. For incorrect answers, the model reflects on its own reasoning trajectory to identify exactly where it went wrong (e.g., "I failed to realize that segment X was part of total Y").
- Meta-Memory Learning: Based on these reflections, the model generates discrete symbolic update actions:
ADDa new rule,MOD(modify) an existing rule, orDEL(delete) an obsolete rule. - Meta-Memory Evolution: Conflicting or redundant rules proposed within the batch are filtered out, and the optimized guidelines are carried over to the next step.
Datasets
The framework was trained and evaluated using two primary datasets:
- LongMemEval: A specialized benchmark designed to test long-horizon human-LLM interactions across four distinct dimensions: Single-Session retention, Multi-Session information integration, Temporal Reasoning, and Knowledge Update capabilities.
- ShareGPT: Used as an out-of-domain corpus consisting of long multi-turn dialogues to rigorously test the cross-domain generalization capability of the learned meta-memories.
Key Insights and Ideas
- Universal Logic vs. Domain Heuristics: As optimization progresses, the meta-memory naturally shifts away from task-specific hacks toward content-agnostic, universal reasoning logic (increasing from ~65% to over 80% of the total rule set). Examples include rules like: "Identify inclusion relationships to avoid double-counting subsets already encompassed within a reported total."
- The Over-Optimization Sweet Spot: The authors observed that accuracy across most tasks peaks around training step 5 and then slightly declines. Excessive training causes the meta-memory to overfit to specific knowledge-updating behaviors at the expense of broader reasoning stability.
- Efficiency as a Byproduct: Interestingly, providing these meta-memory guidelines actually makes the model more concise. By curbing hallucinations and unnecessary verbosity, MetaMem reduces output token counts and speeds up inference time for full-text baselines.
Key Results
MetaMem was evaluated using Qwen3-30B and Llama3.1-70B backbones, consistently achieving state-of-the-art results:
- Performance Boost: MetaMem outperformed the primary baseline, LightMem, by an average of 3.6%, showing particularly massive gains in complex Multi-Session integration and Temporal Reasoning tasks.
- Robust Generalization: When trained on completely out-of-domain data (ShareGPT) and tested on LongMemEval, MetaMem still comfortably beat the baselines, proving that the learned strategies are highly transferable across domains.
Limitations and Future Work
The authors note a few key limitations:
- LLM-as-a-Judge Dependency: The framework relies on an LLM judge to provide correctness feedback during training. Real-world human interactions are highly nuanced, making automated evaluation a persistent bottleneck.
- In-Domain vs. Out-of-Domain Gap: While the general-purpose meta-memory generalizes remarkably well, it still slightly underperforms a meta-memory optimized purely on in-domain data. However, gathering high-quality, scenario-specific data for professional domains remains a challenge.
Future directions include scaling the diversity of the training data to build an even more robust, universally applicable general-purpose reasoning layer.
Summary updated