TL;DR
Translating natural language into hardware verification rules (SystemVerilog Assertions, or SVAs) is notoriously fragile: language models often memorize syntactic templates while missing the underlying timing logic. By pairing an open-source formal logic verifier with on-policy knowledge distillation, the authors train a compact 7B model that doesn't just mimic reference text—it learns semantic equivalence. Remarkably, this lightweight student ends up outperforming both its 14B specialized teacher and massive 671B general-purpose models.
What Problem Does This Paper Address?
When designing computer chips at the register-transfer level (RTL), engineers write SystemVerilog Assertions (SVAs) to formally verify that hardware behaves safely over time—for instance, ensuring a request signal is always acknowledged within three clock cycles. Writing SVAs by hand from natural language (NL) specifications is tedious and error-prone, making it an appealing target for LLMs.
While existing specialized models score around 76% accuracy on standard benchmarks, that aggregate number hides a subtle failure mode the authors call template collapse. Models overproduce familiar, basic implication structures even when a specification demands complex multi-cycle delays (bounded temporal rules) or unbounded future guarantees (liveness rules).
Why? Standard supervised fine-tuning (SFT) rewards token-by-token text matching against a single reference. Yet SVA correctness is purely semantic: two assertions that look completely different syntactically can be logically identical, while changing a single timing operator ruins the property. On the flip side, pure reinforcement learning with formal verifiers gives a binary or scalar pass/fail score at the end, offering sparse guidance on which specific tokens went wrong.
Methods
To get both semantic accuracy and dense, token-level guidance, the authors introduce a two-stage pipeline culminating in Reward-Weighted On-Policy Distillation (RWOPD), training a Qwen2.5-Coder-7B student (via LoRA, updating just 0.53% of parameters) from a frozen CodeV-SVA-14B teacher.
Here is what makes the pipeline tick:
- Open Property-Equivalence Checker (New): Commercial hardware verifiers like Cadence JasperGold are expensive and bottlenecked by licenses. For training, the authors built a fast, license-free bounded model checker using open-source tools (SymbiYosys + Z3). It checks candidate SVAs against reference assertions in both logical directions, outputting granular verdicts: equivalent, one-sided implication (either too permissive or too restrictive), not equivalent, or unsupported (abstaining on unbounded liveness rules).
- Curriculum SFT with Temporal Weighting: Before distillation, the student is warmed up across three progressive stages—combinational (no timing), bounded temporal, and liveness—using replay buffers to prevent forgetting, while multiplying the cross-entropy loss by $3\times$ on temporal operator tokens.
- Reward-Weighted OPD (New): In standard On-Policy Distillation (OPD), the student generates its own outputs (rollouts), and a teacher provides token-by-token probability targets along those exact prefixes. Notice the clever asymmetry here: the frozen teacher gets to see the ground-truth reference assertion in its prompt, acting as an oracle guide! RWOPD filters and weights these rollouts using the open checker: exact equivalents get a weight of
1.0, partial one-sided implications get0.6or0.4, and broken or unsupported rollouts are dropped.
Datasets
No new evaluation benchmarks were introduced; instead, the authors strictly separated existing training and evaluation suites:
- Training: Models were trained on the released
CodeV-SVA-14Btraining split. - Evaluation: Final testing used the NL2SVA-Human (79 human-written tasks) and NL2SVA-Machine (300 tasks) benchmarks from the FVEval suite, evaluated with industry-standard Cadence JasperGold to ensure fair comparison with prior work.
Key Insights and Ideas
- Partial credit solves the cold-start problem: Early in training, a student rarely generates strictly equivalent assertions. Retaining one-sided logical implications (with lower weights) gives the distillation loop enough valid contexts to learn from, raising the rollout acceptance rate from ~32% to ~80% over 200 steps.
- Verifiers work better as filters than solo teachers: In controlled comparisons starting from the exact same SFT seed, using the verifier's scalar rewards for reinforcement learning (GRPO) or preference optimization (IPO) yielded smaller gains than using the verifier to gate dense, token-level teacher distributions.
- Cross-class generalization without direct verifier supervision: Even though the open-source training checker abstains on unbounded liveness properties, the RWOPD student still achieved massive gains on liveness tasks at test time—suggesting that curriculum warmup plus cleaner bounded-temporal distillation transfers structural discipline across classes.
Key Results
Evaluated with JasperGold across 32 samples per task, the 7B RWOPD student achieves the highest reported scores on every metric across both benchmarks, beating its 14B teacher and giant general-purpose models like DeepSeek-R1-671B and GPT-5.
- Headline Accuracy (
pass@1): RWOPD hits 78.8% on NL2SVA-Human and 87.0% on NL2SVA-Machine—an absolute +3.0% jump over itsCodeV-SVA-14Bteacher (75.8% / 84.0%) on both splits, and beatingDeepSeek-R1-671B(74.6% / 81.0%). Atpass@10, RWOPD reaches 93.4% (Human) and 98.8% (Machine). - Breaking Template Collapse: Looking at NL2SVA-Machine by complexity, RWOPD matches the 14B teacher on easy combinational rules (92.6%), while surging ahead by +7.5% on bounded temporal assertions (83.0% vs. 75.5%) and +11.4% on hard liveness assertions (46.9% vs. 35.5%).
- Zero False Positives in Checker Audit: Across 379 audited outputs, every single assertion strictly accepted by the open SymbiYosys+Z3 checker (144 total) was confirmed equivalent by commercial JasperGold.
Limitations and Future Work
- Heuristic Weights: The
1.0 / 0.6 / 0.4rollout weights were chosen heuristically rather than derived theoretically or isolated via symmetric-weight ablations. - Bounded Checker Scope: The open verifier only checks bounded horizons and abstains on unbounded liveness operators (
s_eventually,s_until), meaning liveness improvements rely indirectly on curriculum SFT and general representation improvements rather than direct verifier filtering. - Statistical Overlap & Scope: Because NL2SVA-Human has only 79 tasks, 95% bootstrap confidence intervals overlap between adjacent methods (e.g., OPD vs. RWOPD), and experiments were constrained to a single 7B+LoRA student architecture. Comparing RWOPD against recent hybrid sequential RL-plus-distillation pipelines remains open for future work.
Summary updated