Federated Continual Learning for Text Classification via Selective Inter-client Transfer

Yatin Chaudhary, Pranav Rai, Matthias Schubert, Hinrich Schütze, Pankaj Gupta

Introduction

In the modern "cloud-edge continuum," devices generate continuous streams of data that require collaborative learning without compromising privacy. Federated Continual Learning (FCL) addresses this by combining Federated Learning (FL) with Continual Learning (CL). However, FCL faces two major challenges: catastrophic forgetting, where new tasks overwrite old knowledge, and inter-client interference, where heterogeneous data across clients leads to negative transfer when models are averaged.

This paper introduces FedSeIT (Federated Selective Inter-client Transfer), a framework specifically designed for NLP text classification. FedSeIT selectively transfers and aligns model parameters based on domain relevance, boosting accuracy by an average of 12.4% over existing baselines while preserving data privacy.

The FedSeIT Framework

FedSeIT utilizes a Convolutional Neural Network (CNN) architecture and introduces two primary innovations: parameter decomposition and alignment projection.

Parameter Decomposition & Alignment

Instead of a monolithic model, FedSeIT decomposes weights into three parts: dense base parameters (global knowledge), sparse task-adaptive parameters (client-specific knowledge), and sparse mask parameters.

To prevent interference, FedSeIT uses an Alignment Projection strategy. Rather than simply adding foreign parameters, it concatenates and projects them into the local feature space. This ensures that knowledge from other clients is properly aligned before being used to augment local learning.

FedSeIT architecture showing (a) the alignment projection of foreign client features and (b) the composition of local and foreign convolution filters.

Selective Inter-client Transfer (SIT)

Downloading all historical task parameters from every client is computationally expensive and often introduces irrelevant data. The Selective Inter-client Transfer (SIT) module solves this by identifying the most relevant foreign tasks.

Clients cluster their document embeddings locally (using KNN or GMM) and share only the cluster centroids with the server. The server calculates the cosine similarity between these centroids to route only the top-$K$ most relevant task parameters back to the client. This privacy-preserving relevance matching ensures efficient and targeted knowledge transfer.

The Selective Inter-client Transfer (SIT) mechanism using cluster centroids to identify relevant foreign tasks.

Experimental Results

The authors evaluated FedSeIT on five standard text classification datasets: Reuters8 (R8), Tag My News (TMN), TREC6, TREC50, and Subjectivity (SUBJ).

  • Accuracy Gains: FedSeIT consistently outperformed the baseline FedWeIT, achieving a 12.4% average gain in Task-averaged Test Accuracy (TTA). On the R8 dataset, accuracy jumped from ~79.1% to ~90.5%.
  • Efficiency: Using SIT with $K=3$ or $5$ achieved comparable or better results than full transfer, proving that selective sharing is both effective and efficient.
  • Dense Layer Sharing (DLS): The study found that sharing final dense projection layers actually hurts performance due to task heterogeneity. Keeping these layers local improves both accuracy and security.

Conclusion and Future Work

FedSeIT demonstrates that "not all sharing is caring" in federated networks. Selective sharing based on domain overlap is critical for effective FCL in NLP. Future research will focus on scaling this framework to token-level tasks like Named Entity Recognition and optimizing it for resource-constrained edge devices through model distillation and pruning.

Summary updated

BibTeX
@inproceedings{chaudhary2022federated,
  author = {Yatin Chaudhary and Pranav Rai and Matthias Schubert and Hinrich Schütze and Pankaj Gupta},
  title = {{Federated Continual Learning for Text Classification via Selective Inter-client Transfer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.353},
}
Figure