NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SqueezeLLM: Dense-and-Sparse Quantization

Sehoon Kim, Coleman Richard Charles Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W. Mahoney, Kurt Keutzer

TL;DR

SqueezeLLM introduces a post-training quantization framework that enables near-lossless 3-bit compression for Large Language Models (LLMs). By combining sensitivity-based non-uniform quantization with a "Dense-and-Sparse" decomposition, it overcomes the "Memory Wall" to achieve up to 2.3x inference speedups while significantly outperforming existing methods like GPTQ and AWQ in model accuracy.

What Problem Does This Paper Address?

The primary bottleneck in LLM inference isn't raw computational power—it's memory bandwidth. In single-batch generative tasks, the processor spends most of its time waiting for model weights to load from memory rather than actually performing math. This is known as the "Memory Wall."

Normalized runtime across different weight precisions demonstrating the memory wall.

To fit massive models (like LLaMA-65B) onto consumer or workstation GPUs, researchers use quantization to reduce weight precision (e.g., from 16-bit to 4-bit or 3-bit). However, at ultra-low precisions like 3-bit, standard quantization methods often cause a massive spike in "perplexity" (a measure of how confused the model is), making the model much less useful. Existing solutions often struggle with "outlier" weights that have extreme values and disproportionate influence on the model's output.

Methods

SqueezeLLM tackles these challenges through two primary innovations:

  1. Sensitivity-Based Non-Uniform Quantization: Instead of forcing weights into evenly spaced "bins" (uniform quantization), SqueezeLLM uses a weighted k-means clustering approach. Crucially, it uses second-order information—specifically the Fisher Information Matrix—to determine which weights are most "sensitive." The algorithm assigns more quantization bins to these sensitive regions, ensuring that the most important weights are represented with higher fidelity.

  2. Dense-and-Sparse Decomposition: The authors observed that a tiny fraction of weights (less than 0.5%) are either extreme outliers or highly sensitive. SqueezeLLM extracts these "troublemakers" into a separate sparse matrix stored in full FP16 precision. The remaining 99.5% of weights form a "dense" matrix with a much narrower range, making them significantly easier to quantize to 3 or 4 bits without losing information.

  3. Efficient Implementation: To make this work in practice, the team developed custom CUDA kernels. These kernels handle the lookup-table (LUT) based dequantization for the non-uniform dense part and use a "balanced" sparse matrix-vector multiplication (SpMV) to ensure the sparse overhead doesn't kill the performance gains.

Datasets & Key Insights

The researchers evaluated SqueezeLLM across several prominent model families (LLaMA, LLaMA-2, OPT, and Vicuna) using language modeling benchmarks (C4, WikiText2) and zero-shot tasks (MMLU).

  • Sensitivity > Magnitude: Traditional outlier detection often looks for weights with the largest absolute values. SqueezeLLM proves that sensitivity (how much a change in weight affects the final loss) is a much better metric for deciding what to keep in high precision.
  • The Non-Uniform Advantage: Because LLM inference is memory-bound, the computational overhead of using a lookup table for non-uniform values is negligible compared to the benefit of loading fewer bits from memory.
  • Decomposition vs. Grouping: While methods like AWQ or GPTQ use "grouping" (scaling weights in small blocks), SqueezeLLM’s sparse-dense split is more effective at isolating the specific values that degrade performance at low bit-widths.

Key Results

  • Superior Accuracy: On LLaMA-7B at 3-bit precision, SqueezeLLM achieved a perplexity of 7.56 on the C4 dataset, compared to 28.26 for standard uniform quantization and ~8-10 for other state-of-the-art methods.
SqueezeLLM performance improvements and perplexity vs. model size comparisons.
  • Near-Lossless 4-bit: At 4-bit, the model is virtually indistinguishable from the FP16 baseline.
  • Real-world Speedups: When deployed on an NVIDIA A6000 GPU, SqueezeLLM achieved a 2.3x speedup over the FP16 baseline and outperformed grouped GPTQ implementations, which suffer from memory alignment issues.
  • Instruction Following: In GPT-4-based evaluations, 4-bit SqueezeLLM models achieved a near-perfect 50/50 win rate against FP16 baselines.

Limitations and Future Work

  • Quantization Overhead: Calculating the Fisher Information and running the sensitivity-based k-means is more computationally expensive than simpler post-training quantization methods. While this is a one-time offline cost, it scales with model size.
  • Sparse Kernel Complexity: While the authors developed balanced kernels, sparse operations are notoriously difficult to optimize across all hardware architectures.
  • Scope: The current work focuses on weight-only quantization. The authors note that quantizing activations (KV cache) is a separate, complementary challenge that would be necessary for high-throughput, multi-batch scenarios.

Summary updated

BibTeX
@inproceedings{kim2024squeezellm,
  author = {Sehoon Kim and Coleman Richard Charles Hooper and Amir Gholami and Zhen Dong and Xiuyu Li and Sheng Shen and Michael W. Mahoney and Kurt Keutzer},
  title = {{SqueezeLLM: Dense-and-Sparse Quantization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=0jpbpFia8m},
}
Figure