Structured Weight Matrices-Based Hardware Accelerators in Deep Neural Networks: FPGAs and ASICs

Caiwen Ding, Ao Ren, Geng Yuan, Xiaolong Ma, Jiayu Li, Ning Liu, Bo Yuan, Yanzhi Wang

Deep Neural Networks (DNNs) have revolutionized fields like computer vision and speech recognition, but their deployment on edge devices remains constrained by massive memory and computational requirements. This paper, originally presented at GLSVLSI '18, introduces a hardware-friendly compression framework using Structured Weight Matrices (SWM). By leveraging block-circulant structures and the Fast Fourier Transform (FFT), the researchers achieve significant reductions in complexity and energy consumption on FPGA and ASIC platforms.

The Challenge of Model Compression

Standard DNNs often contain millions of parameters, leading to high power consumption and memory bottlenecks. While techniques like weight pruning can reduce model size, they often result in "irregular" or sparse networks. Such irregularity is inefficient for hardware accelerators, as it complicates data movement and processing element design. The SWM framework addresses this by imposing a mathematical structure that is inherently compatible with efficient hardware execution.

The SWM Framework: Block-Circulant Matrices and the FFT Trick

The core innovation lies in representing weight matrices as collections of block-circulant matrices. In a circulant matrix, each row is a cyclic shift of the preceding row. This property allows an entire block to be represented by storing only its first row, reducing storage requirements from $O(n^2)$ to $O(n)$.

Figure 3: Visualization of matrix-vector multiplication using block-circulant matrices and the FFT-based computational flow.

Mathematically, multiplying a vector by a circulant matrix is equivalent to a circular convolution. By transforming the weights and inputs into the frequency domain using the FFT, the complex $O(n^2)$ matrix multiplication is reduced to element-wise multiplication with $O(n \log n)$ complexity. This "FFT trick" is the engine behind the framework's speed.

Hardware-Friendly Architecture

To realize these theoretical gains, the authors designed a custom processing system optimized for frequency-domain operations. The architecture utilizes 12-bit or 16-bit fixed-point quantization to further minimize the hardware footprint.

Figure 6: The hardware processing pipeline implementing the frequency-domain computation, from FFT to ReLU activation.

As shown in the processing pipeline, the system sequentially performs FFT on inputs, element-wise multiplication with pre-stored weight FFTs, Inverse FFT (IFFT), accumulation, bias addition, and ReLU activation. This streamlined flow allows for high throughput and massive parallelism on both FPGAs and ASICs.

Performance and Results

The SWM framework was evaluated across diverse benchmarks, including MNIST, SVHN, CIFAR-10, and TIMIT. The results demonstrate a compelling trade-off between compression and accuracy:

  • FPGA Acceleration: Compared to industry baselines like IBM's TrueNorth, the SWM-based DCNN achieved a 152x improvement in performance and a 72x improvement in energy efficiency.
  • LSTM Optimization: For recurrent models, the framework outperformed the state-of-the-art ESE accelerator by up to 21x in performance and 33.5x in energy efficiency.
  • ASIC Efficiency: A 40nm ASIC implementation operating at 200MHz consumed only 0.14W while processing over 1 million MNIST images per second.
  • Accuracy Preservation: Despite massive compression ratios (up to 4000x for specific layers), the degradation in accuracy remained below 2% for most models.

Conclusion

The Structured Weight Matrix approach provides a robust solution for deploying high-performance DNNs on resource-constrained hardware. By aligning mathematical compression with hardware-friendly structures, the researchers have paved the way for more efficient AI in mobile and IoT applications. Future work may involve scaling these techniques to larger architectures like Transformers and exploring the impact on training-time complexity.

Summary updated

BibTeX
@inproceedings{ding2018structured,
  author = {Caiwen Ding and Ao Ren and Geng Yuan and Xiaolong Ma and Jiayu Li and Ning Liu and Bo Yuan and Yanzhi Wang},
  title = {{Structured Weight Matrices-Based Hardware Accelerators in Deep Neural Networks: FPGAs and ASICs}},
  booktitle = {ACM Great Lakes Symposium on VLSI},
  year = {2018},
  url = {https://openreview.net/forum?id=ah171rUw8R},
}
Figure