SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization

Zhengxi Lu, Zhiyuan Yao, Jinyang Wu, Chengcheng Han, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, Yongliang ShenarXiv 2026

TL;DR

SKILL0 is a reinforcement learning framework that enables LLM agents to "internalize" external skills directly into their model parameters. By using a dynamic curriculum that provides skill guidance during training but gradually withdraws it, the framework produces agents that achieve superior performance in a fully zero-shot setting while reducing inference token costs by over 75%.

What Problem Does This Paper Address?

Current Large Language Model (LLM) agents typically rely on inference-time skill augmentation. When an agent faces a task, it retrieves relevant "skills"—structured natural language descriptions of how to solve specific sub-problems—and injects them into its prompt.

While effective, this approach has three major flaws:

  1. Retrieval Noise: Retrieval systems often fetch irrelevant or misleading guidance that confuses the agent.
  2. Token Overhead: Injecting long skill descriptions into every step of a multi-turn interaction quickly exhausts context windows and increases latency/cost.
  3. Lack of True Learning: The model merely follows instructions in the prompt; it never truly acquires the underlying competence. The authors argue that "competence resides in the context, not in the model."

SKILL0 asks: Can we move from "skills in the prompt" to "skills in the parameters," enabling autonomous, zero-shot behavior without runtime retrieval?

Methods

The authors introduce In-Context Reinforcement Learning (ICRL) combined with a Dynamic Curriculum. The process follows these key steps:

  • Skill Management: Reusable behavioral knowledge is organized into a hierarchical "SkillBank," containing both general strategies (e.g., exploration) and task-specific sequences.
  • Context Rendering: To manage the massive token overhead of history and multiple skill files during training, SKILL0 maps textual context into a compact visual representation (an RGB image). This visual context is then encoded, allowing the agent to "see" the history and skills while keeping the token count per step under 0.5k.
  • Dynamic Curriculum Learning: This is the core innovation. Instead of a fixed schedule, the system evaluates the on-policy helpfulness ($\Delta_k$) of each skill. It compares the agent's performance on a task with the skill versus without it.
  • Internalization: As the agent’s internal policy improves through RL (using the GRPO algorithm), it relies less on the prompts. The curriculum progressively prunes skills that no longer provide a performance boost, eventually transitioning the agent to a fully zero-shot state.
Comparison of (a) Skill Augmentation vs (b) Skill Internalization

Datasets

The framework was evaluated across three diverse and complex agentic benchmarks:

  • ALFWorld: A text-based environment for embodied AI tasks (e.g., "clean the apple and put it in the fridge").
  • Search-based QA: Includes single-hop (NQ, TriviaQA) and difficult multi-hop datasets (HotpotQA, Bamboogle) where the agent must use a search engine to find answers.
  • WebShop: A complex e-commerce environment where agents must navigate a realistic web interface to purchase products matching specific user requirements.

Key Insights and Ideas

  • Skills as Scaffolding: The most striking insight is the "rise-then-fall" pattern of skill helpfulness. Early in training, the model doesn't know how to use the skills. As it learns to follow the prompt, helpfulness peaks. Finally, as the model internalizes the logic into its own weights, the prompt becomes redundant, and helpfulness drops back toward zero.
  • Internalization > Augmentation: The results suggest that a model that has "digested" a skill performs better than one that is simply reading it. This is likely because internalization removes the "distraction" of irrelevant retrieved content and the training-inference gap.
  • Visual Compression for Agents: Using a vision encoder to compress long interaction histories and skill libraries into a "visual context" is a highly effective way to bypass the quadratic scaling issues of long-text contexts in RL training.
Overview of the SKILL0 pipeline, including grouping, ICRL, and curriculum learning

Key Results

SKILL0 demonstrates that internalization is not just more efficient, but actually more effective than traditional RL or RAG-based methods:

  • Performance Gains: Compared to standard RL baselines (like GRPO), SKILL0 improved success rates by +9.7% on ALFWorld, +6.6% on Search-QA, and +10.1% on WebShop.
  • Zero-Shot Superiority: SKILL0 (3B) achieved an 87.9% success rate on ALFWorld without any skills at inference time, outperforming many memory-augmented methods that do use external retrieval.
  • Token Efficiency: By eliminating inference-time retrieval, SKILL0 maintains a context of fewer than 0.5k tokens per step. For comparison, skill-augmented methods like SkillRL often require over 2.2k tokens per step—a 4-5x difference in efficiency.
Training Dynamics showing higher rewards for SKILL0 vs AgentOCR

Limitations and Future Work

  • SkillBank Quality: The method's success is tethered to the quality of the initial SkillBank. If the provided skills are poor, the internalized policy will be as well.
  • Domain Adaptation: Currently, the "Relevance-Driven Skill Grouping" is done offline. Applying SKILL0 to a brand-new, unseen domain would require a new round of manual or semi-automated skill partitioning.
  • Future Directions: The authors suggest exploring automatic skill discovery, where the agent could potentially generate and then internalize its own successful strategies without human-defined skill files.

Summary updated

BibTeX
@misc{lu2026skill,
  author = {Zhengxi Lu and Zhiyuan Yao and Jinyang Wu and Chengcheng Han and Qi Gu and Xunliang Cai and Weiming Lu and Jun Xiao and Yueting Zhuang and Yongliang Shen},
  title = {{SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization}},
  year = {2026},
  eprint = {2604.02268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.02268},
}
Figure