Skip to main content
QUICK REVIEW

[Paper 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 Science0 citations
TL;DR

The paper presents CodeV-SVA, a data synthesis and fine-tuning pipeline that trains specialized LLMs to translate natural language verification properties into SystemVerilog Assertions (SVAs) by grounding data in real RTL, using bidirectional selection, and formal verification checks.

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.

Motivation & Objective

  • Address scarcity of high-quality SVA data for NL2SVA tasks.
  • Leverage open-source RTL designs to synthesize large, realistic SVA datasets guided by RTL semantics.
  • Implement bidirectional NL-SVA data selection to align NL with SVAs.
  • Improve data quality through refinement, reasoning augmentation, and expert guidance.
  • Demonstrate that fine-tuned CodeV-SVA models outperform general-purpose LLMs on NL2SVA benchmarks while remaining cost-efficient to deploy.

Proposed method

  • Curate a large open-source RTL corpus (CodeV) and filter designs with clock/reset signals to emphasize temporal properties.
  • Use a general-purpose LLM to generate NL properties and SVAs from RTL designs, then filter SVAs with a formal verification tool (JasperGold).
  • Apply bidirectional translation: translate SVA to NL and back to SVA to ensure semantic alignment, keeping only equivalent pairs.
  • Refine data with expert judgments, weaker-LMM filtering, and reasoning-trajectory augmentation to improve training efficacy.
  • Fine-tune open-source foundation models (Qwen3-8B/14B) via supervised fine-tuning on the synthesized NL2SVA dataset to obtain CodeV-SVA models.

Experimental results

Research questions

  • RQ1Can RTL-grounded synthesis yield higher-quality NL2SVA data than using open-source SVAs alone?
  • RQ2Does bidirectional NL-SVA translation improve semantic alignment between natural language properties and SVAs?
  • RQ3What is the impact of data refinement steps (reasoning trajectories, difficulty filtering, LLM-as-a-judge) on NL2SVA performance?
  • RQ4How do CodeV-SVA models compare to general-purpose LLMs and specialized RTL models on NL2SVA benchmarks?
  • RQ5Is the CodeV-SVA pipeline effective in end-to-end hardware verification workflows?

Key findings

  • CodeV-SVA-14B achieves 75.8% NL2SVA-Human and 84.0% NL2SVA-Machine in Func.@1 on FVEval, matching or surpassing GPT-5 and DeepSeek-R1 on these metrics.
  • CodeV-SVA-14B outperforms its teacher model (DeepSeek-R1-671B) and GPT-5 across functional-coverage metrics, with strong cost-efficiency due to training on synthesized RTL-grounded data.
  • CodeV-SVA-8B and CodeV-SVA-14B exceed previous upper bounds onFunc.@32 for NL2SVA-Machine, indicating improved scalability for more challenging verification tasks.
  • Ablation studies show reasoning-trajectory augmentation provides a clear performance boost; bidirectional data selection yields the largest gain among data-refinement steps (e.g., 12.3% improvement in NL2SVA-Human Func.@1).
  • Training on synthesized NL-SVA data significantly outperforms training on open-source SVA data or rule-based rewrites, highlighting quality over quantity in the dataset.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.