arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.19931cs.CVcs.AIcs.LG
收藏

探索扩散模型在少样本微调中的腐蚀阶段并利用贝叶斯神经网络缓解

Exploring Diffusion Models' Corruption Stage in Few-Shot Fine-tuning and Mitigating with Bayesian Neural Networks

Shanghai Jiao Tong University(上海交通大学);Queen’s University Belfast(女王学院 Belfast);Tsinghua University(清华大学);Stevens Institute of Technology(史蒂文斯理工学院)

Xiaoyu Wu, Jiaru Zhang, Yang Hua, Bohan Lyu, Hao Wang, Tao Song, Haibing Guan

AI总结:

本研究通过贝叶斯神经网络缓解扩散模型在少样本微调中的腐蚀阶段问题,提升生成图像质量。

摘要:

扩散模型(DMs)的少样本微调是一种关键进展,显著降低了训练成本并使个性化AI应用成为可能。然而,我们探索了DMs的训练动态,并观察到一个意外现象:在训练过程中,图像保真度最初会改善,然后意外恶化,出现噪声模式,随后又因严重过拟合而恢复。我们将出现生成噪声模式的阶段称为腐蚀阶段。为了理解这一腐蚀阶段,我们首先理论建模单次微调场景,然后将其扩展到更一般的情况。通过这种建模,我们识别出腐蚀阶段的主要原因:少样本微调本质上存在的学习分布变窄。为解决这一问题,我们应用贝叶斯神经网络(BNNs)到DMs上,通过变分推断隐式地扩展学习分布,并提出BNNs的学习目标可以自然地被视为扩散损失的期望以及与预训练DMs的进一步正则化。这种方法与当前DMs的少样本微调方法高度兼容,且不引入额外的推理成本。实验结果表明,我们的方法显著缓解了腐蚀问题,并在对象驱动和主体驱动的生成任务中提高了生成图像的保真度、质量和多样性。代码可在https://github.com/Nicholas0228/BNN-Finetuning-DMs获取。

英文摘要:

Few-shot fine-tuning of Diffusion Models (DMs) is a key advancement, significantly reducing training costs and enabling personalized AI applications. However, we explore the training dynamics of DMs and observe an unanticipated phenomenon: during the training process, image fidelity initially improves, then unexpectedly deteriorates with the emergence of noisy patterns, only to recover later with severe overfitting. We term the stage with generated noisy patterns as corruption stage. To understand this corruption stage, we begin by theoretically modeling the one-shot fine-tuning scenario, and then extend this modeling to more general cases. Through this modeling, we identify the primary cause of this corruption stage: a narrowed learning distribution inherent in the nature of few-shot fine-tuning. To tackle this, we apply Bayesian Neural Networks (BNNs) on DMs with variational inference to implicitly broaden the learned distribution, and present that the learning target of the BNNs can be naturally regarded as an expectation of the diffusion loss and a further regularization with the pretrained DMs. This approach is highly compatible with current few-shot fine-tuning methods in DMs and does not introduce any extra inference costs. Experimental results demonstrate that our method significantly mitigates corruption, and improves the fidelity, quality and diversity of the generated images in both object-driven and subject-driven generation tasks. Code is available at https://github.com/Nicholas0228/BNN-Finetuning-DMs.

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

↑