NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PosterLlama: Bridging Design Ability of Langauge Model to Contents-Aware Layout Generation

Jaejung Seol, Seojun Kim, Jaejun YooarXiv 2024 · DOI

Abstract

PosterLlama is a multi-modal framework that redefines graphic design as a "coding" task, leveraging the inherent reasoning capabilities of Large Language Models (LLMs). By representing poster layouts as HTML/SVG code and employing a depth-based data augmentation strategy, PosterLlama achieves state-of-the-art performance in content-aware layout generation, effectively overcoming data scarcity and semantic design challenges.

Introduction

Professional poster design requires a deep understanding of semantic relationships between visual elements—for instance, ensuring a "Title" is legible and does not obscure the primary subject. Traditional generative models often treat layout as a numerical coordinate prediction problem, failing to capture these semantic nuances. Furthermore, high-quality poster datasets are scarce and frequently contain inpainting artifacts that lead models to "cheat" by placing elements over blurry patches rather than learning genuine design principles.

PosterLlama addresses these issues by framing design as a language task. It integrates a vision encoder (DINOv2) with a language model (CodeLlama) through a specialized two-stage training process. By treating design as "code," the model inherits the spatial reasoning and structural logic already present in LLMs trained on vast amounts of web data.

Methodology

The framework utilizes HTML/SVG-like tags (e.g., <rect data-category="Text" x="100" ... />) to represent layouts. This allows the model to leverage the "design sense" embedded in LLMs from their extensive training on web code.

Overview of PosterLlama architecture and HTML formatting approach.

The training involves a two-stage pipeline:

  1. Vision-Language Alignment: A linear adapter aligns DINOv2 visual features with the LLM's text space using 2 million image-caption pairs.
  2. Layout Fine-tuning: The LLM is fine-tuned using LoRA (Low-Rank Adaptation) to generate specific HTML sequences based on background images and user constraints.

To solve the data scarcity issue, the authors introduced Depth-Guided Poster Augmentation. Using a depth-estimator and ControlNet, they generate synthetic posters. These are then filtered using DreamSim to ensure only high-quality images that preserve the original composition are used for training, preventing the model from learning from low-quality artifacts.

Results and Evaluation

PosterLlama was evaluated on the CGL-Dataset (60,000 pairs) and PKU-Dataset (10,000 pairs). It consistently outperformed existing models like DS-GAN and LayoutPrompter across various metrics, including alignment, overlap, and content awareness.

Quantitative comparison of PosterLlama against state-of-the-art methods on CGL and PKU datasets.

Key findings from the evaluation include:

  • Human-Level Quality: Generated layouts are nearly indistinguishable from human designs in terms of spatial logic and aesthetic alignment.
  • Robustness: By using a frozen visual encoder, the model avoids the "inpainting trap" where models rely on dataset artifacts to place elements.
  • Versatility: The model is a "Swiss Army Knife" for designers, supporting seven distinct tasks, including layout completion, refinement, and category-specific generation.

Conclusion

PosterLlama demonstrates that LLMs can be powerful design engines when layouts are treated as code. While currently computationally intensive and limited by English-centric design metadata, it sets a new benchmark for content-aware layout generation. Future work will focus on multilingual support, improved text-length awareness, and model distillation for edge deployment.

Summary updated

BibTeX
@misc{seol2024posterllama,
  author = {Jaejung Seol and Seojun Kim and Jaejun Yoo},
  title = {{PosterLlama: Bridging Design Ability of Langauge Model to Contents-Aware Layout Generation}},
  year = {2024},
  eprint = {2404.00995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00995},
}
Figure