AIFeed

SpecRead: A Benchmark for Measuring Whether Language Models Understand Hardware Specifications

Summary

arXiv:2609.33699v2 Announce Type: replace-cross Abstract: Existing benchmarks for large language models (LLMs) in hardware design evaluate downstream artifacts such as generated RTL, assertions, or testbenches. When a model fails, it may have misread the specification or understood it and failed to write the code. We present SpecRead, a benchmark that isolates specification comprehension from generation ability. SpecRead v2.2 contains 383 questions over 10 open-source OpenTitan IP blocks in four types: exact retrieval, cross-section reasoning, contradiction detection in mutated specifications, and spec-RTL consistency checking, plus 41 distractor controls and 41 consistent-RTL controls. Type-4 items use real RTL mutations retained only when Icarus Verilog simulation shows a behavioral change. A with-spec vs. without-spec ablation suggests the questions require the excerpt rather than training recall alone, though it does not rule out memorization of the unmutated source text helping a…

Original text(via arXiv cs.SE)

Computer Science > Artificial Intelligence

Title:SpecRead: A Benchmark for Measuring Whether Language Models Understand Hardware Specifications

Abstract:Existing benchmarks for large language models (LLMs) in hardware design evaluate downstream artifacts such as generated RTL, assertions, or testbenches. When a model fails, it may have misread the specification or understood it and failed to write the code. We present SpecRead, a benchmark that isolates specification comprehension from generation ability. SpecRead v2.2 contains 383 questions over 10 open-source OpenTitan IP blocks in four types: exact retrieval, cross-section reasoning, contradiction detection in mutated specifications, and spec-RTL consistency checking, plus 41 distractor controls and 41 consistent-RTL controls. Type-4 items use real RTL mutations retained only when Icarus Verilog simulation shows a behavioral change. A with-spec vs. without-spec ablation suggests the questions require the excerpt rather than training recall alone, though it does not rule out memorization of the unmutated source text helping a model spot mutations. Ministral-3B scores 33.7% overall (129/383). On t3, verdict-plus-location accuracy is 48.0% with a 51.2% distractor false-positive rate. On t4, the violation-vs.-compliant decision is effectively degenerate (MCC -0.06, balanced accuracy 49.5%), flagging all 41 consistent-RTL controls; location accuracy remains measurable at 79.2%. Layered scoring suggests, as a hypothesis, that the fine-grained violation taxonomy is the hard part, though the category labels are not independently validated. A rule-table prompting intervention on a 60-question sample lowers accuracy on every type except t2 (tied). SpecRead is automatically scorable by deterministic checks, with gray-zone cases counted wrong under the conservative main scoring, regenerable for type-3 items via mutation injection, and built exclusively from public sources.
Comments:13 pages. Benchmark data and code at this https URL
Subjects:Artificial Intelligence (cs.AI) ; Software Engineering (cs.SE)
Cite as:arXiv:2609.33699 [cs.AI]
(or arXiv:2609.33699v2 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2609.33699 arXiv-issued DOI via DataCite

Submission history

Access Paper:

  • HTML (experimental)

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by arXiv cs.SE
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗