LoRA-Patch: Defending backdoored LoRA adapters via directional guidanceLoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering
Translation in progress — untranslated text is omitted.
Researchers propose LoRA-Patch, a lightweight backdoor defense method for LoRA adapters that suppresses trigger-activated backdoor behavior by realigning adapter directions layer by layer, without modifying the base model weights. Its core observation is that backdoor injection distorts the directional geometry of the poisoned adapter relative to the trusted base model, and that existing removal methods relying on updating, pruning, distillation or mixing parameters do not match adapter deployment, where the base must remain frozen. Experiments on five types of backdoor attacks and three models show that the method effectively mitigates trigger-activated backdoors and outperforms existing baselines while maintaining benign task performance, and that constructing patches on all evaluated models and adapters can be completed within 20 seconds. Code is open-sourced at https://github.com/FOXVEDA/LoRA-Patch。
- Third-party LoRA adapters may conceal trigger-activated backdoors that standard utility evaluations struggle to detect; existing backdoor defenses mostly require updating, pruning, or distilling model parameters, which does not match adapter deployment where the base model should remain frozen.
- The authors state that backdoor injection distorts the geometry of the adapter's refusal direction relative to the base model. LoRA-Patch uses a small harmful/harmless probe set to estimate the per-layer refusal directions of the two models, constructs a steering vector anchored on the base direction with the adapter's orthogonal residual added, and injects it into the residual stream of the last eight layers at inference time without modifying any weights.
- Across three models and five backdoor attacks, LoRA-Patch's average ASR is lower than the three baselines Fine-Tuning, Fine-Pruning, and CROW, and GSM8K accuracy is mostly maintained; it is likewise effective on CommonsenseQA and on LoRI-D/DoRA adapters; under adaptive attack the defense effect weakens but remains positive.
- The authors note: scenarios where the base model itself carries a backdoor or its internal activations cannot be accessed are not considered; effectiveness may vary with probe set coverage and model representation geometry; the steering window and strength are fixed values. Experiments cover only three 7B–8B models, two downstream tasks, and three adapter variants.
Related events and news
1 events · 1 news mentions
News that mentions this paper
CSA研究:后门LoRA适配器成模型供应链未扫描层
- CSA Labs Researchcites the paper's id or link后门 LoRA 适配器:模型供应链中未被扫描的一层
[10] Huo, S., Jiang, P., Lyu, X., and Li, Y. “LoRA-Patch: Defending Against Backdoored LoRA Adapters via Directional Steering.” arXiv:2611.03752, November 2026.
Related papers
Show 3 more papers
- Operating-Point Failure of Frozen Guardrail Probes Under Backbone UpdatesAnalysis / interpretabilityarXiv