Manuscript Offprint

arXiv:2609.01433

Gaussian Core LoRA: Distribution-Aware Dynamic Adaptation for Broad Concept Erasure

Qinghui Gong, Xunlei Chen, Yu-Xuan Zhang, Hua Meng, Zhengchun Zhou

Abstract

Concept erasure aims to suppress unsafe, privacy-sensitive, or undesirable generations in text-to-image diffusion models while preserving benign semantics, visual quality, and deployment efficiency. Existing adapter-based methods, such as Low-Rank Adaptation (LoRA), typically freeze the diffusion backbone and learn lightweight parameter updates to steer generation away from target semantics. However, these methods usually assign a static semantic erasure direction to each target concept. This assumption is overly coarse for broad and complex target concepts, since a concept often contains multiple latent semantic prototypes involving different objects, scenes, or relations, and requires different local erasure directions. A single LoRA update averages these heterogeneous erasure demands, leading to under-erasure on difficult prototypes and over-editing of nearby benign semantics. To address this limitation, we propose Gaussian Core LoRA, a distribution-aware low-rank adaptation framework. It fits a Gaussian mixture model in the prompt feature space to estimate latent semantic prototypes within the target concept. During inference, each input prompt is projected into this feature space to compute its Gaussian posterior responsibilities, which condition the core generator to produce a prompt-specific, norm-bounded residual reconfiguration of the shared LoRA rank space. This enables prototype-adaptive erasure with a single lightweight adapter. Compared with the strongest baseline on each metric, Gaussian Core LoRA reduces average Attack Success Rate (ASR) by 7.95%, lowers COCO Fréchet Inception Distance (FID) by 14.72%, and improves CLIP Score by 4.98%. Further experiments show robustness to adversarial prompts, scalability to multi-identity and multi-style erasure, and compatibility with SDXL and FLUX.

1 Introduction

Recent advances in text-to-image diffusion models have substantially improved open-ended visual generation (Song, Meng, and Ermon 2020; Tu et al. 2025b; Ho, Jain, and Abbeel 2020). However, their large-scale training data inevitably contains undesirable concepts, such as sexual, violence, hate, sensitive identities, or copyrighted characters (Jiang et al. 2023; Wang et al. 2025; Lu et al. 2024), exposing deployed models to safety, privacy, and ethical risks. Therefore, how to suppress target concepts without retraining the entire model, while preserving benign semantics, visual quality, and deployment efficiency, has become an important problem in

Figure

Figure 1: Motivation of Gaussian Core LoRA. An unsafe concept may contain multiple latent modes requiring different erasure directions. Static LoRA uses a fixed update and may fail on misaligned modes, whereas Gaussian Core LoRA adapts the update to each prompt's latent-mode position.

diffusion model safety control.

Existing concept erasure methods can be roughly categorized into inference-time intervention, model fine-tuning, and parameter-efficient adaptation. Inference-time methods require no training (Liu et al. 2024; Wu et al. 2024; Yoon et al. 2025; Wang et al. 2025) and are easy to deploy, but the model's internal generative tendency is not truly modified, making them vulnerable to implicit prompts, prompt rewriting, or adversarial attacks (Zhang et al. 2024b; Chin et al. 2023; Tsai et al. 2024). Global or local fine-tuning methods can more directly change model behavior (Gandikota et al. 2023, 2024; Feng et al. 2025; Tu et al. 2025a; Fan et al. 2024), but they incur high training costs and may damage non-target semantics. In contrast, Low-Rank Adaptation (LoRA)-based adapters freeze the diffusion backbone and perform concept erasure with only a small number of pluggable parameters (Kumari et al. 2023; Zhang et al. 2024a; Hu et al. 2022), providing a practical trade-off among training cost, storage overhead, and deployment flexibility. However, most LoRA-style erasure methods still follow concept-level static modeling: given a human-defined target concept, they learn a fixed low-rank update and apply it to all prompts under that concept. Early methods train independent adapters for individual persons, styles, objects, or sensitive words (Zhao et al. 2024; Lyu et al. 2024; Liu, Zhang, and Yuan 2025), while recent multi-concept methods, such as MACE (Lu et al. 2024) and SuPLoRA (Tu et al. 2026), rely on adapter fusion or shared adaptation to improve scalability. Although these methods exploit shared structures among related concepts, they are still organized around manually defined concept boundaries rather than the actual distribution of target prompts in the model feature space.

This label-level formulation overlooks the internal diversity of how diffusion models represent a target concept. A human label only specifies what should not be generated, but not how the model represents and composes that concept. A broad concept may contain multiple identity instances, visual modes, scene relations, or semantic subcategories, which occupy different regions in the prompt feature space and require different local erasure directions (Cassano et al. 2025; Cai et al. 2026; Yin, Tian, and Zhang 2025). As illustrated in Fig. 1, even a manually defined unsafe concept can form separated latent clusters, where a fixed LoRA correction may cover only part of the modes. As a result, static LoRA compresses a high-entropy target distribution into a single fixed update, causing mode averaging: weak updates fail on difficult modes, while strong updates may interfere with nearby benign semantics (Jiang et al. 2025). This motivates a new perspective: broad concept erasure should be viewed as learning a conditional low-rank editing operator over the prompt feature distribution, rather than estimating a single parameter update for a human-defined label.

Based on this view, we propose Gaussian Core LoRA, a distribution-aware dynamic low-rank adaptation method for broad concept erasure. It learns a shared LoRA space for a broad target concept and dynamically reconfigures this space according to each prompt's position in the feature distribution. Specifically, a Gaussian support gate suppresses adapter activation for prompts far from the target distribution, GMM responsibilities provide soft latent-mode routing, and a dynamic core produces prompt-conditioned rank-space reconfiguration. Empirically, Gaussian Core LoRA improves the erasure–preservation trade-off across seven unsafe prompt groups, reducing average ASR by 7.95% relative to the strongest average baseline while improving COCO FID and CLIP Score. Its adaptive rank-space reconfiguration also improves robustness to adversarial prompts, achieving 2.0%, 14.5%, and 10.0% ASR on Ring-A-Bell (Tsai et al. 2024), P4D (Chin et al. 2023), and UnDiff (Zhang et al. 2024b), respectively, while remaining effective on both SDXL (Podell et al. 2024) and FLUX (Esser et al. 2024).

Our main contributions are summarized as follows:

• We formulate concept erasure from a feature-distribution perspective, showing that multimodal concept distributions make static LoRA prone to mode averaging, incomplete mode coverage, and semantic interference.

• We propose Gaussian Core LoRA, a gate-router-core dynamic low-rank adaptation framework. It uses a Gaussian support gate for coarse activation screening, GMM posterior responsibilities for soft latent-mode routing, and a dynamic core for prompt-conditioned reconfiguration in the shared LoRA rank space.

• We validate that Gaussian Core LoRA uses a single shared adapter to cover heterogeneous modes within each broad target concept without separate mode-specific training. The same design scales to joint erasure of up to 50 identities/styles and maintains favorable erasure–preservation trade-offs under adversarial prompts and cross-architecture evaluation on SDXL and FLUX.

References (68)

  • Prototype-guided concept erasure in diffusion models
  • SAEmnesia: Erasing Concepts in Diffusion Models with Sparse Autoencoders (opens arXiv in a new tab)
  • Chin, Z.-Y.; Jiang, C.-M.; Huang, C.-C.; Chen, P.-Y.; and Chiu, W.-C. 2023. Prompting4debugging: Red-teaming text-to-image diffusion models by finding problematic prompts. arXiv preprint arXiv:2309.06135. (opens arXiv in a new tab)
  • Scaling rectified flow transformers for high-resolution image synthesis
  • SalUn: Empowering Machine Unlearning via Gradient-based Weight Saliency in Both Image Classification and Generation
  • FG-OrIU: Towards Better Forgetting via Feature-Gradient Orthogonality for Incremental Unlearning
  • Erasing concepts from diffusion models
  • Unified concept editing in diffusion models
  • GIPHY Celebrity Detector
  • Selective amnesia: A continual learning approach to forgetting in deep generative models
  • GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
  • Denoising diffusion probabilistic models
  • LoRA: Low-Rank Adaptation of Large Language Models
  • GPT-4o System Card
  • AI Art and its Impact on Artists
  • HiMoLE: Towards OOD-Robust LoRA via Hierarchical Mixture of Experts
  • Microsoft coco: Common objects in context
  • DyME: Dynamic Multi-Concept Erasure in Diffusion Models with Bi-Level Orthogonal LoRA Adaptation (opens arXiv in a new tab)
  • Latent guard: a safety framework for text-to-image generation
  • One-dimensional adapter to rule them all: Concepts diffusion models and erasing applications
  • SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis
  • Learning transferable visual models from natural language supervision
  • Red-teaming the stable diffusion safety filter (opens arXiv in a new tab)
  • Safe latent diffusion: Mitigating inappropriate degeneration in diffusion models
  • Denoising Diffusion Implicit Models
  • Ring-A-Bell! How Reliable are Concept Removal Methods For Diffusion Models? In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024
  • CE-SDWV: Effective and Efficient Concept Erasure for Text-to-Image Diffusion Models via a Semantic-Driven Word Vocabulary (opens arXiv in a new tab)
  • Driveditfit: Fine-tuning diffusion transformers for autonomous driving data generation
  • Mass Concept Erasure in Diffusion Models with Concept Hierarchy
  • Precise, fast, and low-cost concept erasure in value space: Orthogonal complement matters
  • Universal prompt optimizer for safe text-to-image generation
  • Rethinking Robust Adversarial Concept Erasure in Diffusion Models (opens arXiv in a new tab)
  • SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generation
  • Unlearncanvas: Stylized image dataset for enhanced machine unlearning evaluation in diffusion models (opens arXiv in a new tab)
  • To generate or not? safety-driven unlearned diffusion models are still easy to generate unsafe images
  • Separable multi-concept erasure from diffusion models (opens arXiv in a new tab)
  • The core is written as an identity-residual form:
  • Let $Y_s \in \{0, 1\}$ indicate whether a prompt lies within the ideal target-concept support
  • This explains why normalized GMM responsibilities alone are insufficient: they only affect the routing term and cannot suppress false activation on benign prompts
  • If the true mode is $M$ and
  • Then the residual has rank at most $r_c$:
  • For the k-th Gaussian component, the unnormalized log posterior is
  • We freeze the diffusion backbone and the text encoder, and only update the shared LoRA bases, the dynamic core generator, and the layer embeddings
  • The layer embedding dimension is set to $d_e = 16$, and the hidden dimension of the dynamic core generator is set to 64
  • The effective batch size is set to 64, implemented with gradient accumulation when necessary
  • two people
  • a portrait photo of {identity}
  • a painting of {content} in the style of {artist}
  • Instead, for each target concept, we fit diagonal-covariance GMMs with candidate component numbers $K \in \mathcal{K}$ and select the final $K$ using the Bayesian information criterion (BIC):
  • The final number of Gaussian components is selected as
  • For the seven I2P unsafe-concept groups, we select $K$ from a small candidate set
  • For the seven unsafe-concept groups, we fix $r = 8$ and allocate a larger $r_c$ to concepts with more complex latent distributions, increasing from $r_c = 2$ for Hate and Harassment to $r_c = 6$ for Violence
  • We extract prompt-level embeddings, project them into two latent semantic dimensions, and fit a GMM to estimate the target density, as shown in Figure 9
  • Multiple local modes still exist, suggesting that different identities or styles may require different local erasure directions
  • Compared with unsafe concepts or identity concepts, artistic styles are mainly reflected in relatively concentrated visual appearance patterns, such as color distribution, brushstroke texture, composition preference, and local rendering statistics
  • Each point corresponds to one prompt, and the background shows the fitted GMM density after projection to two latent semantic dimensions
  • Gaussian Core LoRA retains the
  • The subsequent single-stream Transformer blocks remain frozen and unmodified
  • Each projection is assigned an individual learnable embedding $e_{j}$, and its core is generated from the concatenation of the GMM responsibility vector and the projection embedding:
  • 0 \}, \tag {56} $$
  • \tag {57} $$
  • Applying the same gate–router–core mechanism to both streams enables prompt-dependent control over their semantic interaction without modifying the remaining Transformer components
  • The support percentile $\beta$ and gate temperature $T_g$ follow the task-specific settings described in Appendix B
  • Given a target-safe prompt pair $(p_i^-, p_i^+)$, the FLUX pair loss is
  • The same noisy latent $x_t$ and timestep $t$ are used for the two prediction branches
  • Only the adapter injection locations and the backbone-native prediction parameterization are changed, while the Gaussian support gate, GMM-based soft routing, bounded dynamic core, and joint optimization objective remain unchanged
  • These two models differ from SD v1.5 in model scale, denoising architecture, and generation behavior, making them suitable for examining the architecture compatibility of our method
  • This indicates that the proposed dynamic core does not simply over-suppress the generation process, but performs a more localized intervention in the shared LoRA rank space