Orthogonal Concept Erasure for Diffusion Models

Yuhao Sun, Lingyun Yu, Hao-Xiang Xu, Fengyuan Miao, Zhuoer Xu, Hongtao Xie

As text-to-image diffusion models like Stable Diffusion and FLUX become increasingly powerful, they also introduce significant risks, such as the inadvertent generation of copyrighted characters, offensive imagery, or private individuals. Concept erasure has emerged as a vital technique to "edit" these models, removing specific knowledge without the prohibitive cost of retraining them from scratch.

However, existing erasure methods face a difficult trade-off. Training-based methods are effective but computationally expensive and slow. Editing-based methods are fast and deployment-friendly, but they often suffer from "concept interference"—for example, erasing the style of "Van Gogh" might inadvertently degrade the model's ability to generate high-quality landscapes overall.

In a recent paper, researchers identify the root cause of this interference and propose Orthogonal Concept Erasure (OCE), a novel geometric approach that can erase up to 100 distinct concepts in just 4.3 seconds while preserving the model’s original image quality far better than previous state-of-the-art methods.

The Problem with Additive Updates

The authors trace the limitations of current editing methods to their reliance on additive parameter updates ($W + \Delta$). In the high-dimensional space of neural network weights, simply adding a vector alters three critical properties simultaneously: the direction of the neurons, their magnitude, and the angles between them. This entangled, "messy" update is what causes the model's general generative performance to degrade.

Through empirical analysis, the researchers uncovered a crucial geometric intuition:

  • Neuron Direction carries the semantic meaning (e.g., the features that make a "cat" look like a "cat").
  • Neuron Magnitude has very little effect on these semantics.
  • Angular Geometry (the relative angles between all neurons) is responsible for preserving the model’s overall generative capacity and "intelligence."

Because additive updates disrupt all three, they inevitably cause unintended interference.

The OCE Algorithm: Rotation over Addition

The core innovation of OCE is shifting from additive updates to multiplicative orthogonal transformations.

Instead of adding a shift to the weights, OCE applies a layer-wise orthogonal matrix $Q$ to the parameters ($W^* = QW$). Because $Q$ is orthogonal, it acts as a rigid rotation in high-dimensional space. This allows the model to change the direction of neurons—effectively erasing the target concept—while leaving their magnitudes and inter-neuron angles perfectly intact.

To handle complex, multi-concept erasure where different concepts might have conflicting requirements, OCE introduces a subspace-level objective. Rather than forcing a single vector to change, the method defines "target" and "anchor" subspaces. It then uses a closed-form solution based on the Classical Procrustes problem and Singular Value Decomposition (SVD) to find the optimal rotation.

Key Results and Performance

The researchers evaluated OCE across a diverse set of tasks, including object erasure (CIFAR-10), artistic style erasure (Van Gogh, Picasso), and large-scale multi-concept erasure (up to 100 celebrities). They also tested general preservation using MSCOCO-30k and adversarial robustness using the Inappropriate Image Prompt (I2P) dataset.

  • Unmatched Speed and Scalability: Because OCE relies on a closed-form mathematical identity rather than an iterative optimization loop, it is incredibly fast. While previous methods like MACE take hundreds of seconds to erase 100 concepts, OCE accomplishes this in just 4.3 seconds on a single A100 GPU.
  • Superior Balance: OCE achieved the highest Harmonic Mean ($H_o$) scores, demonstrating the best trade-off between successful erasure and quality preservation. In CIFAR-10 erasure, for instance, it reduced target accuracy to near zero while keeping non-target accuracy at 98.68%—virtually identical to the unedited model.
  • Architecture Agnostic: OCE is not limited to U-Net architectures. The paper demonstrates its successful application to the newer Diffusion Transformer (DiT) architecture used in models like FLUX.1, effectively erasing concepts like "Mickey Mouse" while perfectly preserving unrelated concepts like "Pikachu."

Limitations and Future Work

While OCE represents a significant leap forward, the authors note a few limitations. First, performing SVD on massive weight matrices could eventually become a computational bottleneck as models continue to grow. Second, because OCE uses subspace suppression rather than strict point-to-point mapping, the model might occasionally generate "intermediate" semantic results rather than perfectly matching a chosen anchor concept. Finally, more work is needed to address "implicit" or relational concepts (e.g., "A sitting on B") that go beyond single objects or artistic styles.

Overall, Orthogonal Concept Erasure provides a highly efficient, mathematically elegant solution to one of the most pressing safety challenges in generative AI, paving the way for safer and more controllable diffusion models.

Summary updated

BibTeX
@inproceedings{sun2026orthogonal,
  author = {Yuhao Sun and Lingyun Yu and Hao-Xiang Xu and Fengyuan Miao and Zhuoer Xu and Hongtao Xie},
  title = {{Orthogonal Concept Erasure for Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=VE2aKpTWrK},
}
Figure