BEND: Spectral Bregman Losses for Multi-Image Unlearning in Diffusion Models
Organizations: Department of Computer Science, ETH Zurich
Abstract
Diffusion models memorize training images and reproduce them almost verbatim when prompted, creating copyright and privacy liabilities. Data unlearning erases the influence of specific training samples from a trained model without retraining, and is two-sided: it must forget the targets while preserving generation quality on everything else. Prior methods use the squared-L2 diffusion loss, at most with a hand-set frequency mask; however, it is known that every Bregman divergence is a mathematically valid choice and the squared-L2 is only the simplest example. BEND is the first to search this family: it fits a spectral Bregman divergence to the unlearning task through a bilevel loop, so the loss itself is shaped to forget thoroughly while protecting quality. It also redirects a memorized image to the mean of its retain images, where ReTrack, the state of the art, redirects it to a single near-copy. On Stable Diffusion, a single BEND model erases all 48 verifiably memorized benchmark images at once. It forgets at least as much as per-target, sequential, and jointly trained ReTrack (SSCD 0.084 versus 0.094-0.120), at the quality of the model before unlearning (CLIP-IQA 0.81 versus 0.64-0.69). BEND also outperforms the state of the art on CelebA-HQ in all three measures of the benchmark, and matches or exceeds it on MNIST and CIFAR-10.
Figures & tables
| Memorized prompt | Modified prompt | Unrelated | Prompt fidelity | |||||
| Method | CLIP-IQA | SSCD | CLIP-IQA | SSCD | CLIP-IQA | CLIP-T | CLIP-I | |
| Pretrained † | ||||||||
| models | ReTrack-fleet | |||||||
| One model | ReTrack-cascade | |||||||
| ReTrack-joint | ||||||||
| BEND (ours) | ||||||||
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Effective number | SSCD, | ||
|---|---|---|---|
| all retain | redirect | ||
| Step | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Half A | 1 | ||||||||
| 2 | |||||||||
| 3 | |||||||||
| Half B | 1 | ||||||||
| 2 | |||||||||
| 3 |
| Memorized prompt | Modified prompt | Unrelated | Prompt fidelity | |||||
| Method | CLIP-IQA | SSCD | CLIP-IQA | SSCD | CLIP-IQA | CLIP-T | CLIP-I | |
| Pretrained † | ||||||||
| models | ReTrack-fleet | |||||||
| Vanilla | ||||||||
| NegGrad | ||||||||
| EraseDiff | ||||||||
| Candidate | SSCD | IQA | CLIP-I | ||
|---|---|---|---|---|---|
| Half A | after step two | ||||
| combined | |||||
| (kept) | |||||
| Half B | after step two |
| Potential | Half A | Half B |
|---|---|---|
| Squared- (start) | ||
| Hand-set low-pass | ||
| BEND, one step | ||
| BEND, two steps | ||
| BEND, three steps |
| Decision of the search | Half A | Half B |
|---|---|---|
| Step one, direction (cosine) | ||
| Step one, point on the line | ||
| Step two | ||
| Step three, in the best three | ||
| Step three, selected move | ||
| of these with | of | of |
| Memorized prompt | Modified prompt | Unrelated | Prompt fidelity | |||||
| Target | Potential | CLIP-IQA | SSCD | CLIP-IQA | SSCD | CLIP-IQA | CLIP-T | CLIP-I |
| ReTrack | squared- , steps | |||||||
| squared- , stop rule | ||||||||
| hand-set | ||||||||
| Retain mean | squared- | |||||||
| hand-set | ||||||||
| Metric | Difference | interval |
| BEND ReTrack-joint | ||
| CLIP-IQA | ||
| SSCD | ||
| CLIP-T | ||
| CLIP-I | ||
| BEND ReTrack-fleet | ||
| Memorized prompt | Modified prompt | Unrelated | Prompt fidelity | ||||
|---|---|---|---|---|---|---|---|
| System | CLIP-IQA | SSCD | CLIP-IQA | SSCD | CLIP-IQA | CLIP-T | CLIP-I |
| BEND | |||||||
| Target: mean of the nearest retain images | |||||||
| Target: ReTrack’s weights over the nearest | |||||||
| Without the retain term ( ) | |||||||
| Worst | Above | Repli- | CLIP-IQA | |
|---|---|---|---|---|
| System | SSCD | retain level | cated | |
| ReTrack-fleet | – | – | – | – |
| ReTrack-cascade | – | – | – | – |
| ReTrack-joint | – | – | – | |
| Hand-set | – | – | – | |
| BEND, one step | – | – | – | – |
| System | Steps | CLIP-T | CLIP-I | IQA | SSCD |
|---|---|---|---|---|---|
| ReTrack-joint | |||||
| Hand-set | |||||
| BEND, one step |
| Benchmark sampler | Pipeline default | |||||||
|---|---|---|---|---|---|---|---|---|
| System | IQA | SSCD | T | I | IQA | SSCD | T | I |
| Pretrained | ||||||||
| ReTrack-cascade | ||||||||
| ReTrack-joint | ||||||||
| ReTrack target, hand-set | ||||||||
| BEND target, | ||||||||
| Memorized prompt | Modified prompt | |||||||
|---|---|---|---|---|---|---|---|---|
| System | DINOv2 | CLIP | MUSIQ | TOPIQ | DINOv2 | CLIP | MUSIQ | TOPIQ |
| Pretrained | ||||||||
| ReTrack-cascade | ||||||||
| ReTrack-joint | ||||||||
| BEND (ours) | ||||||||
| ReTrack target, hand-set | ||||||||
| System | LPIPS | MUSIQ | TOPIQ |
|---|---|---|---|
| Pretrained | – | ||
| ReTrack-cascade | |||
| ReTrack-joint | |||
| BEND (ours) | |||
| ReTrack target, hand-set | |||
| BEND target, squared- |
| System | KID | FID | CLIP-T |
|---|---|---|---|
| Pretrained, fresh noise | |||
| ReTrack-cascade | |||
| ReTrack-joint | |||
| BEND (ours) |
| Memorized prompt | Modified prompt | Unrelated | Prompt fidelity | ||||
|---|---|---|---|---|---|---|---|
| System | CLIP-IQA | SSCD | CLIP-IQA | SSCD | CLIP-IQA | CLIP-T | CLIP-I |
| BEND (ours) | |||||||
| Mask of [ 12 ] , BEND target | |||||||
| Mask of [ 12 ] , ReTrack target | |||||||
| BEND | ReTrack-joint | |||||
|---|---|---|---|---|---|---|
| Steps | SSCD | Repl. | IQA | SSCD | Repl. | IQA |
| Freq. | ||||
| Method | (%) | NLL | FID | IS |
| ReTrack | ||||
| BEND | ||||
| Squared- | ||||
| Candidate | Half A | Half B |
|---|---|---|
| ReTrack | ||
| Mean target, squared- (start) | ||
| Single move | ||
| Along the direction, largest move | ||
| largest move | ||
| largest move |
| Method | NLL | SSCD | FID | IS |
|---|---|---|---|---|
| ReTrack | ||||
| BEND | ||||
| Squared- | ||||
| Low-pass | ||||
| -step search |
| Method | NLL | SSCD | FID |
|---|---|---|---|
| ReTrack | |||
| BEND | |||
| Mean, squared- |
Diffusion Model Unlearning
Diffusion model unlearning removes specified concepts or training examples from generative models while preserving unrelated generation.
See all 87 papers