HCMA: Hierarchical Cross-model Alignment for Grounded Text-to-Image Generation
Hang Wang, Zhi-Qi Cheng, Chenhao Lin, Chao Shen, Lei Zhang
TL;DR
HCMA tackles grounded text-to-image generation by enforcing semantic fidelity at both global (caption-to-image) and local (object-to-region) levels within every diffusion step. It introduces dual alignment modules—global C2IA and local O2RA—together with losses $\Omega_t^G$ and $\Omega_t^L$ that iteratively refine latent representations during sampling. Empirical results on MS-COCO 2014 show HCMA achieving substantial gains in FID and CLIP scores over strong baselines, including a $\approx 0.69$ FID improvement over SD-v1.5 and a $\approx 0.029$–$0.032$ CLIP uplift, validating improved global semantics and precise spatial grounding. The method demonstrates practical impact for multi-object scenes with layout constraints and offers code at the provided GitHub repository for reproducibility and further exploration.
Abstract
Text-to-image synthesis has progressed to the point where models can generate visually compelling images from natural language prompts. Yet, existing methods often fail to reconcile high-level semantic fidelity with explicit spatial control, particularly in scenes involving multiple objects, nuanced relations, or complex layouts. To bridge this gap, we propose a Hierarchical Cross-Modal Alignment (HCMA) framework for grounded text-to-image generation. HCMA integrates two alignment modules into each diffusion sampling step: a global module that continuously aligns latent representations with textual descriptions to ensure scene-level coherence, and a local module that employs bounding-box layouts to anchor objects at specified locations, enabling fine-grained spatial control. Extensive experiments on the MS-COCO 2014 validation set show that HCMA surpasses state-of-the-art baselines, achieving a 0.69 improvement in Frechet Inception Distance (FID) and a 0.0295 gain in CLIP Score. These results demonstrate HCMA's effectiveness in faithfully capturing intricate textual semantics while adhering to user-defined spatial constraints, offering a robust solution for semantically grounded image generation. Our code is available at https://github.com/hwang-cs-ime/HCMA.
