arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.03558cs.CVcs.AI
收藏

并非所有扩散模型激活都已被评估为判别性特征

Not All Diffusion Model Activations Have Been Evaluated as Discriminative Features

Institute of Information Engineering, CAS(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Institute of Computing Technology, CAS(中国科学院计算技术研究所);Peng Cheng Laboratory(鹏城实验室);School of Cyber Science and Tech., Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区网络空间科学与技术学院);School of Computer Science and Tech., University of Chinese Academy of Sciences(中国科学院大学计算机科学与技术学院)

Benyuan Meng, Qianqian Xu, Zitai Wang, Xiaochun Cao, Qingming Huang

AI总结:

本文针对扩散模型激活选择中被忽视的未评估激活问题,通过定性分析发现三个通用性质以预先过滤劣质激活,并为多种流行扩散模型提出有效特征选择方案,在多个判别性任务上超越现有方法。

摘要:

扩散模型最初是为图像生成而设计的。近期研究表明,其骨干网络内部的信号(称为激活)也可以作为稠密特征,用于语义分割等多种判别性任务。面对数量众多的激活,如何从中选出一个规模小但有效的子集是一个根本性问题。为此,该领域的早期研究对激活的判别能力进行了大规模定量比较。然而,我们发现许多潜在的激活尚未被评估,例如用于计算注意力分数的 queries 和 keys。此外,扩散架构的最新进展带来了许多新的激活,例如嵌入 ViT 模块中的激活。两者叠加,使得激活选择问题仍未解决却被忽视。为了解决这一问题,本文进一步扩大了评估的激活范围。考虑到激活数量显著增加,全规模定量比较已不再可行。因此,我们转而尝试理解这些激活的性质,以便通过简单的定性评估预先过滤掉明显较差的激活。经过仔细分析,我们发现了扩散模型中普遍存在的三个性质,使本研究能够超越特定模型。在此基础上,我们为几种流行的扩散模型提出了有效的特征选择方案。最后,在多个判别性任务上的实验验证了我们的方法优于 SOTA 竞争对手。我们的代码可在 https://github.com/Darkbblue/generic-diffusion-feature 获取。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑