arXiv:2610.33496cs.LGOct 2026

Manuscript Offprint

arXiv:2610.33496

FedSEAM: Federated Continual Learning of LLMs via Subspace Expert Agreement Merging

Fatema Siddika, Abhijit Chunduru, Zilinghan Li, Ali Jannesari, Ravi Madduri

Abstract

Federated continual learning trains a model on a sequence of tasks across several clients without sharing their data while retaining knowledge of earlier tasks. Sparse mixture-of-experts models support this setting by adapting selected parameters on a frozen backbone. However, clients learn different expert content as tasks evolve, making it difficult to share knowledge across clients without disrupting task-specific and client-specific specialization. Matching tile coordinates alone does not establish whether their learned content is compatible. We present FedSEAM, a federated continual learning framework that organizes task knowledge into sparse experts and selectively shares their content across tasks and clients. On each client, task-aware tile selection allocates capacity to a new task, while a subspace-based compatibility test determines which existing expert tiles to reuse and where to introduce fresh capacity. On the server, Subspace Expert Agreement Merging (SEAM) compares client updates as subspaces and moves each client towards consensus only along agreed-upon directions, leaving the rest of its update unchanged. We identify two remaining sources of forgetting, routing drift and merge erasure, and address them with three protections, one of which exactly preserves tile components in a selected prior-overlap subspace at every merge. We evaluate FedSEAM on TRACE using Qwen3-4B and Llama-3.2-3B, with component-wise ablations and studies of data size to assess its balance between learning new tasks and retaining prior knowledge.

1 Introduction

Federated learning (FL) trains a shared model across clients that keep their raw data private and send only model updates (McMahan et al., 2017), which suits sensitive or widely distributed data. For large language models, FL has become a practical way to fine-tune a common model on data that never leaves its owners (Zhang et al., 2024). Language models are increasingly adapted after deployment by organizations that cannot share data, including hospitals, banks, and research laboratories. As their data and requirements evolve, these organizations must acquire new capabilities while retaining earlier knowledge, reflecting the stability–plasticity dilemma of continual learning (Kirkpatrick et al., 2017; Lopez-Paz and Ranzato, 2017).

Federated continual learning (FCL) (Yoon et al., 2021) studies this combined setting, which is more challenging than either federated or continual learning alone. Client updates are computed on different distributions and often disagree in direction, and when they are combined coordinate by coordinate, they can cancel or overwrite task-specific information. Each party also sees only its own data, so clients collaborate by exchanging parameter updates.

Most federated continual learning methods have been developed and evaluated on vision tasks. Some decompose model parameters to transfer task knowledge between clients (Yoon et al., 2021), an idea later applied to text classification (Chaudhary et al., 2022), while others counter forgetting with generated replay or distillation (Wuerkaixi et al., 2024; Ma et al., 2022). Recent work turns to multimodal models, either combining regularization with replay (Liu et al., 2026) or keeping knowledge in separate modules that are selected or fused for each input (Guo et al., 2025, 2026), an idea shared with mixtures of experts, which combine modules through a router (Shazeer et al., 2017; Dou et al., 2024). Routing alone, however, does not prevent interference between tasks (Wu et al., 2026), and these methods leave open how clients' versions of the same expert should be combined when task-specific knowledge is represented by sparse updates to a language model.

A recent design for continual learning of language models adapts a frozen backbone through sparse experts (Siddika et al., 2026): each task trains a small set of weight tiles, and a router combines the experts without task labels. Extending this design to the federated setting raises three challenges. First, clients trained on different data drive shared parameters in different directions, and coordinate-wise aggregation methods such as federated averaging or task arithmetic (Ilharco et al., 2023) dilute client-specific knowledge. Second, successive tasks tend to select the same tiles, because the same input channels dominate gradient magnitudes across tasks, and sharing tiles based on position alone cannot distinguish compatible tasks from conflicting ones. Third, freezing experts from completed tasks is insufficient to prevent forgetting, since the router and shared experts continue to change.

To address these challenges, we propose Federated Subspace Expert Agreement Merging (FedSEAM), a sparse mixture-of-experts framework for federated continual learning. On each client, task-aware tile selection and selective expert reuse allow new tasks to build on compatible knowledge while allocating fresh capacity where needed. The server then aggregates shared expert tiles through subspace agreement, combining compatible client contributions while retaining components outside the agreed subspace. Figure 1 previews the main result on Qwen3-4B with 1,000 samples per client: FedSEAM achieves learning accuracy comparable to FedAvg over tiles, with higher final performance and less forgetting in the available evaluations. Two research questions guide the paper.

RQ1: How can sparse expert content be shared across tasks and aggregated across clients while retaining task and client specialization?

RQ2: What causes forgetting when earlier experts are frozen, and how can expert training and aggregation limit it? Our main contributions are as follows:

Contribution 1: FedSEAM, a sparse mixture-of-experts framework for federated continual learning, with task-aware tile selection and selective expert reuse.

Contribution 2: SEAM, a personalized aggregation method that shares expert content along agreed update directions while retaining client-specific components outside them.

Contribution 3: An analysis of routing drift and merge erasure, with protections that include exact preservation of tile components in a selected prior-

Figure

Figure 1: LA and OP of FedSEAM and FedAvg on Qwen3-4B with 5,000 training samples per task (client mean); labels give BWT. FedSEAM achieves comparable LA and an OP that is 2.5 points higher.

overlap subspace during merging.

Contribution 4: Evaluation on TRACE with Qwen3-4B and Llama-3.2-3B, examining learning, retention, and the effects of individual components.