设计和实现高效的、可证明正确的并行神经网络处理是具有挑战性的。现有的高级并行抽象(如MapReduce)表现力不足,而MPI和Pthreads等低级工具则让ML专家反复解决相同的设计挑战。然而,多样性和大规模的数据量对构建灵活和高性能的深度学习神经网络实现提出了重大挑战。为了提高性能并保持可扩展性,我们提出了CNNLab,一种使用基于GPU和FPGA的加速器的新型深度学习框架。CNNLab为用户提供了一个统一的编程模型,使得硬件实现和调度对程序员是不可见的。在运行时,CNNLab在将任务卸载到加速器之前,利用GPU和FPGA之间的权衡。在最先进的Nvidia K40 GPU和Altera DE 5 FPGA板上的实验结果表明,CNNLab可以提供一个通用的框架,有效地支持不同的应用程序,而不会增加程序员的负担。此外,我们分析了详细的定量性能,吞吐量,功率,能量和性能密度的两种方法。实验结果利用GPU和FPGA之间的权衡,并为深度学习研究社区提供了有用的实践经验。
英文摘要:
Designing and implementing efficient, provably correct parallel neural network processing is challenging. Existing high-level parallel abstractions like MapReduce are insufficiently expressive while low-level tools like MPI and Pthreads leave ML experts repeatedly solving the same design challenges. However, the diversity and large-scale data size have posed a significant challenge to construct a flexible and high-performance implementation of deep learning neural networks. To improve the performance and maintain the scalability, we present CNNLab, a novel deep learning framework using GPU and FPGA-based accelerators. CNNLab provides a uniform programming model to users so that the hardware implementation and the scheduling are invisible to the programmers. At runtime, CNNLab leverages the trade-offs between GPU and FPGA before offloading the tasks to the accelerators. Experimental results on the state-of-the-art Nvidia K40 GPU and Altera DE5 FPGA board demonstrate that the CNNLab can provide a universal framework with efficient support for diverse applications without increasing the burden of the programmers. Moreover, we analyze the detailed quantitative performance, throughput, power, energy, and performance density for both approaches. Experimental results leverage the trade-offs between GPU and FPGA and provide useful practical experiences for the deep learning research community.
A GPU-Outperforming FPGA Accelerator Architecture for Binary Convolutional Neural Networks
Arizona State University(亚利桑那州立大学);Nanyang Technological University(南洋理工大学)
基于FPGA的卷积神经网络(CNN)硬件加速器由于其比GPU更高的能量效率而受到广泛关注。然而,基于FPGA的解决方案要实现比GPU更高的吞吐量是具有挑战性的。在本文中,我们证明了当CNN在权重和激活的二进制约束下进行训练时,FPGA加速在吞吐量和能效方面都是一种优越的解决方案。具体来说,我们提出了一种优化的FPGA加速器架构,专为逐位卷积和归一化而设计,具有大规模的空间并行性和深流水线阶段。FPGA加速器的一个关键优势是其性能对数据批量大小不敏感,而GPU加速的性能在很大程度上取决于数据的批量大小。实验结果表明,在Virtex-7 FPGA上运行的二进制CNN的加速器架构比Titan X GPU快8.3倍,能效高75倍,可以处理小批量的在线个人请求。对于处理大批量静态数据,该解决方案在吞吐量方面与Titan X GPU不相上下,同时提供9.5倍的能效。
Energy-Efficient Inference Accelerator for Memory-Augmented Neural Networks on an FPGA
Seoul National University(首尔国立大学)
记忆增强神经网络(MANN)是为问答任务而设计的。很难在为其他神经网络(NN)设计的加速器上有效地运行MANN,特别是在移动设备上,因为MANN需要循环数据路径和与外部存储器访问相关的各种类型的操作。我们实现了一个基于数据流架构的现场可编程门阵列(FPGA)的人工神经网络加速器。推理时间也减少了推理阈值,这是一个基于数据的最大内积搜索专用于自然语言的任务。对bAbI数据的测量显示,加速器的能量效率(FLOPS/kJ)比NVIDIA TITAN V GPU高出约125倍,在推理阈值化的情况下增加到140倍
A Length Adaptive Algorithm-Hardware Co-design of Transformer on FPGA Through Sparse Attention and Dynamic Pipelining
University of Connecticut(康涅狄格大学);Stevens Institute of Technology(史蒂文斯理工学院);Pacific Northwest National Laboratory(太平洋西北国家实验室);George Mason University(乔治梅森大学);Lehigh University(理海大学)