LayoutGAN: Generating Graphic Layouts with Wireframe Discriminators
Jianan Li, Jimei Yang, Aaron Hertzmann, Jianming Zhang, Tingfa Xu
TL;DR
LayoutGAN directly generates structured graphic layouts by modeling inter-element relations among labeled 2D elements. It introduces a self-attention-based generator and two discriminators, including a differentiable wireframe rendering layer that enables CNN-based evaluation of layout alignment in image space. Across MNIST point layouts, document layouts, clipart scenes, tangrams, and mobile layouts, the wireframe discriminator yields superior alignment, reduced overlap, and more coherent relational structures. This approach decouples layout generation from pixel rendering, enabling scalable, permutation-invariant layout synthesis with strong cross-domain performance.
Abstract
Layout is important for graphic design and scene generation. We propose a novel Generative Adversarial Network, called LayoutGAN, that synthesizes layouts by modeling geometric relations of different types of 2D elements. The generator of LayoutGAN takes as input a set of randomly-placed 2D graphic elements and uses self-attention modules to refine their labels and geometric parameters jointly to produce a realistic layout. Accurate alignment is critical for good layouts. We thus propose a novel differentiable wireframe rendering layer that maps the generated layout to a wireframe image, upon which a CNN-based discriminator is used to optimize the layouts in image space. We validate the effectiveness of LayoutGAN in various experiments including MNIST digit generation, document layout generation, clipart abstract scene generation and tangram graphic design.
