TL;DR
Designing custom AI chips (NPUs) for Large Language Models usually means playing an expensive game of "hot or cold" with slow hardware simulators that only tell you how fast a chip is, not why it’s slow. CriticNPU pairs an LLM-based hardware planner with a physics-grounded "mechanistic critic" that understands actual hardware bottlenecks. The result? Optimal or near-optimal chip designs using roughly half the simulation budget of standard optimization methods.
What Problem Does This Paper Address?
Imagine trying to tune a Formula 1 car blindfolded, where your only feedback after each test lap is a single stopwatch reading. That is essentially Design-Space Exploration (DSE) for Neural Processing Units (NPUs). Engineers adjust coupled parameters—systolic array counts, clock speeds, memory bandwidth—under strict power budgets to minimize latency.
To make matters harder, LLM inference is actually two very different workloads wearing a trench coat:
- Prefill (reading your prompt, measured by Time-To-First-Token or TTFT), which usually craves raw math compute.
- Decode (generating tokens one by one, measured by Time-Per-Output-Token or TPOT), which usually starves for memory bandwidth.
Adding more compute units when your chip is bottlenecked by memory is just burning power for zero speedup. Standard black-box optimizers (like Bayesian Optimization) burn hundreds of expensive simulator calls just figuring out these basic rules of physics, while pure LLM-driven design agents often hallucinate hardware math and wander aimlessly.
Methods
Instead of relying purely on black-box trial-and-error or LLM intuition, the authors introduce CriticNPU, a three-part loop centered around an online-calibrated Roofline model acting as a mechanistic critic.
- Compute Demand Agent (LLM): Because LLM architectures evolve constantly, hand-coding workload parsers is brittle. An LLM agent reads the model spec and extracts an operator-level profile of math operations (FLOPs) and memory traffic (Bytes).
- Online-Calibrated Roofline Critic (Physics + Math): A standard Roofline model bounds performance using theoretical peak compute and memory bandwidth. However, real workloads never hit theoretical peaks—matrix multiplications get close, while attention layers stall on softmax dependencies. After each simulation, the critic learns per-operator efficiency factors (updating via an exponential moving average) to establish realistic, calibrated ceilings for each operator type. It then plays two roles:
- Role 1 (Bouncer): Before running an expensive simulation, it predicts if a proposed chip will beat the current best. Weak candidates get skipped immediately.
- Role 2 (Diagnostician): After a simulation, it digests raw operator runtimes into a plain-English bottleneck summary with deterministic counterfactuals (e.g., "Prefill is 60% compute-bound; dropping clock speed to add two systolic arrays will cut latency by ~12% within power limits").
- Architecture Design Agent (LLM): Armed with this deterministic physics cheat-sheet, the LLM proposes the next NPU configuration.
Datasets
Rather than traditional static datasets, DSE methods are evaluated on hardware simulation workloads. Using the analytical NeuSIM simulator, the authors evaluate CriticNPU across six open-weight LLM specifications spanning dense Transformers and Mixture-of-Experts (MoE) architectures:
- Llama3-8B, Llama2-13B, Llama3-70B, and Llama3.1-405B
- DeepSeek-V2 (236B) and DeepSeek-V3 (671B)
Each model is tested across 16 deployment settings (varying chip counts from 8 to 64, parallelism strategies, batch sizes, and power caps) for both disaggregated prefill and decode chips—totaling 96 distinct optimization tasks per phase. No new benchmarks are introduced.
Key Insights and Ideas
- Let LLMs plan, let equations calculate: When tested head-to-head against GPT-5.4-mini on predicting latency changes, the simple calibrated Roofline model crushed the LLM across the board. Left to its own devices, the LLM hedged by echoing reference latencies, missing the directional signals needed to guide search.
- Global hardware peaks lie; per-operator ceilings tell the truth: On Llama3-8B prefill, FFN layers reached 54% of peak compute, while attention layers hit only 15%. Calibrating efficiency per operator type shifts the compute-vs-memory crossover point individually for different operations, preventing the planner from optimizing the wrong hardware resource.
- Bad absolute predictions can still make great filters: Theoretical models systematically underestimate absolute latency, yet CriticNPU's surrogate still correlates positively with simulator rankings (Kendall's $\tau \approx 0.41$). To be a good gatekeeper, you don't need to know exact lap times—you just need to reliably spot slow cars before they hit the track, pruning roughly half of all proposed simulations.
Key Results
- High win rates at half the cost: CriticNPU achieves best-or-tied-best latency in 74.0% of prefill and 87.5% of decode settings, averaging just 54 simulator calls per run (never exceeding 100).
- Efficiency over classical baselines: Bayesian Optimization and Greedy search achieve comparable design quality (all three land within ~1.2% of the universal best latency on average), but require 2.2–2.4× more simulator calls (117–130 calls).
- Crushing pure LLM baselines: Simulator-free LLM design (ChatDSE) won 0/16 settings across all models (averaging 3.5× worse latency than optimal), while unguided simulator-in-the-loop LLMs (LLM-DSE, LLM-Box) burned ~100–117 calls for significantly worse designs.
Limitations and Future Work
- Simulation-bound: Everything is evaluated inside an analytical simulator (NeuSIM) without physical RTL implementation or silicon tape-out. While online calibration adapts to simulator quirks, it cannot fix systematic simulator blind spots.
- Irregular MoE dynamics: CriticNPU struggled on DeepSeek-V3 671B decode (winning 8/16 vs. Bayesian Optimization's 15/16). Simple compute/bandwidth scaling doesn't capture dynamic MoE routing, expert load imbalance, or irregular cross-expert communication. Expanding the mechanistic critic to model these dynamic routing and compiler scheduling artifacts is a natural next step (though explicit future work directions are not discussed in detail in the paper).
Summary updated