UCL Discovery
UCL home » Library Services » Electronic resources » UCL Discovery

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

Guo, S; Deng, C; Wen, Y; Chen, H; Chang, Y; Wang, J; (2024) DS-Agent: Automated Data Science by Empowering Large Language Models with Case-Based Reasoning. In: ICML'24: Proceedings of the 41st International Conference on Machine Learning. (pp. pp. 16813-16848). Association for Computing Machinery Green open access

[thumbnail of Wang_Automated Data Science by Empowering Large Language Models with Case-Based Reasoning_VoR.pdf]
Preview
Text
Wang_Automated Data Science by Empowering Large Language Models with Case-Based Reasoning_VoR.pdf

Download (800kB) | Preview

Abstract

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.

Type: Proceedings paper
Title: DS-Agent: Automated Data Science by Empowering Large Language Models with Case-Based Reasoning
Event: 41st International Conference on Machine Learning
Open access status: An open access version is available from UCL Discovery
Publisher version: https://proceedings.mlr.press/v235/guo24b.html
Language: English
Additional information: Copyright 2024 by the author(s). Original content in this paper is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0).
UCL classification: UCL
UCL > Provost and Vice Provost Offices > UCL BEAMS
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Computer Science
URI: https://discovery.ucl.ac.uk/id/eprint/10206800
Downloads since deposit
23Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item