DeMM:一种支持松弛结构化稀疏性的解耦矩阵乘法引擎
DeMM: A Decoupled Matrix Multiplication Engine Supporting Relaxed Structured Sparsity
AI总结:
本文提出解耦矩阵乘法引擎 DeMM,通过将存储与乘加单元分离并支持 N:128、N:256 等松弛结构化稀疏模式,显著降低了稀疏深度学习模型推理延迟。
摘要:
深度学习(DL)已在各种应用领域取得了前所未有的成功。与此同时,模型剪枝已成为一种可行的解决方案,可在不牺牲准确率的前提下减少移动应用中 DL 模型的占用空间。为了使为稠密 DL 模型构建的矩阵引擎也能处理其剪枝后的对应模型,剪枝后的 DL 模型遵循 1:4 或 2:4 的细粒度结构化稀疏模式,即在每组四个连续值中,分别至少有一个或两个必须为非零值。结构化稀疏性最近也已扩展到更粗粒度(松弛)的 N:128 或 N:256 情形,其中 N 取较小值,目标是为 DL 模型提供更广泛的稀疏度范围(10%-90%)。在本工作中,我们设计了一种加速器,该加速器在构造上即针对具有松弛结构化稀疏性的宽块进行运算。与传统的脉动阵列原型不同,这种新引擎将脉动阵列的存储部分与乘加单元解耦。存储块包含 1 个写端口和 N 个读端口,其中读端口的数量等于每行非零元素的数量。乘加单元直接连接到每个读端口,并以逐行乘积优先的顺序完成乘法运算。更重要的是,简单的重配置即可支持更稠密的模式。实验评估表明,与当前为细粒度和松弛结构化稀疏性构建的最先进脉动阵列引擎相比,该引擎在延迟方面有显著改善。
英文摘要:
Deep Learning (DL) has achieved unprecedented success in various application domains. Meanwhile, model pruning has emerged as a viable solution to reduce the footprint of DL models in mobile applications, without compromising their accuracy. To enable the matrix engines built for dense DL models to also handle their pruned counterparts, pruned DL models follow a fine-grained structured sparsity pattern of 1:4, or 2:4, whereby in each group of four contiguous values, at least one, or two, respectively, must be non-zero. Structured sparsity has recently also moved to coarser (relaxed) cases of N:128, or N:256, for small values of N, targeting a wider range of sparsity (10%-90%) for the DL models. In this work, we design an accelerator that operates, by construction, on wide blocks with relaxed structured sparsity. In contrast to the conventional systolic array archetype, the new engine decouples the memory part of the systolic array from the multiply-add units. The memory block comprises 1 write and N read ports, with the number of read ports being equal to the number of non-zero elements per row. The multiply-add units connect directly to each read port and complete the multiplication in a row-wise product-first order. More importantly, simple reconfiguration facilitates more dense patterns. The experimental evaluation demonstrates substantial latency improvements over current state-of-the-art systolic array engines built for fine-grained and relaxed structured sparsity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。