Content-Edited Layout Generation for Graphic Design

Shirong Yang, Zheyi Pan, Ying Cao

ShanghaiTech University

Under review · IEEE Transactions on Multimedia · 2026

Public arXiv preprint; manuscript under review at IEEE TMM.

CELG pipeline coupling a layout generator and image editor through a bidirectional communication module.
A new task, dataset, and synchronized two-flow model for generating a layout while actively preparing the visual canvas it must inhabit.

Abstract

Content-Edited Layout Generation (CELG) extends conventional content-aware layout generation from fixed, prepared backgrounds to raw visual assets. Given a source image, a textual design intention, and an optional foreground requirement, CELG jointly produces an adapted background and a compatible foreground layout. To supply the paired supervision missing from existing design datasets, Search-Compare-Edit reverse-constructs plausible pre-edit sources and instructions from professional design canvases, yielding InstructEdit with aligned source images, target canvases, edit instructions, and layouts. A two-flow multimodal flow-matching model then couples a pretrained image editor with a layout flow transformer through synchronized trajectories and bidirectional cross-attention. Experiments in unconstrained and requirement-conditioned settings show that preparing the canvas improves downstream layout quality and that joint coordination offers a stronger quality-efficiency trade-off than sequential or externally iterative alternatives.

From a raw asset to a layout-ready canvas.

Most layout generators assume that the background image has already been prepared for graphic design. In practice, raw visual assets often place salient content exactly where text, logos, and decorative elements need to go.

CELG takes a source asset, a natural-language design intention, and an optional foreground requirement. It returns both an adapted background and a foreground layout, supporting an unconstrained setting as well as a requirement-conditioned setting with requested element categories, sizes, and aspect ratios.

The task separates two questions that conventional content-aware layout generation conflates: whether canvas preparation improves layout quality, and whether that preparation should receive feedback from the evolving layout rather than remain an independent preprocessing step.

Search, compare, edit, then learn both flows together.

Search-Compare-Edit starts from professional design canvases, retrieves semantically related raw images, compares the visual differences with a vision-language model, and applies a recovery edit. The resulting source-target pairs, forward edit instructions, and layouts form the InstructEdit dataset.

The CELG model couples a pretrained flow-matching image editor with a latent layout flow transformer. Three pairs of cross-attention bridges exchange information between partially denoised image and layout states so canvas adaptation and foreground placement can co-evolve.

The image backbone remains frozen, while the communication bridges and a small portion of the layout branch are optimized. This preserves pretrained editing and layout priors while concentrating learning on cross-modal coordination.

Task and Data Construction

Image and layout co-adaptation

Comparison between sequential editor-first layout generation and joint CELG co-adaptation.
Figure 1. A sequential editor-first workflow can run out of clean space when layout requirements change. Joint CELG can move visual content and create space for the denser composition.

Search–Compare–Edit data pipeline

Search-Compare-Edit data construction pipeline for CELG.
Figure 2. Search-Compare-Edit retrieves a related raw reference, summarizes source-target differences, and uses image editing to reverse-construct paired training data with executable forward instructions.

Joint coordination improves both quality and efficiency.

82.4%Requirement satisfactionBest among compared methods
62.73TemplateFID ↓Requirement-conditioned setting
20.8sEnd-to-end runtime47% faster than external iteration
63–73%Holistic preferenceHuman-study win rate vs. baselines

With the layout generator held fixed, preparing the canvas reduces background occlusion from 18.73% to 12.18%, readability error from 8.26% to 1.63%, and TemplateFID from 79.54 to 68.01. This isolates canvas readiness as a major factor in downstream layout quality.

In requirement-conditioned CELG, the joint model reaches 82.4% requirement satisfaction, 0.35 layout FID, 7.24% occlusion, 1.28% readability error, and 62.73 TemplateFID, outperforming the sequential baselines on most layout and holistic metrics.

External iteration slightly improves occlusion and readability but takes 39.4 seconds per sample. Joint generation completes in 20.8 seconds and achieves the best overall layout and template quality. In the user study, it is preferred over every baseline for holistic template quality.

Key Contributions

  1. 01

    Formulates CELG, extending layout generation from prepared canvases to raw visual assets by incorporating canvas adaptation into the task.

  2. 02

    Introduces Search-Compare-Edit and the InstructEdit dataset of aligned source assets, target canvases, edit instructions, and layouts.

  3. 03

    Develops a synchronized two-flow model with bidirectional communication between pretrained image editing and layout generation trajectories.

BibTeX

@misc{yang2026celg,
  title={Content-Edited Layout Generation for Graphic Design},
  author={Yang, Shirong and Pan, Zheyi and Cao, Ying},
  year={2026},
  eprint={2610.17905},
  archivePrefix={arXiv},
  primaryClass={cs.GR},
  url={https://arxiv.org/abs/2610.17905},
  note={Manuscript under review at IEEE Transactions on Multimedia}
}