Suppression Is Not Erasure: Mechanistic Analysis and Reactivation Boundaries of Subspace Projection for LoRA Backdoor Defense

LLM LoRA/Adapter AI Safety / AI Ethics MBDSF
2026年11月09日
低秩适应(LoRA)已成为定制大语言模型的标准范式;然而,第三方LoRA适配器却带来供应链安全风险:仅需修改不足1%的模型参数,即可悄然植入隐蔽后门。近期提出的防御方法将适配器权重投影至估计出的后门子空间,并报告静态攻击成功率(ASR)接近零。我们对子空间投影类防御方法开展了系统性审计,覆盖四种模型规模(Qwen2.5-0.5B/1.5B/3B/7B)及三种模型架构(Qwen2.5、InternLM2.5、Spark)。在建设性方面,我们提出模块级秩为1的触发器差异投影法(k=1,α=1):该方法在标准基准测试中将ASR从60.4%降至0.0%,在包含1000个无污染样本的评测集上亦将ASR由70.3%降至0.0%(整体p值为3.055×10⁻²⁹⁹,指令级p值为9.49×10⁻¹⁶),端到端耗时不足5秒;此外,我们通过谱间隙(spectral-gap)界证明:仅使用无触发器的良性礼貌后缀(benign polite suffixes)进行校准,即可使校准方向高度对齐于后门子空间的第一主成分u₁(B)(余弦相似度中位数达0.9048),从而在无需任何先验触发器知识的前提下实现0.0%的ASR。本文的核心贡献是一项反直觉发现:静态ASR的显著下降并不等价于后门参数被真正擦除。在仅含5个样本的少样本重激活(few-shot reactivation)场景下,所有被评估的权重编辑类防御方法均迅速失效——标准投影法、细粒度剪枝(Fine-Pruning)、自适应神经剪枝(ANP)、奇异值截断(SVD truncation)以及Li与Kim提出的双端投影法,在第一训练轮次(Epoch 1)即出现剧烈反弹,ASR回升至91.7%–100.0%;而我们提出的单轮双端变体虽稍具韧性(第一轮ASR为48.7%),但至第二轮次仍全部攀升至100.0%;且其首轮损失值最高可达从头训练(training from scratch)对应损失的5.7倍。为进一步解析重激活机制,我们采用严格保谱的Haar正交旋转作为控制实验(Frobenius范数初始为10.0928,旋转后保留精度达1.70×10⁻⁶),并结合N=1至6的累积Gram-Schmidt基消融分析,最终将重激活过程解耦为三类关键因素:第一轮次中残余触发器差异耦合能量(Spearman相关系数ρ = 0.986)、基础模型在第二轮次固有的可学习性(贡献率达100%),以及良性语义方向与后门方向之间的冲突(占比41.7%)。
Low-Rank Adaptation (LoRA) is the standard paradigm for customizing large language models, yet third-party LoRA adapters pose a supply-chain risk: modifying less than 1% of model parameters suffices to implant stealthy backdoors. Recent defenses project adapter weights onto estimated backdoor subspaces, reporting near-zero static Attack Success Rates (ASR). We audit subspace-projection defenses across four model scales (Qwen2.5-0.5B/1.5B/3B/7B) and three architectures (Qwen2.5, InternLM2.5, Spark). Constructively, module-wise rank-1 trigger-difference projection (k=1, alpha=1) reduces ASR from 60.4% to 0.0% on standard benchmarks and from 70.3% to 0.0% on a 1,000-sample uncontaminated suite (p = 3.055e-299, instruction-level p = 9.49e-16) in under 5 seconds end-to-end, and we prove via a spectral-gap bound why trigger-free calibration with benign polite suffixes aligns with u1(B) (median cosine 0.9048) and achieves 0.0% ASR without prior trigger knowledge. Our main contribution is a negative finding: static ASR reduction does not imply parameter erasure. Under 5-sample few-shot reactivation, every evaluated weight-editing defense rebounds (91.7%-100.0% ASR in 1 epoch for standard projections, Fine-Pruning, ANP, SVD truncation and Li & Kim's dual-end projection; 48.7% for our single-round dual variant), all reaching 100.0% by Epoch 2, with first-epoch loss up to 5.7x lower than training from scratch. Using an exact spectrum-preserving Haar orthogonal rotation control (Frobenius norm 10.0928 preserved to 1.70e-6) and N=1..6 cumulative Gram-Schmidt basis ablation, we decompose reactivation into residual trigger-difference coupling energy at Epoch 1 (Spearman rho = 0.986), base-model learnability at Epoch 2 (100%), and benign semantic direction conflict (41.7%).
许愿