Abstract
Diffusion models (DMs) have emerged as powerful feature extractors for discriminative tasks, yet current literature focuses on a narrow subset of internal activations. This study identifies a significant performance gap in advanced models like Stable Diffusion XL (SDXL) due to sub-optimal feature selection. We propose a qualitative filtering method based on three universal properties of diffusion U-Nets: asymmetric noise distribution, in-resolution granularity shifts, and spatial locality in self-attention. Our approach reduces the candidate feature pool by 78%, significantly cutting computational costs while achieving new state-of-the-art results in semantic correspondence and segmentation benchmarks.
Introduction
While diffusion models are primarily known for high-fidelity image generation, their internal activations serve as potent dense features for tasks such as semantic segmentation and part matching. However, early research primarily examined inter-module outputs, overlooking the rich information within embedded Vision Transformer (ViT) blocks and attention mechanisms. As architectures grow more complex—moving from "thin" to "fat" U-Nets—the number of potential activations has exploded, making exhaustive search computationally prohibitive. This has led to a performance paradox where newer, more capable generative models often underperform older ones on discriminative tasks because the most effective internal features remain untapped.
Methodology
Rather than relying on brute-force quantitative testing, we introduce a qualitative filtering framework grounded in three universal properties observed across various diffusion architectures:
- Asymmetric Diffusion Noise Analysis: We observe that diffusion-induced noise is not uniformly distributed across the U-Net. While the "down-stage" and the final layers of the "up-stage" are heavily affected, the initial half of the up-stage remains remarkably clean, providing high-quality features.
- In-Resolution Granularity Analysis: Modern "fat" U-Nets exhibit significant shifts in information granularity even within a single resolution level. This necessitates analyzing activations inside modules rather than just at their boundaries.
- Locality Suppression: We find that self-attention queries and keys maintain spatial locality—where neighboring pixels share similar features—even in the absence of positional embeddings. This property allows for effective noise suppression in high-resolution layers.
Experimental Results
Our selection strategy was validated across multiple benchmarks, including SPair-71k for semantic correspondence and ADE20K for segmentation. By narrowing the SDXL candidate pool from 279 to 63 activations, we achieved a 78% reduction in evaluation time while reaching new performance peaks.
- Semantic Correspondence: On SPair-71k, our method achieved 83.90 [email protected], significantly surpassing the previous state-of-the-art of 72.56.
- Semantic Segmentation: On ADE20K, we reached 45.71 mIoU, outperforming specialized baselines like Meta Prompts (40.89).
- Label-Scarce Scenarios: In data-limited settings (Horse-21), our features outperformed DDPM-based methods, achieving 66.3 mIoU.
Discussion and Conclusion
The shift toward "fat" U-Nets requires a fundamental change in how we extract discriminative features. Our findings highlight that attention layers are a "goldmine" for fine-grained spatial details and that understanding the asymmetric nature of diffusion noise is critical for feature selection. While these properties appear universal for U-Net architectures, future work is needed to determine their applicability to emerging Diffusion Transformer (DiT) models. By leveraging these insights, researchers can unlock the full potential of modern diffusion models for a wide array of computer vision tasks.
Summary updated