arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.11282cs.LGcs.NE
收藏

VW-SDK:用于内存处理架构的使用可变窗口的高效卷积权重映射

VW-SDK: Efficient Convolutional Weight Mapping Using Variable Windows for Processing-In-Memory Architectures

Sungkyunkwan University(成均馆大学)

Johnny Rhe, Sungmin Moon, Jong Hwan Ko

摘要:

由于其高能效,内存处理(PIM)阵列越来越多地用于卷积神经网络(CNN)推理。在基于PIM的CNN推理中,计算延迟和能量取决于CNN权重如何映射到PIM阵列。最近的一项研究提出了移位和重复内核(SDK)映射,该映射以并行窗口为单位重用输入特征映射,该窗口与重复内核卷积以并行获得多个输出元素。然而,现有的基于SDK的映射算法并不总是导致最小的计算周期,因为它只映射一个方形的并行窗口与整个通道。在本文中,我们介绍了一种新的映射算法,称为可变窗口SDK(VW-SDK),它自适应地确定并行窗口的形状,导致最小的计算周期为一个给定的卷积层和PIM阵列。通过允许带有部分通道的矩形窗口,VW-SDK可以更有效地利用PIM阵列,从而进一步减少计算周期的数量。使用512 x512 PIM阵列和Resnet-18进行的仿真表明,与现有的基于SDK的算法相比,VW-SDK将推理速度提高了1.69倍。

英文摘要:

With their high energy efficiency, processing-in-memory (PIM) arrays are increasingly used for convolutional neural network (CNN) inference. In PIM-based CNN inference, the computational latency and energy are dependent on how the CNN weights are mapped to the PIM array. A recent study proposed shifted and duplicated kernel (SDK) mapping that reuses the input feature maps with a unit of a parallel window, which is convolved with duplicated kernels to obtain multiple output elements in parallel. However, the existing SDK-based mapping algorithm does not always result in the minimum computing cycles because it only maps a square-shaped parallel window with the entire channels. In this paper, we introduce a novel mapping algorithm called variable-window SDK (VW-SDK), which adaptively determines the shape of the parallel window that leads to the minimum computing cycles for a given convolutional layer and PIM array. By allowing rectangular-shaped windows with partial channels, VW-SDK utilizes the PIM array more efficiently, thereby further reduces the number of computing cycles. The simulation with a 512x512 PIM array and Resnet-18 shows that VW-SDK improves the inference speed by 1.69x compared to the existing SDK-based algorithm.

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

↑