SkillLens: Adaptive Multi-Granularity Skill Reuse for Cost-Efficient LLM Agents
SkillLens is a hierarchical framework that optimizes LLM agent performance and cost-efficiency by organizing skills into a multi-granularity graph for adaptive retrieval and selective refinement, thereby outperforming existing flat skill-based baselines on benchmarks like MuLocbench and ALFWorld.
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 trying to solve a complex problem, like fixing a broken toaster or organizing a chaotic closet. You have a massive library of old instruction manuals (skills) that other people have written down.
The Old Way (The Problem):
Current AI agents usually treat these manuals like whole books. If you need to fix a toaster, the AI grabs a whole "Appliance Repair" book and pastes the entire thing into its brain.
- The Issue: This is messy. The book might have great advice on how to fix a toaster, but it also has 50 pages on how to fix a blender and a toaster oven. The AI gets confused by the irrelevant info, wastes time reading it, and might even get hallucinations (making things up) because it's trying to follow instructions that don't fit.
- The Alternative: If the AI realizes the book is mostly wrong, it throws the whole book away and tries to figure everything out from scratch. This is slow and expensive.
The New Way (SkillLens):
The paper introduces SkillLens, a smarter way to use these instruction manuals. Instead of treating a skill as one big, unchangeable block, SkillLens breaks every skill down into a four-layer hierarchy, like a set of nesting dolls or a corporate organizational chart:
- Policy (The Boss): "We need to fix the toaster." (High-level goal)
- Strategy (The Manager): "First unplug it, then check the heating element." (The plan)
- Procedure (The Supervisor): "Use a screwdriver to remove the back panel. If it's stuck, wiggle it gently." (Step-by-step rules)
- Primitive (The Worker): "Turn the screwdriver clockwise." (The tiny, atomic action)
How SkillLens Works:
When the AI faces a new task, it doesn't just grab a whole book. It acts like a smart librarian with a magnifying glass:
- Find the Seed: It finds a relevant manual (e.g., "Appliance Repair").
- Zoom In and Out: Instead of reading the whole thing, it looks at the "Table of Contents" (the hierarchy).
- The Verifier (The Judge): A special AI judge looks at each part of the manual and decides what to do with it:
- Accept: "This part is perfect. Keep it exactly as is."
- Decompose: "This section is too vague. Let's open the next layer to see the specific steps."
- Rewrite: "This part is mostly right, but the voltage is wrong for our country. Let's tweak just this sentence."
- Skip: "This part is about blenders. Ignore it completely."
The Result:
The AI builds a customized, compact instruction sheet that contains only the perfect parts of the old manuals, mixed with tiny, local fixes. It doesn't waste time reading the blender instructions, and it doesn't have to rewrite the whole book.
The "Evolution" (Getting Smarter Over Time):
The paper also describes a system where the AI learns from its mistakes. If the AI fails a task, it doesn't just try again; it writes a "gap report."
- Did it fail because it didn't have the right manual? (Update the Agent's library).
- Did it fail because it grabbed the wrong manual or didn't know how to edit it? (Update the Judge's rules).
Real-World Proof:
The authors tested this on two types of tasks:
- Finding Bugs in Code (MuLocbench): Like finding a typo in a massive software project. SkillLens was much better at pinpointing the exact file and function than other methods, especially when the task required very specific, detailed knowledge.
- Virtual Housework (ALFWorld): Like a robot trying to clean a messy room in a video game. SkillLens improved the success rate from 45% to over 51%, showing it could handle complex, multi-step chores better.
In Short:
SkillLens stops the AI from blindly copying whole instruction manuals or throwing them away. Instead, it acts like a master editor, cutting out the good parts, tweaking the bad parts, and ignoring the irrelevant parts to create a perfect, cost-efficient guide for the job at hand.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.