---
title: 'SKILL0: LLM Skill Internalization'
url: https://www.emergentmind.com/topics/skill0
type: topic
---

# SKILL0: LLM Skill Internalization

SKILL0 refers to a family of paradigms for training large language model (LLM) agents to internalize external skills—structured, modular packages encoding procedural knowledge, tool usage, or high-level strategies—so that at inference time agents require little or no context injection of such skills and can operate in a “zero-skill” (purely autonomous) fashion. The SKILL0 framework is most associated with "SKILL0: In-Context Agentic Reinforcement Learning for Skill Internalization" [2604.02268], though the concept is both a target of recent RL curricula and the archetype against which hybrid and lifecycle skill paradigms are benchmarked. Unlike memory-augmented methods (SkillRL, SkillOS, SkillX), which dynamically retrieve and load skills at decision time, SKILL0 seeks to fully absorb the value of external skills into the agent’s parametric memory through curriculum-structured reinforcement learning, thus removing reliance on expensive and noisy runtime retrieval.

## 1. Motivation: From Inference-Time Skill Augmentation to Skill Internalization

Skill augmentation has become central to agentic LLM systems: at each decision step, the agent retrieves task-relevant skill files (procedures, tool patterns) from a “SkillBank” and appends them to its prompt. This retrieve-then-prompt pattern, driving systems such as ToolNet and SkillRL, improves reasoning and tool-use but has inherent limits [2604.02268]:
- **Retrieval noise:** Imperfect retrieval introduces irrelevant or misleading context, degrading reasoning quality.
- **Token overhead:** Skills injected each step bloat the context window, slowing inference and risking context drop.
- **Lack of true learning:** The policy simply “follows” injected skills; the parametric weights never capture the strategies themselves.

Skill internalization is the process of training the agent so that, after curriculum withdrawal of skill context, it can execute formerly skill-dependent behaviors with no runtime skills present—operating in a strictly zero-shot “SKILL0” mode. This aims to deliver both memory efficiency (sub-kilobyte context costs) and genuine autonomous generalization [2604.02268].

## 2. Methodology: Dynamic Curriculum for Skill Internalization

SKILL0 introduces agentic reinforcement learning with a curriculum that transitions from full skill support to total withdrawal. Several related innovations underlie the methodology:

### 2.1 Agentic RL Setup and Vision Encoding

- **Agent Loop:** The agent operates in a Markov Decision Process (MDP): at each time $t$, history $h_t$ and current skill subset $\mathcal{S}$ are rendered as a color-coded RGB image, input to a vision encoder $\mathrm{Enc}(\cdot)$ forming $\mathcal{V}_t$.
- **Policy:** $\pi_\theta(a_t, c_t \mid I, \mathcal{V}_t)$, where $c_t\in(0,1]$ is a compression factor, enabling both action and skill-context compression to be learned [2604.02268].

### 2.2 Curriculum Staging

- **Phased Budgeting:** Training proceeds over $N_S$ curriculum stages, with a skill budget $M^{(s)}$:
  $$
  M^{(s)} = \left\lceil N\,\frac{N_S-s}{N_S-1}\right\rceil
  $$
  where $N$ is the initial number of skill files. Early on, agents have access to all skills in context; at each stage, fewer skill files are available, enforcing progressive dependence on internalized knowledge.
- **Dynamic Skill Filtering:** Every $d$ training steps, for each skill file $\mathcal{S}_k$ grouped by semantic category, SKILL0 measures
  $$
  \Delta_k = \mathrm{Acc}_k^{\mathrm{w/skill}} - \mathrm{Acc}_k^{\mathrm{w/o\;skill}}
  $$
  on associated sub-tasks. Only the top $M^{(s)}$ skills with $\Delta_k > 0$ are retained. Skills the agent no longer benefits from are withdrawn, forcing policy internalization.

### 2.3 Composite RL Objective

A PPO-style loss is used with the following composite reward:
$$
\tilde{r}_t = r_t + \lambda\, r_t^{\mathrm{comp}}
$$
where $r_t$ is the usual task step-wise reward and $r_t^{\mathrm{comp}} = \ln(c_t)$ ($c_t$ the context compression factor), penalizing unnecessary context usage and encouraging compact representations [2604.02268].

## 3. Offline SkillBank Construction and Organization

SKILL0 relies on a SkillBank $\{\mathcal{S}_k\}$, typically partitioned by high-level skill categories (e.g., "pick_and_place.md", "multi_hop_reasoning.md"). For ALFWorld and Search-QA, this often involves $N\approx 100$ skill files, each encoding either atomic actions or high-level strategies. Skill grouping is performed offline by analyzing trajectories for sub-task dependencies, with unique skill files allocated per major functional requirement [2604.02268].

Both the recent interaction history and the current subset $\mathcal{S}$ are rendered as images, reducing the token context cost to $<0.5$k tokens/step (ALFWorld: 0.38k; Search-QA: 0.18k, compared to $\sim$2.2k for SkillRL) [2604.02268].

## 4. Zero-Shot Operation and Efficiency

At the end of the curriculum (stage $N_S$), the context skill set $\mathcal{S}^{(N_S)}=\emptyset$: the agent receives only the environment and history, with no external skills provided. This enables:
- **Memory footprint minimization:** Compared to previous methods’ multi-kilobyte prompts, SKILL0’s internalized agents operate on compressed vision-encoded history alone.
- **Elimination of retrieval noise:** No skill files injected at inference, so there is no risk of guidance conflict.
- **Autonomous, parameter-based execution:** All critical skill knowledge is integrated into the policy weights.

## 5. Empirical Results, Ablations, and Limitations

SKILL0 demonstrates state-of-the-art (relative to SkillRL and memory-augmented baselines) performance on embodied (ALFWorld) and search-augmented (NaturalQuestions, HotpotQA, Bamboogle) benchmarks in a purely zero-shot regime [2604.02268]:
- ALFWorld: 87.9% success rate (Qwen2.5-VL-3B), a +9.7% gain over AgentOCR.
- Search-QA: 40.8 F1 (Qwen2.5-VL-3B), a +6.6% gain over AgentOCR.
- Context cost: $<$0.5k tokens/step (vs. 2.2k for SkillRL).

Ablations reveal:
- Smooth curriculum transitions (“rise-then-fall” in $\Delta_k$) correspond to skill internalization in training curves.
- Skill grouping is essential: without grouped withdrawal, stagewise performance degrades.
- Visual context encoding is necessary for sub-kilobyte context operation.

Limitations:
- SKILL0 as implemented is evaluated in text-based and vision-encoded RL environments, with mid-scale models (3B/7B parameters); extension to large-scale, multi-modal settings remains an open area.
- All skill filtering is performed offline; joint, online skill construction and internalization is left for future work [2604.02268].

## 6. Relation to Hybrid and Lifecycle Skill Frameworks

SKILL0 represents one axis of the broader skill-lifecycle design space [2605.10923]:
- **SkillRL** [2602.08234]: Persistent, hierarchical skill augmentation with recursive co-evolution, balancing external skill retrieval and policy learning.
- **SkillOS** [2605.06614], **SkillX** [2604.04804]: Autonomous, RL-driven skill curation and knowledge base construction, with modular, plug-and-play libraries.
- **Skill0.5** [2605.28424]: Joint internalization (general skills) and context-based utilization (task-specific skills) with dynamic, difficulty-aware routing—bridging full-internalization (SKILL0) and persistence (SkillRL).
- **SLIM** [2605.10923]: Lifecycle management with dynamic “retain–retire–expand” rules; strictly generalizes SKILL0 and SkillRL as end-points of a non-monotonic skill-lifecycle spectrum.

A plausible implication is that while SKILL0 achieves maximum memory efficiency and robust zero-shot transfer, hybrid approaches (Skill0.5, SLIM) may offer superior adaptability in settings with long-tail or compositional skill requirements.

## 7. Implementation and Reproducibility

The canonical SKILL0 codebase is available at https://github.com/ZJU-REAL/SkillZero. Models are trained with PPO, curriculum parameters ($N_S=3$, validation interval $d=10$), batch size 16×8 (ALFWorld) or 128 (Search-QA), and require $\sim$12 hours (4×NVIDIA H800). SkillBank initialization uses the distilled set from SkillRL; prompt lengths are 3,072–4,096 tokens. The code includes scripts for reproducing all reported results, and full details on data preparation, hardware, and training hyperparameters appear in the published supplementary materials [2604.02268].

Source: https://www.emergentmind.com/topics/skill0