arXiv:2410.02416cs.LGcs.CV2024-10ICLR被引 113

解决扩散模型高引导尺度下的过饱和与伪影问题

Eliminating Oversaturation and Artifacts of High Guidance Scales in Diffusion Models

  • 分离引导更新项的平行与正交分量,抑制过饱和来源
  • 新方法在不增加计算开销下实现更高引导尺度无失真生成
  • 适用于多种模型和采样器,可直接替换现有引导机制

Classifier-free guidance(CFG)对提升扩散模型的生成质量与条件对齐至关重要。尽管高引导尺度能增强这些特性,却常引发过饱和与不真实伪影。本文重新审视CFG更新规则,将更新项分解为相对于条件模型预测的平行与正交分量,发现平行分量是过饱和主因,而正交分量提升图像质量。为此提出降权平行分量的自适应投影引导(APG),在保持质量优势的同时支持更高引导尺度且无过饱和。此外,基于CFG与梯度上升的联系,引入新的重缩放与动量策略。实验表明,APG兼容多种条件扩散模型与采样器,在保持精度接近CFG的同时,显著提升FID、召回率与饱和度得分,是一种无需修改即可替代标准CFG的高效插件式方案。

原文摘要 · Abstract (English)

Classifier-free guidance (CFG) is crucial for improving both generation quality and alignment between the input condition and final output in diffusion models. While a high guidance scale is generally required to enhance these aspects, it also causes oversaturation and unrealistic artifacts. In this paper, we revisit the CFG update rule and introduce modifications to address this issue. We first decompose the update term in CFG into parallel and orthogonal components with respect to the conditional model prediction and observe that the parallel component primarily causes oversaturation, while the orthogonal component enhances image quality. Accordingly, we propose down-weighting the parallel component to achieve high-quality generations without oversaturation. Additionally, we draw a connection between CFG and gradient ascent and introduce a new rescaling and momentum method for the CFG update rule based on this insight. Our approach, termed adaptive projected guidance (APG), retains the quality-boosting advantages of CFG while enabling the use of higher guidance scales without oversaturation. APG is easy to implement and introduces practically no additional computational overhead to the sampling process. Through extensive experiments, we demonstrate that APG is compatible with various conditional diffusion models and samplers, leading to improved FID, recall, and saturation scores while maintaining precision comparable to CFG, making our method a superior plug-and-play alternative to standard classifier-free guidance.

扩散模型生成质量引导机制图像生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。