Decoding Correlation-Induced Misalignment in the Stable Diffusion Workflow for Text-to-Image Generation

Yun-Ze Tong, Feng-Da Zhang, Di-Di Zhu, Jun Xiao, Kun Kuang
1/1/2025
diffusion-flowtransformer-attention

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

The fundamental requirement for text-to-image generation is aligning the generated images with the provided text. With large-scale data, pre-trained Stable Diffusion (SD) models have achieved remarkable performance in this task.

Show full abstract

These models process an input prompt as text control, guiding a vision model to perform denoising operations that recover a clean image from pure noise. However, we observe that when there is correlation among text tokens, SD's generated images fail to accurately represent the semantics of the input prompt: simple yet crucial objects may be omitted, thereby disrupting text-image alignment. We refer to this problem as "object omission". Without additional external knowledge, previous methods have been ineffective at addressing this issue. To investigate this problem, we analyze the attention maps in SD and find that biased text representations mislead the visual denoising process when handling correlated tokens, impeding object generation. Moreover, we observe that even when two prompts share the same semantics, slight variations in token sequence significantly alter attention scores, consequently affecting the final generated images. Based on these findings, we propose a simple yet effective fine-tuning method that applies decorrelation to the self-attention maps in the text module, thus reducing dependencies between tokens. Our approach requires no external prior knowledge, is straightforward to implement, and operates solely on the text module of the SD model. Extensive experiments confirm that our method effectively alleviates the object omission problem under text correlations, thereby enhancing text-image alignment.

Semantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tong2025decoding,
  title  = {Decoding Correlation-Induced Misalignment in the Stable Diffusion Workflow for Text-to-Image Generation},
  author = {Yun-Ze Tong and Feng-Da Zhang and Di-Di Zhu and Jun Xiao and Kun Kuang},
  year   = {2025},
  url    = {https://api.semanticscholar.org/CorpusID:da3a10839f15b2d64a38e1314d9791532244b4f9},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/da3a10839f15b2d64a38e1314d9791532244b4f9.svg)](https://codeofpaper.com/paper/da3a10839f15b2d64a38e1314d9791532244b4f9)

Discussion