arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.17637cs.LG
收藏

量化预训练的混合精度缩放定律

Mixed Precision Scaling Laws for Quantized Pretraining

Seoul National University(首尔大学);Amazon Annapurna Labs(亚马逊安纳普尔纳实验室)

Jinuk Kim, Rajarshi Saha, Muhammed Fatih Balin, Youngsuk Park

AI总结:

本文针对量化预训练提出混合精度缩放定律,分离量化对模型容量与优化效率的影响,经Qwen3、Llama实验验证,其预测损失的MSE比现有定律低达11倍,还确定了硬件感知下的最优量化预训练方案。

摘要:

自现代大语言模型(LLM)的缩放定律被提出以来,已有多项研究将其扩展至量化场景,以适配AI加速器支持的新兴低精度数据类型。本文基于优化理论,开发了一种更准确的混合精度(前向与反向传播采用不同精度)量化预训练缩放定律,并通过实验验证。该公式将量化对模型容量和优化效率的影响分离,明确建模了通过收敛分析确定的前向与反向量化产生的持续优化误差。为选择拟合与评估该定律的区间,本文先将现有4位训练方案分解为前向与反向传播组件,分离出对损失影响最大的部分。在选定的4位区间下,本文基于Qwen3的实验及已发表的Llama风格实验表明,当模型规模和token数量缩放时,本文提出的定律预测损失的均方误差(MSE)比现有定律低达11倍。最后,本文将该定律扩展至分层混合精度,并在硬件感知的计算预算下确定了最优量化预训练方案,即模型规模、训练token数及每层的前向/反向精度。与现有精度缩放定律不同,本文的定律预测最优精度会随计算预算增加而提高。

英文摘要:

Since scaling laws were introduced for modern LLMs (Kaplan et al., 2020), several works have extended them to account for quantization, tracking the emerging low-precision data types supported on AI accelerators. We develop a more accurate scaling law for quantized pretraining with mixed precision across the forward and backward passes, grounded in optimization theory and validated empirically. Our formulation separates the effects of quantization on model capacity and on optimization efficiency, and explicitly models the persistent optimization error from forward and backward quantization identified through convergence analysis. To select the regimes for fitting and evaluating our law, we first decompose existing 4-bit training recipes into their forward and backward components, isolating those that most affect loss. Our Qwen3 experiments under selected 4-bit regimes, together with published Llama-style experiments, show that our law predicts loss with up to $11\times$ lower MSE than existing laws as model size and token count scale. Finally, we extend our law to layer-wise mixed precision and identify the optimal quantized-pretraining recipe, i.e., model size, training tokens, and per-layer forward/backward precision, under a hardware-aware compute budget. Unlike prior precision scaling laws, our law predicts that the optimal precision increases with the compute budget.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑