Robustness of LLM-Generated SystemVerilog Assertions to Semantics-Preserving RTL Transformations

The work

AuthorsFNU Aditi
Editors
Typemisc
Year2026
Citekeyaditi2026robustness

Identifiers

arXiv2609.05658 from its landing_page_url

Empty on purpose

container

Related

Distinct fromcheng2023seer
Distinct frompulavarthi2025are

From bibtex.

Abstract

Large language models (LLMs) are increasingly being explored for automating SystemVerilog Assertion (SVA) generation, yet most evaluations report correctness on a single syntactic representation of an input. Such point accuracy does not reveal whether a model's correct output is stable when the same RTL behavior is written differently. This paper presents a controlled metamorphic evaluation of LLM-based SVA generation under semantics-preserving RTL transformations. Starting from the VERT dataset, we construct a quality-filtered conditional-control pool and a stratified 40-program evaluation set containing 295 assignment behaviors. We evaluate two open code models, Qwen2.5-Coder-7B and DeepSeek-Coder-V2-Lite, with an identical evaluation prompt and greedy decoding. Three transformations are studied: operand reordering, deterministic identifier renaming, and redundant parenthesization. Beyond baseline and transformed accuracy, we measure conditional robustness, invariance failure, and any-flip rate, with 10,000-sample clustered bootstrap intervals at the RTL-program level. Across all six model-transformation conditions, 9.7%-27.0% of behaviors that were correct on the original RTL become incorrect after a semantics-preserving transformation. Aggregate accuracy can therefore hide substantial instability: under identifier renaming, DeepSeek-Coder-V2-Lite improves from 53.9% to 63.7% accuracy while 19.5% of its originally correct behaviors fail. Manual review of 30 sampled correct-to-wrong transitions identifies dropped path predicates, branch-polarity errors, Boolean-structure corruption, and output-contract violations. The results show that point accuracy alone is insufficient for characterizing LLM reliability in assertion generation and motivate robustness-aware evaluation for AI-assisted hardware verification.

A copy is held

pdf, 439.8 kB. Not published — it may be under copyright. The facts and links here are.

How it got here

How it got hereagent via bibtex
Added2026-09-18 00:43 UTC
Approved bya person 2026-10-05 21:19 UTC

Cite it as

@misc{aditi2026robustness,
  title        = {Robustness of LLM-Generated SystemVerilog Assertions to Semantics-Preserving RTL Transformations},
  author       = {FNU Aditi},
  year         = {2026},
}

This record lives at https://refs.drheap.org/aditi2026robustness/ and will keep doing so.