SqueezeLLM: Dense-and-Sparse Quantization
Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W. Mahoney, Kurt Keutzer
摘要
Generative Large Language Models (LLMs) have demonstrated remarkable results for a wide range of tasks. However, deploying these models for inference has been a significant challenge due to their unprecedented resource requirements. This has forced existing deployment frameworks to use multi-GPU inference pipelines, which are often complex and costly, or to use smaller and less performant models. In this work, we demonstrate that the main bottleneck for generative inference with LLMs is memory bandwidth, rather than compute, specifically for single batch inference. While quantization has emerged as a promising solution by representing weights with reduced precision, previous efforts have often resulted in notable performance degradation. To address this, we introduce SqueezeLLM, a post-training quantization framework that not only enables lossless compression to ultra-low precisions of up to 3-bit, but also achieves higher quantization performance under the same memory constraint. Our framework incorporates two novel ideas: (i) sensitivitybased non-uniform quantization, which searches for the optimal bit precision assignment based on second-order information; and (ii) the Denseand-Sparse decomposition that stores outliers and sensitive weight values in an efficient sparse format. When applied to the LLaMA models, our 3-bit quantization significantly reduces the perplexity gap from the FP16 baseline by up to 2.1× as compared to the state-of-the-art methods with the same memory requirement. Furthermore, when deployed on an A6000 GPU, our quantized models achieve up to 2.3× speedup compared to the baseline. Our code is available at https://github.com/SqueezeAILab/SqueezeLLM .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 133 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 Measuring Massive Multitask Language Understanding
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 Language Models are Few-Shot Learners
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- Measuring Massive Multitask Language Understanding 引用了 Language Models are Few-Shot Learners
- KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization 引用了 OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 Measuring Massive Multitask Language Understanding
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 Language Models are Few-Shot Learners
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs 引用了 QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models 引用了 Language Models are Few-Shot Learners
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 Language Models are Few-Shot Learners
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees 引用了 LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language Models
引用它的顶会 Paper133
- KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache QuantizationColeman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney 等NeurIPS 2024 · 738 次引用
- KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV CacheZirui Liu, Jiayi Yuan, Hongye Jin, Shaochen (Henry) Zhong 等ICML 2024 · 436 次引用
- OmniQuant: Omnidirectionally Calibrated Quantization for Large Language ModelsWenqi Shao, Mengzhao Chen, Zhaoyang Zhang, Peng Xu 等ICLR 2024 · 395 次引用
- DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMsHaokun Lin, Haobo Xu, Yichen Wu, Jingzhi Cui 等NeurIPS 2024 · 206 次引用
- LUT-GEMM: Quantized Matrix Multiplication based on LUTs for Efficient Inference in Large-Scale Generative Language ModelsGunho Park, Baeseong Park, Minsub Kim, Sungjae Lee 等ICLR 2024 · 134 次引用
它引用的 Paper14
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
- GLaM: Efficient Scaling of Language Models with Mixture-of-ExpertsNan Du, Yanping Huang, Andrew M. Dai, Simon Tong 等ICML 2022 · 1,173 次引用
- QuIP: 2-Bit Quantization of Large Language Models With GuaranteesJerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De SaNeurIPS 2023 · 503 次引用
- Q-Diffusion: Quantizing Diffusion ModelsXiuyu Li, Yijiang Liu, Long Lian, Huanrui Yang 等ICCV 2023 · 279 次引用
相关 Paper
- SliM-LLM: Salience-Driven Mixed-Precision Quantization for Large Language ModelsWei Huang, Haotong Qin, Yangdong Liu, Yawei Li 等ICML 2025
- FlexQuant: A Flexible and Efficient Dynamic Precision Switching Framework for LLM QuantizationFangxin Liu, Zongwu Wang, JinHong Xia, Junping Zhao 等EMNLP Findings 2025 · 2 次引用
- ABQ-LLM: Arbitrary-Bit Quantized Inference Acceleration for Large Language ModelsChao Zeng, Songwei Liu, Yusheng Xie, Hong Liu 等AAAI 2025 · 24 次引用
- SeedLM: Compressing LLM Weights into Seeds of Pseudo-Random GeneratorsRasoul Shafipour, David Harrison, Maxwell Horton, Jeffrey Marker 等ICLR 2025
- SKIM: Any-bit Quantization Pushing The Limits of Post-Training QuantizationRunsheng Bai, Bo Liu, Qiang LiuICML 2025
