Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

DSAgentBench: Can Agents Automate End-to-End Data-Science Workflows in Real Computer Environments?

arXiv:2608.103662026-08-10

AI agents were asked to run full data-science projects on a real computer, and even the best one only succeeded 57% of the time

DSAgentBench is a 275-task benchmark that tests whether AI agents can carry out an entire data-science workflow, from data acquisition to visualization and model evaluation, inside a real operating system using notebooks, IDEs, terminals, browsers, and databases. Testing 15 closed- and open-source models, the best performer, Claude-4.6-Sonnet, reached only 56.70% task success, while every open-source agent stayed below 1%. Human participants under the same setup reached 85.09%, exposing a large gap between current agents and real workflows.

METAL MEDIA explanatory visual

How DSAgentBench Evaluates Agents

Evidence statusMeasured results reported

  1. 1. Build a real desktop environmentExtended OSWorld on Ubuntu with VS Code, Jupyter Notebook, Chrome, Kaggle API, OpenML, and SQLite pre-installed
  2. 2. Design 275 tasksFour expert annotators spent three months creating and dual-verifying tasks from real Kaggle/OpenML/SQLite/GitHub data across six lifecycle stages
  3. 3. Agent perception-action loopThe agent views a screenshot (plus accessibility tree) and performs mouse/keyboard actions for up to 15 steps to complete the task
  4. 4. Deterministic scoringA script checks final outputs, not just code execution, such as numeric accuracy, chart labels/legends, and model performance
  5. 5. Compare resultsClaude-4.6-Sonnet scored 56.70% versus humans' 85.09%, while every open-source agent stayed below 1%, exposing the capability gap
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. Prior benchmarks mainly check whether generated code runs, not whether an agent can actually operate a computer (navigating files, switching tools, recovering from errors), so the authors extended the OSWorld desktop-control framework specifically for data science.
  2. Four expert annotators spent three months building and dual-verifying 275 tasks drawn from real datasets on Kaggle, OpenML, SQLite, and GitHub, spanning six stages: data acquisition, exploratory analysis, feature engineering, modeling, evaluation, and visualization.
  3. Agents perceive the desktop through screenshots and an accessibility tree (structured information about on-screen buttons and elements) and act with mouse and keyboard; a deterministic script then checks the actual outputs, such as correlation values, chart labels/legends, and model accuracy, rather than just whether code executed.
  4. Claude-4.6-Sonnet led with 56.70% success under the screenshot-plus-accessibility-tree setting, followed by GPT-5 at 29.81%; other closed models (GPT-4o, Gemini-2.5-Pro, GPT-5-mini) hovered around 20%, and all open-source agents stayed under 1%, while three human participants reached 85.09%.
  5. Raising the maximum allowed steps from 15 to 50 barely improved success rate (24.54% to 25.81%), indicating the bottleneck is not the number of attempts but the agents' underlying perception, planning, and reasoning ability.
Figure 1: Example agent workflow task in DSAgentBench, showing selected stages from a multi-step workflow: the agent retrieves data, executes code, and produces the final outputs. The illustrated trajectory is generated by GPT-4o.
Figure 1: Example agent workflow task in DSAgentBench, showing selected stages from a multi-step workflow: the agent retrieves data, executes code, and produces the final outputs. The illustrated trajectory is generated by GPT-4o.
Table 1: Comparison of DSAgentBench with existing benchmarks across unified agent and data-science capabilities. ✓ = Yes, ▲ = Partial, ✗ = No.
BenchmarkFull OS InteractionWeb Tools & BrowsersTerminal + GUI ControlCross-App UsageIntermediate StateControlled Exec EnvMultimodal SupportData-Science TasksVisualization EvaluationEnvironment Scalability
HumanEval chen2021evaluating
KRAMABench lai2025kramabenchcode
DS-1000 lai2023ds
DABStep egg2025dabstepcode
MLAgentBench huang2023mlagentbench
DSBench jing2024dsbench
DSEval zhang2024benchmarking
ARCADE yin2023natural
DA-CODE huang2024codecode
OSWORLD xie2024osworld
DSAgentBench (Ours)
Figure 3: Task category distribution in our benchmark, reflecting real-world data science practice.
Figure 3: Task category distribution in our benchmark, reflecting real-world data science practice.
Table 2: Key characteristics of DSAgentBench.
DimensionDistribution Breakdown
ComplexityHard: 47.6% | Medium: 46.9% | Easy: 5.5%
Stage TypeMulti-Stage: 56.7% | Single-Stage: 43.3%
ModalityTabular: 95.3% | Image: 3.6% | Text: 1.1%
SourceGitHub: 37.1% | Kaggle: 29.8% | OpenML: 18.9% | SQLite: 7.6% | Web: 6.5%
Tools UsedPython: 100.0% | VS Code: 81.1% | Jupyter Notebook: 18.9% | Chrome: 10.2%
Figure 4: DSAgentBench execution workflow: the agent perceives screenshots and the A11y tree, executes GUI-based actions, and is evaluated by a custom script.
Figure 4: DSAgentBench execution workflow: the agent perceives screenshots and the A11y tree, executes GUI-based actions, and is evaluated by a custom script.
Table 3: DSAgentBench accuracy (%) under two observation settings (Screenshot and Screenshot + A11y Tree) across data-science lifecycle tasks: Data Acquisition (DA), Exploratory Data Analysis (EDA), Feature Engineering (FE), Modeling, Visualization (Vis), and Evaluation (Eval). Results for open-source models are reported in Table 13.
ModelScreenshotScreenshot + A11y Tree
DAEDAFEModelVisEvalOverallDAEDAFEModelVisEvalOverall
GPT-4o0.0027.0624.2416.677.1433.3319.3413.0429.6635.1421.9515.628.3324.54
O4-mini4.351.682.700.003.030.001.820.004.205.410.000.000.002.55
GPT-5-mini8.7017.2825.003.5721.430.0015.204.5524.1427.037.5021.880.0019.03
GPT-517.3927.4127.0326.839.0916.6723.6326.0833.4429.7232.2215.1533.3329.81
Gemini-2.5-Pro4.5517.8616.1317.2410.7116.6714.494.3522.7833.3314.8130.770.0020.81
OpenAI CUA0.0010.5912.500.0014.290.008.134.359.526.062.866.670.006.61
Claude-4-Sonnet0.007.464.170.003.850.004.550.004.860.001.0011.110.004.64
Claude-4.5-Sonnet4.764.170.003.453.230.003.178.3312.3112.504.554.170.009.21
Claude-4.6-Sonnet43.4857.9851.3541.4639.3950.0050.5547.8264.8856.7546.3442.4266.6756.70
Human Performance73.9190.7691.8973.1778.7983.3385.0973.9190.7691.8973.1778.7983.3385.09
Figure 5: Example environments in DSAgentBench: agent interaction across data-science environments, demonstrating autonomous coordination of file systems, databases, notebooks, IDEs, visualization, execution, debugging, and web-based data retrieval.
Figure 5: Example environments in DSAgentBench: agent interaction across data-science environments, demonstrating autonomous coordination of file systems, databases, notebooks, IDEs, visualization, execution, debugging, and web-based data retrieval.
Table 4: DSAgentBench accuracy (%) across stage type, task complexity, and tool usage under different settings.
ModelScreenshotScreenshot + A11y Tree
SingleMultiEasyMediumHardVS CodeJupyterSingleMultiEasyMediumHardVS CodeJupyter
GPT-4o26.9713.5238.4624.7411.7914.6939.2235.5916.1346.6734.3812.3123.8727.45
O4-mini4.200.0020.001.550.001.791.925.040.6413.333.880.002.691.92
GPT-5-mini24.718.0038.4624.479.4115.2311.0031.039.8766.6727.205.4714.6838.00
GPT-527.7320.5153.3327.1316.7925.1017.3039.4922.4366.6732.5522.8927.3540.38
Gemini-2.5-Pro19.1210.9246.1515.629.1817.312.4032.1012.9353.8528.749.2817.4531.25
OpenAI CUA13.644.0023.0813.401.209.492.3010.683.6015.3810.431.845.2112.60
Claude-4-Sonnet6.672.938.334.654.005.600.008.062.1025.006.330.644.863.70
Claude-4.5-Sonnet3.163.1716.673.511.054.140.0014.494.8236.3610.003.288.7410.20
Claude-4.6-Sonnet59.6643.6073.3355.0443.5254.0135.7163.8651.2486.6860.6249.4156.9255.77
Figure 6: Example of error that occured with the model OpenAI CUA.
Figure 6: Example of error that occured with the model OpenAI CUA.
Table 5: Lifecycle grouping based on DS-World task category hierarchy.
CategoryLifecycle / Macro Group
Data Loading and Multi-Table JoiningData Acquisition
Web Data ScrapingData Acquisition
Summary StatisticsEDA
Data Cleaning and Missing-Value HandlingEDA
Data Filtering and Conditional QueriesEDA
Correlation and Relationship AnalysisEDA
Grouping and AggregationEDA
Outlier DetectionEDA
Feature Engineering and TransformationFeature Engineering
Dimensionality ReductionFeature Engineering
Standardization and NormalizationFeature Engineering
Feature Importance and InterpretabilityFeature Engineering
ClassificationModeling
RegressionModeling
ClusteringModeling
Ensemble MethodsModeling
Imbalanced Data HandlingModeling
Model Validation and EvaluationEvaluation and Deployment
Hyperparameter TuningEvaluation and Deployment
Statistical TestingEvaluation and Deployment
Visualization and Chart GenerationVisualization and Reporting
Data Export and ReportingVisualization and Reporting
Figure 7: Example of error that occured with the model Jedi-3B.
Figure 7: Example of error that occured with the model Jedi-3B.
Table 6: Representative simplified Example Tasks in DSAgentBench by Category
Task Category# TasksExample Task
Data Acquisition23Open the database, inspect the available tables and relevant columns, identify the customer ID and transaction fields, merge the required records, compute total and average transaction amounts per customer, calculate a risk score, and save the aggregated results to an output file.
Exploratory Data Analysis119Inspect a SQLite database schema, identify meal- and workout-related fields, join the relevant tables, compute an efficiency index, rank workout categories, and save the top five results to a CSV file.
Feature Engineering37Load a diabetes dataset, create a new insulin resistance feature, handle missing or zero values using median imputation, compute correlation with insulin levels, group results by outcome, and save summary statistics to output files.
Modeling41Load and merge multiple retail datasets by store and date, train multiple regression models to predict weekly sales, stack them using a meta-learner, perform cross-validation, and save the average error metric to a summary file.
Evaluation and Deployment12Perform multi-stage hyperparameter tuning for a gradient boosting model using cross-validation, select the best configuration based on error metrics, and save the final model parameters and performance results.
Visualization and Reporting33Analyze the relationship between body mass index, glucose level, and age with diabetes outcome, generate and inspect interactive visualizations, and create a PowerPoint report summarizing the key findings with appropriate charts, labels, and legends..
Figure 8: Example of error that occured with the model Jedi-8B.
Figure 8: Example of error that occured with the model Jedi-8B.
Table 7: Canonical agent prompt templates used under different observation modalities. One representative prompt is shown per setting; other variants differ only in minor wording or formatting.
Observation ModalityOutput FormatPrompt Description
Screenshot-onlyCode / ActionThe agent receives a full-resolution screenshot of the desktop at each step and predicts grounded mouse and keyboard actions based solely on visual information. Interaction is coordinate-based, without access to image matching or additional screenshots. At each step, the agent must return either executable actions or a control token (WAIT, FAIL, DONE).
Screenshot + A11y TreeCode / ActionThe agent jointly observes both the screenshot and the accessibility tree extracted via AT-SPI, enabling alignment between visual context and structured UI metadata. This hybrid prompt improves grounding precision and interaction robustness and is used for all main experiments unless stated otherwise.
Figure 9: Example of error that occured with the model UI-Tars-1.5-7B.
Figure 9: Example of error that occured with the model UI-Tars-1.5-7B.
Table 8: Unified action space listing specific commands and their functions.
Action CategoryDescription
Mouse ActionsHandles spatial interactions including absolute cursor movement (MOVE_TO, DRAG_TO), scrolling (SCROLL), and button operations (CLICK, RIGHT_CLICK, DOUBLE_CLICK, MOUSE_DOWN, MOUSE_UP).
Keyboard ActionsManages alphanumeric input via TYPING, discrete key presses (PRESS), simultaneous key combinations (HOTKEY), and raw key state manipulation (KEY_DOWN, KEY_UP).
Control ActionsSpecial meta-actions to pause execution (WAIT) or terminate the episode by signaling failure (FAIL) or success (DONE).
Table 9: Efficiency of successful runs measured by interaction steps.
ModelMean StepsMedian StepsStd
CUA15.00150.00
GPT-4.010.03157.63
Gemini-2.5-Pro6.7662.93
GPT-5-Mini7.3353.82
Claude-Sonnet-4.610.93123.04
Table 10: Root-cause failure analysis across models (%).
ModelGroundingTerminalCodeLogic
CUA94.442.780.462.31
GPT-4.080.005.6413.331.03
Gemini-2.5-Pro43.0836.1513.856.92
GPT-5-Mini56.927.6930.774.62
GPT-541.678.3338.3311.67
Claude-Sonnet-4.539.3223.0727.6010.00
Claude-Sonnet-4.632.779.2443.7014.29
GUI-OWL-7B97.091.091.450.36
UI-Tars-1.5-7B98.181.820.000.00
Jedi-7B81.896.697.094.33
Table 11: Ablation results for GPT-4o on DSAgentBench under different interaction step budgets.
Metric15 Steps30 Steps50 Steps
Task Success Rate (%)24.5425.4525.81
Average Score0.550.560.57
Table 12: Model-wise performance and trajectory behavior (normalized over 100 tasks per model for comparison). FF denotes the first failure step, i.e., the earliest step in the trajectory where an error is detected.
Model#TasksMean FF StepMedian FFEarly (%)Mid (%)Late (%)Budget Exhaustion (%)Recovery (%)
CUA6513.62153.413.4193.17100.00.0
GPT-4.01008.771541.543.5954.8793.851.54
Gemini-2.5-Pro1005.80642.0245.3812.6162.3119.23
GPT-5-Mini1005.92457.3819.6722.9563.083.08
GUI-OWL-7B5014.16152.914.0093.09100.00.0
UI-Tars-1.5-7B5014.40150.000.00100.00100.00.73
Jedi-7B5012.101511.0218.1170.8798.431.18
Table 13: DSAgentBench accuracy (%) across data-science lifecycle task types and overall performance under Screenshot settings (Open-Source Models).
ModelScreenshotScreenshot + A11y Tree
DAEDAFEModelVisEvalOverallDAEDAFEModelVisEvalOverall
Jedi-3B w/GPT4o0.000.000.000.000.000.000.00N/AN/AN/AN/AN/AN/AN/A
Jedi-7B w/GPT4o0.840.000.000.001.000.000.73N/AN/AN/AN/AN/AN/AN/A
UI-Tars-2B0.000.000.000.000.000.000.00N/AN/AN/AN/AN/AN/AN/A
UI-Tars-1.5-7B0.000.000.000.000.000.000.00N/AN/AN/AN/AN/AN/AN/A
GUI-OWL-7B0.000.000.000.000.000.000.00N/AN/AN/AN/AN/AN/AN/A
OpenCUA-72B4.350.910.000.000.000.000.73N/AN/AN/AN/AN/AN/AN/A
Table 14: Structure of a deterministic numerical evaluation function.
Evaluation StepDescription
Script ValidationConfirms that the required Python script exists and executes successfully.
Output VerificationVerifies that the expected output file (e.g., .txt or .csv) is generated.
Value ExtractionExtracts numeric values using robust parsing to avoid formatting artifacts.
Numerical MatchingCompares extracted values against ground-truth references using a small tolerance to account for floating-point variation.
ScoringAssigns partial credit for intermediate correctness and caps the final score at 1.0.
Table 15: DSAgentBench average score (%) across ds lifecycle task types and overall performance under Screenshot and Screenshot + Accessibility Tree observation settings.
ModelScreenshotScreenshot + A11y Tree
DAEDAFEModelVisEvalOverallDAEDAFEModelVisEvalOverall
Closed-Source Models
GPT4-o0.260.590.630.500.480.550.530.370.580.610.520.600.390.55
O4-mini0.280.270.350.310.370.160.300.260.370.420.370.420.310.37
GPT5-mini0.310.490.550.450.550.320.470.270.490.570.440.580.310.48
GPT50.550.600.620.610.580.470.590.650.670.630.660.670.400.65
Gemini-Pro-2.50.270.48.470.480.460.480.450.250.510.610.450.680.380.50
OpenAI CUA0.220.430.460.410.510.320.420.270.400.370.400.440.340.39
Claude-4-Sonnet0.220.370.370.390.370.270.350.240.370.350.390.450.170.36
Claude-4.5-Sonnet0.260.360.360.390.470.360.370.280.410.460.370.460.500.41
Claude-4.6-Sonnet0.680.720.700.740.750.710.720.640.800.770.760.750.720.76
Open-Source Models
Jedi-3B w/GPT4o0.220.310.300.340.350.310.31N/AN/AN/AN/AN/AN/AN/A
Jedi-7B w/GPT4o0.200.300.310.340.370.310.31N/AN/AN/AN/AN/AN/AN/A
UI-Tars-2B0.080.060.030.080.120.100.07N/AN/AN/AN/AN/AN/AN/A
UI-Tars-1.5-7B0.000.020.000.030.030.020.02N/AN/AN/AN/AN/AN/AN/A
GUI-OWL-7B0.030.050.080.040.010.080.05N/AN/AN/AN/AN/AN/AN/A
OpenCUA 72b0.100.090.090.090.180.060.10N/AN/AN/AN/AN/AN/AN/A
Table 16: Visualization quality evaluation description.
Evaluation StepDescription
Script ValidationEnsures that the visualization script exists and executes successfully.
Artifact VerificationConfirms that required visualization files are generated and non-empty.
Semantic ValidationUses a fixed evaluation prompt with GPT-4o as a judge to assess whether each chart correctly represents the intended variables, axes, and trends.
Design CriteriaChecks readability, labeling, scale consistency, and layout clarity.
ScoringCombines deterministic and semantic signals into a bounded score in the range [0, 1].

Findings

  • The top model, Claude-4.6-Sonnet, reached 56.70% task success under screenshot-plus-accessibility-tree observation, followed by GPT-5 at 29.81%, while GPT-4o, Gemini-2.5-Pro, and GPT-5-mini scored around 20%.
  • All open-source agents tested (UI-TARS, Jedi, GUI-OWL, OpenCUA, etc.) scored below 1% success, and none of them supported accessibility-tree input.
  • Three human participants (two applied scientists and one master's graduate) reached an 85.09% success rate under the identical environment and evaluation protocol, far exceeding any tested agent.
  • For open-source agents, 97-98% of failures were grounding errors (failing to correctly perceive the UI state), while stronger closed models like Gemini-2.5-Pro, GPT-5, and Claude-4.6-Sonnet showed a mix of terminal, code, and reasoning failures.
  • Increasing the step budget from 15 to 50 only raised GPT-4o's success rate from 24.54% to 25.81%, and prompting it to prefer terminal-first workflows only moved the rate from 19.34% to 20.73%, showing that neither more attempts nor a different interaction style substantially closes the gap.

Where it can be used

  • Can serve as a standard yardstick for how ready an AI agent is to automate real-world data-analysis work.
  • Can be used to diagnose separately whether an agent's weakness lies in perceiving the screen, coordinating multiple applications, or recovering from errors.
  • Can act as a comparison baseline (against the 85.09% human success rate) when developing new GUI-control or data-science-specialized agents.

Limits and open work

  • All experiments were run on Ubuntu only; performance on Windows or macOS environments has not been measured, even though the framework claims portability.
  • Tasks are capped at 15 interaction steps and a 1800-second timeout, so the benchmark does not cover much longer real-world workflows.
  • Only about 10% of tasks use an LLM-based visual judge for evaluation, with the rest relying on rule-based checks, limiting how broadly the visualization-quality assessment generalizes.
  • Extensibility to tools like R/RStudio, PyCharm, or cloud environments is mentioned as a design possibility but was not actually tested in this paper.
  • The authors state plans to release prompts, evaluation code, and inference scripts, but this is a future commitment, not part of the reported results.

Why it matters

Real workplace data analysis rarely means writing one perfect script; it means bouncing between programs, fixing errors, and checking intermediate outputs, and this benchmark shows concrete numbers on how far current AI agents are from that reality. It gives developers a measurable baseline (human success at 85.09%) to know which specific capabilities—screen grounding, tool switching, multi-step reasoning—need improvement before deploying agents on real analytical work.

Terms in this paper

  • OSWorld · An existing benchmark framework that tests whether AI can control real operating systems (Ubuntu, Windows, macOS) with mouse and keyboard
  • Accessibility (A11y) Tree · Structured data listing what buttons, text, and windows are on screen, originally built for assistive technology, now used to help AI locate UI elements
  • Deterministic evaluator · An automatic scoring script that gives the same score for the same output every time, without relying on human or subjective judgment
  • Task success rate · The share of tasks scoring 0.95 or higher, meaning the output must be almost perfectly correct to count as a success

Figures we cannot republish

  • Figure 2: Benchmark Construction Pipeline: We source heterogeneous real-world datasets (1); design tasks and evaluators through human–LLM collaboration with pre- and post-execution configurations (2); and apply dual-annotator review and verification (3). The result is a curated benchmark of reproducible tasks with complete configurations and deterministic evaluation scripts.
See the figures in the original paper →

Original abstract (English)

Real-world data science involves long-horizon workflows that span data wrangling, exploration, modeling, visualization, and validation, and require coordinated use of tools such as notebooks, IDEs, terminals, browsers, and databases within real operating environments. Yet existing benchmarks lack real-computer interaction and do not evaluate whether agents can execute complete end-to-end data-science workflows in realistic computing environments, failing to capture the multi-stage, multi-tool nature of data-science practice. We introduce DSAgentBench, the first benchmark to evaluate whether agents can automate full data-science workflows inside real computer environments. DSAgentBench contains 275 diverse tasks covering the entire data-science life-cycle, reflecting the complexity and tool coordination required in practice. Each task requires grounding decisions in intermediate outputs and coordinated tool use, and includes a deterministic evaluator that verifies analytical correctness, visual outputs, and model performance rather than code-only execution. Our extensive experiments with 15 closed- and open-source models show that even the strongest agent, Claude-4.6-Sonnet, achieves only 56.70% task success, while all open-source agents remain below 1%, frequently failing at tool orchestration, OS grounding, and multi-step reasoning. These results reveal a substantial capability gap between current agentic systems and real data-science workflows, positioning DSAgentBench as a foundation for developing grounded, verifiable, autonomous data-science agents. We release DSAgentBench at https://github.com/vis-nlp/DSAgentBench.

Authors · Mizanur Rahman

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Mizanur Rahman et al., arXiv:2608.10366, CC BY 4.0