Abstract
As the emerging field of machine learning, deep learning shows excellent ability in solving complex learning problems. However, the size of the networks becomes increasingly large scale due to the demands of the practical applications, which poses significant challenge to construct a high performance implementations of deep learning neural networks. In order to improve the performance as well to maintain the low power cost, in this paper we design DLAU, which is a scalable accelerator architecture for large-scale deep learning networks using FPGA as the hardware prototype. The DLAU accelerator employs three pipelined processing units to improve the throughput and utilizes tile techniques to explore locality for deep learning applications. Experimental results on the state-of-the-art Xilinx FPGA board demonstrate that the DLAU accelerator is able to achieve up to 36.1x speedup comparing to the Intel Core2 processors, with the power consumption at 234mW.
Introduction
Deep learning models are growing at an explosive rate, with some systems now managing hundreds of billions of connections. While these models provide unprecedented accuracy, they are computationally expensive and energy-intensive. Current hardware solutions present a trilemma: GPUs offer high performance but excessive power consumption; ASICs provide efficiency but lack flexibility; and FPGAs offer reconfigurability and low power but are often constrained by on-chip memory and I/O bandwidth.
The DLAU (Deep Learning Accelerator Unit) addresses the scalability challenge: how to execute neural networks that are significantly larger than the physical hardware resources available on an FPGA. By leveraging matrix tiling and a specialized pipeline, DLAU decouples hardware costs from network size, enabling the processing of massive models on modest hardware.
The DLAU Architecture
The core innovation of DLAU lies in its architecture and data management strategies. To handle networks of virtually any size, DLAU partitions input data and weight matrices into smaller "tiles" (e.g., 32x32). This allows the hardware to iterate through tiles sequentially, requiring only enough on-chip resources to process one tile at a time.
The architecture consists of a three-stage stream-like pipeline:
- TMMU (Tiled Matrix Multiplication Unit): Performs the bulk of the calculations (over 98% of execution time) using a pipelined binary adder tree.
- PSAU (Part Sum Accumulation Unit): Collects and sums intermediate results from the TMMU.
- AFAU (Activation Function Acceleration Unit): Implements non-linear activation functions (like Sigmoid) using piecewise linear interpolation to minimize hardware complexity.
Experimental Results
The DLAU accelerator was evaluated on a Xilinx Zynq Zedboard using the MNIST, Caltech101, and CIFAR-10 datasets. Profiling revealed that matrix multiplication accounts for the vast majority of execution time, justifying the allocation of 75.9% of DSP resources to the TMMU.
Key performance metrics include:
- Performance Scaling: DLAU achieved a 36.1x speedup compared to an Intel Core2 processor (2.3GHz) for a 256x256 network size. As shown in the results, speedup increases significantly as both the network size and the tile size grow.
- Power Efficiency: The accelerator unit consumes only 234mW. When compared to high-end GPUs like the NVIDIA Tesla K40c, DLAU is approximately 10x more energy-efficient.
- Resource Utilization: The design effectively utilizes 68% of available Logic Units (LUTs) and 75% of Digital Signal Processors (DSPs) on the Zedboard, demonstrating a dense and efficient hardware implementation.
Conclusion
DLAU demonstrates that FPGAs can serve as highly efficient, scalable platforms for large-scale deep learning. By utilizing tiling and a specialized pipeline, the system achieves significant speedups over traditional CPUs while maintaining a power profile orders of magnitude lower than GPUs. Future work will focus on optimizing memory access patterns, exploring weight matrix compression, and adapting the architecture for the specific data reuse patterns found in Convolutional Neural Networks (CNNs).
Summary updated