Convolutional neural networks (CNNs) are emerging as powerful tools for image processing in important commercial applications. We focus on the important problem of improving the latency of image recognition. CNNs' large data at each layer's input, filters, and output poses a memory bandwidth problem. While previous work captures only some of the enormous data reuse, full reuse implies that the initial input image and filters are read once from off chip and the final output is written once off chip without spilling the intermediate layers' data to off-chip. We propose Occam to capture full reuse via four contributions. (1) We identify the necessary condition for full reuse. (2) We identify the dependence closure as the sufficient condition to capture full reuse using the least on-chip memory. (3) Because the dependence closure is often too large to fit in on-chip memory, we propose a dynamic programming algorithm that optimally partitions a given CNN to guarantee the least off-chip traffic at the partition boundaries for a given on-chip capacity. Occam's partitions reside on different chips forming a pipeline so that a partition's filters and dependence closure remain on-chip as different images pass through (i.e., each partition incurs off-chip traffic only for its inputs and outputs). (4) because the optimal partitions may result in an unbalanced pipeline, we propose staggered asynchronous pipelines (STAP) which replicates the bottleneck stages to improve throughput by staggering the mini-batches across the replicas. Importantly, STAP achieves balanced pipelines without changing Occam's optimal partitioning. Our simulations show that Occam cuts off-chip transfers by 21x and achieves 2.06x and 1.36x better performance, and 33\% and 24\% better energy than the base case and Layer Fusion, respectively. On an FPGA implementation, Occam performs 5.1x better than the base case.
A Streaming Accelerator for Deep Convolutional Neural Networks with Image and Feature Decomposition for Resource-limited System Applications
University of California, Los Angeles(加州大学洛杉矶分校);Kneron Inc.(耐能智慧股份有限公司);National Chiao Tung University(台湾交通大学)
深度卷积神经网络(CNN)被广泛用于现代人工智能(AI)和智能视觉系统中,但也受到资源有限场景(诸如移动设备、物联网(IoT)、无人机(UAV))上的计算延迟、吞吐量和能效的限制。提出了一种硬件流架构来加速最先进的深度CNN的卷积和池化计算。它通过最大化本地数据重用来减少片外DRAM数据访问,从而优化了能效。此外,图像和功能分解技术被引入到优化存储器访问模式的任意大小的图像和功能的数量在有限的片上SRAM容量。原型加速器采用TSMC 65 nm CMOS工艺实现,核心面积为2.3 mm x 0.8 mm,峰值吞吐量为144 GOPS,峰值能效为0.8 TOPS/W。
Barrier-Free Large-Scale Sparse Tensor Accelerator (BARISTA) For Convolutional Neural Networks
卷积神经网络(CNN)正在成为视觉识别的强大工具。最近的稀疏CNN架构提案利用特征图和过滤器中的零来提高性能和能量,而不会损失准确性。在特征图和滤波器两者中利用双侧稀疏性的稀疏架构仅在小尺度上被研究(例如,1 K乘-累加(MAC)单元)。然而,为了充分实现它们的优点,稀疏架构必须被放大到密集架构的水平(例如,TPU中的32 K MAC)。这样的缩放是具有挑战性的,因为通过广播实现重用会导致隐含的屏障成本,从而引发负载不平衡、缓冲和片上带宽需求等相互关联的问题。Sparten是一种以前的方案,它解决了负载均衡的一个方面,但没有解决其他方面,也没有解决缓冲和带宽的其他问题。为此,我们提出了无障碍大型稀疏张量加速器(BARISTA)。BARISTA(1)是第一个用于按比例放大稀疏CNN加速器的架构;(2)通过伸缩请求组合输入映射请求和分割滤波器请求来减少片上带宽需求;(3)通过基本缓冲区共享来减少缓冲,并通过对输出缓冲区着色来避免连续输入映射之间的随后障碍;(4)通过动态循环工作分配来负载平衡滤波器内工作;以及(5)采用分层缓冲,通过计算中的几个宽的共享缓冲区实现高缓存带宽,并通过较窄的私有缓冲区实现低缓冲。我们的模拟表明,平均而言,咖啡师的性能分别比密集,单侧,天真缩放的双侧和等面积双侧架构好5.4倍,2.2倍,1.7倍,2.5倍。使用45纳米技术,ASIC合成我们的RTL设计的四个集…