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

探索Verilog代码生成的代理前沿

Exploring the Agentic Frontier of Verilog Code Generation

New York University Tandon School of Engineering(纽约大学坦登工程学院)

Patrick Yubeaton, Siddharth Garg, Chinmay Hegde

AI总结:

本文系统评估了代理LLM在Verilog生成中的影响,通过CVDP基准测试,分析了结构化提示和工具设计对性能的影响,并比较了开源与闭源模型的性能差异。

摘要:

大型语言模型(LLMs)在Python和C++等流行语言的代码生成中取得了快速进展,许多近期进步归因于使用"代理",即结合领域相关工具的LLM。硬件设计语言如Verilog近年来也见到了改进,但代理框架对Verilog代码生成任务的影响仍不明确。本文首次系统评估代理LLM在Verilog生成中的表现,使用最近引入的CVDP基准测试。我们还引入了几种开源硬件设计代理工具包,为未来工作提供模型无关的基准。通过在前沿模型上的受控实验,我们研究了结构化提示和工具设计对性能的影响,分析了代理失败模式和工具使用模式,比较了开源和闭源模型,并提供了成功和失败代理运行的定性示例。我们的结果表明,简单的代理包装在前沿模型上可能降低性能(相对于使用优化提示的标准正向传递),但结构化的工具包在某些情况下能与非代理基准相匹配甚至超越。我们发现开源与闭源模型之间的性能差距由更高的崩溃率和较弱的工具输出解释能力驱动。我们的探索为未来设计专用代理进行Verilog生成指明了方向。

英文摘要:

Large language models (LLMs) have made rapid advancements in code generation for popular languages such as Python and C++. Many of these recent gains can be attributed to the use of ``agents'' that wrap domain-relevant tools alongside LLMs. Hardware design languages such as Verilog have also seen improved code generation in recent years, but the impact of agentic frameworks on Verilog code generation tasks remains unclear. In this work, we present the first systematic evaluation of agentic LLMs for Verilog generation, using the recently introduced CVDP benchmark. We also introduce several open-source hardware design agent harnesses, providing a model-agnostic baseline for future work. Through controlled experiments across frontier models, we study how structured prompting and tool design affect performance, analyze agent failure modes and tool usage patterns, compare open-source and closed-source models, and provide qualitative examples of successful and failed agent runs. Our results show that naive agentic wrapping around frontier models can degrade performance (relative to standard forward passes with optimized prompts), but that structured harnesses meaningfully match and in some cases exceed non-agentic baselines. We find that the performance gap between open and closed source models is driven by both higher crash rates and weaker tool output interpretation. Our exploration illuminates the path towards designing special-purpose agents for verilog generation in the future.

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

↑