低秩带来低安全:针对分布式LoRA-based LLM系统的梯度装配中毒攻击
Low Rank Comes with Low Security: Gradient Assembly Poisoning Attacks against Distributed LoRA-based LLM Systems
AI总结:
针对分布式LoRA-based LLM系统,提出GAP攻击,通过构造无害的A和B矩阵乘积产生恶意更新,导致模型输出降级和错误增加。
摘要:
低秩适应(LoRA)已成为在联邦设置中微调大型语言模型(LLMs)的流行解决方案,通过引入可训练的低秩矩阵大幅降低了更新成本。然而,当与FedIT等框架集成时,LoRA引入了一个关键漏洞:客户端分别提交A和B矩阵,而只有它们的乘积AB决定模型更新,但这个复合体从未被直接验证。我们提出了梯度装配中毒(GAP),这是一种新型攻击,利用这个盲点,通过构造单独无害的A和B矩阵,其乘积产生恶意更新。GAP无需访问训练数据或跨客户端协调,并且不会被标准异常检测器检测到。我们识别出LoRA-based联邦系统中的四个系统性漏洞,并在LLaMA、ChatGLM和GPT-2上验证了GAP。GAP一致地导致降级或偏见的输出,同时保持表面流畅性,BLEU得分降低高达14.5%,事实和语法错误增加超过800%,并且保持92.6%的长文本响应长度。这些结果揭示了分布式LoRA微调中一个新的隐蔽、持续的威胁类别。
英文摘要:
Low-Rank Adaptation (LoRA) has become a popular solution for fine-tuning large language models (LLMs) in federated settings, dramatically reducing update costs by introducing trainable low-rank matrices. However, when integrated with frameworks like FedIT, LoRA introduces a critical vulnerability: clients submit $A$ and $B$ matrices separately, while only their product $AB$ determines the model update, yet this composite is never directly verified. We propose Gradient Assembly Poisoning (GAP), a novel attack that exploits this blind spot by crafting individually benign $A$ and $B$ matrices whose product yields malicious updates. GAP operates without access to training data or inter-client coordination and remains undetected by standard anomaly detectors. We identify four systemic vulnerabilities in LoRA-based federated systems and validate GAP across LLaMA, ChatGLM, and GPT-2. GAP consistently induces degraded or biased outputs while preserving surface fluency, reducing BLEU by up to 14.5\%, increasing factual and grammatical errors by over 800\%, and maintaining 92.6\% long-form response length. These results reveal a new class of stealthy, persistent threats in distributed LoRA fine-tuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。