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

稀疏连接基础模型的缩放定律

Scaling Laws for Sparsely-Connected Foundation Models

IST Austria(奥地利科学技术研究所);Google DeepMind(谷歌DeepMind)

Elias Frantar, Carlos Riquelme, Neil Houlsby, Dan Alistarh, Utku Evci

AI总结:

该研究首次提出了描述权重稀疏性、非零参数数量与训练数据量关系的缩放定律,并揭示了在固定非零参数下最优稀疏性随数据量增加而增加,为利用稀疏性提升计算效率提供理论与实际指导。

摘要:

我们探索了在视觉和语言领域中,在大型数据集(即“基础模型”)上训练的 Transformers 的参数稀疏性对其缩放行为的影响。在此设置下,我们确定了首个描述权重稀疏性、非零参数数量和训练数据量之间关系的缩放定律,并在模型和数据规模上进行了实证验证;基于 ViT/JFT-4B 和 T5/C4。这些结果使我们能够表征“最优稀疏性”,即在给定的有效模型大小和训练预算下产生最佳性能的稀疏性水平。对于固定数量的非零参数,我们发现最优稀疏性随训练数据量的增加而增加。我们还将研究扩展到不同的稀疏结构(如硬件友好的 n:m 模式)和策略(如从预训练的密集模型开始)。我们的发现阐明了权重稀疏性在各种参数和计算设置下的能力和局限性,为利用稀疏性提高计算效率提供了理论理解和实际意义。

英文摘要:

We explore the impact of parameter sparsity on the scaling behavior of Transformers trained on massive datasets (i.e., "foundation models"), in both vision and language domains. In this setting, we identify the first scaling law describing the relationship between weight sparsity, number of non-zero parameters, and amount of training data, which we validate empirically across model and data scales; on ViT/JFT-4B and T5/C4. These results allow us to characterize the "optimal sparsity", the sparsity level which yields the best performance for a given effective model size and training budget. For a fixed number of non-zero parameters, we identify that the optimal sparsity increases with the amount of data used for training. We also extend our study to different sparsity structures (such as the hardware-friendly n:m pattern) and strategies (such as starting from a pretrained dense model). Our findings shed light on the power and limitations of weight sparsity across various parameter and computational settings, offering both theoretical understanding and practical implications for leveraging sparsity towards computational efficiency improvements.

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

↑