[Paper Review] Data Interpreter: An LLM Agent For Data Science
Data Interpreter is an LLM-based agent that models data science workflows as hierarchical graphs with programmable node generation, enabling end-to-end, dynamic task solving and improved performance on multiple benchmarks.
Large Language Model (LLM)-based agents have shown effectiveness across many applications. However, their use in data science scenarios requiring solving long-term interconnected tasks, dynamic data adjustments and domain expertise remains challenging. Previous approaches primarily focus on individual tasks, making it difficult to assess the complete data science workflow. Moreover, they struggle to handle real-time changes in intermediate data and fail to adapt dynamically to evolving task dependencies inherent to data science problems. In this paper, we present Data Interpreter, an LLM-based agent designed to automatically solve various data science problems end-to-end. Our Data Interpreter incorporates two key modules: 1) Hierarchical Graph Modeling, which breaks down complex problems into manageable subproblems, enabling dynamic node generation and graph optimization; and 2) Programmable Node Generation, a technique that refines and verifies each subproblem to iteratively improve code generation results and robustness. Extensive experiments consistently demonstrate the superiority of Data Interpreter. On InfiAgent-DABench, it achieves a 25% performance boost, raising accuracy from 75.9% to 94.9%. For machine learning and open-ended tasks, it improves performance from 88% to 95%, and from 60% to 97%, respectively. Moreover, on the MATH dataset, Data Interpreter achieves remarkable performance with a 26% improvement compared to state-of-the-art baselines. The code is available at https://github.com/geekan/MetaGPT.
Motivation & Objective
- Reframe data science workflows as a hierarchical graph model to manage long-term, interdependent tasks.
- Develop a programmable node generation mechanism to refine and verify subproblems and code in real time.
- Enable dynamic task graph optimization and iterative execution to adapt to data and task changes.
- Demonstrate end-to-end data science problem solving across diverse benchmarks.
- Show robustness and performance gains over existing open-source frameworks in data analysis and ML tasks.
Proposed method
- Represent data science problems as a DAG where nodes are subprocesses and edges capture dependencies.
- Use a task graph generator to produce task-level graphs from project requirements.
- Use an action graph generator to convert tasks into executable code snippets that may integrate tools.
- Employ a stateful graph executor with reflection to run and debug action graphs, refining them upon runtime feedback.
- Iteratively refine the task graph (IGR) and employ programmable node generation (PNG) to improve robustness and adaptability.
- Rank and select tools based on task metadata and integrate them into generated code for context-aware execution.
Experimental results
Research questions
- RQ1How can data science workflows be effectively decomposed into hierarchical graphs to capture interdependencies and enable dynamic planning?
- RQ2Does the hierarchical graph approach improve end-to-end performance on data-science benchmarks compared to static or single-task LLM systems?
- RQ3What is the impact of iterative graph refinement (IGR) on task success rates and efficiency?
- RQ4How does programmable node generation (PNG) influence robustness and accuracy of generated data-science code?
- RQ5How does dynamic tool selection and integration affect task outcomes across diverse data-science tasks?
Key findings
- Data Interpreter achieved a 25% performance boost on InfiAgent-DABench (accuracy increased from 75.9% to 94.9%).
- On the MATH dataset, the method showed a 26% improvement over state-of-the-art baselines.
- Across ML-Benchmark tasks, Data Interpreter scored 0.95 (comprehensive score) and outperformed several baselines in multiple tasks.
- Open-ended task benchmarks showed high completion rates, with Data Interpreter achieving 0.97 completion on average.
- Ablation studies show iterative graph refinement and programmable node generation substantially improve performance (0.96–0.95 comprehensive scores with PNG/IGR).
- Using longer-context LLMs (e.g., gpt-4o) amplified gains, with Data Interpreter surpassing direct LLM inference in multi-step reasoning scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.