arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14709cs.AI
收藏

HWE-Bench:在真实世界硬件Bug修复任务上评估LLM代理的基准测试

HWE-Bench: Benchmarking LLM Agents on Real-World Hardware Bug Repair Tasks

Peking University(北京大学)

Fan Cui, Hongyuan Hou, Zizhang Luo, Chenyun Yin, Yun Liang

AI总结:

HWE-Bench是首个大规模仓库级基准,用于评估LLM代理在真实世界硬件Bug修复任务中的表现,通过417个任务实例验证代理在不同项目中的性能差异。

摘要:

现有硬件设计基准主要评估LLM在孤立组件级任务如生成HDL模块上的表现,未涉及仓库级评估。我们引入HWE-Bench,首个大规模仓库级基准,用于评估LLM代理在真实世界硬件Bug修复任务中的能力。HWE-Bench包含417个任务实例,源自六个主要开源项目的历史Bug修复拉取请求,涵盖Verilog/SystemVerilog和Chisel,涉及RISC-V核心、SoC和安全根信任。每个任务均在完全容器化环境中进行,代理需解决真实Bug报告,正确性通过项目原生仿真和回归流程验证。该基准通过自动化管道构建,可高效扩展至新仓库。我们评估了七种LLM和四种代理框架,发现最佳代理整体解决70.7%的任务,小型核心性能超90%,但复杂SoC项目低于65%。我们观察到模型间性能差距大于软件基准,困难度由项目范围和Bug类型分布驱动,而非代码规模。失败分析揭示代理失败发生在故障定位、硬件语义推理和跨RTL、配置和验证组件协调三个阶段,为开发更强大的硬件感知代理提供具体方向。

英文摘要:

Existing benchmarks for hardware design primarily evaluate Large Language Models (LLMs) on isolated, component-level tasks such as generating HDL modules from specifications, leaving repository-scale evaluation unaddressed. We introduce HWE-Bench, the first large-scale, repository-level benchmark for evaluating LLM agents on real-world hardware bug repair tasks. HWE-Bench comprises 417 task instances derived from real historical bug-fix pull requests across six major open-source projects spanning both Verilog/SystemVerilog and Chisel, covering RISC-V cores, SoCs, and security roots-of-trust. Each task is grounded in a fully containerized environment where the agent must resolve a real bug report, with correctness validated through the project's native simulation and regression flows. The benchmark is built through a largely automated pipeline that enables efficient expansion to new repositories. We evaluate seven LLMs with four agent frameworks and find that the best agent resolves 70.7% of tasks overall, with performance exceeding 90% on smaller cores but dropping below 65% on complex SoC-level projects. We observe larger performance gaps across models than commonly reported on software benchmarks, and difficulty is driven by project scope and bug-type distribution rather than code size alone. Our failure analysis traces agent failures to three stages of the debugging process: fault localization, hardware-semantic reasoning, and cross-artifact coordination across RTL, configuration, and verification components, providing concrete directions for developing more capable hardware-aware agents.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑