dCSR: A Memory-Efficient Sparse Matrix Representation for Parallel Neural Network Inference

Elias Trommer, Bernd Waschneck, Akash Kumar
11/24/2021
cs.DS

Official code: etrommer/dcsr (4 stars, C++, GPL-3.0, TensorFlow, last commit 2023-08-04).

Abstract

Reducing the memory footprint of neural networks is a crucial prerequisite for deploying them in small and low-cost embedded devices. Network parameters can often be reduced significantly through pruning.

Show full abstract

We discuss how to best represent the indexing overhead of sparse networks for the coming generation of Single Instruction, Multiple Data (SIMD)-capable microcontrollers. From this, we develop Delta-Compressed Storage Row (dCSR), a storage format for sparse matrices that allows for both low overhead storage and fast inference on embedded systems with wide SIMD units. We demonstrate our method on an ARM Cortex-M55 MCU prototype with M-Profile Vector Extension(MVE). A comparison of memory consumption and throughput shows that our method achieves competitive compression ratios and increases throughput over dense methods by up to $2.9 \times$ for sparse matrix-vector multiplication (SpMV)-based kernels and $1.06 \times$ for sparse matrix-matrix multiplication (SpMM). This is accomplished through handling the generation of index information directly in the SIMD unit, leading to an increase in effective memory bandwidth.

View on arXivView PDF

Code Implementations(1)

etrommer/dcsrOfficial100%
TensorFlowGPL-3.0

Software for the paper "dCSR: A Memory-Efficient Sparse Matrix Representation for Parallel Neural Network Inference"

43C++, CAug 12, 20213 years agoGPL-3.0
keraspaper-implementationsparallelismpruningtensorflow-lite

Similar Papers

Cite this paper

@article{trommer2021dcsr,
  title  = {dCSR: A Memory-Efficient Sparse Matrix Representation for Parallel Neural Network Inference},
  author = {Elias Trommer and Bernd Waschneck and Akash Kumar},
  year   = {2021},
  eprint = {2111.12345},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.12345}
}

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/2111.12345.svg)](https://codeofpaper.com/paper/2111.12345)

Discussion