K-文化的一切——从回归到 K-美妆,发送到您的邮箱订阅邮件

METAL MEDIA

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

arXiv:2608.103662026-08-10

让AI代理在真实电脑上从头到尾完成数据科学项目,结果表现最好的模型成功率也只有57%

DSAgentBench是一个包含275个任务的评测基准,用来检验AI代理能否在真实操作系统里,协调笔记本、IDE、终端、浏览器和数据库,完整走完从数据获取到可视化、模型评估的数据科学流程。研究者测试了15个闭源和开源模型,表现最好的Claude-4.6-Sonnet任务成功率也只有56.70%,所有开源模型成功率都低于1%。相同条件下人类参与者的成功率达到85.09%,凸显了AI与真实工作流程之间的巨大差距。

METAL MEDIA 解读图

DSAgentBench 评测流程

证据状态已报告实测结果

  1. 1. 搭建真实桌面环境在Ubuntu上扩展OSWorld,预装VS Code、Jupyter Notebook、Chrome,并接入Kaggle API、OpenML、SQLite
  2. 2. 设计275个任务四位专家标注员用三个月时间,基于Kaggle等真实数据构建并双重核验覆盖六个生命周期阶段的任务
  3. 3. 代理感知—执行循环代理查看截图(及无障碍树信息),用鼠标键盘操作,最多执行15步来完成任务
  4. 4. 确定性评分评分脚本检查最终产出而非代码是否跑通,包括数值精度、图表标注与图例、模型性能等
  5. 5. 结果对比Claude-4.6-Sonnet的56.70%对比人类的85.09%,所有开源代理成功率都低于1%,凸显能力差距
这是 METAL MEDIA 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 现有基准大多只检查生成的代码能否跑通,并不检验代理是否真能操作电脑(浏览文件系统、切换工具、处理报错),因此作者在OSWorld这一桌面操作评测框架基础上专门为数据科学场景做了扩展。
  2. 四位专家标注员用三个月时间,从Kaggle、OpenML、SQLite、GitHub等真实数据源出发,构建并双重核验了275个任务,覆盖数据获取、探索性分析、特征工程、建模、评估、可视化六个阶段。
  3. 代理通过屏幕截图和无障碍树(记录屏幕上按钮、文字等元素的结构化信息)感知环境,用鼠标键盘执行操作;评分脚本不看代码是否跑通,而是检查最终结果,比如相关系数数值、图表的坐标轴与图例、模型准确率等是否正确。
  4. 在截图加无障碍树的设置下,Claude-4.6-Sonnet以56.70%的成功率排名第一,GPT-5为29.81%,GPT-4o、Gemini-2.5-Pro、GPT-5-mini等其他闭源模型约在20%左右,所有开源代理成功率都低于1%;而三位人类参与者在同样条件下达到了85.09%。
  5. 将最大交互步数从15步增加到50步,成功率仅从24.54%微升到25.81%,说明瓶颈并非尝试次数不够,而是代理本身在屏幕感知、规划和推理能力上的局限。
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].

研究结果

  • 在截图加无障碍树的设置下,表现最好的Claude-4.6-Sonnet任务成功率为56.70%,GPT-5为29.81%,GPT-4o、Gemini-2.5-Pro、GPT-5-mini约为20%左右。
  • 所有测试的开源模型(UI-TARS、Jedi、GUI-OWL、OpenCUA等)成功率均低于1%,且没有一个支持无障碍树输入。
  • 三位人类参与者(两位应用科学家和一位硕士毕业生)在完全相同的环境和评分标准下取得了85.09%的成功率,远超所有测试模型。
  • 开源代理97%至98%的失败原因是未能正确识别屏幕状态(定位错误),而Gemini-2.5-Pro、GPT-5、Claude-4.6-Sonnet等较强的闭源模型则表现出终端操作、代码和推理错误混合的失败模式。
  • 将交互步数上限从15步提高到50步,GPT-4o的成功率仅从24.54%升到25.81%;引导模型优先使用终端操作,成功率也仅从19.34%提升到20.73%,说明单纯增加尝试次数或改变交互方式都无法大幅缩小差距。

可应用场景

  • 可作为衡量AI代理是否具备自动化处理真实数据分析工作能力的标准评测尺度。
  • 可用于分别诊断代理在屏幕感知、多软件协同、错误恢复等方面各自的薄弱环节。
  • 可作为开发新的桌面操控代理或数据科学专用模型时的对比基准(参照人类85.09%的成功率)。

局限与待验证事项

  • 所有实验都在Ubuntu环境下进行,尽管框架声称可移植到Windows或macOS,但这些平台上的表现尚未被实际测量。
  • 任务被限制在最多15个交互步骤和1800秒的超时时间内,因此该基准并未覆盖更长时程的真实工作场景。
  • 仅约10%的任务使用基于大模型的可视化质量评判,其余依赖规则化检查,可视化评估结果的普适性有限。
  • 论文提到可扩展到R/RStudio、PyCharm或云端环境,但本文中并未实际验证这些扩展。
  • 作者表示计划公开提示词、评测代码和推理脚本等完整实验仓库,但这仍是未来计划,并非本次报告结果的一部分。

为什么重要

现实工作中的数据分析很少是写一段完美代码就完成的,而是要在多个软件间切换、修复错误、核查中间结果,这项研究用具体数字展示了当前AI代理距离这种真实场景还有多远。它为开发者提供了一个可衡量的基准(人类成功率85.09%),帮助判断在部署AI代理处理实际分析工作之前,究竟需要先补强屏幕识别、工具切换还是多步推理中的哪一项能力。

本文术语

  • OSWorld · 一个已有的评测框架,用来测试AI能否用鼠标键盘操控真实操作系统(如Ubuntu、Windows、macOS)
  • 无障碍树(Accessibility/A11y Tree) · 记录屏幕上有哪些按钮、文字、窗口的结构化数据,最初为辅助视障人士的软件而设计,现被用来帮助AI定位屏幕元素
  • 确定性评分器(Deterministic Evaluator) · 一种自动打分脚本,对同样的结果永远给出同样的分数,不依赖人工或主观判断
  • 任务成功率(Task Success Rate) · 评分达到0.95以上的任务占比,意味着结果必须几乎完全正确才算成功

无法转载的图表

  • 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.
在原文中查看图表 →

论文原文摘要(英文)

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.

作者 · Mizanur Rahman

在 arXiv 阅读

最新论文

全部论文 →

METAL MEDIA 最新报道

图片来源: Mizanur Rahman et al., arXiv:2608.10366, CC BY 4.0