TL;DR
autoeval-dmun is an automated evaluation framework that leverages the world knowledge of (vision-) language models to rigorously test machine unlearning in text-to-image diffusion models. By automatically identifying semantically related concepts vulnerable to collateral damage and generating clever adversarial prompts, it exposes hidden vulnerabilities that standard evaluations miss.
What Problem Does This Paper Address?
Text-to-image diffusion models are incredibly powerful, but they often memorize copyrighted art, biased representations, or unsafe content from their massive training datasets. While Machine Unlearning (MU) offers a cost-effective way to surgically erase these undesired concepts without retraining a model from scratch, proving that a concept is truly gone is notoriously difficult.
Traditional evaluation methods suffer from two major blind spots:
- Collateral Damage (Locality): Erasing a target concept (e.g., "Formula 1 car") often inadvertently degrades the model's performance on closely related concepts you want to keep (e.g., "IndyCar" or "Grand Prix car").
- Adversarial Vulnerability (Jailbreaking): Simply checking if the model blocks the exact keyword is insufficient. Users can easily bypass erasure using creative misspellings or descriptive circumventions (e.g., asking for "a cheerful cartoon mouse with white gloves" instead of "Mickey Mouse").
Manually brainstorming related concepts and crafting jailbreak prompts for every single unlearning task is labor-intensive and non-scalable. This paper introduces an automated solution.
Methods
The authors present autoeval-dmun, an end-to-end automated pipeline that uses large (vision-) language models (V-LMs), such as the Llama 3 family, as evaluation assistants.
The pipeline operates in two primary modes:
- Unlearning Locality Assessment: The V-LM iteratively brainstorms and deduplicates a list of concepts semantically "nearby" to the target. It then ranks these concepts by relevance. The pipeline generates images for these neighbor concepts using both the base and unlearned diffusion models, calculating the Kernel Inception Distance (KID) to quantify collateral damage.
- Adversarial Red-Teaming: outsmarting the unlearned model, the V-LM automatically generates two types of adversarial prompts: creative misspellings (
adv_miss) and detailed descriptions that evoke the concept without naming it (adv_evoke).
Finally, the framework feeds these outputs into an automated metric recording script that evaluates the generated images using CLIP similarity, CLIP classification accuracy, and KID.
Datasets
The framework was validated on popular text-to-image models, specifically Stable Diffusion v1.4 and FLUX.1-dev. The authors evaluated three prominent unlearning algorithms: Erasing Concepts from Diffusion Models (ESD), Receler (REC), and Ablating Concepts (AC). The target evaluation concepts included "Formula 1 car", "Mickey Mouse", and "Van Gogh style".
Key Insights and Ideas
- V-LM Alignment with Empirical Damage: A V-LM's internal understanding of semantic similarity correlates remarkably well with actual unlearning damage. Concepts that the V-LM ranks as closest to the target consistently suffer the highest collateral degradation.
- Scale and Capability Matter: More capable V-LMs (e.g., Llama-3.2-90B vs. Llama-3.1-8B) produce more accurate semantic rankings that better predict real-world model damage.
- The Fragility of Current Unlearning: Popular unlearning methods like ESD and Receler are often superficial. They successfully suppress the specific target tokens, but the underlying visual features remain highly accessible via descriptive circumvention.
Key Results
- Predicting Collateral Damage: The Spearman rank correlation between the V-LM's semantic ranking and empirical model damage (KID) reached up to -0.672 (using Llama-3.2-90B on ESD), proving V-LMs can reliably predict which concepts will suffer the most collateral damage.
- Bypassing Erasure: For the "Mickey Mouse" concept, every single V-LM-generated adversarial prompt successfully circumvented the unlearning, eliciting higher CLIP target predictions than the standard prompt. Half of the adversarial prompts increased target generation by roughly 30%.
- Style Evocation: For "Van Gogh style", descriptive adversarial prompts achieved a massive 60-80% increase in target prediction rates compared to using the target phrase alone, completely bypassing the unlearning defenses.
Limitations and Future Work
While autoeval-dmun successfully automates a complex evaluation workflow, it currently relies on a fixed suite of standard metrics (CLIP and KID). The authors note that future iterations will benefit from incorporating a wider variety of advanced vision-language metrics and exploring more structured prompting techniques to further harden the adversarial generation process.
Summary updated