arXiv:2610.19968cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19968

Safe-FCL: Continual Risk Awareness and Fine-Grained Safety Aggregation for Federated Continual Learning of LLMs

Shuaijie Ma, Yongkang Hu, Yu Cheng, Jiuan Zhou, Yi Xie, Yushuo Zhang, Zhaoxia Yin

Abstract

Federated fine-tuning enables large language models (LLMs) to learn collaboratively from distributed client data, but malicious client updates can compromise global model safety. As federated tasks evolve, changing malicious update patterns challenge the ability of existing defenses to maintain reliable risk detection over time. To address this challenge, we propose Safe-FCL, a framework integrating continual risk awareness with fine-grained safety aggregation for federated continual learning of LLMs. Specifically, the Continual Risk Awareness (CRA) mechanism learns emerging risk patterns across sequential tasks and constrains detector updates using a protective subspace derived from historical features, mitigating forgetting of previously learned malicious patterns while adapting to new risks. To translate risk awareness into aggregation-level safety control, the Fine-Grained Safety Aggregation (FGSA) mechanism combines client-level risk assessments from CRA with module-level deviations from historical update behavior to adaptively regulate aggregation contributions, suppressing potentially malicious updates while minimizing unnecessary restrictions on benign updates. Extensive experiments demonstrate that Safe-FCL outperforms current SOTA methods, improving global-model Rule and MD-Judge scores in federated continual learning by 0.41% and 0.64%, respectively, while increasing average risk recognition accuracy by 2.01%.

1 Introduction

Federated fine-tuning enables large language models (LLMs) to collaboratively learn from distributed client data without requiring the centralization of raw training data (Ye et al., 2024). However, malicious clients may compromise global model safety by manipulating their local model updates (Tao

Figure

Figure 1: Comparison of non-continual federated learning and Safe-FCL.

et al., 2026). As federated learning extends from single-task training to continual learning, models must acquire new knowledge while retaining previously learned capabilities (Yoon et al., 2021; Qiu et al., 2026). During this process, malicious update patterns may evolve as training tasks progress, requiring safety defenses not only to address current threats but also to maintain long-term effectiveness across sequential tasks.

Current studies have explored different strategies to defend against malicious client updates in federated learning. Nguyen et al. (2022) proposed FLAME, which filters suspicious updates to mitigate their impact on the global model. Xu et al. (2025) introduced LASA, employing layer-adaptive sparsified aggregation to improve robustness against malicious updates. More recently, Tao et al. (2026) developed Safe-FedLLM, which leverages LoRA update features to assess client risks and regulate aggregation contributions. However, these methods do not explicitly address evolving malicious update patterns across sequential tasks. Fixed risk detectors may miss emerg-

∗^{*}Equal contribution †\daggerCorresponding author ing threats, while continual adaptation can lead to forgetting of previously learned risks. Moreover, client-level risk weighting lacks targeted control over suspicious updates across model modules.

To address these limitations, we propose Safe-FCL, which integrates continual risk awareness with fine-grained safety aggregation to enhance long-term safety in federated continual learning of LLMs. Specifically, Continual Risk Awareness (CRA) learns emerging malicious update patterns from model updates across sequential tasks. It constrains detector updates using historical protective subspaces to mitigate forgetting of previously learned risks. Building upon CRA, Fine-Grained Safety Aggregation (FGSA) combines client-level risk assessments with deviations from historical module update behavior. It then adaptively regulates module-level aggregation contributions through risk-aware gating. Together, these mechanisms leverage cross-task risk awareness to guide module-level aggregation decisions, thereby enhancing long-term safety in federated continual learning. Experimental results demonstrate that Safe-FCL outperforms current SOTA methods, improving global-model Rule and MD-Judge scores by 0.41% and 0.64%, respectively, while increasing continual risk recognition accuracy by 2.01%.

The main contributions of this work are summarized as follows:

• Long-Term Safety Defense for Federated Continual Learning. Safe-FCL is designed to mitigate long-term safety challenges posed by evolving malicious update patterns in federated continual learning of LLMs. By combining cross-task risk awareness with safety-aware aggregation, the framework aims to strengthen defenses across sequential tasks.

• Continual Risk Awareness and Fine-Grained Safety Aggregation. CRA constrains risk detector updates using protective subspaces derived from historical features to mitigate forgetting of previously acquired risk recognition capabilities. FGSA combines client safety scores with module-level historical deviations to adaptively regulate aggregation contributions through risk-aware gating.

• Comprehensive Experimental Evaluation. We evaluate Safe-FCL across sequential safety tasks and an unseen OOD task to examine its long-term safety and generalization capabilities. Compared with current SOTA methods, Safe-FCL improves global-model Rule and MD-Judge scores by 0.41% and 0.64%, respectively, while increasing risk detector average accuracy by 2.01% in federated continual learning.