AssertLLM2: A Comprehensive LLM Benchmark for Assertion Generation from Design Specifications

Yuchao Wu, Wenji Fang, Jing Wang, Wenkai Li, Ziyan Guo, Zhiyao XiearXiv 2026

TL;DR

AssertLLM2 is a new open-source benchmark designed to realistically evaluate how well Large Language Models (LLMs) can generate SystemVerilog Assertions (SVAs) from hardware design specifications. By testing state-of-the-art models across 83 system-level designs, the benchmark reveals a stark reality: while modern LLMs are excellent at generating syntactically correct code, they still struggle significantly to write assertions that actually catch functional hardware bugs.

What Problem Does This Paper Address?

In hardware engineering, Assertion-Based Verification (ABV) is critical. Engineers write formal properties (assertions) to ensure a chip's design matches its intended behavior. However, manually translating natural-language design specifications into formal SystemVerilog Assertions (SVAs) is a notorious bottleneck—it is labor-intensive, error-prone, and requires deep expertise.

While researchers have turned to LLMs to automate SVA generation, existing evaluation benchmarks suffer from three major flaws:

  1. Unrealistic Formulation: They often provide the LLM with the completed, "golden" RTL code to help generate assertions. In the real world, assertions are used to verify incomplete or potentially buggy RTL, making this setup unrealistic.
  2. Oversimplified Evaluation: They primarily check if the generated code compiles (syntax) or passes basic formal checks, ignoring whether the assertions actually have the teeth to catch real bugs.
  3. Limited Scale: They rely on small, module-level code snippets or messy, inconsistent raw PDFs that conflate an LLM's verification ability with its document-parsing ability.

Methods

AssertLLM2 establishes a more rigorous and practical evaluation pipeline. It splits assertion generation into two realistic scenarios:

  • Bug-prevention: Generating assertions purely from the design specification to guard against errors before the RTL code is fully baked.
  • Bug-hunting: Providing the LLM with both the specification and an implemented (but potentially faulty) RTL design to see if it can identify discrepancies.
Figure 1: Overview of the AssertLLM2 framework. Unlike prior benchmarks, AssertLLM2 adopts a more practical problem formulation, supports both bug-prevention and bug-hunting settings, provides richer benchmark instances, and enables more rigorous and faithful evaluation to better assess and guide LLM improvement.

To ensure high-quality inputs, the authors designed an LLM-assisted curation workflow that strips out redundancies from raw PDFs, turning them into standardized, structured textual specifications.

For evaluation, the framework goes far beyond syntax checks. It measures Cone-of-Influence (COI) coverage, proof coverage (what the formal solver actually needs), and a Mutation-Based Bug Kill Ratio. The authors built a pipeline that systematically injects localized functional bugs into the designs, filtering out invalid or equivalent mutations using formal equivalence checking (FEC). If an LLM-generated assertion fails on a buggy RTL variant, the bug is considered "killed."

Datasets

The authors introduce the AssertLLM2 dataset, which contains:

  • 83 real-world system-level designs spanning 13 functional categories (including CPU cores, cryptographic engines, DSP pipelines, and memory controllers).
  • Structured textual specifications paired with their original raw PDFs.
  • Verified golden RTL implementations alongside systematically mutated buggy RTL variants (20 single-bug variants and one five-bug variant per design).

With an average of 2,888 lines of code (LOC) per design, AssertLLM2 represents a massive step up in scale and complexity compared to prior snippet-based datasets.

Figure 2: Comparison of design-level scale (in both RTL lines and number of signals) across public assertion-generation benchmarks, where each point denotes a benchmark instance.

Key Insights and Ideas

  • The "Shallow Assertion" Trap: LLMs frequently generate assertions that are syntactically perfect and easily proven by formal tools, but functionally vacuous. They might check a simple local property (like an output being one-hot encoded) while completely missing deep behavioral requirements.
Figure 5: COI coverage versus proof coverage. A signal may lie in the structural COI of an assertion yet remain outside the proof core if the property constrains only shallow local behavior. Strengthening the property pulls more upstream logic into the proof core.
  • Syntax is a Deceptive Metric: Evaluating LLMs purely on syntax or structural reach (COI coverage) overestimates their utility. Leading models achieve over 90% syntax success, but their actual bug-hunting capabilities remain remarkably low.
  • Exploration vs. Precision: Different state-of-the-art models exhibit distinct generation philosophies. For instance, GPT-5.2 acts as a "precision-oriented" model (generating fewer, highly reliable assertions), whereas Claude-Sonnet-4.5 is more "exploratory," casting a wider net that sometimes introduces noise.
  • Buggy RTL is a Double-Edged Sword: In bug-hunting mode, providing the LLM with a faulty RTL implementation helps it pinpoint errors in smaller designs by highlighting explicit discrepancies. However, on larger, complex designs, the buggy code often misleads the LLM, causing it to hallucinate assertions that match the faulty behavior instead of the specification.

Key Results

The authors benchmarked six leading LLMs (including Gemini-2.5-Pro, Claude-Sonnet-4.5, GPT-5.2, and DeepSeek-V3.2).

  • While commercial models approached 95% syntax success and achieved over 60% COI coverage, their actual verification performance was surprisingly weak.
  • Under the default single-run setting, the bug kill ratio peaked at just 11.69% (achieved by Claude-Sonnet-4.5).
  • Even in a "union" setting—where assertions from three independent generation attempts were combined to maximize coverage—the highest bug kill ratio only reached 18.51% (Gemini-2.5-Pro).

Limitations and Future Work

While AssertLLM2 provides a much-needed reality check for the field, it relies on AST-level mutations to generate bugs. While highly scalable, these mutations primarily capture localized faults rather than complex, distributed system-level bugs that span multiple modules.

The authors note that future work must focus on enhancing the deep reasoning capabilities of LLMs. To be truly useful in industrial hardware verification, models need to better navigate conflicting information between specifications and implementations without being easily misled by buggy code.

Summary updated

BibTeX
@misc{wu2026assertllm,
  author = {Yuchao Wu and Wenji Fang and Jing Wang and Wenkai Li and Ziyan Guo and Zhiyao Xie},
  title = {{AssertLLM2: A Comprehensive LLM Benchmark for Assertion Generation from Design Specifications}},
  year = {2026},
  eprint = {2605.27472},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.27472},
}
Figure