2025-03-14 · 专家 · 机器学习 · 自然语言处理 · 计算机视觉

Transformers without Normalization

这篇论文提出了一种名为动态双曲正切(DyT)的新技术,该技术可以作为Transformer中的标准化层替代品,无需标准化层也能达到或超过其性能。

更新于 2025-03-23。作者:Jiachen Zhu、Xinlei Chen、Kaiming He、Yann LeCun、Zhuang Liu。

中文摘要

归一化层在现代神经网络中无处不在,长期以来一直被视为必不可少的。这项工作证明了没有归一化的Transformer可以通过一种非常简单的技术达到相同甚至更好的性能。我们引入了动态双曲正切函数(DyT),这是一个逐元素操作DyT(x) = tanh(alpha x),作为Transformer中归一化层的直接替代。DyT的灵感来源于观察到的Transformer中的层归一化往往产生类似tanh的S型输入输出映射。通过引入DyT,没有归一化的Transformer可以匹配或超越其归一化版本的性能,大多数情况下无需调整超参数。我们在从识别到生成、从监督学习到自监督学习、从计算机视觉到语言模型的各种设置中验证了带有DyT的Transformer的有效性。这些发现挑战了传统的观点,即归一化层在现代神经网络中是不可或缺的,并为它们在深度网络中的作用提供了新的见解。

英文摘要

Normalization layers are ubiquitous in modern neural networks and have long been considered essential. This work demonstrates that Transformers without normalization can achieve the same or better performance using a remarkably simple technique. We introduce Dynamic Tanh (DyT), an element-wise operation DyT(x) = tanh(alpha x), as a drop-in replacement for normalization layers in Transformers. DyT is inspired by the observation that layer normalization in Transformers often produces tanh-like, S-shaped input-output mappings. By incorporating DyT, Transformers without normalization can match or exceed the performance of their normalized counterparts, mostly without hyperparameter tuning. We validate the effectiveness of Transformers with DyT across diverse settings, ranging from recognition to generation, supervised to self-supervised learning, and computer vision to language models. These findings challenge the conventional understanding that normalization layers are indispensable in modern neural networks, and offer new insights into their role in deep networks.

解读

一句话总结

这篇论文提出了一种名为动态双曲正切(DyT)的新技术,该技术可以作为Transformer中的标准化层替代品,无需标准化层也能达到或超过其性能。

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

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

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

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

来源

机器可读索引:llms.txt