ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsMaterial3 min readDisconfirmAI Editorial

When the same LLM writes both the code and its tests: measured verification gaps in post-quantum hardware

Researchers at Lucid Motors and EYL Inc. published a preprint measuring how LLM-generated RTL verification fails when the same agent produces both the hardware description and its validation evidence. Across three RTL modules, existing simulation gates killed only 76% of 399 netlist mutants, and undirected whole-design review caught two verifier flaws in only 3 of 6 and 1 of 6 sessions respectively. Module-scoped review succeeded in all 54 sessions, while formal checks were needed to detect planted key-custody flaws that even scoped review missed in 17 of 20 sessions.

2026-11-24 05:19 GMT+8

As LLM agents increasingly generate register-transfer-level hardware descriptions alongside the tests and reviews that validate them, a structural problem emerges: the evidence proving the code works was produced by the same system that wrote the code. Researchers at Lucid Motors and EYL Inc. set out to measure how much this self-generated evidence actually catches, and published their findings in a November 2026 preprint titled "From FIPS to FPGA with LLM Agents: Measuring What Tests and Reviews Miss in Post-Quantum Cryptographic Hardware."

Their seven-stage verification-gated workflow was developed during a port of an ML-KEM-768 and ML-DSA-65 post-quantum cryptographic accelerator to a 300 MHz Zynq UltraScale+ key-custody card. All six cryptographic operations achieved byte-exact results on the board, and the design passed all 85 interface-applicable NIST ACVP test cases out of 285, plus 484 ML-DSA known-answer tests. On the surface, the implementation looked correct.

The researchers then audited this apparent success with independent evidence: tool-selected netlist mutants, flaw replays, and formal checks. The results exposed significant gaps. Across three RTL modules, the existing simulation gates killed only 76% of 399 tool-selected netlist mutants. When the team derived new tests from the specification guided by the surviving mutants, the fresh-draw decapsulation kill rate improved from 48% to 74%. Passing module tests, in other words, overstated the actual verification strength.

Sign in / Sign up
ReadingResearchRadarInvestment framework

The review findings were sharper. In pre-registered single-model replays on flaws that known-answer tests could not detect, undirected whole-design review caught two verifier flaws in only 3 out of 6 sessions and 1 out of 6 sessions respectively. Module-scoped review, by contrast, caught every known flaw across all 54 sessions. The scoping mattered enormously: asking an LLM to review an entire design produced unreliable detection, while constraining its attention to individual modules produced consistent results.

Even module-scoped review had a ceiling. When the team planted key-custody flaws specifically, scoped review detected them in only 3 out of 20 sessions. Formal checks, including one added specifically for the replay experiment, flagged every planted flaw. The authors concluded that trustworthy agentic hardware needed three distinct mechanisms: author-independent mutants to validate test gates, module-level scoping for LLM review, and formal checks for custody invariants.

The practical implication is that no single verification approach suffices when LLM agents generate both code and evidence. Test gates must demonstrate they can fail on injected faults before they can certify correctness. Review agents must be scoped narrowly enough to maintain attention on specific modules rather than drowning in whole-design context. And for security-critical invariants like key custody, formal methods remain necessary because LLM review—even well-scoped—misses a majority of planted flaws. The study is a preprint with first-party benchmarks on one specific workflow, so these numbers should be treated as evidence for this particular design and model configuration rather than universal constants, but the structural insight about scoping and formal checks transfers to any agentic hardware verification pipeline.

Sources

  • semiengineering.com↗
Continue researching →