Modern GPU architectures have made significant strides in accelerating neural networks by exploiting static weight sparsity. However, dynamic, input-dependent activation sparsity remains largely unaddressed by current hardware. This paper introduces the "Dual-side Sparse Tensor Core," a hardware-software co-design that modifies existing GPU architectures to utilize an outer-product computation primitive and a bitmap-based encoding format. This approach successfully accelerates both sparse weights and sparse activations, delivering up to an order of magnitude speedup with less than 2% hardware overhead.
The Challenge of Dynamic Sparsity
Deep neural networks (DNNs) naturally exhibit two types of sparsity: static weight sparsity, induced via pruning, and dynamic activation sparsity, which occurs during inference (e.g., when ReLU functions zero out negative values). While NVIDIA's Ampere architecture introduced Sparse Tensor Cores to skip zeros, they are limited to a rigid 2:4 structural pruning pattern for weights and cannot handle the unpredictable nature of activation sparsity.
The fundamental bottleneck lies in the standard Tensor Core's reliance on inner products (dot products). Performing a sparse inner product requires matching the indices of non-zero elements from two unpredictable sparse vectors—a complex "inner-join" operation that is hardware-intensive and power-hungry. Furthermore, standard methods like im2col used to convert sparse convolutions into matrix multiplications often destroy sparsity or lead to massive memory bloat.
Proposed Architecture: Outer-Product Tensor Core
To overcome these limitations, the authors propose a shift from inner-product to outer-product primitives. In an outer product, a column vector is multiplied by a row vector, producing a matrix. This approach eliminates the need to match non-zero indices between sparse inputs, as every non-zero element in one vector is multiplied by every non-zero element in the other.
As shown in the figure above, the process involves three main steps:
- Multiply-value: Non-zero values from matrices $A_v$ and $B_v$ are multiplied to produce partial product matrices ($D1_v, D2_v, D3_v$).
- Multiply-bitmap: Corresponding bitmaps ($A_b, B_b$) are processed to determine the spatial locations of these products.
- Merge: The partial products are accumulated into the final result matrix using a specialized merger unit.
Bitmap-Based Encoding and Implicit im2col
Instead of traditional Compressed Sparse Row (CSR) formats, the design uses a two-level bitmap. This allows the hardware to use fast, native popcount instructions to efficiently schedule operations. For convolutional layers, the authors developed a novel Sparse Implicit im2col algorithm.
This algorithm operates directly on bitmap-encoded data within GPU registers, avoiding the memory overhead of explicitly expanding feature maps in global memory. By performing im2col implicitly, the system feeds the Tensor Core exactly what it needs in an outer-product-friendly format while maintaining a minimal memory footprint.
Hardware Implementation
Because outer products generate scattered partial sums, the architecture includes a specialized 4KB multi-bank accumulation buffer with an "operand collector." This component efficiently gathers and scatters results without memory conflicts. New ISA instructions, such as SpWMMA, are introduced to expose these hardware capabilities to software.
Key Results and Performance
The proposed design was evaluated using standard benchmarks (VGG-16, ResNet-18, BERT) and datasets (ImageNet, COCO, SQuAD). Key findings include:
- Speedups: The architecture achieves up to 7.49x speedup for Sparse Convolutions (SpCONV) and 8.45x for Sparse General Matrix-Matrix Multiplication (SpGEMM) compared to dense baselines and prior single-sided sparse cores.
- Efficiency: On average, CNN inference is accelerated by 4.38x, while BERT and RNN inference see a 6.74x improvement.
- Minimal Overhead: Scaled to a 12nm process, the hardware modifications occupy only ~1.5% of the die area and add just 1.6% to the power budget.
Conclusion
The Dual-side Sparse Tensor Core demonstrates that shifting to an outer-product primitive is the key to unlocking the benefits of dynamic activation sparsity. By combining this with bitmap encoding and implicit im2col transformations, the architecture provides a scalable, low-overhead solution for next-generation sparse neural network acceleration.
Summary updated