SE-BENCH
收藏资源简介:
SE-BENCH是由清华大学研究团队构建的基准测试数据集,旨在评估智能体通过知识内化实现自我进化的能力。该数据集包含1,417条经过严格筛选的编程任务,其中训练集718条、测试集699条,数据来源于对NumPy库函数名及文档的系统化混淆重构。通过将标准NumPy函数映射为随机生成的伪新API(如numpy.mean→zwc.kocito),并配套生成算法简单的编码问题,确保任务在掌握新API文档后具有可解性。数据集设计聚焦三大特性:无先验知识则零概率求解、掌握文档则任务可解、需组合函数以测试泛化能力。其核心应用领域为验证AI模型在封闭训练环境下对新知识的压缩存储与迁移能力,为自演进智能体的研究提供标准化诊断工具。
SE-BENCH is a benchmark dataset developed by the research team from Tsinghua University, aiming to evaluate the capability of AI Agents to achieve self-evolution through knowledge internalization. This dataset contains 1,417 strictly curated programming tasks, including 718 training instances and 699 test instances, which are derived from the systematic obfuscation and restructuring of NumPy library function names and their official documentation. By mapping standard NumPy functions to randomly generated pseudo-new APIs (e.g., numpy.mean → zwc.kocito) and generating straightforward algorithmic coding problems alongside, the tasks are guaranteed to be solvable once the new API documentation is mastered. The dataset is designed with three core characteristics: zero probability of being solved without prior knowledge, solvability upon mastery of the documentation, and the requirement of function composition to test generalization capabilities. Its core application lies in verifying the ability of AI models to compress, store and transfer new knowledge within a closed training environment, thus providing a standardized diagnostic tool for research on self-evolving AI Agents.
SE-Bench 数据集概述
数据集基本信息
- 数据集名称: SE-Bench
- 核心目标: 诊断并衡量智能体对新知识的内化能力,这是实现真正自我演进的基础能力。
- 托管平台: Hugging Face Datasets
- 访问地址: https://huggingface.co/datasets/jintailin/SE-Bench
数据集内容与结构
数据集包含训练集和测试集,用于模拟知识内化的学习与评估过程。
数据文件
通过 load_datasets.py 脚本下载后,本地生成的文件结构如下:
| 路径 | 描述 | 用途 |
|---|---|---|
datasets/train/api_doc.jsonl |
zwc 软件包的 API 文档 |
训练材料 |
datasets/train/train.jsonl |
训练问题 | 训练材料 |
datasets/test/single_test.jsonl |
单函数问题 | 评估 |
datasets/test/multiple_test.jsonl |
多函数组合问题 | 评估 |
使用协议
- 训练模型或智能体时,仅能使用
datasets/train/目录下提供的信息。 - 在
datasets/test/中的问题上进行评估时,不能访问 API 文档。 - 该协议旨在测试模型是否真正内化了 API 知识。
数据加载方式
可通过 Hugging Face datasets 库加载。
python from datasets import load_dataset
加载训练集
dataset = load_dataset("jintailin/SE-Bench", "train")
数据位于 dataset[train]
加载单函数测试集
dataset = load_dataset("jintailin/SE-Bench", "single_test")
数据位于 dataset[train]
加载多函数测试集
dataset = load_dataset("jintailin/SE-Bench", "multiple_test")
数据位于 dataset[train]
评估流程
评估阶段需要构建 Docker 沙箱以安全执行代码,并筛选正确的推理轨迹。
自定义结果评估格式
如需评估自定义模型输出,需将结果格式化为 JSONL 文件,每行字典应包含以下键:
| 键 | 描述 |
|---|---|
query |
数据集中的原始问题。 |
response |
模型的生成内容,包含包裹在 python 块中的执行代码及推理过程。 |
test_cases |
数据集中的原始测试用例。格式:[{"input":..., "output":...}, ...]。 |
right_exe_result |
数据集中的原始真实可执行结果字符串。 |

- 1SE-Bench: Benchmarking Self-Evolution with Knowledge Internalization清华大学 · 2026年



