ArchBench
收藏资源简介:
ArchBench是由国际信息技术研究所·海得拉巴和软件工程研究中心联合开发的首个软件架构任务统一基准平台。该平台整合了五个任务数据集,包括架构决策记录生成、服务器无组件生成等,涵盖1000余份架构文档和多个开源项目代码。数据集通过自动化流程从GitHub、Zenodo等平台获取,并采用NLP相似性指标和代码测试通过率等多维度评估标准。平台通过模块化设计支持社区贡献新任务,旨在解决生成式AI在软件架构领域缺乏标准化评估的难题,推动架构决策、代码生成等任务的模型能力对比与优化。
ArchBench is the first unified benchmark platform for software architecture tasks, jointly developed by the International Institute of Information Technology, Hyderabad and the Software Engineering Research Center. This platform integrates five task datasets, including architecture decision record generation, serverless component generation and other related tasks, covering more than 1,000 architecture documents and codebases from multiple open-source projects. The datasets are collected from platforms such as GitHub and Zenodo via automated workflows, and employ multi-dimensional evaluation criteria including NLP similarity metrics and code test pass rates. With a modular design that enables the community to contribute new tasks, the platform aims to resolve the lack of standardized evaluation for generative AI in the software architecture domain, and facilitate the comparison and optimization of model capabilities for tasks such as architecture decision-making and code generation.
ArchBench 数据集概述
数据集简介
ArchBench 是一个用于评估大语言模型在软件架构任务上性能的基准测试工具。
核心任务
该基准测试针对以下四个软件架构任务提供标准化评估:
| 任务 | 描述 | 主要评估指标 |
|---|---|---|
| ADR | 架构决策记录生成 | BERTScore F1 |
| Traceability | 架构到代码的可追溯性链接恢复 | F1 分数 |
| Serverless | 无服务器组件生成 | 测试通过率 |
| Dynamic | 动态物联网服务生成 | CodeBERTScore |
数据集使用与评估
预测文件格式
预测结果需采用 JSONL 格式,每行一个预测。 必需字段:
instance_id:字符串,与数据集中匹配的唯一标识符。model_name_or_path:字符串,所使用的模型名称。prediction:字符串,解析/提取后的预测内容。raw_output:字符串,模型的原始输出(用于验证)。
可选字段(推荐):
latency_ms:浮点数,响应延迟(毫秒)。token_usage:对象,令牌计数{prompt_tokens, completion_tokens}。
评估指标
ADR 任务:
- ROUGE-1/2/L
- BLEU
- METEOR
- BERTScore P/R/F1
Traceability 任务:
- 精确率
- 召回率
- F1 分数
数据与结果管理
工具支持完整的推理轨迹记录,用于验证。轨迹内容包括:
- 发送给模型的精确提示
- 模型原始响应
- 解析后的输出
- 时间和令牌使用情况
- 遇到的任何错误
排行榜提交
提交结果至 ArchBench 排行榜需遵循以下步骤:
- 启用轨迹记录运行推理。
- 验证预测文件格式。
- 向 https://github.com/sa4s-serc/archbench-results 仓库提交 PR,包含:
predictions.jsonl:模型的预测结果。trajectories/:完整的推理轨迹。metadata.yaml:提交元数据。

- 1ArchBench: Benchmarking Generative-AI for Software Architecture Tasks国际信息技术研究所·海得拉巴; 软件工程研究中心 · 2026年



