arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.07331cs.CLcs.AI
收藏

DA-Code:面向大语言模型的智能体数据科学代码生成基准

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

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

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

AI总结:

本文提出了DA-Code,一个专门评估大语言模型在基于智能体的数据科学任务上代码生成能力的基准,包含具有挑战性的任务、真实多样的数据和复杂的数据科学编程语言要求,并开发了DA-Agent基线,发现当前最佳LLM仅达30.5%准确率,仍有很大改进空间。

摘要:

我们推出了DA-Code,这是一个专门设计用于在基于智能体的数据科学任务上评估LLM的代码生成基准。该基准具有三个核心要素:首先,DA-Code中的任务本身具有挑战性,使其有别于传统的代码生成任务,并要求具备高级的grounding和规划编码技能。其次,DA-Code中的示例均基于真实且多样的数据,涵盖了广泛的复杂数据整理与分析任务。第三,为了解决这些任务,模型必须利用复杂的数据科学编程语言,执行精细的数据处理并推导出答案。我们在一个可控且可执行的环境中建立了该基准,该环境与现实世界的数据分析场景相契合且具备可扩展性。标注者精心设计了评估套件,以确保评估的准确性和鲁棒性。我们开发了DA-Agent基线。实验表明,尽管该基线的表现优于其他现有框架,但使用当前最佳的LLM也仅能达到30.5%的准确率,仍有很大的改进空间。我们在https://da-code-bench.github.io发布了我们的基准。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑