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

RTL-BenchLS:面向大语言模型的RTL推理与生成的大规模基准

RTL-BenchLS: A Large-Scale Benchmark for RTL Reasoning and Generation with Large Language Models

Hong Kong University of Science and Technology(香港科技大学)

Jing Wang, Shang Liu, Wenji Fang, Yuchao Wu, Yugao Zhu, Zhiyao Xie

AI总结:

提出大规模基准RTL-BenchLS,包含超1万个形式验证的Verilog设计,并引入三项自监督推理任务,解决现有基准规模小、任务单一的问题,评估显示当前最佳模型性能较低。

摘要:

基于LLM的RTL生成与推理是硬件设计自动化的一个有前景的方向。高质量的基准是跟踪这一进展的关键基础设施。然而,现有的RTL基准在规模和任务范围上存在固有局限性。它们涵盖的设计通常较小且简单,任务几乎完全集中在规格到RTL的生成上。前沿模型在现有基准上的性能已经饱和。扩大这些基准的规模从根本上很困难,因为基准测试需要对齐的标签,例如规格和测试平台。对于实际设计,这种对齐的高质量数据很少可用。我们引入了RTL-BenchLS,这是一个大规模基准,解决了上述两个局限性。它包含超过10,000个经过形式验证的Verilog设计,涵盖比现有基准更大且更复杂的设计。除了规格到RTL的生成,我们提出了三项联合评估推理与生成的新任务:往返推理、掩码内容推理和仓库问题推理。前两项是自监督的,直接解决了扩展瓶颈。所有任务都通过形式等价性检查进行验证,无需任何手动测试平台。我们在RTL-BenchLS上评估了八个LLM。即使是最好的模型,在自然语言往返推理上仅达到23%,在掩码内容推理上达到28%,在仓库问题修复上达到12%。RTL-BenchLS比现有基准更具挑战性。它为未来的改进留下了充足的空间,并为开发基于LLM的硬件设计方法提供了指导。

英文摘要:

LLM-based RTL generation and reasoning is a promising direction for hardware design automation. High-quality benchmarks are critical infrastructure for tracking progress in this direction. However, existing RTL benchmarks face inherent limitations in both scale and task scope. The designs they cover are typically small and simple, and the tasks focus almost entirely on specification-to-RTL generation. Frontier models' performance already saturates on the existing benchmarks. Scaling these benchmarks up is fundamentally difficult because aligned labels are required for benchmarking, such as specifications and testbenches. Such aligned high-quality data are rarely available for real-world designs. We introduce RTL-BenchLS, a large-scale benchmark addressing both limitations above. It contains over 10,000 formally verified Verilog designs, covering substantially larger and more complex designs than existing benchmarks. Beyond specification-to-RTL generation, we propose three novel tasks that jointly evaluate reasoning and generation: round-trip reasoning, masked-content reasoning, and repository-issue reasoning. The first two are self-supervised, which directly resolves the scaling bottleneck. All tasks are verified through formal equivalence checking without any manual testbenches. We evaluate eight LLMs on RTL-BenchLS. Even the best model reaches only 23% on natural-language round-trip reasoning, 28% on masked-content reasoning, and 12% on repository-issue fixing. RTL-BenchLS is substantially more challenging than existing benchmarks. It leaves ample room for future improvement and offers guidance for developing LLM-based methods for hardware design.

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

↑