Abstract
Large Language Models (LLMs) and Large Vision-Language Models (LVLMs) have demonstrated impressive language/vision reasoning abilities, igniting the recent trend of building agents for targeted applications such as shopping assistants or AI software engineers. Recently, many data science benchmarks have been proposed to investigate their performance in the data science domain. However, existing data science benchmarks still fall short when compared to real-world data science applications due to their simplified settings. To bridge this gap, we introduce DSBench, a comprehensive benchmark designed to evaluate data science agents with realistic tasks. This benchmark includes 466 data analysis tasks and 74 data modeling tasks, sourced from Eloquence and Kaggle competitions. DSBench offers a realistic setting by encompassing long contexts, multimodal task backgrounds, reasoning with large data files and multi-table structures, and performing end-to-end data modeling tasks. Our evaluation of state-of-the-art LLMs, LVLMs, and agents shows that they struggle with most tasks, with the best agent solving only 34.12% of data analysis tasks and achieving a 34.74% Relative Performance Gap (RPG). These findings underscore the need for further advancements in developing more practical, intelligent, and autonomous data science agents.
Introduction
While Large Language Models (LLMs) have become surprisingly good at writing snippets of Python code, being a "Data Science Expert" requires much more than syntax. Existing benchmarks often focus on "code completion"—filling in a few lines of a function based on a short, clean prompt. In the real world, data science is far more complex, involving long contexts, multimodal reasoning across charts and tables, and the management of interconnected multi-table structures. The authors argue that current benchmarks are too simplified to determine if an AI can actually function as a data science agent. DSBench was created to bridge this gap by providing tasks that mirror the scale and difficulty of professional competitions.
The DSBench Framework
DSBench introduces a comprehensive collection of 540 tasks sourced from two primary locations: ModelOff (466 financial modeling tasks) and Kaggle (74 data modeling tasks). These tasks are significantly more "long-form" than previous benchmarks; for instance, ModelOff tasks average nearly 800 words of background text.
The researchers developed a framework to evaluate both "vanilla" models and "agents" (models equipped with tools and iterative loops). To handle the inconsistency of metrics across different machine learning tasks, the authors introduced the Relative Performance Gap (RPG). This metric normalizes performance by comparing the agent's result against both a simple baseline and the score of a human expert, providing a clearer picture of how much "expert-level" ground the AI is actually covering.
Key Insights and Results
Evaluation of state-of-the-art models (including GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro) yielded several critical insights:
- The Context Barrier: Performance drops sharply as input length increases. On tasks with fewer than 500 tokens, the best models achieved ~74% accuracy; on tasks with over 20k tokens, that plummeted to ~13%.
- Agents vs. Vanilla Models: Equipping a model with a "loop" (like AutoGen) significantly improves performance over one-shot answers. The ability to self-debug and execute code is essential, yet even these agents are frequently tripped up by data misinterpretation.
- Reasoning over Syntax: Interestingly, failure is rarely about knowing a specific Python library; it is about the reasoning strategy. Models often fail because they choose the wrong formula or misinterpret what a specific data column represents.
Overall, the top-performing agent solved only 34.12% of data analysis tasks and achieved a 34.74% RPG in data modeling, highlighting a persistent gap between AI and human experts.
Conclusion
DSBench proves that while AI has learned the "language" of data science, it hasn't yet mastered the "science" of it. Future work must focus on better autonomous reasoning strategies, as current agents are too prone to hallucinating data structures or failing to identify relevant tables. Improving efficiency and long-context reasoning will be vital for developing truly autonomous data science agents.
Summary updated