Scaling Generalist Data-Analytic Agents

Shuofei Qiao, Yanqiu Zhao, Zhisong Qiu, Xiaobin Wang, Jintian Zhang, Zhao Bin, Ningyu Zhang, Yong Jiang, Pengjun Xie, Fei Huang, Huajun Chen

Introduction

Data-analytic agents are emerging as a key catalyst for automated scientific discovery. However, building open-source AI capable of writing code to process, model, and interpret large datasets remains a significant hurdle. Current open-source models typically fail due to data scarcity, an inability to perform long-horizon reasoning, and system instability during multi-turn code rollouts. As a result, most state-of-the-art data agents today rely heavily on prompt engineering over expensive, proprietary models.

To bridge this gap, researchers introduce DataMind, a comprehensive pipeline and training recipe that enables open-source models to outperform proprietary giants like GPT-5 and DeepSeek-V3.1 in complex data analysis.

Performance comparison of DataMind against proprietary and open-source models.

The DataMind Methodology

The DataMind pipeline tackles the challenges of open-source data agents through four key innovations, supported by a newly curated dataset.

The DataMind pipeline: File Collection, Trajectory Synthesis, and Agent Training.
  • Recursive Task Synthesis: Instead of generating simple questions, the authors utilize an 18-category task taxonomy and a recursive mechanism. They chain tasks together (e.g., filter data $\rightarrow$ perform correlation $\rightarrow$ rank results) to create multi-hop challenges that exceed standard benchmark difficulty.
  • Knowledge-Augmented Trajectories: To ensure high-quality training data, an "expert" model (DeepSeek-V3) is guided by manually crafted procedural workflows. A self-consistency filter and a "rescue loop" allow the model to reflect on and fix its own failed attempts.
  • Hybrid SFT+RL Training: Standard Supervised Fine-Tuning (SFT) can make models too rigid, while pure Reinforcement Learning (RL) is unstable. DataMind uses a dynamic weighting factor ($\gamma$) that starts high for heavy supervision and gradually anneals to allow more RL exploration, utilizing the DAPO algorithm for policy optimization.
  • Stable Rollout Framework: To prevent system crashes during training, the team implemented "chunked code maintenance"—a notebook-style approach that only generates the current step's code—and asynchronous interaction to manage memory spikes.

Datasets

Raw files were harvested from Kaggle (.csv, .xlsx), BIRD, and OmniSQL (.sqlite). The core contribution is DataMind-12K, a curated set of 11,707 high-quality reasoning trajectories spanning diverse domains and formats.

Key Insights and Training Dynamics

The researchers uncovered several fascinating dynamics during the training process:

  • The "Parenting" Analogy: Training an agent is likened to raising a child. Early on, "constant parental guidance" (high SFT weight) keeps the model from going astray. As it matures, "judiciously letting go" (lowering SFT weight in favor of RL) allows the model to discover its true capabilities through environmental feedback.
  • RL Narrows, but Doesn't Reverse: While RL significantly narrows the performance gap between a 7B and a 14B model, it rarely reverses their ranking. The bulk of foundational knowledge is acquired during SFT; RL primarily serves to unlock that latent potential.
  • Self-Consistency is Non-Trivial: Simply picking the "best" trajectory isn't enough. Including all trajectories that converge to a correct answer—even if they use different reasoning paths—is more beneficial for the model's reasoning diversity than just picking the most concise one.

Performance and Scaling Results

The results represent a major milestone for open-source AI in data analytics. Evaluated across DABench, TableBench, and BIRD:

  • DataMind-14B achieved an average score of 71.16%, surpassing top proprietary models like DeepSeek-V3.1 (70.58%) and GPT-5 (69.44%).
  • DataMind-7B scored 68.10%, making it the top-performing model in its weight class and beating much larger models like Llama-3.3-70B (61.45%).
  • Scaling Law: A clear scaling law was demonstrated. As the volume of synthesized training data increased from 2K to 12K, the gap between Pass@1 and Pass@3 narrowed, indicating the model became more consistently correct.

Limitations and Future Work

Despite its impressive performance, DataMind has areas for future expansion. The current version focuses strictly on reasoning-oriented tasks and does not yet handle predictive modeling (machine learning) or data visualization. Additionally, while experiments showed success with the Qwen model family and Llama-3.1-8B, more work is needed to prove universal applicability across all architectures. Finally, DataMind currently only accepts tabular data and text, with future iterations aiming to extend into multi-modal data analysis.

Summary updated

BibTeX
@inproceedings{qiao2026scaling,
  author = {Shuofei Qiao and Yanqiu Zhao and Zhisong Qiu and Xiaobin Wang and Jintian Zhang and Zhao Bin and Ningyu Zhang and Yong Jiang and Pengjun Xie and Fei Huang and Huajun Chen},
  title = {{Scaling Generalist Data-Analytic Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=5PxFqpIYWC},
}
Figure