Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration

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

University of Illinois Urbana-Champaign

Published November 18, 2026 · on the feed November 19, 2026 · ▲ 9 · arXiv 2611.24733

Interpretability & analysisEfficiency & inferenceModel architecture Full code arXiv ↗Hugging Face ↗

The 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 and HBM bandwidth. 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 and memory 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. Our code is available at https://github.com/bruno686/CriticNPU.

The Brief

2:37

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration. By Yicheng He and four others, from the University of Illinois Urbana-Champaign. Published on the eighteenth of November.

Designing an NPU for large language model inference means searching a large space of architecture choices, and that search mostly leans on an expensive simulator. Each call costs time, and each call often hands back only scalar feedback, such as latency and power. Numbers like that can rank the configurations already tried. But they say little about why a configuration is slow, or which architecture parameter should be changed next. The search knows what scored well without knowing what to do about it.

The limitation bites harder for language models because inference is not one workload. Prefill and decode can be limited by different resources, such as compute throughput in one case and HBM bandwidth in the other. A single latency figure blends those together and hides which wall a design has hit.

CriticNPU is a sample-efficient design-space exploration framework built around a mechanistic critic that is calibrated online. Instead of treating the hardware as a black box, the critic evaluates configurations against explicit hardware limits. That gives the search a reason behind each number, not just the number.

The critic works on both sides of a simulation. Before a run, it estimates whether a proposed configuration is likely to improve on the current best, and filters out weak candidates so they never cost a simulator call. After a run, it aggregates operator-level runtimes into bottleneck summaries, one for prefill and one for decode, and predicts the effect of candidate parameter changes.

Concretely, the critic is instantiated as a Roofline-style model. It derives compute and memory limits from the architecture parameters, then calibrates effective limits for each operator type using what the simulator actually observed. The calibration is what keeps the model honest as the search goes on. CriticNPU pairs this critic with a workload extractor and an architecture planner, which together propose the next configurations to try.

The evaluation spans six large language model workloads, with sixteen deployment configurations per model. CriticNPU reaches the best or tied-best latency in seventy-four percent of prefill settings, and in eighty-seven point five percent of decode settings. It does so with roughly half the simulator calls used by competitive design-space exploration baselines. Extensive ablation studies and detailed analyses back up the effectiveness of the method from several perspectives.

The shift here is from a search that only learns which configurations scored well, to one that learns why. A critic grounded in hardware limits can explain a bottleneck, point to the parameter behind it, and turn away weak candidates before the simulator ever sees them. That last step is where the halving of simulator calls comes from.

The deep dive

6:40

A longer episode, written from the whole paper. Written and voiced by AI.

Transcript

Mechanistic Critics for Sample-Efficient NPU Design-Space Exploration. By Yicheng He and four others, from the University of Illinois Urbana-Champaign. Published on the eighteenth of November. This is the long version: the whole paper rather than the abstract.

Designing a chip for language model inference means searching a space of architecture parameters: how many systolic arrays, how large each one is, the clock frequency, on-chip memory, and the bandwidth to memory and to other chips. Each candidate is judged by a simulator, and each simulator call is expensive. The trouble is what comes back. Usually it is a scalar, a latency and a power figure. That can rank the designs already tried, but it says nothing about why a design is slow, or which parameter to move next. The parameters also interact awkwardly. Adding arrays stops helping once a workload is memory-bound, and lowering the clock can sometimes reduce latency, because it frees power for more parallel units. Worse, the two phases of inference stress different resources, so the best chip for the first token may not be the best chip for every token after it.

Two ideas carry the rest. The first is that prefill and decode are optimized separately, as in disaggregated serving. Prefill is scored by time to first token, decode by time per output token, and each gets its own chip. The second is the roofline model. Every operator has an arithmetic intensity: how many floating-point operations it performs per byte it moves. A chip has a compute peak and a memory bandwidth peak, and the ratio of those two is called the ridge point. Above the ridge, an operator is compute-bound, and more compute speeds it up. Below it, the operator is memory-bound, and only more bandwidth helps. The point is that this label comes from arithmetic, not from a simulation.

The system, CriticNPU, has three parts. A Compute Demand Agent, an LLM-driven extractor, reads the model specification and deployment setting and writes out the operator-level workload: for each operator, its floating-point cost, its memory traffic, how often it runs, and its intensity. An Architecture Design Agent, also an LLM, proposes the next configuration. Between them sits the critic, a roofline model that plays two roles.

Role one is a gate before simulation. Take a recently simulated reference design, where every operator's runtime is known. For a new candidate, each operator's runtime is rescaled: a compute-bound one by how much the compute peak changed, a memory-bound one by how much the bandwidth changed. Summing gives a predicted latency. After a short warm-up, the candidate is simulated only if that prediction is no worse than the current best. Otherwise it is skipped. Role two works after simulation. Rather than handing the agent raw per-operator runtimes, the critic reports what share of each phase's latency is compute-bound and what share memory-bound, and predicts what small edits would do, all without another simulation. These summaries are written through fixed templates, with no language model inside the critic. The agent reads the numbers; it does not generate them.

The paper then fixes a flaw in its own design. Real operators never reach the full peaks. A softmax dependency chain stops the array from filling. So a single ridge mislabels operators near the boundary, and a mislabelled operator gets scaled by the wrong peak. The fix is online calibration. Operators are grouped into types, such as the QKV projection, the FFN matrix multiply and the attention kernel, and each type learns two efficiency factors: what fraction of the compute peak and of the bandwidth peak it actually reaches. These are measured from every simulation and smoothed with a moving average, so each type gets its own ridge. Because the factors depend on operator shape rather than the chip, they carry over when the configuration changes. On Llama3-8B prefill, the FFN operators settle at fifty-four percent of peak compute and attention at fifteen percent.

The evaluation covers six models, each under sixteen deployment settings, in the NeuSIM simulator, against seven baselines. CriticNPU gets best or tied-best latency in seventy-four percent of prefill settings and eighty-seven point five percent of decode, using fifty-four simulator calls on average. Bayesian optimization and greedy search match or beat that win rate, but spend two point two to two point four times as many calls. The paper says plainly that the real advantage is sample efficiency, not better chips.

The comparison that most directly tests the thesis is whether a language model could do the critic's job. Given identical inputs, the roofline beat the same model the system uses as its planner on every metric. Its mean absolute percentage error was forty-seven percent against ninety-six, with five percent catastrophic errors against twenty-one. The model hedges by echoing the reference latency, which says nothing about which edit helps. The gate also skipped roughly half of all proposals. When sixty skipped decode candidates were re-simulated, none beat the best by even one percent.

The paper has a limitations section, and it is direct. Everything runs in simulation, with no physical chip or tape-out, so results inherit the simulator's fidelity, and calibration cannot correct systematic simulator error. The critic models compute, memory bandwidth and interconnect, and may miss effects like MoE routing imbalance or compiler scheduling. That shows. On DSv3-671B decode, Bayesian optimization wins fifteen of sixteen settings and CriticNPU only eight. Beyond what the authors state, the hyperparameter sweeps are one run per setting, and when simulator noise was raised to twenty percent the design found had twenty-one percent higher true time to first token.

The idea to carry away is that the cheapest simulator call is the one you can rule out with arithmetic. A roofline is a crude model of a chip, and its absolute predictions are noisy. It does not need to be accurate. It needs to rank candidates against the current best, and to tell a planner which resource is the binding one. Calibrated per operator type, that crude model beats a language model at prediction and roughly halves the cost of search.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.