TL;DR
ReSkill introduces an "RL-in-the-loop" framework that co-evolves modular problem-solving skills alongside an LLM agent's policy during reinforcement learning. By leveraging the group structure of Group Relative Policy Optimization (GRPO) and Thompson Sampling, it dynamically creates, tests, and refines skills at zero additional rollout cost, significantly boosting generalization on unseen tasks.
What Problem Does This Paper Address?
Agentic Reinforcement Learning (RL) allows Large Language Model (LLM) agents to continuously improve by interacting with environments and learning from verifiable rewards. However, these agents typically fail to accumulate reusable, high-level strategies (modular skills) that can transfer across different tasks.
While previous approaches have tried to introduce modular skill banks, they decouple skill creation from policy optimization—meaning skills are either generated offline or using a static policy. This separation leads to skill-policy conflict: as the agent's policy updates and evolves during RL training, static or externally produced skills can quickly become misaligned with the agent's current capabilities, ultimately hindering learning rather than helping it.
Methods
ReSkill solves this by embedding the skill creation cycle directly into the RL training loop. It builds upon Group Relative Policy Optimization (GRPO), an RL algorithm that samples a group of multiple rollouts for the same task under the same policy.
The framework introduces three interconnected mechanisms:
- Within-Group Rollout Sampling: ReSkill exploits GRPO's group structure by assigning competing skill versions (the old baseline skill bank vs. a newly proposed candidate) to different rollouts within the same group. Because the task and policy are identical, this creates a perfectly controlled environment to isolate and compare the impact of the skill versions.
- Adaptive Thompson Sampling: To decide how many rollouts to allocate to each skill version, ReSkill uses a multi-armed bandit approach. Crucially, it incorporates an adaptive discounting mechanism. As the policy evolves, older skill performance data becomes stale; the discount factor dynamically adjusts to prioritize recent, policy-aligned feedback.
- Assertion-Driven Skill Creator: An automated analyzer uses rule-based predicates (assertions) to evaluate an experience reservoir of success/failure trajectories. It diagnoses prevalent failure modes and instructs an LLM author to propose trigger-based skill modifications (ADD, MODIFY, or DELETE).
Datasets
The authors evaluated ReSkill across five distinct domains to test broad applicability and generalization:
- ALFWorld: A text-based household environment used to evaluate embodied reasoning on both seen and unseen task configurations.
- Agentic Search: Agents answer factual questions via iterative search. Models were trained on NQ (Natural Questions) and HotpotQA, and evaluated on five unseen datasets (PopQA, TriviaQA, 2WikiMHQA, MuSiQue, Bamboogle).
- Science Discovery: ScienceWorld (specifically electricity-focused tasks) to evaluate multi-step scientific experimentation.
- Coding: InterCode-SQL for interactive SQL query generation with execution feedback.
- Web Shopping: A web shopping environment built from the WANDS product search dataset.
Key Insights and Ideas
- Untested Skill Injection Actively Harms Learning: A major "aha moment" came from ablating the skill testing mechanism. Automatically accepting every newly generated skill without testing (an "auto-accept" strategy) caused the agent's performance to collapse mid-training on ALFWorld, performing worse than vanilla GRPO. Controlled testing is vital.
- Triple-Duty Rollouts at Zero Cost: ReSkill introduces no additional rollout overhead. Every single rollout simultaneously serves three purposes: providing gradients for policy optimization, feeding the experience reservoir for failure diagnosis, and updating the Thompson Sampling bandit to evaluate skill quality.
- Developing a General Capacity to Follow Skills: Co-evolving skills and policies teaches the agent how to effectively utilize guidance. The authors demonstrated this by freezing a ReSkill-trained policy and running it on a completely new domain (ScienceWorld) at test time. The frozen model rapidly adapted purely by generating and utilizing new domain-specific skills.
Key Results
ReSkill consistently outperformed vanilla GRPO and decoupled skill/memory baselines (such as SkillRL and Evolver), achieving its most substantial margins on unseen and highly complex tasks.
- ALFWorld (Qwen3-8B): ReSkill achieved a 92.7% overall success rate, outperforming the strongest baseline (SkillRL) by 6.9%. On unseen tasks, it reached 95.3%, widening the gap over SkillRL to 12.7%.
- Agentic Search (Qwen3-8B): ReSkill achieved the highest overall accuracy at 49.8%.
- Harder Tasks Benefit Most: On the "Extra-hard" split of InterCode-SQL, ReSkill pulled significantly ahead of SkillRL (63.6% vs. 55.3%), showing that compositional reasoning heavily benefits from tightly reconciled skill evolution.
Limitations and Future Work
- Evolution Frequency Sensitivity: The frequency at which skills are updated ($K_e$) remains a sensitive hyperparameter. If skills evolve too slowly, the policy overfits to a fixed context; if they evolve too quickly, it introduces distribution shifts that destabilize training. Designing adaptive evolution schedules is a key next step.
- Coarse Skill Invocation: The current trigger-based design automatically loads skills into the context window via regex pattern matching. This deprives the model of fine-grained control over when to apply a skill. Formulating skills as explicit tool calls could resolve this.
- Cognitive Load on Smaller Models: The authors noted that smaller base models sometimes suffer from "skill capacity burden," where they conflate skill guidance text with environment actions or over-apply a skill in situations where it is completely inapplicable.
Summary updated