This paper presents DLAU (Deep Learning Accelerator Unit), a scalable and power-efficient hardware accelerator designed to run large-scale deep learning networks on FPGAs. By utilizing tiling techniques and a specialized three-stage pipeline, DLAU overcomes the memory and computational constraints of traditional hardware, achieving significant speedups over CPUs with a fraction of the power consumption of GPUs.
TL;DR
DLAU is a scalable FPGA-based accelerator that uses matrix tiling and a three-part pipeline to process massive neural networks efficiently. It achieves up to a 36.1x speedup over a standard Intel Core2 processor while consuming only 234mW of power, making it an ideal candidate for energy-conscious data centers.
What Problem Does This Paper Address?
Deep learning models are growing at an explosive rate—think of systems like the "Baidu Brain" with 100 billion connections. While these models are powerful, they are computationally expensive and power-hungry.
The industry currently relies on three main hardware types:
- GPUs: High performance but extremely high power consumption.
- ASICs: Highly efficient but expensive to develop and completely inflexible once manufactured.
- FPGAs: Reconfigurable and power-efficient, but often limited by on-chip memory and I/O bandwidth, making it difficult to scale them for "massive" neural networks.
The authors tackle the "scalability" problem: how do you run a neural network that is much larger than the physical hardware available on an FPGA?
Methods
The core of DLAU's innovation lies in its architecture and data management:
- Tiling Techniques: Instead of trying to load an entire massive neural network into the FPGA's limited memory, DLAU partitions the input data and weight matrices into smaller "tiles" (e.g., 32x32). The hardware only needs enough resources to process one tile at a time, allowing it to handle networks of virtually any size by iterating through tiles.
- Three-Stage Pipeline: DLAU consists of three specialized units organized in a stream-like pipeline:
- TMMU (Tiled Matrix Multiplication Unit): The "heavy lifter" that performs the bulk of the calculations using a pipelined binary adder tree.
- PSAU (Part Sum Accumulation Unit): Collects and sums the intermediate results from the TMMU.
- AFAU (Activation Function Acceleration Unit): Implements the non-linear activation function (like Sigmoid) using piecewise linear interpolation to save on complex mathematical hardware.
- FIFO Buffering: Each unit uses input/output buffers to prevent data loss and manage the flow between units with different processing speeds.
Datasets
The researchers evaluated DLAU using the following:
- MNIST: Used as the primary benchmark for training and testing a Deep Neural Network (DNN) with a 784×M×N×10 architecture.
- Caltech101 & CIFAR-10: Used specifically for the energy and power comparison tests against high-end GPUs.
Key Insights and Ideas
- Matrix Multiplication is the Bottleneck: The authors profiled Deep Neural Networks and found that Matrix Multiplication (MM) accounts for over 98% of the total execution time. This justified their decision to dedicate the vast majority of FPGA resources (75.9% of DSPs) to the TMMU.
- Decoupling Hardware Cost from Network Size: By using tiling, the hardware cost of the accelerator depends on the tile size, not the network size. This makes the design truly scalable.
- FPGA vs. GPU Power Gap: One of the most striking insights is the sheer difference in power. While a GPU (like the Tesla K40c) is a powerhouse, its power consumption is roughly 364 times higher than the DLAU accelerator.
Key Results
- Performance: DLAU achieved a 36.1x speedup compared to an Intel Core2 processor (2.3GHz) for a 256x256 network size.
- Efficiency: The accelerator unit itself consumes only 234mW. Even when considering the entire system (including the ARM processor on the chip), the total power is around 1.8W.
- Energy Savings: Compared to an NVIDIA Tesla K40c GPU, DLAU is 10x more energy-efficient (and 4.2x more efficient than a GPU optimized with cuBLAS).
- Resource Utilization: On a Xilinx Zynq Zedboard, the design used about 68% of available Logic Units (LUTs) and 75% of Digital Signal Processors (DSPs), showing a very dense and effective use of the hardware.
Limitations and Future Work
- Memory Access Bottlenecks: While tiling helps, the system still relies on moving data from external DDR3 memory. The authors note that further optimization of weight matrix storage and memory access patterns is a key area for future improvement.
- Topology Constraints: The current work focuses on standard Deep Neural Networks (DNNs). While the authors claim it can adapt to CNNs, specific optimizations for convolutional layers (which have different data reuse patterns than fully connected layers) were not the primary focus of this paper.
- Future Directions: The team plans to explore more advanced weight matrix compression and perform a deeper trade-off analysis between FPGA and GPU architectures for even larger-scale deployments.
Summary updated