TL;DR
MemReader shifts long-term agent memory from passive, one-shot text extraction to active, reasoning-driven memory management. By using a ReAct-style loop and Group Relative Policy Optimization (GRPO), the model explicitly decides whether to write, buffer, search, or ignore information, significantly reducing memory pollution and setting new state-of-the-art benchmarks.
What Problem Does This Paper Address?
Populating long-term memory for AI agents is currently bottlenecked by how we extract information. Existing systems treat memory extraction as a passive, "one-shot JSON writing" task. When a user says something ambiguous ("Let's meet at the usual place") or engages in small talk ("Thank you!"), traditional pipelines blindly transcribe these utterances into structured entries.
This passive approach leads to three major issues:
- Memory Pollution: Storing low-value chatter.
- Context Blindness: Failing to resolve pronouns, ellipsis, or cross-turn dependencies.
- Stale State: Weak support for updating or overwriting old memories when user preferences change over time.
Methods
The authors introduce the MemReader family, reframing memory extraction as an explicit state-maintenance problem. They propose two complementary models:
- MemReader-0.6B: A compact, cost-efficient passive extractor distilled from bilingual conversation and document data, designed for accurate, schema-consistent JSON outputs.
- MemReader-4B: An active memory manager built on Qwen3-4B that operates under a ReAct (Reasoning + Acting) paradigm. Before acting, it evaluates information value, ambiguity, and completeness.
The Active Tool Space
Instead of general task-solving tools, MemReader-4B uses four specialized memory operations:
add_memory: Writes complete, high-value information directly to long-term storage.buffer_memory: Temporarily stores incomplete but useful information until later turns clarify it.search_memory: Retrieves historical context from a vector database (like Milvus) to resolve ambiguities.ignore_memory: Discards low-value chatter or generic knowledge.
Training with GRPO
MemReader-4B is trained via a three-stage pipeline: SFT warm-start, an attempted DPO alignment, and final Group Relative Policy Optimization (GRPO) reinforcement learning.
The authors noted that Direct Preference Optimization (DPO) performed poorly because memory extraction outputs are rarely sharply separable preference pairs; instead, they differ subtly in completeness or hallucination levels. GRPO solves this by comparing a group of sampled trajectories under the same state. The reward function uniquely balances format validity, hierarchical action alignment, an LLM-as-a-judge score (for correctness and hallucination avoidance), and an efficiency penalty.
Datasets
The MemReader family was evaluated on three public benchmarks:
- LOCOMO: A long-dialogue memory benchmark measuring single-hop, multi-hop, and temporal reasoning.
- LongMemEval: A benchmark assessing long-term memory across six dimensions, including knowledge updates and multi-session consistency.
- HaluMem-Medium: A hallucination-oriented memory benchmark evaluating retrieval, update correctness, and question-answering omission rates.
Key Insights and Ideas
- Memory is a Management Problem: Effective agent memory isn't about maximizing text coverage; it's about reasoning-driven selection to maintain a low-noise, dynamically evolving user state.
- DPO vs. GRPO for Fine-Grained Tasks: For tasks where multiple outputs are executable but differ subtly in semantic faithfulness or compression quality, group-relative reinforcement learning (GRPO) provides a much more stable optimization signal than pairwise preference learning (DPO).
- Shorter Thinking Prevents Hallucinations: Explicitly constraining the length of the
<think>segment prevents the model from over-elaborating on latent hypotheses, which directly reduces hallucinations in the final extracted memory.
Key Results
MemReader consistently outperformed existing extraction baselines across all benchmarks:
- LOCOMO: MemReader-4B-GRPO achieved the highest Overall score (81.42%), beating larger models. Meanwhile, the ultra-compact MemReader-0.6B achieved the best Temporal score (76.22%) and F1 score (52.54%), proving the power of task-oriented distillation.
- LongMemEval: MemReader-4B-GRPO matched the top Overall score (83.00%) while significantly leading in Knowledge Update (91.03%) and Temporal Reasoning (84.21%).
- HaluMem-Medium: MemReader-4B-GRPO achieved a stellar 98.21% F1 score in memory extraction and slashed the update omission rate down to 5.12%.
Limitations and Future Work
While MemReader marks a significant step forward, the authors acknowledge a few limitations and open directions:
- Limited Toolset: The current action space is restricted to four core operations. Future iterations aim to support explicit memory editing, conflict detection, and hierarchical abstraction.
- Static Evaluation: The models were evaluated on static benchmarks; testing their stability and long-term gains in live, realistic online interaction settings remains an open task.
- End-to-End Optimization: Jointly optimizing memory extraction, organization, and final response generation together is a promising next step.
Summary updated