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

Phantom:稀疏卷积神经网络的高性能计算核

Phantom: A High-Performance Computational Core for Sparse Convolutional Neural Networks

Kansas State University(堪萨斯州立大学)

Mahmood Azhar Qureshi, Arslan Munir

摘要:

稀疏卷积神经网络(CNN)在过去几年中获得了巨大的吸引力,因为与密集的CNN相比,如果适当地利用,稀疏CNN可以大大减少模型大小和计算量。稀疏CNN通常会引入层形状和大小的变化,这可能会阻止密集加速器在稀疏CNN模型上表现良好。最近提出的稀疏加速器,如SCNN,Eyeriss v2和Sparten,积极利用双侧或完全稀疏性,即权重和激活的稀疏性,以提高性能。然而,这些加速器要么具有低效的微架构,这限制了它们的性能,不支持非单位步长卷积和全连接(FC)层,要么严重遭受系统负载不平衡。为了解决这些问题并支持稀疏和密集模型,我们提出了Phantom,一个多线程,动态和灵活的神经计算核心。Phantom使用稀疏二进制掩码表示来主动地前瞻稀疏计算,并动态地调度其计算线程以最大化线程利用率和吞吐量。我们还生成了一个Phantom神经计算核心的二维(2D)网格架构,我们将其称为Phantom-2D加速器,并提出了一种支持CNN所有层的新型卷积层,包括单位和非单位步长卷积以及FC层。此外,Phantom-2D采用两级负载均衡策略,最大限度地减少计算空闲,从而进一步提高硬件利用率。为了显示对不同类型层的支持,我们评估了VGG 16和MobileNet上Phantom架构的性能。我们的模拟表明,Phantom-2D加速器分别在密集架构SCNN、Sparten和Eyeriss v2上获得了12倍、4.1倍、1.98倍和2.36倍的性能增益。

英文摘要:

Sparse convolutional neural networks (CNNs) have gained significant traction over the past few years as sparse CNNs can drastically decrease the model size and computations, if exploited befittingly, as compared to their dense counterparts. Sparse CNNs often introduce variations in the layer shapes and sizes, which can prevent dense accelerators from performing well on sparse CNN models. Recently proposed sparse accelerators like SCNN, Eyeriss v2, and SparTen, actively exploit the two-sided or full sparsity, that is, sparsity in both weights and activations, for performance gains. These accelerators, however, either have inefficient micro-architecture, which limits their performance, have no support for non-unit stride convolutions and fully-connected (FC) layers, or suffer massively from systematic load imbalance. To circumvent these issues and support both sparse and dense models, we propose Phantom, a multi-threaded, dynamic, and flexible neural computational core. Phantom uses sparse binary mask representation to actively lookahead into sparse computations, and dynamically schedule its computational threads to maximize the thread utilization and throughput. We also generate a two-dimensional (2D) mesh architecture of Phantom neural computational cores, which we refer to as Phantom-2D accelerator, and propose a novel dataflow that supports all layers of a CNN, including unit and non-unit stride convolutions, and FC layers. In addition, Phantom-2D uses a two-level load balancing strategy to minimize the computational idling, thereby, further improving the hardware utilization. To show support for different types of layers, we evaluate the performance of the Phantom architecture on VGG16 and MobileNet. Our simulations show that the Phantom-2D accelerator attains a performance gain of 12x, 4.1x, 1.98x, and 2.36x, over dense architectures, SCNN, SparTen, and Eyeriss v2, respectively.

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

↑