LSQ+: Improving low-bit quantization through learnable offsets and
better initialization
- URL: http://arxiv.org/abs/2004.09576v1
- Date: Mon, 20 Apr 2020 19:04:51 GMT
- Title: LSQ+: Improving low-bit quantization through learnable offsets and
better initialization
- Abstract summary: Learnable quantization schemes assume unsigned quantization for activations and quantize all negative activations to zero.
We propose LSQ+, wherein we introduce a general asymmetric quantization scheme with trainable scale and offset parameters.
We show that LSQ+ shows state-of-the-art results for EfficientNet and MixNet and significantly outperforms LSQ for low-bit quantization of neural nets with Swish activations.
- Score: 43.59213570404785
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Unlike ReLU, newer activation functions (like Swish, H-swish, Mish) that are
frequently employed in popular efficient architectures can also result in
negative activation values, with skewed positive and negative ranges. Typical
learnable quantization schemes [PACT, LSQ] assume unsigned quantization for
activations and quantize all negative activations to zero which leads to
significant loss in performance. Naively using signed quantization to
accommodate these negative values requires an extra sign bit which is expensive
for low-bit (2-, 3-, 4-bit) quantization. To solve this problem, we propose
LSQ+, a natural extension of LSQ, wherein we introduce a general asymmetric
quantization scheme with trainable scale and offset parameters that can learn
to accommodate the negative activations. Gradient-based learnable quantization
schemes also commonly suffer from high instability or variance in the final
training performance, hence requiring a great deal of hyper-parameter tuning to
reach a satisfactory performance. LSQ+ alleviates this problem by using an
MSE-based initialization scheme for the quantization parameters. We show that
this initialization leads to significantly lower variance in final performance
across multiple training runs. Overall, LSQ+ shows state-of-the-art results for
EfficientNet and MixNet and also significantly outperforms LSQ for low-bit
quantization of neural nets with Swish activations (e.g.: 1.8% gain with W4A4
quantization and upto 5.6% gain with W2A2 quantization of EfficientNet-B0 on
ImageNet dataset). To the best of our knowledge, ours is the first work to
quantize such architectures to extremely low bit-widths.
Related papers
- OffQ: Taming Structured Outliers in LLM Quantization by Offsetting [46.325071880831445]
OffQ mitigates activation outliers in low-bit quantization through a novel offsetting mechanism.<n>OffQ consistently improves model accuracy while preserving low-bit efficiency.
arXiv Detail & Related papers (2026-06-05T10:11:34Z) - InfoQuant: Shaping Activation Distributions for Low-Bit LLM Quantization [16.236156118201116]
Low-bit activation quantization remains a major bottleneck in large language model (LLM) deployment.<n>Existing post-training quantization methods suppress peaks, balance channels, or minimize reconstruction error.<n>We recast activation transformation as quantizer-facing distribution design and analyze quantization error from an information-theoretic perspective.<n>We propose InfoQuant, a train-free method that employs Peak Suppression Orthogonal Transformation (PSOT) to shape activations into more quantization-friendly distributions.
arXiv Detail & Related papers (2026-05-25T05:34:46Z) - Enhancing Post-Training Quantization via Future Activation Awareness [84.76726857601753]
Post-training quantization (PTQ) is a widely used method to compress large language models (LLMs) without fine-tuning.<n>We propose Future-Aware Quantization (FAQ), which leverages future-layer activations to guide quantization.<n>FAQ consistently outperforms prior methods with negligible extra cost, requiring no backward passes, data reconstruction, or tuning.
arXiv Detail & Related papers (2026-01-28T12:03:30Z) - Pushing the Limits of Low-Bit Optimizers: A Focus on EMA Dynamics [65.37942405146232]
We present a novel type of overload that carries with extremely lightweight state elements, achieved through ultra-low-precision quantization.
The proposed SOLO achieves substantial memory savings (approximately 45 GB when training a 7B model) with minimal accuracy loss.
arXiv Detail & Related papers (2025-05-01T06:47:45Z) - Achieving binary weight and activation for LLMs using Post-Training Quantization [32.247768389896144]
Quantizing large language models (LLMs) to 1-bit precision significantly reduces computational costs.<n>Existing quantization techniques suffer from noticeable performance degradation when using weight and activation precisions below 4 bits (W4A4)
arXiv Detail & Related papers (2025-04-07T04:50:04Z) - PTQ1.61: Push the Real Limit of Extremely Low-Bit Post-Training Quantization Methods for Large Language Models [64.84734437930362]
Large Language Models (LLMs) suffer severe performance degradation when facing extremely low-bit (sub 2-bit) quantization.
We propose an extremely low-bit PTQ method called PTQ1.61, which enables weight quantization to 1.61-bit for the first time.
Experiments indicate our PTQ1.61 achieves state-of-the-art performance in extremely low-bit quantization.
arXiv Detail & Related papers (2025-02-18T08:04:58Z) - ADFQ-ViT: Activation-Distribution-Friendly Post-Training Quantization for Vision Transformers [7.155242379236052]
Quantization of Vision Transformers (ViTs) has emerged as a promising solution to mitigate these challenges.
Existing methods still suffer from significant accuracy loss at low-bit.
ADFQ-ViT provides significant improvements over various baselines in image classification, object detection, and instance segmentation tasks at 4-bit.
arXiv Detail & Related papers (2024-07-03T02:41:59Z) - PikeLPN: Mitigating Overlooked Inefficiencies of Low-Precision Neural Networks [4.827161693957252]
Non-quantized elementwise operations dominate the inference cost of low-precision models.
PikeLPN model addresses these issues by applying quantization to both elementwise operations and multiply-accumulate operations.
arXiv Detail & Related papers (2024-03-29T18:23:34Z) - LLM-FP4: 4-Bit Floating-Point Quantized Transformers [38.23587031169402]
We propose LLM-FP4 for quantizing both weights and activations in large language models (LLMs) down to 4-bit floating-point values.
Compared to integer quantization, floating-point (FP) quantization is more flexible and can better handle long-tail or bell-shaped distributions.
Our method, for the first time, can quantize both weights and activations in the LLaMA-13B to only 4-bit and achieves an average score of 63.1.
arXiv Detail & Related papers (2023-10-25T17:59:32Z) - EfficientDM: Efficient Quantization-Aware Fine-Tuning of Low-Bit Diffusion Models [21.17675493267517]
Post-training quantization (PTQ) and quantization-aware training (QAT) are two main approaches to compress and accelerate diffusion models.
We introduce a data-free and parameter-efficient fine-tuning framework for low-bit diffusion models, dubbed EfficientDM, to achieve QAT-level performance with PTQ-like efficiency.
Our method significantly outperforms previous PTQ-based diffusion models while maintaining similar time and data efficiency.
arXiv Detail & Related papers (2023-10-05T02:51:53Z) - OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models [57.27101446992148]
Large language models (LLMs) have revolutionized natural language processing tasks.
Recent post-training quantization (PTQ) methods are effective in reducing memory footprint and improving the computational efficiency of LLM.
We introduce an Omnidirectionally calibrated Quantization technique for LLMs, which achieves good performance in diverse quantization settings.
arXiv Detail & Related papers (2023-08-25T02:28:35Z) - Designing strong baselines for ternary neural network quantization
through support and mass equalization [7.971065005161565]
Deep neural networks (DNNs) offer the highest performance in a wide range of applications in computer vision.
This computational burden can be dramatically reduced by quantizing floating point values to ternary values.
We show experimentally that our approach allows to significantly improve the performance of ternary quantization through a variety of scenarios.
arXiv Detail & Related papers (2023-06-30T07:35:07Z) - Cluster-Promoting Quantization with Bit-Drop for Minimizing Network
Quantization Loss [61.26793005355441]
Cluster-Promoting Quantization (CPQ) finds the optimal quantization grids for neural networks.
DropBits is a new bit-drop technique that revises the standard dropout regularization to randomly drop bits instead of neurons.
We experimentally validate our method on various benchmark datasets and network architectures.
arXiv Detail & Related papers (2021-09-05T15:15:07Z) - Q-ASR: Integer-only Zero-shot Quantization for Efficient Speech
Recognition [65.7040645560855]
We propose Q-ASR, an integer-only, zero-shot quantization scheme for ASR models.
We show negligible WER change as compared to the full-precision baseline models.
Q-ASR exhibits a large compression rate of more than 4x with small WER degradation.
arXiv Detail & Related papers (2021-03-31T06:05:40Z) - Direct Quantization for Training Highly Accurate Low Bit-width Deep
Neural Networks [73.29587731448345]
This paper proposes two novel techniques to train deep convolutional neural networks with low bit-width weights and activations.
First, to obtain low bit-width weights, most existing methods obtain the quantized weights by performing quantization on the full-precision network weights.
Second, to obtain low bit-width activations, existing works consider all channels equally.
arXiv Detail & Related papers (2020-12-26T15:21:18Z) - Widening and Squeezing: Towards Accurate and Efficient QNNs [125.172220129257]
Quantization neural networks (QNNs) are very attractive to the industry because their extremely cheap calculation and storage overhead, but their performance is still worse than that of networks with full-precision parameters.
Most of existing methods aim to enhance performance of QNNs especially binary neural networks by exploiting more effective training techniques.
We address this problem by projecting features in original full-precision networks to high-dimensional quantization features.
arXiv Detail & Related papers (2020-02-03T04:11:13Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.