← Latest papers
💬 NLP

MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agents

MemSkill introduces a self-evolving framework for LLM agents that replaces static, hand-designed memory operations with learnable and adaptable skills, utilizing a closed-loop system of controllers, executors, and designers to dynamically refine memory management strategies and improve task performance across diverse benchmarks.

Original authors: Haozhen Zhang, Quanyu Long, Jianzhu Bao, Tao Feng, Weizhi Zhang, Haodong Yue, Wenya Wang

Published 2026-05-26
📖 5 min read🧠 Deep dive

Original authors: Haozhen Zhang, Quanyu Long, Jianzhu Bao, Tao Feng, Weizhi Zhang, Haodong Yue, Wenya Wang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Rigid Librarian"

Imagine you have a personal assistant (an AI agent) who talks to you for hours, days, or even weeks. To be helpful, this assistant needs to remember things you said earlier.

Currently, most AI assistants use a fixed set of rules to decide what to remember. Think of this like a librarian who is only allowed to use three specific stamps: "Save," "Delete," or "Ignore."

  • If you tell the librarian, "I hate broccoli," they stamp it "Save."
  • If you say, "Actually, I love broccoli now," they have to manually find the old note and stamp it "Delete."

The problem is that these rules are hard-coded by humans. They don't change based on the situation. If the conversation gets long, complex, or weird, the librarian gets confused because their stamps don't fit the new scenario. They are rigid, slow, and often miss the point.

The Solution: MemSkill (The "Shape-Shifting Toolkit")

The authors of this paper propose MemSkill, a new way for AI to manage its memory. Instead of using a fixed set of stamps, MemSkill gives the AI a toolbox of "skills" that it can learn, choose from, and even improve over time.

Think of it like a Swiss Army Knife that can grow new blades.

1. The Skills (The Blades)

Instead of just "Save" or "Delete," MemSkill has specific, reusable instructions called skills.

  • Skill A: "Capture the time and date of events."
  • Skill B: "Track where objects are located."
  • Skill C: "Notice when a person changes their mind."

These skills are like recipes. They tell the AI: "When you see a date, write it down like this. When you see a location, write it down like that."

2. The Controller (The Foreman)

When the AI is talking to you, a "Controller" acts like a construction foreman.

  • It looks at what you just said.
  • It glances at the Skill Toolbox.
  • It picks the top 3 or 5 skills that are most useful for this specific moment.
  • It hands those skills to the AI to process the information.

Analogy: If you are talking about a cooking recipe, the Foreman picks the "List Ingredients" and "Note Temperatures" skills. If you switch to talking about a movie, the Foreman swaps those out for "Remember Character Names" and "Track Plot Twists."

3. The Designer (The Coach)

This is the most exciting part. Most systems stop learning once they are built. MemSkill has a Designer that acts like a sports coach.

  • The AI tries to answer questions using its current skills.
  • Sometimes, it fails. Maybe it forgot a crucial detail because it didn't have a skill for that specific type of information.
  • The Designer looks at these failures (the "hard cases").
  • It asks an advanced AI: "Why did we fail? Do we need a new skill? Do we need to tweak an old one?"
  • The Designer then writes new skills or fixes old ones and adds them to the toolbox.

Analogy: Imagine a soccer team keeps losing because they don't know how to defend against a specific type of kick. The Coach (Designer) watches the game, realizes the gap, and invents a new defensive drill (a new skill) to teach the team. The team gets better every time they play.

How It Works in Practice

The paper describes a closed loop:

  1. Learn to Use: The AI practices picking the right skills to remember things.
  2. Evolve the Tools: When the AI fails, the Designer fixes the toolbox, adding new skills or refining old ones.
  3. Repeat: The AI starts over with the improved toolbox, getting smarter and more adaptable.

What the Paper Found (The Results)

The researchers tested MemSkill on four different challenges:

  1. Long Conversations: Remembering details from very long chats (like a 10-hour dialogue).
  2. Complex Questions: Answering questions that require connecting dots from different parts of a story (HotpotQA).
  3. Robot Tasks: Helping a virtual robot navigate a house and find objects (ALFWorld).

The Results:

  • MemSkill beat all the other methods (the "rigid librarians") in almost every test.
  • It was better at generalizing: When they trained it on one type of task (like chatting) and tested it on a totally different one (like finding objects in a house), it still worked well. This is because the skills it learned were flexible, not just memorized answers.
  • It was more efficient: By processing chunks of text at once using the right skills, it didn't need to call the AI as many times as the old methods, saving time and money.

Summary

MemSkill changes how AI remembers things. Instead of forcing the AI to follow a rigid, human-written rulebook, it gives the AI a flexible, evolving set of skills. The AI learns which skills to use for the job, and when it makes a mistake, a "Designer" helps it invent new skills to prevent that mistake from happening again. It turns memory management from a static list of rules into a self-improving, adaptive system.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →