初始化决定盆地:面向极端LLM量化高效的代码本优化
Initialisation Determines the Basin: Efficient Codebook Optimisation for Extreme LLM Quantization
AI总结:
本文提出OA-EM方法,通过Hessian加权马氏距离改进代码本初始化,解决极端LLM量化中初始化不足导致的性能问题,提升压缩模型的优化效果。
摘要:
加性量化通过O(1)的查找表反量化实现极端LLM压缩,使其适合边缘部署。然而在2位精度下,即使进行广泛搜索和微调,其性能也常常崩溃。本文表明,主导瓶颈是代码本初始化。贪婪的顺序初始化经常将模型置于较差的优化区域,后续的束搜索和PV微调难以克服。通过代表性比率ρ=N/KM,分析了权重组与代码本容量之间的关系,并提出OA-EM,一种基于输出的EM初始化方法。在各种压缩率、搜索预算和三种架构(Llama 3.2 3B、Llama 3.1 8B、Qwen 2.5 3B)上,OA-EM在PV微调后始终产生更好的解决方案,并主导质量-计算前沿。瓶颈的严重程度随着ρ变化:在3 bpp时较轻,但在2 bpp时极端,其中差的初始化可使困惑度降低几个数量级。更广泛地说,我们的结果强调了压缩模型空间中优化几何学的重要性,其中初始化可以主导后续的搜索和微调。
英文摘要:
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 \r{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 \r{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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。