arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.11438cs.AR
收藏

AoCStream:基于流的行缓冲器结构的全芯片CNN加速器

AoCStream: All-on-Chip CNN Accelerator With Stream-Based Line-Buffer Architecture

Hyeong-Ju Kang

摘要:

卷积神经网络(CNN)加速器由于其效率而被广泛使用,但是它们需要大量的存储器,导致使用缓慢且功耗高的外部存储器。本文利用两种方案,以减少所需的内存量,并最终实现一个CNN的合理性能,只有一个实际的设备,如低端FPGA的片上存储器。为了减少中间数据的存储量,提出了一种基于流的行缓冲器结构和用于该结构的缓冲器流,而不是传统的基于帧的结构,其中中间数据存储量与输入图像大小的平方成比例。该架构由层专用块组成,以流水线方式与输入和输出流一起操作。每个卷积层块具有仅存储几行输入数据的行缓冲器。行缓冲器的大小与输入图像的宽度成比例,因此该架构比传统的基于帧的架构需要更少的中间数据存储,特别是在现代目标检测CNN中越来越大的输入大小的趋势中。除了减少的中间数据存储之外,通过加速器感知修剪来减少权重存储。实验结果表明,一个完整的目标检测CNN可以实现,即使在低端的FPGA没有外部存储器。与以前的加速器具有类似的目标检测精度相比,所提出的加速器达到更高的吞吐量,即使用更少的FPGA资源的LUT,寄存器,DSP,显示出更高的效率。经训练的模型和实现的位文件可在https://github.com/HyeongjuKang/accelerator-aware-pruning和https://github.com/HyeongjuKang/aocstream上获得。

英文摘要:

Convolutional neural network (CNN) accelerators are being widely used for their efficiency, but they require a large amount of memory, leading to the use of a slow and power consuming external memory. This paper exploits two schemes to reduce the required memory amount and ultimately to implement a CNN of reasonable performance only with on-chip memory of a practical device like a low-end FPGA. To reduce the memory amount of the intermediate data, a stream-based line-buffer architecture and a dataflow for the architecture are proposed instead of the conventional frame-based architecture, where the amount of the intermediate data memory is proportional to the square of the input image size. The architecture consists of layer-dedicated blocks operating in a pipelined way with the input and output streams. Each convolutional layer block has a line buffer storing just a few rows of input data. The sizes of the line buffers are proportional to the width of the input image, so the architecture requires less intermediate data storage than the conventional frame-based architecture, especially in the trend of getting larger input size in modern object detection CNNs. In addition to the reduced intermediate data storage, the weight memory is reduced by the accelerator-aware pruning. The experimental results show that a whole object detection CNN can be implemented even on a low-end FPGA without an external memory. Compared to previous accelerators with similar object detection accuracy, the proposed accelerator reaches much higher throughput even with less FPGA resources of LUTs, registers, and DSPs, showing much higher efficiency. The trained models and implemented bit files are available at https://github.com/HyeongjuKang/accelerator-aware-pruning and https://github.com/HyeongjuKang/aocstream.

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

↑