Extending Sparse Tensor Accelerators to Support Multiple Compression Formats

Eric Qin, Geonhwa Jeong, William Won, Sheng-Chun Kao, Hyoukjun Kwon, Sudarshan Srinivasan, Dipankar Das, Gordon Euhyun Moon, Sivasankaran Rajamanickam, Tushar Krishna

Introduction

Sparsity—the presence of numerous zero elements within data tensors—is a fundamental characteristic of modern Deep Learning (DL) and scientific computing workloads. Leveraging this sparsity is essential for improving computational efficiency and reducing memory overhead. However, a significant challenge arises because "one size does not fit all" when it comes to compression formats. A format that is highly compact for storage, thereby saving expensive DRAM energy, may be highly inefficient for computation, leading to low utilization of processing elements (PEs).

The Challenge: Format Rigidity in Hardware

Most current ASIC accelerators are "locked in" to one or two specific compression formats, such as Compressed Sparse Row (CSR) or Zero-Value Compression (ZVC). This rigidity creates a performance bottleneck: if a workload's sparsity pattern does not align with the hardware's native format, performance degrades significantly. While software-based conversion between formats is possible, the overhead of moving data back to a CPU or GPU for transformation often offsets the benefits of using a specialized sparse accelerator.

Proposed Solution: Decoupling Storage and Computation

A key contribution of this work is the decoupling of the Memory Compression Format (MCF) used for storage from the Algorithm Compression Format (ACF) used for computation. By allowing these to be chosen independently, the system can optimize for both storage density and computational throughput.

Conceptual overview of decoupling Memory Compression Format (MCF) and Algorithm Compression Format (ACF).

As shown in the figure above, a flexible MCF allows tensors to be stored in the most compact representation in DRAM, while a flexible ACF enables the accelerator to compute using the format that maximizes PE utilization. This decoupling ensures that data movement is minimized without sacrificing the efficiency of the processing array.

Hardware/Software Co-design: MINT and SAGE

To realize this decoupled architecture, the authors introduce a three-pronged hardware/software co-design:

  1. Accelerator Microarchitecture Extensions: Standard PEs are modified to allow flexible allocation of scratchpad memory. By using flags to treat buffer entries as either data or metadata (indices), the hardware can adapt to the varying metadata-to-data ratios of different formats.
  2. MINT (Microarchitecture for Interchangeable compressioN formats for Tensors): MINT is a dedicated hardware conversion library. Instead of specialized circuits for every possible conversion, MINT utilizes fundamental "building blocks" like prefix-sum units and comparators. An optimized version, MINT-mr (merge + reuse), repurposes existing ALU components from the main accelerator, such as adders and activation units, to perform conversions with minimal area overhead.
  3. SAGE (Sparsity formAt Generation Engine): SAGE is an analytical recommendation engine. Given the dimensions and sparsity of a workload, SAGE predicts the optimal MCF/ACF combination to minimize the Energy-Delay Product (EDP).
The proposed system architecture featuring the MINT converter and the SAGE recommendation engine.

Evaluation and Results

The researchers evaluated their design across a broad spectrum of sparsity (20% to 99.99%) using benchmarks from SuiteSparse, Deepbench, FROSTT, and BrainQ. The results demonstrate the significant advantages of this flexible approach:

  • Performance: The MINT hardware converter provides a ~4× speedup on average compared to software-based format conversions on high-end CPUs or GPUs.
  • Energy Efficiency: The architecture achieves a geomean EDP reduction of ~122% across various workloads compared to state-of-the-art fixed-format accelerators like EIE or SIGMA.
  • Minimal Overhead: The hardware extensions for MINT-mr add only about 2% to the area and 3% to the power of a standard PE array, making it highly cost-effective.
  • DRAM Savings: By utilizing the most compact MCF for storage, the system significantly reduces the energy cost of DRAM transfers, which is critical given that DRAM access can be thousands of times more expensive than local arithmetic operations.

Conclusion and Future Work

This work demonstrates that hardware flexibility in handling sparse formats is key to unlocking the full potential of sparse accelerators. By decoupling storage and compute formats and providing efficient hardware-based conversion, the proposed framework offers a scalable solution for diverse workloads. Future research will focus on extending the SAGE model to handle structured sparsity patterns (e.g., DIA or HiCOO) and exploring real-time adaptation to dynamic sparsity shifts during execution.

Summary updated

BibTeX
@inproceedings{qin2021extending,
  author = {Eric Qin and Geonhwa Jeong and William Won and Sheng-Chun Kao and Hyoukjun Kwon and Sudarshan Srinivasan and Dipankar Das and Gordon Euhyun Moon and Sivasankaran Rajamanickam and Tushar Krishna},
  title = {{Extending Sparse Tensor Accelerators to Support Multiple Compression Formats}},
  booktitle = {IPDPS},
  year = {2021},
  url = {https://openreview.net/forum?id=029r-J4Dyu0},
}
Figure