EraseFlow: Learning Concept Erasure Policies via GFlowNet-Driven Alignment
Abhiram Kusumba, Maitreya Patel, Kyle Min, Changhoon Kim, Chitta Baral, Yezhou Yang
TL;DR
EraseFlow reframes concept erasure in text-to-image diffusion models as a trajectory-level alignment problem solvable with Generative Flow Networks under a trajectory-balance objective. By employing reward-free alignment and leveraging entire denoising trajectories, it achieves robust erasure of concepts (e.g., NSFW content, logos, artistic styles) while preserving the model's prior and image quality, with markedly lower training cost. The method demonstrates strong robustness to red-teaming, maintains image-text alignment, and generalizes to recent architectures, while offering plug-and-play compatibility with other safety tools. Theoretical guarantees via the constant-reward TB proposition underpin stable distributional alignment, and extensive experiments show EraseFlow attaining state-of-the-art-like performance across diverse erasure tasks with high efficiency and practical impact for safety in diffusion-based generation.
Abstract
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.
