ChiProgramBench: Can LLM Agents Rebuild Efficient Circuits from Pin-Level Experiments?
Organizations: UniPat AI · The University of Hong Kong
Abstract
Understanding a system that can be run but not inspected is a core engineering skill: one designs experiments, forms hypotheses about hidden state and timing, discards those that observations refute, and finally builds a replacement that works and is efficient. To evaluate this capability of LLM agents in the hardware domain, we present ChiProgramBench, 18 tasks derived from open-source processors, accelerators, codecs, transforms, interconnects, and control circuits. Agents can only drive and read the pins of a hidden, stateful simulated reference, then submit a gate-level netlist made of public library cells. Agents work in two settings: black-box discovery gives only anonymized functional pins and the interfaces of fixed memories, while function-guided reconstruction adds the circuit's purpose and each pin's role. Hidden test cases compare outputs with the reference cycle by cycle; power, delay, and area earn credit relative to the reference only when every case passes. Across 432 trials of 6 LLM agent configurations, successful agents recover algorithms and numerical conventions, yet only 12.0% of black-box and 14.8% of function-guided trials pass every case. Function-guided reconstruction raises the mean functional score, the cycle-weighted share of passed cases, from 24.6% to 30.9%. Of the 58 fully passing designs, only three improve on the reference's combined power, area, and delay, so behavioral recovery and efficient implementation remain distinct challenges.
Figures & tables
| Task | Circuit | Cells (k) | Cases | Cycles (k) |
| CPUs and GPUs | ||||
| CV32E40P [ 35 ] | RISC-V core | 61.0 | 396 | 163.8 |
| VeeR EH1 [ 36 ] | RISC-V core | 174.5 | 142 | 51.6 |
| Vortex [ 37 ] | GPGPU | 619.2 | 163 | 111.0 |
| VeriGPU [ 38 ] | GPU | 6.7 | 147 | 924.5 |
| ML accelerators | ||||
| All 36 trials | Full passes only | ||||||||
| Model | Full passes | Steps | Probe | ||||||
| Black-box discovery | |||||||||
| GPT-6-Astra | 0.484 | 0.743 | 12/36 | 456 | 61 | 1.334 | 1.424 | 0.990 | 0.532 |
| Claude Opus 5.5 | 0.443 | 0.645 | 14/36 | 279 | 53 | 1.194 | 1.643 | 0.976 | 0.523 |
| Kimi K3.1 Pro | 0.023 | 0.047 | 0/36 | 754 | 58 | – | – | – | – |
| DeepSeek V4.1 Flash | 0.016 | 0.032 | 0/36 | 749 | 145 | – | – | – | – |
LLM Agent Evaluation
Large language model agent evaluation measures whether tool-using systems complete tasks reliably, safely, and efficiently.
See all 1,334 papers