通过逆蒸馏实现数据遗忘

·

研究论文 · 2026/10/06

多步匹配模型(包括流模型和扩散模型)能生成高质量输出,但推理成本高,且可能复现训练数据中不需要的部分。我们提出逆蒸馏遗忘(IDU),一个统一框架,可同时将教师多步匹配模型蒸馏为高效的单步学生生成器,并抑制与指定训练子集对应的输出。我们首先将蒸馏形式化为数据分布上的极小极大目标,然后将该分布表示为遗忘集与生成分布的混合。这使我们能够将此混合与教师的训练分布进行比较,并在最优时仅恢复保留数据。我们的方法仅需预训练的全数据教师和遗忘集数据,无需访问保留训练样本、额外特征提取器或分类器。在MNIST和CIFAR-10数据集上,在流匹配和基于分数的扩散设置下的广泛实验表明,IDU大幅降低了遗忘类别的生成频率,同时保持了保留类别的生成质量。据我们所知,IDU是首个在无条件流匹配和基于分数模型中同时进行遗忘和蒸馏的统一框架。

该工作首次统一了多步匹配模型的遗忘与蒸馏,在无需保留数据的情况下实现高效单步生成并抑制遗忘内容,对隐私保护和高效推理具有重要价值。

Multi-step matching models, including flow and diffusion models, produce high-quality outputs but incur substantial inference costs and may reproduce unwanted components of their training datasets. We introduce Inverse Distillation Unlearning (IDU), a unified framework that simultaneously distills a teacher multi-step matching model into an efficient one-step student generator and suppresses outputs corresponding to a designated training subset. We first formulate distillation as a min-max objective over a data distribution and then represent this distribution as a mixture of the forget-set and the generated distributions. This allows us to compare this mixture with the teacher's training distribution and recover only the retained data at the optimum. Our method requires only a pretrained full-data teacher and data from the forget set, without access to retained training examples, extra feature extractors or classifiers. Extensive experiments on MNIST and CIFAR-10 datasets under flow-matching and score-based diffusion settings demonstrate that IDU substantially reduces the generation frequency of forgotten classes while preserving generation quality on the retained classes. To the best of our knowledge, IDU is the first unified framework for simultaneous unlearning and distillation in unconditional flow-matching and score-based models.

阅读原文

参与讨论