arXiv:2411.19335cs.CRcs.AI2024-11被引 12

PEFT在联邦学习中可被恶意利用,仅用1%参数就能让模型生成有害内容

PEFT-as-an-Attack! Jailbreaking Language Models during Federated Parameter-Efficient Fine-Tuning

  • 利用低秩适配等参数高效方法,让少数恶意客户端操控全局模型
  • 攻击成功率高达80%,且仅需不到1%的可训练参数
  • 适合关注隐私联邦学习安全性的研究者与工程师

联邦参数高效微调(FedPEFT)作为一种保护隐私且高效的预训练语言模型适应范式,在联邦学习中备受关注。它通过将数据保留在本地设备上训练模型,避免原始数据外泄,并结合如LoRA等参数高效方法,显著减少可训练参数量,从而降低通信开销和计算负担。然而,其安全风险尚未充分探讨。本文提出新型威胁‘PEFT-as-an-Attack’(PaaA),揭示了可利用PEFT作为攻击向量绕过模型安全对齐,生成有害内容。评估显示,当少于1%的模型参数可训练,且少数客户端恶意参与时,使用典型PEFT方法(如LoRA)的攻击成功率可达约80%。为缓解此威胁,我们研究了鲁棒聚合方案(RASs)与事后安全对齐(PPSA),但实证分析表明,即使最先进的RAS(如DnC、ClippedClustering)在数据分布高度异构下仍难防御;而PPSA虽能将攻击成功率降至10%以下,却严重损害目标任务准确率。结果凸显亟需兼顾安全与性能的新型防御机制。

原文摘要 · Abstract (English)

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.

联邦学习安全攻防参数高效大模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。