Star-Agents: Automatic Data Optimization with LLM Agents for Instruction Tuning

Hang Zhou, Yehui Tang, Haochen Qin, Yujie Yang, Renren Jin, Deyi Xiong, Kai Han, Yunhe Wang

Abstract

Instruction tuning is critical for aligning Large Language Models (LLMs) with human intent, yet the process is often bottlenecked by the quality and diversity of training data. This paper introduces Star-Agents, an automated framework designed to curate high-quality, model-appropriate instruction data. By leveraging an ensemble of diverse LLM agents and a dual-model evaluation strategy, Star-Agents identifies data within the "Goldilocks zone"—challenging enough to promote learning but within the target model's capacity. Experimental results demonstrate that Star-Agents improves performance by an average of 12% across major benchmarks, with significant gains in specialized reasoning tasks.

Introduction

The efficacy of instruction tuning—fine-tuning base LLMs to follow specific prompts—is fundamentally limited by the underlying dataset. While synthetic data generation using powerful models like GPT-4 has become common, it suffers from two primary issues: stylistic monotony and the complexity ceiling. Stylistic monotony occurs when a single generator produces repetitive linguistic patterns, while the complexity ceiling refers to the performance degradation that occurs when small models are trained on data far beyond their reasoning capabilities. Star-Agents addresses these challenges by automating data diversity and tailoring task difficulty to the specific student model.

The Star-Agents Framework

The Star-Agents system operates through a three-phase optimization pipeline:

1. Diverse Data Generation via Agent-Pairs

To combat stylistic monotony, the framework utilizes a broad spectrum of LLMs, including Phi, ChatGLM, Gemma, Mistral, Qwen, and ChatGPT. Rather than using a single model for both prompt and response, Star-Agents employs "agent-pairs." In this setup, one model is tasked with rewriting or evolving the instruction, while a different model generates the response. This cross-pollination of model families ensures a rich variety of linguistic styles and perspectives in the resulting dataset.

2. Dual-Model Evaluation and the "Goldilocks Zone"

The core innovation of Star-Agents is its selection mechanism based on Instruction-Following Difficulty (IFD). The system evaluates each data sample using both a "Small Model" (the target student) and a "Large Model" (the referee). Data selection is based on a relative difficulty threshold:

  • Too Simple: If both models find the sample easy, it offers little learning value.
  • Too Hard: If both models find the sample impossible, it exceeds the student's potential.
  • The Sweet Spot: Samples where the Large Model succeeds but the Small Model struggles are prioritized. This identifies data that is within the student's "proximal zone of development."

3. Evolutionary Refinement

Star-Agents incorporates an Instruction Memory Bank and an evolutionary sampling strategy. The system tracks which agent-pairs consistently produce high-quality, high-IFD data for specific tasks. Over successive iterations, the selection probability for successful agent-pairs is increased, allowing the framework to dynamically learn the most effective generation strategies for the target model.

Experimental Setup

The researchers utilized Alpaca (52k samples) and Evol-Instruct (70k samples) as seed datasets. The framework was tested by training Pythia-1B and Llama-2-7B models. Performance was measured using standard benchmarks for instruction following and complex reasoning, including MT-bench, Vicuna-bench, and the WizardLM testset.

Key Insights and Results

The Impact of Complexity

The study confirms that increasing data complexity is not a universal benefit. For very small models (14M to 70M parameters), the highly complex Evol-Instruct dataset actually led to worse performance compared to the simpler Alpaca dataset. Star-Agents mitigates this by dynamically adjusting the complexity to match the model's scale.

Performance Gains

Models trained on data optimized by Star-Agents consistently outperformed those trained on baseline datasets:

  • Average Improvement: The framework led to a 12% average increase in benchmark scores.
  • Task-Specific Surges: In specialized areas like Fermi problems (complex estimation tasks), performance improved by over 40%.
  • Efficiency: The evolutionary sampling reduced computational overhead by focusing resources on the most productive agent-pairs rather than exhaustive generation.

Limitations and Future Work

Despite its success, the authors note several areas for further development. The current framework focuses primarily on single-turn instructions, leaving the complexities of multi-turn dialogue optimization for future research. Additionally, while the framework is general-purpose, its effectiveness in highly specialized domains like medicine or law remains to be validated. Finally, while more efficient than random ensembles, the computational cost of running multiple LLMs remains a consideration for resource-constrained environments.

Conclusion

Star-Agents represents a significant step toward autonomous data engineering for LLMs. By moving away from static datasets and toward a model-aware, evolutionary curation process, the framework ensures that instruction tuning is both diverse and appropriately challenging, maximizing the potential of models across various scales.

Summary updated

BibTeX
@inproceedings{zhou2024star,
  author = {Hang Zhou and Yehui Tang and Haochen Qin and Yujie Yang and Renren Jin and Deyi Xiong and Kai Han and Yunhe Wang},
  title = {{Star-Agents: Automatic Data Optimization with LLM Agents for Instruction Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=jXsxGt80sv},
}
Figure