atlas

Research map / Large language models / Agents, code and math

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

ICML 2024 · Large language models › Agents, code and math · approach: Agent instruction-following benchmarks · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DS-Agent, an LLM agent that applies case-based reasoning over Kaggle-derived human insight cases for an iterative development stage and a simplified retrieve-and-adapt deployment stage for automated machine learning pipelines.

Problem

LLM agents generate unreasonable experiment plans and fail to complete automated data science and ML model-building tasks reliably, and finetuning them is costly.

Approach

Integrates case-based reasoning into LLM agents: retrieves Kaggle-derived human insight cases, uses LLM-based ReviseRanker to reorder cases using execution feedback, and in deployment retrieves and adapts past successful solution code without iterative feedback, avoiding weight updates.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add CBR-based expert case retrieval and reuse (ablation)LLM agent for data science · Development tasks (12)average best rank: 3.41 -> 2.08Helped
add feedback-based case reranking (ablation)DS-Agent · Development tasks (12)average best rank: 2.58 -> 2.08Helped
adapt past successful solution cases instead of using textual human insights (ablation)DS-Agent deployment stage · Deployment tasksperformanceHelped
add retrieved example cases to the prompt (ablation)DS-Agent deployment stage · Deployment tasks (18)performanceHelped
increase the number of example cases in context beyond one (ablation)DS-Agent deployment stage · Deployment tasksperformanceHurt
use retrieved similar cases rather than a random example case (ablation)DS-Agent deployment stage · Deployment tasks (18)average mean rank: 28.0 -> 12.7Helped
use retrieved similar cases rather than a random example case (ablation)DS-Agent deployment stage · Deployment tasks (18)average mean rank: 35.0 -> 17.1Helped
use case-based code adaptation instead of zero-shot code generationMixtral-8x7b-Instruct · Deployment tasks (18)one-pass rate: 6% -> 31%Helped
use DS-Agent rather than AutoGluonGPT-4 data science model · wild-blueberry-yieldMAE: 305 -> 182Helped
use DS-Agent rather than AutoGluonGPT-4 data science model · spaceship-titanicaccuracy: 0.8044 -> 0.8062Helped
use DS-Agent rather than AutoGluonGPT-4 data science model · enzyme-substrateAUROC: 0.8683 -> 0.9761Helped
use DS-Agent rather than AutoGluonGPT-4 data science model · media-campaign-costRMLSE: 0.2707 -> 0.2858Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Kaggle competition technical reports and notebooks (12 competitions) 30 data science tasks (12 development, 18 deployment)

Benchmarks: DS-Agent 30-task suite (Kaggle and research datasets)

Metrics: success rate one pass rate mean rank best rank monetary cost

Baselines: ResearchAgent Zero-shot One-shot AutoGluon w/o ReviseRank w/o CBR

Builds on: Reflexion ResearchAgent retrieval-augmented generation case-based reasoning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy