Papers › Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model

Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model

9 Jun 2023arXiv:2306.05720archive 2025-07-28

Yida Chen, Fernanda Viégas, Martin Wattenberg

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/

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.05720")

Code

Syntology Ran 4 of 14 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yc015/scene-representation-diffusion-model officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 4 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran
10unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yc015/scene-representation-diffusion-model. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_scale_and_shift yc015/scene-representation-diffusion-model/probe_src/depth_loss.py official repository ran MIT (permissive) · 25ba9b5031480973 · report
get_parameter_device yc015/scene-representation-diffusion-model/modified_diffusers/modeling_utils.py official repository ran MIT (permissive) · eafa252fd6f86857 · report
get_parameter_dtype yc015/scene-representation-diffusion-model/modified_diffusers/modeling_utils.py official repository ran MIT (permissive) · dc2045840ce679cb · report
reduction_batch_based yc015/scene-representation-diffusion-model/probe_src/depth_loss.py official repository ran fingerprinted MIT (permissive) · e8996630fe3501e1 · report
check_imports yc015/scene-representation-diffusion-model/modified_diffusers/dynamic_modules_utils.py official repository unverified MIT (permissive) · 301682fc3342590a · report
cosine_distance yc015/scene-representation-diffusion-model/modified_diffusers/pipelines/stable_diffusion/safety_checker.py official repository unverified MIT (permissive) · a580fad941fd2f88 · report
get_relative_import_files yc015/scene-representation-diffusion-model/modified_diffusers/dynamic_modules_utils.py official repository unverified MIT (permissive) · 00cc853a73f3aeb6 · report
get_relative_imports yc015/scene-representation-diffusion-model/modified_diffusers/dynamic_modules_utils.py official repository unverified MIT (permissive) · 450aeffe7f80f917 · report
load_state_dict yc015/scene-representation-diffusion-model/modified_diffusers/modeling_utils.py official repository unverified MIT (permissive) · 77bd5e6e8ca8c91d · report
make_counterfactual_label yc015/scene-representation-diffusion-model/probe_src/continuous_depth_intervention_utils.py official repository unverified MIT (permissive) · 1090b7fe2da4f983 · report
make_counterfactual_label yc015/scene-representation-diffusion-model/probe_src/depth_intervention_utils.py official repository unverified MIT (permissive) · 002691469b74a353 · report
optimize_one_inter_rep yc015/scene-representation-diffusion-model/probe_src/continuous_depth_intervention_utils.py official repository unverified MIT (permissive) · 16f5f8b292ace798 · report
optimize_one_inter_rep yc015/scene-representation-diffusion-model/probe_src/depth_intervention_utils.py official repository unverified MIT (permissive) · b31fe2f42ad6b09d · report
reduction_image_based yc015/scene-representation-diffusion-model/probe_src/depth_loss.py official repository unverified MIT (permissive) · c92f0115a72bf454 · report

Tasks

DenoisingImage Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections