TRANSMISSION // 2609.33699v2

Can Language Models Actually Read Hardware Specifications?

Source published

A new benchmark separates reading hardware requirements from writing circuit code. Its first test finds substantial errors in one small model, especially overconfident claims that compliant designs violate specifications.

AI-generated conceptual illustration for Can Language Models Actually Read Hardware Specifications?
AI-generated conceptual illustration; not documentary evidence.

A model can produce faulty hardware code because it misunderstood the instructions—or because it understood them but failed to implement them. SpecRead tests the reading itself, and its initial evaluation reveals a striking tendency to flag compliant designs as incorrect.

Separating reading from writing

When a language model generates an incorrect hardware design, the failure can be hard to diagnose. It may have misread a requirement, or it may have understood the requirement but struggled to express it in code. Most hardware-design benchmarks test the finished code, leaving these possibilities tangled together.

SpecRead, a benchmark introduced by Feilian Huang and Yujia Liu, focuses instead on whether models can interpret hardware specifications. The idea is to test the reading step directly: retrieve a stated fact, connect information across sections, identify contradictions, or check whether a piece of circuit code matches the written requirements.

The benchmark’s version 2.2 contains 383 questions drawn from 10 open-source OpenTitan hardware blocks. It also includes 41 suspicious-looking but consistent specification passages, and 41 examples of RTL—hardware description code—that is consistent with its specification. These controls help reveal whether a model is detecting genuine problems or simply treating unusual details as evidence of an error.

Tests from facts to circuit behavior

The questions cover four tasks. The first asks for an exact fact, such as a value stated in a passage. The second requires combining information across sections. The third tests whether a model can find contradictions inserted into otherwise real specification text. Researchers create these contradictions by changing numbers, reversing rules, making cross-references conflict, or removing conditions.

The fourth task asks whether an RTL excerpt remains consistent with its specification. Researchers make small changes to real code and use Icarus Verilog simulation to check that the changes alter observable behavior. They then ask the model to judge the code against the written requirements. A changed simulation result does not by itself prove a specification violation: behavior may be unspecified. The paper says each retained example was also paired with a specific requirement that the mutation was judged to violate.

Answers are scored with deterministic checks. The main scoring is conservative: borderline cases, including some responses whose quoted location only partly matches the target, count as wrong. The authors also report a more lenient scoring analysis, making the sensitivity to this choice visible.

A model that often sees violations everywhere

The authors tested one small model, Ministral-3B, and it answered 129 of the 383 questions correctly under the main scoring: 33.7%. That is an initial measurement, not a comparison across a range of models.

A notable problem was over-flagging. On the 41 consistent-RTL control examples, the model called every one a violation. Combining those controls with the altered-code cases, its decision about whether RTL was compliant was effectively no better than chance by the paper’s reported measures. It also flagged 21 of 41 self-consistent specification passages as contradictory.

On contradiction questions, the model’s verdict-plus-location accuracy was 48.0%. On spec–RTL questions, that measure was 65.6%, but it does not require the model to name the violation category correctly. Under the stricter full-credit scoring, accuracy on those two question types was lower: 24.6% and 26.0%, respectively.

A more detailed analysis suggests the model often located the right passage or code change but struggled to classify what kind of violation it represented. The authors present this as a hypothesis, not a settled explanation: category labels can overlap, and they have not been independently validated. The type-4 labels were not reviewed by a second annotator, another reason to interpret the fine-grained results cautiously.

What the benchmark can—and cannot—show

A small test comparing prompts with and without specification excerpts found that removing the excerpt sharply reduced performance on fact-retrieval questions. This supports the idea that those questions depend on the supplied text. It does not rule out a different form of memorization: a model might have encountered the original, unmodified OpenTitan material during training and use that knowledge to notice an inserted change.

The evidence is also limited in scope. Only one 3-billion-parameter model was evaluated, all source material comes from OpenTitan, and the tasks use English prose and register tables. The result cannot establish how larger models perform or whether the benchmark’s difficulty pattern generalizes to other projects. Simulation-verified changes are useful for building test cases, but they do not substitute for proving that a change violates a specification. And while type-3 items can be regenerated by injecting mutations, type-4 cases require hand-built testbenches and simulation checks.

SpecRead offers a way to ask a more precise question than “Can a model write hardware?”: can it reliably read the rules that hardware is meant to follow? The initial findings show why that distinction matters, while leaving the answer for stronger models and other projects open. The paper is a September 2026 arXiv preprint, not evidence of peer-reviewed consensus. Its dataset and scoring code are publicly released, but independent testing will be important, particularly for the disputed labels and the benchmark’s generality.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.