RealCompo: Balancing Realism and Compositionality Improves Text-to-Image Diffusion Models

Diffusion models have achieved remarkable advancements in text-to-image generation. However, existing models still have many difficulties when faced with multiple-object compositional generation. In this paper, we propose RealCompo, a new training-free and transferred-friendly text-to-image generation framework, which aims to leverage the respective advantages of text-to-image models and spatial-aware image diffusion models (e.g., layout, keypoints and segmentation maps) to enhance both realism and compositionality of the generated images. An intuitive and novel balancer is proposed to dynamically balance the strengths of the two models in denoising process, allowing plug-and-play use of any model without extra training. Extensive experiments show that our RealCompo consistently outperforms state-of-the-art text-to-image models and spatial-aware image diffusion models in multiple-object compositional generation while keeping satisfactory realism and compositionality of the generated images. Notably, our RealCompo can be seamlessly extended with a wide range of spatial-aware image diffusion models and stylized diffusion models. Our code is available at: https://github.com/YangLing0818/RealCompo

Paper

References (80)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer ZHfz6/10 · confidence 5/52024-06-13

Summary

This paper proposes to balance the realism and compositionality of the generated images by means of different diffusion models, such as pre-trained T2I models and models based on spatial perceptual control. The authors develop a balancer that optimizes the two coefficients through mask-based attention manipulation to enable dynamic combination of the different models. They also demonstrate the effectiveness of the method through extensive experiments.

Strengths

Pros: 1. The proposed design could be used to bridge different models and support better image generation. 2. SOTA quantitative and qualitative results obtained by the proposed method. 3. The method can be extended to stylized image generation in a training-free manner.

Weaknesses

Cons: 1. Unclear Task definition. First, even different pre-trained T2I models can result in different so-called REALISM due to different training strategies and data. Secondly, Control-based models, e.g., Controlnet and GLIGEN, all add controllability while inheriting the realism generated by the original T2I models. So I'm not sure why the authors need to propose another method to do the so-called balancing of realism and composability.In addition, how can you guarantee that the combination of T2I and L2I can generate real diagrams when the images generated by T2I are all more fake? 2. Unconvincing observation. In Figure 1 and paragraphs 2 to 4, the authors present their motivation only through an existing method, GLIGEN. I argue that this is inappropriate. After all, there are many methods based on layout or control, no matter what conditions these methods use, such as layout, segmentation map, and pose. Motivation is the key to a paper and cannot be deduced from just one method. So I argue that this observation is not very convincing to me. 3. Insufficient contribution. It is common to use optimization to produce better images, but the difference lies in the design of the optimization. The use of mask to combine with attention to do optimization is more common way, such as in [1,2,3,4,5]. The only difference is that the existing methods may optimize zt, this paper optimizes two coefficients. So I argue that the contribution of this paper is not very sufficient.

Questions

1. Fig-1 lacks a detailed explanation. 2. Sub-sec 3.3 contains not much valuable information, as the only difference between Eq.9 and Eq.6 is how to obtain a mask/spatial condition. I will revise my rating according to the author's feedback and the reviewer's discussion.

Rating

6

Confidence

5

Soundness

3

Presentation

2

Contribution

1

Limitations

N/A

Authorsrebuttal2024-08-12

Gentle Reminder

Hello, Reviewer ZHfz, Regarding your concerns, we have provided some responses that you might find useful, including: - We have highlighted and summarized the innovations and contributions of our method from two perspectives: innovation in task establishment and model design. - Additional experimental results, incuding using different models to validate our motivation and compare our method with T2I models in terms of the visual authenticity of the images. - We provide a detailed explanation of Figure 1 in the paper and the motivation of our method. We sincerely hope our responses address some of your concerns. If you have any further questions, please feel free to ask. Thank you.

Reviewer juPc6/10 · confidence 4/52024-07-11

Summary

This paper presents a method, named RealCompo, for combining multiple diffusion models, such as a text-to-image model and a spatial-aware one, to achieve the best of both worlds: superior image realism and compositionality. It merges predicted noise from both models during each denoising step, and balances them based on two sets of coefficients that are dynamically updated through a loss that forces cross attention maps to follow provided spatial constraints. Experiments show that RealCompo improves both realism and compositionality compared to using either model alone, and it outperforms SOTA spatial-aware models in compositional generation.

Strengths

- The paper is well written and easy to follow. - The proposed method is straightforward and compatible across various models. - The idea of fusing multiple diffusion models during denoising is interesting. This may have applications beyond compositional text-to-image generation. - Extensive experiments are conducted on various T2I models, spatial-aware models, stylized models.

Weaknesses

- Since the proposed method runs multiple models concurrently and requires gradient-based updates, a discussion on computational efficiency is crucial for its practical application. - Figure 1 does not illustrate the trade-off between realism and compositionality well. I don't see an apparent drop of realism/aesthetics as $\beta$ (control of layout) increases.

Questions

- Why can RealCompo improve image realism (Table 2, Figure 6 left) and style preservation (Figure 6 right) beyond the capabilities of the T2I model alone? This is difficult to understand because the loss function (Eq. 6) employed for balancing the two models is designed solely to encourage better adherence to the provided spatial constraints. I will reconsider my rating if this aspect can be properly addressed. - What is the purpose of initializing the coefficients as random values (Eq. 1)? This seems unnecessary and introduces random bias towards pixels.

Rating

6

Confidence

4

Soundness

2

Presentation

3

Contribution

3

Limitations

The authors touched on the computational cost in Appendix B.5. However, a more detailed comparison with T2I and L2I models concerning computational overhead and memory overhead is crucial to determine the feasibility of the proposed method.

Reviewer XVVX7/10 · confidence 5/52024-07-13

Summary

The paper introduces a training-free and flexible text-to-image generation framework called RealCompo, which enhances compositional text-to-image generation by balancing the realism and compositionality of generated images. It features a novel balancer that dynamically combines the predicted noise from T2I models and spatial-aware image diffusion models (such as layout, keypoint, segmentation map). This framework provides a fresh perspective for compositional image generation.

Strengths

1. The proposed method is training-free but achieves notable results. 2. The proposed method mainly applies a balance between two pretrained diffusion models, which is easy to implement and quite flexible. 3. The paper’s explanation of realism and control sounds reasonable.

Weaknesses

1. The biggest problem is novelty/contribution. The paper uses a balancer to balance two diffusion models, which is very similar to the concept of "checkpoint merge" / "model ensemble". It is necessary to clarify the differences between these two approaches.

Questions

I will consider increasing the score or maintaining it if the authors can address the following issues. 1. The paper uses a balancer to balance two diffusion models, which is very similar to the concept of "checkpoint merge" or "model ensemble". It is necessary to clarify the differences between these two approaches. 2. Please explain the necessity of the proposed method. If condition-guided models like ControlNet use a stronger backbone, higher quality, larger quantity, and more diverse data and annotations during training, is it still necessary to balance with non-condition-guided text-to-image models?

Rating

7

Confidence

5

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes.

Reviewer XVVX2024-08-12

please plot the coefficent curve

1. It's recommended to plot the current dynamic coefficient curve. 2. Is there exisits a general coefficient curve that is suitable for most of the prompt? If it is possible, there's no need for an optimization-based method that requires gradient backward, which will be mush easier for real application. 3. It's recommended to show the results of the fixed coefficient (the best selected) instead of dynamic coefficient.

Authorsrebuttal2024-08-12

Response to Reviewer XVVX

Thank you for the response! In the following we provide additional explanations regarding to your questions. Please feel free to let us know if these address your concerns. **Q1: It's recommended to plot the current dynamic coefficient curve.** A1: Thank you for your suggestion. Unfortunately, **due to NeurIPS's requirement that no anonymous links be included in the rebuttal**, we regret that we cannot provide you with the dynamic coefficient curve at this time. However, we will certainly include this experiment and its analysis in the revised manuscript. Just a gentle reminder, **in Figure 10 of our paper**, we present the curve showing the gradient of the loss function (Eq 6) with respect to the coefficient during the denoising process. The figure illustrates that the coefficient exhibits significant convergence during denoising, and there are distinct update patterns for the coefficient when using different backbones in RealCompo. **Q2: Is there exisits a general coefficient curve that is suitable for most of the prompt? If it is possible, there's no need for an optimization-based method that requires gradient backward, which will be mush easier for real application.** A2: It is a valuable view to explore a general coefficient curve. However, we observed that the coefficient varies depending on the prompt based on extensive experiments. This is because **the coefficient is primarily optimized based on the layout, and different prompts correspond to different layouts, leading to varying coefficients**. We will certainly include visualizations and analysis of this part in the revised manuscript. Additionally, as seen in Figure 10, **RealCompo with different backbones also requires distinct coefficient update strategies**. But I agree that having a general coefficient curve would make the application of our method more convenient and meaningful. Thank you for your thoughtful suggestions. This is a preliminary attempt, and we will explore the potential of a general coefficient curve in the future. **Q3: It's recommended to show the results of the fixed coefficient (the best selected) instead of dynamic coefficient.** A3: Thank you for your suggestion. **In the third column of Figure 8** (w/o Dynamic Balancer) in the paper, we present the results of experiments **using a simple fixed coefficient, where both models have the same coefficient**. The figure illustrates that without dynamically updating the coefficient, the T2I model, which lacks layout constraints, negatively impacts the positioning capability of the L2I model. This results in generated images where the object positions do not align with the layout, despite the T2I model retaining a higher realism advantage. We will include additional manually designed fixed coefficients in the manuscript to validate the effectiveness of our method.

Reviewer XVVX2024-08-13

The rebuttal addressed my concerns.

1. The rebuttal has satisfactorily addressed my concerns regarding real-world applications, particularly the issue that the proposed method requires gradient backpropagation, which demands more memory and increases inference time. The training-free approach introduced in this paper achieves remarkable improvements in both controllability and realism. It also expands the family of model ensembling/checkpoint merging techniques, which are extensively used in the diffusion community. Considering that classifier-free guidance also requires double the forward passes but results in exceptional performance, I am inclined to view this paper positively. 2. Given the potential of this paper to apply a fixed coefficient that eliminates the need for gradient backpropagation, I am raising my score from weak accept to accept. Nevertheless, I strongly recommend that the authors provide further analysis on the use of a fixed coefficient. For example, in real-world applications, although we can apply an optimal or dynamic CFG for different models, prompts, or timesteps, a fixed constant CFG strategy is often employed and still results in significant improvements. Additionally, a fixed dynamic CFG for different timesteps that does not require gradient backpropagation, such as cosine CFG or the CFG used by MDT, could be considered. 3. Leveraging large language models (LLMs) to orchestrate various tools and utilize multiple models to complete complex tasks—such as generating layouts, keypoints, or segmentation as intermediate steps—represents a promising future direction. This approach could provide more effective solutions for challenging problems like multi-object generation and attribute binding.

Authorsrebuttal2024-08-13

Thank you for your support

Thank you very much for raising the score! We sincerely appreciate your valuable comments and the time and effort you put into reviewing our paper. Based on your thoughtful suggestion of a fixed-coefficient strategy, we make sure to plan additional experiments to analyze its feasibility and identify the optimal fixed coefficient to enhance the efficiency and quality of our method. Thank you once again for your invaluable contribution to our research. Warm Regards, The Authors

Reviewer juPc2024-08-11

Thank the authors for the detailed response. I appreciate the additional information provided. However, I can't find the mentioned supplementary PDF that contains Figures 3, 4, and 5. I've checked the paper's appendix and the supplementary .zip file (which only has code). Could you please provide this PDF or clarify where to find it?

Authorsrebuttal2024-08-11

Response to Reviewer juPc

Dear Esteemed Reviewer juPc, Thank you for your kindly response. We would like to clarify that the supplement PDF refers to **the pdf in global response**. We apologize for any confusion this may have caused. Should there be any further points that require clarification or improvement, please know that we are fully committed to addressing them promptly. Thank you once again for your invaluable contribution to our research. Warm Regards, The Authors

Reviewer juPc2024-08-12

Thank the authors for the clarification. I would like to believe the explanation about realism improvement. However, the improved aesthetic quality, as indicated by Table 2 and the second paragraph of Sec 4.2, is still hard to comprehend. Meanwhile, the authors also noticed that "T2I model outperforms in detail and aesthetics" in Fig 5 in the newly provided PDF. I would like the authors to further clarify this.

Authorsrebuttal2024-08-12

Response to Reviewer juPc

Thank you for the response! In the following we provide additional explanations regarding to your questions. Please feel free to let us know if these address your concerns. **Q1: The improved aesthetic quality, as indicated by Table 2 and the second paragraph of Sec 4.2, is still hard to comprehend.** A1: We would like to emphasize that the aesthetic predictor was trained using the Aesthetic Visual Analysis (AVA) and Simulacra Aesthetic Captions (SAC) datasets, **both of which are annotated by experts or photography enthusiasts**. In these datasets, each image is given a score ranging from 1 to 10 based on its perceived appeal. **It is important to note that these annotators tend to be more critical of images that appear unnatural or fake (i.e., images with unrealistic or awkward compositions)**. The aesthetic predictor is designed to filter out high-quality images that excel in both detail representation and composition. The aesthetic scores for the images in Figure 5 in the newly provided PDF are provided as follows: | | Aesthetic Score$\uparrow$ | | ------------------ | ----------------------------- | | Fig5 (a)-T2I Model | 5.304 | | Fig5 (a)-RealCompo | **5.653** | | Fig5 (b)-T2I Model | 5.269 | | Fig5 (b)-RealCompo | **5.775** | | Fig5 (c)-T2I Model | 5.471 | | Fig5 (b)-RealCompo | **5.884** | From the table, it can be observed that when the images have similar levels of detail and visual refinement, **the aesthetic predictor assigns a higher aesthetic score to images with more reasonable positioning**. **Q2: The authors also noticed that "T2I model outperforms in detail and aesthetics" in Fig 5 in the newly provided PDF.** A2: Thank you for your comment, and we apologize for any confusion caused. Here, we intended to convey that T2I models excel in terms of detail and **visual refinement**. We realize that our use of the term "aesthetic" may have led to confusion, as **it was not meant to refer to the aesthetic score in this context**. We apologize again for any misunderstanding this may have caused. We will review and refine the manuscript to to clarify the two issues you have raised.

Reviewer juPc2024-08-12

I would like to thank the authors for their detailed explanations. Having considered the responses to my questions and those of other reviewers, I am changing my rating from borderline reject to weak accept.

Authorsrebuttal2024-08-12

Thank you for your support

Thank you very much for raising the score! We sincerely appreciate your valuable comments and the time and effort you put into reviewing our paper. We will make sure to incorporate these suggestions into the final manuscript. Warm Regards, The Authors

Authorsrebuttal2024-08-11

A minor clarify

Dear Esteemed Reviewer XVVX, We would like to clarify that the supplement PDF refers to **the pdf in global response**. We apologize for any confusion this may have caused. Should there be any further points that require clarification or improvement, please know that we are fully committed to addressing them promptly. Thank you once again for your invaluable contribution to our research. Warm Regards, The Authors

Authorsrebuttal2024-08-11

A minor clarify

Dear Esteemed Reviewer ZHfz, We would like to clarify that the supplement PDF refers to **the pdf in global response**. We apologize for any confusion this may have caused. Should there be any further points that require clarification or improvement, please know that we are fully committed to addressing them promptly. Thank you once again for your invaluable contribution to our research. Warm Regards, The Authors

Reviewer ZHfz2024-08-13

My questions are all well addressed, and I decided to increase my rating to weak accept. BTW, PLEASE make the necessary revisions in the final version according to the questions listed above.

Authorsrebuttal2024-08-13

Thank you for your support

Thank you very much for raising the score! We sincerely appreciate your valuable comments and the time and effort you put into reviewing our paper. We will make sure to incorporate these suggestions into the final manuscript. Warm Regards, The Authors

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC