Good Papers

Self-play with Execution Feedback: Improving Instruction-following Capabilities of Large Language Models

AutoIF generates instruction-following training data via code verification and execution feedback, significantly improving open-source LLM instruction-following across SFT, DPO, and distillation settings.

Guanting Dong, Keming Lu, Cheng‐Peng Li, Tingyu Xia, Bowen Yu, Chang Sheng Zhou, Jingren Zhou

Published Jun 19, 20244 citations▲ 17 on Hugging FaceCode ★ 338arXiv ↗

75%
OverallHighly rated
?
OverallHighly ratedVote to see the score
Readers
–

Only vote on papers you've read. Sign in to vote.

AI panel10/20reviewers recommend it
lenient 5/5
medium 5/10
strict 0/5
AI panel?Vote to see what the 20 AI reviewers said

Abstract

One core capability of large language models (LLMs) is to follow natural language instructions. However, the issue of automatically constructing high-quality training data to enhance the complex instruction-following abilities of LLMs without manual annotation remains unresolved. In this paper, we introduce AutoIF, the first scalable and reliable method for automatically generating instruction-following training data. AutoIF transforms the validation of instruction-following data quality into code verification, requiring LLMs to generate instructions, the corresponding code to check the correctness of the instruction responses, and unit test samples to verify the code's correctness. Then, execution feedback-based rejection sampling can generate data for Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF) training. AutoIF achieves significant improvements across three training algorithms, SFT, Offline DPO, and Online DPO, when applied to the top open-source LLMs, Qwen2 and LLaMA3, in self-alignment and strong-to-weak distillation settings. Our code is publicly available at https://github.com/QwenLM/AutoIF.