atlas

Research map / Large language models / Language, safety and interpretability

LayoutNUWA: Revealing the Hidden Layout Expertise of Large Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Recasts graphic layout generation as HTML code generation, using an LLM (CodeLLaMA/LLaMA2 7B) fine-tuned with Code Instruct Tuning to fill masked code, then rendering it into layouts.

Problem

Existing layout generation methods treat layouts as numerical tuples, ignoring semantic relationships between elements; the paper asks whether LLMs can generate layouts via code to add semantics and exploit LLM knowledge.

Approach

Represent layouts as HTML/SVG code with masked numerical values (Code Initialization), have an LLM complete the masks via instruction-tuned code completion with permutation-based self-consistency and multi-task joint loss, then render the code directly to a layout.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Generate layouts as code rather than numerical output (ablation)LayoutNUWA-L2-DS · Magazine, C+S → PmIoU: 0.000 -> 0.358Helped
Generate layouts as code rather than numerical output (ablation)LayoutNUWA-L2-DS · Magazine, C+S → PFID: 349.231 -> 4.682Helped
Add the HTML code template (ablation)LayoutNUWA-L2-DS · Magazine, C → S+PFID: 16.324 -> 9.741Helped
Add the HTML code template (ablation)LayoutNUWA-L2-DS · Magazine, C+S → PFID: 12.432 -> 4.682Helped
Add the HTML code template (ablation)LayoutNUWA-L2-DS · Magazine, CompletionFID: 15.732 -> 7.257Helped
Add task instructions and code template rather than numerical tuning (ablation)LayoutNUWA-L2-DS · Magazine, C → S+PFID: 17.982 -> 9.741Helped
Add task instructions and code template rather than numerical tuning (ablation)LayoutNUWA-L2-DS · Magazine, C+S → PFID: 14.326 -> 4.682Helped
Add task instructions and code template rather than numerical tuning (ablation)LayoutNUWA-L2-DS · Magazine, CompletionFID: 16.243 -> 7.257Helped
Use domain-agnostic rather than domain-specific trainingLayoutNUWA-L2 · Magazine, C → S+PFID: 9.741 -> 9.632Helped
Use CodeLLaMA rather than LLaMA2LayoutNUWA, Magazine · C → S+PFID: 9.741 -> 8.985Helped
Use CodeLLaMA with domain-agnostic training rather than LLaMA2 with domain-specific trainingLayoutNUWA · Magazine, C → S+PFID: 9.741 -> 8.791Helped
Use LayoutNUWA code generation rather than LayoutDMLayoutNUWA · Magazine, C → S+PFID: 19.206 -> 8.791Helped

Surprising findings

Limitations

Experimental setup

Datasets: RICO PubLayNet Magazine

Benchmarks: RICO PubLayNet Magazine

Metrics: FID mIoU Alignment Overlap Fail ratio

Baselines: LayoutTrans BLT LayoutGAN++ MaskGIT DiffusionLM LayoutDM GPT-4 (zero-shot)

Builds on: LayoutDM Adaptive Quantization LLaMA 2 CodeLLaMA DeepSpeed

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy