跳到正文
arXiv cs.AI· Feilian Huang, Yujia Liu·· 10 小时前AI 评分36

SpecRead:衡量语言模型是否理解硬件规格说明的基准

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

AI 导读

SpecRead 基准将规格理解能力从代码生成中剥离,其 v2.2 版本包含针对 10 个开源 OpenTitan IP 模块的 383 道题,覆盖精确检索、跨章节推理、变异规格矛盾检测和 spec-RTL 一致性检查四类,并配 41 个干扰项与 41 个一致 RTL 对照。

正文 · 原文

View PDF HTML (experimental)

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

From: Feilian Huang [view email]
[v1] Sun, 27 Sep 2026 16:00:47 UTC (20 KB)
[v2] Wed, 25 Nov 2026 08:57:43 UTC (20 KB)

来源:arXiv cs.AI · arxiv.org