TL;DR
ReMe (Remember Me, Refine Me) is a new framework that transforms LLM agents from "passive recorders" into "active learners" by building a dynamic procedural memory. By distilling fine-grained "how-to" insights from both successes and failures, ReMe allows smaller models (like Qwen3-8B) to outperform significantly larger memoryless models (like Qwen3-14B), demonstrating a powerful "memory scaling effect."
What Problem Does This Paper Address?
While Large Language Model (LLM) agents are increasingly capable of using tools and solving multi-step tasks, they often suffer from a lack of "experience." When faced with a new task, they frequently repeat past mistakes or fail to apply logic they previously "learned" in a similar scenario.
Existing memory systems for agents typically follow a "passive accumulation" paradigm. They treat memory like an append-only log, storing raw, noisy execution trajectories. This leads to three major issues:
- Noise: Raw trajectories contain irrelevant details that distract the agent from the core logic.
- Rigidity: Stored experiences are often applied verbatim without adapting to the specific constraints of a new task.
- Stagnation: Memory pools grow indefinitely without pruning, eventually filling up with outdated or "toxic" (incorrect) insights that degrade performance over time.
Methods
The authors propose ReMe, a framework that manages the entire lifecycle of procedural memory through three interconnected phases:
- Multi-faceted Distillation (Acquisition): Instead of saving full logs, ReMe uses a summarizer model to extract "keypoint-level" insights. It looks at successful runs to find winning patterns, analyzes failures to identify "triggers" for errors, and performs comparative analysis between high-scoring and low-scoring attempts to find the "secret sauce" of success.
- Context-Adaptive Reuse: When a new task arrives, ReMe doesn't just look for similar keywords. It uses scenario-aware indexing (asking "when is this useful?") to retrieve the top-K relevant experiences. These are then optionally reranked and "rewritten" by the agent to fit the specific constraints of the current prompt.
- Utility-Based Refinement: This is the "Refine Me" part. The system tracks how often a memory entry actually leads to a successful task completion. If a memory is frequently retrieved but the agent still fails, that memory is flagged as low-utility and eventually pruned from the pool to keep it compact and high-quality.
Datasets
The researchers evaluated ReMe on two rigorous tool-augmented benchmarks:
- BFCL-V3 (Berkeley Function Calling Leaderboard): A benchmark focused on complex, multi-turn tool use and API calling.
- AppWorld: A high-fidelity environment simulating day-to-day app interactions (email, Spotify, etc.) across 457 APIs.
- reme.library: As a contribution to the community, the authors released this new dataset of fine-grained procedural memories containing structured success patterns and failure lessons.
Key Insights and Ideas
- The Memory Scaling Effect: Perhaps the most striking finding is that a "smart" memory is more valuable than raw parameter count. A Qwen3-8B model using ReMe achieved a higher Pass@4 score (55.03%) than a memoryless Qwen3-14B (54.65%). This suggests that procedural memory is a computation-efficient pathway for lifelong learning.
- Keypoints > Trajectories: The paper proves that "less is more." Summarizing experiences into concise, actionable keypoints leads to much better knowledge transfer than providing the agent with long, raw logs of past actions.
- Learning from Failure: ReMe doesn't just throw away failed attempts. It uses "failure-aware reflection" to extract preventive insights, helping agents avoid known pitfalls in future trials.
- "When" vs. "What": Indexing memories based on the usage scenario (the conditions under which the knowledge is applicable) is significantly more effective for retrieval than indexing based on the raw task description.
Key Results
- State-of-the-Art Performance: ReMe established new benchmarks across the Qwen3 model family. On average, the dynamic version of ReMe improved the Qwen3-8B baseline by 8.83% in Avg@4 and 7.29% in Pass@4.
- Error Reduction: Qualitative analysis showed that ReMe specifically targets "Reasoning Errors" and "Action Omissions." In the BFCL-V3 benchmark, ReMe reduced reasoning errors from 22 cases down to 14, effectively helping the agent "think" through multi-step dependencies.
- Robustness: Unlike previous systems (like LangMem), which showed inconsistent results across different benchmarks, ReMe demonstrated stable performance gains across both BFCL-V3 and AppWorld.
Limitations and Future Work
- Static Retrieval: Currently, ReMe retrieves experiences once at the beginning of a task. The authors note that a more "dynamic" retrieval system—where the agent can query its memory during execution as new information comes to light—could be even more powerful.
- Validation Nuance: The system relies heavily on "LLM-as-a-Judge" to validate new memories. While effective, this can sometimes miss nuanced errors or over-index on "common sense" rather than novel insights.
- Summarizer Dependency: The quality of the memory is capped by the capability of the summarizer model. The authors found that using a larger model (32B) to summarize experiences for a smaller agent (8B) yielded the best results, suggesting a "teacher-student" dynamic in memory creation.
Summary updated