arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.05125cs.CV
收藏

锥:扩散模型中的概念神经元

Cones: Concept Neurons in Diffusion Models for Customized Generation

University of Science and Technology of China(中国科学技术大学);Shanghai Jiao Tong University(上海交通大学);Ant Group(蚂蚁集团);Alibaba Group(阿里巴巴集团)

Zhiheng Liu, Ruili Feng, Kai Zhu, Yifei Zhang, Kecheng Zheng, Yu Liu, Deli Zhao, Jingren Zhou, Yang Cao

摘要:

人类大脑用不同的神经元对呈现的刺激的语义特征做出反应。那么,现代深层神经网络是否也承认类似的行为模式,就令人好奇了。具体来说,本文发现了一个小集群的神经元在扩散模型对应于一个特定的主题。我们称这些神经元为概念神经元。它们可以通过与给定受试者连接的刺激的网络梯度的统计来识别。概念神经元在解释和操纵生成结果时表现出磁性。关闭它们可以直接产生不同场景中的相关主题。连接多个概念神经元簇可以在单个图像中生动地生成所有相关概念。进一步微调的几个步骤可以增强多概念能力,这可能是第一个在单个图像中生成多达四个不同主题的方法。对于大规模的应用,概念神经元是环境友好的,因为我们只需要存储一个稀疏的int索引簇,而不是密集的float32参数值,与以前的主题驱动生成方法相比,减少了90%的存储消耗。大量的定性和定量研究表明,我们的方法在解释和操纵扩散模型的优越性。

英文摘要:

Human brains respond to semantic features of presented stimuli with different neurons. It is then curious whether modern deep neural networks admit a similar behavior pattern. Specifically, this paper finds a small cluster of neurons in a diffusion model corresponding to a particular subject. We call those neurons the concept neurons. They can be identified by statistics of network gradients to a stimulation connected with the given subject. The concept neurons demonstrate magnetic properties in interpreting and manipulating generation results. Shutting them can directly yield the related subject contextualized in different scenes. Concatenating multiple clusters of concept neurons can vividly generate all related concepts in a single image. A few steps of further fine-tuning can enhance the multi-concept capability, which may be the first to manage to generate up to four different subjects in a single image. For large-scale applications, the concept neurons are environmentally friendly as we only need to store a sparse cluster of int index instead of dense float32 values of the parameters, which reduces storage consumption by 90\% compared with previous subject-driven generation methods. Extensive qualitative and quantitative studies on diverse scenarios show the superiority of our method in interpreting and manipulating diffusion models.

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

↑