Language Models as Continuous Self-Evolving Data Engineers

Peidong Wang, Ming Wang, Zhiming Ma, Xiaocui Yang, Shi Feng, Daling Wang, Yifei Zhang, Kaisong Song

TL;DR

This paper introduces LANCE, a novel framework that empowers Large Language Models (LLMs) to autonomously generate, clean, review, and annotate their own training data. This self-evolving approach significantly reduces reliance on human experts and external data sources, leading to improved model performance and efficiency, especially in low-resource scenarios.

What Problem Does This Paper Address?

The rapid advancement of LLMs has created a significant bottleneck: the scarcity of high-quality training data. Traditional methods heavily rely on expert-labeled data, which is expensive, time-consuming to acquire, and limits the scalability of LLM performance. As LLMs become more capable, human supervision might even become less effective. This paper tackles the challenge of creating a continuous, autonomous data pipeline that allows LLMs to self-improve without constant human intervention or reliance on external, pre-curated datasets.

Methods

LANCE proposes a cyclical self-improvement process for LLMs. The core idea is to use the LLM itself as a "data engineer."

  • Seed Data Review: The process begins with a small "seed" dataset. The LLM reviews this data, identifying deficiencies and areas for improvement based on a defined "constitution" (a set of principles like clarity, usefulness, etc.).
  • Reward-Based Generation: Based on the review, the LLM generates new instruction data to address identified gaps. For high-quality data, it generates intentionally flawed responses to create preference pairs for contrastive learning.
  • Data Cleaning and Annotation: The generated data undergoes rigorous filtering (length-based and semantic redundancy) to ensure quality.
  • Model Fine-tuning: The cleaned data is then used for two stages of fine-tuning:
  • Supervised Fine-Tuning (SFT): To improve instruction-following capabilities.
  • Direct Preference Optimization (DPO): To align the model with human preferences using the generated preference pairs.
  • Iterative Improvement: The fine-tuned model becomes the starting point for the next iteration, repeating the cycle to continuously enhance its performance and expand its data generation capabilities.

What's novel here is the LLM acting as its own dynamic reward model and reviewer, enabling a closed-loop self-evolutionary system that doesn't require external human feedback or pre-existing large datasets for each iteration.

Datasets

  • Seed Datasets:
    • Ultra-Chat (3,184 examples)
    • OpenAssistant Conversations (5,632 examples, including human-labeled scores)
  • Generated Datasets: LANCE generates synthetic SFT and DPO datasets throughout its iterative process.
  • Evaluation Benchmarks: The paper evaluates LANCE on a comprehensive suite of benchmarks, including:
  • Commonsense Reasoning: HellaSwag, Winogrande
    • Multi-domain Knowledge: MMLU
    • Accuracy: TruthfulQA
    • Mathematical Reasoning: GSM8K, MATH, Olympiad Bench, Minerva Math, MGSM (multilingual)
    • Scientific Reasoning: ARC-Challenge

Key Insights and Ideas

  • LLMs as Autonomous Data Engineers: The most significant insight is that LLMs can be trained to perform the entire data lifecycle (generation, cleaning, review, annotation) autonomously, drastically reducing external dependencies.
  • Data Diversity Expansion: LANCE's generated data not only covers the original seed data distribution but also explores new regions, leading to a more diverse dataset that enhances model generalization.
  • Synergy of SFT and DPO: The iterative interplay between SFT (for foundational stability) and DPO (for faster, sustainable improvements) is crucial for LANCE's effectiveness.
  • Mathematical Reasoning Boost: LANCE shows a remarkable ability to improve mathematical reasoning skills, even when trained on general-purpose data, suggesting that the self-evolutionary process embeds richer logical structures.
  • Supervisory Signal Efficiency: LANCE demonstrates superior data efficiency, achieving better performance with less supervisory signal compared to traditional methods that scale supervision with dataset size.

Key Results

  • Average Score Improvement: LANCE achieved an average score enhancement of 3.64 for Qwen2-7B and 1.75 for Qwen2-7B-Instruct across multiple benchmarks.
  • Mathematical Reasoning: Notable improvements were observed in mathematical abilities, with Qwen2-7B showing a 21.15 improvement on GSM8K. LANCE also achieved significant gains on MATH and Olympiad Bench.
  • Iterative Gains: The model consistently improved performance across multiple iterations, outperforming baselines like SPIN and I-SHEEP, which showed more erratic or limited gains.
  • Cross-lingual Transfer: LANCE demonstrated improvements in multilingual mathematical proficiency (MGSM) even when trained on English data, indicating strong generalization capabilities.
  • Efficiency: LANCE significantly reduces the time and cost of post-training data construction.

Limitations and Future Work

  • Knowledge Augmentation: LANCE's improvement on knowledge-dependent tasks is limited by the absence of external supervision. It cannot introduce entirely new knowledge beyond the model's existing capacity, making it more suitable for enhancing existing capabilities rather than expanding the knowledge base.
  • Computational Cost: The iterative nature of LANCE, involving sampling, reviewing, and annotation, can lead to significant computational overhead, posing a challenge for compute-low-resource settings.
  • Future Work:
    • Addressing the enhancement of strongly knowledge-dependent abilities.
  • Optimizing the computational efficiency of the process for low-resource settings.
  • Exploring LANCE's applicability to other model architectures and sizes (preliminary results on Zephyr and Mistral-NeMo-12B-Instruct are promising).

Summary updated

BibTeX
@inproceedings{wang2025language,
  author = {Peidong Wang and Ming Wang and Zhiming Ma and Xiaocui Yang and Shi Feng and Daling Wang and Yifei Zhang and Kaisong Song},
  title = {{Language Models as Continuous Self-Evolving Data Engineers}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure