arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.03752cs.CRcs.AI
收藏

LoRA-Patch:通过方向引导防御带后门的LoRA适配器

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

Xidian University(西安电子科技大学);Singapore Management University(新加坡管理大学)

Shengyan Huo, Peihai Jiang, Xixiang Lyu, Yige Li

AI总结:

本研究针对第三方LoRA适配器的后门风险,提出轻量级防御方法LoRA-Patch,通过分层引导重新调整适配器方向抑制触发器激活的后门,在保留良性性能的同时优于现有基线,且计算高效。

摘要:

第三方LoRA适配器会带来严重的后门风险:恶意适配器可在保持正常任务性能的同时嵌入由触发器激活的隐藏行为,难以通过标准效用评估检测。现有的基于移除的防御方法通常通过更新、剪枝、蒸馏或混合模型参数来净化带后门的模型,但这些方法与基于适配器的部署不匹配,因为可信的基础模型需保持冻结状态。本研究提出LoRA-Patch,一种专为LoRA适配器设计的轻量级后门防御方法。核心见解是后门注入会破坏中毒适配器相对于其可信基础模型的方向几何结构,基于此,LoRA-Patch通过分层引导重新调整适配器方向,从而抑制触发器激活的行为,且无需修改基础模型权重。针对5种后门攻击和3种模型的大量实验表明,LoRA-Patch可有效缓解触发器激活的后门,在保留良性任务性能的同时优于现有基线方法;此外,LoRA-Patch计算效率高,在所有评估的模型和适配器上构建补丁仅需20秒内。我们的代码可在该https URL公开获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑