Spatial Transport Optimization by Repositioning Attention Map for Training-Free Text-to-Image Synthesis
Woojung Han, Yeonkyung Lee, Chanyoung Kim, Kwanghyun Park, Seong Jae Hwang
TL;DR
STORM introduces training-free Spatial Transport Optimization (STO) to achieve spatially coherent text-to-image synthesis by repositioning attention maps via Optimal Transport. It defines a Spatial Transport Cost (ST Cost) with a directional Positional Cost and a Non-overlap penalty, and computes a Sinkhorn transport plan to move attention mass while updating latent representations in early denoising steps. Across extensive evaluations (VISOR, T2I-CompBench, TIFA, SR2D), STORM demonstrates superior spatial alignment, object accuracy, and attribute binding compared to prior training-free methods, highlighting the importance of early-stage spatial guidance. The method maintains model weights, is compatible with existing diffusion backbones, and opens avenues to couple with stronger text encoders for even better spatial fidelity.
Abstract
Diffusion-based text-to-image (T2I) models have recently excelled in high-quality image generation, particularly in a training-free manner, enabling cost-effective adaptability and generalization across diverse tasks. However, while the existing methods have been continuously focusing on several challenges, such as "missing objects" and "mismatched attributes," another critical issue of "mislocated objects" remains where generated spatial positions fail to align with text prompts. Surprisingly, ensuring such seemingly basic functionality remains challenging in popular T2I models due to the inherent difficulty of imposing explicit spatial guidance via text forms. To address this, we propose STORM (Spatial Transport Optimization by Repositioning Attention Map), a novel training-free approach for spatially coherent T2I synthesis. STORM employs Spatial Transport Optimization (STO), rooted in optimal transport theory, to dynamically adjust object attention maps for precise spatial adherence, supported by a Spatial Transport (ST) Cost function that enhances spatial understanding. Our analysis shows that integrating spatial awareness is most effective in the early denoising stages, while later phases refine details. Extensive experiments demonstrate that STORM surpasses existing methods, effectively mitigating mislocated objects while improving missing and mismatched attributes, setting a new benchmark for spatial alignment in T2I synthesis.
