Skip to main content
QUICK REVIEW

[论文解读] QiMeng-CodeV-SVA: Training Specialized LLMs for Hardware Assertion Generation via RTL-Grounded Bidirectional Data Synthesis

Yutong Wu, Chenrui Cao|arXiv (Cornell University)|Mar 15, 2026
Formal Methods in VerificationComputer Science被引用 0
一句话总结

本文提出 CodeV-SVA,一种数据合成与微调管线,通过将数据 grounding 到真实 RTL、使用双向选择和形式化验证检查来训练专门的 LLM,使其将自然语言验证属性翻译为 SystemVerilog Assertions (SVA)。

ABSTRACT

SystemVerilog Assertions (SVAs) are crucial for hardware verification. Recent studies leverage general-purpose LLMs to translate natural language properties to SVAs (NL2SVA), but they perform poorly due to limited data. We propose a data synthesis framework to tackle two challenges: the scarcity of high-quality real-world SVA corpora and the lack of reliable methods to determine NL-SVA semantic equivalence. For the former, large-scale open-source RTLs are used to guide LLMs to generate real-world SVAs; for the latter, bidirectional translation serves as a data selection method. With the synthesized data, we train CodeV-SVA, a series of SVA generation models. Notably, CodeV-SVA-14B achieves 75.8% on NL2SVA-Human and 84.0% on NL2SVA-Machine in Func.@1, matching or exceeding advanced LLMs like GPT-5 and DeepSeek-R1.

研究动机与目标

  • 解决 NL2SVA 任务中高质量 SVA 数据的稀缺性。
  • 利用开源 RTL 设计在 RTL 语义引导下合成大规模、真实感强的 SVA 数据集。
  • 实现双向 NL-SVA 数据选择以使 NL 与 SVA 对齐。
  • 通过 refinement、推理增强和专家指导来提升数据质量。
  • 证明微调的 CodeV-SVA 模型在 NL2SVA 基准测试上优于通用型 LLM,同时保持较低的部署成本。

提出的方法

  • curate 一个大型开源 RTL 语料库(CodeV),筛选带时钟/复位信号的设计以强调时序属性。
  • 使用通用型 LLM 从 RTL 设计中生成 NL 属性和 SVA,然后用形式化验证工具 (JasperGold) 过滤 SVA。
  • 应用双向翻译:将 SVA 翻译为 NL 再翻译回 SVA,以确保语义对齐,只保留等价对。
  • 通过专家判断、较弱的-LMM 筛选和推理轨迹增强来 refined 数据,以提高训练效果。
  • 通过在合成的 NL2SVA 数据集上进行监督微调,对开源基础模型(Qwen3-8B/14B)进行微调,以获得 CodeV-SVA 模型。

实验结果

研究问题

  • RQ1 RTL-grounded 的合成是否能比仅使用开源 SVA 获得更高质量的 NL2SVA 数据?
  • RQ2双向 NL-SVA 翻译是否能改善自然语言属性与 SVA 之间的语义对齐?
  • RQ3数据 refined 步骤(推理轨迹、难度筛选、LLM 作为评审)的影响在 NL2SVA 性能上的体现?
  • RQ4CodeV-SVA 模型相较于通用型 LLM 和专门的 RTL 模型在 NL2SVA 基准上如何?
  • RQ5CodeV-SVA 流水线在端到端硬件验证工作流中的有效性?

主要发现

  • CodeV-SVA-14B 在 FVEval 的 Func.@1 上达到 75.8% NL2SVA-Human 与 84.0% NL2SVA-Machine,达到 GPT-5 与 DeepSeek-R1 在这些指标上的同等或超越水平。
  • CodeV-SVA-14B 在功能覆盖率指标上优于其教师模型(DeepSeek-R1-671B)和 GPT-5,且由于在合成的 RTL-grounded 数据上训练而具有较强的成本效率。
  • CodeV-SVA-8B 与 CodeV-SVA-14B 在 NL2SVA-Machine 的 Func.@32 上超越了此前的上限,表明在更具挑战性的验证任务上具备更好的扩展性。
  • 消融研究显示推理轨迹增强带来显著性能提升;在数据 refined 步骤中,双向数据选择带来最大的增益(如 NL2SVA-Human Func.@1 提升 12.3%)。
  • 在合成的 NL-SVA 数据上训练显著优于在开源 SVA 数据或基于规则的改写上训练,凸显数据集的质量优于数量。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。