S2TA: Exploiting Structured Sparsity for Energy-Efficient Mobile CNN Acceleration

Zhi Gang Liu, Paul N. Whatmough, Yuhao Zhu, Matthew Mattina

TL;DR

Exploiting random, unstructured sparsity in neural networks requires complex hardware that destroys energy efficiency in mobile devices. This paper introduces S2TA, a novel systolic array accelerator that leverages structured Density Bound Block (DBB) sparsity for both weights and activations, achieving over 2x energy savings and speedups compared to state-of-the-art sparse accelerators without the massive buffer overheads.

What Problem Does This Paper Address?

To make Convolutional Neural Networks (CNNs) run efficiently on mobile and IoT devices, engineers often rely on sparsity (skipping computations where weights or activations are zero). However, zeros in CNNs usually appear in random, unpredictable patterns—known as unstructured sparsity.

To exploit unstructured sparsity, hardware accelerators must use complex "operand gather" or "result scatter" mechanisms to match non-zero values and balance the compute load across processing elements. For lightweight 8-bit integer (INT8) mobile accelerators, the actual math (MAC operations) is incredibly cheap, meaning the energy and area overhead of these extra data-shuffling buffers easily eclipses the energy saved by skipping the math. In short, random sparsity hardware is too heavy for mobile inference.

Methods

The authors propose shifting from unstructured sparsity to Density Bound Block (DBB) sparsity. DBB divides a tensor into fixed-size blocks (e.g., 8 elements) and enforces a strict upper limit on the number of non-zeros (NNZ) per block (e.g., a maximum of 4 non-zeros, denoted as 4/8 DBB). This bounds the maximum workload, making it statically predictable and eliminating the need for heavy load-balancing buffers.

To implement this, the authors design the Structured Sparse Tensor Accelerator (S2TA), which introduces several novel hardware and software co-designs:

  • W-DBB (Weight DBB): Weights are pruned offline during training to meet the DBB constraint. Hardware support is as simple as a multiplexer to steer the correct activations to the MAC units.
  • A-DBB (Activation DBB) & DAP: Because activations change at runtime, the authors introduce Dynamic Activation Pruning (DAP) hardware—a series of cascaded max-pool units that dynamically keep only the top-NNZ magnitude values in an activation block.
  • Time-Unrolled Architecture: Activation sparsity varies wildly from layer to layer (e.g., early layers are dense, later layers are highly sparse). Instead of building fixed hardware that would be underutilized, S2TA serializes the processing of A-DBB blocks in time. A single MAC processes the non-zeros over multiple cycles, allowing the hardware to seamlessly adapt to any sparsity ratio (from 1/8 to 8/8) on a per-layer basis.
  • Tensor PEs (TPEs): The traditional scalar Processing Elements (PEs) in a systolic array are replaced with TPEs that natively ingest and compute on compressed DBB blocks, unlocking new dimensions of data reuse.

Datasets

The authors evaluated their DBB pruning and hardware performance on standard benchmarks:

  • ImageNet: Used to evaluate VGG-16, MobileNetV1, and ResNet-50V1.
  • MNIST: Used to evaluate LeNet-5.
  • GLUE (QQP, SST2): Used to evaluate I-BERT (showing the approach also works for Transformers).

Key Insights and Ideas

  • Buffers dominate INT8 energy: The authors' profiling reveals that in a dense INT8 systolic array, the MAC datapath consumes only 20% of the energy, while operand and result buffers consume ~70%. Therefore, any sparsity scheme that adds buffer overhead is fundamentally flawed for mobile.
  • Structured sparsity fixes load imbalance natively: By guaranteeing a maximum number of non-zeros per block, DBB ensures that processing elements finish their work at predictable times, completely removing the need for power-hungry FIFO staging buffers.
  • Time-unrolling is the key to variable sparsity: Fixing activation sparsity in hardware forces a bad compromise. By unrolling the computation in time rather than space, the accelerator can dynamically adjust to the exact sparsity of the current layer, keeping hardware utilization near 100% without wasting cycles.

Key Results

  • High Accuracy: Using a 4/8 DBB configuration for weights and a variable DBB for activations results in a minimal accuracy drop (~1% on average across models) after fine-tuning.
  • Massive Efficiency Gains: On a 16nm process, the fully optimized S2TA-AW (exploiting both weight and activation sparsity) achieves an average 2.08x energy reduction and 2.11x speedup over a baseline dense systolic array equipped with zero-value clock gating.
  • Beating the State-of-the-Art: Compared to recent unstructured sparse accelerators, S2TA is vastly more efficient. On AlexNet in 65nm technology, S2TA uses 2.2x less energy than SparTen (which uses a 45nm node) and 3.1x less energy than Eyeriss v2.

Limitations and Future Work

  • Lossy Activation Pruning: Dynamic Activation Pruning (DAP) is inherently lossy. It requires the network to be fine-tuned using a DAP-aware training loop to recover accuracy, which adds overhead to the model deployment pipeline.
  • Future Work: The authors note that bit-wise sparsity (skipping zero bits within a single 8-bit word, rather than entire zero words) is an orthogonal technique. Combining DBB with bit-level sparsity accelerators (like Pragmatic or Laconic) is highlighted as a highly promising avenue for future research.

Summary updated

BibTeX
@inproceedings{liu2022s,
  author = {Zhi Gang Liu and Paul N. Whatmough and Yuhao Zhu and Matthew Mattina},
  title = {{S2TA: Exploiting Structured Sparsity for Energy-Efficient Mobile CNN Acceleration}},
  booktitle = {HPCA},
  year = {2022},
  url = {https://openreview.net/forum?id=Abg5vSHMgV},
}
Figure