重新分配集成训练以减轻扩散模型中的记忆问题
Redistribute Ensemble Training for Mitigating Memorization in Diffusion Models
AI总结:
针对扩散模型的视觉模态记忆问题,提出IET-AGC+方法,通过分片训练代理模型、跳过异常低损失样本、重新分配高记忆样本及动态增强样本,在4个数据集上保持性能并降低记忆能力,微调Stable Diffusion使记忆分数降46.7%。
摘要:
扩散模型以其生成高质量样本的卓越能力而闻名,但最近因其数据记忆行为引发关注,这种行为带来了隐私风险。现有的记忆缓解方法主要针对跨模态生成任务中的文本模态,限制了其在特定条件下的适用性。本文从视觉模态的角度提出一种新的扩散模型方法,该方法更通用且更基础,用于缓解记忆问题。直接将视觉数据暴露给模型会增加记忆风险,因此我们设计了一个框架,让模型通过代理模型参数进行学习。具体而言,训练数据集被划分为多个分片,每个分片训练一个代理模型,然后聚合形成最终模型。此外,对训练损失的实际分析表明,容易被记忆的图像的损失值往往明显更低。因此,我们跳过当前小批量中损失值异常低的样本,以避免记忆。然而,平衡跳过易记忆样本的需求与维持高质量图像生成所需的足够训练数据之间存在关键挑战。为此,我们提出IET-AGC+,在分片之间重新分配高度可记忆的样本,以缓解这些样本被过度跳过的问题。此外,我们根据样本的损失值动态增强样本,进一步减少记忆。在四个数据集上的大量实验和分析表明,我们的方法在保持性能的同时成功降低了记忆能力。此外,我们对预训练的扩散模型(如Stable Diffusion)进行微调,将记忆分数降低了46.7%,证明了我们方法的有效性。代码可在:https://github.com/liuxiao-guan/IET_AGC 获取。
英文摘要:
Diffusion models, known for their tremendous ability to generate high-quality samples, have recently raised concerns due to their data memorization behavior, which poses privacy risks. Recent methods for memory mitigation have primarily addressed the issue within the context of the text modality in cross-modal generation tasks, restricting their applicability to specific conditions. In this paper, we propose a novel method for diffusion models from the perspective of visual modality, which is more generic and fundamental for mitigating memorization. Directly exposing visual data to the model increases memorization risk, so we design a framework where models learn through proxy model parameters instead. Specially, the training dataset is divided into multiple shards, with each shard training a proxy model, then aggregated to form the final model. Additionally, practical analysis of training losses illustrates that the losses for easily memorable images tend to be obviously lower. Thus, we skip the samples with abnormally low loss values from the current mini-batch to avoid memorizing. However, balancing the need to skip memorization-prone samples while maintaining sufficient training data for high-quality image generation presents a key challenge. Thus, we propose IET-AGC+, which redistributes highly memorizable samples between shards, to mitigate these samples from over-skipping. Furthermore, we dynamically augment samples based on their loss values to further reduce memorization. Extensive experiments and analysis on four datasets show that our method successfully reduces memory capacity while maintaining performance. Moreover, we fine-tune the pre-trained diffusion models, e.g., Stable Diffusion, and decrease the memorization score by 46.7\%, demonstrating the effectiveness of our method. Code is available in: https://github.com/liuxiao-guan/IET_AGC.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。