arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07593cs.ARcs.CLcs.LG
收藏

GRPO与状态突变:改进基于LLM的硬件测试计划生成

GRPO with State Mutations: Improving LLM-Based Hardware Test Plan Generation

Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA(麻省理工学院电子工程与计算机科学系);NVIDIA Research, Austin, TX(NVIDIA研究部);NVIDIA Research, Taiwan(NVIDIA台湾研究部);NVIDIA Research, Santa Clara, CA(NVIDIA圣克拉拉研究部)

Dimple Vijay Kochar, Nathaniel Pinckney, Guan-Ting Liu, Chia-Tung Ho, Chenhui Deng, Haoxing Ren, Brucek Khailany

AI总结:

GRPO-SMu通过改进LLM训练方法,显著提升硬件验证中测试计划生成的准确率和突变检测率。

摘要:

RTL设计往往在设计周期早期严重依赖于随意的测试平台创建。尽管大型语言模型(LLMs)在RTL代码生成方面显示出潜力,但它们在理解硬件规范和生成有针对性的测试计划方面的能力仍鲜有探索。我们首次系统研究了LLM在RTL验证刺激生成方面的推理能力,建立了一个两阶段框架,将测试计划生成与测试平台执行分解开来。我们的基准测试揭示,最先进的模型,包括DeepSeek-R1和Claude-4.0-Sonnet,仅在生成通过黄金RTL设计的刺激方面达到15.7-21.7%的成功率。为提高LLM生成的刺激,我们开发了一种综合训练方法,结合了监督微调和一种新的强化学习方法,即GRPO与状态突变(GRPO-SMu),通过改变输入突变来增强探索。我们的方法利用基于树的分支突变策略来构建包含等价和突变树的训练数据集,超越了线性突变方法,以提供丰富的学习信号。在该精心整理的数据集上训练,我们的7B参数模型实现了33.3%的黄金测试通过率和13.9%的突变检测率,比基线模型提高了17.6%,并优于许多更大的通用模型。这些结果表明,专门的训练方法可以显著增强LLM在硬件验证任务中的推理能力,为半导体设计工作流中的自动化子单元测试奠定了基础。

英文摘要:

RTL design often relies heavily on ad-hoc testbench creation early in the design cycle. While large language models (LLMs) show promise for RTL code generation, their ability to reason about hardware specifications and generate targeted test plans remains largely unexplored. We present the first systematic study of LLM reasoning capabilities for RTL verification stimuli generation, establishing a two-stage framework that decomposes test plan generation from testbench execution. Our benchmark reveals that state-of-the-art models, including DeepSeek-R1 and Claude-4.0-Sonnet, achieve only 15.7-21.7% success rates on generating stimuli that pass golden RTL designs. To improve LLM generated stimuli, we develop a comprehensive training methodology combining supervised fine-tuning with a novel reinforcement learning approach, GRPO with State Mutation (GRPO-SMu), which enhances exploration by varying input mutations. Our approach leverages a tree-based branching mutation strategy to construct training data comprising equivalent and mutated trees, moving beyond linear mutation approaches to provide rich learning signals. Training on this curated dataset, our 7B parameter model achieves a 33.3% golden test pass rate and a 13.9% mutation detection rate, representing a 17.6% absolute improvement over baseline and outperforming much larger general-purpose models. These results demonstrate that specialized training methodologies can significantly enhance LLM reasoning capabilities for hardware verification tasks, establishing a foundation for automated sub-unit testing in semiconductor design workflows.

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

↑