提高卷积神经网络加速器的内存利用率
Improving Memory Utilization in Convolutional Neural Network Accelerators
摘要:
虽然通过引入更大更深的网络架构,卷积神经网络的准确性得到了巨大的提高,但存储其参数和激活的内存占用也有所增加。这一趋势尤其挑战了功率和资源有限的加速器设计,这些设计通常限于将所有网络数据存储在片上存储器中,以避免连接高能耗的外部存储器。因此,最大化适合给定加速器的网络大小需要最大化其内存利用率。虽然传统上使用的乒乓缓冲技术是后续激活层映射到分离的内存区域,我们提出了一种映射方法,允许这些区域重叠,从而更有效地利用内存。这项工作提出了计算最大激活内存重叠的数学模型,从而计算在内存有限的加速器上执行卷积神经网络逐层处理所需的片上内存的下限。我们对各种真实世界对象检测器网络的实验表明,与传统的乒乓缓冲相比,所提出的映射技术可以将激活内存减少高达32.9%,将整个网络的总内存减少高达23.9%。对于更高分辨率的去噪网络,我们实现了48.8%的激活内存节省。此外,我们在基于FPGA的摄像头上实现了一个人脸检测器网络,以在一个完整的端到端系统上验证这些内存节省。
英文摘要:
While the accuracy of convolutional neural networks has achieved vast improvements by introducing larger and deeper network architectures, also the memory footprint for storing their parameters and activations has increased. This trend especially challenges power- and resource-limited accelerator designs, which are often restricted to store all network data in on-chip memory to avoid interfacing energy-hungry external memories. Maximizing the network size that fits on a given accelerator thus requires to maximize its memory utilization. While the traditionally used ping-pong buffering technique is mapping subsequent activation layers to disjunctive memory regions, we propose a mapping method that allows these regions to overlap and thus utilize the memory more efficiently. This work presents the mathematical model to compute the maximum activations memory overlap and thus the lower bound of on-chip memory needed to perform layer-by-layer processing of convolutional neural networks on memory-limited accelerators. Our experiments with various real-world object detector networks show that the proposed mapping technique can decrease the activations memory by up to 32.9%, reducing the overall memory for the entire network by up to 23.9% compared to traditional ping-pong buffering. For higher resolution de-noising networks, we achieve activation memory savings of 48.8%. Additionally, we implement a face detector network on an FPGA-based camera to validate these memory savings on a complete end-to-end system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。