HWRE-Bench: Can LLM Agents Understand Hardware They Did Not Design?
Organizations: SKLP, Institute of Computing Technology, Chinese Academy of Sciences · University of Chinese Academy of Sciences · School of Advanced Interdisciplinary Sciences
Abstract
Hardware benchmarks for LLM agents all run the design flow forward, from a specification to RTL, a layout or a bug fix. We ask the reverse question: given an implemented artifact, such as a layout, a gate-level netlist or a protected simulation model, can an agent work out what it does well enough to act on that knowledge? We introduce HWRE-Bench, a benchmark for agentic hardware reverse engineering built on one observation. Each step of the forward flow discards information (names, hierarchy, word-level structure, generator parameters, the programming model), and a reverse-engineering task asks the agent to recover what was lost and to prove it with an executable deliverable that the artifact alone cannot supply. Since layout extraction is now mechanical and a correct netlist is already a cycle-exact model, every task carries a mandatory copy-the-netlist control that must score zero. HWRE-Bench spans five tracks (Extract, Abstract, Audit, Interoperate, Modify), four information-loss levels and white- versus black-box access, all on original designs. We report a pilot of 148 rollouts from two agents on four seed tasks under 16 conditions, with stage-annotated trajectories. Agents built their own layout extractors and audited a sanitized layout as reliably as a netlist, at about 27% more turns. Keyless, equivalence-preserving obfuscation changed neither pass rates nor defect-repair scores. Whether agents read the structure at all depended on task framing rather than on necessity, so pass rate alone does not show understanding. Provider safety filters stopped 16% of one agent's runs on the audit tasks. These results argue for deliverables beyond equivalence and for reporting run validity explicitly.
Figures & tables
| HW | Agent | Rev. | Layout | Exec. | Anti- | |
|---|---|---|---|---|---|---|
| input | deliv. | copy | ||||
| VerilogEval, RTLLM | ✓ | ✗ | ✗ | ✗ | ✓ | ✗ |
| CVDP, HWE-Bench | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ |
| PDAgent, CLOSER | ✓ | ✓ | ✗ | ✓ | ✗ | |
| GNN-RE, Gamora | ✓ | ✗ | ✓ | ✗ | ✗ | ✗ |
| GenEDA | ✓ | ✗ | ✓ | ✗ | ✗ |
| Condition | Agent | Slots | Pass / valid | Pass rate [95% CI] | Turns | Minutes | Tokens (M) | Artifact reads |
| Audit: specification vs. implementation (xbar, 8 seeded defects) | ||||||||
| Netlist, task rev. 2–3 | sol | 10 | 6/9 | 0.67 [0.35, 0.88] | 42 | 25 | 2.9 | 16 |
| Netlist, task rev. 4 | sol | 7 | 3/5 | 0.60 [0.23, 0.88] | 49 | 25 | 4.2 | 5 |
| Sanitized GDS (L1) + PDK | sol | 7 | 2/4 | 0.50 [0.15, 0.85] | 62 | 37 | 5.4 | 10 |
| Audit under keyless obfuscation (xbar rev. 4) | ||||||||
| V0r re-sanitized | sol | 6 | 2/5 | 0.40 [0.12, 0.77] | 41 | 27 | 3.0 | 6 |
| Agent | Launched | Valid | Refusal | Agent/API | Sandbox |
|---|---|---|---|---|---|
| GPT-6.1-sol | 78 | 47 | 7 | 14 | 10 |
| DeepSeek-flash | 70 | 54 | 0 | 5 | 11 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Task | Given | Graded on |
|---|---|---|
| xbar audit | spec; netlist or L1 GDS + PDK; 3 golden traces | TB passes golden on 3 seeds, 9/10 coverage points, kills shipped and hidden mutants; 8 isolated reproducers |
| xbar repair | spec; defective netlist (V0/V0r/T2 3/W25); replay tool | per-defect replay vs. golden (0–8); pass = 8 |
| pmover driver | L1 GDS + PDK; Verilator co-sim harness; C API | 30 hidden scenarios over init, copy, scatter-gather, checksum and error reporting; pass = 30/30 |
| pkr audit | spec; protected Verilator model with 8 bugs | sign-off TB plus 8 directed tests; 60 hidden checks; pass = 60/60 |
LLM Agent Evaluation
Large language model agent evaluation measures whether tool-using systems complete tasks reliably, safely, and efficiently.
See all 1,334 papers