TL;DR
While raw Large Language Models (LLMs) struggle with hallucinations, brittle code, and context drift over multi-step tasks, autonomous agent architectures are turning them into capable practitioners. This survey introduces a dual-perspective framework bridging agent engineering (roles, execution structures, external knowledge, and reflection) with the iterative data science lifecycle (preprocessing, feature engineering, modeling, evaluation, and visualization). It systematically analyzes current systems, synthesizes benchmark landscapes, and charts key avenues for building reliable, end-to-end data science agents.
What Problem Does This Paper Address?
End-to-end data science is inherently iterative and long-horizon, requiring complex decision-making, hypothesis generation, and robust code execution. Standard LLMs fail when applied directly to such workflows due to three core structural limitations:
- Hallucination: Fabricating schema names, statistical metrics, or pipeline steps.
- Code brittleness: Generating code that sounds logically plausible in natural language but breaks during execution due to runtime errors, missing dependencies, or type mismatches.
- Context degradation: Losing track of goals and early assumptions over extended, multi-step analytical pipelines.
The survey explores how agentic architectures—incorporating modular division of labor, dynamic planning, external tools/knowledge, and systematic self-reflection—can bridge this gap and automate real-world data science workflows.
Methods
The authors structure the survey around a dual-perspective framework:
1. The Agent Design Perspective
- Agent Roles: Spans Single-Agent (e.g., ReAct loops), Two-Agent systems (Planner–Executor, Coder–Reviewer), Multi-Agent designs (Software Engineering teams, atomic/minimum-function agents, client-server models), and Dynamic Agents (agents generated dynamically via hierarchies or iterative feedback loops like EvoMAC).
- Execution Strategies: Contrasts Static Workflows (rigid, predefined sequential stages) with Dynamic Execution (just-in-time planning, plan-then-execute, and hierarchical search like Monte Carlo Tree Search).
- External Knowledge Integration: Augmenting parametric memory via structured databases, Retrieval-Augmented Generation (RAG / BM25 / LlamaIndex), and dynamic API/web-search calls.
- Reflection Mechanisms: Self-correction analyzed along three dimensions:
- Drivers: Feedback-driven (peer critique, human-in-the-loop) vs. Goal-driven (model metrics, loss minimization).
- Levels: Local (debugging isolated code/unit tests) vs. Global (state checkpointing, history window inspection).
- Adaptability: Structured (fixed metric thresholds) vs. Adaptive (dynamic prompt and strategy adjustment).
2. The Data Science Perspective
Maps agent capabilities directly across the iterative Data Science Loop: data preprocessing, statistical computation, feature engineering, model training/NAS, evaluation, and visualization.
┌─────────────────┐ ┌─────────────────┐
│ Data Preprocess │ ----> │ Statistical │
│ & Cleaning │ │ Computation │
└─────────────────┘ └─────────────────┘
│ │
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ Visualization │ <---- │ Model Training │
│ & Storytelling │ │ & Evaluation │
└─────────────────┘ └─────────────────┘
Datasets
As a survey, this paper does not introduce a novel benchmark dataset; instead, it compiles and critiques over 25 existing data science and machine learning agent benchmarks, categorized by scope:
- General Data Science & ML: ML-Bench, DSBench, MLE-Bench, InfiAgent-DABench, DSEval, DataSciBench, and DS-1000.
- Workflow & Task-Specific: MatPlotAgent-Bench (visualization), Spider2-V (multimodal data engineering), and FeatEng (feature engineering).
- Domain-Specific: GeoAgent-Bench (geospatial), GenoTEX and BioDSBench (genomics and clinical), and FoodPuzzle (flavor science).
- Enterprise & Software Automation: TheAgentCompany, DevBench, and SWE-bench Lite.
Key Insights and Ideas
- Data Science Requires Metric-Driven, Not Just Code-Driven, Reflection: Unlike traditional software engineering agents that iterate primarily on syntax errors or unit test passes, data science agents require quantitative feedback loops driven by task metrics (e.g., F1 score, validation loss, silhouette scores) and visual inspection (e.g., using vision models as visual reviewers).
- Dynamic Agents Bring Flexibility at the Cost of Reproducibility: Dynamically spawning agents at runtime provides strong adaptability to evolving task requirements, but exacerbates LLM non-determinism, increases token cost/latency, and weakens production reliability.
- Current Benchmarks Have Misleading Blind Spots: Most benchmarks test isolated, single-step tasks with clean, formatted inputs. They fail to assess how agents handle messy real-world data (corrupt distributions, irregular schemas) or how minor upstream errors cascade across multi-step pipelines.
Key Results
- Empirical Progress Over Time: The paper highlights state-of-the-art trajectories across key benchmarks:
- InfiAgent-DABench: Accuracy increased from ~80% (initial GPT-4 baselines in early 2024) to >95% with systems like Data Interpreter (GPT-4o) and PharmaData-Agent (GPT-4.1).
- DS-Bench: Relative Performance Gap (RPG) progressed from ~0.35 (AutoGen) to ~0.55 (DatawiseAgent).
- SWE-bench Lite: Resolved issue rate improved from ~20% (SWE-Agent) to nearly 70% (Refact.AI combining Claude 3.7 Sonnet and o4-mini).
Limitations and Future Work
The authors highlight three fundamental limitations of current data science agents, outlining future research opportunities:
- Data-Centric Diagnostics: Existing reflection modules only inspect code syntax and execution logs, remaining blind to silent data corruptions, schema misalignments, and distribution shifts. Agents need native data-quality auditing modules.
- Uncertainty-Aware Planning: Agents currently treat low-confidence decisions with the same operational commitment as certain ones. Incorporating calibrated uncertainty would allow agents to pause, branch candidate workflows, or solicit human guidance when ambiguous data/instructions arise.
- Pipeline-Level Reflection: Moving beyond local, step-by-step function debugging to holistic, DAG-level workflow reflection capable of attributing downstream model degradation to upstream data preprocessing errors.
Summary updated