Probabilistic Weight Fixing: Large-scale training of neural network weight uncertainties for quantization

Christopher Subia-Waud, S. Dasmahapatra
9/1/2023
1 citation

No official code found. Best implementation: wanderingweights/PWFN (3 stars, Python, last commit 2024-05-16).

Abstract

Weight-sharing quantization has emerged as a technique to reduce energy expenditure during inference in large neural networks by constraining their weights to a limited set of values. However, existing methods for weight-sharing quantization often make assumptions about the treatment of weights based on value alone that neglect the unique role weight position plays.

Show full abstract

This paper proposes a probabilistic framework based on Bayesian neural networks (BNNs) and a variational relaxation to identify which weights can be moved to which cluster centre and to what degree based on their individual position-specific learned uncertainty distributions. We introduce a new initialisation setting and a regularisation term which allow for the training of BNNs under complex dataset-model combinations. By leveraging the flexibility of weight values captured through a probability distribution, we enhance noise resilience and downstream compressibility. Our iterative clustering procedure demonstrates superior compressibility and higher accuracy compared to state-of-the-art methods on both ResNet models and the more complex transformer-based architectures. In particular, our method outperforms the state-of-the-art quantization method top-1 accuracy by 1.6% on ImageNet using DeiT-Tiny, with its 5 million+ weights now represented by only 296 unique values.

View on arXivView PDF

Code Implementations(1)

31PythonOct 1, 20232 years ago

Similar Papers

Cite this paper

@article{subiawaud2023probabilistic,
  title  = {Probabilistic Weight Fixing: Large-scale training of neural network weight uncertainties for quantization},
  author = {Christopher Subia-Waud and S. Dasmahapatra},
  year   = {2023},
  eprint = {2309.13575},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.13575},
  journal = {NEURIPS 2023 2023}
}

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

Discussion