Accelerating Deep Neural Networks via Semi-Structured Activation Sparsity

Matteo Grimaldi, Darshan C. Ganji, Ivan Lazarevich, Sudhakar Sah
9/12/2023
cs.CVcs.LG

No confident code implementation found for this paper.

Abstract

The demand for efficient processing of deep neural networks (DNNs) on embedded devices is a significant challenge limiting their deployment. Exploiting sparsity in the network's feature maps is one of the ways to reduce its inference latency. It is known that unstructured sparsity results in lower accuracy degradation with respect to structured sparsity but the former needs extensive inference engine changes to get latency benefits. To tackle this challenge, we propose a solution to induce semi-structured activation sparsity exploitable through minor runtime modifications. To attain high speedup levels at inference time, we design a sparse training procedure with awareness of the final position of the activations while computing the General Matrix Multiplication (GEMM). We extensively evaluate the proposed solution across various models for image classification and object detection tasks. Remarkably, our approach yields a speed improvement of $1.25 \times$ with a minimal accuracy drop of $1.1\%$ for the ResNet18 model on the ImageNet dataset. Furthermore, when combined with a state-of-the-art structured pruning method, the resulting models provide a good latency-accuracy trade-off, outperforming models that solely employ structured pruning techniques.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{grimaldi2023accelerating,
  title  = {Accelerating Deep Neural Networks via Semi-Structured Activation Sparsity},
  author = {Matteo Grimaldi and Darshan C. Ganji and Ivan Lazarevich and Sudhakar Sah},
  year   = {2023},
  eprint = {2309.06626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.06626v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.06626.svg)](https://codeofpaper.com/paper/2309.06626)

Discussion