TL;DR
When teaching an LLM agent how to solve tasks using external instruction manuals ("skills"), editing a single master document often causes fixes for one task to break another. EvoMoSkill solves this by borrowing the Mixture-of-Experts concept from deep learning: it builds a dynamic library consisting of one universal "share skill," specialized "expert skills," and a learned router. By diagnosing execution failures and evolving both what the instructions say and when they are used, frozen LLMs become remarkably more capable without updating a single model weight.
What Problem Does This Paper Address?
Fine-tuning LLMs is expensive, so engineers often adapt agents by giving them reusable text documents—typically SKILL.md files—containing step-by-step domain procedures. Recently, researchers started treating these text documents like trainable neural network weights: run a batch of tasks, let an LLM "optimizer" look at where the agent failed, and rewrite the instructions to fix the errors.
The catch? Existing optimizers usually maintain a single skill document for an entire domain. Real-world tasks are messy and heterogeneous. If you add a strict rule to help an agent systematically search a kitchen for an apple, that exact same rule might trap the agent in a loop when looking for a cup in a microwave.
Building a multi-skill library prevents this cross-task interference, but introduces a tricky credit-assignment puzzle: When an agent fails, was the instruction bad, did the router pick the wrong expert, or do we need to invent a brand-new skill?
Methods
EvoMoSkill keeps the main LLM agent ("student") completely frozen and optimizes an external system made of three parts: a general share skill (loaded for every task), a pool of specialized expert skills (grouped by task families), and an LLM router that matches each incoming task to at most one expert.
Starting from an empty library, the system learns iteratively via Credit-Assigned Gradient Descent (CreAGD), a novel five-stage loop:
- Credit Assignment: The student runs a batch of tasks multiple times. A stronger "teacher" LLM compares failed runs against successful demonstrations and assigns blame—pinpointing whether the failure stemmed from a universal rule (share skill), a specialized rule (expert skill), a bad match (router scope), or a missing expert altogether.
- Textual & Routing Gradient Descent: An optimizer LLM proposes several candidate text edits (bounded to small, local changes) or rewrites the router's scope definitions so tasks go to the right experts.
- Scope-Conditioned Paired Evaluation: Proposed edits are tested head-to-head against the previous system only on the specific tasks that skill actually serves.
- History-Calibrated Acceptance: Because LLM outputs are stochastic, a lucky rollout can fool a naive evaluator. EvoMoSkill enforces strict gates: candidates must beat historical baseline averages, show consistent gains across repeated runs, avoid breaking previously solved tasks (regression caps), and pass a held-out validation set.
- Optimizer Memory & Lifecycle: Rejected drafts and failure reasons are saved in memory so the optimizer doesn't repeat bad ideas. Accepted experts enter as "apprentices," mature into "established" skills, and are retired to an archive if their performance degrades over time.
Datasets
No new benchmarks are introduced. Instead, the authors evaluate on disjoint train/validation/test splits across five existing, diverse agent benchmarks:
- ALFWorld: Embodied household tasks in interactive text environments.
- ScienceWorld: Interactive scientific experimentation.
- SearchQA: Question answering using retrieved search snippets.
- SpreadsheetBench: Real-world Excel/workbook manipulation.
- SkillLearnBench: Learning reusable procedures for complex real-world workflows.
Key Insights and Ideas
- One-shot LLM instructions can actively hurt: Asking a frontier LLM to write a static skill guide upfront ("LLM Skill") actually lowered performance compared to using no skill at all in 11 out of 25 test cases. Agents need execution feedback to know what rules actually work in practice.
- Context stuffing doesn't work either: Simply concatenating the share skill and all expert skills into one giant prompt degrades performance across the board. Selective, learned routing—and continuously refining when an expert applies—is essential.
- Textual skills transfer across brains: Because the learned library is just well-structured Markdown text and routing descriptions, it isn't locked to one model's weights. Skills evolved for a tiny 4B-parameter model transferred zero-shot to larger models (and vice versa), beating static baselines in all 18 transfer tests.
- Strict "unit tests" prevent skill drift: Ablating the regression cap caused test scores to drop by an average of 6.4 percentage points across all tested settings, proving that guarding against breaking working behaviors is crucial when evolving prompts.
Key Results
Testing five frozen student models (ranging from Qwen3.5-4B up to Claude-Opus-4.6 and DeepSeek-V4-Flash) with a shared teacher/optimizer (GPT-5.6-Sol):
- EvoMoSkill took first place outright in 23 of 25 benchmark-student combinations.
- It boosted average performance by 14.9 to 23.8 percentage points over using no skills, and beat the strongest iterative skill-learning baselines (like SKILL-KD and SkillOpt) by 4.0 to 6.8 points on average.
- Smaller models saw massive leaps: Qwen3.5-4B jumped from 32.1% to 88.1% on ALFWorld, and from 9.6% to 28.9% on SpreadsheetBench.
Limitations and Future Work
Not discussed in the paper. (Note: The provided PDF contains pages 1–10 covering the main manuscript and references; any limitations or future work discussed in the appendices are not present in this excerpt.)
Summary updated