Effect of Weight Quantization on Learning Models by Typical Case Analysis

Shuhei Kashiwamura, Ayaka Sakata, Masaaki Imaizumi
1/30/2024
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

This paper examines the quantization methods used in large-scale data analysis models and their hyperparameter choices. The recent surge in data analysis scale has significantly increased computational resource requirements. To address this, quantizing model weights has become a prevalent practice in data analysis applications such as deep learning. Quantization is particularly vital for deploying large models on devices with limited computational resources. However, the selection of quantization hyperparameters, like the number of bits and value range for weight quantization, remains an underexplored area. In this study, we employ the typical case analysis from statistical physics, specifically the replica method, to explore the impact of hyperparameters on the quantization of simple learning models. Our analysis yields three key findings: (i) an unstable hyperparameter phase, known as replica symmetry breaking, occurs with a small number of bits and a large quantization width; (ii) there is an optimal quantization width that minimizes error; and (iii) quantization delays the onset of overparameterization, helping to mitigate overfitting as indicated by the double descent phenomenon. We also discover that non-uniform quantization can enhance stability. Additionally, we develop an approximate message-passing algorithm to validate our theoretical results.

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{kashiwamura2024effect,
  title  = {Effect of Weight Quantization on Learning Models by Typical Case Analysis},
  author = {Shuhei Kashiwamura and Ayaka Sakata and Masaaki Imaizumi},
  year   = {2024},
  eprint = {2401.17269},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.17269v1}
}

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

Discussion