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

论扩散模型中的记忆现象

On Memorization in Diffusion Models

National University of Singapore(新加坡国立大学);Sea AI Lab(Sea AI实验室)

Xiangming Gu, Chao Du, Tianyu Pang, Chongxuan Li, Min Lin, Ye Wang

AI总结:

本文提出有效模型记忆(EMM)度量,分析扩散模型在何种数据规模与因素下逼近只能复制训练样本的理论最优,并实证揭示随机标签条件会显著增强记忆。

摘要:

由于能够生成新颖且高质量的样本,扩散模型近年来吸引了大量研究兴趣。值得注意的是,扩散模型的典型训练目标,即去噪分数匹配,具有一个闭式最优解,而该解只能生成复制训练数据的样本。这表明记忆行为在理论上是预期的,这与当前最先进扩散模型通常具备的泛化能力相矛盾,因此需要更深入的理解。针对这一问题,我们首先观察到记忆行为倾向于在较小规模的数据集上发生,这促使我们定义了有效模型记忆(EMM),这一度量用于衡量训练数据的最大规模,在该规模下学习到的扩散模型会逼近其理论最优解。随后,我们依据 EMM 量化了影响因素对这些记忆行为的作用,重点关注数据分布、模型配置和训练过程。除了通过全面的实证结果识别这些影响因素外,我们还意外发现,用无信息的随机标签作为训练数据的条件,会显著触发扩散模型中的记忆。我们的研究对扩散模型使用者具有实际意义,并为深度生成模型的理论研究提供了线索。代码可在 https://github.com/sail-sg/DiffMemorize 获取。

英文摘要:

Due to their capacity to generate novel and high-quality samples, diffusion models have attracted significant research interest in recent years. Notably, the typical training objective of diffusion models, i.e., denoising score matching, has a closed-form optimal solution that can only generate training data replicating samples. This indicates that a memorization behavior is theoretically expected, which contradicts the common generalization ability of state-of-the-art diffusion models, and thus calls for a deeper understanding. Looking into this, we first observe that memorization behaviors tend to occur on smaller-sized datasets, which motivates our definition of effective model memorization (EMM), a metric measuring the maximum size of training data at which a learned diffusion model approximates its theoretical optimum. Then, we quantify the impact of the influential factors on these memorization behaviors in terms of EMM, focusing primarily on data distribution, model configuration, and training procedure. Besides comprehensive empirical results identifying the influential factors, we surprisingly find that conditioning training data on uninformative random labels can significantly trigger the memorization in diffusion models. Our study holds practical significance for diffusion model users and offers clues to theoretical research in deep generative models. Code is available at https://github.com/sail-sg/DiffMemorize.

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

↑