PEFT即攻击!在联邦参数高效微调期间对语言模型进行越狱
PEFT-as-an-Attack! Jailbreaking Language Models during Federated Parameter-Efficient Fine-Tuning
AI总结:
本文揭示了一种名为PaaA的新型安全威胁,证明恶意客户端可利用FedPEFT(如LoRA)仅微调不到1%参数即实现约80%攻击成功率绕过模型安全对齐,并指出当前防御策略RASs和PPSA存在显著局限性。
摘要:
联邦参数高效微调(FedPEFT)已成为在联邦学习(FL)设置下,对预训练语言模型(PLMs)进行隐私保护和高效适配的一种极具前景的范式。它通过保持数据去中心化并在本地设备上训练模型来保护数据隐私,确保原始数据永远不会离开用户的设备。此外,集成诸如LoRA等PEFT方法,与微调整个模型相比,显著减少了可训练参数的数量,从而最小化了通信成本和计算开销。尽管具有潜力,FedPEFT的安全影响仍未得到充分探索。本文引入了一种针对FedPEFT的新型安全威胁,称为PEFT即攻击(PaaA),该威胁揭示了PEFT如何被利用作为一种攻击向量,以绕过PLMs的安全对齐并生成有害内容来响应恶意提示。我们对PaaA的评估表明,在将不到1%的模型参数设置为可训练,且一小部分客户端恶意行事的情况下,使用诸如LoRA等代表性PEFT方法,该攻击实现了约80%的攻击成功率。为了缓解这一威胁,我们进一步研究了潜在的防御策略,包括鲁棒聚合方案和PEFT后安全对齐(PPSA)。然而,我们的实证分析强调了这些防御的局限性,即即使是最先进的RASs,如DnC和ClippedClustering,在数据分布高度异构的场景中也难以抵御PaaA。同样,虽然PPSA可以将攻击成功率降低到10%以下,但它严重降低了模型在目标任务上的准确率。我们的结果强调,迫切需要更有效的防御机制,以在确保安全性的同时维持FedPEFT范式的性能。
英文摘要:
Federated Parameter-Efficient Fine-Tuning (FedPEFT) has emerged as a promising paradigm for privacy-preserving and efficient adaptation of Pre-trained Language Models (PLMs) in Federated Learning (FL) settings. It preserves data privacy by keeping the data decentralized and training the model on local devices, ensuring that raw data never leaves the user's device. Moreover, the integration of PEFT methods such as LoRA significantly reduces the number of trainable parameters compared to fine-tuning the entire model, thereby minimizing communication costs and computational overhead. Despite its potential, the security implications of FedPEFT remain underexplored. This paper introduces a novel security threat to FedPEFT, termed PEFT-as-an-Attack (PaaA), which exposes how PEFT can be exploited as an attack vector to circumvent PLMs' safety alignment and generate harmful content in response to malicious prompts. Our evaluation of PaaA reveals that with less than 1% of the model's parameters set as trainable, and a small subset of clients acting maliciously, the attack achieves an approximate 80% attack success rate using representative PEFT methods such as LoRA. To mitigate this threat, we further investigate potential defense strategies, including Robust Aggregation Schemes (RASs) and Post-PEFT Safety Alignment (PPSA). However, our empirical analysis highlights the limitations of these defenses, i.e., even the most advanced RASs, such as DnC and ClippedClustering, struggle to defend against PaaA in scenarios with highly heterogeneous data distributions. Similarly, while PPSA can reduce attack success rates to below 10%, it severely degrades the model's accuracy on the target task. Our results underscore the urgent need for more effective defense mechanisms that simultaneously ensure security and maintain the performance of the FedPEFT paradigm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。