Authors: Aleksei Leonov, Nikita Kornilov, Zhenhe Zhang, Evgeny Burnaev, Iaroslav Koshelev, Alexander Korotin
Organizations: AI Foundation lab, Moscow, Russia · MIRAI, Moscow, Russia · Applied AI Institute, Moscow, Russia · BRAIn Lab, Moscow, Russia · AXXX, Moscow, Russia
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.
Figures & tables
Figure 1: Pipeline of our IDU framework . Forget and generated samples form two forward-noising branches. The framework alternates between two steps: first, update the fake model on both branches with weights ρ and 1−ρ to detect generations similar to the forget samples, then update the generator to suppress these generations using the frozen teacher and the fake model.
Table 1: Main FM/SiD results on MNIST and CIFAR-10. FID uses full-data references for Pretrain/Pure distillation and retained-data references for Retrain/IDU; FGR is reported per forgotten class. Values are mean ± standard deviation over five runs, except † values from ( Zhou et al., 2024 ) .
FM MNIST
FM CIFAR-10
SiD CIFAR-10
Forgotten Class
Retain FID ↓
FGR (%) ↓
Retain FID ↓
FGR (%) ↓
Retain FID ↓
FGR (%) ↓
0
5.05±0.03
0.10±0.01
6.52±0.06
0.76±0.03
3.54±0.02
0.58±0.03
1
3.46±0.04
0.03±0.01
6.45±0.09
1.06±0.07
2.96±0.01
0.61±0.03
2
3.84±0.02
0.12±0.01
7.83±0.05
0.73±0.04
4.07±0.05
0.87±0.04
3
5.23±0.03
0.10±0.01
7.82±0.08
1.51±0.04
4.10±0.02
1.11±0.02
4
4.71±0.03
0.13±0.02
8.53±0.08
0.82±0.04
4.13±0.03
0.78±0.05
Table 2: Single-class robustness of IDU with FM on MNIST and CIFAR-10 and with SiD on CIFAR-10. The final row averages the per-class means across the ten forget-class experiments.
Flow Matching
SiD
ρ
FID ↓
FGR 1 (%) ↓
FGR 9 (%) ↓
ρ
FID ↓
FGR 1 (%) ↓
FGR 9 (%) ↓
0.05
6.72±0.07
3.04±0.08
5.02±0.08
—
0.1
6.21±0.05
3.75±0.09
3.80±0.08
—
0.2
5.64±0.04
3.35±0.03
3.04±0.10
0.2
3.15±0.03
1.11±0.06
1.25±0.06
0.4
5.87±0.07
0.62±0.06
0.48±0.02
0.4
3.53±0.04
0.74±0.05
0.60±0.01
0.6
5.81±0.05
0.56±0.05
0.39±0.03
0.6
4.68±0.06
1.16±0.05
0.76±0.02
Table 3: Effect of the forget-mixture weight ρ on CIFAR-10 for FM- and SiD-based IDU when jointly forgetting automobile (class 1) and truck (class 9). The selected configuration for each setup is bold; dashes denote settings not evaluated with SiD. FM training at ρ=0.9 diverges immediately.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
FM
SiD
Mode
FID ↓
FGR (%) ↓ Class 1 / Class 9
FID ↓
FGR (%) ↓ Class 1 / Class 9
Pretrain
3.66±0.03
12.50±0.0811.18±0.12
1.97†
11.13±0.1210.04±0.15
Pure distillation
4.35±0.05
7.58±0.098.75±0.21
1.92±0.02†
10.11±0.1410.66±0.14
Forgotten classes
{1,9}
{1,9}
IDU from scratch (ρCIFAR-10=0.6)(ρSiD=0.2)
5.81±0.05
0.56±0.050.39±0.03
3.15±0.03
1.11±0.061.25±0.06
IDU Fine-tuning (ρCIFAR-10=0.6)(ρSiD=0.2)
5.17±0.08
0.89±0.020.42±0.03
3.12±0.06
2.69±0.062.60±0.04
Appendix
Table 4: Fine-tune FM/SiD results for the purely distilled generators on CIFAR-10. FID uses full-data references for Pretrain/Pure distillation and retained-data references for IDU and fine-tuning; FGR is reported per forgotten class. Values are mean ± standard deviation over five runs, except † values from ( Zhou et al., 2024 ) .
ρ
Retain FID ↓
FGR 3 (%) ↓
FGR 7 (%) ↓
Additional suppressed digits
0.05
4.29±0.02
7.07±0.06
8.18±0.06
—
0.1
3.96±0.04
3.87±0.09
4.62±0.10
—
0.2
4.81±0.08
2.22±0.07
1.63±0.07
—
0.4
3.57±0.03
0.16±0.01
0.16±0.01
—
0.6
11.20±0.10
0
0
2, 5, 8
0.8
10.58±0.07
0
0
2, 5
Appendix
Table 5: Effect of the forget-mixture weight ρ on FM-based IDU for MNIST when jointly forgetting digits 3 and 7. The main configuration is bold. The final column lists qualitatively suppressed digits in addition to the target digits 3 and 7.
Figure 2: FM on MNIST: teacher and IDU samples when forgetting digits 3 and 7.
Figure 3: SiD on MNIST: teacher and IDU samples when forgetting digits 3 and 7.
Figure 4: FM on CIFAR-10: teacher and IDU samples when forgetting automobile (class 1) and truck (class 9).
Figure 5: SiD on CIFAR-10: teacher and IDU samples when forgetting automobile (class 1) and truck (class 9).
Machine unlearning removes the influence of selected data or concepts from trained models while preserving useful behavior and avoiding full retraining.