TL;DR
This paper introduces SKILLRL, a novel framework that empowers Large Language Model (LLM) agents to learn from experience more effectively. By distilling raw interaction data into reusable "skills" and allowing these skills to evolve alongside the agent's policy, SKILLRL significantly improves performance and reduces computational overhead compared to existing methods.
What Problem Does This Paper Address?
LLM agents have shown impressive capabilities in complex tasks, but they often struggle to learn from past interactions. Current approaches that store raw trajectories as memory are inefficient due to redundancy and noise, hindering the extraction of generalizable behavioral patterns. This makes it difficult for agents to truly "learn" and adapt over time, leading to isolated task executions and limited progress. The core challenge is how to enable LLM agents to efficiently learn from experience and transfer that knowledge across tasks, moving beyond simple memorization to genuine skill acquisition.
Methods
SKILLRL tackles this challenge with a three-pronged approach:
- Experience-based Skill Distillation: Instead of storing raw trajectories, SKILLRL uses a "teacher" LLM to distill successful episodes into structured "skills" and failed episodes into concise "lessons from failure." This process transforms verbose data into actionable, high-level representations.
- Hierarchical Skill Library (SKILLBANK): These distilled skills are organized into a hierarchical library. "General Skills" provide universal strategic guidance, while "Task-Specific Skills" offer domain-specific heuristics. This structure allows for efficient retrieval of relevant expertise.
- Recursive Skill Evolution: The skill library isn't static. During reinforcement learning (RL), it dynamically evolves. After validation epochs, the agent identifies failure modes and uses the teacher LLM to generate new skills or refine existing ones, ensuring the library co-evolves with the agent's policy. This recursive process allows the agent to continuously improve and adapt.
The RL training itself uses Group Relative Policy Optimization (GRPO), a method that avoids training a separate critic by using intra-group relative rewards.
Datasets
The paper evaluates SKILLRL on several benchmarks:
- ALFWorld: A text-based game for embodied AI, requiring agents to complete household tasks.
- WebShop: A simulated e-commerce environment where agents navigate a web interface to find and purchase products.
- Seven Search-Augmented QA Tasks: Including both single-hop (NQ, TriviaQA, PopQA) and multi-hop (HotpotQA, 2Wiki, MuSiQue, Bamboogle) question-answering datasets.
Key Insights and Ideas
- Abstraction is Key: The paper strongly advocates for abstracting raw experience into skills, rather than just storing raw data. This is crucial for generalization and efficient learning, mirroring how human experts learn.
- Failure is Informative: Failed trajectories are not just discarded but actively used to generate "lessons from failure," which are then distilled into skills. This highlights the value of negative experiences for robust learning.
- Dynamic Libraries Outperform Static Ones: A skill library that evolves alongside the agent's policy is more effective than a fixed one, allowing the agent to adapt to new challenges and refine its strategies.
- Smaller Models Can Compete: SKILLRL demonstrates that even smaller, open-source LLMs can achieve state-of-the-art performance by leveraging effective skill learning, rivaling much larger proprietary models.
Key Results
- State-of-the-Art Performance: SKILLRL achieves state-of-the-art results on ALFWorld and WebShop, outperforming strong baselines by over 15.3% and 14% respectively.
- Efficiency Gains: The skill distillation mechanism significantly reduces the token footprint (10-20x compression) compared to raw trajectories, leading to more efficient context utilization.
- Faster Convergence: The recursive skill evolution mechanism accelerates convergence, with SKILLRL reaching over 80% success rate in 60 training steps, compared to approximately 90 steps for a baseline without skill evolution.
- Competitive with Large Models: SKILLRL with Qwen2.5-7B-Instruct outperforms GPT-40 and Gemini-2.5-Pro on ALFWorld by substantial margins (41.9% and 29.6% respectively).
- Robustness: The framework maintains robustness as task complexity increases.
Limitations and Future Work
- Cold-Start SFT is Crucial: The paper notes that a cold-start supervised fine-tuning (SFT) phase is critical for the base model to learn how to effectively utilize skills. Without it, performance drops significantly.
- Dynamic Evolution Benefits: While dynamic evolution provides a 5.5% improvement, the paper suggests that further research could explore more sophisticated methods for skill generation and refinement.
- Future Directions: The authors suggest that the abstraction from experience to skill is a powerful principle for building capable, sample-efficient agents, implying that this approach could be extended to even more complex environments and tasks. The recursive evolution mechanism also opens avenues for exploring more advanced self-evolving agent architectures.
Summary updated