arXiv:2504.15473cs.CVcs.LG2025-04NeurIPS被引 18

用可解释技术揭示扩散模型生成图像的内在逻辑。

Emergence and Evolution of Interpretable Concepts in Diffusion Models

论文配图:Emergence and Evolution of Interpretable Concepts in Diffusion Models
图 1 · 摘自论文原文
  • 通过稀疏自编码器分析模型激活,发现可人类理解的概念。
  • 生成初期即可通过概念分布预测最终画面构图。
  • 不同阶段可分别控制构图、风格与细节,适合可控生成研究者。

扩散模型已成为文本到图像生成的主流方法,能从纯噪声生成高质量图像。然而,其内部机制仍不清晰,因具备黑箱特性及复杂的多步生成过程。机制可解释性技术(如稀疏自编码器,SAEs)已在大语言模型中成功应用,但尚未用于解析扩散模型的生成过程。本文利用SAE框架探究一种流行文本到图像扩散模型的内部运作,发现其激活中存在多种人类可理解的概念。有趣的是,即使在首个逆向扩散步骤完成前,仅通过观察激活概念的空间分布,就能较准确预测最终场景构成。此外,我们设计了干预技术以操控图像构图与风格,结果表明:(1)扩散早期可有效控制构图;(2)中期构图基本定型,但风格可调;(3)晚期仅纹理细节可变。

原文摘要 · Abstract (English)

Diffusion models have become the go-to method for text-to-image generation, producing high-quality images from pure noise. However, the inner workings of diffusion models is still largely a mystery due to their black-box nature and complex, multi-step generation process. Mechanistic interpretability techniques, such as Sparse Autoencoders (SAEs), have been successful in understanding and steering the behavior of large language models at scale. However, the great potential of SAEs has not yet been applied toward gaining insight into the intricate generative process of diffusion models. In this work, we leverage the SAE framework to probe the inner workings of a popular text-to-image diffusion model, and uncover a variety of human-interpretable concepts in its activations. Interestingly, we find that even before the first reverse diffusion step is completed, the final composition of the scene can be predicted surprisingly well by looking at the spatial distribution of activated concepts. Moreover, going beyond correlational analysis, we design intervention techniques aimed at manipulating image composition and style, and demonstrate that (1) in early stages of diffusion image composition can be effectively controlled, (2) in the middle stages image composition is finalized, however stylistic interventions are effective, and (3) in the final stages only minor textural details are subject to change.

扩散模型可解释性图像生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。