arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09637cs.LGcs.AI
收藏

ReLU的复兴:论无归一化大语言模型中的熵过载

ReLU's Revival: On the Entropic Overload in Normalization-Free Large Language Models

New York University(纽约大学)

Nandan Kumar Jha, Brandon Reagen

AI总结:

本文研究了无LayerNorm大语言模型中的激活函数,发现ReLU因能避免GELU引发的早期层熵过载问题,在困惑度上提升了8.2%,更适合无归一化架构。

摘要:

LayerNorm是现代大语言模型(LLM)中稳定训练和确保平滑优化的关键组件。然而,它在机制可解释性、异常特征抑制、忠实信号传播以及私有推理的计算与通信复杂度方面引入了重大挑战。本工作探讨了无归一化(normalization-free)的纯解码器LLM中理想的激活函数。与基于transformer的模型中传统偏好GELU的做法相反,我们的实证发现展示了一种相反的趋势——在无LayerNorm模型中,ReLU显著优于GELU,带来了8.2%的困惑度提升。我们发现了GELU的一个关键问题:早期层会经历熵过载,导致注意力头的表征能力利用不足。这表明像GELU这样平滑的激活函数不适合无LayerNorm架构,而ReLU的几何特性——输入空间特化和类内选择性——在没有LayerNorm的情况下带来了更好的学习动态和信息保留。本研究为优化LayerNorm带来重大挑战的transformer架构提供了关键见解。代码和实现可在https://github.com/Nandan91/relu-revival-normfree获取

英文摘要:

LayerNorm is a critical component in modern large language models (LLMs) for stabilizing training and ensuring smooth optimization. However, it introduces significant challenges in mechanistic interpretability, outlier feature suppression, faithful signal propagation, and computational and communication complexity of private inference. This work explores desirable activation functions in normalization-free decoder-only LLMs. Contrary to the conventional preference for the GELU in transformer-based models, our empirical findings demonstrate an {\em opposite trend} -- ReLU significantly outperforms GELU in LayerNorm-free models, leading to an {\bf 8.2\%} perplexity improvement. We discover a key issue with GELU, where early layers experience entropic overload, leading to the under-utilization of the representational capacity of attention heads. This highlights that smoother activations like GELU are {\em ill-suited} for LayerNorm-free architectures, whereas ReLU's geometrical properties -- specialization in input space and intra-class selectivity -- lead to improved learning dynamics and better information retention in the absence of LayerNorm. This study offers key insights for optimizing transformer architectures where LayerNorm introduces significant challenges. The code and implementation are available at https://github.com/Nandan91/relu-revival-normfree

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

↑