arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.01663cs.LGcs.AIcs.CCcs.CL
收藏

解锁1比特神经网络缩放背后的理论

Unlocking the Theory Behind Scaling 1-Bit Neural Networks

New York University(纽约大学);Simons Institute for the Theory of Computing(西蒙斯理论计算研究所);UC Berkeley(加州大学伯克利分校);Sun Yat-sen University(中山大学)

Majid Daliri, Zhao Song, Chiwun Yang

AI总结:

本文首次从理论上严格确立了1比特神经网络的缩放定律,证明其训练收敛性和泛化差异可忽略,并指出int1精度有望成为未来标准。

摘要:

近期,1比特大语言模型(LLMs)已经出现,展现出与传统LLMs相媲美的效率与性能的出色结合。Wang等人(2023)和Ma等人(2024)的研究表明,随着参数数量的增加,这些1比特LLMs的性能逐步提升,暗示着1比特神经网络可能存在缩放定律。在本文中,我们提出了第一个严格确立1比特模型缩放定律的理论结果。我们证明,尽管权重被限制在$\{-1, +1\}$,随着网络宽度的增长,模型训练的动力学必然与核行为趋于一致。这一理论突破保证了1比特模型在宽度增加时收敛到任意小的损失。此外,我们引入了泛化差异的概念,定义为1比特网络与其全精度对应物输出之间的差距,并证明随着网络宽度的扩展,这一差异保持在可忽略的水平。基于Kaplan等人(2020)的工作,我们最后考察了训练损失如何作为模型大小、数据集大小以及用于训练的计算资源的幂律函数进行缩放。我们的发现强调了缩放1比特神经网络的巨大潜力,表明int1可能成为未来神经网络精度的标准。

英文摘要:

Recently, 1-bit Large Language Models (LLMs) have emerged, showcasing an impressive combination of efficiency and performance that rivals traditional LLMs. Research by Wang et al. (2023); Ma et al. (2024) indicates that the performance of these 1-bit LLMs progressively improves as the number of parameters increases, hinting at the potential existence of a Scaling Law for 1-bit Neural Networks. In this paper, we present the first theoretical result that rigorously establishes this scaling law for 1-bit models. We prove that, despite the constraint of weights restricted to $\{-1, +1\}$, the dynamics of model training inevitably align with kernel behavior as the network width grows. This theoretical breakthrough guarantees convergence of the 1-bit model to an arbitrarily small loss as width increases. Furthermore, we introduce the concept of the generalization difference, defined as the gap between the outputs of 1-bit networks and their full-precision counterparts, and demonstrate that this difference maintains a negligible level as network width scales. Building on the work of Kaplan et al. (2020), we conclude by examining how the training loss scales as a power-law function of the model size, dataset size, and computational resources utilized for training. Our findings underscore the promising potential of scaling 1-bit neural networks, suggesting that int1 could become the standard in future neural network precision.

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

↑