arXiv:2609.11519cs.CVSep 2026

Manuscript Offprint

arXiv:2609.11519

Learning Interaction between Image and Layout Priors for Joint Image-Layout Generation in Design Templates

Shirong Yang, Bo Yang, Ying Cao

Shirong Yang, Bo Yang, and Ying Cao

Abstract—In this paper, we address the problem of graphic design template creation, which generates a background image and a layout of foreground elements over the background to form a harmonious composition from an input text. Prior work on graphic design generation mostly adopts a sequential paradigm, where design elements are generated sequentially. We argue that such a sequential scheme falls short of faithfully capturing the dependency between the background and layout (and thus the joint image-layout distribution), which limits the quality of generated design templates. To overcome this limitation, we propose a model, InterIL, which jointly generates the two modalities—background image and layout—in a single generative process. The novel design of our joint model connects the backbones of pretrained image and layout diffusion models with a learnable communication module to explicitly model bidirectional image-layout interaction. During training, the image and layout backbones are frozen to maintain and leverage the vast pretrained single-modality prior knowledge, while only the communication module is updated, so that the model can focus on learning image-layout interaction and thereby better capture the joint image-layout distribution for improved composition harmony. Our model has no design-specific inductive bias, which allows it to better preserve the original characteristics of realistic designs. We further introduce a test-time guidance strategy to enable users to impose their specific preferences on generated results. Our experiments show that, compared with prior approaches, our model can generate significantly better results in terms of image, layout and image-layout harmonization, producing outputs closer to real samples. We also demonstrate the flexibility of our model in enforcing user preferences at inference without retraining.

Index Terms—Design template generation, diffusion models, layout generation.

1 INTRODUCTION

W HEN creating graphic designs, designers usually choose and start from pre-existing design templates, instead of designing from scratch, and iteratively refine the templates towards the final full designs. Design templates are of great value to designers in practice, which can provide inspirational ideas and help speed up the design process. However, creating good design templates is non-trivial, which often takes substantial manual effort and necessitates considerable design expertise.

In this paper, we aim to automate the creation of graphic design templates from input textual descriptions. Ideally, design templates should lie midway between high-level requirements and finalized designs, serving as a mid-level abstraction of complete designs: they are more concrete than high-level intentions with overall theme and structure to serve as good starting points, while being less complete than full designs with only a partial set of element attributes to leave room for creativity. In this work, we focus on a specific form of design templates, which is composed of a background image and a layout (spatial arrangement) of foreground elements over the background [1].

Despite remarkable progress in generative models for graphic design, previous methods mostly follow a sequential generation paradigm, where design elements are created one after another. Cascaded pipelines [2], [3] execute a series of sub-tasks (e.g., background generation, object generation and typography generation) in sequence. The causal nature of the autoregressive design generation models [4]–[6] imposes a dependency order between generated elements. A recent work on design template generation [1] takes a sequential two-stage approach, where a background is first generated, followed by generating a layout conditioned on the background. However, in design templates, the dependency between background and layout is bidirectional—background generation should take the layout into account (e.g., to allocate appropriate space for foreground element placement); layout generation should be aware of the background (e.g., to not occlude important background regions). As a result, the existing methods are limited in modeling desired background-layout interaction, which is crucial for harmonious compositions, and thus lead to degraded generation quality (e.g., visual conflict between background and layout).

To mitigate this issue, we propose InterIL, a latent diffusion model for design template generation, which enables joint generation of images and layouts in a single framework by learning image-layout interaction. Specifically, we first pretrain a latent diffusion model for unconditional layout generation as a layout prior, and leverage a pretrained text-to-image latent diffusion model [7] as an image prior. Each of the two priors alone can generate high-quality samples in its own domain (image or layout). We then construct the denoising network of InterIL by combining

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

Corresponding author: Ying Cao.

Figure

A high-detail Gundam standing in fog, minimal background.

An autumn road framed on a rustic brick wall.

A cat sitting on a windowsill with soft morning light.

Figure

A vintage car parked on an empty road under soft daylight.

Fig. 1. Generated design templates by our model given text inputs. Each template specifies the overall theme and structure of the design, consisting of a background image and a layout of elements of different types: text (white), underlay (yellow), and button (red). The input text is shown below each generated template.

the pretrained backbones of the two priors and connecting them with a communication module dedicated to explicitly learning bidirectional image-layout interaction. When training InterIL, we keep the pretrained weights of the two backbones fixed, and only optimize the communication module. This allows us to focus learning on capturing image-layout interaction patterns, as the prior knowledge of generating realistic images and layouts is already available in the two backbones. With the learned communication module, InterIL can generate a holistic design template with a single denoising process, through which the image and layout backbones frequently communicate with each other to denoise noisy image and layout latents jointly. Due to the joint generation strategy and the explicit image-layout interaction learning, our model is able to capture the joint image-layout distribution more faithfully than existing sequential methods. Moreover, unlike the previous work [1], our model refrains from using any design-related inductive bias, and therefore better fits the training data distribution, reproducing the unique characteristics involved in realistic designs. Our model also offers flexibility in deviating from realistic design characteristics and shifting generations towards user-preferred patterns (e.g., minimizing occlusion of salient background areas), through a proposed training-free guidance strategy.

To validate the effectiveness of our InterIL model, we introduce two evaluation metrics, TemplateFID and TemplateCLIP, which respectively assess the visual quality and text adherence of generated templates. We conduct experiments on the Web-design dataset [1], comparing InterIL with alternative approaches. Our model exhibits dramatically improved performance compared to the other methods, generating high-quality, visually harmonious design templates (see Figure 1). We also showcase how our proposed guidance technique can be applied at inference time to allow users to control generated templates through their expressed preferences, including reducing foreground-element occlusion of salient background regions and improving text readability.

Our paper makes the following contributions:

• A new joint image-layout generation paradigm for graphic design template generation, which differs from the existing sequential generation scheme.

• A diffusion-based design template generation framework, which synthesizes images and layouts simultaneously in a single generation process by learning the interaction between the pretrained image and layout priors, which is in contrast to the sequential, multi-stage framework used in previous works.

• An inference-time guidance framework that can accommodate different user preferences on generated results without any model retraining.

References (41)