Neural Network Compression using Binarization and Few Full-Precision Weights

Franco Maria Nardini, Cosimo Rulli, Salvatore Trani, Rossano Venturini
6/15/2023
cs.CVcs.LG

No confident code implementation found for this paper.

Abstract

Quantization and pruning are two effective Deep Neural Networks model compression methods. In this paper, we propose Automatic Prune Binarization (APB), a novel compression technique combining quantization with pruning. APB enhances the representational capability of binary networks using a few full-precision weights. Our technique jointly maximizes the accuracy of the network while minimizing its memory impact by deciding whether each weight should be binarized or kept in full precision. We show how to efficiently perform a forward pass through layers compressed using APB by decomposing it into a binary and a sparse-dense matrix multiplication. Moreover, we design two novel efficient algorithms for extremely quantized matrix multiplication on CPU, leveraging highly efficient bitwise operations. The proposed algorithms are 6.9x and 1.5x faster than available state-of-the-art solutions. We extensively evaluate APB on two widely adopted model compression datasets, namely CIFAR10 and ImageNet. APB delivers better accuracy/memory trade-off compared to state-of-the-art methods based on i) quantization, ii) pruning, and iii) combination of pruning and quantization. APB outperforms quantization in the accuracy/efficiency trade-off, being up to 2x faster than the 2-bit quantized model with no loss in accuracy.

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{nardini2023neural,
  title  = {Neural Network Compression using Binarization and Few Full-Precision Weights},
  author = {Franco Maria Nardini and Cosimo Rulli and Salvatore Trani and Rossano Venturini},
  year   = {2023},
  eprint = {2306.08960},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.08960v2}
}

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

Discussion