Abstract
Graphic design layout generation often relies on a two-stage process: converting user constraints into a spatial graph and then decoding that graph into a layout. However, traditional separate training of these stages leads to a "distribution shift" where the layout decoder fails to handle imperfect graphs generated during inference. This paper introduces a collaborative training strategy that allows the graph generator and layout decoder to learn from each other simultaneously. By bridging the gap between generated and ground-truth distributions, the proposed framework achieves state-of-the-art performance on RICO, PubLayNet, and InfoPPT datasets, demonstrating significant robustness to noisy or incomplete user inputs.
Introduction
Creating professional graphic layouts—such as mobile UIs, scientific documents, or presentation slides—requires precise placement of elements like images, buttons, and text while respecting complex spatial relationships. Modern AI approaches typically model this as a pipeline: user requirements are first translated into a spatial graph (where nodes represent elements and edges represent spatial constraints), which is then decoded into a final layout consisting of coordinates and sizes.
Despite the logic of this two-stage approach, existing systems often struggle during actual use. When trained separately, the layout decoder only sees "perfect" graphs extracted from real designs. At inference time, however, it receives "imperfect" graphs from the generator. This mismatch, or distribution shift, often results in messy, overlapping, or illogical layouts.
The Distribution Shift Problem
The core challenge identified by the researchers is the "Separate Training Trap." In isolated training, the latent space of generated graphs differs significantly from the latent space of ground-truth (extracted) graphs. As a result, the decoder encounters data it has never seen before, leading to a breakdown in performance.
As shown in the visualization above, collaborative training successfully aligns these two distributions. By forcing the model to handle both ground-truth and noisy generated data during training, the decoder becomes robust to the generator's inevitable mistakes.
Methods: Collaborative Generation
The proposed framework consists of a Variational Graph Autoencoder (VGAE) for graph generation and an Autoregressive Transformer for layout decoding. The innovation lies in three key strategies:
- Collaborative Training: The networks perform a "round-way knowledge transfer." The layout decoder is trained on both ground-truth graphs and noisy graphs from the generator. Simultaneously, the graph generator is updated using graphs "reverse-engineered" from the decoder's output layouts, creating a continuous feedback loop.
- Cyclic Sampling: During inference, the model employs an iterative refinement process. It uses the initial generated layout to derive a refined graph, which is then fed back into the decoder to improve the design quality.
- Heuristic Graph Pruning: To minimize noise, the authors implement a pruning strategy that removes redundant edges (e.g., if A is above B and B is above C, the direct edge from A to C is removed). This sparsity helps the model focus on critical structural constraints.
Key Results
The collaborative approach achieved state-of-the-art (SOTA) results across three diverse datasets: RICO (mobile UI), PubLayNet (scientific documents), and InfoPPT (presentation slides).
- Realism (FID): On the RICO dataset, the model achieved a Fréchet Inception Distance (FID) of 6.36, a massive improvement over previous benchmarks like NDN (16.86) and LayoutGAN++ (26.13).
- Structural Integrity: The model produced layouts with superior alignment and significantly fewer accidental overlaps compared to baseline transformers and VAEs.
- Robustness: Unlike separate training models, which see performance plummet as user constraints decrease, the collaborative model maintains stable, high-quality output even with minimal (0-50%) edge specifications.
Conclusion
By treating graph generation and layout decoding as a collaborative task rather than two isolated steps, this framework effectively solves the distribution shift problem. While the current model is "content-blind"—focusing on element categories rather than specific image or text content—it sets a new standard for structural layout generation. Future work will explore content-aware adjustments to further refine the aesthetic and functional quality of AI-generated designs.
Summary updated