Skip to content

About

Implementation of skill-alpha, a reinforcement learning method for progressive agent skill generation

Resources

Stars

36 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Progressive Agent Skill Generation via Reinforcement Learning

arXiv Hugging Face License

Skill-Alpha learns to progressively construct and maintain reusable SKILL.md documents from document context or execution experience. It edits the current skill through structured CREATE, UPDATE, MERGE, PRUNE, and NOOP actions, and optimizes these edits with rollback rewards derived from downstream agent behavior.

Overview

Skill-Alpha supports both document-to-skill and experience-to-skill generation with a unified skill editor. At inference time, it processes evidence sequentially and updates the skill through local edit actions. During training, GRPO samples candidate edits from the same skill state and compares their downstream outcomes against a controlled rollout.

Skill-Alpha framework

Document-to-Skill

The document-to-skill setting evaluates whether a generator can transform a source context into a reusable skill for held-out tasks. The same generated skill is evaluated with both the source worker and a transfer worker.

Document-to-skill results on CL-Bench

Experience-to-Skill

The experience-to-skill setting constructs skills from execution trajectories and evaluates them on held-out tasks from the same benchmark domain.

Experience-to-skill results on SpreadsheetBench and tau2-bench

Generalization to Unseen Domains (BFCL)

BFCL multi-turn evaluates whether the learned skill generator generalizes to unseen domains. BFCL is excluded from training, and the trained generator is applied without parameter updates. Skill generation follows the same experience-to-skill setup as above, with GPT-4o as the source worker and Claude-Sonnet-4.5 used only as a transfer worker. All results are pass rates (%), and Avg. is the unweighted average across the eight Sub-APIs.

Generalization to unseen domains on BFCL multi-turn with GPT-4o and Claude-Sonnet-4.5 workers

News

  • 2026-09-11: We update the paper with more experiments and analysis.
  • 2026-08-03: Paper released on arXiv.

Data Preparation

Training data is provided to the launchers as prepared Parquet files:

  • SFT data follows the verl multi-turn format and contains a messages column. Assistant responses use the <think>...</think><action>...</action> protocol.
  • RL data contains prompt, data_source, reward_model, and extra_info. The extra_info field stores the current skill, evidence source, evaluation anchor, and benchmark-specific references required by rollback reward.

Download and mount the benchmark data separately, then configure its paths in .env:

  • CL-Bench JSONL through CL_BENCH_PATH;
  • SpreadsheetBench repository and verified workbook archive through SPREADSHEET_ROOT and SPREADSHEET_BENCH_TAR;
  • tau2-bench repository, source tree, and domain data through TAU2_REPO_ROOT, TAU2_SRC, and TAU2_DOMAINS_DIR;
  • experience source traces through SPREADSHEET_SOURCE_TRACES and the TAU2_*_SOURCE_TRACES variables.

See docs/TRAINING.md for the complete input contract and docs/EVALUATION.md for benchmark-specific configuration.

Installation

The tested base image is the verl SGLang image:

docker pull verlai/verl:sgl055.latest
docker create --runtime=nvidia --gpus all --net=host --shm-size=10g \
  --cap-add=SYS_ADMIN \
  -v /path/to/skill-alpha:/workspace/skill-alpha \
  -v /path/to/models:/models \
  -v /path/to/datasets:/datasets \
  -v /path/to/outputs:/outputs \
  --name skill-alpha verlai/verl:sgl055.latest sleep infinity
docker start skill-alpha
docker exec -it skill-alpha bash

Inside the container:

cd /workspace/skill-alpha
pip3 install --no-deps -e .
bash training/check_imports.sh

Copy .env.example to .env and set the model, dataset, output, and OpenAI-compatible endpoint configuration. Additional setup details are available in docs/INSTALL.md.

Training

SFT and GRPO use the project-owned verl checkout and read their Parquet inputs from TRAIN_FILE and VAL_FILE.

cp .env.example .env
RUN_ID=<run-id> bash training/run_sft.sh
RUN_ID=<run-id> bash training/run_grpo.sh

Use training/merge_checkpoint.sh to convert a saved verl actor checkpoint into a Hugging Face checkpoint before deployment.

The default GRPO setup uses eight samples per prompt, non-zero rollout temperature, no KL loss, SGLang rollout, and benchmark-specific rollback rewards. See docs/TRAINING.md for all SFT and GRPO parameters.

Inference

Deploy a merged checkpoint through SGLang:

bash src/inference/start_sglang_server.sh

Generate and validate a single skill edit with src/inference/skill_alpha_inference.py, or run progressive skill generation with src/inference/run_skill_alpha_eval.sh. The inference quality gate retries malformed or invalid edits up to five times before returning a result.

The inference prompt and action schema are defined in src/skill_alpha_rl/prompts.py. See src/inference/README.md for configuration and usage.

Evaluation

The evaluation runners support:

  • CL-Bench with its per-question rubrics;
  • SpreadsheetBench with official workbook comparison;
  • tau2-bench with the official simulator and evaluator.

Generated skills, predictions, raw evaluator outputs, and summaries are written under SKILL_ALPHA_OUTPUT_ROOT.

bash src/inference/run_skill_alpha_eval.sh

Worker models, judge models, benchmark paths, and evaluation concurrency are configured through .env. See docs/EVALUATION.md for the full evaluation protocol.

Acknowledgement

This project is built on verl. We thank the verl authors and contributors for their open-source work.

Repository Layout

skill-alpha/
|-- assets/                 # Framework and result figures
|-- training/               # SFT, GRPO, import checks, and checkpoint merge
|-- src/
|   |-- inference/          # Skill generation, quality gates, and deployment
|   |-- evaluation/         # Benchmark evaluation runners
|   |-- skill_alpha_rl/     # Prompts, actions, PPO entry, and reward manager
|   `-- skill_alpha_env/    # Benchmark environments and API client
|-- verl/                   # Training and rollout framework
|-- docs/                   # Installation, training, and evaluation guides
|-- .env.example            # Runtime configuration template
`-- README.md

Citation

If you find Skill-Alpha useful in your research, please cite:

@article{shen2026progressive,
  title   = {Progressive Agent Skill Generation via Reinforcement Learning},
  author  = {Shen, Junhao and Zhang, Zhanqiu and Guo, Yiwen and Cheng, Hong},
  journal = {arXiv preprint arXiv:2608.01678},
  year    = {2026}
}

About

Implementation of skill-alpha, a reinforcement learning method for progressive agent skill generation

Resources

Stars

36 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages