EraseFlow: Learning Concept Erasure Policies via GFlowNet-Driven Alignment
About
Erasing harmful or proprietary concepts from powerful text to image generators is an emerging safety requirement, yet current "concept erasure" techniques either collapse image quality, rely on brittle adversarial losses, or demand prohibitive retraining cycles. We trace these limitations to a myopic view of the denoising trajectories that govern diffusion based generation. We introduce EraseFlow, the first framework that casts concept unlearning as exploration in the space of denoising paths and optimizes it with GFlowNets equipped with the trajectory balance objective. By sampling entire trajectories rather than single end states, EraseFlow learns a stochastic policy that steers generation away from target concepts while preserving the model's prior. EraseFlow eliminates the need for carefully crafted reward models and by doing this, it generalizes effectively to unseen concepts and avoids hackable rewards while improving the performance. Extensive empirical results demonstrate that EraseFlow outperforms existing baselines and achieves an optimal trade off between performance and prior preservation.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Concept Erasure | I2P | I2P Success Rate21 | 23 | |
| Implicit Concept Erasure | Ring-a-Bell | ASR10 | 23 | |
| Image Generation | MSCOCO | CLIP Score25.11 | 19 | |
| Implicit Concept Erasure | MMA | MMA2 | 14 | |
| Concept Erasure | Ring-a-Bell | ASR44 | 13 | |
| Image Generation | MS-COCO | FID12.59 | 10 | |
| Copyrighted character erasure | Copyrighted Characters 100 generations SD3 | Erasure Success (Stitch)8 | 9 | |
| Nudity Erasure | I2P nudity | Unsafe Rate9.77 | 7 | |
| Nudity Erasure | RAB | Unsafe Rate42.46 | 7 | |
| Nudity Erasure | MMA | Unsafe Rate6.7 | 7 |