LLMs as Layout Designers: Enhanced Spatial Reasoning for Content-Aware Layout Generation

Sha Li, Stefano Petrangeli, Yu Shen, Xiang Chen, Naren Ramakrishnan
9/21/2025
cs.AI
rl

No confident code implementation found for this paper.

Abstract

While Large Language Models (LLMs) have demonstrated impressive reasoning and planning abilities in textual domains and can effectively follow instructions for complex tasks, their ability to understand and manipulate spatial relationships remains limited. Such capabilities are crucial for content-aware graphic layout design, where the goal is to arrange heterogeneous elements onto a canvas so that final design remains visually balanced and structurally feasible.

Show full abstract

This problem requires precise coordination of placement, alignment, and structural organization of multiple elements within a constrained visual space. To address this limitation, we introduce LaySPA, a reinforcement learning-based framework that augments LLM-based agents with explicit spatial reasoning capabilities for layout design. LaySPA employs hybrid reward signals that jointly capture geometric constraints, structural fidelity, and visual quality, enabling agents to navigate the canvas, model inter-element relationships, and optimize spatial arrangements. Through group-relative policy optimization, the agent generates content-aware layouts that reflect salient regions, respect spatial constraints, and produces an interpretable reasoning trace explaining placement decisions and a structured layout specification. Experimental results show that LaySPA substantially improves the generation of structurally valid and visually appealing layouts, outperforming larger general-purpose LLMs and achieving performance comparable to state-of-the-art specialized layout models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025llms,
  title  = {LLMs as Layout Designers: Enhanced Spatial Reasoning for Content-Aware Layout Generation},
  author = {Sha Li and Stefano Petrangeli and Yu Shen and Xiang Chen and Naren Ramakrishnan},
  year   = {2025},
  eprint = {2509.16891},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.16891v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.16891.svg)](https://codeofpaper.com/paper/2509.16891)

Discussion