Relation-Aware Diffusion Model for Controllable Poster Layout Generation

Fengheng Li, An Liu, Wei Feng, Honghe Zhu, Yaoyu Li, Zheng Zhang, Jingjing Lv, Xin Zhu, Junjie Shen, Zhangang Lin, Jingping Shao

Creating a high-quality poster is a balancing act. A designer must ensure the text is readable, the main subject (like a product or a model) isn't obscured, and the overall composition feels visually balanced. While AI has made strides in automatic layout generation, most models either ignore the background image entirely or fail to understand the relationship between the meaning of the text and the visuals of the image.

In their CIKM 2023 paper, Li et al. introduce the Relation-Aware Diffusion Model (RADM), a framework that treats layout generation as a refined denoising process, specifically tuned to respect both visual and textual context.

TL;DR

RADM is a controllable diffusion-based model that generates poster layouts by explicitly modeling two key relationships: the alignment between visual regions and text content, and the geometric coordination between different graphic elements. It significantly outperforms previous state-of-the-art methods in both aesthetic quality and subject preservation.

What Problem Does This Paper Address?

Poster layout generation is the task of predicting the position and category (e.g., logo, heading, underlay) of graphic elements on an image.

The authors identify a major gap in existing "content-aware" models: they often treat text as a generic box without considering its actual content or length. Furthermore, they struggle with the "geometry" of a good design—knowing that an underlay should sit behind a text block, or that elements should be aligned to create a sense of order.

Earlier GAN-based and Transformer-based models often produced "hallucinated" layouts that covered up the very product the poster was supposed to advertise, or placed long sentences in tiny, unreadable boxes.

Methods

The researchers utilize a Diffusion Model—the same class of generative AI behind Stable Diffusion—but applied to the coordinates and categories of layout boxes rather than pixels.

The core of their "Relation-Aware" approach lies in two novel modules:

  1. Visual-Textual Relation-Aware Module (VTRAM): Instead of just looking at the image, RADM uses a pre-trained RoBERTa model to extract features from the actual promotional slogans. VTRAM uses an attention mechanism to align these linguistic features with visual "Region of Interest" (RoI) features from the background. This ensures that if the text is a "selling point," the model finds a visually prominent spot for it.
  2. Geometry Relation-Aware Module (GRAM): To handle the "graphic" side of design, GRAM explicitly calculates the relative positions (log-offsets and scale ratios) between every pair of elements in the layout. By understanding how boxes relate to one another spatially, the model learns design "rules," such as avoiding overlaps or ensuring proper layering.

The generation follows a noise-to-layout paradigm: the model starts with a set of random, noisy boxes and iteratively refines their positions and sizes over 1,000 steps until a plausible, aesthetic layout emerges.

Datasets

The authors introduced CGL-Dataset V2, an extension of the original CGL-Dataset.

  • Scale: 60,548 training samples and 1,035 testing samples.
  • Key Addition: Unlike V1, this version includes text content annotations.
  • Preprocessing: They used an inpainting model to remove existing text from real posters, creating "clean" background images for the model to practice on.

Key Insights and Ideas

  • Text Content is a Spatial Constraint: The "aha moment" here is that text isn't just a label; its semantic meaning and character count dictate its physical footprint. By feeding RoBERTa embeddings into the layout engine, the model learns that "Limited Time Offer" might need a different visual weight than a fine-print disclaimer.
  • Diffusion as Refinement: Layout generation is essentially an optimization problem. Diffusion models are naturally better at this than GANs because they "nudge" boxes into the right place over many steps, rather than trying to guess the perfect coordinates in one shot.
  • Relative Geometry Matters: By focusing on the relationship between boxes (GRAM) rather than just their absolute coordinates, the model achieves much better "graphic" harmony, such as centering a logo relative to a text block.

Key Results

The model was tested against several heavyweights, including ContentGAN, CGL-GAN, and LayoutDM.

  • User Study: In a blind test with professional and novice designers, RADM's layouts had a 75.6% quality pass rate, dwarfing CGL-GAN's 28.3%.
  • Subject Presentation: RADM achieved significantly lower occlusion scores ($P_{sub}$ and $R_{shm}$), meaning it was much better at not covering up the main product in the image.
  • Controllability: The model successfully handled "partial layout" tasks—where a user fixes the position of a logo, and the AI must generate the rest of the poster around it. It also correctly adjusted box sizes when the length of the input text changed.

Limitations and Future Work

While RADM excels at content-aware design, the authors note it is slightly less "rigid" than some content-agnostic models (like BLT) when it comes to perfect mathematical alignment (the "grid" look).

Future Work might involve:

  • Integrating more explicit "design rules" (like the Rule of Thirds) into the loss function.
  • Expanding the model to handle multi-page layouts or video-based promotional content.
  • Improving the balance between "image-aware" flexibility and "grid-perfect" alignment.

Summary updated

BibTeX
@inproceedings{li2023relation,
  author = {Fengheng Li and An Liu and Wei Feng and Honghe Zhu and Yaoyu Li and Zheng Zhang and Jingjing Lv and Xin Zhu and Junjie Shen and Zhangang Lin and Jingping Shao},
  title = {{Relation-Aware Diffusion Model for Controllable Poster Layout Generation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  url = {https://openreview.net/forum?id=BJt1qTOGnt},
}
Figure