扩散模型如何记忆训练数据:文本到图像潜在扩散模型的数学解释
How Diffusion Models Memorize
研究对带无分类器引导的文本到图像潜在扩散模型给出数学解释:当训练提示词—图像对的损失足够低时,带提示词的预测在首个去噪步即可高概率复现对应训练潜变量。研究进一步界定无提示词预测与训练潜变量经验均值之差,说明引导会放大复现潜变量相对该均值的偏离,并量化潜变量在去噪步间传递提示词影响的方式。该解释统一说明了现有的记忆检测与缓解策略。
arXiv:2509.25705v2 Announce Type: replace Abstract: Despite their success in image generation, diffusion models can unintentionally memorize and reproduce training data, raising serious privacy and copyright concerns. Although prior work has studied memorization from different perspectives, a unified account of how this reproduction occurs during generation remains incomplete. In this paper, we develop a mathematical account of this process in text-to-image latent diffusion models with classifier-free guidance. We trace reproduction across denoising steps through predictions of the final denoised latent made with and without the prompt. Assuming these predictions are Bayes-optimal and uniformly bounded, we show that sufficiently low loss on a training prompt--image pair enables the prediction made with the prompt to reproduce the paired training latent with high probability, even at the first denoising step. At this first step, we bound the difference between the prediction made without the prompt and the empirical mean of the training latents, showing how guidance amplifies the reproduced training latent's deviation from that mean. We then quantify how the latent passed between denoising steps carries prompt influence to subsequent predictions made without the prompt. When both predictions are sufficiently close to the paired training latent at the final step, their guided combination also reproduces it in the final generated latent. We also analyze how their difference evolves, showing that closer agreement alone does not establish reproduction. Finally, our account provides a unified explanation of existing detection and mitigation strategies.
来源:arXiv (AI + Vision + Imaging) · arxiv.org