68
0

LayoutRAG: Retrieval-Augmented Model for Content-agnostic Conditional Layout Generation

Main:9 Pages
6 Figures
Bibliography:3 Pages
6 Tables
Abstract

Controllable layout generation aims to create plausible visual arrangements of element bounding boxes within a graphic design according to certain optional constraints, such as the type or position of a specific component. While recent diffusion or flow-matching models have achieved considerable advances in multifarious conditional generation tasks, there remains considerable room for generating optimal arrangements under given conditions. In this work, we propose to carry out layout generation through retrieving by conditions and reference-guided generation. Specifically, we retrieve appropriate layout templates according to given conditions as references. The references are then utilized to guide the denoising or flow-based transport process. By retrieving layouts compatible with the given conditions, we can uncover the potential information not explicitly provided in the given condition. Such an approach offers more effective guidance to the model during the generation process, in contrast to previous models that feed the condition to the model and let the model infer the unprovided layout attributes directly. Meanwhile, we design a condition-modulated attention that selectively absorbs retrieval knowledge, adapting to the difference between retrieved templates and given conditions. Extensive experiment results show that our method successfully produces high-quality layouts that meet the given conditions and outperforms existing state-of-the-art models. Code will be released upon acceptance.

View on arXiv
@article{wu2025_2506.02697,
  title={ LayoutRAG: Retrieval-Augmented Model for Content-agnostic Conditional Layout Generation },
  author={ Yuxuan Wu and Le Wang and Sanping Zhou and Mengnan Liu and Gang Hua and Haoxiang Li },
  journal={arXiv preprint arXiv:2506.02697},
  year={ 2025 }
}
Comments on this paper

We use cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from. See our policy.