DeepAnalyze: Agentic Large Language Models for Autonomous Data Science

DeepAnalyze-8B is an innovative 8B-parameter agentic LLM that automates the full data science pipeline, from raw data to deep research reports, using curriculum-based training and trajectory synthesis to outperform larger proprietary models.

DeepAnalyze: Autonomous Data Science Through Agentic Large Language Models

DeepAnalyze-8B represents a breakthrough in autonomous data science, introducing the first agentic large language model capable of executing complete data science pipelines without human intervention. This 8-billion parameter model transforms raw data into analyst-grade research reports through curriculum-based training and trajectory synthesis.

The Challenge of Autonomous Data Science

Traditional approaches to automated data science fall into two categories, both with significant limitations. Domain-specific LLMs handle individual tasks like code generation or table analysis but lack the orchestration capabilities needed for complex workflows. Workflow-based agents rely on predefined procedures and manual rules, constraining their adaptability to novel scenarios.

The core challenge lies in developing systems with two critical capabilities: autonomous orchestration to coordinate interdependent actions, and adaptive optimization to refine strategies based on environmental feedback. These requirements become particularly demanding in data science, where tasks span data preparation, analysis, modeling, visualization, and insight generation.

Architecture and Interaction Design

DeepAnalyze extends traditional language model capabilities through five specialized actions that enable direct interaction with data environments:

  • Analyze: Performs textual reasoning, planning, and reflection
  • Understand: Processes structured data from databases, tables, and documents
  • Code: Generates Python code for data manipulation and analysis
  • Execute: Runs code and collects environmental feedback
  • Answer: Produces final outputs and reports

This architecture eliminates dependence on external orchestration frameworks. The model autonomously switches between actions by generating special tokens, creating a seamless interaction loop with the data environment. Unlike previous systems that convert all structured data to text, DeepAnalyze actively explores data sources as needed, mimicking how human data scientists work with large datasets.

Curriculum-Based Agentic Training

The training methodology addresses two fundamental challenges in agentic learning: reward sparsity and trajectory scarcity. Data science tasks require multiple integrated capabilities, making it difficult for foundation models to achieve early success and receive positive reinforcement signals.

Two-Stage Training Process

Stage 1: Single-Ability Fine-Tuning The model first develops individual capabilities through supervised learning on reasoning, structured data understanding, and code generation tasks. This stage mirrors how human data scientists acquire specialized skills before tackling complex projects.

Stage 2: Multi-Ability Agentic Training Building on established foundations, the model learns to orchestrate multiple abilities through reinforcement learning in real-world environments. The training uses Group Relative Policy Optimization (GRPO) with hybrid reward modeling that combines rule-based accuracy checks with LLM-based quality assessments.

Hybrid Reward System

For tasks with reference answers, rewards combine accuracy and interaction quality. For open-ended research, the system evaluates report quality across five dimensions: usefulness, richness, soundness, interpretability, and readability. This approach encourages both correct results and high-quality research processes.

Data-Grounded Trajectory Synthesis

The scarcity of high-quality interaction trajectories in data science necessitated a novel data synthesis framework with two components:

Reasoning Trajectory Synthesis enhances existing instruction datasets by extracting reasoning processes from advanced models, then refining them through keyword-guided improvements. This technique strengthens the model’s focus on structured data by incorporating reasoning keywords like “Let’s examine the data more closely” or “What patterns emerge from the table?”

Interaction Trajectory Synthesis employs a multi-agent system with questioner, solver, and inspector roles to generate complete data science workflows. The questioner formulates problems based on available data sources, the solver demonstrates solution processes, and the inspector validates trajectory quality through detailed checklists covering both interaction patterns and environmental changes.

Performance and Capabilities

DeepAnalyze-8B demonstrates remarkable performance across 12 benchmarks, often surpassing much larger proprietary models. On DataSciBench, which evaluates end-to-end data science capabilities, the model achieves state-of-the-art results among open-source systems and outperforms GPT-4-Turbo, GPT-4o-mini, and Claude 3.5 Sonnet.

Specialized Task Performance

The model excels across diverse data science applications:

  • Statistical Analysis: Outperforms workflow-based agents on DSBench data analysis tasks
  • Machine Learning: Achieves 90.6% success rate on modeling tasks, comparable to AutoGen workflows using advanced proprietary models
  • Code Generation: Surpasses GPT-4-Turbo on DS-1000 across seven Python libraries
  • Structured Data Understanding: Exceeds previous state-of-the-art on TableQA benchmarks

Open-Ended Research Capabilities

Perhaps most significantly, DeepAnalyze-8B handles fully autonomous data research through the newly introduced DABStep-Research benchmark. The model consistently outperforms proprietary systems across five research categories: data preparation, analysis, insight extraction, constrained report generation, and open-ended investigation.

Unlike workflow-based systems that struggle without explicit guidance, DeepAnalyze maintains strong performance on unconstrained research tasks. The model generates analyst-grade reports with proper academic formatting, demonstrating capabilities that extend beyond technical analysis to professional communication.

Technical Innovations

The research introduces several methodological advances:

Curriculum Learning for Complex Tasks: The progressive training approach proves essential for tasks requiring multiple integrated capabilities, showing clear advantages over single-stage training methods.

Environment-Grounded Learning: Training in real data environments enables adaptive optimization that surpasses manually designed workflows.

Quality-Aware Trajectory Synthesis: The multi-agent synthesis framework with environmental validation produces higher-quality training data than traditional distillation approaches.

Implications and Future Directions

DeepAnalyze represents a paradigm shift from workflow-based agents to trainable agentic models in data science. The approach demonstrates that relatively compact models can achieve sophisticated autonomous capabilities through appropriate training methodologies.

The model’s open-source availability, including the complete DataScience-Instruct-500K training dataset, enables broader research into autonomous data systems. This foundation supports development of specialized applications in data discovery, governance, and management.

Future work may extend these principles to other domains requiring multi-step reasoning and environmental interaction. The curriculum-based training approach and trajectory synthesis framework provide templates for developing agentic capabilities in complex, multi-faceted domains.

DeepAnalyze-8B establishes autonomous data science as a practical reality, moving beyond proof-of-concept demonstrations to production-ready capabilities that can transform how organizations extract insights from data.