变压器
规范化(社会学)
计算机科学
电流互感器
电气工程
工程类
电压
人类学
社会学
作者
Jiachen Zhu,Xinlei Chen,Kaiming He,Yann LeCun,Zhuang Liu
标识
DOI:10.1109/cvpr52734.2025.01388
摘要
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(αx), as a dropin 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, 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.
科研通智能强力驱动
Strongly Powered by AbleSci AI