arXiv:2604.03245cs.ARcs.AI2026-04中稿 · IEEE VTS'26被引 1

用可解释的推理树提升硬件验证断言生成准确率

FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verification

  • 构建操作符级推理树,将自然语言转断言拆解为可追踪的逻辑步骤
  • 语法正确率提升3.95%,功能正确率提升31.17%,故障减少70.33%
  • 适合硬件验证工程师和自动化形式化工具研发者使用

大型语言模型在代码生成与推理方面的能力激发了自动化形式化验证(FV)的研究兴趣。然而,由于训练数据有限及验证操作符固有的复杂性,现有方法在生成SystemVerilog断言(SVA)时仍表现不佳。为此,本文提出FVRuleLearner,一种基于新型操作符推理树(Op-Tree)的规则学习框架,将SVA生成建模为结构化、可解释的推理过程。该框架包含两个阶段:(1) 训练阶段,构建Op-Tree,将自然语言到SVA的映射分解为细粒度的操作符感知问题,并整合通向正确断言的推理路径;(2) 测试阶段,通过操作符对齐检索从已学Op-Tree中获取相关推理轨迹,生成新规则以应对未见规格说明。实验表明,该方法在语法正确率上优于当前最优基线3.95%,功能正确率提升31.17%;并通过功能分类分析,平均减少70.33%的SVA功能错误,证明其在未知任务中有效生成操作符规则。结果确立了该框架在领域特定推理与规则学习中的新范式。

原文摘要 · Abstract (English)

The remarkable reasoning and code generation capabilities of large language models (LLMs) have recently motivated increasing interest in automating formal verification (FV), a process that ensures hardware correctness through mathematically precise assertions but remains highly labor-intensive, particularly through the translation of natural language into SystemVerilog Assertions (NL-to-SVA). However, LLMs still struggle with SVA generation due to limited training data and the intrinsic complexity of FV operators. Consequently, a more efficient and robust methodology for ensuring correct SVA operator selection is essential for producing functionally correct assertions. To address these challenges, we introduce FVRuleLearner, an Operator-Level Rule (Op-Rule) learning framework built on a novel Operator Reasoning Tree (Op-Tree), which models SVA generation as structured, interpretable reasoning. FVRuleLearner operates in two complementary phases: (1) Training: it constructs Op-Tree that decomposes NL-to-SVA alignment into fine-grained, operator-aware questions, combining reasoning paths that lead to correct assertions; and (2) Testing: it performs operator-aligned retrieval to fetch relevant reasoning traces from the learned Op-Tree and generate new rules for unseen specifications. In the comprehensive studies, the proposed FVRuleLearner outperforms the state-of-the-art baseline by 3.95% in syntax correctness and by 31.17% in functional correctness on average. Moreover, FVRuleLearner successfully reduces an average of 70.33% of SVA functional failures across diverse operator categories through a functional taxonomy analysis, showing the effectiveness of applying learned Op-Tree to the Op-Rule generations for unseen NL-to-SVA tasks. These results establish FVRuleLearner as a new paradigm for domain-specific reasoning and rule learning in formal verification.

形式化验证LLM应用硬件验证推理树

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