A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding Optimization

This paper analyzes the impact of causal manner in the text encoder of text-to-image (T2I) diffusion models, which can lead to information bias and loss. Previous works have focused on addressing the issues through the denoising process. However, there is no research discussing how text embedding contributes to T2I models, especially when generating more than one object. In this paper, we share a comprehensive analysis of text embedding: i) how text embedding contributes to the generated images and ii) why information gets lost and biases towards the first-mentioned object. Accordingly, we propose a simple but effective text embedding balance optimization method, which is training-free, with an improvement of 125.42% on information balance in stable diffusion. Furthermore, we propose a new automatic evaluation metric that quantifies information loss more accurately than existing methods, achieving 81% concordance with human assessments. This metric effectively measures the presence and accuracy of objects, addressing the limitations of current distribution scores like CLIP's text-image similarities.

Paper

Similar papers

Peer review

Reviewer fTPW5/10 · confidence 4/52024-06-19

Summary

This papers address the bia problem of text-to-image generation. Unlike the previous work which focus on processing of the attention map, this work explores the text embedding, which is a key factor. Authors conduct expensive experiments to analysis the text embedding, then propose a interesting method to address the alignment of the text-to-image generation. A simple text embedding alignment loss is proposed by introducing other pure text information.

Strengths

1. Authors conduct lots of interesting experiments to analysis the alignment problem, including masking the special token. 2. Exploring the text embedding instead of (stable diffusion ) UNet network is good. 3. Authors provide the code to show the effectiveness of the presented method.

Weaknesses

1. The present problem (e.g., Fig1) seems just happy the lower version of SD1. I test SD3 with the prompt : 'a lion and an elephant', the issues does not happen. In the paper, authors show the reason is from the text encoder, which I agree. However, the presented reason maybe does not lead to the shown challenges. 2. For text embedding, the EOT also play a key role[1]. This paper does not consider it. Only considering the soft replacing maybe harder. 3. The visual results are not good. The generated images has poor quality. Does the propose lead to other negative influence? 4. The baselines are a little out of fashion. Authors should consider more recent methods: SDXL, SD3, PlayG-v2, Ranni[2] and Ella[3]. 5. Authors should use a public benchmarks to compare the proposed method, like T2I-CompBench[4]. 6. The proposed idea seems limited for NeurIPS, which is not enough. [1] Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models [2] Ranni: Taming text-to-image diffusion for accurate instruction following. [3] Ella: Equip diffusionmodels with llm for enhanced semantic alignment. [4] T2i-compbench: A comprehensive benchmark for open-world compositional text-to-image generation

Questions

Please check the weaknesses.

Rating

5

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

Testing the presented problem in latest version of SD, like SD3.

Authorsrebuttal2024-08-12

Dear Reviewer, We appreciate your valuable suggestions and we are eager to address your concerns with the submitted rebuttal. As the author-reviewer discussion will end soon, we are looking forward to your further consideration of our submitted rebuttal. Thank you again for taking the time to foster a thorough review of our task! Sincerely, authors

Reviewer fTPW2024-08-13

Official comments by Reviewer fTPW

Thanks authors for rebuttal. Based on the mentioned problems (e.g., old version SD, latest baselines, and public benchmark). I think this paper is not ready for NeurIPS. For one submitted paper, since both the baseline and benchmark are not convincing, I can not be positive.

Authorsrebuttal2024-08-13

Dear reviewer, **old version SD:** The SD3 you suggest is released at 12 Jun., which is later than the date our task submit to NeurIPS. In the rebuttal, we still provide the experiments to prove our effectiveness that our method outperforms SD3. Please refer to the Fig. 1 and Table 1 in the global rebuttal PDF. **latest baselines:** In the initial submission, we compared with latest tasks addressing object missing, e.g., A&E (SIGGRAPH’23) [1], SynGen (NeurIPS’23) [13]. To respond to your suggestion, we further compare to Stable Diffusion XL-Turbo, Ella, and SD3. All the qualitative and quantitative results prove our effectiveness. Please refer to Fig. 1 and Table 1 in the global rebuttal PDF. **Benchmark:** the public benchmark, e.g., T2I-CompBench, contains more diverse prompts, e.g., adjective binding with noun, that would make the experiment distract. Thus, we follow related works, e.g., A&E (SIGGRAPH’23) [1] and Predicated diffusion (CVPR’24) [16], to create the most suitable benchmark for our task. While we respectfully disagree with the directness to conduct public T2I-CompBench to demonstrate our performance, we still conduct quantitative and qualitative comparisons in T2I-CompBench in the rebuttal and prove our effectiveness. Please refer to Fig. 1 and Table 1 in the global rebuttal PDF. **We sincerely look forward to more concrete details about which part of the rebuttal does not address your concern.** [1] Hila Chefer, Yuval Alaluf, Yael Vinker, Lior Wolf, and Daniel Cohen-Or. Attend-and-excite: Attention-based semantic guidance for text-to-image diffusion models. In SIGGRAPH, 2023 [13] Royi Rassin, Eran Hirsch, Daniel Glickman, Shauli Ravfogel, Yoav Goldberg, and Gal Chechik. Linguistic binding in diffusion models: Enhancing attribute correspondence through attention map alignment. In NeurIPS, 2023. [16] Kota Sueyoshi and Takashi Matsubara. Predicated diffusion: Predicate logic-based attention guidance for text-to-image diffusion models. In CVPR, 2024.

Area Chair 8fhv2024-08-14

Dear Reviewer fTPW, After reading the authors' feedback, do you still hold your thoughts on "both the baseline and benchmark are not convincing"? What baseline and benchmark would resolve your concerns? Do you think the missing results on PlayG-v2 and Ranni were significant? Some elaborations and constructive feedback would help the authors to refute and improve their work.

Reviewer fTPW2024-08-14

improving my score

Thanks Ac and authors for your effort. I have improved my score. For SD3, I reviewed a few papers for neurIPS2024 also consider SD3 for the base model instead ignoring it like this papers.

Reviewer LGCP6/10 · confidence 4/52024-07-10

Summary

The paper conducts an in-depth analysis of the impact of causal mechanisms in text encoders of text-to-image (T2I) diffusion models, which can lead to information bias and loss. The authors propose the Text Embedding Balance Optimization (TEBOpt) method, a training-free method to optimize text embeddings, resulting in a 90.05% improvement in information balance. Additionally, it presents a new metric for more accurate evaluation of information loss in generated images.

Strengths

a. Originality: The paper offers a new perspective on T2I models by addressing the causal nature of text embeddings, which has been overlooked. The proposed TEBOpt represents a new approach to balancing information in text embeddings without additional training. b. Quality: Technically sound, the paper is well-supported by comprehensive analysis and experimental results. c. Clarity: The submission is clearly written and well-organized, making complex concepts accessible. d. Significance: The results are important for advancing the field of T2I models, offering a demonstrable improvement in handling information bias and loss. minors: some relevant works should be cited and dicsussed: Zou, Siyu, et al. "Towards Efficient Diffusion-Based Image Editing with Instant Attention Masks." Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 38. No. 7. 2024. Du, Xiaoxiong, et al. "Pixelface+: Towards controllable face generation and manipulation with text descriptions and segmentation masks." Proceedings of the 31st acm international conference on multimedia. 2023.

Weaknesses

a. The paper has limited qualitative results and mentions that the analysis was conducted on a total of 400 prompts. Providing more qualitative results in the main text or appendix could better demonstrate the validity of the proposed method. b. Some of the formulas used in the paper are not thoroughly explained, making it difficult to understand the proposed method. c. The paper proposes a novel perspective to analyze object omissions and fusion issues in the T2I model. However, the method in the paper is rather straightforward, which to some extent may affect the quality of the generated images.

Questions

a. According to the description in the text, Equation 6 is intended to encourage later tokens to be as dissimilar as possible from earlier tokens’ embedding. However, in the formula, the similarity is calculated between the object token and all tokens, with the summation range being 0 to n. This seems to contradict the goal of constraining the subsequent tokens to be dissimilar from earlier tokens? b. In the qualitative results shown in the second row of Figure 4, it can be observed that the results using the TEBOpt method do not seem to retain the visual features of the cat very well. Does this indicate that optimizing and adjusting text embeddings is likely to cause some uncontrollable changes in semantics? Additionally, when combined with other methods, it also seems to affect the overall layout of the generated images.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

The paper summarizes the limitations of the proposed method in sec6, while mentioning that the case of multiple objects as well as complex prompts can be further explored. In addition, the experiments in this paper are based on simple sentences, which can be followed up to explore whether the case with complex adjectives affects the generation effects.

Authorsrebuttal2024-08-12

Dear Reviewer, We appreciate your valuable suggestions and the positive feedback! We are eager to share further information about our task with you in the submitted rebuttal. As the author-reviewer discussion will end soon, we are looking forward to your further consideration of our submitted rebuttal. Thank you again for taking the time to foster a thorough review of our task! Sincerely, authors

Reviewer LGCP2024-08-14

Thank the authors for their detailed rebuttal. I keep my original rating for the acceptance of this paper.

Reviewer ACAY7/10 · confidence 4/52024-07-12

Summary

This paper proposes Text Embedding Balance Optimization (TEBOpt) to enhance the distinctiveness between text embeddings of equally important objects when using texts as conditions for diffusion models. It begins with an intriguing and informative experiment to investigate why a prompt like "An <object1> and an <object2>" given to a standard diffusion model, such as Stable Diffusion, often results in a higher likelihood of ignoring <object2> during image generation. The masking experiment elucidates the role of causal masking in contributing to this phenomenon. Based on these observations and analyses, the authors propose replacing the latter embedding with a pure embedding as a baseline. They then learn to increase the distance between the embeddings of the two objects while preserving the original meaning. Both qualitative and quantitative experimental results demonstrate that the proposed method helps to reduce bias towards the first object, leading to improved generation results, even compared to existing approaches that aim to address this issue.

Strengths

- The method is well-motivated by the detailed error analysis and masking experiments. - The solution proposed by the authors are novel and interesting. - Experimental results show that the method successfully help to improve the generation quality. - The paper is well-organized and easy-to-follow. - Code and models are provided to better support the reproductivity.

Weaknesses

- Some of the wrapped table's layout can be improved (e.g. Table 1, Table 5) - The data used in this work can be systematically extended and organized to form a larger and good place for community to continue conducting research on this. - The research by far focuses on a few relatively simple scenarios, where only two or three objects in a very simple sentence pattern are presented. Explorations on more challenging scenarios would be interesting.

Questions

- As revealed by the analysis, not only the latter object text embedding contains the earlier object information, all the latter words all may have similar impacts to strength the text embedding of the earlier object information. Has the author considered how to resolve such possible influence?

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

The limitations are potential impact are discussed in the paper.

Reviewer ACAY2024-08-12

I appreciate the authors' efforts in addressing my concerns. After reviewing the authors' rebuttal and the comments from other reviewers, I maintain my initial stance that this paper serves as a valuable starting point in this direction and offers insights into the phenomenon through error analysis and initial results. Therefore, I will keep my original rating as 'accept.' However, there is still much room for improvement. As noted by all the reviewers, the current version examines the problem in a relatively simple setting, and there are opportunities to further explore the problem setting, model choices, and evaluation benchmarks more systematically (though some have been provided in the rebuttal). I hope the authors can continue refining their work to better benefit the community.

Authorsrebuttal2024-08-12

Dear Reviewer, We appreciate your recognition of our work as a valuable starting point! Thank you also for your thorough and thoughtful comments. We will incorporate your valuable suggestions into an updated version and continue contributing to the community. Thank you again for your support!

Reviewer G9At6/10 · confidence 5/52024-07-16

Summary

Background: Text-to-image diffusion models, such as Stable Diffusion, frequently encounter difficulties in accurately generating images from textual descriptions, especially when there are multiple objects -> object mixing and missing. This paper focuses text embeddings to solve the problems. Hypothesis: self-attention mixes text embeddings of multiple objects. Analyses: * 400 prompts of "a/an <animal 1/2> and a/an <animal 2/1>" with 17 animals produce lots of mixture of objects and missing objects * Contribution of text embeddings to the generated images * Masking the dominant embeddings reduces the mixture rate * Replacing the embedding after the text encoder with the pure text embedding does not solve the problem. * Process of conditions getting lost and biasing towards the first-mentioned object due to masks in self-attention in the text encoder. Method: * Optimize the target text embedding toward pure embedding and against earlier (first-mentioned) token’s embedding

Strengths

This paper provides useful analyses on text embeddings for text-to-image diffusion models. The experiment design corresponds to the hypothesis. The proposed metric is a good effort for quantitative evaluation.

Weaknesses

(Overall, I like the idea of this paper but it needs more work to be a solid paper.) W1. This paper covers only nouns, especially animals. The research community has tackled different aspects of text prompts [composable, masactrl]. How about using other classes of objects to prove generality? For instance, could this method work with text prompts like 'A <cat> standing next to the <tower>' or examples from A&E such as 'A <lion> with a <crown>'? It would be valuable to see if the approach is equally effective with these more diverse classes and prompts that users might want to apply. W2. Bboxes overlapping more than 90% not always indicate mixture. W3. The terms should be more clearly defined. * Information bias and object missing are confusing. * The critical dimension? W4. Initial latent optimization is poorly described. How can the initial latent be updated during the denoising process? I guess intermediate latents can be updated just like [self-guidance]. W5. The baseline of Figure 5 is not defined. W6. The appendix should provide large number of examples to ensure the proposed method is free from cherry picking. W7. Improvements in Table 4 is marginal. W8. An important paper is missing: [composable], [custom diffusion] and [hiper] W9. The method requires optimization for each sentence, which can be inefficient for practical use. Misc. 1. Placing the caption of Table 5 under the table would be better for consistency. 2. Some numerical values in the main text are difficult to understand at first glance. To improve readability, I think it would be better to highlight or mark the key values within the table itself. For example, the main text mentions 125.42%, but I couldn't immediately identify which part in Table 4 shows a difference of 125.42%.  3. The result shows that the balance performance in SynGen decreased by 10.65%, rather than improved. 4. I think Figure 7 is not an appropriate example for demonstrating the inadequacy of full prompt similarity, as neither image correctly matches the given prompt 'a cat and a penguin'. The left image shows a mixture of the two animals, while the right image displays two cats instead of one. [composable] Compositional visual generation with composable diffusion models, Liu+ [masactrl] MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing, Cao+ [self-guidance] Diffusion Self-Guidance for Controllable Image Generation, Epstein+ [custom diffusion] Multi-Concept Customization of Text-to-Image Diffusion, Kumari+ [hiper] Highly Personalized Text Embedding for Image Manipulation by Stable Diffusion, Han+

Questions

Q1. Would the same happen for the words may change their meaning due to nearby words? E.g., mouse? Q2. I do not think the self-attention layer models "causal" relationship between words. I recommend replacing "causal manner" with "dependency". Thoughts?

Rating

6

Confidence

5

Soundness

2

Presentation

2

Contribution

3

Limitations

Some are covered.

Authorsrebuttal2024-08-12

Dear Reviewer, We appreciate your valuable suggestions and we are eager to address your concerns with the submitted rebuttal. As the author-reviewer discussion will end soon, we are looking forward to your further consideration of our submitted rebuttal. Thank you again for taking the time to foster a thorough review of our task! Sincerely, authors

Authorsrebuttal2024-08-11

Dear Reviewers, Our eagerness for your further consideration has led us to gently remind you of the review of our submitted rebuttal. We understand that your time is valuable, and we appreciate your willingness to read our rebuttal to foster thorough consideration. We sincerely look forward to your further feedback. Sincerely, The authors

Area Chair 8fhv2024-08-13

Dear our reviewers, Now, we are approaching the very end of the reviewer-author discussion period. Are there any further questions for the authors regarding major issues, or are your concerns sufficiently resolved? Only a limited amount of time is available for interaction with the authors. Thank you again for your dedication. Your AC

Authorsrebuttal2024-08-14

Dear AC, **PlayG-v2** has the same architecture as SDXL (https://huggingface.co/playgroundai/playground-v2-1024px-aesthetic). Both of them contain 2 text encoders: CLIP and OpenCLIP. Therefore, we compare SDXL-Turbo as the representative for comparison. Due to its inference efficiency, we choose SDXL-Turbo over SDXL, as SDXL requires more than 10 seconds per image on a single 3090 GPU, while SDXL-Turbo only requires less than 1 second per image. **Ranni** has the same text encoder as SD 1.4 and SD 1.5, which all utilize CLIP; therefore, we use SD 1.5 as a representative. Moreover, Ranni incorporates additional features such as bounding boxes, learnable color embeddings, and keypoints as conditions, focusing primarily on image editing. This differs significantly from our main focus, which is to investigate the contributions of text embedding and causal manners in text encoders to text-to-image models. Thus, comparing our model with Ranni is inappropriate because it does not address the central questions of our research. Overall, text-to-image models are experiencing explosive growth, with dozens of new models being released every day. We focus on comparing the most relevant models that align with our primary goal—exploring causal mechanisms and text embeddings in T2I models—rather than every available T2I model with diverse input conditions, as our main target is not image editing.

Reviewer G9At2024-08-14

I greatly appreciate the thorough rebuttal. All of my concerns are clearly resolved except below. In W7, I think it is marginal because there are only 0.5%p and 1%p improvement from 14.5% and 34%, respectively. I raised my score from 4 to 6. I anticipate an upgraded version of this paper in the camera ready. BTW, I value clear definition of everything. I think the word "causal" for attention mechanism is being abused considering the causal inference.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC