Skip to main content

Transformers WITHOUT Normalization?! (DyT Explained)

[HPP] Kaiming HeApril 19, 202518 min
16 connections·40 entities in this video

Challenging Normalization in Transformers

  • 💡 The paper "Transformers without Normalization" directly challenges the fundamental belief that normalization layers are essential for modern neural networks, especially Transformers.
  • 🎯 It proposes that Transformers can achieve comparable or even superior performance without traditional normalization techniques like LayerNorm or RMSNorm.
  • 🔑 This research suggests a significant shift in understanding the core mechanisms that enable stable and effective deep learning.

Introducing Dynamic Tangent (DyT)

  • 🚀 The core innovation is Dynamic Tangent (DyT), a surprisingly simple element-wise function that replaces normalization layers.
  • 🔬 DyT's formula, alpha * tan(x) + beta, uses a learnable scalar (alpha) and the tangent function to mimic the squashing effect of normalization.
  • ✅ Crucially, DyT operates without calculating mean and variance statistics, making it a computationally efficient direct swap-in for existing normalization layers.

Performance and Efficiency Gains

  • 📊 Extensive experiments showed DyT-equipped Transformers performed on par or better across diverse tasks, including image classification, generation, speech recognition, and large language models (Llama 7B-70B).
  • ⚡ DyT layers demonstrated significantly faster inference and training times for large language models compared to RMSNorm, offering practical efficiency benefits.
  • 💡 Ablation studies confirmed that both the squashing function (tan) and the learnable scaling factor (alpha) are critical for DyT's success.

Insights into Normalization's Role

  • 🧠 The paper's key observation is that LayerNorm in trained Transformers often behaves like an S-shaped tangent function, effectively squashing extreme values.
  • 🔍 This suggests that the nonlinear squashing of outliers, rather than just stabilizing means and variances, might be the primary reason normalization aids training stability.
  • 📈 The learnable alpha parameter in DyT was found to closely track the inverse of the standard deviation, implying it implicitly learns an approximate normalization.

Future Implications and Research

  • 🌱 DyT opens doors for designing entirely new neural network architectures from scratch, integrating dynamic scaling as a core component instead of just a replacement.
  • 🔬 The learned alpha parameter could serve as a diagnostic tool, providing insights into the network's internal dynamics and adaptation across different tasks.
  • 💰 This breakthrough could lead to substantial savings in compute costs and energy for training and deploying large models, alongside enabling simpler, cleaner designs.
Knowledge graph40 entities · 16 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover · drag to explore
40 entities
Chapters9 moments

Key Moments

Transcript71 segments

Full Transcript

Topics15 themes

What’s Discussed

TransformersNormalization LayersDynamic Tangent (DyT)Layer NormalizationRMSNormNeural NetworksDeep LearningLarge Language Models (LLMs)Image ClassificationImage GenerationSpeech RecognitionAblation StudiesAlpha ParameterComputational EfficiencyArchitecture Design
Smart Objects40 · 16 links
Concepts· 22
Products· 7
Medias· 6
People· 2
Events· 2
Company· 1