On the Compressibility of Quantized Large Language Models
Yu Mao, Weilan Wang, Hongchao Du, Nan Guan, Chun Jason Xue
TL;DR
This work investigates the compressibility of quantized large language models (LLMs) and how entropy coding interacts with model accuracy. It analyzes the trade-offs between information-theoretic entropy and compression, proposing that higher entropy can boost accuracy but reduce compressibility under a uniform-information assumption, and explores outlier-aware quantization to preserve critical information. Empirical results demonstrate that entropy coding can yield substantial additional compression beyond INT8 quantization (e.g., up to ~8× for weights and ~16× for activations in some setups), while techniques like SmoothQuant maintain accuracy comparable to channel-wise quantization. Practically, entropy coding can also significantly reduce model loading time (40–60% in tested scenarios), suggesting a viable path for deploying quantized LLMs on memory-constrained devices with reduced data movement and latency.
Abstract
Deploying Large Language Models (LLMs) on edge or mobile devices offers significant benefits, such as enhanced data privacy and real-time processing capabilities. However, it also faces critical challenges due to the substantial memory requirement of LLMs. Quantization is an effective way of reducing the model size while maintaining good performance. However, even after quantization, LLMs may still be too big to fit entirely into the limited memory of edge or mobile devices and have to be partially loaded from the storage to complete the inference. In this case, the I/O latency of model loading becomes the bottleneck of the LLM inference latency. In this work, we take a preliminary step of studying applying data compression techniques to reduce data movement and thus speed up the inference of quantized LLM on memory-constrained devices. In particular, we discussed the compressibility of quantized LLMs, the trade-off between the compressibility and performance of quantized LLMs, and opportunities to optimize both of them jointly.
