← Latest papers
🤖 AI

SKILL-DISCO: Distilling and Compiling Agent Traces into Reusable Procedural Skills

The paper introduces SkillDisCo, a framework that distills successful agent traces in FSM-defined scenarios into reusable, parameterized control-flow subgraphs to create executable procedural skills, thereby improving success rates and reducing reasoning costs across benchmarks like ALFWorld and WebArena.

Original authors: Zhongxin Guo, Danrui Qi, Hanwen Gu, Peng Cheng, Yongqiang Xiong

Published 2026-06-26
📖 4 min read☕ Coffee break read

Original authors: Zhongxin Guo, Danrui Qi, Hanwen Gu, Peng Cheng, Yongqiang Xiong

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

Imagine you are teaching a very smart, but slightly clumsy robot butler how to clean your house.

The Problem: The "Start From Scratch" Trap
Right now, if you ask this robot to "find the book on the bed and put it in the laundry basket," it figures it out every single time. It has to think: Okay, first I walk to the bedroom. Then I look at the bed. Oh, there's a book. I pick it up. Now I walk to the basket.

If you ask it to "find the mug on the desk and put it in the kitchen," it has to re-invent the whole process. It walks to the desk, looks at the desk, picks up the mug, walks to the kitchen. It's like a student who solves a math problem correctly, but then has to re-learn how to add numbers every time they see a new problem. This wastes time, uses up a lot of brainpower (computing power), and makes the robot slow.

The Solution: SKILL-DISCO (The "Recipe Chef")
The paper introduces a system called SKILL-DISCO. Think of it as a master chef who watches the robot butler successfully cook a meal many times. Instead of just saving the video of the cooking, the chef looks at the patterns.

The chef notices: "Every time the robot makes soup, it does the same three steps: 1. Find the pot, 2. Fill it with water, 3. Put it on the stove."

The chef then writes down a universal recipe called "Make Soup." This recipe doesn't say "Use the blue pot on the left." It says "Find a pot, fill it with water, put it on the stove."

How It Works (The Two-Step Process)

  1. Distillation (The "Pattern Hunter"):
    The system watches hundreds of successful tasks (like finding a book, finding a mug, or finding a remote). It ignores the specific details (like "the book was red" or "the mug was on the second shelf") and focuses on the structure of the movement. It turns messy, long lists of actions into clean, reusable "control-flow" maps.

    • Analogy: It's like watching someone navigate a maze 50 times. Instead of memorizing "turn left at the red wall, then right at the blue box," it realizes the pattern is "follow the wall until you hit a dead end, then turn right."
  2. Compilation (The "Quality Control"):
    Just writing down a recipe isn't enough; the recipe has to actually work. The system takes these patterns and turns them into strict, executable code (like a Python script). It tests them to make sure they don't crash.

    • Analogy: It's like a test kitchen. They take the "Make Soup" recipe, try it with a pot, a pan, and a bowl. If it works, they stamp it "Approved" and put it in the robot's official instruction manual. If it fails, they throw it away.

The Results: Why It Matters
The paper tested this on two worlds:

  • ALFWorld: A text-based house where the robot has to find objects.
  • WebArena: A simulated internet where the robot has to navigate websites.

What happened?

  • Faster: The robot didn't have to think as hard. Instead of taking 19 steps to find an object, it could just call the "Search" skill and finish in 3 steps. It was like switching from walking to taking an elevator.
  • Smarter: The robot made fewer mistakes. Because the "recipes" were tested and verified, they worked reliably.
  • Transferable: This is the coolest part. They trained the system using a very powerful, expensive AI model (the "Master Chef"). Then, they gave the resulting "recipes" to a much smaller, cheaper AI model. The small model, which usually struggles, suddenly became almost as good as the big one because it had the Master Chef's recipes in its pocket.

The Bottom Line
SKILL-DISCO stops AI agents from reinventing the wheel every time. It turns successful experiences into reusable, verified "skills" (like a library of apps) that make the agent faster, cheaper to run, and able to learn from stronger models without needing to be as smart itself.

What It Doesn't Do
The paper is clear: this only works for tasks with a clear "start and finish" path, like cleaning a room or filling out a web form. It won't help an AI write a poem or understand the emotional nuance of a novel, because those tasks don't have a fixed "recipe" to follow.

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 →