[论文解读] VPU-EM: An Event-based Modeling Framework to Evaluate NPU Performance and Power Efficiency at Scale
VPU-EM 是一种基于事件的仿真框架,用于可扩展地评估 NPU 的性能与能效,能够精确建模硬件流水线、并发性以及软件任务调度。通过 Power-EM 模式支持联合性能/功耗分析,在多种 AI 工作负载和 NPU 架构(包括 Intel VPU)上展现出高精度与可扩展性。
State-of-art NPUs are typically architected as a self-contained sub-system with multiple heterogeneous hardware computing modules, and a dataflow-driven programming model. There lacks well-established methodology and tools in the industry to evaluate and compare the performance of NPUs from different architectures. We present an event-based performance modeling framework, VPU-EM, targeting scalable performance evaluation of modern NPUs across diversified AI workloads. The framework adopts high-level event-based system-simulation methodology to abstract away design details for speed, while maintaining hardware pipelining, concurrency and interaction with software task scheduling. It is natively developed in Python and built to interface directly with AI frameworks such as Tensorflow, PyTorch, ONNX and OpenVINO, linking various in-house NPU graph compilers to achieve optimized full model performance. Furthermore, VPU-EM also provides the capability to model power characteristics of NPU in Power-EM mode to enable joint performance/power analysis. Using VPU-EM, we conduct performance/power analysis of models from representative neural network architecture. We demonstrate that even though this framework is developed for Intel VPU, an Intel in-house NPU IP technology, the methodology can be generalized for analysis of modern NPUs.
研究动机与目标
- 为解决在多样化架构下评估 NPU 性能与能效缺乏标准化、可扩展工具的问题。
- 实现对 NPU 的高精度、高层次系统仿真,捕捉硬件流水线、并发性及软件调度,同时抽象低层次实现细节。
- 通过 Power-EM 仿真模式支持联合性能与功耗分析,以支持早期阶段 NPU 架构探索。
- 提供一种可推广的方法论,适用于 Intel VPU 以外的现代 NPU 设计。
- 通过工作负载感知的功耗分析,指导动态功耗管理功能(如 DVFS 和活动状态管理)的优化。
提出的方法
- 使用 Python 实现基于事件的仿真方法,以建模系统级行为,同时抽象低层次硬件细节以提升速度与可扩展性。
- 对关键 NPU 组件(包括 DPU、DMA、NOC、CB 和 DDR)进行建模,通过事件触发的活动追踪与利用率计算实现。
- 原生集成 AI 框架(TensorFlow、PyTorch、ONNX、OpenVINO)及内部图编译器,实现完整模型性能仿真。
- 采用功耗追踪间隔(PTI)收集与工作负载相关的活动统计信息,用于 Power-EM 模式下的动态功耗估计。
- 通过电压-频率(VF)曲线与利用率缩放计算动态功耗:$ P_{dyn} = (C_{dyn\_idle} + C_{dyn\_active} \times utilization) \times F \times V_{adj}^2 $。
- 通过同时仿真不同频率与带宽配置下的推理性能与功耗,支持联合性能/功耗分析。
实验结果
研究问题
- RQ1如何设计一种可扩展的高层次建模框架,以评估多样化 AI 工作负载与架构配置下的 NPU 性能?
- RQ2基于事件的仿真在多大程度上能够准确建模 NPU 中的硬件流水线、并发性与软件任务调度?
- RQ3统一的性能与功耗仿真框架是否能够支持面向能效优化的早期架构探索?
- RQ4Power-EM 模式在捕捉工作负载相关功耗特性方面有多高效,可否用于针对性的 NPU 优化?
- RQ5VPU-EM 方法论是否可推广至 Intel VPU 以外的其他现代 NPU 架构?
主要发现
- VPU-EM 能够在广泛的设计参数范围内,实现对 Intel VPU 的可扩展且高精度的性能建模,包括计算缩放、频率缩放与内存带宽缩放。
- 该框架与实际硅片实现具有高度相关性,证明其在早期架构定义阶段进行性能预测的准确性。
- Power-EM 模式通过捕获模块级(包括 DMA、DPU 和内存控制器)的空间与时间活动统计信息,实现详细的工作负载感知功耗分析。
- 在多个 AI 模型与工作频率下进行联合性能/功耗分析,揭示了 DVFS 算法开发中的权衡,实现电池寿命优化而无需性能损失。
- 该框架支持对多个 VPU 代际的系统性分析,并为动态功耗管理功能(如 DVFS 与活动状态控制)提供可操作的洞察。
- 该方法论具有可推广性,已通过其在 Intel VPU 上的成功应用得到验证,表明其在未来的 NPU 研究与设计中具有广泛适用性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。