arXiv:2610.17905cs.GROct 2026

Manuscript Offprint

arXiv:2610.17905

Content-Edited Layout Generation for Graphic Design

Shirong Yang, Zheyi Pan, Ying Cao

Shirong Yang, Zheyi Pan, and Ying Cao

Abstract—In this paper, we formulate a novel form of conditional layout generation for graphic design, termed content-edited layout generation (CELG). CELG extends conventional content-aware layout generation (CLG), which generates a foreground layout for a fixed background image. The key distinction is that CELG treats the input image as an editable visual asset and, conditioned on a textual design intention and a foreground requirement that may be empty, produces an adapted background together with its layout. To study this task, we introduce Search-Compare-Edit (SCE), a data construction framework that supplies the paired supervision missing from existing design datasets. Starting from professional design canvases and their layouts, SCE synthesizes plausible pre-edit source images and corresponding editing instructions, yielding InstructEdit, a dataset of aligned source images, target canvases, instructions, and layouts. Based on the generated data, we train a two-flow multimodal flow matching model that couples a pretrained image editor with a layout flow transformer, enabling background editing and layout generation simultaneously within a unified framework that more closely reflects real-world design workflows. Our experiments systematically demonstrate the value of CELG as a distinct task and the performance advantages of the proposed model.

Index Terms—Content-aware layout generation, graphic design, image editing, multimodal generation, flow matching.

I. INTRODUCTION

LAYOUT creation is a fundamental task in graphic design, which is concerned with generating spatial arrangement of visual elements such as images, texts, embellishments on a canvas. Layout generation for graphic design has been widely studied, with numerous generative models proposed for both unconditional and conditional scenarios [1]-[5]. Recently, the community has witnessed a growing interest in content-aware layout generation (CLG) [6]-[11], which aims to generate plausible and diverse layouts of elements on top of a given background image, and can find many use case scenarios in practice, such as creating advertising posters of commercial products.

However, CLG relies on a restrictive assumption about its input: the background image is treated as a ready-to-use canvas whose composition, visual appearance, and empty space have already been optimized for foreground elements. In practice, users often begin with an unprocessed visual asset, such as a product photograph, stock image, or rendering, rather than a professionally prepared background. Such assets may position the main subject poorly, contain distracting content in potential text regions, or provide insufficient negative space for headlines and other foreground elements.

A straightforward solution is to edit the raw asset first and then generate a layout on the resulting canvas. This sequential strategy, however, overlooks the interdependence between the two stages. Image editing determines the available space, visual saliency, and composition that constrain element placement, while the intended layout indicates where the canvas should be cleared, extended, or reorganized. Because the background is edited before the layout is known, problems such as insufficient text space or overlap between the subject and foreground elements may become apparent only after the layout has been generated. Correcting these problems requires editing the background again and regenerating the layout. Such iterative refinement increases inference cost without providing a direct mechanism for image editing and layout generation to coordinate. Conventional CLG therefore does not fully address design from raw assets, where canvas preparation and layout generation need to be considered together.

To address this limitation, we formulate content-edited layout generation (CELG), a conditional generation task that extends CLG from prepared backgrounds to raw visual assets. Given a raw asset, a design intention, and an optional foreground requirement C, CELG produces an edited background together with a compatible layout, covering the process of transforming an unprocessed asset into a layout-ready design template. We consider two settings: Unconstrained CELG, where C=∅C = \varnothing, and Requirement-Conditioned CELG, where C≠∅C \neq \varnothing. The foreground requirement can directly affect how the canvas should be prepared: an edited background that provides sufficient space for a sparse layout may be unsuitable for a denser one. In a sequential pipeline, once the background has been edited without layout feedback, the layout generator must work within the remaining space, potentially resulting in crowding or occlusion. CELG instead allows the foreground demand to guide canvas adaptation, so that the subject and its surroundings can be adjusted before the final layout is determined. This formulation supports practical workflows that begin with unprocessed visual assets, such as transforming an ordinary product photograph into a poster-ready canvas or refining its scene, lighting, and composition while preserving the main subject. Figure 1 illustrates this difference under sparse and dense foreground requirements.

To demonstrate why CELG should be formulated as a distinct task, we address two questions in sequence. We first ask Q1: Does transforming a raw asset into a layout-ready canvas improve the quality of the generated layout? Q1 examines whether canvas preparation is beneficial when extending CLG to raw assets. We then ask Q2: If canvas preparation is beneficial, is a single edit before layout generation sufficient, or should the edit also be informed by layout information? Q2 examines whether canvas preparation can be treated as an independent preprocessing step or should be coordinated with

Shirong Yang, Zheyi Pan, and Ying Cao are with the School of Information Science and Technology, ShanghaiTech University, 393 Middle Huaxia Road, Pudong New Area, Shanghai, China (e-mail: yangshr2024@shanghaitech.edu.cn; panzhy2024@shanghaitech.edu.cn; caoying59@gmail.com).

Corresponding author: Ying Cao.

(1) Source image

(2) Requirement A

(3) Result for A

(4) Requirement B

(5) Result for B

Editor → CLG (sequential)

Figure

Requirement A

C={(ci,fi,ai)}C = \{(c_i, f_i, a_i)\}

cic_i

fif_i

aia_i

T

text

medium

landscape

logo

tiny

landscape

cic_i : category

(text,logo,(text, logo,

underlay, embellishment)

fif_i : footprint class

(tiny, small, medium,

large, hero)

aia_i : aspect class

(portrait, square,

landscape, ultra-wide)

Editor-first result (sequential)

text (medium, landscape)

Figure

logo (tiny,

landscape)

Requirement B

C={(ci,fi,ai)}C = \{(c_i, f_i, a_i)\}

cic_i

fif_i

aia_i

T

text

hero

ultra-wide

T

text

medium

landscape

T

text

medium

landscape

logo

small

landscape

underlay

large

ultra-wide

cic_i : category

(text,logo,(text, logo,

underlay, embellishment)

fif_i : footprint class

(tiny, small, medium,

large, hero)

aia_i : aspect class

(portrait, square,

landscape, ultra-wide)

Editor-first result (sequential)

text (hero, ultra-wide)

Figure

text (medium,

landscape)

text (medium,

landscape)

logo (small,

landscape)

underlay (large, ultra-wide)

Insufficient clean space

Joint CELG

Requirement A

C={(ci,fi,ai)}C = \{(c_i, f_i, a_i)\}

cic_i

fif_i

aia_i

T

text

medium

landscape

logo

tiny

landscape

cic_i : category

(text,logo,(text, logo,

underlay, embellishment)

fif_i : footprint class

(tiny, small, medium,

large, hero)

aia_i : aspect class

(portrait, square,

landscape, ultra-wide)

Joint CELG result for A (co-adapted)

text (medium, landscape)

Figure

logo (tiny,

landscape)

Requirement B

C={(ci,fi,ai)}C = \{(c_i, f_i, a_i)\}

cic_i

fif_i

aia_i

T

text

hero

ultra-wide

T

text

medium

landscape

T

text

medium

landscape

logo

small

landscape

underlay

large

ultra-wide

cic_i : category

(text,logo,(text, logo,

underlay, embellishment)

fif_i : footprint class

(tiny, small, medium,

large, hero)

aia_i : aspect class

(portrait, square,

landscape, ultra-wide)

Joint CELG result for B (co-adapted)

text (hero, ultra-wide)

Figure

text (medium,

landscape)

text (medium,

landscape)

logo (small,

landscape)

underlay (large, ultra-wide)

Layout-aware space created

Legend

T

text

logo

underlay

embellishment

Footprint classes (fi)(f_i):

tiny

small

medium

large

hero

Aspect classes (ai)(a_i):

portrait

square

landscape

ultra-wide

Fig. 1. Limitation of sequential content-aware layout generation. Given the same source asset, an editor-only pipeline prepares the canvas without feedback from the foreground requirement. The resulting canvas accommodates sparse requirement A but leaves insufficient clean space for denser requirement B. CELG instead co-adapts the image and layout, repositioning the product and refining the background to create layout-aware space.

layout generation.

Answering these questions requires supervision that existing graphic-design datasets do not provide: they typically contain only a prepared canvas and its annotated layout, without the raw source asset from which that canvas was derived, and therefore lack the source–target pairs needed to train or systematically evaluate CELG. We address this gap with Search-Compare-Edit (SCE), which reverses the usual preparation process by synthesizing a plausible pre-edit source from a prepared design canvas, yielding the InstructEdit dataset with a source image, target canvas, editing instruction, and layout for each sample.

To tackle this task, we integrate a pretrained flow-matching image editor with a layout flow transformer using bidirectional cross-attention bridges. The two branches follow synchronized sampling trajectories and exchange information between their partially denoised states, allowing canvas adaptation and layout planning to guide each other throughout generation. Our experiments demonstrate the effectiveness of this design for CELG.

Our evaluation is organized around the two questions above. For Q1, we hold the layout generator fixed and apply it to the raw source, an automatically edited canvas, and the professionally prepared target canvas, isolating the effect of canvas readiness from that of layout-model capacity. For Q2, we compare four coordination strategies using the same editing and layout components—image-first sequential generation, layout-first refinement, edit-first iterative refinement, and joint generation—under the same source images, design intentions, and backbone access, so that their differences reflect the direction and timing of information exchange. We evaluate image quality, layout quality, Readability, Occlusion, and holistic TemplateFID on the InstructEdit test split. For holistic evaluation, we adopt TemplateFID from InterIL [12] and retrain its TemplateAE evaluator without any CGL samples.

Our results answer both questions. For Q1, automatically edited canvases yield substantially more compatible layouts than raw assets and approach the professional target canvases, confirming that canvas readiness can bound downstream layout quality. For Q2, Layout→Edit improves every quality metric over Edit→Layout at essentially the same runtime, showing the value of layout-guided canvas adaptation even in a one-way pipeline. External iteration obtains the best Occlusion and Readability but nearly doubles inference time, whereas our joint model achieves the best overall layout and holistic quality in 20.8s, providing the strongest quality–efficiency trade-off.

Our main contributions are summarized as follows:

• We formulate CELG, a new task that extends layout generation from prepared canvases to raw visual assets by incorporating canvas adaptation into the generation process.

• We propose SCE, an automatic data construction framework that synthesizes source–target editing pairs from existing graphic designs, and use it to construct InstructEdit, a dataset of aligned source assets, target canvases, editing instructions, and layouts.

  • We develop a two-flow model that couples a pretrained image editor with a layout flow transformer through synchronized sampling and bidirectional cross-attention, enabling canvas adaptation and layout generation to coordinate throughout the generation process. Experiments demonstrate the effectiveness of the proposed model for CELG.