Retrieval-Augmented Layout Transformer for Content-Aware Layout Generation
Daichi Horita, Naoto Inoue, Kotaro Kikuchi, Kota Yamaguchi, Kiyoharu Aizawa
TL;DR
This work tackles content-aware layout generation under data scarcity by introducing Retrieval-Augmented Layout Transformer (RALF). By retrieving and encoding nearest neighbor layouts and fusing them with the input canvas via cross-attention, RALF augments an autoregressive layout generator to produce higher-quality, controllable layouts with less training data. The approach demonstrates strong improvements on PKU and CGL posters in both unconstrained and constrained settings, and generalizes across domains and other generative models when paired with retrieval. Overall, retrieval augmentation proves effective in mitigating data limitations for structured graphic design tasks and enables adaptable, high-quality content-aware layouts. The method's modular design and use of cross-modal retrieval offer practical benefits for real-world design pipelines and potential extensions to broader poster generation beyond bounding boxes.
Abstract
Content-aware graphic layout generation aims to automatically arrange visual elements along with a given content, such as an e-commerce product image. In this paper, we argue that the current layout generation approaches suffer from the limited training data for the high-dimensional layout structure. We show that a simple retrieval augmentation can significantly improve the generation quality. Our model, which is named Retrieval-Augmented Layout Transformer (RALF), retrieves nearest neighbor layout examples based on an input image and feeds these results into an autoregressive generator. Our model can apply retrieval augmentation to various controllable generation tasks and yield high-quality layouts within a unified architecture. Our extensive experiments show that RALF successfully generates content-aware layouts in both constrained and unconstrained settings and significantly outperforms the baselines.
