sop-bench
收藏资源简介:
SOP-Bench是一个综合基准测试集,用于评估基于大语言模型(LLM)的智能代理在复杂、多步骤工业标准操作程序(SOP)上的性能。该数据集基于12个工业领域(如医疗保健、物流、金融、内容审核、供应链、网络安全、航空等)的真实工业程序构建,包含超过2000个任务,由14个独立的基准配置(子集)组成,每个配置代表一个特定的工业领域,例如飞机检查、内容标记、客户服务、危险品分类等。每个基准配置包括测试集(含输出和不含输出)、自然语言编写的SOP文档、Python工具实现、工具规范和元数据文件。数据集规模在1K到10K之间,每个任务涉及10-50多个决策点的顺序推理,复杂度评级在7/10到10/10之间。它专为评估LLM代理在需要多步骤推理、工具协调、隐式知识应用和模糊性处理的工业自动化任务中的性能而设计,支持文本分类和问答任务,并配有完整的评估框架,提供任务成功率、执行完成率、条件任务成功率和工具准确率等指标。数据集由人类专家根据真实工业程序编写SOP,并通过人机协作框架创建测试用例,确保覆盖边界情况和现实复杂性,真实输出由人类专家生成。
SOP-Bench is a comprehensive benchmark dataset developed to evaluate the performance of Large Language Model (LLM)-based AI Agents on complex, multi-step industrial standard operating procedures (SOPs). This dataset is constructed using real industrial procedures across 12 industrial domains, including healthcare, logistics, finance, content moderation, supply chain, cybersecurity, aviation, and others. It contains over 2,000 tasks and comprises 14 independent benchmark configurations (subsets), each representing a specific industrial domain such as aircraft inspection, content tagging, customer service, hazardous materials classification, and more. Each benchmark configuration includes a test set (with and without ground-truth outputs), natural language-formatted SOP documents, Python tool implementations, tool specifications, and metadata files. The dataset scales from 1K to 10K, with each task involving sequential reasoning across 10 to over 50 decision points, and a complexity rating ranging from 7/10 to 10/10. It is specifically tailored to assess the performance of LLM-powered AI Agents in industrial automation tasks that demand multi-step reasoning, tool coordination, implicit knowledge application, and ambiguity handling. The benchmark supports text classification and question answering tasks, and is paired with a full-fledged evaluation framework that provides metrics including task success rate, execution completion rate, conditional task success rate, and tool accuracy. The SOPs in the dataset are authored by human experts based on real industrial procedures, and test cases are created via a human-machine collaboration framework to ensure coverage of edge cases and real-world complexity, with ground-truth outputs generated by human experts.
数据集概述
SOP-Bench 是一个用于评估基于大语言模型(LLM)的智能体在执行复杂、多步骤标准操作流程(SOPs)方面能力的基准测试集。该基准测试集由亚马逊(Amazon)发布,专注于工业自动化领域。
- 发布日期/关联会议: KDD 2026 数据集与基准测试轨道 (Datasets and Benchmarks Track)。
- 许可证: CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0 International)。
- 数据集规模: 1,000 < n < 10,000 条数据。
- 任务类型: 文本分类 (text-classification) 和问答 (question-answering)。
- 语言: 英语 (English)。
数据集内容与特点
- 核心内容: 包含来自 12 个工业领域的 2,000 多个任务,每个任务都基于一个复杂的、多步骤的SOP。
- 覆盖领域: 航空、内容审核、客户服务、供应链(危险品)、零售、金融、医疗、欺诈检测、网络安全、自动驾驶、媒体和物流。
- 问题复杂性: 这些SOP涉及顺序推理(10-50+个决策点)、工具编排、隐性知识和模糊性处理。
- 评估重点: 衡量LLM智能体执行多步骤推理、工具使用和遵循结构化工业流程的能力。
数据集结构
数据集包含 14 个配置(子集),每个对应一个特定的工业领域基准。部分配置的任务数量和复杂度如下:
| 配置名称 | 领域 | 任务数量 | 复杂度 (1-10) |
|---|---|---|---|
aircraft_inspection |
航空 | 150 | 9/10 |
content_flagging |
内容审核 | 226 | 9/10 |
customer_service |
客户服务 | 208 | 8/10 |
dangerous_goods |
供应链 | 327 | 7/10 |
email_intent |
零售 | 122 | 7/10 |
know_your_business |
金融 | 122 | 9/10 |
patient_intake |
医疗 | 90 | 7/10 |
video_annotation |
自动驾驶 | 168 | 10/10 |
video_classification |
媒体 | 198 | 9/10 |
warehouse_package_inspection |
物流 | 200 | 9/10 |
每个配置的数据文件包括:
test_set_with_outputs.csv:包含真实输出的测试用例。test_set_without_outputs.csv:用于盲评估的测试用例。sop.txt:标准操作流程文档。tools.py:智能体可使用的Python工具实现。toolspecs.json:JSON格式的工具规格说明。metadata.json:输入/输出列定义。
数据来源与创建
- 来源: 所有SOP均由人类专家根据真实工业流程编写。
- 创建方法: 测试用例通过“人机协作框架”创建,以覆盖边缘案例和现实复杂性。
- 标注: 真实输出由人类专家在遵循SOP并使用模拟工具的情况下生成,确保准确性。
使用方式
可以通过 datasets 库直接加载数据集:
python
from datasets import load_dataset
dataset = load_dataset("amazon/sop-bench", "customer_service")
也可以从Hugging Face Hub下载SOP文档、工具规格等辅助文件: python from huggingface_hub import hf_hub_download sop_path = hf_hub_download(repo_id="amazon/sop-bench", filename="data/customer_service/sop.txt", repo_type="dataset")
完整的评估框架可以在其GitHub仓库中找到。
评估指标
- 任务成功率 (TSR):智能体做出正确决策的任务百分比。
- 执行完成率 (ECR):无错误完成的任务百分比。
- 条件任务成功率 (C-TSR):在执行完成的任务中,结果准确的比例 (TSR = ECR × C-TSR)。
- 工具正确率:正确工具调用的百分比。
早期发现
对11个前沿模型的评估初步发现:
- Function-Calling 智能体:平均任务成功率为 ~64%。
- ReAct 智能体:平均任务成功率为 ~55%。
- 高执行率 (95%+) 表明失败主要是推理问题,而非技术错误。
- 开源模型(如 DeepSeek-R1, Llama 3.3)的性能接近专有模型。




