Manuscript Offprint
arXiv:2609.31154HyperErase: Scale-Calibrated Hypernetwork for Multi-Concept Erasure in Text-to-Image Models
ABSTRACT
Recent advances in text-to-image (T2I) generation have substantially improved visual synthesis, but have also raised increasing safety concerns due to their potential to generate harmful or undesirable content. Existing concept erasure methods predominantly follow a static weight paradigm, producing a single frozen adapter that struggles to adapt to diverse prompt variations and suffers from parameter interference when scaling to multiple concepts. We propose HyperErase, a framework for concept erasure based on hypernetwork-driven prompt-conditioned parameter synthesis. Our approach first reframes concept erasure as prompt-conditioned parameter amortization and trains a hypernetwork to map textual descriptions to prompt-specific LoRA updates, eliminating the need for per-prompt gradient optimization or manual LoRA merging. To further improve the stability and precision of synthesized adapters, we develop a decoupled rectification strategy, which disentangles LoRA tokens into pattern and scale subspaces, applies a square-root transform to curb multiplicative over-scaling, and leverages teacher-derived canonical priors for inference-time correction. Extensive experiments across major concept categories demonstrate that HyperErase consistently improves the trade-off between erasure effectiveness, image quality, and semantic alignment, achieving performance comparable to gold-standard single-concept baselines. Furthermore, the resulting models can provide specialized LoRAs for each input prompt variation in a single forward pass without requiring gradient updates during inference. These principled and flexible framework offers a new paradigm for concept erasure in T2I models.
1 INTRODUCTION
The emergence of text-to-image (T2I) models Dhariwal & Nichol (2021); Ho & Salimans (2022); Ho et al. (2020); Nichol et al. (2021); Ramesh et al. (2022); Saharia et al. (2022) has marked a transformative leap in visual synthesis, enabling the creation of photorealistic imagery from natural language descriptions. Yet this remarkable progress is shadowed by a critical vulnerability. The unfiltered nature of Internet-scale training corpora Milmo (2023) frequently imbues these systems with the capacity to render objectionable or harmful visual content Jiang et al. (2023); Roose (2022);

Figure 1: Comparison of Traditional multi-concept erasure and HyperErase. HyperErase achieves high effective erasure and avoids manual routing and over-erasure by training a hypernetwork that generates dynamic LoRAs.
Corresponding Author.
Setty (2023). A straightforward remedy, excising problematic data followed by full model re-
training Nichol et al. (2021); Schramowski et al. (2023), proves prohibitively costly in practice. Such an approach entails not only staggering computational demands but also the risk of unforeseen performance regressions and emergent biases O'Connor (2022). Concept erasure (CE) has consequently emerged as a pragmatic alternative, offering surgical and parameter-efficient interventions that selectively suppress targeted semantic concepts without compromising the model's broader generative fidelity.
Mainstream CE approaches, from early ESD Gandikota et al. (2023) and UCE Gandikota et al. (2024), MACE Lu et al. (2024) to EraseAnything Gao et al. (2025), follow a static weight paradigm: they output a single frozen LoRA (or fused adapter set) that bakes all designated targets into one fixed U-Net update. This works for narrow single-concept cases, but two intrinsic limits surface as erasure needs expand. First, even for a single target type, the static adapter is a forced trade-off: EraseBench Amara et al. (2025) shows all such methods face a retain set dilemma, tightening erasure to block leakage degrades visually similar non-targets, while preserving fidelity lets targets slip—because one fixed weight cannot adapt to the open-ended phrasings of the same concept (e.g. "a church" vs. "a stone church on the street") without re-running gradients. When scaling to multiple concepts, this paradigm breaks further: even MACE, which trains per-concept modules and fuses them via closed-form updates to reach 100 targets, still produces a single merged static adapter. Interference accumulates between erased concepts and preserved classes as scope widens Liu et al. (2025); merging LoRAs inherently injects parameter crosstalk and direction drift Zhang & Zhou (2025); Li et al. (2024), and sequential tuning causes earlier erased concepts to re-emerge Carter (2025). Both multi-concept erasure methods suffer from inherent bottlenecks. Storing dozens of disjoint LoRAs need manual routing and storage bloat while accepting a merged weight will under-erase targets and over-hurt non-targets.
We argue both bottlenecks stem from the core assumption that all prompts and targets must share one static weight set. We instead reframe CE as prompt-conditioned parameter amortization for a pre-defined concept family and introduce HyperErase. Concretely, we employ ESD as the gold baseline. For each concept in a pre-defined target family, we use ESD to erase target concept to obtain prompt-checkpoint pairs as the training dataset. We then train a single hypernetwork from this dataset. At inference, maps the input prompt to a prompt-specific LoRA for targeted erasure in one forward pass and yield near-zero updates if the prompt is outside the family. Our method removes the per-prompt gradient tax and skips LoRA merging entirely. To stabilize generation, we decouple LoRA tokens into pattern and scale subspaces, replace log-scale decoding with a square-root transform to curb multiplicative over-scaling, and apply inference-time rectification via teacher-derived canonical priors. Experiments demonstrate that our method achieves erasure performance comparable to the gold baseline in CE scenarios. Moreover, during inference, it can provide a specialized LoRA for each input prompt variation without requiring gradient updates or additional training. This enhances preservation capability compared to the gold baseline and establishes a new paradigm for CE tasks. In summary, we make the following contributions:
• We recast CE as conditional parameter synthesis, where a textual concept description directly produces the erasing weight update, unifying the per-concept optimization procedures into a single amortized mapping.
• We propose the first hypernetwork-based CE framework and introduce a decoupled rectification strategy that stabilizes training via square-root scale encoding and restores the erasure strength of generated adapters through pattern and scale corrections.
• Extensive experiments across major concept categories demonstrate that our method approaches the erasure performance of gold single-concept baselines while maintaining superior generative capability.

(a) Training
(b) Inference
Figure 2: Overview of HyperErase. (a) illustrates the training procedure of HyperErase. We use the gold baseline to erase a range of target concepts and, once the erasure is complete, collect checkpoint–prompt pairs; the same prompts are then fed into the HyperNetwork to fit the generation of LoRAs. To mitigate the accumulation of decay across multiple concepts, we decouple LoRA into pattern and scale dimensions and apply decoupled magnitude rectification. (b) illustrates the inference procedure. Given a new input, we use HyperErase to generate the pattern and scale checkpoints, recouple them into a LoRA, and apply it during inference.
exclude sensitive content at the dataset level, yet retraining from scratch incurs substantial computational overhead and temporal cost. Target concepts may still permeate the latent space via ostensibly benign prompts, which in turn demands iterative retraining cycles. An alternative strategy operates directly on pre-trained models to suppress target concept generation. This paradigm has attracted considerable scholarly attention and bifurcates into training-based and training-free methodologies.
Training-based methods fine-tune pre-trained models to eliminate specific concepts. Erased Stable Diffusion (ESD) Gandikota et al. (2023) aligns noise predictions between target and non-target concepts within the latent diffusion model and steers optimization through classifier-free guidance. Unified Concept Editing (UCE) Gandikota et al. (2024) derives closed-form solutions for cross-attention weight manipulation, modifying key and value matrices corresponding to target concept embeddings while preserving weights associated with unrelated concepts. The editing-based formulation permits near-instantaneous weight modification, enabling rapid and effective erasure. DVE Zhang et al. (2026) projects target token value vectors onto the semantic subspace spanned by non-target concepts at each denoising timestep and nullifies the residual components, enabling parameter-free concept erasure with dynamically adaptive suppression strength.
3 METHOD
3.1 PARAMETER GENERATOR
As shown in Figure 2, we reframe concept erasure as concept-conditional parameter amortization within a pre-defined target family. Let denote a text condition that describes a target concept. We train a parameter generator that maps to the LoRA adapter which erases that concept from a pretrained Stable Diffusion U-Net:
Our generator is trained on adapters collected for a set of K concepts, and at inference, for a new input prompt, our generator produces a corresponding LoRA. If the prompt contains the target concept, this LoRA enables precise erasure of the target concept; otherwise, it generates outputs normally.
Directly regressing raw weight matrices is impractical due to their high dimensionality and heterogeneous shapes across layers. We therefore represent all LoRA weights in a unified token grid. For each layer, the matrix (with convolutional spatial dimensions flattened) and the transposed are partitioned column-wise into chunks of fixed width . Each chunk is standardized by its per-chunk mean and standard deviation:
The normalized pattern occupies the first rows of a token, while the scale statistics are encoded into the remaining free rows, so that each chunk carries its directional structure and its magnitude as separable channels of a single representation. Stacking all chunks across all layers produces a target tensor , where is determined by the U-Net architecture.
With this representation in place, training the generator reduces to supervised regression over a corpus of prompt–checkpoint pairs. For each of K concepts, we collect S ESD-u LoRA checkpoints from different snapshots of the ESD training trajectory and pair them with concept-specific prompt pools, so that the generator observes both the diversity of weight realizations and the diversity of natural language descriptions for every concept. A frozen BERT encoder embeds each prompt batch into a condition tensor, and a cascaded hyper-convolutional decoder expands the sequence dimension from M prompt slots to N weight-token slots while reshaping the spatial feature map through a sequence of separable convolutional stages, matching the token grid dimension at the terminal layer. The generator is optimized with an importance-weighted mean squared error over valid token positions:
where V denotes the set of non-padding token positions and is the normalized cross-checkpoint variance of token j, which assigns higher weight to positions whose values carry erasure-relevant information and down-weights near-constant padding regions.
The conventional encoding maps through the logarithmic transform , with the inverse recovered by exponentiation. In single-concept training this encoding is unproblematic because the scale target is identical across all samples; the network drives its prediction variance to zero and the decode becomes exact. When the generator is trained on multiple concepts simultaneously, however, the scale target varies with the concept and must be inferred from the text condition, leaving non-negligible prediction error on the encoded value. The exponential decode is strictly convex, so by Jensen's inequality a zero-mean error on produces a systematic upward bias in the decoded :
The inflation factor is approximately for prediction variance , and since and are decoded independently, the individual inflations multiply through the product . The resulting over-scaling preserves the erasing direction but pushes the U-Net off its learned denoising manifold, corrupting generation.
We replace the logarithmic encoding with a square-root transform. Let S denote a fixed constant set to the median standard deviation across all weight chunks. The scale channel is encoded as
The decode function is now compresses the two-decade range of LoRA standard deviations into a well-conditioned interval, equalizing the loss contribution across chunks whose raw magnitudes differ by orders of magnitude.
3.2 DECOUPLED MAGNITUDE RECTIFICATION
Because each weight chunk is encoded as the pair , where the normalized pattern captures the directional structure of the weight update and the per-chunk scale determines its local magnitude. The biases of pattern and scale compound through the matrix product , and because the subspaces are disjoint in the token representation, they can be analyzed and corrected independently. We introduce decoupled magnitude rectification to separately rectify these two deviations.
Pattern Renormalization: For the pattern channels, the generator is trained with a mean squared error loss over the S teacher checkpoints of each concept. These checkpoints share the same erasing objective but exhibit natural variation in their weight realizations due to the stochasticity of the ESD optimization trajectory. Under MSE regression, the optimal prediction for a given concept is the conditional expectation of the target patterns. By Jensen's inequality, the norm of the expected pattern is strictly smaller than the expected norm of the individual patterns:
This shrinkage is a property of the loss geometry and its magnitude is approximately uniform across concepts because the per-checkpoint pattern variance is comparable throughout the concept set. We address it through a renormalization that restores each predicted chunk pattern to unit Frobenius norm during detokenization:
where and are the empirical mean and standard deviation of the predicted chunk. This operation restores the directional energy attenuated by MSE averaging without altering the orientation of the predicted pattern.
Canonical Scale Anchoring: For the scale channels, the generator must infer per-chunk statistics ( ) from BERT condition vectors that simultaneously encode concepts. In this multi-concept prompt mixture, the predicted scale for any individual concept is pulled toward the cross-concept mean, attenuating concept-specific magnitude. The quadratic decode further contributes a residual Jensen displacement: even with an unbiased encoded prediction, \mathbb{E}[S \cdot \hat{e}_{\sigma}^2] = S \cdot (e_{\sigma}^*^2 + \mathrm{Var}(\hat{e}_{\sigma})), introducing a variance-dependent offset between the predicted and target standard deviations.
We address this by pre-computing concept-specific canonical scale priors and injecting them as constants into the token representation. For each concept , we average the per-chunk statistics of its teacher checkpoints in raw weight space, then re-encode the averaged values through the square-root encoder:
Averaging in raw space before encoding, rather than in the encoded space, prevents the nonlinear square-root transform from introducing a secondary bias. During training, the scale rows of the target token grid are set to the canonical block of the sampled concept:
The generator is thereby relieved of scale regression; the per-chunk magnitudes are guaranteed to match the teacher statistics by construction, while the pattern channels continue to be learned from the full expressivity of the prompt semantics.
The canonical scale anchoring and the pattern renormalization act on disjoint subspaces of the weight token and compose additively. The former eliminates regression noise in the scale channels by replacing a learned prediction with a concept-level constant derived from the teacher distribution. The latter restores the directional norm that MSE averaging attenuates, operating purely on the normalized pattern channels. They adjust only the semantics of the representation that the tokenizer produces and consumes, making the weight-space norm of the generated LoRA adapter bias-stable with respect to the number of training concepts. This ultimately achieves efficient concept erasure for arbitrary target concepts, performing closely to the gold baseline.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Baselines. Because our method’s erasure performance is related to the gold baseline, we apply our proposed method to SD v1.4 and compare it with vanilla model and the gold baseline ESD. Specifically, we compare ESD Single, ESD Mix, ESD First, ESD Last, HyperErase Mix, HyperErase First,
SD v1.4
ESD Single
ESD Mix
ESD First
ESD Last
HyperErase
HyperErase
HyperErase
First
Last
Mix

Figure 3: Visual results of Nudity erasure results in I2P dataset and under attacks.
and HyperErase Last. Here, ESD Single means using ESD to erase each concept individually and then verify. ESD Mix means using the ESD method to simultaneously erase and verify the same 14 concepts as in our method. ESD First and ESD Last sequentially erase the 14 target concepts during training. First means placing the target concept in the first position, while Last means placing the target concept in the last position for concept erasure. HyperErase First and HyperErase Last follow the same principle. This setup is mainly designed to verify the impact of sequential erasure and continual learning methods. At the same time, it eliminates unfair settings that may arise from differences in multi concept erasure methods.
Evaluation metrics. We evaluate on three CE tasks covering a total of 14 concepts, including nudity erasure, artist style erasure, and object erasure. For nudity erasure, we count the number of detected exposed body parts in generated images and calculate the Attack Success Rate (ASR) against adversarial attacks to measure the robustness of erasing NSFW concepts. For artist style erasure, we perform concept erasure on artist styles and calculate the Top-k classification accuracy (ACC) before and after erasure to quantify both the erasure efficacy and the preservation of non-target concepts. For object erasure, we report the ASR of the target erased concept and the ASR of non-target object concepts to measure the erasure efficacy and preservation performance. In addition, we employ CLIP Score Radford et al. (2021) to measure text-image consistency and FID score Heusel et al. (2017) to assess image quality. Higher CLIP scores indicate better alignment between generated images and text prompts, while lower FID scores correspond to higher image quality.
Implementation details. Following previous works Gandikota et al. (2023), we chose Stable Diffusion 1.4 Rombach et al. (2022) as the base model of all our experiments. We employ the DDIM sampler with 50 sampling steps and other hyper-parameters follow the default configurations from the respective official repositories. All experiments are performed on RTX A6000 GPUs. For more details on the specific validation dataset settings for each concept, see Appendix A.2.
4.2 RESULTS ANALYSIS
4.2.1 NUDITY ERASURE
Table 1 presents the experimental results of Nudity concept erasure. It can be seen that when mixing all concepts for training (HyperErase Mix), HyperErase can achieve an erasure effect close to that of the gold baseline (ESD Single). Meanwhile, we can observe that HyperErase Mix outperforms the gold baseline in both CLIP and FID scores. This is because the HyperErase method can dynamically
| Method | Armputs | Belly | Buttocks | Feet | Breasts (F) | Genitalia (F) | Breasts (M) | Genitalia (M) | Total | FID (↓) | CLIP (↑) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| SD v1.4 | 107 | 153 | 21 | 31 | 262 | 10 | 33 | 4 | 621 | 17.84 | 31.08 |
| ESD Single | 60 | 89 | 10 | 29 | 141 | 10 | 16 | 2 | 357 | 17.06 | 30.54 |
| ESD Mix | 39 | 56 | 7 | 15 | 65 | 4 | 17 | 1 | 204 | 22.56 | 29.12 |
| ESD First | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 198.93 | 17.28 |
| ESD Last | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 170.79 | 18.60 |
| HyperErase First | 104 | 174 | 21 | 24 | 289 | 17 | 31 | 6 | 666 | 17.64 | 30.96 |
| HyperErase Last | 52 | 85 | 12 | 27 | 123 | 12 | 17 | 4 | 332 | 17.03 | 30.57 |
| HyperErase Mix | 58 | 87 | 12 | 28 | 138 | 11 | 18 | 7 | 359 | 16.96 | 30.57 |
Table 1: Quantity of explicit content detected using the Nudenet detector on the I2P benchmark. F: Female. M: Male. HyperErase achieves erasure performance approaching the gold baseline ESD Single while achieving better FID score and CLIP score.
| Method | I2P(%) | MMA(%) | Ring-16(%) | Ring-38(%) | Ring-77(%) | P4D(%) | UnDiff(%) | Average(%) |
|---|---|---|---|---|---|---|---|---|
| ESD Single | 57.5 | 22.1 | 72.1 | 74.8 | 78.0 | 67.4 | 53.8 | 60.8 |
| ESD Mix | 32.9 | 21.6 | 40.3 | 49.3 | 49.8 | 47.6 | 27.2 | 38.4 |
| ESD First | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| ESD Last | 0.2 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.03 |
| HyperErase First | 107.2 | 95.6 | 107.4 | 105.3 | 114.6 | 99.1 | 102.3 | 104.5 |
| HyperErase Last | 53.5 | 21.8 | 72.6 | 70.3 | 76.7 | 62.9 | 46.8 | 57.8 |
| HyperErase Mix | 57.8 | 26.4 | 71.8 | 76.2 | 75.4 | 67.3 | 55.5 | 61.5 |
Table 2: The Attack Success Rate (ASR) against adversarial attacks in erasing NSFW concept 'Nudity'. Our method achieves erasure performance close to the gold baseline against different types of adversarial attacks.
generate personalized LoRA for newly input prompts, reducing the erasure of irrelevant concepts by static LoRA due to prompt differences. Compared to the original multi-concept training method of the gold baseline (ESD Mix), although the erasure metric of our method appears lower, the FID and CLIP Score of ESD Mix are far lower than those of the gold baseline. This indicates that the ESD Mix method directly destroys the image generation capability, thereby reducing the number of detected Exposed Bodies, rather than truly possessing better concept erasure performance. We also tested the erasure results when training by sequentially inputting concepts. Table 2 shows the ASR against adversarial attacks in erasing the NSFW concept 'Nudity'. It can be seen that our method can still achieve an erasure effect consistent with the gold baseline under multiple adversarial attacks.

(a) ESD Single
(b) HyperErase
(c) ESD Mix
Figure 4: t-SNE visualization comparing generated images with real images. The t-SNE distribution of HyperErase is close to that of ESD Single, whereas ESD Mix exhibits a significant shift.
It can be seen that when using this continual learning-like method, the multi-concept method of ESD almost completely loses its generation capability, manifested as high FID and low CLIP scores. This indicates that the multi-concept method of ESD must be retrained every time a new concept is added for erasure. In contrast, the CLIP and FID computed by our method when using the continual learning-like approach show no significant difference from those of HyperErase.
| Real Images | ESD Single | ESD Mix | HyperErase | |
|---|---|---|---|---|
| LPIPS | 0.742 | 0.750 | 0.730 | 0.749 |
Table 3: Comparison of LPIPS. The results of HyperErase are closer to the Real Images than other methods.
significant difference from those of HyperErase
Mix, indicating that our method does not lose generation capability when sequentially inputting new concepts for erasure, demonstrating its ability to be applied to continual learning. However, it can also be observed that when the target concept is erased at the very beginning or early stage (HyperErase First), the erasure performance degrades, even surpassing the original SD v1.4 (from 359 to 666). When the target concept is erased at the end (HyperErase Last), the erasure performance instead improves to surpass the original method. We attribute the fact that the Total Exposed Parts of HyperErase First even exceeds that of SD v1.4 to catastrophic forgetting. Because during the experiment, we directly input the trained concepts sequentially without using regularization for protection, as the gradients of the subsequent 13 concepts are continuously updated, each gradient update from subsequent tasks distorts the previously learned mappings, ultimately leading to catastrophic forgetting. In contrast, the erasure performance of HyperErase Last that surpasses the gold baseline may be because HyperErase learns meta-knowledge from erasing multiple previous concepts, and when generalizing to nudity, its effect even surpasses that of individual ESD.
To further compare the performance differences among HyperErase, ESD Mix, and ESD Single, we compute the LPIPS on the MSCOCO images generated by each method after nudity erasure and additionally render separate t-SNE plots for the respective outputs. As shown in Table 3 and Figure 4, ESD Mix yields LPIPS values lower than those of the real images, which likely stems from mode collapse or a notable reduction in diversity, and its t-SNE embedding also exhibits a marked deviation. By contrast, HyperErase's LPIPS and t-SNE distributions both align substantially closer to the gold baseline, and its LPIPS values are in fact even nearer to the real images than the gold baseline itself, demonstrating that HyperErase genuinely enhances generative capability rather than merely overfitting.
4.2.2 OBJECT ERASURE
| Method | FID (↓) | CLIP (↑) | ||
|---|---|---|---|---|
| ESD Single | 3.60 | 62.54 | 18.41 | 30.29 |
| ESD Mix | 18.10 | / | 22.56 | 29.12 |
| ESD First | 0.00 | / | 183.84 | 17.59 |
| ESD Last | 0.00 | / | 198.74 | 17.14 |
| HyperErase First | 69.15 | 70.56 | 18.60 | 30.28 |
| HyperErase Last | 3.98 | 62.49 | 18.38 | 30.37 |
| HyperErase Mix | 3.92 | 62.84 | 18.24 | 30.35 |
Table 4: Comparison of , , FID and CLIP Score for Object concepts erasure tasks.
Table 4 compares the average erasure performance of different methods on the Object Erasure task. Since ESD Mix and ESD Last/First simultaneously erase all Object concepts and generate a static LoRA, there are no Non-target Concepts. To evaluate our method, we use HyperErase with prompts containing target concepts to generate personalized LoRA, while simultaneously using this LoRA and Non-target prompts to generate images and calculate , thereby evaluating the erasure performance of our method. Similar to Nudity Erasure, HyperErase can achieve an erasure effect close to that of ESD Single and possesses better CLIP and FID. It is worth noting that the personalized LoRA generated using prompts with target concepts still maintains the same non-target concept generation capability as ESD Single. This indicates that our method can not only reduce interference with irrelevant concepts by dynamically generating LoRA, but the generated LoRA itself also introduces less influence to irrelevant concepts.
4.2.3 ARTIST STYLE ERASURE
The artist style erasure results are shown in Table 5. Similar to Object Erasure and Nudity Erasure, our method exhibits an erasure effect close to that of ESD Single, demonstrating that our method remains effective in the Artist Style Erasure task.
4.3 FURTHER ANALYSIS
Ablation on Different Base Modules: We apply HyperErase to the Flow Matching Model-based FLUX.1-dev model Labs (2024). We first use ESD-u to erase the "Nudity" concept and train it with

Figure 5: Visual results of artist style erasure results.

Figure 6: Visual results of object concepts erasure.
| Method | Erase Van Gogh | Erase Leonardo Da Vinci | Erase Pablo Picasso | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ACC | FID (↓) | CLIP (↑) | ACC | FID (↓) | CLIP (↑) | ACC | FID (↓) | CLIP (↑) | |||||||
| Top-1 | Top-3 | Top-5 | Top-1 | Top-3 | Top-5 | Top-1 | Top-3 | Top-5 | |||||||
| SD v1.4 | 0.74 | 0.94 | 1.00 | 17.84 | 31.08 | 0.00 | 0.10 | 0.26 | 17.00 | 31.38 | 0.2 | 0.98 | 1 | 17.00 | 31.38 |
| ESD Single | 0.22 | 0.48 | 0.52 | 17.46 | 30.92 | 0.00 | 0.02 | 0.10 | 17.56 | 30.89 | 0.04 | 0.54 | 0.76 | 17.65 | 30.84 |
| ESD Mix | 0.26 | 0.56 | 0.70 | 22.56 | 29.12 | 0.00 | 0.04 | 0.10 | 22.56 | 29.12 | 0.08 | 0.70 | 0.70 | 22.56 | 29.12 |
| ESD First | 0.00 | 0.00 | 0.02 | 117.74 | 20.28 | 0.00 | 0.00 | 0.00 | 183.32 | 18.28 | 0.00 | 0.04 | 0.10 | 182.80 | 17.67 |
| ESD Last | 0.00 | 0.00 | 0.02 | 155.80 | 17.77 | 0.00 | 0.00 | 0.00 | 176.88 | 17.63 | 0.00 | 0.02 | 0.14 | 186.44 | 18.46 |
| HyperErase First | 0.84 | 0.94 | 0.98 | 16.61 | 30.54 | 0.00 | 0.14 | 0.20 | 16.75 | 30.50 | 0.48 | 0.98 | 0.98 | 16.79 | 30.52 |
| HyperErase Last | 0.22 | 0.52 | 0.60 | 17.47 | 30.93 | 0.00 | 0.00 | 0.10 | 17.41 | 30.90 | 0.08 | 0.58 | 0.78 | 17.05 | 30.81 |
| HyperErase Mix | 0.16 | 0.44 | 0.48 | 17.57 | 30.90 | 0.00 | 0.04 | 0.10 | 16.91 | 30.68 | 0.08 | 0.70 | 0.76 | 17.36 | 30.84 |
Table 5: Comparison with artist concepts erasure results. ACC represents the top-k classification accuracy.
a low learning rate after the erasure is completed to collect LoRA-prompt pairs. Subsequently, we train HyperErase using the obtained dataset. For FLUX.1-dev, ESD, and HyperErase, we use the I2P dataset and 10,000 prompts from MSCOCO to generate images, respectively, and calculate the total exposed body, CLIP, and FID scores. As shown in Table 6, although the erasure effect shows a certain degree of decline, HyperErase can still successfully erase the concept on FLUX.1-dev, and the FID and CLIP are consistent with the results of the SD v1.4 model.
| Model | Total(↓) | FID (↓) | CLIP (↑) |
|---|---|---|---|
| FLUX 1.dev | 710 | 26.63 | 30.88 |
| ESD Single | 286 | 24.11 | 30.83 |
| HyperErase | 316 | 24.33 | 30.84 |
Table 6: Ablation results on FLUX.1-dev.
| Type | Total | FID (↓) | CLIP (↑) |
|---|---|---|---|
| SD v1.4 | 621 | 17.84 | 31.08 |
| ESD Single | 357 | 17.06 | 30.54 |
| without decouple | 464 | 17.77 | 30.35 |
| with decouple | 359 | 16.96 | 30.57 |
Table 7: Ablation results on HyperErase without and with decouple.
Ablation on Decoupled Magnitude Rectification: To demonstrate the effectiveness of our proposed decouple magnitude rectification, we trained 14 concepts using the same training dataset without applying decouple magnitude rectification, and validated the erasure effect and generation quality using I2P and MSCOCO. The results are shown in Table 7. It can be observed that without applying decouple magnitude rectification, the decay of multiple concepts accumulates, ultimately leading to a significant degradation in erasure capability. In contrast, the erasure effect after applying decouple magnitude rectification is close to that of the gold baseline.
5 CONCLUSION
In this work, we presented HyperErase, a hypernetwork-driven framework for multi-concept erasure in T2I models. By reformulating concept erasure as prompt-conditioned parameter amortization and combining decoupled magnitude rectification, Hyper-Erase effectively synthesizes prompt-specific adapters that eliminate target concepts while preserving the model's overall generative fidelity and semantic alignment. Extensive experiments across diverse erasure settings, including nudity, artist style, and object concepts, demonstrate that our method consistently matches the gold single-concept baseline in erasure effectiveness while improving the trade-off with image quality and semantic alignment. Quantitative evaluations and qualitative analyses further show that the resulting models maintain strong retention of non-target concepts and exhibit robust resistance to various adversarial attacks. These results highlight that HyperErase establishes a new and promising paradigm for concept erasure.
REFERENCES
Ibtihel Amara, Ahmed Imtiaz Humayun, Ivana Kajic, Zarana Parekh, Natalie Harris, Sarah Young, Chirag Nagpal, Najoung Kim, Junfeng He, Cristina Nader Vasconcelos, Deepak Ramachandran, Goolnoosh Farnadi, Katherine Heller, Mohammad Havaei, and Negar Rostamzadeh. Erasing more than intended? how concept erasure degrades the generation of non-target concepts. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 16420–16430, 2025. URL https://api.semanticscholar.org/CorpusID:275606581.
Finn Carter. Trace: Trajectory-constrained concept erasure in diffusion models. ArXiv, abs/2505.23312, 2025. URL https://api.semanticscholar.org/CorpusID:278996063.
Ruchika Chavhan, Da Li, and Timothy Hospedales. Conceptprune: Concept editing in diffusion models via skilled neuron pruning. arXiv preprint arXiv:2405.19237, 2024.
Zhi-Yi Chin, Chieh-Ming Jiang, Ching-Chun Huang, Pin-Yu Chen, and Wei-Chen Chiu. Prompting4debugging: Red-teaming text-to-image diffusion models by finding problematic prompts. ArXiv, abs/2309.06135, 2023.
Jia Deng, Wei Dong, R. Socher, Li Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. Proc of IEEE Computer Vision & Pattern Recognition, pp. 248–255, 2009.
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021.
Rohit Gandikota, Joanna Materzynska, Jaden Fiotto-Kaufman, and David Bau. Erasing concepts from diffusion models. 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 2426–2436, 2023.
Rohit Gandikota, Hadas Orgad, Yonatan Belinkov, Joanna Materzyńska, and David Bau. Unified concept editing in diffusion models. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pp. 5111–5120, 2024.
Daiheng Gao, Shilin Lu, Wenbo Zhou, Jiaming Chu, Jie Zhang, Mengxi Jia, Bang Zhang, Zhaoxin Fan, and Weiming Zhang. Eraseanything: Enabling concept erasure in rectified flow transformers. In Forty-second International Conference on Machine Learning, 2025.
Chao Gong, Kai Chen, Zhipeng Wei, Jingjing Chen, and Yu-Gang Jiang. Reliable and efficient concept erasure of text-to-image diffusion models. In European Conference on Computer Vision, 2024. URL https://api.semanticscholar.org/CorpusID:271244996.
Kaiming He, X. Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, 2015.
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Günter Klambauer, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a nash equilibrium. ArXiv, abs/1706.08500, 2017.
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.
Harry H Jiang, Lauren Brown, Jessica Cheng, Mehtab Khan, Abhishek Gupta, Deja Workman, Alex Hanna, Johnathan Flowers, and Timnit Gebru. Ai art and its impact on artists. In Proceedings of the 2023 AAAI/ACM Conference on AI, Ethics, and Society, pp. 363–374, 2023.
Black Forest Labs. Flux, 2024.
Likun Li, Hao Zeng, Changpeng Yang, Haozhe Jia, and Di Xu. Block-wise lora: Revisiting fine-grained lora for effective personalization and stylization in text-to-image generation. ArXiv, abs/2403.07500, 2024. URL https://api.semanticscholar.org/CorpusID:268363514.
Jiaqi Liu, Lan Zhang, and Xiaoyong Yuan. Dyme: Dynamic multi-concept erasure in diffusion models with bi-level orthogonal lora adaptation. ArXiv, abs/2509.21433, 2025. URL https://api.semanticscholar.org/CorpusID:281658477.
Shilin Lu, Zilan Wang, Leyang Li, Yanzhu Liu, and Adams Wai-Kin Kong. Mace: Mass concept erasure in diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6430–6440, 2024.
Dan Milmo. Ai-created child sexual abuse images ‘threaten to overwhelm internet’. The Guardian, 25, 2023.
Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv preprint arXiv:2112.10741, 2021.
Ryan O'Connor. Stable Diffusion 1 vs 2 - What You Need to Know. Blog post, 2022. Accessed: 2025-01-01.
OpenAI. DALL·E 3 System Card. Technical report, OpenAI, 9 2023.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, 2021.
Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 1(2):3, 2022.
Javier Rando, Daniel Paleka, David Lindner, Lennard Heim, and Florian Tramèr. Red-teaming the stable diffusion safety filter. ArXiv, abs/2210.04610, 2022.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695, 2022.
Kevin Roose. An ai-generated picture won an art prize. artists aren’t happy. New York Times, 16(01):2025, 2022.
Chitwan Saharia, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, Tim Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. Advances in neural information processing systems, 35:36479–36494, 2022.
Patrick Schramowski, Christopher Tauchmann, and Kristian Kersting. Can machines help us answering question 16 in datasheets, and in turn reflecting on inappropriate content? In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, FAccT '22, pp. 1350–1361, New York, NY, USA, 2022. Association for Computing Machinery. ISBN 9781450393522. doi: 10.1145/3531146.3533192.
Patrick Schramowski, Manuel Brack, Björn Deiseroth, and Kristian Kersting. Safe latent diffusion: Mitigating inappropriate degeneration in diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 22522–22531, 2023.
Riddhi Setty. Ai art generators hit with copyright suit over artists’ images. Bloomberg Law. Accessed on February, 1:2023, 2023.
Yi Sun, Zhiqi Zhang, Xinhao Zhong, Yimin Zhou, Shuoyang Sun, Bin Chen, Shu-Tao Xia, and Ke Xu. Flowerase-rl: Rethinking concept erasure as reward optimization in flow matching models. arXiv preprint arXiv:2605.19739, 2026a.
Yi Sun, Xinhao Zhong, Hongyan Li, Yimin Zhou, Junhao Li, Bin Chen, and Xuan Wang. Acterase: A training-free paradigm for precise concept erasure via activation patching. arXiv preprint arXiv:2601.00267, 2026b.
Yi Sun, Yimin Zhou, Xinhao Zhong, Zhiqi Zhang, Junhao Li, and Bin Chen. Flowerase-opd: Multi-concept erasure via anchored on-policy distillation in flow matching models. arXiv preprint arXiv:2608.07620, 2026c.
NotAI Tech. Nudenet: Neural nets for nudity classification, detection and selective censoring, 2019. Accessed: 2025-07-22.
Yu-Lin Tsai, Chia-Yi Hsu, Chulin Xie, Chih-Hsun Lin, Jia-You Chen, Bo Li, Pin-Yu Chen, Chia-Mu Yu, and Chun ying Huang. Ring-a-bell! how reliable are concept removal methods for diffusion models? ArXiv, abs/2310.10012, 2023.
Yijun Yang, Ruiyuan Gao, Xiaosen Wang, Nan Xu, and Qiang Xu. Mma-diffusion: Multimodal attack on diffusion models. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 7737–7746, 2023.
Haobo Zhang and Jiayu Zhou. Unraveling lora interference: Orthogonal subspaces for robust model merging. Proceedings of the conference. Association for Computational Linguistics. Meeting, 2025:26459 – 26472, 2025. URL https://api.semanticscholar.org/CorpusID:278995868.
Yimeng Zhang, Jinghan Jia, Xin Chen, Aochuan Chen, Yihua Zhang, Jiancheng Liu, Ke Ding, and Sijia Liu. To generate or not? safety-driven unlearned diffusion models are still easy to generate unsafe images ... for now. In European Conference on Computer Vision, 2023.
Zhiqi Zhang, Xinhao Zhong, Yi Sun, Shuoyang Sun, Bin Chen, Shutao Xia, and Xuan Wang. Differential vector erasure: Unified training-free concept erasure for flow matching models. ArXiv, abs/2602.01089, 2026.
Xinhao Zhong, Yimin Zhou, Zhiqi Zhang, Junhao Li, Yi Sun, Bin Chen, Shu-Tao Xia, Xuan Wang, and Ke Xu. Closing the safety gap: Surgical concept erasure in visual autoregressive models. arXiv preprint arXiv:2509.22400, 2025.
A DETAILS OF IMPLEMENTATION
A.1 DETAILS OF HYPER-PARAMETERS
For all 14 concept-erasure tasks, the following settings remain identical. We use Stable Diffusion v1.4 as the pretrained backbone and train the parameter generator to map a text condition to a LoRA adapter for the U-Net. For each concept, we retain 50 ESD-u teacher checkpoints and sample text prompts per training step. The prompts are tokenized to a maximum length of 128 and encoded with a frozen all-MiniLM-L12-v2 Sentence-BERT encoder, whose hidden dimension is 384. During training, each LoRA checkpoint is represented by a token tensor , where , , and . The normalized pattern is denoted by and the per-chunk scale statistics by . Canonical scale anchoring is enabled for each concept , the scale rows are replaced by the raw-space mean of its 50 teacher checkpoints and then re-encoded with the square-root transform. Thus the training target follows
and the scale rows of are set to . The generator is optimized with the importance-weighted mean-squared objective defined in the paper. The criterion weights are computed with the square-root encoding and clamped to a floor of 0.05 before renormalization. Training uses fp32 data, the AdamW optimizer, a learning rate of . The implementation uses standard AdamW by default. During inference, we use the DDIM sampler with 50 denoising steps and a classifier-free guidance scale of 7.5. The details of Hyper-parameters are listed in Table 8
| Hyper-parameters | Value |
|---|---|
| K (number of concepts) | 14 |
| S (teacher checkpoints per concept) | 50 |
| M (text prompts per training step) | 32 |
| Maximum text length | 128 |
| Condition dimension | 384 |
| N (number of weight tokens) | 7,502 |
| h (token height) | 10 |
| (token width) | 130 |
| S (sqrt-encoding normalizer) | 0.006 |
| Learning rate | |
| Noise enhancement coefficient | |
| Sampling steps | 50 |
| Classifier-free guidance scale | 7.5 |
Table 8: Details of Hyper-parameter values.
A.2 DETAILS OF VALIDATION DATASET
We unify the detailed experimental settings for erasing and validating each concept as follows:
Nudity Erasure: We erase the Nudity concept and generate images with all 4703 prompts and evaluation seeds from the I2P dataset Schramowski et al. (2023). To evaluate robustness against prevailing adversarial attacks, we further conduct experiments on MMA-diffusionYang et al. (2023), Prompt4Debugging (P4D)Chin et al. (2023), Ring-a-bellTsai et al. (2023) and UnlearnDiffZhang et al. (2023). We measure the attack success rate (ASR) and robustness by employing the Nudenet detector Tech (2019) to count the number of exposed body parts in images generated before and after erasure.
Object Erasure: We erase 10 object concepts from ImageNet Deng et al. (2009) to assess how effectively target object concepts are removed. We generate 500 images for each object with the same prompt template (i.e. "an image of a <object>") and detect target object by a ResNet-50 ImageNet classifier He et al. (2015). We then calculate the Attack Success Rate (ASR) for the target concept as well as for the other nine non-target concepts.
Artist Style Erasure: We assess the performance of style erasure on three artist styles, Van Gogh, Da Vinci, and Picasso and validate and evaluate using the validation dataset provided by Conceptprune Chavhan et al. (2024). We apply the style classifier provided by UnlearnDiff to categorize the images produced, and report the Top-k accuracy to measure how well the style is removed.
To evaluate whether the model retains its general usefulness, we also generate 10,000 images with prompts drawn from MS-COCO and then calculate both CLIP and FID scores for every method.
| Method Concept | ESD Single | HyperErase Mix | ||||||
|---|---|---|---|---|---|---|---|---|
| FID (↓) | CLIP (↑) | FID (↓) | CLIP (↑) | |||||
| Vanilla | / | / | 17.84 | 31.08 | / | / | 17.84 | 31.08 |
| Church | 15.0 | 71.8 | 17.64 | 30.69 | 19.0 | 72.0 | 17.56 | 30.72 |
| Tench | 0.0 | 56.6 | 17.70 | 30.32 | 0.0 | 57.2 | 17.75 | 30.35 |
| Golf Ball | 0.0 | 57.4 | 17.10 | 30.50 | 0.0 | 57.2 | 16.93 | 30.51 |
| English Springer | 0.2 | 65.9 | 18.61 | 30.28 | 0.2 | 66.0 | 18.40 | 30.32 |
| Cassette Player | 0.0 | 66.9 | 17.43 | 30.16 | 0.0 | 68.9 | 17.00 | 30.26 |
| Chain Saw | 0.8 | 56.2 | 19.18 | 29.95 | 0.6 | 56.4 | 19.08 | 29.98 |
| French Horn | 0.2 | 58.3 | 17.71 | 30.47 | 0.2 | 58..8 | 17.57 | 30.52 |
| Garbage Truck | 16.0 | 63.2 | 19.93 | 30.19 | 15.6 | 62.7 | 19.68 | 30.32 |
| Gas Pump | 1.4 | 65.3 | 20.53 | 30.07 | 1.4 | 65.4 | 20.18 | 30.13 |
| Parachute | 2.4 | 63.7 | 18.30 | 30.31 | 2.2 | 63.7 | 18.21 | 30.35 |
Table 9: Details of each object erasure results. We report 10 object and list the Top-1 ASR. represents the ASR of target concept that should be erased, while represents the ASR of other concepts that need to be kept. Compared with the gold baseline ESD Single, HyperErase achieves comparable erasure effectiveness for every concept while reducing the impact on unrelated concepts, as reflected by improved CLIP score and a lower FID.
B ADDITIONAL EXPERIMENT RESULTS
B.1 DETAILS OF OBJECT ERASURE
To better demonstrate the effectiveness of HyperErase, we compare the detailed erasure results for each concept between HyperErase Mix and ESD Single in Table 9. It can be seen that our method outperforms the gold baseline in both CLIP and FID scores across all concepts. The and are either close to or partially better than the gold baseline, indicating that our method can effectively learn from the gold baseline to achieve multi-concept erasure.
B.2 ADDITIONAL ABLATION STUDY
Ablation on The Epoch: We evaluated the erasure performance of HyperErase under different epochs. As shown in Table 11, as the number of epochs increases, the exposed body decreases, while FID and CLIP remain unchanged, indicating that the erasure performance improves with the increase of epochs. It is worth noting that the erasure performance at 2000 epochs is already quite close to the gold baseline, indicating that HyperErase can achieve a certain effect without training for a very large number of epochs.
Ablation on The Number of Concepts: Under the SD v1.4 framework, we employ HyperErase to simultaneously erase different numbers of concepts to verify the impact of the number of concepts on the erasure effect. Specifically, we perform concept erasure on 3, 5, 10, and all 14 concepts, calculate the exposed body for Nudity, and use 10,000 prompts randomly sampled from the MSCOCO dataset to evaluate the FID and CLIP scores, so as to measure the overall image quality and image-text alignment. As shown in Table 10, in the multi-concept erasure scenario, as the number of concepts increases, the exposed body only decreases slightly and still remains close to the baseline. Meanwhile, under different numbers of erased concepts, the CLIP and FID scores are basically consistent. It is worth noting that when the number of concepts is small, the exposed body is even less than that of the gold baseline. We speculate that this is caused by overfitting. To control variables, the HyperErase with different numbers of concepts are all trained for the same number of epochs, so overfitting may occur when the number of concepts is small. Moreover, the erasure effect itself improves with the increase of epochs, as shown in the Tabel 11.
| Method | Total | FID (↓) | CLIP (↑) |
|---|---|---|---|
| SD v1.4 | 621 | 17.84 | 31.08 |
| ESD Single | 357 | 17.06 | 30.54 |
| HyperErase 3 concepts | 348 | 17.04 | 30.57 |
| HyperErase 5 concepts | 349 | 17.02 | 30.59 |
| HyperErase 10 concepts | 355 | 16.96 | 30.58 |
| HyperErase 14 concepts | 359 | 16.69 | 30.57 |
Table 10: Comparison of total exposed body, FID and CLIP Score for multiple erasure tasks with different numbers of concepts.
| Method | Total | FID (↓) | CLIP (↑) |
|---|---|---|---|
| SD v1.4 | 621 | 17.84 | 31.08 |
| ESD Single | 357 | 17.06 | 30.54 |
| HyperErase w/ 2000 epoch | 361 | 16.96 | 30.57 |
| HyperErase w/ 4000 epoch | 361 | 16.99 | 30.57 |
| HyperErase w/ 6000 epoch | 357 | 16.96 | 30.57 |
| HyperErase w/ 8000 epoch | 359 | 16.69 | 30.57 |
Table 11: Comparison of total exposed body, FID and CLIP Score for different training epochs.
Ablation on The Gold Baseline and Modules: Our method is agnostic to both the gold baseline and the modules of the model. To verify this claim, we adopt another concept erasure method, EraseAnything, as the gold baseline. We utilize EraseAnything to fine-tune the model to obtain the erased LoRA, and sample multiple erased parameters along with their corresponding prompts as training data to train our HyperErase. Subsequently, we use all prompts from the I2P dataset and 10k prompts from MSCOCO to generate images, and evaluate them by detecting exposed body parts and measuring the CLIP score and FID. In the main experiments, we used ESD-U as the gold baseline, so our method consistently generates LoRA parameters for all non-cross-attention (non-CA) layers. In contrast, EraseAnything performs fine-tuning on the text-projection layers; therefore, we generate LoRA parameters for the corresponding layers. The experimental results are shown in Table 12. It can be seen that our method can still achieve concept erasure performance close to the gold baseline, which demonstrates that our method does not depend on a specific gold baseline method and is independent of the model's modules.
| Methods | Total | FID (↓) | CLIP (↑) |
|---|---|---|---|
| SD v1.4 | 621 | 17.84 | 31.08 |
| EraseAnything | 315 | 18.26 | 30.69 |
| HyperErase | 337 | 18.28 | 30.70 |
Table 12: Comparison of total export parts, FID and CLIP Score for Baseline, EraseAnything and HyperErase. Our method can still generate erasure LoRA with different gold baseline and modules.
| Methods | Total | FID (↓) | CLIP (↑) |
|---|---|---|---|
| SD v1.4 | 621 | 17.84 | 31.08 |
| RECE | 68 | 17.74 | 30.66 |
| HyperErase(Best) | 73 | 17.48 | 30.88 |
Table 13: Comparison of total export parts, FID and CLIP Score for Baseline, RECE and Hyper-Erase. The best results show that HyperErase can still generate erasure LoRA with non-LoRA gold baseline.
Ablation on non-LoRA Gold Baseline: In previous experiments, the gold baseline we used was to train a LoRA for erasure. To verify the applicability of our method, we adopt a training-free method, RECE, as the gold baseline. RECE Gong et al. (2024) directly derives a new embedding for the target concept in the cross-attention layers based on a closed-form solution and aligns it to a harmless concept. Formally, RECE directly edits the weights of the corresponding layers without generating a LoRA. Therefore, we first perform erasure using RECE and obtain the erased weights. Subsequently, we use these weights and the original weights to approximate a LoRA, and then use this LoRA to train HyperErase. The results are shown in Table 13. It can be seen that HyperErase can still generate erased LoRA. However, we also observe that fitting RECE is not always successful. In several experiments, there are cases where the exposed parts reach 301, which is much higher than that of RECE. We speculate that there is a problem with the weight-to-LoRA conversion method, which may require targeted tuning.
B.3 ADDITIONAL VISUAL RESULTS
In this section we will provide extra visual results. Table 7 shows the erasure results for additional Nudity, Table 8 shows the erasure results for additional Object, and Table 9 shows the erasure results for additional Artist Style. Table 10 shows the visual results on the MSCOCO dataset.
C ADDITIONAL DERIVATIONS
C.1 ALGORITHM
In this section, we present the algorithm of this paper, as shown in Algorithm 1.
Algorithm 1 HyperErase
Input: Tokenized prompt-LoRA training set , where is a batch of prompts, is its target token grid, and is the set of valid token positions; frozen BERT encoder ; token-importance weights ; learning rate ; number of training steps ; fixed scale constant
Output: Trained parameter generator and a generated LoRA adapter for an input prompt
1: Training
2: Initialize generator parameters and freeze
3: for to do
4: Sample a minibatch
5: for to do
6:
7:
8: end for
9:
10:
11: end for
12:
13: Inference
14: Input a new prompt and a reference LoRA structure
15: with repeated prompt slots
16:
17: for each token do
18: Extract the normalized pattern from the valid entries of
19: Renormalize the pattern:
20: Read from by averaging its repeated scale entries
21:
22:
23: end for
24: Detokenize using to obtain
25: Apply to the pretrained U-Net and generate the image conditioned on the input prompt
26: return
C.2 CANONICAL SCALE ANCHORING
For concept k, collect the raw per-chunk statistics
The implementation constructs the canonical target by applying the encoder after the raw-space average
Let be the covariance of the raw scale statistics within concept . Before anchoring, the average squared distance from the concept center is
After anchoring, every checkpoint associated with receives the same pre-encoding target ; hence its within-concept target variance is exactly
Consequently, for a fixed concept and the scale-only regression subproblem, the within-concept component of the Bayes risk is removed. The remaining scale regression problem is concept-level rather than checkpoint-level. The generator need only distinguish the canonical statistics of different concepts. So replacing each sampled scale target by the concept-specific canonical block can increase the precise of variance.
C.3 SQUARE-ROOT DECODER BIAS
Let the encoded prediction error be
Substituting this perturbation into the decoder and subtracting the true standard deviation gives the exact identity
If and , the mean decoded error is
Thus the square-root decoder converts zero-mean encoded noise into an additive bias proportional to the encoded-error variance and to . For a symmetric error distribution, , and the leading term of the second moment is linear in .
For small errors, the relative error has the first-order form
This equation shows that it reduces the source of by removing within-concept scale variation before the generator is optimized, and therefore controls the decoder-induced bias at its source.
C.4 INFERENCE-TIME RENORMALIZATION
Let denote the valid, non-padding pattern entries of one predicted LoRA chunk, and let denote the -scoring operation implemented during renormalization, with entrywise mean and entrywise standard deviation . For any and any constant , the transformed pattern satisfies
and therefore
The operation removes the predicted chunk's affine magnitude and offset while preserving its coordinate-wise orientation for positive scaling. If the detokenized chunk is written as
then, provided the same standard-deviation convention is used in both steps,
Hence the separately decoded (or canonical) pair determines the reconstructed chunk magnitude.
For layer and calibration checkpoint i, the code measures the effective LoRA update norm
The calibration target and the norm of the generated adapter are
When , the implementation uses
By homogeneity of the Frobenius norm,
Moreover, the normalized effective update is unchanged
Therefore renormalization changes only the effective layer magnitude, not the generated LoRA direction or its rank-r subspace. This explains why calibration can be applied after detokenization without retraining .
C.5 FIRST-ORDER LORA FACTOR ERROR
Let the ideal LoRA factors for layer be and , and write the generated factors as
The resulting effective update error is exactly
Using submultiplicativity of the Frobenius and spectral norms gives
For small factor errors, the final product term is second order. The first two terms show that errors in the scale rows are amplified by the factor norms, and motivate the decoupling: canonical scale anchoring reduces the magnitude-related part of and , while pattern renormalization controls the standardized-pattern norm before the factors are recoupled. If the generated effective update is approximately a scalar multiple of the ideal direction, , then calibration selects
which cancels the scalar magnitude error while leaving the directional error unchanged. This is the algebraic separation exploited by the inference-time calibration branch. Scale anchoring controls the source of , pattern renormalization controls orientation, and HyperErase calibration corrects residual magnitude without modifying the learned LoRA subspace.
D AI DISCLOSURE SECTION
In this work, we used generative AI tools for <Generate synthetic data sets, assist in the writing of proofs, assist with translation, create or edit software code, draft parts of a research paper, summarize or analyse existing literature, sourcing/searching for information, edit a research paper to improve readability, identify relevant literature, format references>. We have not used generative AI tools for <help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, propose or refine hypotheses, design or provide feedback on research methodology or experiments, implement methods, interpret results, create or modify scientific figures or images, suggest experimental parameters, discover research topics or identify gaps, brainstorming, suggest a structure for a research paper, propose a title or keywords for a research paper>, and <clean and reformat dataset, support qualitative and thematic data analysis, Formulate questions for surveys or interviews, creation of artifacts, transcribe recordings of research material> are not applicable to this work. Additionally, we used generative AI tools for <tasks with recommended disclosure>. We have reviewed all AI-assisted work. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
SD v1.4
ESD Single
ESD Mix
ESD First
ESD Last
HyperErase
First
HyperErase
Last
HyperErase
Mix

Figure 7: Additional results of adversarial attacks, including MMA, RAB, P4D and UnlearnDiff.
French Horn
Original

Garbage Truck
Gas Pump
Golf Ball
Modified

Figure 8: Additional erasure results of object.
Van Gogh
SD v1.4
ESD Single
ESD Mix
HyperErase
First
HyperErase
Last
HyperErase
Mix
Da Vinci

Picasso
Figure 9: Additional results of erasing 'Van Gogh'.
Original

Modified
Figure 10: Comparison of images generated by different methods via MS-COCO dataset.