Papers › LayoutGPT: Compositional Visual Planning and Generation with Large Language Models

LayoutGPT: Compositional Visual Planning and Generation with Large Language Models

24 May 2023NeurIPS 2023 11arXiv:2305.15393archive 2025-07-28

Weixi Feng, Wanrong Zhu, Tsu-Jui Fu, Varun Jampani, Arjun Akula, Xuehai He, Sugato Basu, Xin Eric Wang, William Yang Wang

Attaining a high degree of user controllability in visual generation often requires intricate, fine-grained inputs like layouts. However, such inputs impose a substantial burden on users when compared to simple text inputs. To address the issue, we study how Large Language Models (LLMs) can serve as visual planners by generating layouts from text conditions, and thus collaborate with visual generative models. We propose LayoutGPT, a method to compose in-context visual demonstrations in style sheet language to enhance the visual planning skills of LLMs. LayoutGPT can generate plausible layouts in multiple domains, ranging from 2D images to 3D indoor scenes. LayoutGPT also shows superior performance in converting challenging language concepts like numerical and spatial relations to layout arrangements for faithful text-to-image generation. When combined with a downstream image generation model, LayoutGPT outperforms text-to-image models/systems by 20-40% and achieves comparable performance as human users in designing visual layouts for numerical and spatial correctness. Lastly, LayoutGPT achieves comparable performance to supervised methods in 3D indoor scene synthesis, demonstrating its effectiveness and potential in multiple visual domains.

PaperPDFConference PDFCodeCode 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="2305.15393")

Code

Syntology Ran 3 of 19 code samples harvested from 1 repository linked to this paper; 16 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 1 ran with no contract checked.

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

weixi-feng/layoutgpt 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

19 samples harvested; 3 ran; 0 honoured the contract we drafted; 16 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.

1ran · our draft was wrong
1ran · fixture could not drive it
1ran
16unverified

Licence: 0 of the 19 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 weixi-feng/layoutgpt. “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.

alpha_generator weixi-feng/layoutgpt/gligen/gligen_inference.py official repository ran · fixture could not drive it MIT (permissive) · b3e1f7172e4955ae · report
project weixi-feng/layoutgpt/gligen/gligen_inference.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e49923c3510ee0bc · report
reduce_sum weixi-feng/layoutgpt/gligen/distributed.py official repository ran fingerprinted MIT (permissive) · 3f0a1105ef251d78 · report
all_gather weixi-feng/layoutgpt/gligen/distributed.py official repository unverified MIT (permissive) · ed03ba54397adbe4 · report
bb_relative_position weixi-feng/layoutgpt/utils.py official repository unverified MIT (permissive) · 0bf7957edd5ec68b · report
create_exemplar_prompt weixi-feng/layoutgpt/run_layoutgpt_2d.py official repository unverified MIT (permissive) · 79259da2a67a2e86 · report
eval_image weixi-feng/layoutgpt/eval_models/GLIP/eval_spatial.py official repository unverified MIT (permissive) · 578380ce31db339e · report
eval_spatial_relation weixi-feng/layoutgpt/utils.py official repository unverified MIT (permissive) · 3855ecf0a0c564a2 · report
list_grid weixi-feng/layoutgpt/eval_models/GLIP/eval_counting.py official repository unverified MIT (permissive) · 09501d1255cf3995 · report
load weixi-feng/layoutgpt/eval_models/GLIP/eval_counting.py official repository unverified MIT (permissive) · 6920fbdb489405ed · report
load_features weixi-feng/layoutgpt/run_layoutgpt_2d.py official repository unverified MIT (permissive) · c0b66d7eb2f18c94 · report
load_features weixi-feng/layoutgpt/run_layoutgpt_3d.py official repository unverified MIT (permissive) · 3af0b42145b07f7f · report
load_json weixi-feng/layoutgpt/utils.py official repository unverified MIT (permissive) · a0d7fd544bf9313b · report
load_room_boxes weixi-feng/layoutgpt/run_layoutgpt_3d.py official repository unverified MIT (permissive) · 5785462f2abe4ca4 · report
load_room_boxes weixi-feng/layoutgpt/eval_scene_layout.py official repository unverified MIT (permissive) · d7f3fdf20a8bcf2e · report
load_set weixi-feng/layoutgpt/run_layoutgpt_3d.py official repository unverified MIT (permissive) · 32f48bb8094ef7c8 · report
parse_3D_layout weixi-feng/layoutgpt/parse_llm_output.py official repository unverified MIT (permissive) · 45aff54102d0117c · report
reduce_loss_dict weixi-feng/layoutgpt/gligen/distributed.py official repository unverified MIT (permissive) · 5144ad456049f8ce · report
roty weixi-feng/layoutgpt/eval_scene_layout.py official repository unverified MIT (permissive) · dae708ee6dab2577 · report

Tasks

Image GenerationIndoor Scene SynthesisText to Image GenerationText-to-Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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