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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Sha, Petrangeli, Stefano, Shen, Yu, Chen, Xiang, Ramakrishnan, Naren
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918304318226432
author Li, Sha
Petrangeli, Stefano
Shen, Yu
Chen, Xiang
Ramakrishnan, Naren
author_facet Li, Sha
Petrangeli, Stefano
Shen, Yu
Chen, Xiang
Ramakrishnan, Naren
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16891
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLMs as Layout Designers: Enhanced Spatial Reasoning for Content-Aware Layout Generation
Li, Sha
Petrangeli, Stefano
Shen, Yu
Chen, Xiang
Ramakrishnan, Naren
Artificial Intelligence
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. 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.
title LLMs as Layout Designers: Enhanced Spatial Reasoning for Content-Aware Layout Generation
topic Artificial Intelligence
url https://arxiv.org/abs/2509.16891