arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13873cs.ARcs.AI
收藏

NVR:面向稀疏内存访问的 NPU 向量前瞻执行

NVR: Vector Runahead on NPUs for Sparse Memory Access

National Center of Technology Innovation for EDA, School of Integrated Circuits, Southeast University(东南大学集成电路学院、国家EDA技术创新中心);Houmo AI(后摩智能);Nanjing University(南京大学);Huazhong University of Science and Technology(华中科技大学);Harbin Institute of Technology(哈尔滨工业大学);Dalian University of Technology(大连理工大学)

Hui Wang, Zhengpeng Zhao, Jing Wang, Yushu Du, Yuan Cheng, Bing Guo, He Xiao, Chenhao Ma, Xiaomeng Han, Dean You, Jiapeng Guan, Ran Wei, Dawei Yang, Zhe Jiang

AI总结:

针对稀疏 DNN 不规则访存导致的缓存未命中,本文提出轻量级 NPU 硬件向量前瞻预取机制 NVR,在低于 5% 开销下显著降低未命中并获得 4 倍加速。

摘要:

深度神经网络正越来越多地利用稀疏性来缓解模型参数规模的扩大。然而,由于不规则的内存访问模式会导致频繁的缓存未命中,通过稀疏性和剪枝来缩短实际运行时间仍然具有挑战性。本文提出 NPU Vector Runahead(NVR),这是一种专为 NPU 定制的预取机制,用于解决稀疏 DNN 工作负载中的缓存未命中问题。NVR 并非以高开销和低可移植性优化内存模式,而是使前瞻执行适应 NPU 的独特架构。NVR 为稀疏 DNN 工作负载提供通用微架构解决方案,无需编译器或算法支持;它作为一个解耦、推测性且轻量级的硬件子线程与 NPU 并行运行,硬件开销极小(低于 5%)。与通用处理器中的 SOTA 预取相比,NVR 平均减少 90% 的缓存未命中,并在稀疏工作负载上相对未采用预取的 NPU 实现平均 4 倍加速。此外,我们研究了在 NPU 中加入小型缓存(16KB)并与 NVR 结合的优势。评估表明,扩展这一适度规模缓存所带来的性能收益,是将 L2 缓存大小增加同等容量所获收益的 5 倍。

英文摘要:

Deep Neural Networks are increasingly leveraging sparsity to reduce the scaling up of model parameter size. However, reducing wall-clock time through sparsity and pruning remains challenging due to irregular memory access patterns, leading to frequent cache misses. In this paper, we present NPU Vector Runahead (NVR), a prefetching mechanism tailored for NPUs to address cache miss problems in sparse DNN workloads. Rather than optimising memory patterns with high overhead and poor portability, NVR adapts runahead execution to the unique architecture of NPUs. NVR provides a general micro-architectural solution for sparse DNN workloads without requiring compiler or algorithmic support, operating as a decoupled, speculative, lightweight hardware sub-thread alongside the NPU, with minimal hardware overhead (under 5%). NVR achieves an average 90% reduction in cache misses compared to SOTA prefetching in general-purpose processors, delivering 4x average speedup on sparse workloads versus NPUs without prefetching. Moreover, we investigate the advantages of incorporating a small cache (16KB) into the NPU combined with NVR. Our evaluation shows that expanding this modest cache delivers 5x higher performance benefits than increasing the L2 cache size by the same amount.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑