Abstract
Large Language Models (LLMs) have distinguished themselves with outstanding performance in complex language modeling tasks, yet they come with significant computational and storage challenges. This paper explores the potential of quantization to mitigate these challenges. We systematically study the combined application of three well-known post-training techniques, SmoothQuant, AWQ, and GPTQ, and provide a comprehensive analysis of their interactions and implications for advancing LLM quantization. We enhance the versatility of these methods by enabling quantization to microscaling (MX) formats, extending the applicability of these PTQ algorithms beyond their original fixed-point format targets. We show that combining different PTQ methods enables us to quantize models to 4-bit weights and 8-bit activations using the MXINT format with negligible accuracy loss compared to the uncompressed baseline.
Introduction
Large Language Models (LLMs) are notoriously resource-hungry, demanding massive amounts of memory and computational power. Quantization—reducing the precision of model weights and activations (e.g., from 16-bit floats to 4-bit integers)—is the standard solution to make these models deployable on edge devices. However, LLMs contain "outliers"—values with unusually large magnitudes—that make quantization difficult. These outliers stretch the dynamic range, leaving fewer "bits" to represent the majority of the data, which leads to significant accuracy drops.
While algorithms like SmoothQuant, AWQ, and GPTQ were designed to mitigate this for standard fixed-point formats (like INT4 or INT8), they had not been systematically adapted for Microscaling (MX) data formats. MX formats use shared scale factors for small blocks of numbers, offering a more flexible and hardware-efficient way to handle range issues, but they require a rethink of how standard post-training quantization (PTQ) algorithms operate.
Methodology
This research systematically studies the interactions between three major PTQ strategies and adapts them for the MX format:
- GPTQ Adaptation: Originally, GPTQ updates weights column-wise. The authors modified it to work block-wise, aligning the algorithm with the block-based structure of MX formats.
- Smoothing Adaptation: The application of SmoothQuant and AWQ was simplified for MX, skipping the complex calibration phases usually required for fixed-point formats.
- Algorithmic Synergy: A key contribution is discovering the "order of operations." The study found that SmoothQuant/AWQ and GPTQ are synergistic, but only if applied correctly: weights must first be "smoothed" to handle outliers (using SmoothQuant or AWQ) before applying GPTQ to minimize the remaining quantization error. Reversing this order leads to poor performance.
- MXINT Format: The study focuses on MXINT, where individual elements are integers scaled by a shared 8-bit exponent across a block (typically 32 to 128 elements).
Experimental Setup
The models were evaluated across a variety of standard benchmarks to assess both language modeling capability and reasoning:
- Language Modeling (Perplexity): WikiText-2 and C4.
- Zero-Shot Commonsense Reasoning: A suite of eight tasks including ARC (Easy and Challenge), BoolQ, PIQA, SIQA, HellaSwag, OBQA, and WinoGrande.
- Models Tested: Llama2 (7B, 13B), Llama3.1 (8B), and Qwen2 (1.5B, 7B).
Key Results and Discussion
MX vs. Fixed-Point Formats
At the same bit-width, Microscaling (MX) formats consistently outperform standard fixed-point (INT) formats. For example, Llama2-7B quantized to INT4 sees a significant jump in perplexity, but MXINT4 keeps it much closer to the baseline. The research demonstrates that MX formats are not just theoretical; they are being adopted by major hardware players like NVIDIA (Blackwell GPUs), ARM, and Intel.
Performance Benchmarks
As shown in the detailed results for Llama models, quantizing to MXINT8 (8-bit weights and activations) resulted in virtually zero accuracy loss compared to the uncompressed FP16 baseline. By combining AWQ and GPTQ, the authors achieved high-performance 4-bit weight quantization. For Llama2-7B, the MXINT4 configuration reached a perplexity of 5.37, very close to the FP16 baseline of 5.12. In contrast, standard Round-To-Nearest (RTN) quantization at 4-bits resulted in a significantly worse perplexity of 5.55.
Synergy and Redundancy
The authors found that SmoothQuant and AWQ are essentially redundant with each other because they both target the same problem (activation outliers). However, GPTQ's true potential is unlocked when paired with a smoothing technique, allowing for aggressive 3-bit and 4-bit weight quantization that remains usable.
Conclusion and Future Work
This study demonstrates that combining adapted PTQ methods with MX formats allows for significant model compression with negligible accuracy loss. However, limitations remain. Due to hardware constraints, the study was limited to models up to 13B parameters; future work should explore if these trends hold for 70B+ parameter models. Additionally, while this work focused on weights and activations, quantizing the Key-Value (KV) cache in MX formats is a logical next step for further memory savings during inference.
Summary updated