TL;DR
This paper reveals that Diffusion Transformers (DiTs) contain "Massive Activations" (MAs)—extreme outlier values concentrated in a few feature dimensions—that act as a double-edged sword, driving fine-grained detail generation but harming downstream visual understanding. By introducing Eliciting Massive Activation (EMA), a training-free framework, the authors show how to modulate these channels to simultaneously achieve sharper image/video generation and highly discriminative feature representations.
What Problem Does This Paper Address?
Diffusion Transformers (DiTs) like Stable Diffusion 3 and Flux are the current state-of-the-art for visual generation. Increasingly, researchers also reuse these pretrained models as feature extractors for dense perception tasks like semantic segmentation or depth estimation. However, the internal activation dynamics of DiTs remain a black box.
In large language models (LLMs) and Vision Transformers (ViTs), researchers have observed "Massive Activations" (MAs)—hidden layer activations with magnitudes vastly larger than the rest. In those fields, MAs act as "attention sinks" or registers. This paper tackles a foundational question: Do MAs exist in DiTs, and what role do they play in dense visual generation and understanding?
The authors discover that DiTs possess a unique MA structure that creates a task-dependent conflict: they are absolutely essential for rendering fine textures during generation, but they crush spatial discriminability when the model is used for feature extraction.
Methods
To resolve this conflict without expensive retraining, the authors propose Eliciting Massive Activation (EMA), a unified, training-free framework consisting of two core components:
- Detail Guidance (DG) for Generation: The authors find that suppressing MA dimensions creates a "detail-deficient" counterfactual prediction. DG exploits this by intentionally damping MAs at an intermediate DiT block during sampling, and then guiding the final generation away from this blurry baseline. Because the original and counterfactual branches share the exact same computation before the intervention block, DG can be implemented via an efficient partial-forward pass. It also supports Local DG to refine specific user-selected image regions.
- MA-modulated REPresentation extraction (MREP) for Understanding: To prevent MAs from dominating feature directions (which makes all spatial tokens look overly similar under cosine similarity), MREP reuses the model's pretrained Adaptive Layer Normalization (AdaLN) weights to scale down the dominant MA channels. It then concatenates these modulated features with spatially normalized MA maps to preserve structural layout cues without letting their raw magnitudes overwhelm the representation.
Datasets
The authors evaluated EMA across a comprehensive suite of generative and discriminative benchmarks:
- Image & Video Generation: Pick-a-Pic ("test unique" split), HPSv2.1, ImageNet (256×256 class-conditional), and VBench (for video evaluation).
- Visual Understanding: SPair-71k, PF-Pascal, and AP-10K (for semantic correspondence); ADE20k (for semantic segmentation); and NYUv2 (for depth estimation).
Key Insights and Ideas
- Channel-Concentrated, Spatially Distributed: Unlike LLMs or ViTs where outliers are localized to specific tokens (like punctuation or background patches), MAs in DiTs are distributed across all spatial tokens but tightly concentrated in a few fixed feature dimensions (e.g., dimension 810 in SD3).
- Driven by Time, Not Text: MAs are closely aligned with AdaLN residual scaling factors. Their magnitudes are primarily shaped by the denoising timestep—growing larger as the image shifts from high noise to low noise—while text prompts have negligible impact on them.
- The Texture Switch: Selectively disrupting MA dimensions acts like turning off a "texture switch." The model completely loses the ability to generate fine details (like hair strands or fabric textures) but perfectly preserves global layout, object identity, and color composition.
Key Results
Visual Generation
- Higher Quality, Less Time: On Pick-a-Pic using SD3.5, Detail Guidance (DG) boosted the BlipScore from 70.09 to 83.66 and the Aesthetic score from 5.94 to 6.16. Crucially, thanks to the partial-forward optimization, DG cut sampling latency from 15.7 seconds (standard Classifier-Free Guidance) down to 10.6 seconds.
- Class-Conditional Gains: On ImageNet with DiT-XL/2, DG reduced the Frechet Inception Distance (FID) from 9.52 to 5.77, proving it provides a broadly useful refinement signal independent of text prompts.
Visual Understanding
- Restoring Feature Discrimination: On the SPair-71k keypoint matching benchmark, MREP achieved an unsupervised [email protected] of 50.1, significantly outperforming raw DiT features (49.3) and completely rescuing the representation from the catastrophic drop seen when MAs are naively removed (21.4).
- Dense Perception: On ADE20k semantic segmentation, MREP achieved 54.9 single-scale mIoU, outperforming standard DiT feature baselines (53.6).
Limitations and Future Work
The authors note that the optimal intervention block ($k$) and the MA selection threshold ($\tau_{MA}$) currently rely on a one-time calibration step using a small dataset. While these parameters remain fixed once found, future work could explore dynamically predicting or adapting these thresholds on-the-fly based on prompt complexity. Additionally, exploring how massive activations manifest in non-diffusion transformer architectures (like autoregressive visual models) remains an open and promising direction.
Summary updated