TL;DR
TrackRL is a novel framework that treats skill evaluation as a series of online randomized controlled experiments within the reinforcement learning loop. By precisely tracking the causal utility and model mastery of individual skills, it dynamically manages a skill library—retiring skills the model has internalized and purging those that are harmful or redundant.
What Problem Does This Paper Address?
Agentic Large Language Models (LLMs) often use "skill libraries"—collections of textual prompts or strategies—to solve complex, multi-step tasks. While effective, these libraries face a "lifecycle" problem. As an agent learns through Reinforcement Learning (RL), its relationship with its skills changes: it might internalize a skill (making the prompt redundant), find a skill harmful after a policy update, or keep a skill as necessary "scaffolding."
Existing systems struggle to manage this because they can't isolate a single skill's contribution. They suffer from free-riding (where a useless skill gets credit because it was retrieved alongside a great one) and difficulty confounding (where a skill looks good simply because it was used on an easy task). Without a way to measure a skill's true marginal utility, libraries become bloated with "zombie" skills that waste context space and degrade performance.
Methods
TrackRL introduces Skill Tracking to drive full lifecycle management. It builds on Group Relative Policy Optimization (GRPO), a standard RL algorithm, but adds a clever experimental twist:
- Randomized Skill Injection: Within a group of rollouts for the exact same task, TrackRL independently randomizes whether a specific retrieved skill is shown to the model. This turns each training step into a randomized controlled experiment (RCT).
- Dual Metrics:
- Skill Utility ($u_s$): The causal change in success rate when a skill is present vs. absent.
- Model Mastery ($m_s$): The model's success rate on a task when the skill is withheld, indicating how much of that capability has been internalized into the model's weights.
- Evidence-Gated Lifecycle: Skills aren't just added or deleted based on a single score. They move through a state-transition process (Generation $\rightarrow$ Admission $\rightarrow$ Incubation $\rightarrow$ Retention/Retirement/Removal). Transitions are "gated" by statistical confidence; a skill stays in "incubation" until enough evidence ($E_s$) is collected to make a reliable decision.
Datasets
The authors evaluated TrackRL on two distinct benchmarks:
- ALFWorld: A text-based household simulator where agents must perform tasks like "put a clean sponge in the cabinet." It features six task families and requires long-horizon planning.
- AppWorld: A more complex, code-based environment where agents interact with 457 APIs across 9 applications (e.g., mail, Spotify, banking) to solve multi-step tasks by writing Python code.
Key Insights and Ideas
- RL as an Experimental Lab: The core "aha moment" is realizing that the "group" structure in GRPO provides the perfect environment for within-group contrasts. By varying skill assignments across identical task trials, you get "counterfactual" evidence for free.
- Internalization is Measurable: By tracking success rates in the "control arm" (no skill injected), the system can detect when a model no longer needs external help. This allows for Skill Retirement, keeping the prompt context clean and focused.
- Soft Capacity Bounds: Instead of a hard limit that might prune a promising new skill too early, TrackRL uses a soft capacity. It only evicts skills that have sufficient evidence of being non-beneficial, protecting those still in their "incubation" phase.
Key Results
TrackRL consistently outperformed recent baselines like SkillRL and D2Skill across both benchmarks:
- Superior Performance: On ALFWorld (starting from a base model), TrackRL achieved a 78.1% success rate in skill-assisted mode, significantly higher than SkillRL's 62.1%.
- Better Policy Learning: Even when evaluated without the skill library (skill-free mode), TrackRL's policy reached 72.7%, beating the standard GRPO baseline (58.6%). This proves that the lifecycle management effectively helps the model internalize knowledge.
- Efficiency: The system successfully retired internalized skills and removed harmful ones, preventing the library from growing indefinitely while maintaining high performance.
Limitations and Future Work
- Statistical Delay: The "removal" rule requires a certain amount of evidence to trigger. In high-stakes or real-world deployments, waiting for statistical significance to remove a truly harmful or "poisoned" skill might be too slow. The authors suggest supplementing this with immediate safety checks.
- Data Sensitivity: Since skills are distilled from successful/failed trajectories, they may inherit sensitive information present in those trajectories.
- Future Directions: The authors suggest exploring how these evidence-driven transitions could be applied to multi-modal agents or more diverse "tool-use" scenarios beyond textual skills.
Summary updated