TL;DR
This paper introduces Kratos, a new FPGA benchmark suite designed to evaluate "unrolled" deep neural network (DNN) architectures that exploit fine-grained sparsity and mixed precision. Kratos demonstrates that these unrolled DNNs can achieve high frequencies and significant area reductions on FPGAs, paving the way for more efficient, specialized hardware accelerators.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are increasingly crucial for various applications, but their computational demands are substantial. While GPUs and ASICs dominate DNN inference, they are often optimized for dense computations. However, real-world DNNs exhibit significant fine-grained sparsity (many weights are zero or near-zero) and can tolerate lower numerical precision without a major drop in accuracy. These properties are challenging for traditional accelerators but are a natural fit for FPGAs due to their reconfigurability.
An emerging approach to leverage these properties on FPGAs is "unrolling" DNN computations. This means creating dedicated hardware for each operation within a layer, allowing for the skipping of ineffectual operations. However, naive unrolling can consume excessive FPGA resources, limiting the size of DNNs that can be implemented. This paper addresses the need for a benchmark and architectural exploration to make unrolled DNNs more efficient on FPGAs, specifically by considering sparsity and mixed precision.
Methods
The core contribution is the Kratos benchmark suite. It's a collection of SystemVerilog hardware modules implementing key DNN operations (GEMM and convolution) in an unrolled fashion. Kratos is designed to be:
- Parameterized and Extensible: Users can easily configure dimensions, sparsity levels (0-1), and numerical precision (bit-width).
- Human-Readable: The SystemVerilog code is intended to be understandable.
- Compatible with Multiple CAD Flows: It supports both commercial (Intel Quartus Prime) and academic (VTR) toolchains, facilitating broader research.
The paper also describes a hardware implementation strategy where weights are embedded directly into the logic (LUTs) rather than stored in memory. This, combined with specialization (weights as constants), pruning (skipping zero weights), and quantization (using low bit-widths), drastically reduces area.
Finally, a case study on FPGA architectural exploration is presented, focusing on the impact of Logic Block (LB) LUT size. By using smaller LUTs (e.g., 3-LUTs instead of 6-LUTs), the researchers investigate potential area savings.
Datasets
Not discussed in the paper. The Kratos benchmark is a synthetic benchmark suite designed to evaluate hardware architectures, not trained on specific datasets.
Key Insights and Ideas
- Unrolled DNNs can hit FPGA frequency limits: The paper shows that heavily pipelined, unrolled DNN implementations can achieve very high clock frequencies, sometimes reaching the maximum reported by the FPGA vendor.
- Sparsity and low precision offer substantial area savings: The benchmark demonstrates a near-linear reduction in area with increasing sparsity and a super-linear reduction with decreasing bit-width. This confirms that FPGAs can effectively exploit these DNN characteristics.
- Fine-grained sparsity is key for FPGAs: Unlike structured sparsity which offers limited gains on GPUs, fine-grained, unstructured sparsity on FPGAs allows for significant resource reduction by skipping individual operations.
- Smaller LUTs are beneficial for unrolled DNNs: The architectural exploration suggests that tailoring FPGA logic blocks to use smaller LUT sizes can lead to significant area reductions (up to 2x) for unrolled DNN workloads. This is because smaller LUTs can better map the specialized computations of unrolled DNNs.
- The "unrolling" paradigm is promising for FPGAs: By dedicating hardware and exploiting redundancy, unrolled DNNs offer a path to high throughput and efficiency on FPGAs, especially for applications demanding low latency.
Key Results
- High Frequencies: Unrolled DNNs on Arria 10 GX achieved frequencies in the 300-600 MHz range, with some reaching over 1 GHz (vendor timing report).
- Area Reduction:
- Fine-grained sparsity and low bit-width led to significant area savings. For example, reducing precision from 8-bit to 4-bit for an 8-bit conv2d-FU-L plot resulted in a 2.9x area decrease.
- The architectural case study showed up to a ~2x area reduction by using smaller LUT sizes (K=3) compared to the default (K=6).
- Benchmark Compatibility: Kratos was successfully synthesized and evaluated using both Intel Quartus Prime and the VTR toolchain, with resource utilization reporting within a ±10% variation.
Limitations and Future Work
- Scalability of Unrolled Implementations: While Kratos demonstrates efficiency, fully unrolling large DNNs still faces capacity limits on current FPGAs.
- Architectural Specialization: The paper advocates for further exploration of new programmable architectures specifically designed for unrolled DNNs, potentially leading to even greater efficiency gains (10-100x).
- Algorithmic Optimizations: Future work could explore techniques like weight sharing and time-domain multiplexing to increase the effective size of DNNs that can be mapped to these specialized architectures.
- Accuracy-Efficiency Tradeoffs: While the benchmark shows hardware efficiency, further studies are needed to explore the interplay between pruning, quantization, and DNN accuracy.
Summary updated