# LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering

LoRA-Patch: 방향성 조정을 통한 백도어 LoRA 어댑터 방어

Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li · arXiv · 2026년 11월 2일

- **연구 문제** 외부에서 받은 LoRA 어댑터는 일반 과제 성능을 유지하면서 특정 트리거에서만 숨은 행동을 보일 수 있어, 기반 모델을 고정한 채 의심 어댑터를 방어하는 경량 방법이 필요합니다.
- **연구 방법** LoRA-Patch는 기반 모델과 의심 모델의 refusal 방향 차이를 계산하고, late layer에서 기반 방향과 직교 잔차 방향으로 residual-stream을 조정하는 런타임 패치입니다.
- **주요 결과** 세 백본과 다섯 백도어 공격에서 평균 ASR을 크게 낮추면서 ACC를 대체로 유지했다고 보고됩니다. 다만 적응 공격에서는 효과가 약해졌습니다.

## 제3자 LoRA 어댑터의 백도어 위험

외부에서 받은 LoRA 어댑터는 일반 과제 성능을 유지하면서도 특정 트리거가 입력될 때만 활성화되는 숨은 행동을 담을 수 있습니다. 이런 위험은 일반적인 유용성 평가만으로는 드러나기 어렵습니다. 기존의 제거형 방어는 백도어가 있는 모델의 파라미터를 갱신하거나 가지치기하거나 증류하거나 섞는 방식으로 모델을 정제합니다. 그러나 어댑터 기반 배포에서는 신뢰된 기반 모델이 고정된 상태로 남아 있어야 하므로, 이런 방식은 배포 구조와 맞지 않습니다. 이 논문은 기반 모델 가중치를 수정하지 않고 의심 어댑터만 대상으로 하는 경량 방어를 다룹니다.

## Refusal 방향의 차이를 이용한 steering 패치

LoRA-Patch는 기반 모델과 의심 모델에서 유해 프로브와 무해 프로브의 hidden state를 수집하고, difference-in-means 방식으로 layer별 refusal direction을 계산합니다. 기반 방향 r\_l^b와 의심 모델 방향 r\_l^p를 각각 단위 벡터로 정규화한 뒤, 의심 방향에서 기반 방향 성분을 뺀 직교 잔차 o\_l을 구합니다. 이 잔차를 다시 정규화하여 o\_l-hat으로 씁니다. 추론 시에는 steering window의 각 layer에서 원래 residual-stream 활성값 h\_l에 α\_b b\_l과 α\_o o\_l-hat을 더합니다. 여기서 α\_b는 신뢰된 기반 방향 쪽 개입의 세기이고, α\_o는 어댑터 고유의 기하 편차를 보정하는 잔차 쪽 세기입니다.

저자들은 기본 설정에서 steering window를 마지막 8개 decoder layer로 두고 (α\_b, α\_o)=(1.1, 0.6)을 사용했다고 보고합니다. 이 설정은 Llama-3-8B-Instruct 등에서 얻은 결과에 해당하며 방법 전체의 고정값으로 일반화되지는 않습니다. 패치는 가중치 갱신 없이 저장된 방향을 런타임에 적용하는 방식입니다.

![Figure 2: Overview of the LoRA-Patch framework. LoRA-Patch consists of two steps: (1)Refusal Direction Probing, which estimates layer-wise refusal directions f…](https://refivu.com/papers/a2a0bf8e-4307-4c12-921a-7ff99465ceb9/figures/figure-2d6de42638e6a0b59fb26e374c06d94e.png?thumb=512)

**Figure 2** : Overview of the LoRA-Patch framework. LoRA-Patch consists of two steps: (1)Refusal Direction Probing, which estimates layer-wise refusal directions from the trusted base model and the suspect LoRA-adapted model using harmful and harmless probes; and (2)Refusal Geometry Realignment, which constructs late-layer steering directions anchored to the trusted base refusal geometry. The resulting steering vectors are stored as a lightweight patch to suppress trigger-activated behaviors while preserving benign task utility.

[원문](https://arxiv.org/abs/2611.03752v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li · LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 주요 백도어 억제 결과와 비교 조건

주요 실험은 Llama-3-8B-Instruct, Llama-3.1-8B-Instruct, Mistral-7B-Instruct의 세 백본에서 GSM8K로 학습한 LoRA 어댑터를 대상으로 합니다. 어댑터는 5% 오염률로 학습되었고, 다섯 jailbreak 백도어 공격(BadNets, VPI, Sleeper, CTBA, MTBA)을 평가했습니다. 유해 프로브는 AdvBench를 사용했습니다. 지표는 trigger가 포함된 유해 프롬프트의 공격 성공률 ASR과 깨끗한 테스트 세트의 과제 정확도 ACC입니다. 원문은 Llama-3-8B에서 평균 ASR이 76.77%에서 38.97%로, Llama-3.1-8B에서 73.74%에서 40.20%로, Mistral-7B에서 78.18%에서 50.11%로 낮아졌다고 보고합니다.

같은 실험에서 비교한 Fine-Tuning, Fine-Pruning, CROW는 각 기준선의 설정을 따르며, 이들 점수는 이 논문의 자체 측정 결과입니다. CommonsenseQA에서도 같은 방어를 적용해 Llama-3-8B에서 평균 ASR이 73.54%에서 42.02%로 낮아졌다고 보고합니다. 다만 Llama-3.1-8B와 Mistral-7B에서는 감소 폭이 상대적으로 작았으며, 이는 해당 과제와 백본 조합에서의 관찰입니다.

![Table 1: Attack success rate (ASR, %) and downstream task accuracy (ACC, %) of LoRA-Patch and baseline defenses against five backdoor attacks across three back…](https://refivu.com/papers/a2a0bf8e-4307-4c12-921a-7ff99465ceb9/figures/figure-9eda8629a98f5d4f06985de36c590470.png?thumb=512)

**Table 1** : Attack success rate (ASR, %) and downstream task accuracy (ACC, %) of LoRA-Patch and baseline defenses against five backdoor attacks across three backbone models. LoRA-Patch (Ours) achieves the lowest average ASR across all three models while maintaining competitive ACC. For LoRA-Patch, we set(α b, αo)=(1.1,0.6).

[원문](https://arxiv.org/abs/2611.03752v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li · LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 3: Attack success rate (ASR, %) and task accuracy (ACC, %) of LoRA-Patch on CommonsenseQA](https://refivu.com/papers/a2a0bf8e-4307-4c12-921a-7ff99465ceb9/figures/figure-f16370d2269117b8dc50f4469eeb589e.png?thumb=512)

**Table 3** : Attack success rate (ASR, %) and task accuracy (ACC, %) of LoRA-Patch on CommonsenseQA.

[원문](https://arxiv.org/abs/2611.03752v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li · LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## Steering window와 계수에 따른 보안-유용성 절충

Llama-3-8B에서 BadNets와 VPI 공격을 대상으로 steering window를 비교한 결과, 마지막 8개 layer를 쓰는 late layers 설정은 BadNets ASR 22.22%, ACC 72.33%를 기록했습니다. 반면 early layers, middle layers, all layers 설정은 ACC를 0.00으로 떨어뜨렸고, late-middle layers도 ACC 0.00을 보였습니다. 계수 실험에서는 α\_b와 α\_o를 함께 키울수록 ASR이 낮아지지만, (1.3, 0.8)에서는 ASR이 10.10%로 낮아지는 대신 GSM8K 정확도가 66.33%로 떨어졌습니다. 따라서 이 결과는 강한 steering이 백도어를 더 억제하는 동시에 과제 성능을 해칠 수 있음을 보여줍니다.

이 절제 실험의 비교 대상은 Llama-3-8B의 BadNets와 VPI이며, 다른 공격이나 백본으로의 확장은 원문에서 보고되지 않습니다.

## 방어 인식 적응 공격에서의 한계

저자들은 백도어 fine-tuning 목표에 refusal 방향 정렬 정규화 항을 더해 방어 인식 적응 설정을 만들었습니다. 이 정규화는 layers 24–31에 대해 4배치마다 적용되며, λ=0과 λ=0.5를 비교합니다. λ=0.5에서도 사전 방어 ASR은 높게 유지되었지만, 패치 후 BadNets ASR은 21.21%에서 60.61%로 올라갔고 ACC는 70.33%로 유지되었습니다. 평균 상대 ASR 감소는 λ=0에서 55.58%, λ=0.5에서 21.50%였습니다. 이 결과는 적응 공격이 LoRA-Patch의 효과를 약화시킬 수 있지만 측정된 설정에서는 여전히 일정한 완화 효과가 남는다는 뜻입니다. 강한 적응 공격에 대한 완전한 보장은 원문에서 주장되지 않습니다.

![Table 9: LoRA-Patch under defense-aware adaptive training on Llama-3-8B-Instruct. Pre and Patch denote performance before and after applying LoRA-Patch, respec…](https://refivu.com/papers/a2a0bf8e-4307-4c12-921a-7ff99465ceb9/figures/figure-45a3ca447df5f6a92f6fd95245b45f64.png?thumb=512)

**Table 9** : LoRA-Patch under defense-aware adaptive training on Llama-3-8B-Instruct. Pre and Patch denote performance before and after applying LoRA-Patch, respectively.

[원문](https://arxiv.org/abs/2611.03752v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li · LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

이 방법은 기반 모델이 신뢰되고 로컬에서 접근할 수 있으며, 제3자 어댑터만 손상되었다는 설정을 전제합니다. 따라서 기반 모델에 내재된 백도어나 내부 활성화에 접근할 수 없는 설정은 원문의 범위 밖입니다. 프로브 집합이 작거나 모델별 표현 기하가 다르면 성능이 달라질 수 있다고 저자들은 밝힙니다. 또한 고정된 late-layer window와 steering 계수를 사용하므로, 어댑터별 자동 보정은 향후 과제로 남아 있습니다. 더 큰 백본, 추가 과제, 더 넓은 어댑터 계열에서의 일반성은 추가 검증이 필요한 부분입니다.

![Table 7: Robustness to different harmless-probe sources on Llama-3-8B-Instruct](https://refivu.com/papers/a2a0bf8e-4307-4c12-921a-7ff99465ceb9/figures/figure-234a27da208e3ce343dcd6a0e89906ec.png?thumb=512)

**Table 7** : Robustness to different harmless-probe sources on Llama-3-8B-Instruct.

[원문](https://arxiv.org/abs/2611.03752v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li · LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 2일
- **등록일**: 2026년 11월 5일
- **수정일**: 2026년 11월 2일
- **버전**: v1
- **arXiv**: 2611.03752
- **분류**: cs.CR · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Third-party LoRA adapters introduce serious backdoor risks: malicious adapters can maintain normal task performance while embedding hidden, trigger-activated behaviors, making them difficult to detect through standard utility evaluations. Existing removal-based defenses typically sanitize backdoored models by updating, pruning, distilling, or mixing model parameters. However, these approaches are misaligned with adapter-based deployment, where the trusted base model is expected to remain frozen. In this work, we propose LoRA-Patch, a lightweight backdoor defense tailored to LoRA adapters. Our key insight is that backdoor injection distorts the directional geometry of a poisoned adapter relative to its trusted base model. Building on this insight, LoRA-Patch suppresses trigger-activated behaviors by realigning adapter directions through layer-wise steering, without modifying the base model weights. Extensive experiments across five backdoor attacks and three models show that LoRA-Patch effectively mitigates trigger-activated backdoors, outperforming existing baselines while preserving benign task performance. Moreover, LoRA-Patch is computationally efficient, constructing patches within 20 seconds across all evaluated models and adapters. Our code is publicly available at https://github.com/FOXVEDA/LoRA-Patch.

## 원문 인용

Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li (2026). LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering. arXiv:2611.03752v1. https://arxiv.org/abs/2611.03752v1

**BibTeX**

```
@misc{huo2026lora,
  title = {{LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering}},
  author = {Shengyan Huo and Peihai Jiang and Xixiang Lyu and Yige Li},
  year = {2026},
  eprint = {2611.03752},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.03752v1}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [attack success rate (ASR)](https://refivu.com/terms/6309936803f5-attack-success-rate-asr)
- [CommonsenseQA](https://refivu.com/terms/cf1e86844fa7-commonsenseqa)
- [AdvBench](https://refivu.com/terms/f151f407ea16-advbench)
- [LLaMA-3-8B-Instruct](https://refivu.com/terms/2255d9128663-llama-3-8b-instruct)
- [Accuracy (ACC)](https://refivu.com/terms/8944d861ae21-accuracy-acc)
- [BadNets](https://refivu.com/terms/f5773e72f706-badnets)
- [difference-in-means](https://refivu.com/terms/ea8758516749-difference-in-means)
- [Fine-Pruning](https://refivu.com/terms/c04d5c8c9eea-fine-pruning)

## 다른 논문 해설

- [Accelerating Offloading-Based MoE Inference by Interleaving Concurrent Requests](https://refivu.com/papers/38ae7098-de63-4991-8b67-56a700ccc83d-accelerating-offloading-based-moe-inference-by-interleaving.md)
- [Coarse Semantic Blocks for Efficient Training-Free Sparse Attention](https://refivu.com/papers/52935b53-62a3-4266-90b0-b3631ba9ddcc-coarse-semantic-blocks-for-efficient-training-free-sparse.md)
- [HybridSpec: Throughput-Aware Speculative Decoding for Hybrid GDN-MoE Models](https://refivu.com/papers/c680f759-5ac8-4847-9288-bf267250d01d-hybridspec-throughput-aware-speculative-decoding-for-hybrid.md)
- [GC-MoE: Overlapping Expert-Parallel Token Dispatch with FP8/FP4 Grouped GEMM via CUDA Green Contexts](https://refivu.com/papers/523301d6-5adb-45ac-9ad2-59d6cbaaacb7-gc-moe-overlapping-expert-parallel-token-dispatch-with.md)
- [Testing Processor Contracts in Speculative Decoding Engines](https://refivu.com/papers/a4ed062a-b35a-494b-bee5-b5de71d080de-testing-processor-contracts-in-speculative-decoding-engines.md)
- [Twice as Fast, Until It Isn't: Quantized Serving of Mid-Size Open LLMs](https://refivu.com/papers/03e70619-5e89-477a-ad44-688754d153b2-twice-as-fast-until-it-isn-t-quantized.md)
- [Language Models Can Benefit from Domain-Specific Inductive Biases](https://refivu.com/papers/ecf0e8f5-8763-4d53-8896-37d657f3527c-language-models-can-benefit-from-domain-specific-inductive.md)
- [PROB: Probabilistic Objectness for Open World Object Detection](https://refivu.com/papers/7afdf10e-6825-4f0b-aa2f-4309d8ee5ff4-prob-probabilistic-objectness-for-open-world-object.md)
- [Towards a Better Understanding of the Computer Vision Research Community in Africa](https://refivu.com/papers/63248fc6-dd10-464a-9968-19eb1c0af529-towards-a-better-understanding-of-the-computer-vision.md)
- [FROD: Robust Object Detection for Free](https://refivu.com/papers/7a50c866-e6cc-4aad-b404-c4a126f131b9-frod-robust-object-detection-for-free.md)
- [PROSE: Preservation-Constrained Selective Editing for Guilty Bias in Legal Judgment Prediction](https://refivu.com/papers/3f4357a8-f4ba-4538-87bd-6b1b37f20d53-prose-preservation-constrained-selective-editing-for-guilty.md)
- [Cooperative Multi-Agent Reinforcement Learning with Submodular Trajectory Rewards](https://refivu.com/papers/4a7e5a04-8712-4e37-b76c-97925c65d311-cooperative-multi-agent-reinforcement-learning-with.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/a2a0bf8e-4307-4c12-921a-7ff99465ceb9-lora-patch-defending-against-backdoored-lora-adapters-via)
