TL;DR
SkillCome is a novel framework for evolving LLM agent skills by contrasting successful and failed trajectories for the same task. By using grouped rollouts and a dual-memory system to accumulate evidence across training steps, it generates highly reliable, generalizable instructions that significantly outperform existing single-path optimization methods.
What Problem Does This Paper Address?
Large Language Models (LLMs) can be improved without retraining by providing them with "skills"—external natural-language instructions or executable scripts. "Skill evolution" is the process of iteratively refining these skills based on the model's actual performance on tasks.
However, the authors identify two major gaps in current approaches:
- Insufficient Signals: Most methods analyze only a single trajectory per question. If the model fails, it is difficult to pinpoint exactly which action caused the failure. Conversely, in a successful path, it’s hard to know which specific actions were critical to success.
- Noisy Evidence: Optimizers typically look at a local batch of trajectories, making them susceptible to noise and "overfitting" to specific questions rather than identifying broad, reusable patterns that appear across different steps.
Methods
The authors propose SkillCome, a system that transforms raw experience into reusable skills through two synergistic components:
- Grouped Rollouts & Contrast Reflection: Instead of a single path, the target model generates multiple trajectories ($n$) for each question. The system then performs "Contrast Reflection," specifically comparing successful and failed attempts for the same task. This allows the optimizer to identify "behavioral divergences"—the exact moments where the successful agent took a correct action that the failed agent missed.
- Dual Memory System: To ensure generalizability, SkillCome maintains two types of memory:
- Contrast Memory: Stores patterns derived from success-failure comparisons.
- Failure Memory: Tracks recurring failure patterns across different groups.
This memory system acts like "momentum" in gradient descent. It accumulates evidence over multiple optimization steps, and edits are only prioritized if they are supported by a large number of distinct training groups.
Datasets
SkillCome was evaluated across six diverse benchmarks using five different LLM families (including GLM, Qwen, and DeepSeek):
- Agentic Tasks: SpreadsheetBench (Excel manipulation), OfficeQA (financial document reasoning), and ALFWorld (embodied AI in household environments).
- Reasoning & QA: SearchQA (web-based trivia), DocVQA (visual document reasoning), and LiveMathematicianBench (advanced research-level math).
- Transferability: HotpotQA and Omni-MATH were used to test if skills learned on one dataset generalize to new, similar tasks.
Key Insights and Ideas
- Contrast is More Informative than Failure: Comparing a success to a failure provides a "ground truth" reference of what the model is capable of doing correctly under identical conditions, offering much clearer optimization signals than reflecting on failures in isolation.
- Evidence-Based Ranking: By tracking how many different questions support a specific skill edit in memory, the system naturally filters out "fluke" results, leading to more robust and reusable instructions.
- Correcting Persistent Errors: The system is particularly good at catching model-specific quirks. For example, it identified a recurring formatting error in DeepSeek-V4-Flash on OfficeQA and incorporated a specific "prohibition" into the skill to fix it.
- Identifying "Meta-Options": In mathematical reasoning, SkillCome discovered that models often fail to recognize "meta-options" (e.g., "One of the remaining options is correct, but a stronger result can be proven"). It learned to explicitly instruct models to prioritize these shortcuts when detected.
Key Results
- Consistent SOTA: SkillCome achieved the highest scores across 26 model-benchmark pairs, outperforming the previous best method (SkillOpt) by an average of 5.69 percentage points.
- Massive Performance Jumps: On the OfficeQA benchmark using DeepSeek-V4-Flash, performance skyrocketed from 5.41% to 50.51% (+45.10 points).
- Token Efficiency: Despite generating more trajectories for the target model, SkillCome is more token-efficient for the optimizer model (up to 60% reduction in tokens) because it deduplicates trajectories before analysis.
- Transferability: Skills optimized for one model (e.g., Qwen) significantly improved performance when applied to another (e.g., DeepSeek), proving the learned skills capture general logic rather than just model-specific tweaks.
Limitations and Future Work
The authors acknowledge that while grouped rollouts provide better signals, they increase the inference budget for the target model during the training phase. Additionally, while the "meta-option" rules significantly boost scores on certain math benchmarks, the authors caution that this might represent a "shortcut" rather than a fundamental improvement in the model's underlying mathematical reasoning capabilities. Future work could explore more complex, hierarchical memory structures to handle even longer-horizon agentic tasks.
Summary updated