LayoutFlow: Flow Matching for Layout Generation
Julian Jorge Andrade Guerreiro, Naoto Inoue, Kento Masui, Mayu Otani, Hideki Nakayama
TL;DR
LayoutFlow applies Conditional Flow Matching to layout generation, formulating a flow between a simple base distribution and complex layouts via the ODE $\frac{d}{dt} \phi_t(x) = v_t(\phi_t(x))$, with $\phi_0(x)=x_0$. It represents layouts as sets of elements with continuous geometry and embedded categorical attributes, learned through a Transformer-based vector-field predictor trained on linear trajectories and augmented by an $L_1$ regularization on the geometry output. The method supports unconditional and various conditioned generation tasks through a conditioning mechanism, achieving state-of-the-art or competitive results with significantly faster inference than diffusion-based models. These results demonstrate that Flow Matching offers a flexible, efficient alternative for layout design, with potential extensions to trajectory selection and content-aware layouts for practical design workflows.
Abstract
Finding a suitable layout represents a crucial task for diverse applications in graphic design. Motivated by simpler and smoother sampling trajectories, we explore the use of Flow Matching as an alternative to current diffusion-based layout generation models. Specifically, we propose LayoutFlow, an efficient flow-based model capable of generating high-quality layouts. Instead of progressively denoising the elements of a noisy layout, our method learns to gradually move, or flow, the elements of an initial sample until it reaches its final prediction. In addition, we employ a conditioning scheme that allows us to handle various generation tasks with varying degrees of conditioning with a single model. Empirically, LayoutFlow performs on par with state-of-the-art models while being significantly faster.
