arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.15195cs.CRcs.AIcs.CLcs.LG
收藏

LoRA适配器中后门的权重空间检测

Weight space Detection of Backdoors in LoRA Adapters

Algoverse AI Research;Independent(独立研究者)

David Puertolas Merenciano, Ekaterina Vasyagina, Kevin Zhu, Javier Ferrando, Maheep Chaudhary

AI总结:

本文提出一种无需运行模型即可检测LoRA适配器后门的方法,通过分析权重矩阵的谱统计特征,利用逻辑回归分类器在三种模型家族上实现100%准确率。

摘要:

LoRA适配器使用户能够高效地微调大型语言模型(LLMs)。然而,LoRA适配器通过如Hugging Face Hub等开放仓库共享,使其容易受到后门攻击。当前的检测方法需要使用测试输入数据运行模型,这在需要筛查数千个适配器且未知触发器的情况下不切实际。我们通过直接分析适配器的权重矩阵来检测被污染的适配器,使方法具有触发器无关性。对于每个注意力投影(Q,K,V,O),我们的方法从低秩更新ΔW中提取五个谱统计特征,得到每个适配器的20维签名。一个在该表示上训练的逻辑回归检测器在三种模型家族——Llama-3.2-3B~\citep{llama3}、Qwen2.5-3B~\citep{qwen25}和Gemma-2-2B~\citep{gemma2}——上分离了良性和被污染的适配器,在未见过的测试适配器中,这些适配器来自指令遵循、推理、问答、代码和分类任务。在所有三种架构中,检测器实现了100%的准确率。

英文摘要:

LoRA adapters let users fine-tune large language models (LLMs) efficiently. However, LoRA adapters are shared through open repositories like Hugging Face Hub \citep{huggingface_hub_docs}, making them vulnerable to backdoor attacks. Current detection methods require running the model with test input data -- making them impractical for screening thousands of adapters where the trigger for backdoor behavior is unknown. We detect poisoned adapters by analyzing their weight matrices directly, without running the model -- making our method trigger-agnostic. For each attention projection (Q, K, V, O), our method extracts five spectral statistics from the low-rank update $ΔW$, yielding a 20-dimensional signature for each adapter. A logistic regression detector trained on this representation separates benign and poisoned adapters across three model families -- Llama-3.2-3B~\citep{llama3}, Qwen2.5-3B~\citep{qwen25}, and Gemma-2-2B~\citep{gemma2} -- on unseen test adapters drawn from instruction-following, reasoning, question-answering, code, and classification tasks. Across all three architectures, the detector achieves 100\% accuracy.

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

↑