Skip to main content
QUICK REVIEW

[Paper Review] Accelerating Sparse DNN Models without Hardware-Support via Tile-Wise Sparsity

Cong Guo, Bo Yang Hsueh|arXiv (Cornell University)|Aug 29, 2020
Tensor decomposition and applicationsMathematics56 references13 citations
TL;DR

This paper proposes tile-wise (TW) sparsity, a software-only pruning method that enables efficient inference of sparse DNNs on commodity GPUs without hardware modifications. By enforcing regular sparsity patterns at the tile level within GEMM operations, TW maintains high model accuracy through global irregular pruning while achieving up to 1.95× speedup on GPU tensor cores over dense models.

ABSTRACT

Network pruning can reduce the high computation cost of deep neural network (DNN) models. However, to maintain their accuracies, sparse models often carry randomly-distributed weights, leading to irregular computations. Consequently, sparse models cannot achieve meaningful speedup on commodity hardware (e.g., GPU) built for dense matrix computations. As such, prior works usually modify or design completely new sparsity-optimized architectures for exploiting sparsity. We propose an algorithm-software co-designed pruning method that achieves latency speedups on existing dense architectures. Our work builds upon the insight that the matrix multiplication generally breaks the large matrix into multiple smaller tiles for parallel execution. We propose a tiling-friendly "tile-wise" sparsity pattern, which maintains a regular pattern at the tile level for efficient execution but allows for irregular, arbitrary pruning at the global scale to maintain the high accuracy. We implement and evaluate the sparsity pattern on GPU tensor core, achieving a 1.95x speedup over the dense model.

Motivation & Objective

  • To address the performance bottleneck of sparse DNNs on commodity hardware due to irregular memory access from arbitrary sparsity patterns.
  • To enable efficient acceleration of pruned DNN models on existing dense GEMM accelerators like GPU tensor cores without architectural modifications.
  • To balance model accuracy and execution efficiency by introducing a tiling-friendly sparsity pattern that allows global irregular pruning while preserving regularity at the tile level.
  • To demonstrate that software-only optimization can achieve significant speedups on standard hardware, avoiding reliance on specialized sparsity-optimized accelerators.

Proposed method

  • The method divides large matrices into smaller tiles for GEMM computation, enforcing sparsity at the tile level to maintain compatibility with existing dense GEMM kernels.
  • It applies row/column pruning within each tile based on collective importance scores, enabling regular computation patterns at the tile level while allowing arbitrary global sparsity.
  • The tile size controls the trade-off between accuracy and efficiency: smaller tiles allow finer-grained pruning (closer to element-wise sparsity), larger tiles enforce coarser, structural pruning.
  • A hybrid sparsity pattern overlays fine-grained element-wise pruning (1.5% of weights) on top of TW sparsity to further improve accuracy with minimal overhead.
  • The approach is implemented on GPU tensor cores using standard GEMM kernels with transpose and fusion optimizations enabled by default.
  • The method leverages existing concurrency and memory access patterns in GPUs, avoiding changes to microarchitecture or low-level programming interfaces.

Experimental results

Research questions

  • RQ1Can a software-only sparsity pattern be designed to accelerate sparse DNN inference on commodity GPUs without hardware modifications?
  • RQ2How can sparsity be structured to maintain high model accuracy while enabling efficient execution on existing GEMM accelerators?
  • RQ3What is the optimal trade-off between tile size and sparsity pattern that balances accuracy and performance on standard hardware?
  • RQ4Can a hybrid sparsity pattern combining tile-wise and element-wise sparsity further improve accuracy with minimal performance cost?

Key findings

  • The proposed tile-wise (TW) sparsity pattern achieves a 1.95× speedup over the dense model on GPU tensor cores for BERT and NMT models with 75% sparsity and less than 3% accuracy drop.
  • The end-to-end latency is reduced by 1.61× and 1.86× on the tensor core for BERT and NMT, respectively, under the same sparsity and accuracy conditions.
  • The hybrid sparsity pattern, combining TW with 1.5% element-wise pruning, significantly improves model accuracy compared to TW-only, especially in models with uneven sparsity distribution.
  • A tile size of G=128 provides a favorable balance between model accuracy and execution efficiency, enabling effective use of GEMM hardware.
  • The method is compatible with existing platforms like TPU, provided low-level programming interfaces expose the required medium-sized GEMM operations (e.g., 128×N×128).
  • The approach maintains high performance across diverse DNN models, including BERT and neural machine translation models, demonstrating broad applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.