HWRE-Bench: Can LLM Agents Understand Hardware They Did Not Design?

Peilong Zhou, Cangyuan Li, Kaiyan Chang, Ying WangarXiv 2026

Imagine you’re a digital archaeologist. You’ve just unearthed a complex, microscopic city—a silicon chip. You have no blueprints, no street signs, and all the inhabitants (the signals) speak in a cryptic language of ones and zeros. Your job is to figure out not just how this city is built, but what it actually does.

This is the world of Hardware Reverse Engineering (HWRE), and until now, it was a feat reserved for the most patient human experts. A new paper from researchers at the Chinese Academy of Sciences asks a provocative question: Can our new AI agents do this job for us?

TL;DR

While we’ve spent the last year teaching LLMs how to write hardware code, this paper introduces HWRE-Bench to see if they can read it. The researchers found that AI agents are surprisingly adept at the "mechanical" parts of digital archaeology—like turning a physical layout back into a circuit diagram—but "understanding" the high-level logic remains a subtle, moving target.

What Problem Does This Paper Address?

In the world of hardware design, information only flows one way: downhill. You start with a high-level specification (the "intent"), turn it into Register Transfer Level (RTL) code, then a gate-level netlist (a map of logic gates), and finally a physical layout (the GDSII file).

At every step, you lose information. Names of signals vanish; hierarchical structures are flattened; the "why" is stripped away until you’re left with nothing but a sea of geometric shapes.

Existing AI benchmarks focus on the "forward" flow—asking AI to design something new. But real-world engineering often requires the "reverse" flow: auditing a chip for security backdoors, writing drivers for undocumented parts, or fixing bugs in legacy hardware. This paper fills that gap by creating a playground for agents to prove they can reconstruct the "intent" from the "artifact."

Figure 1: HWRE-BENCH on one real run. (a) The agent receives an implemented design, here the sanitized sky130 layout of the original xbar design at information-loss level L1; the gray chain above it shows what the forward flow threw away. (b) An excerpt of a passing GPT-6.1-sol run on the layout audit task: the agent’s own step headings (italic) and the commands it ran (abridged), each colored by the stage our annotation rules assign (Section 4); the barcode below shows every tool call of the 48-minute run. (c) The deliverable is graded on hidden checks, and every task must pass four controls. The red path is the transcription shortcut that the controls close: reusing the extracted netlist gives a reward of 0.

Methods

The researchers built HWRE-Bench, which challenges agents across five tracks:

  1. Extract: Turn a layout back into a netlist.
  2. Abstract: Recover the high-level parameters (e.g., "Is this a 16-bit or 32-bit adder?").
  3. Audit: Find hidden defects or "bugs" planted in the hardware.
  4. Interoperate: Write a software driver for a piece of hardware the agent has never seen.
  5. Modify: Perform a "surgical" repair on a broken netlist.

To keep the agents honest, they introduced a "mandatory negative control." If an agent simply copies the netlist it was given without adding new understanding, it gets a score of zero. They also used "stage annotation," tracking whether the agent was spending its time reading files, simulating the circuit, or actually writing code.

Datasets

The benchmark uses original, parameterized designs rather than common open-source ones (to prevent the LLM from simply "remembering" the answer from its training data). The "seed" tasks include:

  • xbar: A complex communication hub (crossbar) for chips.
  • pmover: A DMA peripheral used for moving data.
  • pkr: A packet rewriter.

These designs are "sanitized" to different levels of difficulty, ranging from L0 (some names preserved) to L3 (completely anonymous cells where even the function of a gate must be guessed from its transistor geometry).

Figure 2: What the agent receives for the xbar seed design (2,072 standard cells, 188 flip-flops). (a) The sanitized sky130hd layout: top renamed, every internal name and property removed, instance order shuffled; colors show cell classes recovered from the cell library, gray strokes are met3/met4 routing. (b) A 14 µm window of the full geometry that extraction must interpret. (c) The fan-in cone of one output port in the netlist extracted from (a), whose nets are anonymized (n1. . . n2073).

Key Insights and Ideas

  • Layout is not the bottleneck: This was the biggest surprise. You might think looking at a mess of wires is the hard part, but agents were actually quite good at writing their own scripts to "extract" the logic from the layout. In one case study, an agent recovered a cycle-exact model of an accelerator from a 7nm layout in under ten minutes.
  • Pass rates can be "fake": The researchers found that if the task description (the "spec") is too detailed, the agent will just build a model based on the text and ignore the hardware entirely. They call this "solving without understanding."
  • Obfuscation is currently toothless: They tried "scrambling" the circuits (keyless obfuscation) to see if it would trip up the AI. It didn't. The agents were able to map the scrambled internal states back to the functional specification regardless of how messy the "wiring" looked.
  • The "Safety Filter" Tax: Interestingly, 16% of one agent's runs were killed not by technical failure, but by the AI provider's safety filters, which flagged "reverse engineering" as potentially malicious activity.

Key Results

  • Reliability: Agents audited sanitized layouts almost as reliably as they did clean netlists, though it took about 27% more "turns" (steps in the conversation) to get there.
  • Strategy Matters: As shown in the "barcode" trajectories, different agents have different "personalities." Some spend a lot of time on structural analysis (reading the map), while others prefer "behavioral probing" (poking the circuit with inputs to see what happens).
Figure 3: Share of tool calls per reverse-engineering stage, pooled over valid runs (numbers are percentages ≥9). sol = GPT-6.1-sol, DS = DeepSeek-flash. On the same xbar design, task revision 4 moved sol from structural analysis (33%) to authoring a model from the specification (71%).

Limitations and Future Work

The authors are the first to admit this is a pilot. The study only looked at three designs and two major agents (GPT-6.1-sol and DeepSeek-flash).

Future work needs to tackle analog layouts—which are much messier than the "digital" ones used here—and more complex "logic locking" (where the chip is literally locked with a secret key). There's also the "dual-use" elephant in the room: the same tools that help an engineer audit a chip for safety could, in theory, help a bad actor find a vulnerability. The authors argue that by measuring how "cheap" reverse engineering has become, they are helping defenders understand which protections actually still matter.

Summary updated

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.
BibTeX
@misc{zhou2026hwre,
  author = {Peilong Zhou and Cangyuan Li and Kaiyan Chang and Ying Wang},
  title = {{HWRE-Bench: Can LLM Agents Understand Hardware They Did Not Design?}},
  year = {2026},
  eprint = {2611.30422},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30422},
}
Figure