Summary
This paper investigates the behavior of classifier-free guidance and proposes an adjustment in its application during sampling. Instead of applying a constant weight for the guidance scale across all sampling steps, the authors suggest that the guidance should be deactivated at high and low noise scales and applied only at intermediate levels. Experimental results with EDM2 and SDXL models indicate that guidance at high noise scales is detrimental, while at lower noise levels, its contribution is negligible. Thus, the guidance interval should be incorporated as part of the sampling hyperparameters for conditional diffusion models.
Strengths
- As classifier-free guidance is an essential part of all diffusion models, the paper takes an important step to reduce the harmful effects of high guidance scales.
- The proposed method is straightforward to implement and can be integrated into any model, making it valuable to the broader NeurIPS community.
- The authors provide thorough experiments analyzing the impact of applying CFG over an interval.
- The effectiveness of the method is also shown on toy datasets.
- The paper is well-written and easy to understand.
Weaknesses
The main weakness of the work is a lack of discussion of existing works that address the issues of high-guidance scales. For example, the concept of using a non-constant guidance weight for CFG is also introduced in [1] (referred to as dynamic-CFG), and the current method of the paper is dynamic-CFG with a specific weight schedule (namely $w$ for $\sigma \in [\sigma_{lo}, \sigma_{hi}]$ and 1 otherwise). In addition, similar ideas have been explored in [1, 2, 3] in the form using a linear/cosine schedule for the guidance weight or annealing the conditioning vector to improve the diversity of generations at higher guidance scales. Moreover, half of the conclusion of the paper is already stated in [4] (i.e. guidance does nothing at lower noise levels). Accordingly, the paper would benefit from a more comprehensive related work section.
[1] Sadat, S., Buhmann, J., Bradley, D., Hilliges, O. and Weber, R.M., CADS: Unleashing the Diversity of Diffusion Models through Condition-Annealed Sampling. In The Twelfth International Conference on Learning Representations (2024).
[2] Chang H, Zhang H, Barber J, Maschinot AJ, Lezama J, Jiang L, Yang MH, Murphy K, Freeman WT, Rubinstein M, Li Y. Muse: Text-to-image generation via masked generative transformers. arXiv preprint arXiv:2301.00704. 2023 Jan 2.
[3] Gao, Shanghua, et al. "Masked diffusion transformer is a strong image synthesizer." Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023.
[4] Castillo A, Kohler J, Pérez JC, Pérez JP, Pumarola A, Ghanem B, Arbeláez P, Thabet A. Adaptive guidance: Training-free acceleration of conditional diffusion models. arXiv preprint arXiv:2312.12487. 2023 Dec 19.
Questions
1. Is Figure 3 compiled with a fixed EMA profile for the EDM2 model or is the EMA profile also optimized along with the guidance parameters?
2. Can you explain lines 112-118 in more detail? Does that mean you always use the low and high guidance scales based on the sampling discretization? This part was not very clear to me.
3. Can you also plot Precision/Recall curves for the method to show the impact of interval guidance on quality and diversity in isolation?
4. One major advantage of high classifier-free guidance is image-text alignment. Does the proposed method have a noticeable impact in this area? For example, in Figure 7, it seems that some parts of the prompt are more strongly emphasized by the normal CFG (e.g., the sky is orange).
5. Does the optimal guidance interval change when modifying the sampling algorithm, or are the thresholds mainly model dependent?