DataSciBench: An LLM Agent Benchmark for Data Science

Dan Zhang, Sining Zhoubian, Min Cai, Fengzu Li, Lekang Yang, Wei Wang, Tianjiao Dong, Ziniu Hu, Jie Tang, Yisong Yue

Abstract

This paper presents DataSciBench, a comprehensive benchmark for evaluating Large Language Model (LLM) capabilities in data science. Recent related benchmarks have primarily focused on single tasks, easily obtainable ground truth, and straightforward evaluation metrics, which limits the scope of tasks that can be evaluated. In contrast, DataSciBench is constructed based on a more comprehensive and curated collection of natural and challenging prompts for uncertain ground truth and evaluation metrics. We develop a semi-automated pipeline for generating ground truth (GT) and validating evaluation metrics. This pipeline utilizes and implements an LLM-based self-consistency and human verification strategy to produce accurate GT by leveraging collected prompts, predefined task types, and aggregate functions (metrics). Furthermore, we propose an innovative Task - Function - Code (TFC) framework to assess each code execution outcome based on precisely defined metrics and programmatic rules. Our experimental framework involves testing 6 API-based models, 8 open-source general models, and 9 open-source code generation models using the diverse set of prompts we have gathered. Experimental results demonstrate that API-based models outperform open-sourced models on all metrics and Deepseek-Coder-33B-Instruct achieves the highest score among open-sourced models.

Introduction

Evaluating Large Language Models (LLMs) in data science has traditionally been a "low-resolution" affair. Most existing benchmarks, such as HumanEval or DS-1000, focus on isolated coding tasks with easily verifiable "pass/fail" outcomes. However, real-world data science is complex and multi-modal, involving a chain of reasoning: cleaning a specific dataset, performing exploratory statistics, generating a plot, and then building a predictive model. Current benchmarks often fail to capture these dependencies or provide robust evaluation for "uncertain" outputs like chart quality or report interpretability. DataSciBench bridges this gap by treating data science as a holistic process rather than a series of independent puzzles.

Methodology: The TFC Framework

The core innovation of DataSciBench is the Task-Function-Code (TFC) framework. Instead of merely checking if code executes, the framework decomposes a prompt into three distinct layers for evaluation:

  1. Task: The high-level objective (e.g., "Data Visualization").
  2. Function: The specific metric or aggregate function used for evaluation (e.g., "Plot Validity").
  3. Code: The programmatic rules that verify the output against the ground truth.
The DataSciBench pipeline for prompt collection, ground truth generation, and the TFC evaluation framework.

To handle the subjective nature of data visualization, the researchers implemented a VLM-as-a-judge strategy. They use a Vision-Language Model (such as GPT-4o-mini) to compare an LLM-generated plot against a ground-truth image, scoring it on criteria including data consistency, axis labels, graphical elements, legends, and layout. The ground truth itself is produced via a semi-automated pipeline that combines LLM-based self-consistency checks with rigorous expert human verification.

Dataset and Task Coverage

DataSciBench consists of 222 comprehensive prompts covering six typical data science tasks:

  • Data cleaning & preprocessing
  • Data exploration & statistics
  • Data visualization
  • Predictive modeling
  • Data mining & pattern recognition
  • Interpretability & report generation

These prompts are supported by 519 Ground Truths (GTs). The dataset was curated from real-world online platforms (CodeGeeX), existing code benchmarks (BigCodeBench), and original human-written scenarios designed to test edge cases and robustness.

Experimental Results and Analysis

The authors evaluated 23 different models, ranging from proprietary API-based models to open-source general and code-specific models.

Overall performance ranking of models on DataSciBench, showing the gap between API-based and open-access models.

Key Findings

  • API Dominance: Proprietary models like GPT-4o and GPT-4-Turbo significantly outperform open-source models across the board. GPT-4o achieved the highest overall score of 64.51%.
  • Open-Source Performance: Deepseek-Coder-33B-Instruct emerged as the top open-source model with a score of 56.76%, even surpassing some API-based models like o1-mini.
  • The Reasoning Trap: Interestingly, the o1-mini model, known for high-level logic, scored only 38.78%. This suggests that logical reasoning does not automatically translate to effective agentic behavior; o1-mini frequently failed on fine-grained instructions, such as exporting required files or correctly identifying column names.
  • Instruction Following as a Bottleneck: Most model failures were not due to a lack of domain knowledge but rather a failure to execute the plan correctly—missing sub-tasks in long prompts or failing to call the appropriate libraries.

Conclusion

DataSciBench highlights that while LLMs are proficient at generating code snippets, real-world data science requires a higher level of agentic precision and multi-modal understanding. The benchmark reveals that instruction following remains a primary bottleneck for current models. Future work will focus on developing specialized "critic models" for more granular feedback and expanding the benchmark to include more diverse data formats beyond standard CSV and Excel files, pushing LLM agents toward true autonomy in scientific discovery.

Summary updated

BibTeX
@inproceedings{zhang2026datascibench,
  author = {Dan Zhang and Sining Zhoubian and Min Cai and Fengzu Li and Lekang Yang and Wei Wang and Tianjiao Dong and Ziniu Hu and Jie Tang and Yisong Yue},
  title = {{DataSciBench: An LLM Agent Benchmark for Data Science}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.181},
}
Figure