TL;DR
DataSciBench is a new, rigorous benchmark designed to evaluate how well Large Language Models (LLMs) function as end-to-end data science agents. By moving beyond simple code snippets to complex, multi-step workflows—and introducing a "Vision-Language Model (VLM)-as-a-judge" for visualizations—it reveals that while models like GPT-4o lead the pack, even the best AI still struggles with the fine-grained precision required for real-world data analysis.
What Problem Does This Paper Address?
Evaluating 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 messy and multi-modal. It involves a chain of reasoning: cleaning a specific dataset, performing exploratory statistics, generating a plot, and then building a predictive model.
The authors identify a major gap: current benchmarks don't capture these complex dependencies, nor do they have robust ways to evaluate "uncertain" outputs like the quality of a generated chart or the interpretability of a report. DataSciBench aims to bridge this gap by providing a framework that treats data science as a holistic process rather than a series of independent puzzles.
Methods
The core innovation of DataSciBench is the Task-Function-Code (TFC) framework. Instead of just checking if code runs, the framework breaks a prompt down into:
- Task: The high-level objective (e.g., "Data Visualization").
- Function: The specific metric or aggregate function used for evaluation (e.g., "Plot Validity").
- Code: The programmatic rules that verify the output.
To handle the subjective nature of data visualization, the researchers implemented a VLM-as-a-judge strategy. They use a Vision-Language Model (like GPT-4o-mini) to compare an LLM-generated plot against a ground-truth image, scoring it on five criteria: data consistency, axis labels, graphical elements, legends, and layout.
Furthermore, the authors developed a semi-automated pipeline to generate high-quality Ground Truths (GTs). This involves an LLM generating initial solutions, followed by a "self-consistency" check and rigorous human verification by experts to ensure the benchmark remains a "gold standard."
Datasets
DataSciBench consists of:
- 222 comprehensive prompts covering six typical data science tasks: cleaning/preprocessing, exploration/statistics, visualization, predictive modeling, mining/pattern recognition, and interpretability/reporting.
- 519 Ground Truths (GTs) used for evaluation.
- Sources: Prompts were curated from real-world online platforms (CodeGeeX), existing code benchmarks (BigCodeBench), and original human-written scenarios designed to test edge cases and robustness.
Key Insights and Ideas
- The "Reasoning" Trap: One of the most surprising findings involved the o1-mini model. While it is renowned for its high-level reasoning and logic, it performed poorly on DataSciBench (scoring only 38.78%). The "aha moment" here is that being good at logic doesn't equal being a good agent; o1-mini often forgot to export required files or hallucinated column names, failing the "fine-grained instruction following" necessary for data science.
- The Size Paradox: In the open-source world, bigger isn't always better. CodeLlama-34B actually performed worse than its 7B and 13B counterparts. The authors suggest that larger models might be more prone to over-relying on their training data, making them less flexible when faced with the specific formatting requirements of a new benchmark.
- API Dominance: Proprietary models (GPT-4o, GPT-4-Turbo) still significantly outperform open-source models across the board, particularly in complex tasks like visualization and predictive modeling.
- Instruction Following is the Bottleneck: Most failures weren't due to a lack of "knowledge," but rather a failure to execute a plan. Models often failed to call the right libraries or missed a specific sub-task mentioned in a long prompt.
Key Results
The authors evaluated 23 different models.
- Top Performer: GPT-4o achieved the highest overall score of 64.51%, showing a nearly 10% lead over GPT-4-Turbo.
- Open-Source Champion: Deepseek-Coder-33B-Instruct was the highest-scoring open-source model at 56.76%, even outperforming some API-based models like o1-mini.
- Task Difficulty: Data visualization and "hard" level prompts remains the most significant challenge for all models, with completion rates dropping sharply as the number of required sub-tasks increases.
Limitations and Future Work
The authors acknowledge that their VLM-as-a-judge approach, while innovative, may still lack the absolute precision of a human expert. They suggest that future work should focus on training specialized "critic models" to provide even more granular feedback on data science outputs.
Additionally, they note that as LLMs continue to evolve, benchmarks must become even more "natural" and "challenging" to prevent models from simply memorizing common coding patterns. They plan to expand the benchmark to include more diverse data formats beyond CSVs and Excels, pushing LLM agents toward true autonomy in scientific discovery.
Summary updated