# SafeSeek: Universal Attribution of Safety Circuits in Language Models

SafeSeek: 언어 모델 내 안전 회로의 보편적 귀속

Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan 외 3명 · arXiv · 2026년 3월 24일

- **연구 문제** 대규모 언어 모델의 안전 행동을 담당하는 내부 구성요소는 기존 방법으로 안정적으로 찾기 어렵습니다.
- **연구 방법** SafeSeek은 학습 가능한 이진 마스크를 그래디언트 최적화로 학습해 희소한 안전 회로를 찾습니다.
- **주요 결과** 백도어 회로 제거는 공격 성공률을 크게 낮추고, 안전 정렬 회로 제거는 안전성을 크게 떨어뜨렸다고 보고합니다.

## 안전 행동을 회로 단위로 찾는 문제

대규모 언어 모델의 안전 행동, 즉 정렬, 탈옥 저항, 백도어 억제는 특정 내부 구성요소에 묶여 있다는 가설이 있습니다. 기존 안전 귀속 방법은 안전 뉴런이나 어텐션 헤드처럼 고립된 구성요소를 휴리스틱 지표와 탐색 알고리즘으로 찾는 경우가 많습니다. 이런 방식은 계산 비용이 크고 불안정하며, 안전 행동을 실제로 담당하는 기능적으로 완전한 회로를 놓칠 수 있습니다. SafeSeek은 이 문제를 학습 가능한 이진 마스크에 대한 그래디언트 최적화로 바꾸어, 희소한 안전 회로를 찾는 통합 프레임워크로 제안됩니다.

## 마스크 최적화와 STE 이진화

SafeSeek은 LLM을 계산 그래프로 보고, 가중치, 일반화된 뉴런, 어텐션 헤드, 레이어 중 선택한 세분성의 단위마다 잠재 변수 z\_u를 둡니다. 마스크는 m\_u = sigmoid(z\_u)로 계산되고, 순전파에서는 임계값 η를 기준으로 이진 마스크를 씁니다. 이 이진화는 미분 불가능하므로 Straight-Through Estimator를 사용하며, 역전파에서는 이진화 단계의 기울기를 1로 두어 연속 잠재 변수로 기울기를 흘려 보냅니다. 학습 목적식은 전체 모델과 마스크된 모델의 행동 차이를 나타내는 KL 항과 마스크 L1 희소성 항을 합한 형태로 주어집니다. 따라서 최적화가 끝난 뒤 값이 0이 아닌 마스크 단위의 집합 C\*가 안전 회로가 됩니다.

![Figure 1: Overview of ourSafeSeekframework (Middle), with two critical scenarios in LLM safety (Left) and case studies (Right)](https://refivu.com/papers/ab5a9126-300c-4f13-a35f-5828cbea3694/figures/figure-9a47d40a13846ef975f3dff3120d68ef.png?thumb=512)

**Figure 1** .Overview of ourSafeSeekframework (Middle), with two critical scenarios in LLM safety (Left) and case studies (Right).

[원문](https://arxiv.org/abs/2603.23268v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan, Kun Wang, Yufei Guo, Qingsong Wen · SafeSeek: Universal Attribution of Safety Circuits in Language Models · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 백도어와 안전 정렬에서의 회로 검증

백도어 설정에서 SafeSeek은 깨끗한 서브그래프 Gclean과 백도어 회로 Cbkd를 함께 학습하는 Dual-mask Optimization을 사용합니다. 이 설정에서 Cbkd는 트리거 입력에서 백도어 행동을 담당하고, Gclean은 백도어를 제거한 나머지 구조입니다. 실험에서 LLaMA-3.1-8B-Instruct의 Refusal 백도어는 0.42% 희소성의 Gbkd에서 Gclean으로 가는 회로 제거로 ID ASRp가 100.0%에서 0.0%로, OOD ASRp가 99.6%에서 0.4%로 낮아졌다고 보고됩니다. 같은 실험에서 GSM8k, MMLU, HellaSwag의 일반 성능은 대체로 유지되었습니다.

안전 정렬 설정에서는 LLaMA-3.1-8B-Instruct에서 Csafe가 0.32%의 어텐션 헤드와 1.38%의 뉴런을 사용하고, Csafe를 제거하면 ID ASR이 0.8%에서 96.9%로 증가하는 것으로 보고됩니다.

![Table 1: Backdoor performance and general utility comparison of the base LLM (Gbase), the backdoor model (Gbkd), and SafeSeek’s clean (Gclean) subgraph across…](https://refivu.com/papers/ab5a9126-300c-4f13-a35f-5828cbea3694/figures/figure-cba862be59a9eea372ef6c0fef41ef83.png?thumb=512)

**Table 1** . Backdoor performance and general utility comparison of the base LLM (Gbase), the backdoor model (Gbkd), and SafeSeek’s clean (Gclean) subgraph across three types of backdoors for LLaMA-3.1 and Qwen-3. Metricc and Metricp represent the values on clean and poisoned inputs. Marker↑and↓denote the increase / decrease values compared withG bkd, while±shows the standard deviation.

[원문](https://arxiv.org/abs/2603.23268v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan, Kun Wang, Yufei Guo, Qingsong Wen · SafeSeek: Universal Attribution of Safety Circuits in Language Models · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 2: Performance comparison of the base LLM (Gbase), the backdoor model ( Gbkd), SafeSeek’s clean model ( Gclean) and backdoor circuit (Cbkd) for the Refu…](https://refivu.com/papers/ab5a9126-300c-4f13-a35f-5828cbea3694/figures/figure-6b627d42b7299113a07b1b70d9a69e70.png?thumb=512)

**Figure 2** . Performance comparison of the base LLM (Gbase), the backdoor model ( Gbkd), SafeSeek’s clean model ( Gclean) and backdoor circuit (Cbkd) for the Refusal backdoor.

[원문](https://arxiv.org/abs/2603.23268v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan, Kun Wang, Yufei Guo, Qingsong Wen · SafeSeek: Universal Attribution of Safety Circuits in Language Models · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## STE와 세분성 절제의 해석

STE를 제외한 변형에서는 백도어 Gclean의 ASR이 0.0%로 보이지만, GSM8k가 0.0으로 떨어지고 MMLU가 25.9로 낮아졌습니다. 저자들은 이를 낮은 ASR이 효과적인 귀속이 아니라 모델 붕괴의 결과라고 해석합니다. 세분성 절제에서는 백도어 시나리오의 헤드 단위 회로가 ASRidp를 6.6%로 낮추면서 GSM8k 72.9%를 유지했고, 안전 정렬 시나리오의 뉴런 단위 회로는 제거 시 ASRidp를 96.1%로 높였습니다. 이 결과는 각 절제 변형이 제거한 구성요소에 대한 조건부 관찰이며, 모든 구성요소의 기여를 일반화하는 결론은 아닙니다.

## Safety Circuit Tuning의 적용 결과

SaCirT는 식별된 안전 회로의 파라미터만 갱신하고 나머지 파라미터를 고정하는 fine-tuning 방식입니다. helpful fine-tuning 실험에서는 HelpSteer2를 사용하고, LoRA 기준선은 rank 16, alpha 16으로 설정됩니다. 이 설정에서 LoRA 기준선은 AdvBench 무해율이 95.0에서 89.3으로 떨어졌고, SafeSeek은 약 94.0을 유지한다고 보고됩니다. 이는 alignment tax를 줄이는 관찰이지만, 해당 모델과 데이터셋 조건에서 얻은 결과입니다.

![Figure 6: Multi-dimensional performance comparison of Safety Circuit Tuning (SaCirT).The radar charts illustrate the trade-offs between safety, utility, and pa…](https://refivu.com/papers/ab5a9126-300c-4f13-a35f-5828cbea3694/figures/figure-898d48f81a814b4a34203420b813925e.png?thumb=512)

**Figure 6** . Multi-dimensional performance comparison of Safety Circuit Tuning (SaCirT).The radar charts illustrate the trade-offs between safety, utility, and parameter efficiency.SafeSeek consistently achieves the best balance, maintaining high safety and utility with minimal parameter updates compared to the Baseline.

[원문](https://arxiv.org/abs/2603.23268v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan, Kun Wang, Yufei Guo, Qingsong Wen · SafeSeek: Universal Attribution of Safety Circuits in Language Models · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 이중 사용 위험

이 연구의 결과는 LLaMA-3.1-8B-Instruct와 Qwen-3-8B, 그리고 논문에서 정의한 백도어 유형과 안전 데이터셋에 한정됩니다. 회로 발견은 마스크 학습 예산과 선택한 세분성에 의존하며, 다른 모델이나 과제에서 같은 희소성이 나온다는 결론은 본문에서 확인되지 않습니다. 저자들은 안전 회로를 정밀하게 식별하는 기술이 공격자에게 안전 장치를 제거하는 데 악용될 수 있다고 밝힙니다.

## 논문 정보

- **저자**: Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan, Kun Wang, Yufei Guo, Qingsong Wen
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 3월 24일
- **등록일**: 2026년 10월 29일
- **수정일**: 2026년 3월 24일
- **버전**: v1
- **arXiv**: 2603.23268
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Mechanistic interpretability reveals that safety-critical behaviors (e.g., alignment, jailbreak, backdoor) in Large Language Models (LLMs) are grounded in specialized functional components. However, existing safety attribution methods struggle with generalization and reliability due to their reliance on heuristic, domain-specific metrics and search algorithms. To address this, we propose \\ourmethod, a unified safety interpretability framework that identifies functionally complete safety circuits in LLMs via optimization. Unlike methods focusing on isolated heads or neurons, \\ourmethod introduces differentiable binary masks to extract multi-granular circuits through gradient descent on safety datasets, while integrates Safety Circuit Tuning to utilize these sparse circuits for efficient safety fine-tuning. We validate \\ourmethod in two key scenarios in LLM safety: \\textbf{(1) backdoor attacks}, identifying a backdoor circuit with 0.42\\% sparsity, whose ablation eradicates the Attack Success Rate (ASR) from 100\\% $\\to$ 0.4\\% while retaining over 99\\% general utility; \\textbf{(2) safety alignment}, localizing an alignment circuit with 3.03\\% heads and 0.79\\% neurons, whose removal spikes ASR from 0.8\\% $\\to$ 96.9\\%, whereas excluding this circuit during helpfulness fine-tuning maintains 96.5\\% safety retention.

## 원문 인용

Miao Yu, Siyuan Fu, Moayad Aloqaily, Zhenhong Zhou, Safa Otoum, Xing fan, Kun Wang, Yufei Guo, Qingsong Wen (2026). SafeSeek: Universal Attribution of Safety Circuits in Language Models. arXiv:2603.23268v1. https://arxiv.org/abs/2603.23268v1

**BibTeX**

```
@misc{yu2026safeseek,
  title = {{SafeSeek: Universal Attribution of Safety Circuits in Language Models}},
  author = {Miao Yu and Siyuan Fu and Moayad Aloqaily and Zhenhong Zhou and Safa Otoum and Xing fan and Kun Wang and Yufei Guo and Qingsong Wen},
  year = {2026},
  eprint = {2603.23268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.23268v1}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [MMLU](https://refivu.com/terms/3036c0ba5adb-mmlu)
- [ROUGE](https://refivu.com/terms/b50ceb784ddd-rouge)
- [Kullback-Leibler divergence](https://refivu.com/terms/3aa99486ee6b-kullback-leibler-divergence)
- [LLaMA-3.1-8B-Instruct](https://refivu.com/terms/0abd12a34f8f-llama-3-1-8b-instruct)
- [attack success rate (ASR)](https://refivu.com/terms/6309936803f5-attack-success-rate-asr)
- [HellaSwag](https://refivu.com/terms/a0574d918e1f-hellaswag)
- [alignment tax](https://refivu.com/terms/2d1e21881a89-alignment-tax)
- [backdoor attack](https://refivu.com/terms/ab40f400bc20-backdoor-attack)
- [Llama-Guard-3-8B](https://refivu.com/terms/fc7b9aef6cdb-llama-guard-3-8b)
- [HelpSteer2](https://refivu.com/terms/f6bc9c09775f-helpsteer2)
- [Safety Alignment](https://refivu.com/terms/e6e235ba3fab-safety-alignment)
- [Sparsity Loss](https://refivu.com/terms/d34490ff3819-sparsity-loss)
- [straight-through estimator (STE)](https://refivu.com/terms/4ccd985ed538-straight-through-estimator-ste)

## 다른 논문 해설

- [PRISM: Demystifying Retention and Interaction in Mid-Training](https://refivu.com/papers/24844a07-482b-4dcd-807e-b26d854d23cb-prism-demystifying-retention-and-interaction-in-mid-training.md)
- [Depth-Breadth Synergy in RLVR: Unlocking LLM Reasoning Gains with Adaptive Exploration](https://refivu.com/papers/2856d3cd-fb4c-4cc5-991a-f67f07b4d9d7-depth-breadth-synergy-in-rlvr-unlocking-llm-reasoning.md)
- [Differentiable Conformal Training for LLM Reasoning Factuality](https://refivu.com/papers/f680eced-051e-4f77-b330-404301215d25-differentiable-conformal-training-for-llm-reasoning.md)
- [LATMiX: Learnable Affine Transformations for Microscaling Quantization of LLMs](https://refivu.com/papers/b9f5cf76-c781-42bd-8550-ff2ae7d4753f-latmix-learnable-affine-transformations-for-microscaling.md)
- [Exploration Hacking: Can LLMs Learn to Resist RL Training?](https://refivu.com/papers/dbeab130-4e4c-4074-9b9a-cf61e193e4fb-exploration-hacking-can-llms-learn-to-resist-rl.md)
- [Removing Sandbagging in LLMs by Training with Weak Supervision](https://refivu.com/papers/cff252e4-8a87-4cee-b59d-00204309b414-removing-sandbagging-in-llms-by-training-with-weak.md)
- [Model-Based Exploration in Monitored Markov Decision Processes](https://refivu.com/papers/deecf081-170d-42e3-ae8f-9fef35e4367f-model-based-exploration-in-monitored-markov-decision.md)
- [On the Dynamic Regret of Following the Regularized Leader: Optimism with History Pruning](https://refivu.com/papers/4cde6419-447b-4bc4-ab43-86f7ade7bded-on-the-dynamic-regret-of-following-the-regularized.md)
- [Guided Star-Shaped Masked Diffusion](https://refivu.com/papers/25532234-fd5d-42ce-82e8-3c7f24242e45-guided-star-shaped-masked-diffusion.md)
- [Strategic Candidacy in Generative AI Arenas](https://refivu.com/papers/770025fe-4021-4fe1-8a68-09dcd6d334e5-strategic-candidacy-in-generative-ai-arenas.md)
- [Tucker Attention: A generalization of approximate attention mechanisms](https://refivu.com/papers/372047e0-cd32-4ae3-8113-17871388745b-tucker-attention-a-generalization-of-approximate-attention.md)
- [Next-Token Prediction and Regret Minimization](https://refivu.com/papers/3cea966f-c628-4a28-b9c4-075d967afc64-next-token-prediction-and-regret-minimization.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/ab5a9126-300c-4f13-a35f-5828cbea3694-safeseek-universal-attribution-of-safety-circuits-in)
