Exploring Autonomous Agentic Data Engineering for Model Specialization

Yujie Luo, Xiangyuan Ru, Jingsheng Zheng, Jingjing Wang, Yuqi Zhu, Jintian Zhang, Runnan Fang, Kewei Xu, Ye Liu, Zheng Wei, Jiang Bian, Zang Li, Shumin DengarXiv 2026

TL;DR

This paper formalizes Autonomous Agentic Data Engineering (ADE), a novel paradigm where LLM agents act as independent data engineers to curate, synthesize, and iteratively optimize domain-specific training data. Guided entirely by automated feedback from student model performance, frontier models like GPT-5.2 can autonomously build training curricula from scratch, improving a student model's performance by an average of 57.29% and outperforming traditional human-crafted data pipelines.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at general tasks, adapting them to highly specialized domains—such as advanced physics, competitive programming, or financial analysis—requires high-quality, domain-specific instruction data. Currently, creating this data relies on rigid, human-designed curation workflows and handcrafted recipes that are difficult to scale or adapt to new domains.

The authors tackle a fundamental question: Can LLM agents autonomously execute an end-to-end data engineering pipeline? Specifically, can an agent handle strategy planning, domain specification, prompt design, data synthesis, validation, and iterative optimization completely on its own to drive model specialization?

Methods

The authors formalize Autonomous Agentic Data Engineering as a closed-loop optimization problem. To isolate the agent's data engineering capabilities, the data generator (teacher model: Qwen3-30B-A3B) and the target model (student model: LLaMA-3.1-8B-Instruct) are kept completely fixed.

The framework evaluates two primary agent settings:

  1. One-Shot: The agent generates the dataset in a single pass based solely on the task description and requirements.
  2. Iterative Agent: A closed-loop system where the agent continuously refines its data curation strategy across four key operations:
  3. Draft: Formulating a data-synthesis plan and implementing it via executable Python code.
  4. Debug: Diagnosing and fixing runtime code errors based on execution tracebacks.
  5. Repair: Post-processing data or refining code when the generated dataset fails basic validation checks (e.g., incorrect format or insufficient sample size).
  6. Improve: Evolving prompt designs and data distributions based on environmental feedback (the student model's post-training performance on a public validation set).
Figure 2: Overall framework of our study. (a) Environment: the overview of the covered domains, the agent input containing task settings and procedural feedback, and the final evaluation method. (b) Agent Workflow: the example workflow in which agents develop strategies to curate data and output a submission.json towards specialization. In (ii) One-Shot setting, the submission is produced in a single pass, whereas in (i) Iterative Agent setting, the agent iteratively improves its data curation strategy with feedback and reports the best submission.

Datasets

The approach is evaluated across three specialized reasoning domains:

  • Science: Built using SciBench (college-level physics, chemistry, and mathematics) for evaluation, filtered to retain deterministic numeric answers.
  • Code: Focused on the Test Output Prediction sub-task of LiveCodeBench (LCB-TOP), augmented with stratified samples from the TACO dataset.
  • Finance: Derived from FinanceReasoning, targeting complex financial logic, numerical reasoning, and domain-specific text comprehension.

The evaluation enforces strict zero-overlap between the seed pools, public validation sets, and hidden private test sets to prevent data leakage.

Key Insights and Ideas

  • Data as an Optimizable Component: Instead of treating data curation as a static preprocessing step, the paper frames data as a dynamic component that can be optimized iteratively via environmental feedback.
  • Iteration Drives Diversity, Not Just Quality: Intrinsic quality analysis revealed that the iterative loop primarily helps the agent discover new and diverse questions to broaden task coverage, rather than marginally improving the quality of existing items.
  • Weaker Models Benefit Most from Agentic Scaffolding: While powerful models like GPT-5.2 perform well even in simpler settings, weaker models (like DeepSeek-V3.1) see massive performance surges when wrapped in an iterative framework with seed data, showing that agentic loops act as crucial guardrails.
  • The Quality Assurance Bottleneck: Despite their impressive generation capabilities, autonomous agents still struggle with robust post-generation quality assurance. They frequently fail to ensure the final dataset meets exact quantity requirements or strict formatting constraints (like LaTeX or executable code logic) without explicit external checks.

Key Results

  • Substantial Performance Gains: In the "from scratch" setting (no seed data), GPT-5.2 achieved an average relative performance gain of 57.29% across the three domains using the Iterative Agent framework, significantly outperforming its One-Shot counterpart (40.73%).
  • Surpassing Human-Designed Pipelines: Fully autonomous data engineering via GPT-5.2 outperformed DataFlow, a strong human-designed data preparation framework, achieving a 76.76% gain vs. DataFlow's 65.82% from scratch.
  • Stability via Seed Data: Providing a small pool of 1,000 raw seed questions consistently stabilized training and boosted performance across all models, mitigating catastrophic failures (such as One-Shot DeepSeek-V3.1 scoring -4.58% on coding tasks due to a single corrupting pipeline error).
Iteration analysis showing steady improvement across rounds in the Code Domain.

Limitations and Future Work

  • Evaluation Constraints: The study focuses strictly on QA reasoning tasks with deterministic, rule-based scoring. Evaluating autonomous data engineering on open-ended generation tasks remains a major challenge due to the difficulty of automated evaluation.
  • High Computational Cost: Running a full closed-loop data engineering cycle requires substantial compute resources, as each iteration involves data synthesis, student model fine-tuning, and full evaluation.
  • Data Repetitiveness: While LLM agents can match human-level data complexity, they still lag behind humans in generating truly diverse data distributions, often producing high-quality but repetitive examples. Future work will explore more cost-efficient optimization strategies and broader task coverage.

Summary updated

BibTeX
@misc{luo2026exploring,
  author = {Yujie Luo and Xiangyuan Ru and Jingsheng Zheng and Jingjing Wang and Yuqi Zhu and Jintian Zhang and Runnan Fang and Kewei Xu and Ye Liu and Zheng Wei and Jiang Bian and Zang Li and Shumin Deng},
  title = {{Exploring Autonomous Agentic Data Engineering for Model Specialization}},
  year = {2026},
  eprint = {2605.30407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.30407},
}
Figure