Taming Outlier Tokens in Diffusion Transformers

๐กLearn why a few high-norm tokens may hijack attention in image-generation Transformers.
โก 30-Second TL;DR
What Changed
Outlier tokens are observed in both the encoder and denoiser of modern RAE-DiT pipelines.
Why It Matters
The findings suggest that token-scale instability is not limited to discriminative ViTs and may affect generative image models as well. Diagnosing and controlling outlier tokens could improve attention allocation, representation quality, and the reliability of RAE-DiT training.
What To Do Next
Instrument your RAE-DiT pipeline to log per-layer token norms and attention concentration, then identify whether intermediate-layer outliers dominate denoising.
Key Points
- โขOutlier tokens are observed in both the encoder and denoiser of modern RAE-DiT pipelines.
- โขPretrained ViT encoders can generate high-norm representations before the diffusion denoising process.
- โขDiTs may develop internal outlier tokens, particularly in intermediate layers.
- โขThese tokens can dominate attention while contributing limited local information.
๐ง Deep Insight
AI-generated analysis for this event.
๐ Enhanced Key Takeaways
- โขThe research identifies that outlier tokens often emerge in specific spatial locations, such as the center of an image or along edges, which can lead to artifacts in generated outputs.
- โขApple's proposed mitigation strategy involves a 'token-wise scaling' or 'clipping' mechanism that normalizes these high-norm activations without degrading the overall semantic quality of the image.
- โขThe study demonstrates that these outliers are not merely noise but are often linked to the model's attempt to capture global context, which inadvertently suppresses local feature representation.
- โขExperiments show that applying outlier suppression techniques can lead to a measurable improvement in Frรฉchet Inception Distance (FID) scores, indicating better image fidelity.
- โขThe phenomenon is exacerbated by the use of LayerNorm in Transformer architectures, which can amplify the impact of a single outlier token across the entire sequence.
๐ ๏ธ Technical Deep Dive
- The mechanism involves identifying tokens where the L2 norm exceeds a learned threshold relative to the batch or sequence statistics.
- Implementation often utilizes a soft-clipping function to prevent gradient instability during the fine-tuning of the DiT denoiser.
- The research highlights that the ViT encoder's output distribution is often shifted compared to the DiT's training distribution, creating a domain gap that triggers outlier formation.
- Mitigation strategies are applied post-hoc to pretrained models, requiring minimal compute overhead compared to full retraining.
๐ฎ Future ImplicationsAI analysis grounded in cited sources
โณ Timeline
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Apple Machine Learning โ