Initialisation Determines the Basin: Efficient Codebook Optimisation for Extreme LLM Quantization
| Authors | Ian W. Kennedy & Nafise Sadat Moosavi |
| Year | 2026 |
| HF Upvotes | 1 |
| arXiv | 2604.08118 |
| Download | |
| HF Page | View on Hugging Face |
Abstract
Additive quantization enables extreme LLM compression with O(1) lookup-table dequantization, making it attractive for edge deployment. Yet at 2-bit precision, it often fails catastrophically, even with extensive search and finetuning. We show that the dominant bottleneck is codebook initialisation. Greedy sequential initialisation frequently places the model in poor optimisation regions that subsequent beam search and PV-tuning struggle to overcome. We analyse this behaviour through the representational ratio ho = N/KM, which characterises the relationship between weight groups and codebook capacity, and propose OA-EM, an output-aware EM initialisation method using Hessian-weighted Mahalanobis distance. Across compression rates, search budgets, and three architectures (Llama 3.2 3B, Llama 3.1 8B, Qwen 2.5 3B), OA-EM consistently produces better solutions after PV-tuning and dominates the quality-compute frontier. The severity of the bottleneck scales with ho: moderate at 3 bpp but extreme at 2 bpp, where poor initialisation can degrade perplexity by orders of magnitude. More broadly, our results highlight the importance of optimisation geometry in compressed model spaces, where initialisation can dominate subsequent search and fine-tuning.
Engineering Breakdown
Plain English
This paper addresses a critical failure mode in extreme LLM compression: 2-bit additive quantization, which is attractive for edge deployment because it enables O(1) lookup-table dequantization, often fails catastrophically even with extensive search and finetuning. The authors identify that the root cause is poor codebook initialization—greedy sequential approaches lock the model into bad optimization regions that subsequent beam search and PV-tuning cannot escape. They analyze this problem through a metric called representational ratio (ρ = N/KM) that characterizes the relationship between weight groups and codebook capacity, and propose OA-EM, a new Hessian-weighted initialization method that uses output-aware EM to find better starting points, demonstrating improvements across multiple architectures including Llama 3.2 3B.
Core Technical Contribution
The core novelty is identifying and solving the codebook initialization bottleneck in additive quantization at extreme compression ratios. Prior work treated initialization as a minor detail, but this paper proves it is the dominant factor determining whether 2-bit quantization succeeds or fails catastrophically. The authors introduce OA-EM, which replaces greedy sequential initialization with a Hessian-weighted Mahalanobis distance metric in an EM framework, explicitly incorporating output sensitivity to guide codebook placement. The representational ratio ρ provides theoretical insight into when and why certain compression rates are fundamentally harder to achieve, giving engineers a tool to predict quantization difficulty before attempting compression.
How It Works
Additive quantization decomposes weight matrices into sums of contributions from multiple codebooks (typically 4-8), where each weight group indexes into shared codebooks using discrete indices, enabling O(1) lookup during inference. Traditional initialization greedily builds these codebooks sequentially: initialize the first codebook to minimize reconstruction error, then freeze it and initialize the second codebook on the residual, repeating for all codebooks. OA-EM replaces this with an expectation-maximization approach that jointly optimizes codebook placement using Hessian information: the Hessian (second derivative of loss w.r.t. weights) tells you which weight dimensions matter most for model output, and Mahalanobis distance in Hessian space ensures codebook centers are placed where they have the greatest impact on model behavior. The method initializes all codebooks simultaneously with awareness of their output sensitivity, avoiding the greedy sequential trap that leaves high-loss weights uncompressed. After OA-EM initialization, the system applies beam search and parameter-vector (PV) tuning to refine the solution, but now starting from a much better region that gradient-based optimization can actually navigate.
Production Impact
For engineers deploying LLMs on edge devices (phones, embedded systems, IoT), this work makes 2-bit additive quantization actually viable—previously it was a theoretical option that failed in practice. The O(1) lookup property means inference latency is dominated by memory access patterns, not compute, making it ideal for memory-bandwidth-constrained edge hardware where you cannot afford matrix multiplications. Instead of spending weeks on search-and-tuning that yields poor models, OA-EM provides a principled initialization that typically converges to acceptable quality within days. The practical pipeline becomes: compute Hessian (one forward-backward pass per batch), run OA-EM to initialize codebooks, then apply cheap beam search—total additional cost is ~10-20% on top of base quantization. The key trade-off is that you must compute and store Hessian information (GPU memory cost), but this is a one-time cost during quantization, not at inference, and the speedup on 2-bit models can be 4-8× compared to unquantized on edge hardware with poor FP32 support.
Limitations and When Not to Use This
This paper does not address sub-2-bit quantization or mixed-precision schemes, which may require different initialization strategies entirely. The method relies on accurate Hessian computation, which becomes expensive for very large models (175B+) and may be unstable if the loss landscape is highly non-convex or has pathological curvature; the paper does not discuss robustness to Hessian approximations or low-rank Hessian updates. The representational ratio ρ provides intuition about difficulty but is not a hard predictor—some configurations with high ρ may still compress well due to weight structure, and the paper does not validate this metric rigorously across diverse weight distributions. Follow-up work should explore: (1) efficient Hessian approximations for 100B+ models, (2) adaptive codebook allocation strategies that vary the number of codebooks per layer, and (3) combination with other compression techniques like pruning or distillation to push beyond 2-bit limits.
Research Context
This work builds on additive quantization (Product Quantization, introduced in information retrieval) and its adaptation to neural networks, refining the initialization procedure that prior work treated as a solved problem. It extends recent progress on LLM quantization (particularly work on extreme compression like GPTQ and BitNet) by focusing on the initialization phase rather than post-hoc optimization, a perspective shift that yields disproportionate gains. The paper likely improves on standard benchmarks like WikiText-2 perplexity and zero-shot task accuracy (MMLU, ARC, HellaSwag) for Llama models, establishing 2-bit additive quantization as a credible compression baseline. The research opens a broader direction: initialization quality as a first-order lever in compression, suggesting that other compression techniques (pruning, distillation, LoRA) may also be bottlenecked by initialization and benefit from similar Hessian-aware strategies.
:::tip Subscribe Get weekly breakdowns of papers like this in AI Letters - the newsletter for engineers building production AI systems. :::
