ReLayout: Versatile and Structure-Preserving Design Layout Editing via Relation-Aware Design Reconstruction

Jiawei Lin, Shizhao Sun, Danqing Huang, Ting Liu, Ji Li, Jiang BianarXiv 2026

TL;DR

ReLayout is a novel framework for automatic design layout editing (moving, resizing, adding, or deleting elements) that preserves the spatial structure of unedited elements without requiring expensive paired training data. By combining a structural relation graph with a self-supervised "Relation-Aware Design Reconstruction" strategy, it fine-tunes a multi-modal LLM to execute precise layout modifications while maintaining professional visual harmony.

What Problem Does This Paper Address?

Graphic design is a highly iterative process. Whether tweaking a marketing banner or polishing a presentation slide, designers frequently need to adjust layouts—such as shifting a product image or expanding a text box. Automating this "design layout editing" task is incredibly difficult for AI models due to two primary challenges:

  1. Structure Preservation: Making an edit shouldn't ruin the rest of the design. Unedited elements must maintain their relative sizes, alignments, and reading hierarchy to avoid messy overlaps or chaotic spacing.
  2. Data Scarcity: There are no large-scale datasets containing "triplets" of an original design, the specific edit performed, and the final edited design. Manually creating these examples is prohibitively expensive.

While modern layout generation models can create designs from scratch, they cannot take an existing layout and modify it conditionally based on a user's intent.

Figure 1. (a) Design layout editing receives an original design and an editing operation (e.g., move) as input. The red arrow indicates the moving element (orange image) and the target position. (b) Design layout editing is a challenging task. We visualize some typical undesirable results, including the low-quality layout, inaccurate editing, and destroyed layout structure. These issues are marked with red dotted boxes. (c) The proposed ReLayout enables effective design layout editing, as evidenced by the high layout quality, accurate editing, and well-preserved layout structure in the edited design.

Methods

The authors introduce ReLayout, a framework that reframes layout editing as a sequence-to-sequence problem powered by a Multi-modal Large Language Model (MLLM). It bypasses the core challenges using two key innovations:

  • The Relation Graph ($G$): To explicitly force the model to respect the original layout, ReLayout extracts size and position relationships between all unedited elements and the canvas. Using heuristic rules, it categorizes area ratios (small, equal, large) and spatial positions (via a 3x3 grid). This graph is serialized into text tokens and fed to the model as a structural constraint.
  • Relation-Aware Design Reconstruction (RADR): To solve the data scarcity problem, the authors use a self-supervised training objective. Instead of learning from real edits, the model is trained to reconstruct an existing design layout given its visual/textual elements, its partial relation graph, and a synthesized editing operation.

Architecture

ReLayout utilizes Llama-3.1-8B as its core language backbone, paired with a CLIP ViT-L/14 vision encoder to process image elements. The model predicts JSON-formatted element attributes (coordinates, size, font size, alignment) auto-regressively and is efficiently fine-tuned using Low-Rank Adaptation (LoRA).

Heuristic rules for constructing the relation graph.

Datasets

  • Crello v4: A popular public dataset containing 23,421 professional graphic designs across formats like cards, posters, and social media posts. The authors filtered out overly complex layouts containing more than 25 elements, resulting in a split of 19,095 training, 1,951 validation, and 2,375 test samples.
  • Evaluation Settings: The test set was evaluated under two distinct paradigms: Reconstruction (where the editing operation is perfectly inverted from the ground truth design) and Generalization (where user edits are simulated with randomized parameters to test true editing flexibility).

Key Insights and Ideas

  • Reconstruction as a Proxy for Editing: The fundamental "aha" moment of the paper is that reconstructing a layout from a partially broken relation graph and a target operation perfectly mirrors the cognitive task of layout editing. This allows self-supervised learning on single designs to generalize flawlessly to real-world user edits.
  • Graphs Over Raw Coordinates: Relying purely on raw pixel coordinates makes models brittle. By converting spatial layouts into a discrete, qualitative relation graph (e.g., "element 1 center element 0"), the model gains a robust structural prior that prevents it from causing accidental occlusions.
  • Zero-Shot Compositionality: Because the model treats editing as a unified token-generation task, it naturally learns to handle composite actions (e.g., executing a "Move" and a "Resize" simultaneously) at inference time, despite only being trained on single operations.

Key Results

  • Quantitative Superiority: In the reconstruction benchmark, ReLayout achieved a position relation satisfaction score (Pos Rel) of 0.8684, vastly outperforming GPT-4o (0.5544). It also beat state-of-the-art generation models like LaDeCo in visual quality metrics (measured via LLaVA-OV scores).
  • Generalization Performance: Under simulated user edits, ReLayout maintained near-perfect editing accuracy (Op score of 0.9960) and structure preservation (Pos Rel of 0.9157), while GPT-4o dropped significantly in structural consistency.
  • Human Evaluation: In user studies, human judges preferred ReLayout over GPT-4o by a landslide: 79.5% vs 5.0% for visual appeal and 86.0% vs 1.0% for layout structure preservation.

Limitations and Future Work

  • Complexity Scaling: As the number of elements in an input design grows, preserving the global structure while ensuring high visual quality becomes exponentially more difficult for the autoregressive model.
  • Minor Spatial Violations: The model occasionally suffers from edge-case failure modes, such as violating specified spatial relationships or introducing unintended element overlaps.
  • Scope Expansion: The current framework only alters geometric layout attributes (position, size). The authors note that future work should incorporate content-aware edits like font styles, color palettes, and asset swapping, alongside more intuitive natural language interfaces.

Summary updated

BibTeX
@misc{lin2026relayout,
  author = {Jiawei Lin and Shizhao Sun and Danqing Huang and Ting Liu and Ji Li and Jiang Bian},
  title = {{ReLayout: Versatile and Structure-Preserving Design Layout Editing via Relation-Aware Design Reconstruction}},
  year = {2026},
  eprint = {2602.01046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.01046},
}
Figure