Papers › LayoutPrompter: Awaken the Design Ability of Large Language Models

LayoutPrompter: Awaken the Design Ability of Large Language Models

11 Nov 2023NeurIPS 2023 11arXiv:2311.06495archive 2025-07-28

Jiawei Lin, Jiaqi Guo, Shizhao Sun, Zijiang James Yang, Jian-Guang Lou, Dongmei Zhang

Conditional graphic layout generation, which automatically maps user constraints to high-quality layouts, has attracted widespread attention today. Although recent works have achieved promising performance, the lack of versatility and data efficiency hinders their practical applications. In this work, we propose LayoutPrompter, which leverages large language models (LLMs) to address the above problems through in-context learning. LayoutPrompter is made up of three key components, namely input-output serialization, dynamic exemplar selection and layout ranking. Specifically, the input-output serialization component meticulously designs the input and output formats for each layout generation task. Dynamic exemplar selection is responsible for selecting the most helpful prompting exemplars for a given input. And a layout ranker is used to pick the highest quality layout from multiple outputs of LLMs. We conduct experiments on all existing layout generation tasks using four public datasets. Despite the simplicity of our approach, experimental results show that LayoutPrompter can compete with or even outperform state-of-the-art approaches on these tasks without any model training or fine-tuning. This demonstrates the effectiveness of this versatile and training-free approach. In addition, the ablation studies show that LayoutPrompter is significantly superior to the training-based baseline in a low-data regime, further indicating the data efficiency of LayoutPrompter. Our project is available at https://github.com/microsoft/LayoutGeneration/tree/main/LayoutPrompter.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2311.06495")

Code

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

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

microsoft/layoutgeneration officialmentioned in paperjax 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

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

5ran
5unverified

Licence: 0 of the 10 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 microsoft/layoutgeneration. “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.

CompletionSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository ran MIT (permissive) · 003731759cf42c51 · report
ContentAwareSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository ran MIT (permissive) · 845ab1c5552e1111 · report
GenRelationSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository ran MIT (permissive) · a187d42a25c10b7e · report
Serializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository ran MIT (permissive) · bfcb2fef7947109d · report
TextToLayoutSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository ran MIT (permissive) · f2ae3d03389c2099 · report
GenTypeSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository unverified MIT (permissive) · 3a827eaeadcba751 · report
GenTypeSizeSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository unverified MIT (permissive) · d0e1893d85b85580 · report
RefinementSerializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository unverified MIT (permissive) · 08280f1031539c37 · report
RelationTypes microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository unverified MIT (permissive) · 0d9b3fef26d1448e · report
create_serializer microsoft/layoutgeneration/LayoutPrompter/src/serialization.py official repository unverified MIT (permissive) · 804988e12df0c631 · report

Tasks

In-Context LearningLayout 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