Manuscript Offprint

arXiv:2610.05401

No Concept Escapes the Audit: Auditing-Aware Unlearning for Verifiable Concept Erasure in Diffusion Models

Kaiyuan Deng, Yuchen Li, Gen Li, Yang Xiao, Geng Yuan, Xiaoyong Yuan, Bo Hui, Xiaolong Ma

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

ABSTRACT

Text-to-image diffusion models can generate prohibited content, which motivates concept erasure through machine unlearning. Most erasure methods intervene at the text interface, through prompt modification or localized updates to text-conditioning weights, and they are evaluated by what the model outputs for given prompts. Such evaluation cannot see what the network still encodes. Latent-space auditing, which bypasses text conditioning and probes the denoising network directly, shows that erased concepts remain recoverable from internal representations. We find that this also holds for methods built to be robust against adversarial prompts, and that the problem grows with the number of erased concepts. We propose Auditing-Aware Unlearning for Verifiable Concept Erasure in Diffusion Models (AVCE), a framework that grounds erasure in the model's latent representations. AVCE audits the embedding neighborhood of each concept and condenses the discovered vulnerable directions into an anchor at the weakest geometric point. It edits cross-attention and self-attention projections in closed form at this anchor, then fine-tunes the two pathways with pathway-level auditing losses, using orthogonal gradient projection to consolidate multiple concepts. Experiments on SD v1.5, SDXL, and Flux 1.0 across object, explicit-content, and artistic-style unlearning show that AVCE reduces attack success rates by 5.07×5.07\times and improves auditing scores by 3.84×3.84\times over the strongest baseline, while preserving competitive generation quality.

1 INTRODUCTION

Text-to-image (T2I) diffusion models generate diverse, high-fidelity images from natural language descriptions (Rombach et al., 2022; Ma et al., 2024; Podell et al., 2023; Saharia et al., 2022; Nichol et al., 2021; Ding et al., 2022; Zhou et al., 2022). Their wide deployment also raises ethical and legal risks, including copyright infringement, unauthorized trademark generation, and the synthesis of malicious imagery (Kazerouni et al., 2022; Xing et al., 2024; Jang et al., 2022; Wang et al., 2024; Nguyen et al., 2022; Weidinger et al., 2021; Brundage et al., 2018; Tolosana et al., 2020; Solaiman & Dennison, 2021).

Machine unlearning (MU) addresses these risks by removing specific knowledge from a trained model without retraining it from scratch (Bourtoule et al., 2021; Guo et al., 2019; Graves et al., 2021; Xu et al., 2024; Marino et al., 2025; Zhang et al., 2023; Tu et al., 2025; Feng et al., 2025). In T2I generation, MU takes the form of concept erasure: the mapping between text prompts and a target visual concept is severed so that the model no longer renders the concept. Existing methods erase individual objects, styles, or identities (Jia et al., 2023; Kumari et al., 2023; Chavhan et al., 2024; Gandikota et al., 2023; Zhang et al., 2024a; Schramowski et al., 2023; Fan et al., 2023; Heng & Soh, 2023), and recent work extends erasure to multiple concepts at once (Lu et al., 2024; Lyu et al., 2024; Li et al., 2025b; Gandikota et al., 2024; Gong et al., 2024; Deng et al., 2026).

Whether an erased concept has actually been removed is usually judged from model outputs. Benchmarks (Moon et al., 2025; Zhang et al., 2024b) score the images generated for a set of prompts, and adversarial evaluations (Zhang et al., 2024d; Chin et al., 2023; Pham et al., 2023; Tsai et al., 2023) search for prompts or embeddings that make the concept reappear. In response to these attacks, robust erasure methods harden the text-to-image mapping through adversarial training (Kim et al., 2024; Zhang et al., 2024c), erasure guided by inverted worst-case embeddings (Li et al., 2026; Srivatsan et al., 2025), or closed-form re-erasure of adversarial embeddings (Gong et al., 2024). These defenses bring attack success rates below those of non-robust baselines (Fig. 1, left).

Low attack success, however, does not establish that the concept is gone. The latent-space audit of Sharma et al. (2024) bypasses text conditioning altogether: it injects a concept-informative latent code at an intermediate denoising step (partial diffusion) and measures, through the Concept Retrieval Score (CRS) and the Concept Confidence Score (CCS), whether the unlearned model still reconstructs the concept (Appendix A.2). Under this audit, methods that block adversarial prompts still retain the concept in their internal representations (Fig. 1, middle and right; Section 4). The cause is structural. These methods act mainly on the text encoder or on the cross-attention projections: the key and value projections of the cross-attention layers hold 2.23% of the UNet parameters in SD v1.5 and 13.27% in SDXL. Such edits sever the pathway from text to concept and leave intact the capacity of the denoising network to reconstruct concept-related patterns, which is the capacity that partial diffusion probes. Attack robustness therefore shows only that the evaluated attacks fail to recover the erased concept; it does not establish that concept information has been removed from the learned representations. The discrepancy widens in multi-concept unlearning, where existing methods degrade as the number of erased concepts grows.

We therefore design erasure around the audit rather than around the attack surface, and propose Auditing-Aware Unlearning for Verifiable Concept Erasure in Diffusion Models (AVCE), a framework that removes a concept from both the text-conditioning pathway and the visual pathway of the denoising network. AVCE proceeds in three stages. It first searches the embedding neighborhood of each concept for directions along which the concept can be revived, and condenses them into a Verifiable Vulnerability Anchor located at the weakest point of that neighborhood. It then performs Analytical Editing at this anchor: a closed-form rewrite of the cross-attention projections severs the association between text and concept, and a closed-form shrinkage of the self-attention projections suppresses the residual visual patterns of the concept. Finally, Audit-Guided Refinement fine-tunes the two pathways in alternation with pathway-level auditing losses that remove the non-linear leakage left by the linear edits, and applies orthogonal gradient projection so that multiple concepts can be erased within one model.

Our contributions are as follows:

  • The Illusion of Robustness. We apply latent-space auditing to robust concept erasure methods and show that blocking adversarial prompts does not remove the concept: once text conditioning is bypassed, its visual features remain recoverable from the internal representations of the model.

• Auditing-Aware Verifiable Concept Erasure. We propose AVCE, which moves erasure from the text-conditioning interface to the internal representations of the model. AVCE combines a Verifiable Vulnerability Anchor obtained by auditing the embedding space, closed-form editing of both cross-attention and self-attention projections, and fine-tuning with pathway-level auditing losses.

• Scalable Multi-Concept Erasure. AVCE handles inter-concept interference with difficulty-aware sampling and orthogonal gradient projection. On SD v1.5, SDXL, and Flux 1.0, AVCE reduces attack success rates by 5.07×5.07\times and improves auditing scores by 3.84×3.84\times over the strongest baseline.

References (66)