面向样本高效NPU设计空间探索的机制化评论器

·

研究论文 · 2026/11/19

针对LLM推理的NPU设计空间探索通常依赖昂贵的模拟器,仅返回延迟和功耗等标量反馈,难以解释配置慢的原因或指导下一步参数调整,且预填充和解码工作负载可能受不同资源限制。本文提出CriticNPU,一个基于在线校准机制性评论器的样本高效DSE框架。该评论器利用显式硬件限制评估NPU配置:模拟前预测配置是否可能优于当前最佳并过滤弱候选;模拟后将算子级运行时间聚合为预填充/解码瓶颈摘要,并预测候选参数变化的影响。评论器采用Roofline风格模型,从架构参数推导计算和内存限制,并利用模拟器观测校准每种算子类型的有效限制。CriticNPU结合工作负载提取器和架构规划器提出配置。在六个LLM工作负载和每个模型16种部署配置下,CriticNPU在74%的预填充和87.5%的解码设置中达到最佳或并列最佳延迟,同时模拟器调用次数约为竞争DSE基线的一半。大量消融研究和详细分析验证了方法的有效性。代码已开源。

该论文针对NPU设计空间探索中模拟器反馈信息有限的问题,提出了一种结合机制性评论器的高效探索方法,显著减少了模拟器调用次数并保持了优越的延迟性能,对LLM推理硬件设计具有实际指导意义。

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.

阅读原文

参与讨论