TL;DR
MemSkill introduces a novel paradigm for Large Language Model (LLM) agent memory by reframing rigid, handcrafted memory operations into learnable and evolvable "memory skills." By combining a reinforcement learning-trained controller for skill selection with an LLM-based designer that automatically refines and creates new skills from failure cases, MemSkill establishes a closed-loop system that significantly boosts task performance and efficiency across conversational and embodied domains.
What Problem Does This Paper Address?
Most current LLM agent memory systems rely on static, hand-designed routines to extract, update, or delete information (e.g., turn-by-turn summarization or fixed heuristic modules). While functional, this approach suffers from three major flaws:
- Heavy Reliance on Human Priors: Developers must hard-code assumptions about what is worth remembering for a specific domain.
- Rigidity Under Distribution Shift: Fixed workflows break down when the interaction pattern or data distribution changes.
- Poor Scalability: Processing memory turn-by-turn becomes prohibitively expensive and inefficient as interaction histories grow long.
To build truly adaptive, self-evolving agents, memory management itself needs to be a learnable abstraction that can adapt to interaction data dynamically.
Methods
MemSkill abandons fixed procedural workflows in favor of a shared skill bank, where each skill is a structured Natural Language template defining when and how to transform interaction traces into memory. The framework operates via a closed-loop optimization process driven by three core components:
- The Controller: At the span level (processing text in chunks rather than turn-by-turn), a lightweight controller encodes the current text span and retrieved memories. It scores the available skills in parallel and selects a Top-K subset of relevant skills. The controller is optimized using Reinforcement Learning (PPO) based on downstream task rewards.
- The Executor: A fixed LLM that acts as the muscle. It takes the current text span, retrieved memories, and the controller's selected skills, executing the memory updates (inserts, updates, deletes) in a single generation step.
- The Designer: An LLM-based analyst that periodically reviews a sliding buffer of "hard cases" (queries where the agent failed). The designer diagnoses whether the failure was due to a memory storage issue, refines existing skill descriptions, or invents entirely new skills to fill capability gaps.
Datasets
The authors evaluated MemSkill across a diverse suite of benchmarks to test conversational memory, long-context reasoning, and embodied interaction:
- LoCoMo & LongMemEval: Conversational benchmarks requiring memory extraction from exceptionally long dialogue histories.
- HotpotQA: Used specifically to test skill generalization under extreme distribution shifts (long-form document narratives instead of multi-turn dialogues).
- ALFWorld: An interactive, embodied environment where the agent must remember object locations and action constraints to complete household tasks.
- AppWorld: An interactive tool-use benchmark used for further generalization testing.
Key Insights and Ideas
- Domain Specialization Emerges Automatically: When inspecting the evolved skill banks, the authors found that MemSkill naturally tailors its skills to the domain. For conversational tasks (LoCoMo), it developed skills like Capture Temporal Context and Capture Activity Details. For embodied tasks (ALFWorld), it evolved skills focused on Capture Action Constraints and Track Object Location.
- Granularity Control as an Efficiency Knob: Moving from turn-by-turn processing to span-level processing allows the system to compress redundant information. Adjusting the span size acts as a direct knob to balance runtime cost against memory quality.
- Decoupled Representations Enable Cross-Model Transfer: Because the controller selects skills based on compact natural language descriptions rather than raw model weights, a skill bank evolved using one model (e.g., LLaMA) can be zero-shot transferred to a completely different model (e.g., Qwen) without retraining the controller.
Key Results
MemSkill consistently outperformed strong baseline memory systems (including MemoryOS, A-MEM, and LightMem) across all benchmarks.
- Conversational Benchmarks: Under LLaMA3.3-70B, MemSkill achieved the highest LLM-judge score on LoCoMo (53.82) and LongMemEval (60.89).
- Embodied Tasks: On ALFWorld, MemSkill reached an average success rate of 80.36% (LLaMA3.3), significantly reducing the number of environment interaction steps required to complete tasks.
- Distribution Shift Generalization: When transferring the LoCoMo-trained skill bank directly to HotpotQA document stacks, MemSkill consistently beat competitive baselines, with its performance edge widening as the context length scaled up to 200 concatenated documents.
- Cost-Efficiency: Cost analysis on LoCoMo revealed that MemSkill (at a span size of 512) achieved superior memory quality while requiring up to 5x fewer LLM calls and substantially fewer input/output tokens compared to turn-by-turn baselines like MemoryOS and A-MEM.
Limitations and Future Work
While MemSkill demonstrates a powerful framework for self-evolving memory, the authors note that this study was bounded by standard benchmark research settings. In practical, real-world deployments, an evolving memory system would require robust, orthogonal guardrails for data retention control, user consent, access control, and privacy protection—especially since the agent dynamically determines what information is worth extracting and modifying over time.
Summary updated