NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reward-Weighted On-Policy Distillation with an Open Property-Equivalence Verifier for NL-to-SVA Generation

Qingyun Zou, Yingze Li, Tianen Liu, Bingsheng He, Weng-Fai WongarXiv 2026

TL;DR

This paper introduces Reward-Weighted On-Policy Distillation (RWOPD), a novel method for generating SystemVerilog Assertions (SVA) from natural language. RWOPD significantly improves SVA generation accuracy by using a property-equivalence checker to guide a distillation process, overcoming limitations of previous approaches that focused on token-level mimicry. This leads to state-of-the-art performance on challenging SVA generation benchmarks.

What Problem Does This Paper Address?

Generating SystemVerilog Assertions (SVA) from natural language (NL-to-SVA) is crucial for formal verification in hardware design. While large language models (LLMs) have shown promise, existing methods, primarily based on supervised fine-tuning (SFT), struggle with complex temporal specifications (bounded-delay and liveness). These models often exhibit "template collapse," generating syntactically correct but semantically incorrect assertions that fail to capture the intended temporal logic. The core issue is that SFT optimizes for token-level agreement with a reference assertion, rather than true property equivalence, which is the actual measure of correctness for SVAs. This paper aims to bridge this gap by developing a method that directly optimizes for property equivalence.

Methods

The paper proposes Reward-Weighted On-Policy Distillation (RWOPD), an enhancement to on-policy distillation. The key components are:

  1. Stratified Curriculum SFT: A preliminary training phase for a smaller student model (7B+LoRA) that covers different Temporal Complexity Levels (TCL) of SVAs (combinational, bounded temporal, liveness) to ensure broad coverage.
  2. Open Property-Equivalence Checker (PEC): An open-source checker built using SymbiYosys and Z3. This PEC verifies if a generated SVA is equivalent to the reference SVA, or if it implies a specific relationship (e.g., reference implies generated). It's sound for bounded-model checking fragments but abstains on unsupported liveness cases.
  3. RWOPD: The core method. The student model generates multiple SVA "rollouts." The open PEC filters these rollouts, keeping only those that are verifier-passable (equivalent or one-sided implication). These accepted rollouts are then "reward-weighted" based on their equivalence score. A frozen, larger "teacher" model (CodeV-SVA-14B) then provides a dense forward-KL gradient target, but this gradient is only applied to the verifier-passing, reward-weighted rollouts. This ensures the distillation process is grounded in property equivalence.
  4. Verifier-Equivalence Reward for RLVF: A baseline method that uses the PEC reward signal for sparse reinforcement learning, contrasting with RWOPD's use of the PEC for reward-weighting dense distillation.

Datasets

  • Training: The paper utilizes the training split of the CodeV-SVA-14B dataset. Auxiliary pools for compile-gate and verifier-reward diagnostics are also constructed.
  • Evaluation: The primary evaluation benchmarks are NL2SVA-Human and NL2SVA-Machine, which are held-out datasets from the FVEval protocol.

Key Insights and Ideas

  • Temporal Gap: The aggregate accuracy scores for NL-to-SVA generation hide a critical failure mode: models collapse to simple implication templates for complex temporal specifications.
  • Property Equivalence is Key: True SVA correctness lies in semantic property equivalence, not just syntactic similarity to a reference.
  • Verifier as a Filter, Not Just a Reward: Using an open property-equivalence checker as a filter and reward-weighting mechanism for dense distillation (RWOPD) is more effective than using it as a sparse reward signal for reinforcement learning (RLVF) at this scale.
  • Dense Teacher Supervision is Crucial: The dense token-level supervision from a teacher model, when applied to verifier-validated rollouts, is the dominant factor in performance gains, isolating the value of the verifier signal.
  • Curriculum Learning for Coverage: A stratified curriculum SFT is essential to provide the student model with sufficient coverage of different temporal complexity levels, preventing it from collapsing to simpler patterns.

Key Results

  • State-of-the-Art Performance: RWOPD, applied to a 7B+LoRA student model, sets a new state-of-the-art on NL2SVA-Human and NL2SVA-Machine across pass@1, pass@5, and pass@10 metrics.
  • Surpassing Baselines: RWOPD outperforms the strongest prior specialized model (CodeV-SVA-14B) and large general-purpose models (671B baselines like DeepSeek-R1 and GPT-5).
  • Targeted Improvement: The gains are concentrated on the temporally non-trivial C2 (bounded temporal) and C3 (liveness) classes, indicating RWOPD effectively addresses the "template collapse" issue. For example, on NL2SVA-Machine, RWOPD lifts C2 by 7.5 pp and C3 by 11.5 pp.
  • Efficiency: The method achieves these gains with only a LoRA adapter (0.53% trainable parameters) on a 7B student model.

Limitations and Future Work

  • Open PEC Limitations: The open PEC abstains on liveness properties, meaning RWOPD doesn't directly learn C3 from scratch but rather preserves a good C3 dispatch distribution learned during curriculum SFT. The mechanism is "seed acquisition + filter-protected preservation."
  • JasperGold Dependence: Headline results rely on JasperGold for evaluation. While the open PEC is sound, it's not complete, leading to a potential underestimation of pass rates if only the open PEC is used for evaluation.
  • RL Family Scope: The study focuses on GRPO and IPO for RL baselines. Other RL algorithms (e.g., AWL, PPO) were not explored.
  • Model Scale: The findings are specific to the 7B+LoRA scale, and the effectiveness of verifier-based RL as a stand-alone method versus a filter for dense distillation might differ at larger scales.
  • Future Work: The authors suggest exploring stronger alt-generation models for creating multi-reference pools and investigating deeper axis LoRA adapter capacity or alternative training paradigms for further improvements.

Summary updated

BibTeX
@misc{zou2026reward,
  author = {Qingyun Zou and Yingze Li and Tianen Liu and Bingsheng He and Weng-Fai Wong},
  title = {{Reward-Weighted On-Policy Distillation with an Open Property-Equivalence Verifier for NL-to-SVA Generation}},
  year = {2026},
  eprint = {2605.13501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.13501},
}
Figure