arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17453cs.LG
收藏

DS-Agent:通过赋予大型语言模型基于案例的推理能力实现自动化数据科学

DS-Agent: Automated Data Science by Empowering Large Language Models with Case-Based Reasoning

School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Engineering Research Center of Knowledge-Driven Human-Machine Intelligence, Jilin University(吉林大学知识驱动人机智能工程研究中心);International Center of Future Science, Jilin University(吉林大学未来科学国际合作联合实验室);Shanghai Jiao Tong University(上海交通大学);University College London(伦敦大学学院)

Siyuan Guo, Cheng Deng, Ying Wen, Hechang Chen, Yi Chang, Jun Wang

AI总结:

DS-Agent利用基于案例的推理框架,使LLM智能体自动化数据科学流程,在开发阶段实现100%成功率,部署阶段提升36%一次通过率,并降低成本。

摘要:

在这项工作中,我们研究了基于大型语言模型(LLM)的智能体在自动化数据科学任务方面的潜力,目标是理解任务需求,然后构建并训练最合适的机器学习模型。尽管取得了广泛的成功,现有的LLM智能体在此场景中因生成不合理的实验计划而受到阻碍。为此,我们提出了DS-Agent,一种新颖的自动框架,利用LLM智能体和基于案例的推理(CBR)。在开发阶段,DS-Agent遵循CBR框架构建自动迭代流程,能够灵活利用来自Kaggle的专家知识,并通过反馈机制促进性能的持续提升。此外,DS-Agent实现了一个低资源部署阶段,采用简化的CBR范式,将开发阶段的过往成功解决方案适配为直接代码生成,显著降低了对LLM基础能力的需求。实证上,使用GPT-4的DS-Agent在开发阶段实现了100%的成功率,同时在部署阶段,跨替代LLM的平均一次通过率提升了36%。在两个阶段中,DS-Agent均取得了最佳性能排名,使用GPT-4每次运行的成本分别为1.60美元和0.13美元。我们的数据和代码已开源,网址为https://github.com/guosyjlu/DS-Agent。

英文摘要:

In this work, we investigate the potential of large language models (LLMs) based agents to automate data science tasks, with the goal of comprehending task requirements, then building and training the best-fit machine learning models. Despite their widespread success, existing LLM agents are hindered by generating unreasonable experiment plans within this scenario. To this end, we present DS-Agent, a novel automatic framework that harnesses LLM agent and case-based reasoning (CBR). In the development stage, DS-Agent follows the CBR framework to structure an automatic iteration pipeline, which can flexibly capitalize on the expert knowledge from Kaggle, and facilitate consistent performance improvement through the feedback mechanism. Moreover, DS-Agent implements a low-resource deployment stage with a simplified CBR paradigm to adapt past successful solutions from the development stage for direct code generation, significantly reducing the demand on foundational capabilities of LLMs. Empirically, DS-Agent with GPT-4 achieves 100\% success rate in the development stage, while attaining 36\% improvement on average one pass rate across alternative LLMs in the deployment stage. In both stages, DS-Agent achieves the best rank in performance, costing \$1.60 and \$0.13 per run with GPT-4, respectively. Our data and code are open-sourced at https://github.com/guosyjlu/DS-Agent.

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

↑