Not All Diffusion Model Activations Have Been Evaluated as Discriminative Features

Benyuan Meng, Qianqian Xu, Zitai Wang, Xiaochun Cao, Qingming Huang
10/1/2024
32 citations
diffusion-flowtransformer-attention

Official code: Darkbblue/generic-diffusion-feature (40 stars, Python, MIT, last commit 2025-05-28).

Abstract

Diffusion models are initially designed for image generation. Recent research shows that the internal signals within their backbones, named activations, can also serve as dense features for various discriminative tasks such as semantic segmentation.

Show full abstract

Given numerous activations, selecting a small yet effective subset poses a fundamental problem. To this end, the early study of this field performs a large-scale quantitative comparison of the discriminative ability of the activations. However, we find that many potential activations have not been evaluated, such as the queries and keys used to compute attention scores. Moreover, recent advancements in diffusion architectures bring many new activations, such as those within embedded ViT modules. Both combined, activation selection remains unresolved but overlooked. To tackle this issue, this paper takes a further step with a much broader range of activations evaluated. Considering the significant increase in activations, a full-scale quantitative comparison is no longer operational. Instead, we seek to understand the properties of these activations, such that the activations that are clearly inferior can be filtered out in advance via simple qualitative evaluation. After careful analysis, we discover three properties universal among diffusion models, enabling this study to go beyond specific models. On top of this, we present effective feature selection solutions for several popular diffusion models. Finally, the experiments across multiple discriminative tasks validate the superiority of our method over the SOTA competitors. Our code is available at https://github.com/Darkbblue/generic-diffusion-feature.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of NeurIPS'24 paper Not All Diffusion Model Activations Have Been Evaluated as Discriminative Features

405PythonSep 27, 20241 years agoMIT

Similar Papers

Cite this paper

@article{meng2024diffusion,
  title  = {Not All Diffusion Model Activations Have Been Evaluated as Discriminative Features},
  author = {Benyuan Meng and Qianqian Xu and Zitai Wang and Xiaochun Cao and Qingming Huang},
  year   = {2024},
  eprint = {2410.03558},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.03558},
  url    = {https://arxiv.org/abs/2410.03558},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.03558.svg)](https://codeofpaper.com/paper/2410.03558)

Discussion