LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designer
Ning Yu, Chia-Chih Chen, Zeyuan Chen, Rui Meng, Gang Wu, Paul Josel, Juan Carlos Niebles, Caiming Xiong, Ran Xu
TL;DR
LayoutDETR addresses multimodal graphic layout design by reframing layout generation as a detection problem and leveraging a DETR-based architecture to fuse background context with multimodal foreground inputs. It supports GAN-, VAE-, and VAE-GAN–based generator variants, trained with a combination of adversarial, variational, and layout-specific losses, including $L_{gIoU}$, $L_{overlap}$, and $L_{misalign}$, to produce realistic and regular layouts. A new large-scale ad banner dataset with rich semantic annotations is introduced, and LayoutDETR achieves state-of-the-art realism, accuracy, and regularity across ad banners and related multimodal benchmarks, validated by a graphical system and significant user preferences. The work provides practical deployment via a graphical design system and releases code, models, and the dataset, enabling scalable multimodal layout design with strong designer-aligned performance.
Abstract
Graphic layout designs play an essential role in visual communication. Yet handcrafting layout designs is skill-demanding, time-consuming, and non-scalable to batch production. Generative models emerge to make design automation scalable but it remains non-trivial to produce designs that comply with designers' multimodal desires, i.e., constrained by background images and driven by foreground content. We propose LayoutDETR that inherits the high quality and realism from generative modeling, while reformulating content-aware requirements as a detection problem: we learn to detect in a background image the reasonable locations, scales, and spatial relations for multimodal foreground elements in a layout. Our solution sets a new state-of-the-art performance for layout generation on public benchmarks and on our newly-curated ad banner dataset. We integrate our solution into a graphical system that facilitates user studies, and show that users prefer our designs over baselines by significant margins. Code, models, dataset, and demos are available at https://github.com/salesforce/LayoutDETR.
