Low-Bit Quantization Favors Undertrained LLMs: Scaling Laws for Quantized LLMs with 100T Training Tokens
该论文揭示了低比特量化对未充分训练的大型语言模型(LLM)有利,但对充分训练的LLM存在显著的量化诱导退化(QiD),并提出了量化性能的缩放定律。
更新于 2024-11-27。作者:Xu Ouyang、Tao Ge、Thomas Hartvigsen、Zhisong Zhang、Haitao Mi、Dong Yu。
中文摘要
我们发现,通过观察较大规模的模型或训练token较少的模型在应用低比特量化时经历的量化诱导退化(QiD)较小,而训练token众多的小型模型则遭受显著的QiD,从而揭示低比特量化有利于未充分训练的大型语言模型(LLMs)。为了更深入地了解这一趋势,我们在一个可控的环境下研究了1500多个不同规模和不同训练水平(未充分训练或完全训练)的低比特量化LLM检查点,从中推导出QiD与训练token数量、模型规模和比特宽度等因素之间关系的比例定律。利用所推导出的比例定律,我们提出了一种新的观点:我们可以利用QiD来衡量LLM的训练水平,并确定各种规模LLM完全训练所需的训练token数量。此外,我们使用比例定律来预测训练了100万亿token的不同规模LLM的量化性能。我们的预测显示,未来预期用超过100万亿token进行训练的模型在低比特量化方面的性能可能并不理想。这为未来低比特量化提出了潜在的挑战,并突显了在评估低比特量化研究时对模型训练水平有所了解的必要性。为了便于未来对此问题的研究,我们将本工作中使用的1500多个量化检查点发布在https://huggingface.co/Xu-Ouyang上。
英文摘要
We reveal that low-bit quantization favors undertrained large language models (LLMs) by observing that models with larger sizes or fewer training tokens experience less quantization-induced degradation (QiD) when applying low-bit quantization, whereas smaller models with extensive training tokens suffer significant QiD. To gain deeper insights into this trend, we study over 1500 quantized LLM checkpoints of various sizes and at different training levels (undertrained or fully trained) in a controlled setting, deriving scaling laws for understanding the relationship between QiD and factors such as the number of training tokens, model size and bit width. With the derived scaling laws, we propose a novel perspective that we can use QiD to measure an LLM's training levels and determine the number of training tokens required for fully training LLMs of various sizes. Moreover, we use the scaling laws to predict the quantization performance of different-sized LLMs trained with 100 trillion tokens. Our projection shows that the low-bit quantization performance of future models, which are expected to be trained with over 100 trillion tokens, may NOT be desirable. This poses a potential challenge for low-bit quantization in the future and highlights the need for awareness of a model's training level when evaluating low-bit quantization research. To facilitate future research on this problem, we release all the 1500+ quantized checkpoints used in this work at https://huggingface.co/Xu-Ouyang.
解读
一句话总结
该论文揭示了低比特量化对未充分训练的大型语言模型(LLM)有利,但对充分训练的LLM存在显著的量化诱导退化(QiD),并提出了量化性能的缩放定律。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:低比特量化通常适用于大型或训练数据较少的LLM,但对小型或训练数据较多的LLM存在显著的QiD。 • 现有方案不足:现有低比特量化研究很少考虑量化LLM的训练水平。 • 研究目标:探究低比特量化对LLM性能的影响,并建立量化性能的缩放定律。
问题2:论文的核心创新点是什么?
• 技术创新:提出了量化性能的缩放定律,揭示了训练水平对量化性能的影响。 • 方法改进:使用QiD作为衡量LLM训练水平的信号,并预测不同大小LLM的量化性能。 • 优势:提供了量化LLM性能的定量评估方法,并预测了未来低比特量化可能面临的挑战。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:研究了1500多个不同大小和训练水平的量化LLM检查点。 • 性能提升:通过缩放定律预测了不同大小LLM的量化性能。 • 对比结果:与基线方法相比,缩放定律能够更准确地预测量化性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:有助于评估和改进低比特量化技术。 • 实施建议:在评估低比特量化研究时,应考虑模型的训练水平。 • 局限与展望:未来研究应考虑多阶段训练策略和更大规模的数据集,以进一步验证和改进缩放定律。