Skip to main content
QUICK REVIEW

[Paper Review] Self-play with Execution Feedback: Improving Instruction-following Capabilities of Large Language Models

Guanting Dong, Keming Lu|arXiv (Cornell University)|Jun 19, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper introduces AutoIF, a scalable, automated method for generating high-quality instruction-following training data by leveraging code-based verification and execution feedback. By using LLMs to generate instructions, corresponding verification code, and test cases, and applying rejection sampling based on code execution, AutoIF produces reliable data for SFT and RLHF, achieving state-of-the-art performance—surpassing 90% accuracy on IFEval with LLaMA3-70B and over 5% improvement on FollowBench.

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.

Motivation & Objective

  • Address the challenge of scaling high-quality instruction-following data generation without manual annotation.
  • Overcome limitations of manual annotation, such as scalability and human error, and the reliability issues in behavior imitation from advanced LLMs.
  • Develop an automated, self-supervised pipeline that ensures data quality through executable verification and feedback.
  • Enable effective instruction-following improvement across multiple training paradigms: SFT, Offline DPO, and Online DPO.
  • Achieve state-of-the-art performance on instruction-following benchmarks using open-source LLMs like Qwen2 and LLaMA3.

Proposed method

  • Use a small set of hand-written seed instructions as the starting point for instruction generation.
  • Apply self-instruct to generate a large, diverse instruction set using LLMs without requiring advanced models.
  • Generate verification code and unit test cases for each instruction to assess correctness automatically.
  • Filter out instructions whose corresponding code fails compilation, test passes, or fails to back-translate to the original instruction.
  • Use execution feedback-based rejection sampling to generate responses that either pass or fail the verification code.
  • Leverage passing responses for Supervised Fine-Tuning (SFT), and paired passing/failing responses for Direct Preference Optimization (DPO) in RLHF.

Experimental results

Research questions

  • RQ1Can code-based verification reliably assess the correctness of instruction-following responses at scale?
  • RQ2How effective is AutoIF in generating high-quality training data that improves instruction-following across diverse training setups?
  • RQ3To what extent does the coding ability of the supervision model influence data quality and downstream performance?
  • RQ4Can AutoIF achieve state-of-the-art results on instruction-following benchmarks without human-annotated data?
  • RQ5How does the method scale in terms of data quality, contamination risk, and performance gains with minimal data usage?

Key findings

  • AutoIF achieved a new state-of-the-art result with 90.4% Loose Instruction Accuracy on IFEval using LLaMA3-70B, the first model to exceed 90%.
  • Qwen2-72B achieved 88.0% Loose Instruction Accuracy on IFEval, demonstrating significant improvement over prior methods.
  • On the FollowBench benchmark, models fine-tuned with AutoIF data showed over 5% improvement in the SSR (avg) metric.
  • Using only 1/64 of the AutoIF-generated DPO data, Qwen2-7B achieved 55% Loose Prompt Accuracy, a 11.4 percentage point gain, confirming data efficiency.
  • Contamination rates in AutoIF-generated SFT data were below 0.02% on IFEval and FollowBench, significantly lower than ShareGPT, indicating minimal data leakage.
  • The pass rate of high-quality data correlated strongly with the supervision model’s coding ability, with GPT-4 achieving 34% pass rate and 59.3% IFEval accuracy, outperforming LLaMA3-70B and Qwen2-72B.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.