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

TL;DR

The paper introduces DATAMIND, a comprehensive data synthesis and training pipeline designed to build open-source generalist data-analytic agents. By leveraging a fine-grained task taxonomy, a dynamic SFT+RL training strategy, and optimized multi-turn code rollouts, their DATAMIND-14B model achieves state-of-the-art performance, outperforming top proprietary models like GPT-5 and DeepSeek-V3.1 on data analysis benchmarks.

What Problem Does This Paper Address?

Data analysis is a complex, long-horizon task that requires AI agents to reason, write code (Python or SQL), execute it, and iterate based on errors or data feedback. While proprietary models handle these tasks reasonably well through complex prompt engineering and multi-agent frameworks, open-source models lag far behind.

The authors identify three core bottlenecks preventing open-source models from becoming effective data-analytic agents:

  1. Insufficient Data Resources: Public benchmarks provide limited test sets and lack the step-by-step trajectory annotations needed to train specialized agents.
  2. Improper Training Strategies: Standard Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (RL) is notoriously unstable for long-horizon agent tasks, making it difficult to balance exploration and exploitation.
  3. Unstable Code Rollouts: Running massive parallel code executions during RL training causes severe memory spikes and environment crashes.

Methods

The DATAMIND pipeline addresses these challenges through a multi-stage data generation and training recipe:

Figure 2: The Pipeline of DATAMIND. DATAMIND applies 1) a fine-grained task taxonomy and a recursive easy-to-hard task composition mechanism; 2) a knowledge-augmented trajectory sampling strategy followed by model-based and rule-based filtering; 3) a dynamically adjustable training objective including both SFT and RL losses; 4) a memory-frugal and stable code-based multi-turn rollout framework.
  • Query Synthesis & Recursive Composition: The authors categorize data analysis into 18 fine-grained task types. To generate complex queries, they use a recursive easy-to-hard composition scheme where the output of one data task is fed as the input to the next, creating multi-hop analytical challenges.
  • Knowledge-Augmented Trajectory Sampling: They use DeepSeek-V3 as an expert model to generate solution trajectories guided by high-level workflows. A judge model (GPT-4o-mini) enforces self-consistency filtering, and a "rescue loop" feeds critiques back to failed trajectories to encourage self-correction.
  • Dynamic SFT+RL Training: Instead of the traditional sequential SFT-then-RL approach, they jointly optimize both losses. They use a dynamic coefficient ($\gamma$) that starts high (prioritizing SFT to absorb expert knowledge) and gradually anneals to a low value (prioritizing RL exploration). They also introduce Void Turns Filtering, which masks out training losses from trajectories that fail to produce valid code snippets.
  • Memory-Frugal Rollout Infrastructure: To prevent system crashes during parallel RL training, they asynchronize model generation and code execution, and implement notebook-style chunk-wise code maintenance to minimize peak memory usage.

Datasets

  • DATAMIND-12K: The newly curated training dataset consisting of 11,707 high-quality reasoning trajectories spanning diverse domains, 18 task categories, and multiple file formats (.csv, .xlsx, .sqlite).
  • Evaluation Benchmarks: The models were evaluated on four prominent data analysis datasets: DABench, TableBench, BIRD (a Text-to-SQL benchmark), and QRData (complex causal-reasoning tasks).
Figure 1: (a) Task Taxonomy. We categorize data analysis tasks into 18 fine-grained categories to enhance the diversity of our synthesized queries. (b) Performance Comparison. Our DATAMIND-14B achieves the best compared with all proprietary models and open-source trained or untrained models. * Note that DeepSeek-V3.1 is an open-sourced model. We categorize it as a proprietary model for representational convenience only.

Key Insights and Ideas

  • Diversity Beats Curation Bias: When filtering synthesized trajectories, the authors found that keeping all trajectories that converged to a consistent answer—rather than filtering for the single "best" trajectory chosen by an LLM judge—yielded better performance. This suggests that preserving a diverse set of reasoning patterns is more beneficial than optimizing for a judge's stylistic preference.
  • The "Parenting" Approach to RL Stability: SFT loss acts as an essential stabilizer during RL training. Fixing SFT weights too high causes over-fitting and entropy collapse, while omitting it entirely leads to immediate divergence. The dynamic annealing strategy mimics raising a child: constant parental guidance early on, followed by a judicious letting-go to encourage independent exploration.
  • RL Unlocks, SFT Builds: The authors observed that while RL narrows the performance gap between smaller and larger base models, it rarely reverses their inherent ranking. This indicates that the bulk of core knowledge is acquired during SFT, while RL primarily serves to unlock latent execution potential.

Key Results

  • DATAMIND-14B achieved an average score of 71.16% across the benchmarks, surpassing the strongest proprietary baselines including DeepSeek-V3.1 (70.58%) and GPT-5 (69.44%).
  • DATAMIND-7B scored 68.10%, outperforming significantly larger open-source models such as Qwen-2.5-72B (67.02%) and Llama-3.3-70B (61.45%).
  • Ablation studies confirmed a clear scaling law: agent performance steadily improves as the volume of synthesized training data scales from 2K to 12K instances.

Limitations and Future Work

  • Task Scope: The current framework focuses exclusively on reasoning-oriented data tasks. It deliberately excludes predictive modeling, machine learning training pipelines, and data visualization tasks.
  • Modality Constraints: DATAMIND is currently limited to tabular data files and textual queries. The authors plan to extend the agent to handle multimodal inputs (such as charts and images) in future iterations.
  • Compute and Scale: Due to hardware constraints, the experimental backbone was restricted to the Qwen family and capped at a 14B parameter scale, with RL training limited to approximately 350 steps.

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