Griffin: Rethinking Sparse Optimization for Deep Learning Architectures

Jong Hoon Shin, Ali Shafiee, Ardavan Pedram, Hamzah Abdel-Aziz, Ling Li, Joseph Hassoun · DOI

Abstract

This paper examines the design space trade-offs of DNNs accelerators aiming to achieve competitive performance and efficiency metrics for all four combinations of dense or sparse activation/weight tensors. To do so, we systematically examine the overheads of supporting sparsity on top of an optimized dense core. These overheads are modeled based on parameters that indicate how a multiplier can borrow a nonzero operation from the neighboring multipliers or future cycles. As a result of this exploration, we identify a few promising designs that perform better than prior work. Our findings suggest that even the best design targeting dual sparsity yields a 20%-30% drop in power efficiency when performing on single sparse models, i.e., those with only sparse weight or sparse activation tensors. We found that one can reuse resources of the same core to maintain high performance and efficiency when running single sparsity or dense models. We call this hybrid architecture Griffin. Griffin is 1.2, 3.0, 3.1, and 1.4X more power-efficient than state-of-the-art sparse architectures, for dense, weight-only sparse, activation-only sparse, and dual sparse models, respectively.

Introduction

Deep Learning models often contain significant redundancy in the form of "zero" values, arising from weight pruning and activation sparsity (e.g., through ReLU functions). While skipping these zeros can theoretically save energy and time, hardware implementation often incurs a "sparsity tax." Accelerators optimized for weight sparsity typically underperform on activation sparsity, and supporting "dual sparsity" (both weights and activations) introduces complex logic overhead—multiplexers, arbiters, and buffers—that can reduce efficiency by 20-30% compared to dense accelerators when running non-sparse models. Griffin addresses this by introducing a "morphable" architecture that maintains high performance and efficiency across dense, weight-sparse, activation-sparse, and dual-sparse models.

Design Space Exploration and the Borrowing Mechanism

The researchers developed a systematic framework to model sparsity support as a "borrowing" mechanism. Instead of simple skipping, the hardware is designed to "borrow" non-zero operations from neighboring multipliers (spatial borrowing) or future cycles (temporal borrowing). This design space is parameterized by $da$ (for activations) and $db$ (for weights) across three dimensions of data blocking.

Mapping of data to PEs and the borrowing mechanism defined by $da$ and $db$ parameters.

As shown in Figure 1, the loop structure is unrolled in space, and the $da/db$ parameters define how data is shared or "borrowed" across the Processing Element (PE) array. This structured approach allows the architecture to fit into standard systolic-array-like General Matrix Multiply (GEMM) accelerators while efficiently handling sparsity.

The Griffin Architecture: Reconfigurable Hardware

The core innovation of Griffin is its ability to repurpose hardware resources. Rather than allowing the complex logic required for dual sparsity to sit idle during single-sparsity or dense tasks, Griffin reconfigures these components. For instance, large buffers and multiplexers (MUXs) are re-wired in single-sparsity mode to enable more aggressive borrowing, further boosting performance.

Hardware configurations for different sparsity types, demonstrating Griffin's reconfigurable nature.

Figure 3 illustrates how the architecture adapts to different sparsity patterns (Sparse.A and Sparse.B). By adjusting the "borrowing" distances ($da, db$) on the fly, Griffin optimizes for the specific characteristics of activation sparsity (typically ~50%) versus weight sparsity (often >80%). Additionally, Griffin employs a rotation-based shuffling technique to mitigate load imbalance, ensuring non-zero elements are distributed evenly across the compute array.

Evaluation and Results

Griffin was evaluated using a cycle-accurate simulator across a variety of CNNs (AlexNet, ResNet50, MobileNetV2) and Transformers (BERT). The architecture demonstrates significant power efficiency gains over state-of-the-art sparse accelerators like SparTen and Bit-Tactical:

  • 1.2x more efficient for dense models.
  • 3.0x more efficient for weight-only sparse models.
  • 3.1x more efficient for activation-only sparse models.
  • 1.4x more efficient for dual sparse models.

Furthermore, Griffin maintains at least an 8% performance advantage over specialized designs, proving that a reconfigurable architecture can outperform fixed-function sparse accelerators.

Conclusion

Griffin demonstrates that the hardware overhead typically associated with sparsity support can be transformed into a flexible resource. While the architecture currently focuses on inference and requires weight pre-processing into compressed formats, its ability to "morph" based on the sparsity pattern sets a new standard for efficient DNN acceleration. Future work will explore scaling these logic overheads for wafer-scale systems and extending support to training-specific sparsity patterns.

Summary updated

BibTeX
@misc{shin2021griffin,
  author = {Jong Hoon Shin and Ali Shafiee and Ardavan Pedram and Hamzah Abdel-Aziz and Ling Li and Joseph Hassoun},
  title = {{Griffin: Rethinking Sparse Optimization for Deep Learning Architectures}},
  year = {2021},
  eprint = {2107.12922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.12922},
}
Figure