Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activations

Chaofan Gan, Yuanpeng Tu, Xi Chen, Tieyuan Chen, Yuxi Li, Mehrtash Harandi, Weiyao Lin

Introduction

Diffusion Transformers (DiTs) have recently superseded U-Net architectures as the state-of-the-art backbone for high-fidelity image generation, powering models such as Stable Diffusion 3 (SD3) and Flux. However, while their generative capabilities are unparalleled, these models have surprisingly struggled with visual correspondence—the fundamental computer vision task of identifying matching semantic points across different images.

This paper identifies a "critical phenomenon" within DiT architectures that prevents them from being effective feature extractors: the presence of massive activations. These extreme outlier values dominate the feature space, drowning out local semantic information. To address this, the researchers introduce DiTF, a training-free framework that modulates these activations to unlock the latent discriminative power of Diffusion Transformers.

The Problem: Massive Activations in DiTs

In traditional U-Net-based diffusion models, features are naturally well-suited for tasks like semantic matching. In contrast, the authors discovered that in DiTs, a tiny fraction of feature dimensions exhibit values over 100 times larger than the rest.

These massive activations are spatially invariant, meaning they maintain nearly identical values across every pixel in an image. Because standard correspondence algorithms rely on "directional similarity" (comparing the orientation of feature vectors), these massive, uniform spikes act as a bottleneck. They force all feature vectors to point in nearly the same direction, making it impossible to distinguish between distinct object parts, such as a cat’s ear versus its paw.

The DiTF Framework

DiTF (Diffusion Transformer Feature) is a "plug-and-play" enhancement that requires no training or fine-tuning. It restores the discriminative utility of DiT features through two primary mechanisms:

1. AdaLN-based Modulation

The researchers observed that the locations of these massive activations align perfectly with the scaling factors produced by the model’s Adaptive Layer Normalization (AdaLN) layers. AdaLN is typically used to condition the model on the diffusion timestep ($t$). By passing raw features through the model's own built-in AdaLN layers during the feature extraction process, DiTF effectively "localizes" and normalizes these spikes. This process suppresses the outliers and boosts the signal of the underlying semantic features.

2. Channel Discard Strategy

Even after modulation, certain dimensions remain uninformatively large. DiTF employs a simple strategy to identify and zero out these specific channels. Since these dimensions exhibit very low variance across the spatial dimensions of an image, removing them results in no loss of local detail while significantly cleaning the feature representation for downstream matching tasks.

Experimental Results and Insights

The authors evaluated DiTF across a rigorous suite of benchmarks, including SPair-71k, PF-Pascal, and the large-scale AP-10K animal matching dataset.

State-of-the-Art Performance

DiTF sets a new benchmark for semantic correspondence:

  • SPair-71k: DiTF achieved a +9.4% improvement in [email protected] (Percentage of Correct Keypoints) over the previous diffusion-based state-of-the-art, DIFT.
  • AP-10K: On challenging cross-species matching (e.g., matching a dog to a cat), DiTF outperformed existing methods by +4.4%.
  • General Perception: Beyond matching, using DiTF features for semantic segmentation on the ADE20K dataset resulted in a significant mIoU boost from 44.8 to 54.8, demonstrating that the features are generally more discriminative for various vision tasks.

Cross-Category Robustness

A key finding is that DiTF excels at "cross-family" matching. While previous models like DINOv2 often struggle when the source and target images belong to different biological families, DiTF maintains high accuracy, suggesting that DiTs capture deeper structural and semantic hierarchies once the massive activations are tamed.

Conclusion

The DiTF framework reveals that Diffusion Transformers actually possess richer semantic boundaries and better spatial coherence than their U-Net predecessors; these qualities were simply hidden behind architectural outliers. By using the model’s own AdaLN parameters to modulate these activations, DiTF provides a simple, training-free way to leverage the most powerful generative models for precise visual understanding. Future research may explore whether these massive activations are necessary for image synthesis or if they represent an architectural inefficiency that can be addressed during the training phase.

Summary updated

BibTeX
@inproceedings{gan2025unleashing,
  author = {Chaofan Gan and Yuanpeng Tu and Xi Chen and Tieyuan Chen and Yuxi Li and Mehrtash Harandi and Weiyao Lin},
  title = {{Unleashing Diffusion Transformers for Visual Correspondence by Modulating Massive Activations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=s3MwCBuqav},
}
Figure