ParetoQ:改进极低位LLM量化中的扩展定律
ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization
AI总结:
ParetoQ提出统一量化框架,严格比较1至4位量化,发现2-3位间学习转变,其三元600M模型超越先前3B最先进模型,表明2位量化在权衡中具潜力。
摘要:
关于在量化模型大小与精度之间实现最佳权衡的最优位宽一直是一个持续争论的话题。虽然一些人主张4位量化,另一些人则提出1.58位能提供更优结果。然而,缺乏一个针对不同位宽的统—框架使得这些结论相对脆弱。我们提出了ParetoQ,这是第一个统一框架,能够促进在1位、1.58位、2位、3位和4位量化设置之间进行严格比较。我们的发现揭示了2位与3位之间的显著学习转变:对于3位及以上,微调后的模型保持接近其原始预训练分布,而对于学习2位或更低位的网络,表示发生剧烈变化。通过优化训练方案和细化量化函数,ParetoQ超越了所有先前针对特定位宽定制的方法。值得注意的是,我们的ParetoQ三元600M参数模型在精度上甚至超越了先前最先进的三元3B参数模型,仅使用了其五分之一的参数。大量实验表明,三元、2位和3位量化在大小-精度权衡中保持相当的性能,并且通常优于4位和二元量化。考虑到硬件约束,2位量化为内存减少和加速提供了有前景的潜力。
英文摘要:
The optimal bit-width for achieving the best trade-off between quantized model size and accuracy has been a subject of ongoing debate. While some advocate for 4-bit quantization, others propose that 1.58-bit offers superior results. However, the lack of a cohesive framework for different bits has left such conclusions relatively tenuous. We present ParetoQ, the first unified framework that facilitates rigorous comparisons across 1-bit, 1.58-bit, 2-bit, 3-bit, and 4-bit quantization settings. Our findings reveal a notable learning transition between 2 and 3 bits: For 3-bits and above, the fine-tuned models stay close to their original pre-trained distributions, whereas for learning 2-bit networks or below, the representations change drastically. By optimizing training schemes and refining quantization functions, ParetoQ surpasses all previous methods tailored to specific bit widths. Remarkably, our ParetoQ ternary 600M-parameter model even outperforms the previous SoTA ternary 3B-parameter model in accuracy, using only one-fifth of the parameters. Extensive experimentation shows that ternary, 2-bit, and 3-bit quantization maintains comparable performance in the size-accuracy trade-off and generally exceeds 4-bit and binary quantization. Considering hardware constraints, 2-bit quantization offers promising potential for memory reduction and speedup.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。