[Paper Review] Harnessing the Spatial-Temporal Attention of Diffusion Models for High-Fidelity Text-to-Image Synthesis
This paper proposes a novel text-to-image diffusion model that enhances generation fidelity by explicitly controlling spatial-temporal cross-attention. It uses a layout predictor to define object regions and a learnable attention optimizer to dynamically balance global and local text attention across denoising steps, achieving state-of-the-art alignment with complex text descriptions without fine-tuning the diffusion backbone.
Diffusion-based models have achieved state-of-the-art performance on text-to-image synthesis tasks. However, one critical limitation of these models is the low fidelity of generated images with respect to the text description, such as missing objects, mismatched attributes, and mislocated objects. One key reason for such inconsistencies is the inaccurate cross-attention to text in both the spatial dimension, which controls at what pixel region an object should appear, and the temporal dimension, which controls how different levels of details are added through the denoising steps. In this paper, we propose a new text-to-image algorithm that adds explicit control over spatial-temporal cross-attention in diffusion models. We first utilize a layout predictor to predict the pixel regions for objects mentioned in the text. We then impose spatial attention control by combining the attention over the entire text description and that over the local description of the particular object in the corresponding pixel region of that object. The temporal attention control is further added by allowing the combination weights to change at each denoising step, and the combination weights are optimized to ensure high fidelity between the image and the text. Experiments show that our method generates images with higher fidelity compared to diffusion-model-based baselines without fine-tuning the diffusion model. Our code is publicly available at https://github.com/UCSB-NLP-Chang/Diffusion-SpaceTime-Attn.
Motivation & Objective
- To address low image fidelity in text-to-image diffusion models, particularly missing objects, mismatched attributes, and mislocated objects.
- To improve cross-attention accuracy in both spatial (pixel location) and temporal (denoising step) dimensions.
- To enable high-fidelity image generation for complex, rare, or uncommon text descriptions without fine-tuning the diffusion model.
- To provide explicit, learnable control over attention dynamics across space and time during image generation.
Proposed method
- A layout predictor generates spatial regions for each object mentioned in the text, either from the description or user input.
- Spatial attention is reweighted by combining global text attention and local object-specific attention within predicted object regions.
- Temporal attention control is implemented by allowing the attention combination weights to evolve across denoising steps.
- The attention weights are optimized end-to-end using a CLIP-based objective to maximize image-text alignment.
- The method operates as a plug-in inference-time module, preserving the pre-trained diffusion model's weights.
- The optimization process mimics a human painting process: first global layout, then progressive detail refinement.
Experimental results
Research questions
- RQ1Can explicit spatial-temporal control over cross-attention improve image fidelity in text-to-image diffusion models?
- RQ2How does dynamic attention weighting across denoising steps affect object localization and attribute consistency?
- RQ3Can the method generalize to rare and complex text descriptions without fine-tuning the diffusion model?
- RQ4Does combining global and local text attention improve object recall and spatial relation accuracy?
Key findings
- On a synthetic dataset with uncommon object pairs, attributes, and spatial relations, the method achieved 42.4% object recall and 59.6% spatial relation precision, outperforming all baselines.
- The method effectively resolves common failures such as missing objects, mislocated objects, and attribute mismatches seen in Stable Diffusion and other baselines.
- Subjective evaluation showed that 67.1% of workers preferred images generated by the proposed method over baselines in overall fidelity and quality.
- The layout predictor's accuracy at object center prediction affects performance, with edge-localized predictions leading to missing objects.
- Moving predicted object regions inward from image edges resolved failure cases, suggesting that spatial localization quality is critical.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.