Navigation menu
Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration
Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration
Yicheng He, Yuqi Xue, Tianyang Wu, Jian Huang, Bin Hu
2026-11-19▲ 9arXiv 2611.24733v1Hugging FaceCode
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
CriticNPU wraps NPU design-space exploration around an online-calibrated Roofline critic that filters weak configurations before simulation and turns operator-level runtimes into prefill/decode bottleneck guidance, reaching best-or-tied-best latency in 74% of prefill and 87.5% of decode settings with roughly half the simulator calls of baselines.
Problem
NPU design-space exploration for LLM inference relies on an expensive simulator that returns only scalar feedback such as latency and power, so it can rank configurations but does not say why one is slow or which architecture parameter to change next. Architecture parameters interact in coupled, non-smooth ways, and prefill and decode can be limited by different resources (compute throughput versus HBM bandwidth), so the best configuration for TTFT may differ from that for TPOT. Black-box search methods spend simulator calls learning which regions are useful, and bottleneck-aware methods diagnose only configurations already simulated.
Method
CriticNPU treats NPU DSE as mechanistic critic-guided search and uses the critic at two points in the loop: before simulation it estimates whether a proposed configuration is likely to improve on the current best and filters weak candidates, and after simulation it aggregates operator-level runtimes into prefill/decode bottleneck summaries and predicts the effect of candidate parameter changes. The critic is a Roofline-style model that derives compute and memory limits from architecture parameters and calibrates per-operator-type effective limits using simulator observations. Three components make up the framework: a Compute Demand Agent (workload extractor) that maps the LLM specification and deployment setting to an operator-level workload; the Online-Calibrated Roofline Model serving as the calibrated critic; and an Architecture Design Agent, an LLM-based planner that proposes the next configuration. The planner is conditioned on the workload, current configuration, roofline-guided signal, hardware constraints, and search history. Simulator feedback thus decides which candidates to simulate and which architecture parameters to prioritize, not just how to score evaluated configurations.
Results
- CriticNPU achieves best-or-tied-best latency in most settings while using about half the simulator calls of competitive baselines, and every run stays under 100 calls. §4.1
- Mean normalized latency is close to the universal best for both phases and comparable to BO and Greedy, which spend far more simulator calls, and far below CMA-ES, LLM-Box, LLM-DSE, and ChatDSE. §4.1
- In an equal-budget metric counting simulator calls to come within 2% of the universal best, CriticNPU needs a median of 14 prefill calls versus 22 for BO, 30 for Greedy, and 47 for LLM-DSE, and 8 decode calls. §E.6
- Component ablation shows that removing the roofline model leaves latency unchanged but inflates decode simulator calls, e.g. from 15 to 48 on Llama3-8B. §4.1
- Re-simulating skipped candidates shows the gate almost never discards a configuration that would meaningfully improve the design; at ε=0 the 27/60 skips are ties within 0.01 ms of the best. §E.7
- Under injected multiplicative simulator noise the search is stable up to 10% noise and degrades gracefully at 20%, with the simulator-call budget growing by at most 7 calls. §E.8
Limitations
- The paper states that evaluation is conducted entirely in simulation, without physical implementation or tape-out validation, so results depend on the fidelity of the NPU simulator; online calibration can reduce mismatch within the simulator but cannot correct systematic simulator errors (§5).
- The critic mainly models compute throughput, HBM bandwidth, and inter-chip communication, and may be less accurate for unmodeled effects such as MoE routing imbalance, cross-expert communication, or compiler scheduling artifacts (§5).
- DSv3-671B decode is reported as an exception where BO obtains 15/16 wins while CriticNPU obtains 8/16; the paper attributes this to MoE routing, activated-expert imbalance, and cross-expert KV-cache/communication effects not explicitly modeled by the operator-type calibration (§4.1).
- The workload-extraction fidelity check covers only a representative dense + MoE pair because NeuSIM-side reference operator CSVs exist only for those two model families; the paper leaves a broader systematic sweep to future work (§E.5).
Key points
- The critic is used twice per iteration: pre-simulation candidate filtering and post-simulation bottleneck summarization plus prediction of parameter-change effects. §3
- The Architecture Design Agent is an LLM policy generating the next configuration from workload, current configuration, roofline signal, constraints, and search history. §3.3
- The calibrated roofline provides a positive rank signal for TTFT, with Kendall's τ of 0.36 and 0.41 on two workloads and pooled τ=0.41 / Spearman's ρ=0.54. §4.1
- Roofline-based gating skips 24 and 46 simulator calls on the two reported runs, pruning roughly half of proposed candidates before simulation. §4.1
- Final TTFT/TPOT are identical across the full sweep of gating margin, EMA rate, and convergence threshold (Δ=0% in every cell); only simulator-call counts vary moderately. §E.2
- Swapping the base LLM for GPT-4o or GPT-4o-mini keeps final latencies within 5% of the default, with the largest deviation +2.1% TTFT, and simulator calls drift by at most 20–30%. §E.3
- The Compute Demand Agent reproduces NeuSIM's native operator profile with 100% name and count match, 0 median per-operator FLOP relative error, and total-FLOP relative error ≤ 2.6%. §E.5
- The roofline is described as useful after as few as 3 calibration rounds because of its physics prior, unlike statistical surrogates that need many initial samples. §C.3
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

