---
title: "Transformers without Normalization"
canonical_url: "https://www.modelscope.cn/papers/126286"
md_url: "https://www.modelscope.cn/papers/126286.md"
arxiv_id: 2503.10622
published: 2025-06-14
last_updated: 2025-06-14
authors:
  - "Jiachen Zhu"
  - "Xinlei Chen"
  - "Kaiming He"
  - "Yann LeCun"
  - "Zhuang Liu"
model_name: DyT
model_developer: "FAIR, Meta、New York University、MIT、Princeton University"
domain:
  - "深度学习"
  - "Transformer架构"
  - "归一化技术"
  - "计算机视觉"
  - "自然语言处理"
type:
  - "深度学习"
  - "Transformer架构"
  - "归一化技术"
  - "计算机视觉"
  - "自然语言处理"
  - "Machine Learning"
  - "Artificial Intelligence"
  - "Computation and Language"
  - "Computer Vision and Pattern Recognition"
arxiv_url: "https://arxiv.org/abs/2503.10622"
pdf_url: "https://arxiv.org/pdf/2503.10622"
code_link: "https://jiachenzhu.github.io/DyT"
---

# Transformers without Normalization

> 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…

「Transformers without Normalization」是 ModelScope 魔搭社区收录的论文，arXiv 2503.10622，作者为 Jiachen Zhu, Xinlei Chen, Kaiming He et al.，发表于 2025-06-14，属于 深度学习、Transformer架构、归一化技术 领域。

- **ArXiv**: 2503.10622
- **Published**: 2025-06-14
- **Authors**: Jiachen Zhu, Xinlei Chen, Kaiming He, Yann LeCun, Zhuang Liu
- **Model**: DyT
- **Developer**: FAIR, Meta、New York University、MIT、Princeton University
- **Domain**: 深度学习, Transformer架构, 归一化技术, 计算机视觉, 自然语言处理
- **ArXiv URL**: https://arxiv.org/abs/2503.10622
- **PDF**: https://arxiv.org/pdf/2503.10622
- **Code**: https://jiachenzhu.github.io/DyT

Source: https://www.modelscope.cn/papers/126286

---

> 无需归一化的 Transformers：Dynamic Tanh (DyT) 替代方案

## 摘要

本文提出 Dynamic Tanh (DyT) 操作，定义为 DyT(x)=tanh(αx)，作为 Transformer 架构中归一化层（如 LayerNorm、RMSNorm）的直接即插即用替代品。作者观察到训练后的 Transformer 中层归一化往往产生类似 tanh 的 S 形输入输出映射，因此用带可学习缩放参数 α 的逐元素 tanh 函数来模拟该行为，无需计算激活统计量（均值和方差）。实验表明，在视觉分类、自监督学习、扩散模型、大语言模型、语音预训练及 DNA 序列建模等多个领域，使用 DyT 替换归一化层的 Transformer 能够匹配甚至超越原始归一化模型的性能，且大多无需额外超参数调优。此外，DyT 在未编译情况下还能显著降低推理与训练延迟。

## 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 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.
