TL;DR
QuBLAST is a novel post-training quantization (PTQ) framework that achieves 40% to 45.2% memory reduction in Large Language Models (LLMs) with minimal performance loss. By combining block-level mixed-precision compression with an efficient activation scaling strategy, it successfully compresses diverse LLM architectures—including non-conventional state-space models—making them far more viable for embedded deployment.
What Problem Does This Paper Address?
Deploying LLMs on resource-constrained embedded systems is notoriously difficult due to their massive computational and memory footprints. While post-training quantization (PTQ) is a popular solution to compress these models, current state-of-the-art methods suffer from three major flaws:
- Uniformity Bias: They apply a uniform quantization level across all attention blocks, ignoring the fact that some layers are much more sensitive to precision loss than others.
- High Overhead: They rely on complex, computationally heavy operations to handle "activation outliers" (extreme values that ruin quantization scales).
- Architectural Rigidity: They are rarely evaluated on emerging, non-conventional architectures like state-space models (e.g., Mamba), which present unique quantization challenges.
Methods
QuBLAST introduces a three-stage pipeline to solve these issues:
- Network Model Analysis: The framework inspects the model hierarchy and distills diverse attention mechanisms into "Common Attention Blocks" (CABs) while leaving highly sensitive embedding and output layers at full precision.
- Block-Level Compression: Instead of treating the network uniformly, QuBLAST profiles the sensitivity of each CAB independently using cross-entropy loss. It applies a Precision Lockout mechanism, which automatically bars aggressive low-bit quantization on highly sensitive blocks. To handle activation outliers without heavy computational overhead, it introduces an Activation Scaling Strategy that uses a crafted scaling map to normalize activation ranges before quantization.
- Quantization Setting Selection: Finally, it searches the reduced configuration space to find a pareto-optimal mixed-precision configuration that maximizes memory savings while staying within a user-defined perplexity degradation threshold (e.g., <5%).
Datasets
- WikiText-2: Used for block sensitivity analysis and configuration search.
- WikiText-103: Used during the configuration search stage to evaluate cross-dataset generalization.
- Note: The authors also reference the MMLU-Pro dataset to illustrate general LLM performance and parameter trends.
Key Insights and Ideas
- The Ends are Sensitive, the Middle is Tolerant: Sensitivity analysis reveals that blocks closer to the input and output (especially blocks 0–2) are highly sensitive to low-bit quantization. In contrast, middle blocks stabilize quickly and can be aggressively compressed down to 6 or 4 bits without hurting performance.
- Outliers are the Real Enemy: The primary bottleneck in low-bit quantization isn't the weight bit-width itself, but how activation outliers amplify rounding errors. Shifting this difficulty from activations to weights via per-channel scaling turns an otherwise unstable quantization setup into a reliable one.
- Architecture Agnostic: By abstracting layers into CABs, the method successfully scales to non-transformer architectures like hybrid State-Space Models (Mamba), proving that block-level sensitivity patterns are a fundamental property of modern language models.
Key Results
- Significant Memory Savings: QuBLAST reduced model footprints by 40% to 45.2% across four major architectures: Qwen3-8B (40%), Llama3-8B (40.7%), Mistral v0.1-8B (45.2%), and Falcon H1R-7B (42.7%).
- Strict Performance Preservation: Across all models, the perplexity increase was kept strictly under 5% compared to the unquantized FP16 baselines.
- Catastrophe Avoided: Without the activation scaling strategy, uniform 8-bit quantization caused perplexity to explode catastrophically (e.g., jumping from 5.50 to over 608,000 in Llama3-8B). With scaling enabled, it remained within 2% of the baseline.
Limitations and Future Work
Not discussed in the paper.
Summary updated