Orthogonal Concept Erasure for Diffusion Models
Yuhao Sun (USTC), Lingyun Yu, Hao-Xiang Xu, Fengyuan Miao, Zhuoer Xu, Hongtao Xie
Overview
Modern text-to-image diffusion models exhibit extraordinary generative capabilities, but this power introduces significant risks regarding copyright infringement, protected characters, unsafe content, and the exposure of private identities. Addressing these vulnerabilities requires removing specific semantics without destabilizing the broader model architecture. This talk presents Orthogonal Concept Erasure (OCE), a geometry-aware parameter editing framework designed to efficiently excise undesired concepts from diffusion models while strictly preserving their original generation capabilities.

Key moments
- 0:00 Introduction and definition of concept erasure
- 2:00 Toy experiment analyzing geometry in weight perturbations
- 4:00 Orthogonal Concept Erasure formulation and subspace extension
- 5:30 Single concept erasure experiments and results
- 6:00 Multi-concept erasure and cross-architecture evaluation
- 6:40 Conclusion and main takeaways
- 7:20 Audience Q&A on non-target concepts and model selection
- 8:47 Audience Q&A on extending method to image editing
Orthogonal Concept Erasure for Diffusion Models
Speakers: Yuhao Sun (USTC); Lingyun Yu; Hao-Xiang Xu; Fengyuan Miao; Zhuoer Xu; Hongtao Xie
Conference: ICML
YouTube: https://slideslive.com/39083741
Overview
Modern text-to-image diffusion models exhibit extraordinary generative capabilities, but this power introduces significant risks regarding copyright infringement, protected characters, unsafe content, and the exposure of private identities. Addressing these vulnerabilities requires removing specific semantics without destabilizing the broader model architecture. This talk presents Orthogonal Concept Erasure (OCE), a geometry-aware parameter editing framework designed to efficiently excise undesired concepts from diffusion models while strictly preserving their original generation capabilities.
Presented at ICML by Yuhao Sun from the University of Science and Technology of China (USTC), the work reframes concept erasure from a brute-force fine-tuning problem into a geometric parameter transformation. Existing methods generally fall into two categories: training-based approaches like ESD (Erasure via Negative Guidance), which require costly iterative optimization, and editing-based approaches like UCE (Unified Concept Editing), which offer closed-form updates on cross-attention weights but suffer from fragility, imprecise erasure, or collateral damage to return concepts. OCE resolves this tension by demonstrating that semantic directions, rather than scalar magnitudes, dictate concept expression, and that orthogonal transformations can surgically alter these directions while protecting the model’s internal angular geometry.
The methodology scales gracefully from single-concept modifications to multi-concept settings—successfully erasing up to 100 celebrity identities simultaneously—and extends seamlessly beyond traditional UNet architectures to modern architectures such as Flux and DiT (Diffusion Transformer). By casting erasure as an orthogonal Procrustes problem and shifting from vector-wise to subspace-level formulations for multi-concept removal, OCE delivers a robust, deployment-friendly solution for model safety and alignment.
Background
▶ Watch: Introduction and definition of concept erasure (0:00)
The problem of concept erasure in generative machine learning stems from the tension between open-ended model capabilities and real-world safety, privacy, and intellectual property constraints. Text-to-image diffusion models learn vast latent spaces that encode copyrighted artistic styles, trademarked characters, violent or explicit imagery, and identifiable private individuals. When models reproduce these undesirable elements, downstream deployers face legal, ethical, and operational risks. Consequently, the machine learning systems community faces an urgent need for post-hoc alignment techniques that can scrub specific concepts from a pre-trained model without requiring expensive, full-scale retraining from scratch.
Prior work addresses this challenge through two primary paradigms. Training-based methods, typified by ESD, leverage classifier-free guidance dynamics. During standard inference, classifier-free guidance moves the network's prediction along a vector pointing from the unconditional prediction toward the conditional prediction. ESD reverses this trajectory, treating the negative direction as an erasure target and fine-tuning the model weights iteratively. While flexible, this approach demands substantial computational overhead and risks destabilizing adjacent generative behaviors due to unconstrained gradient updates.
Conversely, editing-based methods such as UCE bypass iterative optimization by computing closed-form algebraic updates directly on cross-attention weight matrices. These methods map target concepts to designated anchor concepts while attempting to leave non-target (return) concepts unaffected. However, algebraic edits via unconstrained additive updates ($\mathbf{W} + \Delta$) alter both the magnitude and pairwise angles of the weight vectors. This unintended geometric distortion frequently leads to fragile erasures, incomplete removal of target semantics, or severe degradation of the model's overall generative quality. This methodological gap highlights the need to understand the underlying geometry of concept representation in cross-attention layers, inspiring the geometry-aware design of OCE.
Key Findings
▶ Watch: Orthogonal Concept Erasure formulation and subspace extension (4:00)
The central discovery underpinning OCE is that semantic concept representation in diffusion models is governed primarily by directional geometry rather than scalar magnitude. Through targeted toy experiments perturbing cross-attention weight matrices $\mathbf{W}$ via magnitude scaling, neuron-wise rotation, and layer-wise rotation, the authors demonstrate that altering weight magnitudes has negligible impact on target concepts (such as generating a "cat"), whereas altering directional vectors directly transforms concept expression.
However, naive directional changes—such as independent neuron-wise rotations—disrupt the relative angles among neurons, destroying the model's overarching generative capacity. The key finding is that successful concept erasure requires rotating semantic directions while preserving intrinsic angular geometry and vector norms.
Building on this insight, the experimental evaluation establishes several headline results:
- Single-Concept Fidelity: On CIFAR-10 object erasure, artistic style removal, and implicit unsafe concept erasure (where target concepts are triggered without explicit prompt mentions), OCE achieves a robust balance, completely suppressing target outputs while preserving non-target image quality.
- Scalable Multi-Concept Removal: When scaling up to erase 10, 50, and 100 celebrity identities simultaneously, vector-wise alignment approaches suffer from conflicting target-to-anchor mappings that cause erasure failure. OCE's subspace-level formulation overcomes this, maintaining low target detection accuracy while preserving non-target identities even at the 100-concept scale.
- Cross-Architecture Generalization: Applying OCE to advanced DiT-based architectures like Flux demonstrates that the geometric principles of orthogonal concept erasure are model-agnostic, yielding effective removal of objects, styles, and identities across diverse backbone networks.
- Deployment Efficiency: Operating via closed-form solutions rather than iterative training loops, OCE executes full model edits in a matter of seconds.
Technical Deep Dive
▶ Watch: Multi-concept erasure and cross-architecture evaluation (6:00)
The technical architecture of OCE departs from traditional additive parameter updates by employing geometry-preserving transformations on cross-attention weight matrices.
From Additive to Orthogonal Updates
Standard editing methods formulate weight modification as:
$$\mathbf{W}_{\text{edited}} = \mathbf{W} + \Delta$$
Where $\Delta$ represents an additive update matrix. While this changes semantic directions, it simultaneously distorts vector norms and pairwise angles, warping the model's internal geometry. OCE replaces this additive paradigm with an orthogonal transformation:
$$\mathbf{W}_{\text{edited}} = \mathbf{P}\mathbf{W}$$
Subject to the constraint that $\mathbf{P}$ is an orthogonal matrix ($\mathbf{P}^T\mathbf{P} = \mathbf{I}$). This constraint ensures that the transformation acts purely as a rigid rotation or reflection in weight space, preserving vector norms and exact pairwise angles. For single-concept erasure, this optimization reduces to a classic orthogonal Procrustes problem, which admits a direct closed-form solution.
Subspace-Level Formulation for Multi-Concept Erasure
While vector-wise orthogonal updates excel at single-concept removal, attempting to erase large, concurrent sets of concepts via strict vector-to-vector mappings introduces severe optimization conflicts. Different target-to-anchor alignments push the parameter space in incompatible directions, causing erasure failure.
To resolve this bottleneck, OCE transitions from vector-wise constraints to a subspace-level formulation. Instead of forcing every individual target concept vector to map identically to a specific anchor vector, the method represents target concepts and anchor concepts as multidimensional subspaces. The optimization objective suppresses only the component of the transformed target subspace that extends outside the anchor subspace. Meanwhile, non-target return concepts continue to be protected using precise vector-wise constraints. This hybrid subspace-vector formulation allows OCE to scale gracefully to massive concept sets without inducing cross-concept interference or model collapse.
Experimental Setup & Results
▶ Watch: Conclusion and main takeaways (6:40)
The empirical evaluation of OCE spans multiple datasets, model families, and concept categories to validate both its efficacy and its safety preservation properties.
Datasets and Evaluation Scenarios
- Object Erasure: Evaluated on CIFAR-10 to measure the targeted removal of specific object classes.
- Artistic Style Erasure: Tested on diffusion models to eliminate proprietary or protected visual aesthetics while maintaining baseline generation quality.
- Implicit Unsafe Content: Examines scenarios where prohibited concepts are triggered indirectly through proxy prompts rather than explicit keywords.
- Multi-Identity Erasure: Evaluated by scaling simultaneous concept removal to sets of 10, 50, and 100 distinct celebrity identities.
Return Set Design
To ensure non-target generation capabilities remain intact, the return set is partitioned into two distinct categories:
- General Concepts: Formed by collecting all tokens from the COCO dataset and pre-computing their text embeddings using CLIP, an operation requiring only a few seconds.
- Neighboring Concepts: Generated dynamically using Large Language Models (LLMs) to identify semantically close concepts that risk collateral damage during aggressive editing.
Quantitative and Qualitative Performance
Across all tested domains, OCE achieves near-zero target detection accuracy for erased categories. In multi-concept evaluations involving 100 celebrities, baseline editing methods experience severe representation collapse or fail to clear target concepts due to conflicting gradient directions, whereas OCE successfully suppresses all 100 targets. Furthermore, image quality metrics on the COCO-derived return set confirm that non-target generation distributions remain statistically indistinguishable from the original, unedited model.
Practical Implications
▶ Watch: Audience Q&A on extending method to image editing (8:47)
For infrastructure teams, model deployers, and AI safety engineers, OCE offers a highly practical paradigm for post-hoc model alignment. Iterative training-based alignment methods like ESD require significant GPU compute, careful learning rate tuning, and continuous monitoring to prevent catastrophic forgetting. In contrast, OCE's closed-form, geometry-aware parameter editing executes in seconds, making it suitable for dynamic, on-demand content moderation and compliance pipelines.
For model builders, the cross-architecture validation on Flux and DiT-based backbones indicates that geometric parameter editing is not an artifact of legacy UNet designs. As the industry transitions toward transformer-based diffusion architectures, the principles of orthogonal transformations and subspace projection provide a durable mathematical foundation for safety intervention.
Tradeoffs and Limitations
Despite its efficiency and precision, practitioners must carefully curate return sets. While the automated use of COCO tokens and LLM-generated neighboring concepts mitigates collateral damage, highly nuanced semantic overlaps between target and return concepts can still require manual inspection. Additionally, while orthogonal transformations preserve angular geometry within edited layers, extreme over-editing (e.g., attempting to excise thousands of foundational concepts from a single model) may eventually saturate the representational capacity of the cross-attention blocks.
Key Takeaways
- Geometric Perspective: Concept erasure in diffusion models is fundamentally a geometry-aware parameter editing problem where directional control matters more than scalar magnitude.
- Orthogonal Transformations: Replacing additive updates ($\mathbf{W} + \Delta$) with orthogonal transformations ($\mathbf{P}\mathbf{W}$) rotates semantic directions while perfectly preserving intrinsic vector norms and pairwise angles.
- Subspace Scalability: Transitioning from vector-wise alignments to subspace-level suppression resolves optimization conflicts, enabling scalable, simultaneous removal of up to 100 concepts.
- Architecture Agnostic: The underlying geometric principles transfer effectively across traditional UNet models and modern DiT-based architectures like Flux.
- Deployment Efficiency: Operating via closed-form algebraic solutions rather than iterative gradient descent, OCE deploys complete model edits in mere seconds.
About the Speaker(s)
- Yuhao Sun (USTC): Yuhao Sun is from USTC and is presenting work on orthogonal concept erasure for diffusion models.
Co-authors: Lingyun Yu, Hao-Xiang Xu, Fengyuan Miao, Zhuoer Xu, Hongtao Xie.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026