paper-with-me

Papers

DiscQuant: A Quantization Method for Neural Networks Inspired by Discrepancy Theory

2025-01-11 · Jerry Chee, Arturs Backurs, Rainie Heck, Li Zhang, Janardhan Kulkarni, Thomas Rothvoss, Sivakanth Gopi

Quantizing the weights of a neural network has two steps: (1) Finding a good low bit-complexity representation for weights (which we call the quantization grid) and (2) Rounding the original weights to values in the quantization grid. In this paper, we study the problem of rounding optimally given any quantization grid. The simplest and most commonly used way to round is Round-to-Nearest (RTN). By rounding in a data-dependent way instead, one can improve the quality of the quantized model significantly. We study the rounding problem from the lens of \emph{discrepancy theory}, which studies how well we can round a continuous solution to a discrete solution without affecting solution quality too much. We prove that given $m=\mathrm{poly}(1/\epsilon)$ samples from the data distribution, we can round all but $O(m)$ model weights such that the expected approximation error of the quantized model on the true data distribution is $\le \epsilon$ as long as the space of gradients of the original model is approximately low rank (which we empirically validate). Our proof, which is algorithmic, inspired a simple and practical rounding algorithm called \emph{DiscQuant}. In our experiments, we demonstrate that DiscQuant significantly improves over the prior state-of-the-art rounding method called GPTQ and the baseline RTN over a range of benchmarks on Phi3mini-3.8B and Llama3.1-8B. For example, rounding Phi3mini-3.8B to a fixed quantization grid with 3.25 bits per parameter using DiscQuant gets 64\% accuracy on the GSM8k dataset, whereas GPTQ achieves 54\% and RTN achieves 31\% (the original model achieves 84\%). We make our code available at https://github.com/jerry-chee/DiscQuant.

📄 PDF Abstract BibTeX arXiv:2501.06417

Code (1)

jerry-chee/discquant 공식 구현 pytorch

Tasks

GSM8KQuantization

Similar Papers 제목 키워드 기반

Causal-DFQ: Causality Guided Data-free Network Quantization

2023-09-24 · ICCV 2023 1 · Yuzhang Shang, Bingxin Xu, Gaowen Liu, Ramana Kompella 외

Model quantization, which aims to compress deep neural networks and accelerate inference speed, has greatly facilitated the development of cumbersome models on mobile and edge devices. There is a common assumption in qua…

Data Free QuantizationNeural Network CompressionQuantization

On the Discrepancy between the Theoretical Analysis and Practical Implementations of Compressed Communication for Distributed Deep Learning

2019-11-19 · Aritra Dutta, El Houcine Bergou, Ahmed M. Abdelmoniem, Chen-Yu Ho 외

Compressed communication, in the form of sparsification or quantization of stochastic gradients, is employed to reduce communication costs in distributed data-parallel training of deep neural networks. However, there exi…

Model CompressionQuantization

Sub-8-Bit Quantization Aware Training for 8-Bit Neural Network Accelerator with On-Device Speech Recognition

2022-06-30 · Kai Zhen, Hieu Duy Nguyen, Raviteja Chinta, Nathan Susanj 외

We present a novel sub-8-bit quantization-aware training (S8BQAT) scheme for 8-bit neural network accelerators. Our method is inspired from Lloyd-Max compression theory with practical adaptations for a feasible computati…

Quantizationspeech-recognitionSpeech Recognition

Neural activity in quarks language: Lattice Field Theory for a network of real neurons

2023-10-13 · Giampiero Bardella, Simone Franchini, Liming Pan, Riccardo Balzan 외

Brain-computer interfaces surged extraordinary developments in recent years, and a significant discrepancy now exists between the abundance of available data and the limited headway made in achieving a unified theoretica…

Zero-shot Adversarial Quantization

2021-03-29 · CVPR 2021 1 · Yuang Liu, Wei zhang, Jun Wang

Model quantization is a promising approach to compress deep neural networks and accelerate inference, making it possible to be deployed on mobile and edge devices. To retain the high performance of full-precision models,…

Data Free QuantizationQuantizationTransfer Learning