SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.16447 · ICML · 2025

Local Mechanisms of Compositional Generalization in Conditional Diffusion

Arwen Bradley

arXiv · PDF · Open in the Atlas

Code that ran

15 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 5 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.16447.json · badge: /api/ran/2509.16447.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
NVlabs/edm2 canonical (classifier label)
classifier basis: census
15 ran · 2 no recorded run
FunctionStatusWhere it lives
const_like Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/torch_utils/misc.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("f2514403e004d82b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

constant Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/torch_utils/misc.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("6d32f9cf6f29b386")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

do_sample Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/toy_example.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("d885af9905e22f98")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

edm_sampler Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/generate_images.py
pointer only (licence: NONE); the stored copy get_code serves, from nvlabs/edm2, is pointer only (licence: NOASSERTION) · get_code("a14db9805bf41197")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

file_ext Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/dataset_tool.py
pointer only (licence: NONE); the stored copy get_code serves, from pdillis/stylegan3-fun, is pointer only (licence: NOASSERTION) · get_code("a2b45afa097b55b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_time Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/dnnlib/util.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("863886ae28872158")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_time_brief Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/dnnlib/util.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("cf4282fe49551c8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

kimg_to_nimg Ran
ran, honoured the contract we drafted
NVlabs/edm2/reconstruct_phema.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("b454b0c7002712e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

maybe_min Ran
ran, honoured the contract we drafted
NVlabs/edm2/dataset_tool.py
pointer only (licence: NONE); the stored copy get_code serves, from pdillis/stylegan3-fun, is pointer only (licence: NOASSERTION) · get_code("dd1dc700e87f36cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mp_silu Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/training/networks_edm2.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("49d89884be5dc515")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize Ran
ran; our contract draft was wrong, not the code
NVlabs/edm2/training/networks_edm2.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("ebfd171dc25ba0ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_int_list Ran
ran, honoured the contract we drafted
NVlabs/edm2/generate_images.py
pointer only (licence: NONE); the stored copy get_code serves, from newbeeer/stf, is pointer only (licence: NONE) · get_code("cacd4f6ec202d9b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_nimg Ran
ran, honoured the contract we drafted
NVlabs/edm2/train_edm2.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("fcf68d736821de45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

parse_tuple Ran
ran, honoured the contract we drafted
NVlabs/edm2/dataset_tool.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("07b21b35ecb4815c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

tuple_product Ran
ran, violated the contract we drafted
NVlabs/edm2/dnnlib/util.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("d0955d86500b69a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_persistent Not yet run
unverified (harvested, no recorded run)
NVlabs/edm2/torch_utils/persistence.py
pointer only (licence: NONE); the stored copy get_code serves, from AMAP-ML/DCW, is pointer only (licence: NOASSERTION) · get_code("e8b31ffccfa05efc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

pinned_buf Not yet run
unverified (harvested, no recorded run)
NVlabs/edm2/torch_utils/misc.py
pointer only (licence: NONE); the stored copy get_code serves, from xfetus/fetal-ultrasound-edm2, is pointer only (licence: NONE) · get_code("3e8b4a53ca71135e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, NVlabs/edm2 when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 17 are also present in other papers whose code we hold (14 with at least one paper dated earlier, 5 the same month, 17 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
format_time 73 other papers
56 dated earlier, 4 the same month, 11 later, 1 same year, order not determinable, 1 undated
2004.00049 (2020-04)
In-Domain GAN Inversion for Real Image Editing
2004.11660 (2020-04)
Disentangled and Controllable Face Image Generation via 3D Imitative-Contrastive Learning
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 70 more not named here
format_time_brief 68 other papers
51 dated earlier, 4 the same month, 11 later, 1 same year, order not determinable, 1 undated
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
2206.07695 (2022-06)
VoxGRAF: Fast 3D-Aware Image Synthesis with Sparse Voxel Grids
and 65 more not named here
parse_int_list 37 other papers
28 dated earlier, 2 the same month, 6 later, 1 same year, order not determinable
2206.00364 (2022-06)
Elucidating the Design Space of Diffusion-Based Generative Models
2302.00670 (2023-02)
Stable Target Field for Reduced Variance Score Estimation in Diffusion Models
2302.04265 (2023-02)
PFGM++: Unlocking the Potential of Physics-Inspired Generative Models
and 34 more not named here
file_ext 35 other papers
31 dated earlier, 4 later
2106.07023 (2021-06)
Styleformer: Transformer based Generative Adversarial Networks with Style Vector
2111.02175 (2021-11)
Discriminator Synthesis: On reusing the other half of Generative Adversarial Networks
2111.13792 (2021-11)
LAFITE: Towards Language-Free Training for Text-to-Image Generation
and 32 more not named here
maybe_min 35 other papers
31 dated earlier, 4 later
2106.07023 (2021-06)
Styleformer: Transformer based Generative Adversarial Networks with Style Vector
2111.02175 (2021-11)
Discriminator Synthesis: On reusing the other half of Generative Adversarial Networks
2111.13792 (2021-11)
LAFITE: Towards Language-Free Training for Text-to-Image Generation
and 32 more not named here
constant 26 other papers
19 dated earlier, 1 the same month, 5 later, 1 same year, order not determinable
2306.06991 (2023-06)
Fast Diffusion Model
2308.15321 (2023-08)
Elucidating the Exposure Bias in Diffusion Models
2309.03350 (2023-09)
Relay Diffusion: Unifying diffusion process across resolutions for image synthesis
and 23 more not named here
is_persistent 20 other papers
14 dated earlier, 1 the same month, 4 later, 1 same year, order not determinable
2306.06991 (2023-06)
Fast Diffusion Model
2308.15321 (2023-08)
Elucidating the Exposure Bias in Diffusion Models
2309.03350 (2023-09)
Relay Diffusion: Unifying diffusion process across resolutions for image synthesis
and 17 more not named here
parse_tuple 20 other papers
16 dated earlier, 4 later
2303.10137 (2023-03)
A Recipe for Watermarking Diffusion Models
2306.06991 (2023-06)
Fast Diffusion Model
2308.15321 (2023-08)
Elucidating the Exposure Bias in Diffusion Models
and 17 more not named here
tuple_product 8 other papers
6 dated earlier, 1 later, 1 same year, order not determinable
2004.00049 (2020-04)
In-Domain GAN Inversion for Real Image Editing
2004.11660 (2020-04)
Disentangled and Controllable Face Image Generation via 3D Imitative-Contrastive Learning
2310.11440 (2023-10)
EvalCrafter: Benchmarking and Evaluating Large Video Generation Models
and 5 more not named here
const_like 5 other papers
3 dated earlier, 1 later, 1 same year, order not determinable
Xia_Rectified_Diffusion_Guidance_for_Conditional_Generation_CVPR_2025_paper (2025 (year only))
Rectified Diffusion Guidance for Conditional Generation
2505.07447 (2025-05)
Unified Continuous Generative Models
2506.14605 (2025-06)
Unsupervised Imaging Inverse Problems with Diffusion Distribution Matching
and 2 more not named here
normalize 5 other papers
4 dated earlier, 1 later
2502.14583 (2025-02)
A Theory for Conditional Generative Modeling on Multiple Data Sources
2502.18197 (2025-02)
VCT: Training Consistency Models with Variational Noise Coupling
2505.07447 (2025-05)
Unified Continuous Generative Models
and 2 more not named here
edm_sampler 4 other papers
3 dated earlier, 1 later
2312.02696 (2023-12)
Analyzing and Improving the Training Dynamics of Diffusion Models
2406.02507 (2024-06)
Guiding a Diffusion Model with a Bad Version of Itself
2502.14583 (2025-02)
A Theory for Conditional Generative Modeling on Multiple Data Sources
and 1 more not named here
mp_silu 3 other papers
2 dated earlier, 1 later
2502.14583 (2025-02)
A Theory for Conditional Generative Modeling on Multiple Data Sources
2502.18197 (2025-02)
VCT: Training Consistency Models with Variational Noise Coupling
2608.05471 (2026-08)
A Foundational EDM2-Based Generative Model for High-Resolution Synthetic Fetal Ultrasound Imaging from Open Datasets
parse_nimg 2 other papers
1 dated earlier, 1 later
2502.14583 (2025-02)
A Theory for Conditional Generative Modeling on Multiple Data Sources
2608.05471 (2026-08)
A Foundational EDM2-Based Generative Model for High-Resolution Synthetic Fetal Ultrasound Imaging from Open Datasets
pinned_buf 2 other papers
1 later, 1 same year, order not determinable
Xia_Rectified_Diffusion_Guidance_for_Conditional_Generation_CVPR_2025_paper (2025 (year only))
Rectified Diffusion Guidance for Conditional Generation
2608.05471 (2026-08)
A Foundational EDM2-Based Generative Model for High-Resolution Synthetic Fetal Ultrasound Imaging from Open Datasets
do_sample 1 other paper
1 later
2608.05471 (2026-08)
A Foundational EDM2-Based Generative Model for High-Resolution Synthetic Fetal Ultrasound Imaging from Open Datasets
kimg_to_nimg 1 other paper
1 later
2608.05471 (2026-08)
A Foundational EDM2-Based Generative Model for High-Resolution Synthetic Fetal Ultrasound Imaging from Open Datasets

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Conditional diffusion models appear capable of compositional generalization, i.e., generating convincing samples for out-of-distribution combinations of conditioners, but the mechanisms underlying this ability remain unclear. To make this concrete, we study length generalization, the ability to generate images with more objects than seen during training. In a controlled CLEVR setting (Johnson et al., 2017), we find that length generalization is achievable in some cases but not others, suggesting that models only sometimes learn the underlying compositional structure. We then investigate locality as a structural mechanism for compositional generalization. Prior works proposed score locality as a mechanism for creativity in unconditional diffusion models (Kamb & Ganguli, 2024;Niedoba et al., 2024), but did not address flexible conditioning or compositional generalization. In this paper, we prove an exact equivalence between a specific compositional structure (conditional projective composition) (Bradley et al., 2025) and scores with sparse dependencies on both pixels and conditioners (local conditional scores). This theory also extends to compositions of concepts (such as style+content) in feature-space. We validate our theory empirically: CLEVR models that succeed at length generalization exhibit local conditional scores, while those that fail do not. Furthermore, we show that a causal intervention explicitly enforcing local conditional scores enables length generalization in a previously failing model. Finally, we investigate SDXL and find that in pixel-space, spatial locality is present but conditional-locality is mostly absent; however, we find quantitative evidence of local conditional scores in the network's learned feature-space.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.16447")
get_code_for_paper("2509.16447")
have("2509.16447")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.16447.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.16447.svg)](https://syntology.ai/paper/2509.16447)

Connect an agent — have() is free.