Introduction
Modern Large Language Models (LLMs) rely heavily on high-quality, "verifiable data"—datasets where the correctness of a solution can be automatically validated, such as code passing unit tests or mathematical proofs. This data is the engine behind advanced training techniques like Reinforcement Learning with Verifiable Rewards (RLVR) and model distillation. However, the field faces a significant "data bottleneck": manual annotation is prohibitively slow, and synthetic data is often riddled with hallucinations or low complexity.
Existing solutions typically rely on hard-coded heuristics that are task-specific and fail to generalize to complex reasoning. EvoSyn addresses this by introducing a unified, task-agnostic pipeline that uses evolutionary algorithms to automatically discover and refine its own data-filtering logic.
The EvoSyn Framework
EvoSyn (Evolutionary Data Synthesis) operates through a structured three-stage process designed to evolve high-quality training signals from raw synthetic outputs.
- Strategy Evolution: Rather than relying on human-authored rules, EvoSyn evolves Python-based filtering strategies. Starting with a small set of human-verified "seed" data, the system iteratively explores strategies to rank solutions and tests. The fitness of a strategy is determined by its consistency—how well its rankings align with human-annotated ground truth.
- Data Synthesis & Filtering: Using the optimized strategy, the model generates large-scale synthetic problems, candidate solutions, and tests. The strategy is applied to cross-execute solutions against tests. A critical component is Zero-Variance Pruning, which eliminates "trivial" problems where all solutions pass or fail uniformly, ensuring the model learns from informative signals.
- Model Training: The resulting high-quality dataset is used to train student models via RLVR or distillation.
Experimental Setup and Datasets
The framework was rigorously tested on two challenging benchmarks:
- LiveCodeBench: A collection of real-time algorithmic programming problems.
- AgentBench-OS: A subset of AgentBench testing model performance in realistic operating system environments.
DeepSeek-V3 and DeepSeek-R1 served as "teacher" models to generate initial synthetic data, while Llama-3.1-8B and Qwen3-4B/8B were trained as "student" models.
Key Insights: Consistency and Emergent Logic
The core innovation of EvoSyn is the use of consistency as a fitness function. By rewarding strategies that match human-verified results on seed data, the system can adapt to any task that is executably checkable.
Interestingly, the evolutionary process discovered sophisticated data science concepts without human intervention. The evolved strategies included "TF-IDF-like weighting" (prioritizing solutions that pass difficult tests) and "Hardness-Aware ranking." Furthermore, the research highlighted that removing "trivial" synthetic data is essential; without Zero-Variance Pruning, reinforcement learning often stalls due to a lack of discriminative signal.
Results: Performance Gains and Teacher-Student Dynamics
EvoSyn demonstrated remarkable performance improvements across benchmarks:
- Significant Accuracy Boosts: On LiveCodeBench, training Llama-3.1-8B with EvoSyn-filtered data increased accuracy from a 1.6% baseline to 15.7% (a 14.1% absolute gain).
- Surpassing the Teacher: In AgentBench-OS distillation, student models frequently outperformed their teachers. For instance, Qwen3-8B reached 44.9% accuracy, significantly higher than the 30.1% achieved by the teacher model, DeepSeek-R1.
- Training Stability: RLVR reward curves indicated that EvoSyn-filtered data leads to a faster and more stable training trajectory compared to randomly selected synthetic data.
Conclusion and Future Work
EvoSyn represents a shift toward automated, generalizable data engineering for LLMs. By allowing models to evolve their own filtering logic, it overcomes the limitations of manual heuristics. While the current implementation faces computational costs due to execution complexity and is bound by the teacher model's creative limits, future work will focus on scaling the population search and enhancing diversity-aware generation to cover a broader range of edge cases.
Code and data are available at: https://github.com/kinza99/openevolve
Summary updated