Papers › LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation

LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generation

30 Mar 2023CVPR 2023 1arXiv:2303.17189archive 2025-07-28

Guangcong Zheng, Xianpan Zhou, XueWei Li, Zhongang Qi, Ying Shan, Xi Li

Recently, diffusion models have achieved great success in image synthesis. However, when it comes to the layout-to-image generation where an image often has a complex scene of multiple objects, how to make strong control over both the global layout map and each detailed object remains a challenging task. In this paper, we propose a diffusion model named LayoutDiffusion that can obtain higher generation quality and greater controllability than the previous works. To overcome the difficult multimodal fusion of image and layout, we propose to construct a structural image patch with region information and transform the patched image into a special layout to fuse with the normal layout in a unified form. Moreover, Layout Fusion Module (LFM) and Object-aware Cross Attention (OaCA) are proposed to model the relationship among multiple objects and designed to be object-aware and position-sensitive, allowing for precisely controlling the spatial related information. Extensive experiments show that our LayoutDiffusion outperforms the previous SOTA methods on FID, CAS by relatively 46.35%, 26.70% on COCO-stuff and 44.29%, 41.82% on VG. Code is available at https://github.com/ZGCTroy/LayoutDiffusion.

PaperPDFConference PDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 19 code samples harvested from 2 repositories linked to this paper: 11 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 2 honoured, 0 violated, 7 with no contract checked; 2 where Syntology's instrument failed) · 8 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: official repository: 12 samples from 1 repository, 9 ran (7 with no instrument failure; 2 where Syntology's instrument failed); named in the paper: 7 samples from 1 repository, 2 ran (2 with no instrument failure; 0 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 2 of the 11 samples that ran have no recorded date.

dcdcvgroup/layout-diffusion-mindspore officialmentioned on GitHubmindsporeMITSyntology: 12 samples, 9 ran (2 instrument-failed) · 3 unverified report
zgctroy/layoutdiffusion mentioned in papermentioned on GitHubpytorchSyntology: 7 samples, 2 ran (0 instrument-failed) · 5 unverified 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

19 samples harvested: 11 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 2 honoured, 0 violated, 7 with no contract checked; 2 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
2ran · our draft was wrong
7ran
8unverified

Licence: 3 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. For 3 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

dcdcvgroup/layout-diffusion-mindspore official repository 12 samples, 9 ran (2 instrument-failed) · 3 unverified
betas_for_alpha_bar in 123 papers layout_diffusion/gaussian_diffusion.py ran · honoured contract MIT (permissive) here; the stored copy is pointer only · 2ab2316ac6fdd869 · report fixture: signature num_diffusion_timesteps:int/0/int, alpha_bar:callable/0/?, max_beta:float/0/float · returned ndarray · level recorded, date not recorded
get_named_beta_schedule in 119 papers layout_diffusion/gaussian_diffusion.py ran · honoured contract MIT (permissive) here; the stored copy is pointer only · a086d6286a40b889 · report fixture: signature schedule_name:str/0/str, num_diffusion_timesteps:int/0/int · returned ndarray · level recorded, date not recorded
get_obj_from_str in 52 papers layout_diffusion/util.py ran · our draft was wrong MIT (permissive) · 221b2d116fdf1032 · report fixture: signature string:str/0/str, reload:bool/0/bool · returned type · level recorded 2026-09-22
get_param_groups_and_shapes in 73 papers layout_diffusion/fp16_util.py ran MIT (permissive) · c9462fd26014eb95 · report fixture: signature named_model_params:list/1/tuple · returned list · level recorded 2026-09-24
make_master_params in 90 papers layout_diffusion/fp16_util.py ran MIT (permissive) · 2675c6c9bf8c7023 · report fixture: signature param_groups_and_shapes:list/1/tuple · returned list · level recorded 2026-09-24
mpi_weighted_mean in 55 papers layout_diffusion/logger.py ran · our draft was wrong MIT (permissive) here; the stored copy is pointer only · e515a67f7f32e76d · report fixture: signature comm:MockComm/0/?, local_name2valcount:dict/0/? · returned dict · level recorded 2026-09-26
parse_resume_step_from_filename in 19 papers layout_diffusion/train_util.py ran fingerprinted MIT (permissive) · 192c365338335653 · report fixture: signature filename:str/0/str · returned int · level recorded 2026-09-25
space_timesteps in 72 papers layout_diffusion/respace.py ran MIT (permissive) · 37ddaf228c202902 · report fixture: signature num_timesteps:int/0/int, section_counts:list/1/int, sample_method:str/0/str · returned set · level recorded 2026-09-24
unflatten_master_params in 90 papers layout_diffusion/fp16_util.py ran MIT (permissive) · d36d1fd554cb479f · report fixture: signature param_group:list/1/tuple, master_param:Tensor/1/float · returned tuple · level recorded 2026-09-24
build_diffusion layout_diffusion/respace.py unverified MIT (permissive) · 43112d6fc1a61a07 · report
build_model in 469 papers layout_diffusion/layout_diffusion_unet.py unverified MIT (permissive) · f07113626bc2a9ae · report
make_output_format in 88 papers layout_diffusion/logger.py unverified MIT (permissive) · f1f1aa73de47c1e0 · report
zgctroy/layoutdiffusion named in the paper 7 samples, 2 ran (0 instrument-failed) · 5 unverified
QKVAttentionLegacy in 20 papers layout_diffusion/layout_diffusion_unet.py ran fingerprinted MIT (permissive) · b8ac15fc31c4c31d · report fixture: signature qkv:Tensor/3/float, encoder_kv:NoneType/0/?, positional_embedding:NoneType/0/? · returned Tensor · level recorded 2026-09-24
SiLU in 8 papers
census: 5 implementations from 5 papers, 1 distinct output on one shared input
layout_diffusion/layout_diffusion_unet.py ran fingerprinted MIT (permissive) · 52fcaa6065df3ee1 · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-24
AttentionBlock in 69 papers layout_diffusion/layout_diffusion_unet.py unverified MIT (permissive) · 53b0dd52d7b30b22 · report
LayoutDiffusionUNetModel layout_diffusion/layout_diffusion_unet.py unverified MIT (permissive) · c0bc3ed1be627926 · report
ObjectAwareCrossAttention layout_diffusion/layout_diffusion_unet.py unverified MIT (permissive) · 1953cbb549533769 · report
TimestepEmbedSequential in 28 papers layout_diffusion/layout_diffusion_unet.py unverified MIT (permissive) · d174605e83159ebd · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for LayoutDiffusion (graph method: LayoutDiffusion). 19 bricks; individually on a fixture: 9 ran (of which 3 constructed an object rather than computing a result; 5 with no instrument failure: 0 honoured, 0 violated, 5 with no contract checked; 4 where Syntology's instrument failed) · 10 unverified. The assembly has not been run end-to-end.

  1. LayoutDiffusionUNetModel entry · level 0 · unverified · c0bc3ed1be627926
  2. AttentionBlock model · level 0 · unverified · 53b0dd52d7b30b22
  3. Downsample helper · level 1 · ran · 8c5676227adb2492
  4. ObjectAwareCrossAttention model · level 0 · unverified · 1953cbb549533769
  5. ResBlock model · level 0 · unverified · 45cf54c7a28a7147
  6. SiLU helper · level 1 · ran · 52fcaa6065df3ee1
  7. TimestepEmbedSequential helper · level 0 · unverified · d174605e83159ebd
  8. Upsample helper · level 1 · ran · 6998a3677700ee6c
  9. conv_nd helper · level 0 · unverified · fe4eb545bbb728e0
  10. convert_module_to_f16 helper · level 0 · unverified · ac07425399caf784
  11. linear helper · level 1 · ran · our draft was wrong · 0e30585f04efffbe
  12. normalization helper · level 1 · ran · our draft was wrong · 5b31715a9b105926
  13. timestep_embedding helper · level 1 · ran · our draft was wrong · b0aa348a2f95ef0f
  14. zero_module helper · level 1 · ran · our draft was wrong · 129b804760b3115f
  15. QKVAttentionLegacy helper · level 1 · ran · b8ac15fc31c4c31d
  16. avg_pool_nd helper · level 0 · unverified · ecd0fc28815b65ae
  17. TimestepBlock helper · level 0 · unverified · 40fb9bc947892adc
  18. GroupNorm32 helper · level 1 · ran · 426c2385fa431d9a
  19. count_flops_attn helper · level 0 · unverified · 0c49097ae6ff37ef

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2303.17189") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

Image GenerationLayout-to-Image GenerationObject

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Layout-to-Image Generation COCO-Stuff 256x256 LayoutDiffusion (25steps) FID 31.68 #1 of 5 Archive leaderboard report
Layout-to-Image Generation Visual Genome 128x128 LayoutDiffusion FID 16.35 #1 of 5 Archive leaderboard report
Layout-to-Image Generation Visual Genome 256x256 LayoutDiffusion FID 15.63 #1 of 4 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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