arXiv:2410.23299cs.ARcs.AI2024-10被引 26

首个面向硬件形式化验证的LLM评估基准,测试模型生成断言与推理能力。

FVEval: Understanding Language Model Capabilities in Formal Verification of Digital Hardware

  • 构建三阶段任务评估LLM在硬件验证中的表现
  • 覆盖自然语言转断言、RTL推理与自动断言生成
  • 含真实案例与工业级合成数据,适配芯片设计工程师

大型语言模型(LLMs)在推理和代码生成方面的卓越能力,激发了将其应用于数字芯片设计自动化的需求。尤其在形式化验证(FV)领域,尽管该方法能提供强信心保障,但依赖大量人工投入。现有研究虽探索了LLM在FV中的应用,但缺乏全面评估。为此,我们提出FVEval,首个针对硬件形式化验证任务的综合基准与评估框架。该基准包含三个子任务:从自然语言描述生成SystemVerilog断言(SVAs),基于RTL代码进行推理并建议断言,以及无需额外输入直接生成断言。测试集包括专家编写的验证资料与符合工业工作流的可扩展合成数据生成方法。对多种主流开源及专有LLMs进行了评估,揭示当前模型在不同任务中的表现,并为提升数字芯片形式化验证效率提供方向。相关代码与数据已公开于https://github.com/NVlabs/FVEval。

原文摘要 · Abstract (English)

The remarkable reasoning and code generation capabilities of large language models (LLMs) have spurred significant interest in applying LLMs to enable task automation in digital chip design. In particular, recent work has investigated early ideas of applying these models to formal verification (FV), an approach to verifying hardware implementations that can provide strong guarantees of confidence but demands significant amounts of human effort. While the value of LLM-driven automation is evident, our understanding of model performance, however, has been hindered by the lack of holistic evaluation. In response, we present FVEval, the first comprehensive benchmark and evaluation framework for characterizing LLM performance in tasks pertaining to FV. The benchmark consists of three sub-tasks that measure LLM capabilities at different levels: from the generation of SystemVerilog assertions (SVAs) given natural language descriptions to reasoning about the design RTL and suggesting assertions directly without additional human input. As test instances, we present both collections of expert-written verification collateral and methodologies to scalably generate synthetic examples aligned with industrial FV workflows. A wide range of existing LLMs, both proprietary and open-source, are evaluated against FVEval, based on which we investigate where today's LLMs stand and how we might further enable their application toward improving productivity in digital FV. Our benchmark and evaluation code is available at \url{https://github.com/NVlabs/FVEval}.

形式化验证LLM应用硬件设计SystemVerilog

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。