Push-Pull Attentional Anchoring for Concept Erasure in Diffusion ModelsPush-Pull Attentional Anchoring for Diffusion Concept Erasure
PPAA erases concepts on cross-attention using bounded cosine push-pull; for nudity erasure, CCE ASR is 0.20 and CMMD is 1.43.
Directly update the cross-attention K/V of a text-to-image model, pushing user-specified concepts toward a user-given generic anchor; non-target concepts in the same domain do not participate in optimization. Erasure must remain effective under full access to the edited model, so no detachable modules are used. Evaluation uses UnlearnDiff and CCE to check whether erased concepts can be recovered.
- Text-to-image diffusion models generate concepts involving privacy, harmful content, and copyright. Concept erasure aims to remove target concepts without full retraining, but the authors argue that the deeper the destructive erasure, the greater the collateral damage to similar concepts in the same domain.
- PPAA updates only the K and V of cross-attention. The push loss pushes the target representation away from the original representation; the pull loss uses a relative cosine ratio to anchor the updated representation to a user-given generic concept, and adds generic embedding alignment and denoising preservation of the terminal empty prompt.
- The authors state that on SD1.4, celebrity, style and IP erasure are on the Pareto frontier, and nudity is comparable to DUO; Figure 2 has no coordinates. On CCE for nudity erasure, Ours has ASR of 0.20 and CMMD of 1.43 (Table 2).
- The authors note that no robustness-oriented training was added, so concepts may still be recovered under adversarial attacks, and consider combining with STEREO's Stage 1. The main experiments are on SD1.4; FLUX has only a preliminary quantitative comparison on three concepts, and Z-Image is qualitative only.
- Evaluated models
- Stable Diffusion 1.4 (SD1.4)FLUXZ-Image
- Benchmarks
- COCO validation splitWikiArtUnlearnDiffCCE
- Metrics
- Unlearning Scoreclassifier accuracyCMMDASRPre-ASRAvg Time
PPAA (Push-Pull Attentional Anchoring) erases target concepts in diffusion models through a bounded cosine similarity constraint in the cross-attention space, avoiding the degradation of non-target generation quality and semantic drift caused by existing heuristic strength-scaling methods. The method replaces absolute differences with relative similarity ratios, and an adaptive threshold can be applied uniformly across layers. On Stable Diffusion v1.4, it achieves a better trade-off than prior methods on concept categories such as celebrities, artistic styles, nudity, and intellectual property, and is applicable to modern architectures such as FLUX.
Paper analysis
What problem does this paper attempt to solve?
The authors state that retaining similar concepts in the same domain remains an unsolved problem in concept erasure.
How to erase target concepts in diffusion models while preserving same-domain non-target concepts that are not visible during optimization.
- Scenario: the authors argue that text-to-image diffusion models raise privacy, harmful content, and copyright issues. Concept erasure must remove specified concepts from a pretrained model without full retraining.
- Limitations of existing work: the authors argue that early guidance methods hide rather than destroy concepts, which can still be recovered after adversarial recovery. STEREO and SUMA use a two-stage process of adversarial discovery plus erasure, but Stage 2 uses unbounded updates or fixed mappings, which over-distort the local semantic neighborhood. The authors state that broad concepts like MS-COCO can be preserved, but preserving "Will Smith" while erasing "Barack Obama" remains unsolved.
- Observation: the user can specify a generic anchor. If a relative cosine ratio is used instead of absolute distance, the threshold can vary with each layer's original target–anchor similarity and be shared across layers with a single number.
- Proposal: Push–Pull Attentional Anchoring (PPAA). It pushes the target representation away in cross-attention space and uses a bounded cosine constraint to limit erasure magnitude.
- Threat model:
- Goal: update weights to suppress conditional generation of the target concept and push it toward a user-given generic concept. Peer concepts to be preserved do not enter optimization and are used only for evaluation.
- Editing method: directly modify weights, not guidance or external modules. The authors exclude detachable auxiliary modules because removing the module would undo the erasure.
- Access assumption: comparison is limited to weight-editing methods, so that erasure remains effective under full access to the edited model.
- Adversarial check: the training objective does not explicitly optimize robustness. Evaluation uses prompt optimization attacks such as UnlearnDiff and CCE, and the appendix additionally has training-free probing.
What related research exists?
Related work is divided into weight-editing erasure and adversarial attacks that recover erased concepts.
The paper divides related work into weight-editing concept erasure and adversarial attacks used to recover erased concepts.
Concept erasure
- ESD (Gandikota et al., 2023): uses negative guidance to push the target denoising trajectory away from its original path.
- AC, MACE, UCE: AC (Kumari et al., 2023) maps the target trajectory to a more generic concept; MACE (Lu et al., 2024) and UCE (Gandikota et al., 2024) perform the mapping in the key-value space of cross-attention. The paper points out that the target and the mapped object may be far apart, requiring large parameter updates and thus damaging non-target concepts.
- SUMA and DUO: SUMA (Nguyen et al., 2025) uses Textual Inversion to align the target's later embeddings with earlier, more generic embeddings on the same trajectory, reducing weight changes; the paper points out that early embeddings sometimes converge quickly to the target itself, limiting erasure. DUO (Park et al., 2024) performs preference optimization during denoising; the paper points out that the denoising space mainly captures low-level visual structure, which may yield outputs that look worse but are semantically unchanged.
Adversarial recovery
- Optimization-based prompt search: the paper groups Chin et al. (2023), Pham et al. (2023), and Zhang et al. (2024) into one category, namely searching adversarial prompts that minimize the difference in denoising predictions between the erased model and the original model.
- Training-free probing: Lu et al. (2025) use In-Painting Probing and Partial Diffusion Completion. The paper states that these analyses show many erasure methods still leave traces of the deleted concept.
Baselines and data
- Baseline methods: ESD, AC, MACE, UCE, SUMA, DUO, and STEREO, which the authors call state-of-the-art in adversarial robustness. Methods that rely on detachable auxiliary modules are excluded.
- Benchmarks/datasets: self-built Celebrity, Artistic Style, IP Entities, and Nudity concept sets; COCO validation set for generic preservation; Lu et al.'s celebrity list and WikiArt styles for same-domain preservation; UnlearnDiff and CCE for robustness.
The authors treat adversarial discovery as a separable module that only changes the erasure target; they use a relative cosine ratio to limit erasure magnitude and prioritize preserving same-domain concepts unavailable during optimization.
How does the paper address this problem?
PPAA uses a relative cosine ratio in cross-attention to push the target away and anchor the generic concept.
Push–Pull Attentional Anchoring (PPAA) updates only the key and value projections of cross-attention: it pushes the target representation away from its original semantics, then anchors it to a user-given generic concept using a relative cosine ratio.
Problem setup
- The generic replacement concept is given by the user. Same-domain non-target concepts are unavailable during optimization and are kept only for evaluation. The specific granularity of replacement is regarded by the authors as a subjective choice.
- The constraint is applied to the outputs of cross-attention K and V. The initial weights are denoted W0, and the updated weights W. For a single token, the target embedding is pe and the generic embedding is pg.
- When the target spans multiple tokens, the loss is computed separately for each token and for EOS, then averaged. Parameters other than K and V are fixed.
Push, pull, and preservation
- Push loss requires the updated target representation to move away from the original representation. The paper writes it as max(cossim(W pe, W0 pe)−mpush, 0): it is penalized if the similarity is still above m_push, and m_push takes values from 0 to 1.
- Pull loss divides the similarity between the updated target and the original model's generic representation by the target–anchor similarity before erasure. The paper writes it as max(mpull−cossim(W pe, W0 pg)/cossim(W0 pe, W0 pg), 0). The authors state that the denominator is positive in the evaluation setting; in Table 3, for the 13 concepts in the main experiments, the mean denominator for the relevant anchors is 0.659, minimum 0.247, maximum 0.942.
- The authors use two concepts relative to "Professional" to illustrate that an absolute threshold would be too strict on one side and too loose on the other. The text gives the example that m_pull=0.8 means preserving at least 80% of the original closeness; the main experiments actually use 0.40.
- L_preserve constrains the generic embedding pg with cosine, not UCE's ℓ2. L_denoise follows DUO, aligning the noise predictions of the erased model and the original model at the final timestep T with an empty prompt.
Total loss and training
- The total loss averages the push, pull, and preservation terms over K and V across all layers, then adds the denoising term. In the main experiments λ1=λ2=λ4=1, λ3=32.
- Training is 1,000 steps on Stable Diffusion 1.4, Adam, learning rate 5×10^−5, with code based on ESD. m_push is the only trade-off knob varied on the main curve.
- λ3 and m_pull are fixed after grid search on an independent celebrity validation set and used for all categories. The appendix gives a shifted-similarity variant for when the denominator is non-positive; the main experiments do not use this variant.
Anchors
- The anchor for Celebrity is person. Styles use a painting description referring generically to an artist's style. Nudity is dressed person. IP is cartoon, laptop, robot, cat, corresponding to Mickey Mouse, MacBook, R2D2, Grumpy Cat.
- Whether erasure succeeds is judged by an external classifier on whether the target is still detected in generated images; preservation uses the CMMD between samples from the erased model and the original model under the same prompts. Detectors and sample sizes are given in the experimental setup.
What experiments did the paper conduct?
The authors state that the three types of erasure are on the Pareto frontier; for nudity CCE, ASR is 0.20 and CMMD is 1.43.
The main experiments compare seven weight-editing baselines on SD1.4; the checkable numbers mainly come from the two attack tables for nudity erasure and the FLUX summary table.
Experimental setup
- Edited model: Stable Diffusion 1.4 for the main experiments. On FLUX, a preliminary comparison is made on Barack Obama, Van Gogh, and Mickey Mouse, against ESD and UCE. The appendix optimizes the Cap Embedder on Z-Image and gives only qualitative results.
- Concepts: Celebrity is Barack Obama, Rihanna, Margot Robbie, David Beckham; styles are Van Gogh, Picasso, Claude Monet, Jackson Pollock; IP is Mickey Mouse, R2D2, Grumpy Cat, MacBook. For nudity, only naked person is erased, and evaluation is on 6 phrasings: naked/nude with person, woman, man.
- Baselines: ESD, AC, MACE, UCE, SUMA, DUO, STEREO. MACE, ESD, DUO, and STEREO use official implementations; AC is reimplemented based on the ESD code; SUMA's Stage 1 follows the STEREO repository, and Stage 2 uses the authors' implementation. Baselines that require preservation concepts during training are instead given anchors and do not touch the evaluation preservation concepts. Baselines with an erasure strength parameter vary that parameter.
- Erasure determination: 100 images are generated per concept; a lower detection proportion means stronger erasure. Celebrities use GCD; nudity uses NudeNet with the same label set as DUO; styles use PE for zero-shot classification over all 1,119 artist labels in WikiArt, and the authors claim PE's accuracy on the selected styles exceeds 99%; IP uses LLAVA-7B for yes/no on whether the object is included.
- Preservation and generation: lower CMMD is better. The generic domain uses all 5,000 captions from the COCO validation set, 1 image each. The same domain is 50 celebrities and 50 styles, 25 images per concept; nudity and IP report only the generic domain, and the authors say there is no standardized comparable concept set. Images use DDIM, 50 steps, guidance scale 7.5. Computed per concept first, then averaged.
- Attacks and hyperparameters: robustness is evaluated only on nudity-erased models with UnlearnDiff and CCE. Training is 1,000 steps; after validation-set search, λ3=32 and m_pull=0.40, and the curve varies only m_push. Validation erasure targets are Adam Driver, Amy Adams, Nicki Minaj, and Chris Rock, not overlapping the test set. The paper does not report attack sample size, number of repetitions, or statistical tests.
Main results
In Figure 2, the vertical axis is Unlearning Score or target detection accuracy, and the horizontal axis is CMMD (×1000); each point is a hyperparameter. The main text does not give the coordinates of each point. The authors claim that on Celebrity, Artistic Style, and IP, Ours is on the Pareto frontier, and on nudity it is comparable to DUO.
According to Table 2, under nudity erasure, CCE's ASR and preservation CMMD are:
Method ASR CMMD ESD 0.69 13.94 UCE 0.79 4.05 DUO 0.01 6.44 STEREO 0.04 139.47 Ours 0.20 1.43 - The authors claim Ours has a more favorable robustness–preservation trade-off: DUO and STEREO have lower ASR and higher CMMD. Table 2 does not report MACE, AC, or SUMA.
- According to Table 1, on UnlearnDiff, Ours' Pre-ASR is 0.08, ASR is 0.83, and Avg Time is 11.46 minutes. For comparison, ESD is 0.26/0.92/9.89, UCE is 0.41/0.92/8.35, MACE is 0.55/0.92/7.11, AC is 0.20/0.88/9.98, SUMA is 0.16/0.83/11.80, DUO is 0.02/0.47/13.45, and STEREO is 0.00/0.08/14.74. The authors claim Ours' ASR is lower than MACE, UCE, AC, and ESD, the same as SUMA at 0.83, and higher than DUO and STEREO.
- Figure 3 is a qualitative comparison with no numbers in the figure. The authors claim Ours removes Picasso style, Rihanna, David Beckham, and Van Gogh while preserving Claude Monet, Margot Robbie, Matt Damon, and A. Khare; several baselines either fail to erase or distort the preserved concepts.
FLUX and erasure strength
- According to Fig. 4b, UCE's Acc is 0.33 and CMMD is 268.42; ESD is 0.00 and 1511.69; Ours is 0.01 and 239.61. Lower is better for both. ESD's Acc is lower than Ours and its CMMD is higher than Ours; the authors do not separately explain this Acc difference.
- The authors claim Ours erases Mickey Mouse and Barack Obama and preserves Donald Duck and Will Smith; ESD causes semantic drift in Donald Duck, and UCE fails to semantically erase Mickey Mouse. Fig. 5 marks m_push as 0.80, 0.60, 0.40, 0.20; the authors claim that as the value decreases, the image gradually departs from the target while remaining a coherent image. These figures are not accompanied by detection scores.
Appendix evaluation
- Appendix Fig. 7 supplements the generic-domain CMMD for celebrities and styles, with no coordinates. The authors claim Ours is often on the Pareto frontier under both preservation settings, nudity remains comparable to DUO, and DUO is worse on other categories.
- Appendix Fig. 8 performs training-free trajectory probing on nudity-erased models, without CLIP scores. The authors claim Ours is competitive among methods that do not explicitly optimize robustness, and shows resistance similar to DUO and STEREO.
- In Appendix Fig. 10, the authors claim PPAA can erase the target on Z-Image while preserving non-target generation quality. No numbers.
Other ablations and analyses
- Fig. 6: removing the relative margin, replacing cosine with L2, or removing L_preserve and L_denoise, the authors claim the trade-off worsens; the figure has no coordinates.
- The L2 variant takes m_l2-pull=500 on the validation set, and the reported m_l2-push values are 250, 500, 750, 1000; the authors claim larger values worsen preservation.
- Table 3: the mean denominator of the pull loss for the relevant anchors in the main experiments is 0.659, minimum 0.247, maximum 0.942; for random anchors the mean is 0.390, minimum 0.050.
- Appendix Fig. 9: when L_push is added only to concept tokens, the authors claim changes are more confined to concept information, with pose and background less affected. No numbers.
- The authors claim Ours can be combined with STEREO's Stage 1 to further improve robustness; the paper does not report numbers for this combination.
What are some points that can be further explored?
The authors note that no robustness training was done, and erased concepts may still be recovered by adversarial attacks.
The follow-up points the authors explicitly state center on adversarial robustness; the scope of the experiments is listed separately below.
Limitations and future directions noted by the authors
- Section 5: The method does not write robustness-oriented training into the objective, so the model may still be subject to adversarial attacks.
- Section 5: The authors consider the framework complementary to STEREO's Stage 1 and other defense strategies, and that they could be combined to enhance robustness. The paper does not give results for this combination.
- Appendix C.5: The authors state that applying the pull loss only to concept tokens is a choice worth further investigation, and write it as a direction for further improving the erasure–retention trade-off.
Scope of experimental coverage
- The main experiments edit SD1.4, with baselines ESD, AC, MACE, UCE, SUMA, DUO, STEREO (Section 4.1).
- Concepts include 4 each of celebrities, styles and IP, plus the nudity concept naked person and 6 related expressions (Section 4.1).
- Erasure detection uses 100 images per concept; same-domain retention uses 50 celebrities and 50 styles, 25 images per concept; general retention uses 5,000 captions from the COCO validation set, 1 image per caption. Generation uses DDIM, 50 steps, guidance scale 7.5 (Appendix B.4).
- Adversarial numbers come from UnlearnDiff and CCE on the nudity-erasure model (Table 1, Table 2); the appendix additionally has qualitative results from trajectory probing. The paper does not report the sample size or number of repetitions for these attacks, nor human agreement or statistical tests.
- The quantitative comparison on FLUX covers three concepts, against ESD and UCE (Fig. 4). Z-Image reports only qualitative results, optimizing the Cap Embedder (Appendix C.4). λ3 and m_pull were selected on the celebrity validation set and then used for all categories (Appendix B.3).
Summarize the main content of the paper
PPAA performs concept erasure using bounded relative cosine push-pull, and reports a trade-off between preservation and robustness.
PPAA is a diffusion model concept erasure method that modifies representations in cross-attention rather than adding another guidance.
- The tension it addresses is: when pushing a target concept toward a user-given generic anchor, do not also destroy concepts in the same domain that are not visible during optimization.
- The method updates only K and V. The push loss requires the target representation to move away from the original representation; the pull loss uses a relative cosine ratio to keep the ratio to the anchor close; there is also generic embedding alignment, and denoising alignment with an empty prompt at the final timestep. m_push adjusts erasure strength.
- The authors claim that on SD1.4 celebrities, styles, and IP, the erasure–preservation curve is on the Pareto frontier, and on nudity it is comparable to DUO. Figure 2 does not give the coordinates of each point.
- On nudity erasure, the trade-off that can be checked is: CCE's ASR and CMMD, Ours is 0.20 and 1.43, STEREO is 0.04 and 139.47, DUO is 0.01 and 6.44 (Table 2). UnlearnDiff's ASR, Ours is 0.83, SUMA is also 0.83, STEREO is 0.08, DUO is 0.47 (Table 1).
- On the three FLUX concepts, Ours' target detection Acc is 0.01 and CMMD is 239.61; ESD is 0.00 and 1511.69, UCE is 0.33 and 268.42 (Fig. 4b).
- The authors' conclusion is: bounded relative cosine constraints can control semantic drift and reduce non-target damage. The method is not designed for adversarial training, and erased concepts may still be recovered, but the authors believe it can be combined with existing robustness modules.