arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.07544cs.LGcs.SE
收藏

VerilogEval:评估大型语言模型的 Verilog 代码生成能力

VerilogEval: Evaluating Large Language Models for Verilog Code Generation

NVIDIA Corporation(英伟达公司)

Mingjie Liu, Nathaniel Pinckney, Brucek Khailany, Haoxing Ren

AI总结:

本文提出 VerilogEval 基准框架,基于 HDLBits 的 156 个问题自动评估 LLM 的 Verilog 代码生成能力,并证明合成数据监督微调可提升相关性能。

摘要:

大型语言模型(LLM)日益普及,为其在各类领域中的应用铺平了道路。本文提出一个专门定制的基准测试框架,用于评估 LLM 在面向硬件设计与验证的 Verilog 代码生成场景中的性能。我们给出了一个综合评估数据集,包含来自 Verilog 教学网站 HDLBits 的 156 个问题。该评估集由多样化的 Verilog 代码生成任务组成,范围从简单的组合电路到复杂的有限状态机。通过将所生成设计的瞬态仿真输出与黄金解决方案进行比较,可以自动测试 Verilog 代码补全的功能正确性。我们还证明,通过使用 LLM 生成的合成“问题-代码”对进行自举式监督微调,可以提升预训练语言模型的 Verilog 代码生成能力。

英文摘要:

The increasing popularity of large language models (LLMs) has paved the way for their application in diverse domains. This paper proposes a benchmarking framework tailored specifically for evaluating LLM performance in the context of Verilog code generation for hardware design and verification. We present a comprehensive evaluation dataset consisting of 156 problems from the Verilog instructional website HDLBits. The evaluation set consists of a diverse set of Verilog code generation tasks, ranging from simple combinational circuits to complex finite state machines. The Verilog code completions can be automatically tested for functional correctness by comparing the transient simulation outputs of the generated design with a golden solution. We also demonstrate that the Verilog code generation capability of pretrained language models could be improved with supervised fine-tuning by bootstrapping with LLM generated synthetic problem-code pairs.

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

↑