Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration

Yicheng He, Yuqi Xue, Tianyang Wu, Jian Huang, Bin Hu

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:

  1. Prefill (reading your prompt, measured by Time-To-First-Token or TTFT), which usually craves raw math compute.
  2. 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.

Figure 1: Overview of CriticNPU. A Compute Demand Agent extracts the operator-level workload, an online-calibrated roofline model filters weak configurations and provides bottleneck-guided feedback, and an Architecture Design Agent proposes the next NPU configuration. The shown parameters are illustrative examples.
  1. 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).
  2. 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:
  3. Role 1 (Bouncer): Before running an expensive simulation, it predicts if a proposed chip will beat the current best. Weak candidates get skipped immediately.
  4. 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").
  5. 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.
Figure 3: Roofline vs. GPT-5.4-mini on latency prediction (Role 1, n=150) and counterfactual ∆TTFT prediction (Role 2, n=83). Both methods receive identical inputs: workload, reference config with measured TTFT, and target config. Arrows mark lower/higher-is-better.
  • 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

Abstract

NPU design-space exploration for LLM inference mainly relies on an expensive simulator that often returns only scalar feedback such as latency and power. Such feedback can rank evaluated configurations, but gives little information for deciding why a configuration is slow or which architecture parameter should be changed next. This limitation is especially severe because prefill and decode workloads can be limited by different resources, including compute throughput, HBM bandwidth, and inter-chip communication. We propose CriticNPU, a sample-efficient DSE framework built around an online-calibrated mechanistic critic for NPU architecture design. The critic uses explicit hardware limits to evaluate NPU configurations: before simulation, it estimates whether a proposed configuration is likely to improve over the current best and filters weak candidates; after simulation, it aggregates operator-level runtimes into prefill/decode bottleneck summaries and predicts the effect of candidate parameter changes. We instantiate the critic with a Roofline-style model that derives compute, memory, and communication limits from architecture parameters and calibrates per-operator-type effective limits using simulator observations. And CriticNPU combines this critic with a workload extractor and an architecture planner to propose configurations. Across six LLM workloads and 16 deployment configurations per model, CriticNPU achieves best-or-tied-best latency in 74% of prefill and 87.5% of decode settings while using roughly half the simulator calls of competitive DSE baselines. We conduct extensive ablation studies and detailed analyses to validate the effectiveness of our method from multiple perspectives.
BibTeX
@inproceedings{he2026mechanistic,
  author = {Yicheng He and Yuqi Xue and Tianyang Wu and Jian Huang and Bin Hu},
  title = {{Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9Jr2FEdVHP},
}
Figure