# SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders

SAeUron: 희소 오토인코더를 활용한 확산 모델의 해석 가능한 개념 언러닝

Bartosz Cywiński, Kamil Deja · arXiv · 2025년 1월 29일

- **연구 문제** 텍스트-이미지 확산 모델은 원치 않는 콘텐츠를 생성할 수 있으며, 기존 fine-tuning 기반 언러닝은 변화의 해석이 어렵고 대상을 완전히 제거하지 못하는 한계가 있습니다.
- **연구 방법** SAeUron은 확산 모델 활성값에 학습한 희소 오토인코더 특징 중 대상 개념과 대응하는 특징을 골라 추론 중에 음수 계수로 줄입니다.
- **주요 결과** UnlearnCanvas 스타일 언러닝과 전체 평균에서 높은 성능이 보고되고, 누드 제거와 적대적 공격에서도 강건성이 보고됩니다. 다만 추상 개념과 전체 I2P Q16 평가에서는 한계가 보고됩니다.

## 확산 모델의 원치 않는 개념 제거 문제

텍스트-이미지 확산 모델은 고품질 이미지를 만들지만, 유해하거나 원치 않는 콘텐츠와 저작권이 있는 스타일을 생성할 수 있습니다. 데이터셋이 매우 커서 처음부터 재학습하는 것은 비용이 크고 현실적이지 않습니다. 그래서 이미 학습된 모델에서 특정 데이터의 영향을 지우는 머신 언러닝(MU) 연구가 늘고 있습니다. 기존 방법 대부분은 원치 않는 샘플에 대해 음의 기울기를 사용해 모델을 미세조정하며, 그 변화가 무엇인지 해석하기 어렵습니다. 이 논문은 해석 가능성을 높이려는 대안으로 SAeUron을 제안합니다.

![Figure 1: Concept unlearning in SAeUron. We localize and re- move SAE features corresponding to the unwanted concept (Car- toon) while preserving the overall p…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-90abe0cf4fbc71f655a0c7d1a8bd95f0.png?thumb=512)

**Figure 1** . Concept unlearning in SAeUron. We localize and re- move SAE features corresponding to the unwanted concept (Car- toon) while preserving the overall performance of the diffusion model.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## SAE 특징을 이용한 개념 차단

SAeUron은 Stable Diffusion의 교차 주의 블록에서 얻은 활성값에 희소 오토인코더(SAE)를 학습합니다. 활성값은 모든 디노이징 타임스텝에서 수집되며, 각 공간 위치의 d차원 벡터가 하나의 학습 샘플이 됩니다. 이 논문의 SAE는 TopK 활성 함수와 BatchTopK 방식을 사용해 배치 전체에서 활성 특징을 유연하게 배분합니다. 제거할 개념 c에 대해서는 검증 데이터 D에서 각 특징 i의 점수를 계산합니다. 이 점수는 개념 c 데이터의 평균 활성을 정규화한 값에서 개념이 아닌 데이터의 정규화 값을 뺀 차이입니다. 점수가 높은 상위 τc개 특징을 고르고, 추론 중 선택된 특징이 평균 활성 µ(i,t,D)를 넘을 때만 γc µ(i,t,Dc)로 스케일링합니다.

여기서 γc는 음수 계수이며, 선택된 특징의 기여를 음수로 바꿔 대상 개념의 영향을 줄입니다.

![Figure 2: Unlearning procedure in SAeUron. (a) Concept-specific features are selected for unlearning according to their importance scores. (b) During inference…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-9b096ffaff2278698084a86b2dc82963.png?thumb=512)

**Figure 2** . Unlearning procedure in SAeUron. (a) Concept-specific features are selected for unlearning according to their importance scores. (b) During inference in the U-Net of the diffusion model, activation between selected cross-attention blocks is passed through a trained SAE. The selected SAE features are then ablated by scaling them with a negative multiplier γc, removing their influence on the final output. The remaining features are left unchanged, ensuring minimal impact on the overall model performance.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

![Figure 31: Evaluated metrics for unlearning of classes Cats, Dogs and Towers with different number of selected features and multiplier](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-96c4a6baa21235e97b3234aef192a10c.png?thumb=512)

**Figure 31** . Evaluated metrics for unlearning of classes Cats, Dogs and Towers with different number of selected features and multiplier.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 32쪽에서 그림 영역을 추출했습니다.

## UnlearnCanvas에서의 스타일과 객체 언러닝 결과

UnlearnCanvas 벤치마크는 50개 스타일과 20개 객체를 포함하며, 이 논문은 스타일용 SAE와 객체용 SAE를 각각 학습합니다. 스타일 언러닝에서는 τc=1, γc=−1을 사용했고, 객체 언러닝에서는 검증 데이터로 하이퍼파라미터를 조정했습니다. Table 1은 5개 랜덤 시드의 평균이며, 경쟁 방법의 값은 UnlearnCanvas에서 가져온 것입니다. 이 표에서 SAeUron은 스타일 언러닝에서 가장 높은 성능을 보이고, 객체 언러닝에서는 두 번째 성능을 보이며, 전체 평균에서 가장 높다고 보고됩니다. 또한 49개 스타일을 동시에 언러닝한 실험에서는 UA 99.29%, IRA 96.67%, CRA 95.00%가 보고됩니다.

![Table 1: Evaluation of SAeUron against state-of-the-art methods on style and object unlearning. The best result for each metric is highlighted in bold, and the…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-866bf04134d51fccae04db6581699d93.png?thumb=512)

**Table 1** . Evaluation of SAeUron against state-of-the-art methods on style and object unlearning. The best result for each metric is highlighted in bold, and the second-best is underlined. Our approach significantly outperforms others on style unlearning and performs comparably on object unlearning. Importantly, SAeUron demonstrates consistent performance across all metrics.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 8: Qualitative evaluation of SAeUron on object and style unlearning. For more examples and comparison with contemporary methods, see Appendix P](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-7c6cc57df959e354729804163b452699.png?thumb=512)

**Figure 8** . Qualitative evaluation of SAeUron on object and style unlearning. For more examples and comparison with contemporary methods, see Appendix P.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Figure 13: Evaluation on unlearning multiple concepts. SAeUron achieves high unlearning accuracy and outperforms other approaches in retaining generative capab…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-c901c0f46bd13b1ae39acddd6ecb985f.png?thumb=512)

**Figure 13** . Evaluation on unlearning multiple concepts. SAeUron achieves high unlearning accuracy and outperforms other approaches in retaining generative capabilities for non-targeted concepts.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

![Table 5: Hyperparameters of our method for object unlearning](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-cca5f20c783ecaeb18a41d03305fdbfb.png?thumb=512)

**Table 5** . Hyperparameters of our method for object unlearning.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

![Figure 29: Qualitative comparison with other methods on style unlearning](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-506766b5126cfd73c0c6a94c1a59cc6b.png?thumb=512)

**Figure 29** . Qualitative comparison with other methods on style unlearning.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 30쪽에서 그림 영역을 추출했습니다.

## 누드 제거와 적대적 공격에 대한 강건성

I2P 벤치마크의 누드 제거 실험에서는 4703개의 부적절한 프롬프트를 사용하고, SD-v1.4 활성값으로 학습한 SAE에서 nudity 관련 특징을 선택합니다. 생성 이미지에서는 NudeNet 신뢰도 0.6 미만의 출력을 걸러내며, COCO validation 30k 프롬프트로 FID와 CLIPScore를 측정합니다. 원문은 이 설정에서 SAeUron이 누드 제거와 전반적인 품질 유지에서 최고 수준이라고 보고합니다. 반면 전체 I2P 벤치마크를 Q16 기준으로 평가한 결과는 다른 벤치마크와 달리 FMN과만 비슷한 수준이라고 원문이 밝힙니다. 저자들은 이를 SAE가 객체 수준의 시각 특징을 학습하기 때문에 추상 개념을 잘 포착하지 못하는 결과로 해석합니다.

적대적 공격에서는 UnlearnDiffAtk의 5개 토큰 접두사를 40회 반복하고 학습률 0.01로 최적화한 설정에서 언러닝 정확도 저하가 작다고 보고됩니다.

![Table 2: Nudity unlearning evaluation on the I2P benchmark. The best result for each metric is highlighted in bold](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-50c5aaee79107320085d3dffbd207714.png?thumb=512)

**Table 2** . Nudity unlearning evaluation on the I2P benchmark. The best result for each metric is highlighted in bold.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 9: Robustness to adversarial prompts crafted using Un- learnDiffAtk method. Our blocking approach demonstrates strong robustness to adversarial prompts,…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-bc2b19ef2f5a0c72e2043c913826d839.png?thumb=512)

**Figure 9** . Robustness to adversarial prompts crafted using Un- learnDiffAtk method. Our blocking approach demonstrates strong robustness to adversarial prompts, as evidenced by a mini- mal drop in unlearning accuracy under attack scenarios. In contrast, competing methods exhibit significant vulnerability.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Table 7: Attack Success Rate (ASR) before and after UnlearnDiffAtk on nudity prompts. Our method is robust against adversarial attack](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-6690387120372b13a86b2eb0fd16a0ff.png?thumb=512)

**Table 7** . Attack Success Rate (ASR) before and after UnlearnDiffAtk on nudity prompts. Our method is robust against adversarial attack.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.

![Table 8: Inappropriate content unlearning evaluation. Following Schramowski et al. (2023) and Huang et al. (2024), we present the ratio of inappropriate conten…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-5db78bff48ab7e9c571ea329c0bcda5e.png?thumb=512)

**Table 8** . Inappropriate content unlearning evaluation. Following Schramowski et al. (2023) and Huang et al. (2024), we present the ratio of inappropriate content as a meric. The best result for each metric is highlighted in bold.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.

## 추론 비용과 적용 범위의 한계

SAeUron은 추론 중에 개입하므로 원문에서 1.92%의 오버헤드가 발생한다고 보고합니다. 또한 SAE를 충분한 수의 다양한 데이터 샘플에서 학습해야 하므로 학습 준비 비용이 생깁니다. 사용자가 모델에 직접 접근하지 못하는 상황에서만 실용적으로 적용될 수 있으며, 공개 모델에서는 차단 장치를 제거하기 쉽다고 원문이 밝힙니다. 유사한 두 개념을 함께 보존해야 하거나 추상 개념을 제거할 때는 성능 한계가 있다고 원문이 설명합니다.

![Figure 32: Impact on classification accuracy of classes during unlearning. Unlearning of similar classes, such as Cats and Dogs, negatively impacts each other.…](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7/figures/figure-03799ccd7f965a05ed1c8b1b5fba4ef6.png?thumb=512)

**Figure 32** . Impact on classification accuracy of classes during unlearning. Unlearning of similar classes, such as Cats and Dogs, negatively impacts each other. Complicated classes, such as Human, are harder to be effectively removed.

[원문](https://arxiv.org/abs/2501.18052v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Bartosz Cywiński, Kamil Deja · SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders · 원문 그림 인용 · 원본 PDF 33쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Bartosz Cywiński, Kamil Deja
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 1월 29일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 5월 21일
- **버전**: v3
- **arXiv**: 2501.18052
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2501.18052v3) · [원문 PDF ↗](https://arxiv.org/pdf/2501.18052v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Diffusion models, while powerful, can inadvertently generate harmful or undesirable content, raising significant ethical and safety concerns. Recent machine unlearning approaches offer potential solutions but often lack transparency, making it difficult to understand the changes they introduce to the base model. In this work, we introduce SAeUron, a novel method leveraging features learned by sparse autoencoders (SAEs) to remove unwanted concepts in text-to-image diffusion models. First, we demonstrate that SAEs, trained in an unsupervised manner on activations from multiple denoising timesteps of the diffusion model, capture sparse and interpretable features corresponding to specific concepts. Building on this, we propose a feature selection method that enables precise interventions on model activations to block targeted content while preserving overall performance. Our evaluation shows that SAeUron outperforms existing approaches on the UnlearnCanvas benchmark for concepts and style unlearning, and effectively eliminates nudity when evaluated with I2P. Moreover, we show that with a single SAE, we can remove multiple concepts simultaneously and that in contrast to other methods, SAeUron mitigates the possibility of generating unwanted content under adversarial attack. Code and checkpoints are available at https://github.com/cywinski/SAeUron.

## 원문 인용

Bartosz Cywiński, Kamil Deja (2025). SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders. arXiv:2501.18052v3. https://arxiv.org/abs/2501.18052v3

**BibTeX**

```
@misc{cywiski2025saeuron,
  title = {{SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoders}},
  author = {Bartosz Cywiński and Kamil Deja},
  year = {2025},
  eprint = {2501.18052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.18052v3}
}
```

## 이 논문의 용어

- [FID](https://refivu.com/terms/e110afe65f86-fid)
- [Stable Diffusion](https://refivu.com/terms/14d619b23a70-stable-diffusion)
- [k-nearest neighbors](https://refivu.com/terms/20f336308226-k-nearest-neighbors)
- [SAE](https://refivu.com/terms/3f0e85501301-sae)
- [BatchTopK](https://refivu.com/terms/245893a86710-batchtopk)
- [machine unlearning](https://refivu.com/terms/277afcb6a76e-machine-unlearning)
- [Sparse autoencoders](https://refivu.com/terms/2e575d20a868-sparse-autoencoders)
- [auxiliary loss](https://refivu.com/terms/24a922efb7e2-auxiliary-loss)
- [CLIPScore](https://refivu.com/terms/0401aef95346-clipscore)
- [UnlearnCanvas](https://refivu.com/terms/3359c87424bc-unlearncanvas)
- [UnlearnDiffAtk](https://refivu.com/terms/4880fc504157-unlearndiffatk)

## 다른 논문 해설

- [Devil is in the Details: Density Guidance for Detail-Aware Generation with Flow Models](https://refivu.com/papers/53c06b07-254d-422a-b1cb-fa6d8acfc98b-devil-is-in-the-details-density-guidance-for.md)
- [Boost-and-Skip: A Simple Guidance-Free Diffusion for Minority Generation](https://refivu.com/papers/ed45cca8-952f-4987-9e5f-8a9bfae3233b-boost-and-skip-a-simple-guidance-free-diffusion.md)
- [Identifying and Understanding Cross-Class Features in Adversarial Training](https://refivu.com/papers/a920aac5-0b22-4cc2-a5ad-784568bde4da-identifying-and-understanding-cross-class-features-in.md)
- [One Stone, Two Birds: Enhancing Adversarial Defense Through the Lens of Distributional Discrepancy](https://refivu.com/papers/067d9910-8121-40b8-86fb-4572b95a59f7-one-stone-two-birds-enhancing-adversarial-defense-through.md)
- [Hessian Geometry of Latent Space in Generative Models](https://refivu.com/papers/35574ec0-80c1-4478-a646-c77467226e26-hessian-geometry-of-latent-space-in-generative-models.md)
- [Improving Consistency Models with Generator-Augmented Flows](https://refivu.com/papers/805b43bc-e24b-4a82-9b1d-0b75f3b5e976-improving-consistency-models-with-generator-augmented-flows.md)
- [Preserving AUC Fairness in Learning with Noisy Protected Groups](https://refivu.com/papers/f3251feb-7418-4327-88ab-b699211b3490-preserving-auc-fairness-in-learning-with-noisy-protected.md)
- [Breaking Silos: Adaptive Model Fusion Unlocks Better Time Series Forecasting](https://refivu.com/papers/cc8323fb-54af-4808-bbbd-3c55bca8b00b-breaking-silos-adaptive-model-fusion-unlocks-better-time.md)
- [SliM-LLM: Salience-Driven Mixed-Precision Quantization for Large Language Models](https://refivu.com/papers/32317979-651b-4b77-a1d3-d753caef7bef-slim-llm-salience-driven-mixed-precision-quantization-for.md)
- [Cut out and Replay: A Simple yet Versatile Strategy for Multi-Label Online Continual Learning](https://refivu.com/papers/8326061f-e8e4-4bc8-b9d5-8f9a27d5e37f-cut-out-and-replay-a-simple-yet-versatile.md)
- [Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data Streams](https://refivu.com/papers/6cb653fe-a579-466e-b898-e2a47e0f3505-lego-sketch-a-scalable-memory-augmented-neural-network.md)
- [Learning Policy Committees for Effective Personalization in MDPs with Diverse Tasks](https://refivu.com/papers/8f82005e-1608-400b-b94f-288b131a980b-learning-policy-committees-for-effective-personalization-in.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/89ef072f-ec10-4a99-8e82-df98e2c935f7-saeuron-interpretable-concept-unlearning-in-diffusion-models)
