Manuscript Offprint

arXiv:2609.35269

eval-unlearn: Benchmarking unlearning in Text-to-Image Diffusion Models

Mansi, Nikhil Raghavan, Zixia Huang, Kai Sheng Ong, Ji Shen Lim, Brandon Siao Xiang Ling, Francesco Leofante

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The rising number of concept unlearning techniques for text-to-image (T2I) diffusion models has produced a fragmented evaluation landscape. Methods are assessed under heterogeneous experimental conditions making principled cross-method comparison difficult. We present eval-unlearn, an open-source Python library providing a unified, reproducible benchmarking framework for concept unlearning in T2I Diffusion models. eval-unlearn integrates twelve published unlearning techniques spanning fine-tuning, closed-form model editing, and inference-time intervention, alongside nine complementary evaluation metrics covering erasure efficacy, adversarial robustness, generative quality, and concept retention. Its plugin architecture lets third-party techniques and metrics self-register without modifying the core framework, and its streaming, batched pipeline supports efficient evaluation of both standard NSFW concepts and arbitrary general concepts. As a further contribution, we release a public leaderboard on HuggingFace along with an interactive tool for real-time evaluation of unlearning techniques. The leaderboard compares nudity concept erasure case study across all twelve techniques, exposing significant accuracy-quality trade-offs that are obscured by heterogeneous evaluation. eval-unlearn is released under the MIT license; the package, code, leaderboard, and documentation are all available at https://eval-unlearn.readthedocs.io.

1 Introduction

Text-to-image diffusion models such as Stable Diffusion (Rombach et al. 2022) synthesize high-quality images from natural language prompts, but training on large, internet-scraped corpora makes them capable of generating inappropriate content, with many negative implications (Schramowski et al. 2023). Fully retraining on curated data is both expensive and often ineffective due to compositionality (Okawa et al. 2023). Machine unlearning offers a practical alternative, using targeted weight modifications or inference-time interventions to selectively suppress a concept from a trained model (Beerens et al. 2025).

A recent survey (Kim and Qi 2025) groups T2I unlearning techniques into three categories: fine-tuning methods (ESD (Gandikota et al. 2023), CA (Kumari et al. 2023), CoGFD (hongyi nie et al. 2025), AdvUnlearn (Zhang et al. 2024a), SSD (Foster, Schoepf, and Brintrup 2023)) that iteratively adjust U-Net or text-encoder weights; closed-form model editing methods (UCE (Gandikota et al. 2024), MACE (Lu et al. 2024)) that compute single-step weight updates without iterative optimisation; and inference-time interventions (SLD (Schramowski et al. 2023), SAFREE (Yoon et al. 2025), TraSCE (Jain et al. 2025), ConceptSteerers (Kim and Ghadiyaram 2025), SAeUron (Cywiński and Deja 2025)) that reshape guidance or latent representations at inference time without modifying weights.

Despite this taxonomy, techniques are evaluated on different datasets, metrics, and hyperparameter regimes, making reliable cross-method comparison difficult. Existing frameworks, namely UnlearnCanvas (Zhang et al. 2024b) and the Holistic Unlearning Benchmark (Moon et al. 2025), provide fixed dataset-and-script packages covering a narrow, largely fine-tuning/closed-form set of techniques, with no interface for extension without modifying core code. eval-unlearn closes these gaps with a plugin architecture spanning all three categories. Its contributions are: (i) a shared execution pipeline supporting all three technique categories on a common base model; (ii) nine standardized metrics spanning erasure efficacy, adversarial robustness, quality, and retention; (iii) a plugin architecture, with a validation notebook for community-contributed techniques and metrics, enabling extension without modifying the core framework; and (iv) a public HuggingFace leaderboard, logged with full hyperparameters for reproducibility, enabling real-time comparison of unlearning techniques. The library is further accompanied by tutorial notebooks and a test suite exercised in continuous integration, currently at 99.82% coverage. Figure 1 illustrates the resulting pipeline.

References (21)