TL;DR
Few-step distilled (FSD) diffusion models generate images in the blink of an eye, but erasing unsafe or copyrighted concepts from them using standard "unlearning" tools breaks their generation quality. Rather than unlearning on the slow base model and spending hundreds of GPU hours re-distilling, this paper introduces CePU—a method that adapts preference optimization to the unique mathematics of fast-sampling models. It cleanly deletes unwanted concepts directly from distilled models in about 15 minutes on a single GPU.
What Problem Does This Paper Address?
Standard text-to-image diffusion models take 50 to 100 tiny, careful steps to turn static noise into a crisp image. To make them practical for real-time deployment, engineers distill them into few-step distilled (FSD) models (like SD-Turbo or Latent Consistency Models) that leap to the final image in just 2 to 8 steps.
However, these models inherit—and strangely, can even amplify—unsafe behaviors from their base models, such as generating explicit nudity or celebrity likenesses.
How do you make an FSD model "forget" a concept? Unlearning on the base model and re-distilling takes massive compute (anywhere from 32 to over 2,500 A100 GPU hours) with no guarantee the safety sticks. Conversely, applying existing post-training unlearning methods like Diffusion-DPO directly to FSD models fails. Standard methods optimize noise-prediction error, assuming the model wanders down a long, gradual path. FSD models commit to an image layout almost immediately and use different output parameterizations, creating a mathematical mismatch—an "objective dissonance"—that either fails to erase the concept or ruins image quality.
Methods
The authors propose CePU (Consistency-enforced Preference-driven Unlearning, pronounced "C-P-U").
First, they use a standard, self-bootstrapped technique (SDEdit) to create paired training data: the FSD model generates an undesired image (e.g., "Brad Pitt"), adds mid-level noise, and denoises it with a safe counterfactual prompt (e.g., "a man") to create a twin image that shares the exact pose and lighting, minus the target concept.
What is novel is how CePU learns from these pairs:
- Consistency Error as a Reward: Instead of measuring how well the model predicts noise at a single step, CePU measures step-to-step consistency—the discrepancy between clean-image predictions at two adjacent noisy timesteps. Because FSD models rely on mapping any point on a trajectory straight to the clean origin, this reward respects their compressed generation dynamics. CePU pushes the model to have lower consistency error on safe images and higher error on unsafe ones.
- Retention Regularizer: To keep the model from forgetting how to draw everything else, a regularization term anchors the updated model’s predictions on safe prompts to the frozen original model.
- Object Unlearning via NPO: What is the "safe" opposite of a chainsaw or a garbage truck? Because objects lack obvious counterfactuals, the authors adapt Negative Preference Optimization (NPO)—dropping the positive sample from the preference loss and simply maximizing consistency error on the target object while the regularizer protects adjacent classes.
Datasets
No new benchmarks are introduced; instead, the authors use a self-bootstrapped paired dataset generated by the models themselves for training, and evaluate on established benchmarks:
- Nudity / Red-Teaming: Evaluated on unseen adversarial prompt datasets including I2P, MMA-Diffusion, Ring-a-Bell (RAB), Prompting4Debugging (P4D), and SneakyPrompt (SP), alongside benign prompts to measure utility retention.
- Identity & Object Removal: Prompts targeting celebrity faces (Angelina Jolie, Brad Pitt) and standard 10-class object unlearning on Imagenette.
Key Insights and Ideas
- Distillation breaks the noise-to-image equivalence: In classic diffusion, minimizing noise-prediction error is mathematically proportional to minimizing clean-image reconstruction error. In consistency-distilled models, skip-connection parameterizations break this link, explaining why standard DPO struggles on FSD models.
- Enforcing single-step error isn't enough; cross-step agreement is key: Even if you swap noise error for direct clean-image ($x_0$) error, unlearning still falters because it ignores how steps relate to one another. Penalizing disagreement between adjacent steps captures the secret sauce of fast generation.
- Consistency rewards generalize beyond Consistency Models: Even though CePU's math is inspired by Latent Consistency Models, it works remarkably well on SD-Turbo (trained with adversarial distillation) and SD3-Turbo (a velocity-parameterized flow-matching transformer), suggesting step-to-step agreement is a broadly useful handle for fast generators.
Key Results
Evaluated on DreamShaper-LCM variants and SD-Turbo (at 4 sampling steps, down to 1 step):
- Efficiency: CePU takes ~15 minutes on a single A5000 GPU, matching the performance of base-model unlearning plus re-distillation at a tiny fraction of the cost.
- Nudity Suppression: On SD-Turbo across six red-teaming benchmarks, CePU achieves a 99.32% Defense Success Rate (slashing NudeNet detections from 876 down to 6) while keeping perceptual drift low (LPIPS of 0.0794). On DreamShaper-V8-LCM, it reaches 95.83% DSR—beating all preference-based baselines.
- Identity & Object Removal: On DreamShaper-V8-LCM, CePU drops target celebrity recognition from ~60% to 0% while achieving the highest harmonic mean between forgetting and retaining other identities (71.03% and 73.89%). On Imagenette, it reaches 0% target object accuracy across all 10 classes with better image preservation (0.0900 LPIPS) than competing fine-tuning methods.
Limitations and Future Work
The authors note several theoretical approximations made for practical training:
- Heuristic Surrogate Objective: In decomposing the exact Gaussian log-likelihood into step-by-step pieces, CePU drops "cross-timestep interaction" terms so that training only requires sampling a single pair of adjacent steps rather than unrolling the full trajectory. Thus, the reward is a practical local surrogate rather than an exact likelihood bound.
- Coupled Forward Noising: During training, adjacent noisy states are generated by adding shared Gaussian noise to a clean image rather than solving the true probability-flow ODE trajectory.
- Ecosystem Scope: Baseline comparisons were limited to methods in HuggingFace's Diffusers library, leaving out older CompVis-based pruning and adversarial erasure techniques. Future work can also pair CePU with more advanced counterfactual dataset generation strategies, which are orthogonal to the loss function itself.
Summary updated