arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15583cs.CV
收藏

通过偏移时间步采样缓解扩散模型中的曝光偏差

Alleviating Exposure Bias in Diffusion Models through Sampling with Shifted Time Steps

KU Leuven(鲁汶大学)

Mingxiao Li, Tingyu Qu, Ruicong Yao, Wei Sun, Marie-Francine Moens

AI总结:

本文针对扩散概率模型推理中的曝光偏差问题,提出无需重新训练的Time-Shift Sampler采样方法,通过为每个反向时间步寻找更优耦合的偏移时间步,显著提升FID分数并兼容多种采样算法。

摘要:

扩散概率模型(DPM)在高质量图像合成方面表现出显著效果。然而,其推理过程通常需要大量(可能数百个)迭代步骤,由于训练与推理之间的不一致,这可能加剧曝光偏差问题。以往工作试图通过在训练期间扰动输入来缓解这一问题,但这必然要求重新训练DPM。在本工作中,我们对DPM中的曝光偏差进行了系统性研究,并有趣地发现,可以通过我们提出的一种新颖采样方法来缓解曝光偏差,而无需重新训练模型。我们从经验和理论上表明,在推理过程中,对于每个反向时间步$t$及相应状态$\hat{x}_t$,可能存在另一个时间步$t_s$,它与$\hat{x}_t$表现出更优的耦合。基于这一发现,我们引入了一种名为Time-Shift Sampler的采样方法。我们的框架可以无缝集成到现有采样算法中,如DDPM、DDIM及其他高阶求解器,仅带来极少的额外计算。实验结果表明,我们的方法在不同数据集和采样方法上均带来了显著且一致的FID分数改进。例如,将Time-Shift Sampler集成到F-PNDM中,在CIFAR-10上以10个采样步骤获得FID=3.88,相比F-PNDM实现了44.49%的改进,这比使用100个采样步骤的原始DDIM表现更优。我们的代码可在https://github.com/Mingxiao-Li/TS-DPM获取。

英文摘要:

Diffusion Probabilistic Models (DPM) have shown remarkable efficacy in the synthesis of high-quality images. However, their inference process characteristically requires numerous, potentially hundreds, of iterative steps, which could exaggerate the problem of exposure bias due to the training and inference discrepancy. Previous work has attempted to mitigate this issue by perturbing inputs during training, which consequently mandates the retraining of the DPM. In this work, we conduct a systematic study of exposure bias in DPM and, intriguingly, we find that the exposure bias could be alleviated with a novel sampling method that we propose, without retraining the model. We empirically and theoretically show that, during inference, for each backward time step $t$ and corresponding state $\hat{x}_t$, there might exist another time step $t_s$ which exhibits superior coupling with $\hat{x}_t$. Based on this finding, we introduce a sampling method named Time-Shift Sampler. Our framework can be seamlessly integrated to existing sampling algorithms, such as DDPM, DDIM and other high-order solvers, inducing merely minimal additional computations. Experimental results show our method brings significant and consistent improvements in FID scores on different datasets and sampling methods. For example, integrating Time-Shift Sampler to F-PNDM yields a FID=3.88, achieving 44.49\% improvements as compared to F-PNDM, on CIFAR-10 with 10 sampling steps, which is more performant than the vanilla DDIM with 100 sampling steps. Our code is available at https://github.com/Mingxiao-Li/TS-DPM.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑