LayoutGPT: Compositional Visual Planning and Generation with Large Language Models

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.

Paper

References (65)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer uKyZ5/10 · confidence 3/52023-06-25

Summary

The paper highlights the challenges faced by existing models in generating objects with specified counts, positions, attributes, and sizes, and emphasizes the need for compositional skills that can effectively arrange components coherently, accurately reflecting object specifications and interactions. The authors propose LayoutGPT which aims to improve the utility of visual planning skills of Large Language Models (LLMs) by in-context learning. The method shows promising results in generating plausible layouts in multiple domains including 2D images and 3D indoor scenes. Experiments show that LayoutGPT outperforms text-to-image models and achieves comparable performance to human users in designing visual layouts for numerical and spatial reasonings. In addition, LayoutGPT also shows comparable performance to supervised methods in 3D indoor scene synthesis. The paper also proposes a new benchmark called NSR-1K for evaluating generations in terms of specified counts and spatial locations.

Strengths

1. The authors propose a novel solution for handling the issue that the current visual; generation models lack visual arrangments ability. They adopt LLMs as visual planners to generate layout information of objects in the target 2D images or 3D scenes, with the help of in-context visual demonstrations in style sheet language. 2. LayoutGPT generates reasonable layouts in multiple domains, including 2D images and 3D indoor scenes. 3. They build a challenging benchmark that characterizes counting and positional relations for text-to-image generations. 4. Experiments show the effectiveness of the proposed method. 5. The paper presents promising results and provides insights into the application of LLMs for visual planning and generation, both in terms of methodology and empirical findings.

Weaknesses

1. The writing of motivation is not clear due to a lot of inexplicable expressions. - The claim that existing visual generative models are not equipped with various reasoning skills that exist in LLMs is dubious, given the disparate nature of reasoning skills required for visual generative models compared to LLMs. Good reasoning skills are not equal to good generative effects. Therefore, the T2I models that fail to generate objects with specific counts, positions, and attributes do not indicate lacking reasoning skills. - In the sentence, 'But unlike LLMs, ... discrete categories ...', do the authors mean LLMs are already capable of generating layout? if yes, there should have some citations, and there is no need to further introduce the LLMs as a centralized model because there is no logical correlation with the previous text. In addition, why did the authors strengthen the discrete categories, could the LLMs generate continuous categories? - Unclear description of the drawbacks of the existing LLMs-centered systems. - The motivations behind constructing layouts with structured programs are not sufficiently persuasive, considering that LLMs also are trained on the plain text, and alternative methods exist for representing image layouts. In fact, the strict imposition of a structured format may pose challenges for LLMs. - To my knowledge, visual inputs generally refer to images or videos, and the LLMs are only able to handle textual inputs. Moreover, both tasks in this work involve textual information as input, and there is no experimental evidence supporting the claim that LLMs have the potential in handling complex visual inputs. - The meaning of "addressing the inherent multimodal reasoning skills of LLMs" requires clarification. To my understanding, LLMs already possess visual planning capabilities, and the authors' objective is to effectively leverage these skills rather than fundamentally modify or address them. 2. Inconsistent notations. - $o_j$ vs $\mathbf{o}_j$ in the section 3.1. - $o_j$ represents the layout of an object, so the sequence should be (c_j, x_j, y_j, w_j, h_j). 3. The utilization of CSS as a structured format for representing layouts is a bit farfetched and unnecessary. Firstly, LLMs are capable of understanding the meaning of each element in a plain sequence (o) if detailed task instruction is provided. Secondly, structured representation is not solely limited to the CSS format; alternative formats such as, 'layout: c_1(x_1, y_1, w_1, h_1), c_2(x_2, y_2, w_2, h_2), ...'. 4. The reasons behind the lower performance observed when GLIGEN generates images based on ground truth (GT) layouts during image evaluation, as well as when GLIGEN synthesizes images using layouts provided by humans, remain unexplained in Table 2. 5. It is important to note that LayoutGPT is specifically designed for generating layouts, encompassing object categories and corresponding bounding boxes. Therefore, it is unreasonable to conclude that LayoutGPT can accurately perform attribute binding. Correct attribute binding is only achieved when the attributes of objects in the generated images align with the textual descriptions. However, wrong attribute bindings between the generated images and sentences are apparent, such as the closed car window in the top row of Figure 4 and the absence of a handle on the basket in the bottom row of Figure 4.

Questions

1. The authors mention that the in-context examples are provided in reverse order based on similarity. Does the order have an impact on the effectiveness of the model? 2. How are the colored sentences in Figure 4 generated? 3. For 3D layout planning, how do the furniture frequencies in the instruction impact the performance? 4. Why does the CSS structure have more impact on task performance compared to instruction?

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

2 fair

Contribution

2 fair

Limitations

I do not see any limitations to this work.

Reviewer HVHZ5/10 · confidence 4/52023-07-07

Summary

The paper propose LayoutGPT that can generate visual arrangements of objects using the input prompts, providing a way to collaborate with visual generative models for compositional layout based image generation in both 2D and 3D. Experiment results show that such a method can largely improve layout-based generation using reasoning ability of large language models.

Strengths

1. The paper is well written and easy to follow. 2. The authors have conducted a comprehensive evaluations/ablations on the method. 3. The paper provides an interesting way to connect large language models with visual generative models for image generation without any additional training.

Weaknesses

1. **The paper simply proposes a module using LLMs to conduct visual planning**, i.e., extract / reason object relations and the number of objects when given input text descriptions. For image generation, extracted bounding boxes are simply used as inputs to existing layout-based methods, thus no technical contributions to visual generative models. 2. **The paper over-claimed more or less.** For example, in Line 196, the author claimed "LayoutGPT can perform accurate attribute binding". However, in text-based inpainting section of Figure 4, the purple suitcase doesn't have the specified design "a blue, yellow and white flower" and the cat isn't black and white. Similarly, the spatial relationships extracted from the method seem to be off. The first example of text-based inpainting, the cat should be sitting under a bench, thus it seems to me that the method isn't that reliable. 3. **Lacking some baselines**. For 2D image generation, there are a few works that do layout-based image generation, specifically using bounding boxes. It would be good to compare with these methods. One example I can think of is [1], which also doesn't require additional training. 4. **Related Works**. It would be quite relevant to include compositional image generation, where you generate images conditioned on multiple specifications or objects. [1] Chen et al., Training-free layout control with cross-attention guidance (CVPR 2023)

Questions

1. In table 4, when generating images, is the mainly prompt used as the input or are those colored sentences used as inputs? 2. It seems to me that layoutGPT can do a lot of guessing instead of reasoning. What if you use counter-factual examples or simple examples that rarely appear in real life?

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

The authors don't include limitation section. One thing is that LLMs can be biased such that generated imagery can also biased.

Reviewer 1i696/10 · confidence 5/52023-07-07

Summary

This paper introduces LayoutGPT, a training-free approach that injects visual commonsense into LLMs and enables generating plausible 2D images and 3D scenes conditioned on layouts based on text conditions. Specifically, the authors experiment with four variants of GPT models: Codex, GPT-3.5, GPT-3.5-chat and GPT-4 and showcase that LLMs can produce meaningful 2D/3D layouts using a CSS (Cascading Style Sheets) format, where every object is modelled as labelled bounding box, parametrized with three random variables indicating its category, size and location. For the case for 3D indoor scene synthesis, they parse the layouts into 3D scenes by simply replacing the bounding boxes with 3D objects from a library of assets. For the case of 2D image synthesis, they rely on GLIGEN that is a layout-to-image model to convert the generated layout to a 2D scene. For the case of 2D image synthesis, the authors compare their model to Stable Diffusion and Attend-and-Excite and evaluate the generated layouts based on the precision, recall and accuracy of the generated bounding boxes. To measure whether the generated image matches the provided text description, the authors report the CLIP/GLIP cosine similarity between text prompts and the generated images. For the task of 3D indoor scene synthesis, the authors compare their model to ATISS and measure the generation quality by reporting the KL-divergence between the object category distributions in the ground-truth and the generated scenes. For both tasks, LayoutGPT outperforms most baselines on most metrics and from the qualitative results, it seems that LayoutGPT faithfully generate layouts that match the input conditioning. Overall, I think this is a nice work that introduces an elegant way for using LLMs for 2D and 3D layout synthesis. I think that the idea of representing scene layouts in the CSS format is very intuitive and greatly simplifies the task of layout synthesis. My main concern, as also discussed in the Weaknesses section, is related to whether the proposed model can robustly generate (i) layouts with more complex text conditioning for the case of the image synthesis, (ii) 3D scenes conditioned on detailed scene descriptions clearly describing the how many and what objects should be placed in the scene.

Strengths

1. To the best of my knowledge, the idea of using LLM for 2D and 3D layout synthesis is novel and the authors clearly demonstrate that LLMs can produce complex 2D images and 3D scenes in a CSS format. Unlike other concurrent works that try to use LLMs for similar tasks, I think this model is simpler and more generic, hence it can be applied on both 2D scene synthesis and 3D scene synthesis. 2. I particularly liked that the authors provide results on both a 2D and a 3D task. They compare their model with several strong baselines and showcase that the proposed model can consistently produce 2D images/3D that match the input conditioning. Moreover, from the quantitative evaluation, we note that the proposed training-free method achieves state-of-the-art performance w.r.t. most metrics for both tasks. 3. I appreciated the additional ablations as well as the various implementation details provided in the supplementary. In addition, I think that also the proposed NSR-1K benchmark, can potentially be very useful for various tasks. Although the authors don't mention whether they plan on releasing these benchmark, I would like to encourage them to do so as I think such benchmarks can greatly benefit the research community.

Weaknesses

1. For the case of the 3D indoor synthesis task, I am wondering whether the authors tried to condition the scene generation on more detailed text descriptions that go beyond simply specifying the room type and the size of the room. For example, given a description like "a bedroom with one double bed, two nightstands and 1 wardrobe", would LayoutGPT be able to generate a layout that matches this description? I assume that to some extend this should work quite well so I am not sure why the authors did not provide these type of results. I think it would be beneficial for the paper to include them for the final version of the paper. 2. For the experimental evaluation of the 2D scene synthesis, the authors report precision, recall and accuracy. Is there a reason why not also report MeanIoU on the bounding box parameters? I am not sure whether I am missing out something but I think this metric is very important as the model generates bounding boxes in practice. In addition, I think that the section B2 in the supplementary that discusses the Evaluation metrics and in particular the accuracy computation is not very clear. I think it is good to polish this section a bit. 3. Although, I appreciate that the authors proposed a new benchmark for their image synthesis experiment, I think they should have also evaluated their model on the 2017 Panoptic version of COCO dataset that has been previously used by several generative models that perform layout generation. From the description in L152-161, it is not clear to me whether the panoptic version of the COCO dataset is included in the proposed benchmark. Can the authors please clarify this?

Questions

1. I am wondering whether the LLMs can produce diverse layouts conditioned on the same text conditioning. I believe that this is an interesting experiment that the authors should include in their evaluation. In addition, another valuable analysis would be to compare existing GPT models w.r.t. their capabilities for generating diverse layouts conditioned on the same input prompt. Being able to generate diverse layouts is a very important trait of existing models, hence I think the authors should provide additional experiments that demonstrate whether this is possible or not. 2. Looking at the Experimental Evaluation and in particular the Image Synthesis results, I am wondering how robust is the proposed model if the input text prompt contains larger descriptions. Looking at all the results both in the main paper and in the supplement, I think that the authors show layout generations with at most 5 objects (see Fig 3., top row, right column). Have the authors tried to condition the layout generation with more detailed text prompts with more objects? How good would their model work? 3. In Table 1, the authors mention that their proposed NSR-1K benchmark contains several text descriptions that have comparisons e.g. "A picture of three cars with a few fire hydrants, the number of cars is more than that of fire hydrants". I checked both the main paper and the supplementary but I was not able to find any conditioning like this. I think it would be great if the authors can provide some examples that show that their model works well with these more challenging text conditioning. 4. Can the authors clarify why LayoutGPT cannot work with floor plans of various shapes. In L219-220 of the main paper they state that it is not compatible with irregular floor plans but I am not sure why this is really an issue? 5. For the quantitative evaluation in Section 5.1 the authors should also mention the image resolution of the rendered images, used to compute the FID scores. Moreover, they mention that to compute the FID score they render scene images from four camera angles (L224-225), are these angles random per scene? I think it is important that the authors clarify this for reproducibility purposes. 6. Some paper references that are missing that I think the authors should include in their final version of their paper are listed below: * Variational Transformer Networks for Layout Generation, CVPR 2021 * BLT: Bidirectional Layout Transformer for Controllable Layout Generation * LayoutDM: Discrete Diffusion Model for Controllable Layout Generation, CVPR 2023 (this is a concurrent work but still it might be good to add it in the reference list)

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

The authors discuss the limitations of their work and show several failure cases in their supplementary material. In addition, they also discuss potential negative societal impact of their work.

Area Chair v1uq2023-08-20

Dear reviewer, Please look over the author response and the other reviews and update your opinion. Please ask the authors if you have additional questions before the end of the discussion period.

Reviewer ykMz6/10 · confidence 5/52023-07-10

Summary

This paper proposes LayoutGPT, a method to compose in-context visual demonstrations in style sheet language to enhance the visual planning skills of LLMs. As the first work to use LLMs to generate layouts from text conditions, LayoutGPT can generate plausible layouts for 2D images and 3D indoor scenes, including challenging language concepts like numerical and spatial relations. Those generated layouts can be further used for image generation. When combined with a region-controlled image generation model, LayoutGPT outperforms existing text-to-image generation methods by 20-40% and achieves comparable performance as human users in generating plausible image layouts and obtaining images with the correct object counts or spatial relations.

Strengths

1. This is the first work to explore the ability of LLMs for layout generation. It reveals the spatial reasoning ability of LLMs and might inspire future explorations in this direction. 2. The training-free approach is easy to adopt for various applications. 3. The presentation is clear and easy to follow.

Weaknesses

1. Although this was no such exploration before, the proposed approach is a straightforward application of LLM. It would be better and more inspiring if authors could provide some in-depth analysis of the spatial reasoning abilities of LLM. 2. It is unclear if layoutGPT is robust to the selection of in-context exemplars or not. What's the size of the reference set? What if the text condition describes a rare scenario that does not appear in the reference set? Experiments in the supplementary material show that the performance is sensitive to the number selected in-context exemplars. 3. The evaluation is conducted only on NSR-1K for numerical reasoning and spatial reasoning in text-to-image synthesis and ATISS for indoor scene synthesis. Although the authors claim that layoutGPT can be used for accurate attribute binding and text-based inpainting, only visual results (fig.4) are shown and there are no quantitative experiments on such datasets to demonstrate such abilities and applications.

Questions

Please refer to the questions in the weakness section.

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

3 good

Presentation

4 excellent

Contribution

3 good

Limitations

The authors mention the limitations in the supplementary materials.

Reviewer ykMz2023-08-18

Updated review after rebuttal

Thank authors for the rebuttal. The authors have addressed most of my concerns so I changed my rating to weak accept.

Authorsrebuttal2023-08-14

Welcome Further Response and Discussion

Dear Reviewers, Thank you for your valuable review. We have provided responses to your questions, and are committed to addressing further concerns. We would like to ask for your kind participation in the discussions. Please let us know if we have addressed your concerns or if you have additional feedback or suggestions. We highly appreciate your time and efforts and are looking forward to the discussions. Best regards, Authors of Submission#43

Reviewer uKyZ2023-08-17

Thanks for the response which has addressed most of my concerns. However, I remain uncertain about the concept of attribute binding. Could you provide further explanation on how to understand 'attribute binding' refers to binding attributes to generated grounding box instead of the generated images? Take Fig 4 in the paper for example, if the color of the bounding box of two objects. i.e., 'a brown horse' and 'a white truck', are swapped, I believe that another reasonable image could be generated based on the layout information via GLIGEN. Therefore, it is hard to distinguish between correct and incorrect attribute binging. In addition, regarding the quantitative results on attribute binding, why does A&E achieve better attribute binging performance than LayoutGPT+GLIGEN? Overall, the proposed method effectively explores the capability of LLM in layout planning under 2D images or 3D scenes and has achieved some promising results.

Authorsrebuttal2023-08-17

Official Response by Authors

Dear Reviewer uKyZ, Thank you for your kind response and follow-up questions. Using Fig.4 as an example, our explanation of “binding attributes to generated grounding box” refers to the outcome that LayoutGPT outputs > *“**horse** {width: 40px; height: 40px; left: 12px; top: 12px; description: **a brown horse standing still**}* > ***truck** {width: 40px; height: 20px; left: 24px; top: 22px; description: **a white truck with four black wheels**}”* instead of > *(incorrect, attribute swapped)* > *“horse {width: …; description: a **white** horse standing still}* > *truck {width: …; description: a **brown** truck with four black wheels}”* or > *(incorrect, whole description swapped)* > *“horse {width: …; description: **a white truck with four black wheels**}* > *truck {width: …; description: **a brown horse standing still**}”* The word(s) (e.g. horse/truck) ahead of the left curly bracket “{“ defines the category or high-level description of the box. **We interpret the first box as a “horse” box and the second one as a “truck” box.** The “description” property between the curly brackets provides low-level attribute descriptions. **Therefore, LayoutGPT correctly binds the attribute “brown” to the “horse” box, and the attribute “white” to the “truck” box.** As indicated in the general response, LayoutGPT binds attributes to the correct box with 100% accuracy on HRS prompts. We will revise the paper accordingly to avoid further confusion. With GLIGEN/ReCo as the downstream model, the system ideally ends up with “a brown horse” and “a white truck” in the images. However, we observe that the description for each box has a weaker influence on the generated object in GLIGEN compared to ReCo. For instance, even though “a brown horse” is provided along with the “horse” box coordinates, GLIGEN fails to generate the correct color more often than ReCo or A&E. **In short, GLIGEN might be weaker than ReCo in controlling local attributes for each object.** We conjecture that the differences originate from the differences in training data: **GLIGEN is trained on boxes associated with short class names without attribute words (e.g. bride, groom in Fig. 2(a) in GLIGEN paper); while ReCo is trained on boxes associated with dense descriptions (e.g. a long white and red bus in Fig. 1(a) in ReCo paper).** As the major bottleneck lies in the downstream models, we believe that the whole framework would be improved with stronger layout-to-image models in the future. Please let us know if the explanation is now clear enough. We are always delighted to engage in further discussion and offer responses to your uncertainties. Thank you again for your appreciation of the overall contribution and experimental results of our work. Regards, Authors of #43

Reviewer uKyZ2023-08-17

Thanks for the detailed response, I have no further questions.

Reviewer HVHZ2023-08-18

In terms of compositional image generation, it has been many works: For example, 1. Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesis (Feng et al) 2. Exploring Compositional Visual Generation with Latent Classifier Guidance (Shi et al) 3. Compositional Visual Generation with Composable Diffusion Models (Liu et al) thanks the authors for addressing some of my questions. I will keep my rating as it is (borderline accept).

Authorsrebuttal2023-08-18

Thank you for your comments

Dear Reviewer HVHZ, Thank you for kindly pointing to these related papers. We will add these references in the next revision. Please kindly note that our work mainly focuses on layout planning and generation in 2D&3D spaces rather than downstream image generation methods. While these studies are highly relevant, it may not be suitable to directly compare LayoutGPT with them. Meanwhile, please kindly let us know if any of your questions or uncertainties remain unresolved. We are always delighted to engage in further discussion and offer responses to your remaining questions. We sincerely appreciate your active participation. Regards, Authors of #43

Authorsrebuttal2023-08-19

Dear Reviewer HVHZ, This is a kind follow-up regarding the previous comments. Since we have addressed "some of your questions", could you please specify the remaining concerns or questions? We are available to address them promptly. However, if there are no further inquiries, we kindly ask you to reconsider the upgrade of your rating. Thank you for the insights and feedback that you have provided during the review process. Your understanding and collaboration are highly valued. Regards, Authors of # 43

Authorsrebuttal2023-08-20

Official Comment by Authors

As the end of the discussion period is approaching, we are wondering if you have read our rebuttal and if you have any remaining concerns. We are happy to clarify more before the discussion period ends.

Reviewer 1i692023-08-21

Rebuttal Acknowledgment

I would like to thank the reviewers for taking the time to carefully address my questions and concerns. After reading the author's rebuttal and the other reviews, most of my questions are addressed. Although, I am still a bit skeptical regarding how well the proposed model would work if more complex text descriptions would be used as conditioning, I think that even in it's current form it presents an approach that is valuable for the research community, hence I think it should be accepted. Therefore, I would like to keep my original rating.

Authorsrebuttal2023-08-22

Thank you for your response

Dear Reviewer 1i69, Thank you for your kind response and support. Regarding more complex text conditions, we have tested LayoutGPT on the following two additional corpus in the rebuttal: * COCO2017 Panoptic based on your suggestions; * Rare scenarios or counterfactual prompts generated by ChatGPT (results are included in the General Response and attached PDF). We would be happy to scale up the experiments and include more discussions on LayoutGPT’s applicable scenes in the next revision. Meanwhile, please feel free to specify any sources of complex text conditions that you’d like to see being tested. If our response addresses your concerns well, we’d be grateful if you would consider increasing the rating. Thank you for your insight and suggestions throughout the reviewing process. Best regards, Authors of #43

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC