Compact representations of convolutional neural networks via weight pruning and quantization

Giosuè Cataldo Marinò, Alessandro Petrini, Dario Malchiodi, Marco Frasca
8/28/2021
cs.LG
quantization-pruning

Official code: AnacletoLAB/sHAM (11 stars, Python, Apache-2.0, last commit 2023-07-18).

Abstract

The state-of-the-art performance for several real-world problems is currently reached by convolutional neural networks (CNN). Such learning models exploit recent results in the field of deep learning, typically leading to highly performing, yet very large neural networks with (at least) millions of parameters.

Show full abstract

As a result, the deployment of such models is not possible when only small amounts of RAM are available, or in general within resource-limited platforms, and strategies to compress CNNs became thus of paramount importance. In this paper we propose a novel lossless storage format for CNNs based on source coding and leveraging both weight pruning and quantization. We theoretically derive the space upper bounds for the proposed structures, showing their relationship with both sparsity and quantization levels of the weight matrices. Both compression rates and excution times have been tested against reference methods for matrix compression, and an empirical evaluation of state-of-the-art quantization schemes based on weight sharing is also discussed, to assess their impact on the performance when applied to both convolutional and fully connected layers. On four benchmarks for classification and regression problems and comparing to the baseline pre-trained uncompressed network, we achieved a reduction of space occupancy up to 0.6% on fully connected layers and 5.44% on the whole network, while performing at least as competitive as the baseline.

View on arXivView PDF

Code Implementations(1)

AnacletoLAB/sHAMOfficial100%
Apache-2.0

Compact representations of convolutional neural networks via weight pruning and quantization

113Python, CAug 27, 20213 years agoApache-2.0
compressiondeep-learningneural-networkneural-network-compression

Similar Papers

Cite this paper

@article{marin2021compact,
  title  = {Compact representations of convolutional neural networks via weight pruning and quantization},
  author = {Giosuè Cataldo Marinò and Alessandro Petrini and Dario Malchiodi and Marco Frasca},
  year   = {2021},
  eprint = {2108.12704},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.12704}
}

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

Discussion