Preprint · 2024

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

Yiming Huang, Jianwen Luo, Yan Yu, Yitong Zhang, Fangyu Lei, Yifan Wei, Shizhu He, Lifu Huang, Xiao Liu, Jun Zhao, Kang Liu

VenuearXiv
DOI10.48550/arXiv.2410.07331
URLhttp://arxiv.org/abs/2410.07331
TopicsReplicHAI / Agent Evals / 03 ML & research engineering
TagsComputer Science - Artificial Intelligence, Computer Science - Computation and Language
archiveIDarXiv:2410.07331
extraarXiv:2410.07331 [cs.CL]
libraryCatalogarXiv.org
shortTitleDA-Code

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.

BibTeX

@misc{huang_da-code_2024,
	title = {{DA}-{Code}: {Agent} {Data} {Science} {Code} {Generation} {Benchmark} for {Large} {Language} {Models}},
	shorttitle = {{DA}-{Code}},
	url = {http://arxiv.org/abs/2410.07331},
	doi = {10.48550/arXiv.2410.07331},
	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.},
	urldate = {2026-11-06},
	publisher = {arXiv},
	author = {Huang, Yiming and Luo, Jianwen and Yu, Yan and Zhang, Yitong and Lei, Fangyu and Wei, Yifan and He, Shizhu and Huang, Lifu and Liu, Xiao and Zhao, Jun and Liu, Kang},
	month = oct,
	year = {2024},
	note = {arXiv:2410.07331 [cs.CL]},
	keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language},
}