Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Safe-FedLLM: Delving into the Safety of Federated Large Language Models

About

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.

Mingxiang Tao, Yu Tian, Wenxuan Tu, Yue Yang, Xue Yang, Xiangyan Tang• 2026

Related benchmarks

TaskDatasetResultRank
Safety and Utility EvaluationBeaverTails & WildChat
Rule Adherence97.5
11
Robust Safety and Utility Evaluation in Federated LearningBeaverTails & LMSYS-Chat
Rule Score91.92
8
Robust Safety and Utility Evaluation in Federated LearningMaliciousGen & LMSYS-Chat
Rule Compliance92.5
8
Robust Safety and Utility Evaluation in Federated LearningMaliciousGen & WildChat
Rule Score81.35
8
Safety EvaluationBeaverTails & LMSYS-Chat (test)
Rule Score97.88
8
Safety EvaluationBeaverTails & WildChat (test)
Rule Adherence Score97.5
8
Safety EvaluationMaliciousGen & LMSYS-Chat (test)
Rule Score97.31
8
Safety EvaluationMaliciousGen & WildChat (test)
Rule Adherence97.69
8
Safety and Utility EvaluationBeaverTails & LMSYS-Chat
Rule Score97.88
3
Safety and Utility EvaluationMaliciousGen & LMSYS-Chat
Rule Score97.31
3
Showing 10 of 11 rows

Other info

Follow for update