SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.06495 · NeurIPS · 2023

LayoutPrompter: Awaken the Design Ability of Large Language Models

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

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 10 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
microsoft/layoutgeneration canonical 5 of 10
FunctionStatusWhere it lives
CompletionSerializer Ran microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("003731759cf42c51")
ContentAwareSerializer Ran microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("845ab1c5552e1111")
GenRelationSerializer Ran microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("a187d42a25c10b7e")
Serializer Ran microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("bfcb2fef7947109d")
TextToLayoutSerializer Ran microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("f2ae3d03389c2099")
GenTypeSerializer Not yet run microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("3a827eaeadcba751")
GenTypeSizeSerializer Not yet run microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("d0e1893d85b85580")
RefinementSerializer Not yet run microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("08280f1031539c37")
RelationTypes Not yet run microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("0d9b3fef26d1448e")
create_serializer Not yet run microsoft/layoutgeneration/LayoutPrompter/src/serialization.py
code served (permissive licence) · get_code("804988e12df0c631")

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 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 Layout-Prompter, 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 here.

For agents

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

get_harvested_code_for_paper("2311.06495")
get_code_for_paper("2311.06495")
have("2311.06495")

Connect an agent — have() is free.