Transformers without Normalization
Moscow Institute of Thermal Technology
Abstract
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…
Citation impact
- FWCI
- 93.67
- Percentile
- 100%
- References
- 18
Authors
5Topics & keywords
- Transformer
- Normalization (sociology)
- Computer science
- Current transformer
- Electrical engineering
- Engineering
- Voltage