arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.11272cs.NEcs.ARcs.CVcs.PF
收藏

基于FPGA的CNN加速器的元分析优化

Optimization of FPGA-based CNN Accelerators Using Metaheuristics

King Fahd University of Petroleum and Minerals(法赫德国王石油与矿产大学)

Sadiq M. Sait, Aiman El-Maleh, Mohammad Altakrouri, Ahmad Shawahna

摘要:

近年来,卷积神经网络(CNN)已经证明了它们解决许多领域问题的能力,并且具有以前不可能的准确性。然而,这带来了广泛的计算需求,这使得通用CPU无法提供所需的实时性能。与此同时,FPGA对加速CNN推理的兴趣激增。这是由于他们能够创建具有不同并行级别的定制设计。此外,与GPU相比,FPGA提供更好的性能功耗比。基于FPGA的CNN加速器的当前趋势是实现多个卷积层处理器(CLP),每个处理器都是为一个层子集定制的。然而,CNN架构日益复杂,使得优化目标FPGA器件上的可用资源以提供最佳性能更具挑战性。在本文中,我们提出了一个CNN加速器和相应的自动化设计方法,采用元逻辑划分可用的FPGA资源,设计多CLP加速器。具体而言,所提出的设计工具采用模拟退火(SA)和禁忌搜索(TS)算法来找到所需的CLP的数量和它们各自的配置,以实现给定的目标FPGA器件的最佳性能。这里,重点是关键规格和硬件资源,包括数字信号处理器、块RAM和片外内存带宽。使用四个著名的基准CNN的实验结果和比较表明,所提出的加速框架是令人鼓舞的和有前途的。基于SA/TS的Multi-CLP在Xilinx VC 707和VC 709 FPGA板上加速AlexNet、SqueezeNet 1.1、VGGNet和GoogLeNet架构时,吞吐量比最先进的单/多CLP方法高1.31 - 2.37倍。

英文摘要:

In recent years, convolutional neural networks (CNNs) have demonstrated their ability to solve problems in many fields and with accuracy that was not possible before. However, this comes with extensive computational requirements, which made general CPUs unable to deliver the desired real-time performance. At the same time, FPGAs have seen a surge in interest for accelerating CNN inference. This is due to their ability to create custom designs with different levels of parallelism. Furthermore, FPGAs provide better performance per watt compared to GPUs. The current trend in FPGA-based CNN accelerators is to implement multiple convolutional layer processors (CLPs), each of which is tailored for a subset of layers. However, the growing complexity of CNN architectures makes optimizing the resources available on the target FPGA device to deliver optimal performance more challenging. In this paper, we present a CNN accelerator and an accompanying automated design methodology that employs metaheuristics for partitioning available FPGA resources to design a Multi-CLP accelerator. Specifically, the proposed design tool adopts simulated annealing (SA) and tabu search (TS) algorithms to find the number of CLPs required and their respective configurations to achieve optimal performance on a given target FPGA device. Here, the focus is on the key specifications and hardware resources, including digital signal processors, block RAMs, and off-chip memory bandwidth. Experimental results and comparisons using four well-known benchmark CNNs are presented demonstrating that the proposed acceleration framework is both encouraging and promising. The SA-/TS-based Multi-CLP achieves 1.31x - 2.37x higher throughput than the state-of-the-art Single-/Multi-CLP approaches in accelerating AlexNet, SqueezeNet 1.1, VGGNet, and GoogLeNet architectures on the Xilinx VC707 and VC709 FPGA boards.

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

↑