Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model

Yida Chen, Fernanda Viégas, Martin Wattenberg
6/9/2023
cs.CVcs.AIcs.LG
diffusion-flow

No official code found. Best implementation: yc015/scene-representation-diffusion-model (37 stars, MIT, last commit 2024-07-11).

Abstract

Latent diffusion models (LDMs) exhibit an impressive ability to produce realistic images, yet the inner workings of these models remain mysterious. Even when trained purely on images without explicit depth information, they typically output coherent pictures of 3D scenes. In this work, we investigate a basic interpretability question: does an LDM create and use an internal representation of simple scene geometry? Using linear probes, we find evidence that the internal activations of the LDM encode linear representations of both 3D depth data and a salient-object / background distinction. These representations appear surprisingly early in the denoising process$-$well before a human can easily make sense of the noisy images. Intervention experiments further indicate these representations play a causal role in image synthesis, and may be used for simple high-level editing of an LDM's output. Project page: https://yc015.github.io/scene-representation-diffusion-model/

View on arXivView PDF

Code Implementations(1)

MIT

Linear probe found representations of scene attributes in a text-to-image diffusion model

376TeX, HTMLJul 29, 20232 years agoMIT
explainabilityimage-editinginterpretabilityscenestable-diffusion

Similar Papers

Cite this paper

@article{chen2023beyond,
  title  = {Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model},
  author = {Yida Chen and Fernanda Viégas and Martin Wattenberg},
  year   = {2023},
  eprint = {2306.05720},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.05720v2}
}

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/2306.05720.svg)](https://codeofpaper.com/paper/2306.05720)

Discussion