Write, Execute, Refine: From Skill Follower to Skill Optimizer via Reinforcement Learning from Execution Feedback

Kang Peng, Zhiwei Zhang, Yichen Zhang, Zezhong Wang, Yiming Du +5 more
8/18/2026
1 citation
cs.CL
rlrlhf-rlvr-dpo

Official code: littlepkk/wer-training (4 stars, Python, MIT, last commit 2026-10-13).

Abstract

Expert-written natural language skills can improve tool-using agents, yet agent-authored skills perform 8--11 points worse than using no skill. While inference-time loops can repair individual skills per task, they leave the underlying generator's refinement capability unimproved.

Show full abstract

We study how to organize execution experience from intermediate skills into training states for an optimizer. We introduce WER(Write, Execute, and Refine), a multi-phase framework that trains a Skill Optimizer outside a frozen executor. The optimizer proposes skills, a frozen agent executes each repeatedly, and a programmatic verifier scores the outcomes. These scores serve as group-relative rewards and filter for informative, mixed-outcome instances. Matched successful and failed trajectories from these records form the next phase's refinement states, so the optimizer learns from the consequences of its earlier outputs. On BFCL v4 multi-turn and tau2-bench, WER improves average Pass@1 over the no-skill baseline by 7.80 and 6.06 points, respectively. Under an identical refinement workflow, it outperforms the same backbone without optimizer training by 10.02 and 12.50 points. Notably, our trained 4B optimizer achieves 76.63\% on BFCL v4, outperforming all evaluated off-the-shelf general-purpose LLMs in the same role on average. Our code is available at https://github.com/littlepkk/wer-training.

View on arXivView PDF

Code Implementations(1)

MIT

WER training framework

40Python, ShellOct 13, 20261 months agoMIT

Similar Papers

Cite this paper

@article{peng2026write,
  title  = {Write, Execute, Refine: From Skill Follower to Skill Optimizer via Reinforcement Learning from Execution Feedback},
  author = {Kang Peng and Zhiwei Zhang and Yichen Zhang and Zezhong Wang and Yiming Du and Geng Tu and Baojun Wang and Bin Liang and Ruifeng Xu and Kam-Fai Wong},
  year   = {2026},
  eprint = {2608.17587},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.17587v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.17587.svg)](https://codeofpaper.com/paper/2608.17587)

Discussion