This paper presents a specialized hardware architecture designed to make Deep Convolutional Neural Networks (CNNs) faster and more energy-efficient by exploiting "structured sparsity." By combining a novel sparse-wise dataflow with a dedicated Vector Generator Module, the authors achieve significant speedups and energy savings on FPGA platforms compared to traditional dense accelerators.
TL;DR
The authors propose a hardware accelerator for FPGAs that leverages structured pruning to skip unnecessary computations involving zero-valued weights and activations. Their "sparse-wise dataflow" and dedicated indexing hardware enable a 1.5× to 6.7× speedup and up to 6.2× better energy efficiency over previous state-of-the-art FPGA accelerators.
What Problem Does This Paper Address?
While Deep CNNs are powerful, they are notoriously resource-hungry. "Pruning"—the process of removing redundant weights—can reduce a model's size by over 10×, but it introduces sparsity.
Standard hardware (like GPUs or basic FPGA accelerators) is optimized for "dense" math. When a model is sparse, these devices often waste cycles multiplying by zero or struggle with the "irregularity" of the data (i.e., not knowing exactly where the non-zero numbers are without expensive searching). This paper tackles the challenge of designing an architecture that can handle this irregularity efficiently without the massive overhead usually associated with sparse data management.
Methods
The researchers employ a multi-pronged approach involving both software-level pruning and hardware-level architectural innovation:
- Shape-wise Structured Pruning: Instead of removing random individual weights (unstructured pruning), they prune weights in specific patterns. This ensures that groups of kernels share the same "sparsity map," making the hardware's job of finding non-zero data much easier.
- Sparse-wise Dataflow: They developed a dataflow that explicitly skips Multiply-Accumulate (MAC) cycles when a weight is zero.
- Vector Generator Module (VGM): This is the "brain" of the sparsity handling. It decodes compressed weight indexes and fetches only the corresponding input activations needed for computation, broadcasting them to the Processing Engines (PEs).
- Zeros Gating: To save power, the PEs use "zeros gating"—effectively turning off the hardware logic (clock gating) when an input activation is zero, preventing wasted energy on meaningless calculations.
- Hardware/Loop Co-design: They optimized "loop tiling" (how data is broken into chunks) to ensure the data fits perfectly into the FPGA’s on-chip memory (BRAM), minimizing slow trips to external DDR memory.
Datasets
The architecture was evaluated using two classic, heavy-duty benchmarks:
- AlexNet
- VGG-16 Both models were trained and tested on the ImageNet 2012 dataset. The authors achieved significant sparsity (e.g., ~11% for AlexNet and ~8% for VGG-16) without significant loss in Top-1 accuracy.
Key Insights and Ideas
- Structured is Better than Random: The "aha moment" here is that while unstructured pruning offers higher compression, structured pruning is the sweet spot for hardware. By forcing kernels to be pruned in the same locations, the indexing overhead is shared across many parallel units, drastically reducing the complexity of the hardware.
- Dual-Sparsity Exploitation: Most accelerators focus only on weight sparsity. This design saves time by skipping zero weights and saves energy by gating zero activations.
- Index Compression: The use of a CSR-like (Compressed Sparse Row) format specifically tuned for FPGA BRAM allows the system to store coordinates using very few bits, leaving more room for actual model data.
Key Results
The design was implemented on a Xilinx ZCU102 FPGA board running at 200MHz.
- Performance: Achieved 987 images/sec for AlexNet and 48 images/sec for VGG-16.
- Efficiency: Demonstrated a 1.5× to 6.7× speedup and 2.0× to 6.2× better energy efficiency compared to previous FPGA-based sparse accelerators.
- Throughput: For 8-bit integer operations, the system reached a peak performance of 1075.2 GOP/s (Giga-Operations per second).
Limitations and Future Work
- BRAM Bottleneck: The authors note that the design is currently "BRAM limited." To scale the number of Processing Engines further, the FPGA would need significantly more on-chip memory to store partial sums and activations.
- Inference Only: The paper focuses strictly on the inference (deployment) phase. Implementing structured sparsity during the training phase on FPGAs remains a separate, complex challenge.
- Quantization Sensitivity: While they tested 16-bit fixed-point and 8-bit integer versions, extremely low-bit quantization (like 1-bit or 2-bit) might require a different dataflow to maintain accuracy.
Summary updated