TL;DR
This paper provides a comprehensive taxonomy and survey of model compression techniques specifically tailored for Large Language Models (LLMs). It explores how quantization, pruning, knowledge distillation, and low-rank factorization can transform resource-heavy models into compact, efficient versions suitable for real-world deployment without sacrificing their emergent capabilities.
What Problem Does This Paper Address?
Large Language Models (LLMs) like GPT-4 and LLaMA have revolutionized NLP, but they come with a massive "computational tax." For example, a 175-billion parameter model requires roughly 350GB of VRAM just to load in half-precision (FP16), necessitating clusters of high-end A100 GPUs for inference.
This "memory wall" creates a significant barrier for researchers and companies with limited hardware. The challenge is to reduce the memory footprint and increase inference speed (latency) while maintaining the model's accuracy and reasoning abilities. This paper synthesizes the rapidly evolving landscape of techniques designed to solve this efficiency crisis.
Methods
The authors categorize LLM compression into four primary pillars:
- Quantization: Reducing the bit-precision of weights and activations (e.g., from 16-bit to 4-bit or even 1-bit).
- Post-Training Quantization (PTQ): The most popular approach for LLMs because it requires no retraining. Notable methods include GPTQ and AWQ.
- Quantization-Aware Training (QAT): Involves fine-tuning the model to adapt to lower precision, often using Parameter-Efficient Fine-Tuning (PEFT) like LoRA to manage the high computational cost.
- Pruning: Removing redundant parameters.
- Unstructured Pruning: Removes individual weights (e.g., SparseGPT), achieving high sparsity but often requiring specialized hardware for speedups.
- Structured Pruning: Removes entire components like attention heads or layers (e.g., LLM-Pruner, SliceGPT), offering immediate hardware compatibility.
- Knowledge Distillation (KD): Using a large "Teacher" model to train a smaller "Student" model.
- Black-box KD: The student learns only from the teacher's text outputs (crucial for proprietary models like GPT-4).
- White-box KD: The student has access to the teacher's internal weights and distributions (e.g., MiniLLM).
- Low-Rank Factorization: Approximating large weight matrices by decomposing them into two smaller, low-rank matrices (e.g., ASVD), significantly reducing the number of parameters.
Datasets
The survey highlights several standard benchmarks used to evaluate compressed LLMs:
- Language Modeling: WikiText-2, C4, and PTB are used to measure Perplexity, a core metric for how well a model predicts text.
- Zero-shot Reasoning: LAMBADA, PIQA, and GSM8K (math reasoning).
- Comprehensive Suites: BIG-Bench (BBH) for diverse NLP tasks and the EleutherAI LM Harness for standardized, reproducible evaluation across 60+ benchmarks.
- Instruction Following: Datasets like Vicuna-Instructions are used to see if compression breaks the model's ability to follow complex user prompts.
Key Insights and Ideas
- The Outlier Problem: LLM activations contain "outliers"—specific channels with massive values. Standard quantization crushes these, destroying performance. Methods like SmoothQuant migrate this difficulty from activations to weights to preserve accuracy.
- KV Cache Bottleneck: For long-context generation, the Key-Value (KV) cache becomes the primary memory hog. New techniques like KIVI focus specifically on quantizing the KV cache to 2-bit precision to enable 10-million-token context windows.
- LoRA as the "Glue": Pruning and quantization often cause initial performance drops. The authors note that PEFT (LoRA) has become the standard tool for quickly "recovering" a compressed model's performance with minimal data.
- Shift to Black-Box KD: Because the most powerful models are closed-source, research is shifting toward distilling "emergent abilities" (like Chain-of-Thought reasoning) using only the teacher's generated explanations.
Key Results
- Quantization Efficiency: Methods like GPTQ can compress models to 3 or 4 bits with negligible increases in perplexity (e.g., only a 0.34 increase for OPT-175B).
- Speedups: Weight-only quantization and structured pruning frequently deliver 2x to 4x speedups in inference latency on standard hardware.
- Sparsity Limits: SparseGPT demonstrated that even the largest models (BLOOM-176B) can be pruned to 50% unstructured sparsity in a single "one-shot" pass without retraining, a feat previously thought impossible for models of that scale.
Limitations and Future Work
- Performance Gap: While 4-bit quantization is stable, moving to 2-bit or 1-bit still results in significant "intelligence" loss.
- Hardware-Software Co-design: Many pruning methods (unstructured) don't actually run faster on standard GPUs; there is a need for better kernels that support sparse computation.
- The Scaling Law of Compression: We don't yet fully understand how the "Scaling Laws" (model size vs. data) interact with compression. Does a compressed 70B model beat a native 7B model?
- AutoML: The authors advocate for Automated Machine Learning to automatically find the optimal compression strategy (e.g., which layers to prune vs. which to quantize) for a specific hardware target.
Summary updated