2025-02-26 · 专家 · 机器学习 · 自然语言处理

Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Models

提出了一种名为Scale-Distribution Decoupling(SDD)的新方法,通过解耦全连接层中权重矩阵的尺度和分布来稳定大型语言模型的训练。

更新于 2025-02-26。作者:Ya Wang、Zhijian Zhuo、Yutao Zeng、Xun Zhou、Jian Yang、Xiaoqing Li。

中文摘要

训练稳定性是大型语言模型(LLMs)预训练过程中一个持续的挑战,尤其是在Post-Norm Transformers等容易发生梯度爆炸和消失的架构中。在本文中,我们提出了尺度分布解耦(SDD)这一新颖方法,通过显式地解耦全连接层中权重矩阵的尺度和分布来稳定训练。SDD采用归一化机制来调节激活值,并使用一个可学习的缩放向量来维持良好的梯度条件,有效地防止了梯度爆炸和消失。这种分离提高了优化效率,尤其是在深层网络中,通过确保稳定的梯度传播。实验结果表明,我们的方法在各种LLM架构中稳定了训练,并在不同的归一化配置下优于现有技术。此外,所提出的方法轻量级且与现有框架兼容,使其成为稳定LLM训练的实用解决方案。代码可在https://github.com/kaihemo/SDD上找到。

英文摘要

Training stability is a persistent challenge in the pre-training of large language models (LLMs), particularly for architectures such as Post-Norm Transformers, which are prone to gradient explosion and dissipation. In this paper, we propose Scale-Distribution Decoupling (SDD), a novel approach that stabilizes training by explicitly decoupling the scale and distribution of the weight matrix in fully-connected layers. SDD applies a normalization mechanism to regulate activations and a learnable scaling vector to maintain well-conditioned gradients, effectively preventing gradient explosion and dissipation. This separation improves optimization efficiency, particularly in deep networks, by ensuring stable gradient propagation. Experimental results demonstrate that our method stabilizes training across various LLM architectures and outperforms existing techniques in different normalization configurations. Furthermore, the proposed method is lightweight and compatible with existing frameworks, making it a practical solution for stabilizing LLM training. Code is available at https://github.com/kaihemo/SDD.

解读

一句话总结

提出了一种名为Scale-Distribution Decoupling(SDD)的新方法,通过解耦全连接层中权重矩阵的尺度和分布来稳定大型语言模型的训练。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt