SeeDNorm: 自适应动态归一化
SeeDNorm: Self-Rescaled Dynamic Normalization
AI总结:
SeeDNorm通过动态调整缩放系数提升模型表示能力,在保持输入范数信息的同时实现自适应动态归一化,有效提升大语言模型及计算机视觉任务的性能。
摘要:
归一化层是神经网络中的关键组成部分。在变换器中,主要使用的RMSNorm将向量限制在单位超球面上,随后通过可学习的缩放系数γ进行维度-wise缩放,以保持模型的表示能力。然而,RMSNorm在前向传递中丢弃了输入范数信息,且静态缩放因子γ可能不足以应对输入数据的广泛变化和分布偏移,从而限制了进一步的性能提升,尤其是在大型语言模型经常遇到的零样本场景中。为了解决这一限制,我们提出了SeeDNorm,通过根据当前输入动态调整缩放系数来增强模型的表示能力,从而保留输入范数信息并实现数据依赖的自适应动态归一化。在反向传播过程中,SeeDNorm保留了RMSNorm动态调整梯度以适应输入范数的能力。我们对SeedNorm的训练优化进行了详细分析,并提出了相应的解决方案,以解决在应用SeeDNorm时可能出现的潜在不稳定性问题。我们验证了SeeDNorm在不同规模的语言模型预训练以及监督和无监督计算机视觉任务中的有效性。通过引入少量参数且对模型效率影响 negligible,SeeDNorm在与之前常用的归一化层如RMSNorm和LayerNorm以及归一化层的元素级激活替代方案如DyT相比时,始终实现了持续优于的性能。
英文摘要:
Normalization layer constitutes an essential component in neural networks. In transformers, the predominantly used RMSNorm constrains vectors to a unit hypersphere, followed by dimension-wise rescaling through a learnable scaling coefficient $γ$ to maintain the representational capacity of the model. However, RMSNorm discards the input norm information in forward pass and a static scaling factor $γ$ may be insufficient to accommodate the wide variability of input data and distributional shifts, thereby limiting further performance improvements, particularly in zero-shot scenarios that large language models routinely encounter. To address this limitation, we propose SeeDNorm, which enhances the representational capability of the model by dynamically adjusting the scaling coefficient based on the current input, thereby preserving the input norm information and enabling data-dependent, self-rescaled dynamic normalization. During backpropagation, SeeDNorm retains the ability of RMSNorm to dynamically adjust gradient according to the input norm. We provide a detailed analysis of the training optimization for SeedNorm and proposed corresponding solutions to address potential instability issues that may arise when applying SeeDNorm. We validate the effectiveness of SeeDNorm across models of varying sizes in large language model pre-training as well as supervised and unsupervised computer vision tasks. By introducing a minimal number of parameters and with neglligible impact on model efficiency, SeeDNorm achieves consistently superior performance compared to previously commonly used normalization layers such as RMSNorm and LayerNorm, as well as element-wise activation alternatives to normalization layers like DyT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。