DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models

Yiming Huang, Jianwen Luo, Yan Yu, Yitong Zhang, Fangyu Lei +6 more
10/9/2024
cs.CLcs.AI

No official code found. Best implementation: yiyihum/da-code (105 stars, MIT, last commit 2026-01-12).

Abstract

We introduce DA-Code, a code generation benchmark specifically designed to assess LLMs on agent-based data science tasks. This benchmark features three core elements: First, the tasks within DA-Code are inherently challenging, setting them apart from traditional code generation tasks and demanding advanced coding skills in grounding and planning. Second, examples in DA-Code are all based on real and diverse data, covering a wide range of complex data wrangling and analytics tasks. Third, to solve the tasks, the models must utilize complex data science programming languages, to perform intricate data processing and derive the answers. We set up the benchmark in a controllable and executable environment that aligns with real-world data analysis scenarios and is scalable. The annotators meticulously design the evaluation suite to ensure the accuracy and robustness of the evaluation. We develop the DA-Agent baseline. Experiments show that although the baseline performs better than other existing frameworks, using the current best LLMs achieves only 30.5% accuracy, leaving ample room for improvement. We release our benchmark at https://da-code-bench.github.io.

View on arXivView PDF

Code Implementations(1)

yiyihum/da-codeCommunity66%
MIT

[EMNLP 2024] DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models

10510TeX, PythonMay 29, 20249 months agoMIT

Similar Papers

Cite this paper

@article{huang2024dacode,
  title  = {DA-Code: Agent Data Science Code Generation Benchmark for Large Language Models},
  author = {Yiming Huang and Jianwen Luo and Yan Yu and Yitong Zhang and Fangyu Lei and Yifan Wei and Shizhu He and Lifu Huang and Xiao Liu and Jun Zhao and Kang Liu},
  year   = {2024},
  eprint = {2410.07331},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07331v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.07331.svg)](https://codeofpaper.com/paper/2410.07331)

Discussion