Safe-FedLLM:深入探究联邦大语言模型的安全性
Safe-FedLLM: Delving into the Safety of Federated Large Language Models
AI总结:
本文提出Safe-FedLLM,一种基于探针的防御框架,通过三级防御(步骤级、客户端级和阴影级)利用轻量级分类器区分恶意与良性LoRA更新,以增强联邦大语言模型对恶意客户端的鲁棒性。
摘要:
联邦学习解决了大语言模型训练中的隐私和数据孤岛问题。大多数先前工作侧重于提高联邦学习对大语言模型的效率。然而,开放联邦环境中的安全性,特别是针对恶意客户端的防御,仍未被充分探索。为了研究联邦大语言模型的安全性,我们进行了一项初步研究,从LoRA更新的角度分析潜在的攻击面和防御特性。我们发现联邦大语言模型的两个关键特性:1)大语言模型在联邦学习中容易受到恶意客户端的攻击,以及2)LoRA更新表现出不同的行为模式,可以通过轻量级分类器有效区分。基于这些特性,我们提出了Safe-FedLLM,一种基于探针的联邦大语言模型防御框架,该框架在三个层面构建防御:步骤级、客户端级和阴影级。Safe-FedLLM的核心概念是对每个客户端的本地LoRA更新进行基于探针的区分,将其视为高维行为特征,并使用轻量级分类器判断其是否为恶意。大量实验表明,Safe-FedLLM有效提高了联邦大语言模型对恶意客户端的鲁棒性,同时保持了对良性数据的竞争性能。值得注意的是,我们的方法在不显著影响训练速度的情况下有效抑制了恶意数据的影响,即使在恶意客户端比例较高的情况下也保持有效。
英文摘要:
Federated learning (FL) addresses privacy and data-silo issues in the training of large language models (LLMs). Most prior work focuses on improving the efficiency of federated learning for LLMs (FedLLM). However, security in open federated environments, particularly defenses against malicious clients, remains underexplored. To investigate the security of FedLLM, we conduct a preliminary study to analyze potential attack surfaces and defensive characteristics from the perspective of LoRA updates. We find two key properties of FedLLM: 1) LLMs are vulnerable to attacks from malicious clients in FL, and 2) LoRA updates exhibit distinct behavioral patterns that can be effectively distinguished by lightweight classifiers. Based on these properties, we propose Safe-FedLLM, a probe-based defense framework for FedLLM, which constructs defenses across three levels: Step-Level, Client-Level, and Shadow-Level. The core concept of Safe-FedLLM is to perform probe-based discrimination on each client's local LoRA updates, treating them as high-dimensional behavioral features and using a lightweight classifier to determine whether they are malicious. Extensive experiments demonstrate that Safe-FedLLM effectively improves FedLLM's robustness against malicious clients while maintaining competitive performance on benign data. Notably, our method effectively suppresses the impact of malicious data without significantly affecting training speed, and remains effective even under high malicious client ratios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。