Skip to main content
QUICK REVIEW

[论文解读] The Hidden Language of Diffusion Models

Hila Chefer, Oran Lang|arXiv (Cornell University)|Jun 1, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 3
一句话总结

本文提出了Conceptor,一种通过从模型词汇表中学习词嵌入的线性组合来将文本到图像扩散模型中的概念分解为可读文本元素的新方法。该方法揭示了非平凡、忠实且稳健的内部表征——包括基于范例的生成、多义性融合、对艺术风格的依赖以及隐藏偏见——表明模型内部编码了超越词汇语义的复杂、语义丰富的结构。

ABSTRACT

Text-to-image diffusion models have demonstrated an unparalleled ability to generate high-quality, diverse images from a textual prompt. However, the internal representations learned by these models remain an enigma. In this work, we present Conceptor, a novel method to interpret the internal representation of a textual concept by a diffusion model. This interpretation is obtained by decomposing the concept into a small set of human-interpretable textual elements. Applied over the state-of-the-art Stable Diffusion model, Conceptor reveals non-trivial structures in the representations of concepts. For example, we find surprising visual connections between concepts, that transcend their textual semantics. We additionally discover concepts that rely on mixtures of exemplars, biases, renowned artistic styles, or a simultaneous fusion of multiple meanings of the concept. Through a large battery of experiments, we demonstrate Conceptor's ability to provide meaningful, robust, and faithful decompositions for a wide variety of abstract, concrete, and complex textual concepts, while allowing to naturally connect each decomposition element to its corresponding visual impact on the generated images. Our code will be available at: https://hila-chefer.github.io/Conceptor/

研究动机与目标

  • 为解决文本到图像扩散模型中可解释性的缺乏,揭示其如何在内部表征文本概念。
  • 开发一种方法,提供扩散模型中复杂概念的忠实、稳健且人类可理解的分解。
  • 检测通过视觉检查无法察觉的模型表征中的非平凡偏见和结构模式。
  • 通过统一的可解释性框架,实现对抽象、具体及同形词概念的分析。

提出的方法

  • Conceptor通过神经网络预测的系数,将伪标记学习为模型词汇表中词嵌入的线性组合,以去噪概念图像。
  • 该方法训练从每个词嵌入到系数的映射,以优化输入概念图像的重建。
  • 使用稀疏性损失(公式5)确保仅词汇表中一小部分有意义的标记参与分解。
  • 该分解具有上下文敏感性:标记的视觉影响取决于其在完整组合中的角色,而不仅仅是其独立含义。
  • 采用逐图像分解方案,实现反向解释:给定生成图像,Conceptor可识别其主要贡献的文本元素。
  • 该方法利用基于CLIP的图文对齐,并应用于最先进的Stable Diffusion进行分析。
Figure 2 : Decompositions of single images by Conceptor . The top rows present images found to contain two elements. The last row shows more complex mixtures by removing one element at a time. The examples demonstrate the meaningfulness of our learned decompositions.
Figure 2 : Decompositions of single images by Conceptor . The top rows present images found to contain two elements. The last row shows more complex mixtures by removing one element at a time. The examples demonstrate the meaningfulness of our learned decompositions.

实验结果

研究问题

  • RQ1如何以忠实、稳健且人类可理解的方式解释文本到图像扩散模型的内部表征?
  • RQ2在同形词、抽象概念或复杂短语等概念的表征中,会浮现哪些非平凡的结构模式?
  • RQ3扩散模型在生成图像时,在多大程度上依赖于范例、艺术风格或词语的多重含义?
  • RQ4我们能否检测到仅通过视觉检查无法察觉的模型表征中的隐藏社会偏见?

主要发现

  • Conceptor成功将'一位总统'等概念分解为巴拉克·奥巴马等显著范例,表明其采用插值生成机制。
  • 对于同形词概念如'起重机',模型同时融合了两种含义(鸟类和机器),生成图像混合了两种解释。
  • 艺术风格如'印象派'和艺术家如'莫奈'在概念分解中成为主导成分,表明强烈的风格影响。
  • 该方法检测到非平凡偏见,例如'记者'与'犹太人',或'歌剧演唱家'与'肥胖'之间的关联,这些在视觉上不明显但编码在模型表征中。
  • 当仅使用CLIP相似度最高的标记时,性能显著下降,表明Conceptor依赖于超越简单词汇相关性的广泛、语义多样的词汇。
  • 该方法在超参数上表现稳定:n=100时结果与完整方法相似,而n=10则不足,且移除稀疏性损失会降低除多样性外的所有指标。
Figure 3 : Coefficient manipulation. For each of the listed concepts, we manipulate the coefficient of a single element from the decomposition and observe its visual impact on the generated image. The examples demonstrate the meaningfulness of our learned decompositions.
Figure 3 : Coefficient manipulation. For each of the listed concepts, we manipulate the coefficient of a single element from the decomposition and observe its visual impact on the generated image. The examples demonstrate the meaningfulness of our learned decompositions.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。