Federated Class-Incremental Learning

Jiahua Dong, Lixu Wang, Zhen Fang, Gan Sun, Shichao Xu, Xiao Wang, Qi Zhu

Introduction

Standard Federated Learning (FL) typically operates under the assumption of a static environment where the set of object classes is fixed from the outset. However, real-world data is inherently dynamic. Whether in medical imaging—where new disease variants emerge—or autonomous driving—where vehicles encounter novel obstacles—decentralized systems must adapt to new information over time. This intersection of Federated Learning and Class-Incremental Learning (CIL) is known as Federated Class-Incremental Learning (FCIL).

The primary obstacle in FCIL is catastrophic forgetting, where a neural network overwrites the weights associated with previously learned classes to accommodate new ones. This paper introduces the Global-Local Forgetting Compensation (GLFC) framework, designed to mitigate forgetting by balancing learning paces and maintaining inter-class relationships across a distributed network.

The Challenge of Forgetting in Federated Settings

In a federated context, catastrophic forgetting is exacerbated by two distinct factors:

  1. Local Class Imbalance: At any specific time step, a client possesses substantial data for new classes but very little (or only limited "exemplars") for old ones. This imbalance causes the local model to drift significantly toward the new data.
  2. Global Heterogeneity (Non-i.i.d. Data): Different clients encounter different classes at different times. When a global model averages these diverse local updates, it often "forgets" classes that are not currently being updated by the majority of active clients, leading to a loss of global knowledge.

The GLFC Framework

To address these challenges, the authors propose the GLFC model, which tackles forgetting from both local and global perspectives through several innovative mechanisms.

Local Compensation Mechanisms

To stabilize local training, GLFC employs two specialized loss functions:

  • Class-Aware Gradient Compensation Loss ($L_{GC}$): This loss normalizes the "learning pace" by re-weighting gradients. It prevents the network from updating too aggressively on new data, ensuring that the gradients for old classes are not overwhelmed by the volume of new information.
  • Class-Semantic Relation Distillation Loss ($L_{RD}$): This ensures that the structural relationships between classes remain consistent. For example, the model should maintain the understanding that a "dog" is semantically closer to a "wolf" than to a "car," even as new categories are introduced.

Global Compensation and the Proxy Server

To solve global forgetting without violating privacy, GLFC utilizes a proxy server with prototype reconstruction. Instead of sharing raw data, clients send "perturbed prototype gradients." These are privacy-preserving representations of data features. The proxy server reconstructs these prototypes to evaluate which historical global model serves as the best "anchor" for distillation. This ensures the global model retains a memory of all classes seen across the entire network history, rather than just the most recent update.

Task Transition Detection

In a decentralized setting, the server may not know when a client has transitioned to a new task. GLFC implements an entropy-based mechanism to detect these shifts. When a client's model exhibits high uncertainty (entropy) on incoming data, the system automatically triggers the "new task" logic to adjust the learning parameters accordingly.

Experimental Evaluation

The GLFC framework was evaluated on three standard computer vision benchmarks adapted for incremental federated scenarios:

  • CIFAR-100: 100 classes of small-scale images.
  • ImageNet-Subset: A 100-class subset of the large-scale ImageNet dataset.
  • TinyImageNet: 200 classes with higher resolution than CIFAR.

The experiments simulated realistic conditions where the number of clients grows over time and data is distributed non-uniformly (non-i.i.d.).

Key Insights and Results

The researchers found that the "pace" of learning is a critical factor in stability; by explicitly balancing gradient magnitudes, the model avoids the drastic performance drops common in standard FL. Key results include:

  • Superior Accuracy: GLFC outperformed state-of-the-art baselines (such as iCaRL and BiC adapted for FL) by 4.4% to 15.1% in average accuracy across all datasets.
  • Graceful Decay: While competing methods often showed a "staircase" drop in accuracy as more classes were added, GLFC’s performance decayed much more gradually, demonstrating superior stability.
  • Ablation Success: Removing any single component—gradient compensation, distillation, or the proxy server—led to a significant performance drop, confirming that local and global compensation must work in tandem to be effective.

Limitations and Future Work

Despite its success, the authors note several areas for future research. Currently, the paper lacks a formal mathematical proof linking FL convergence with the stability-plasticity dilemma of CIL. Additionally, while the use of a shallow LeNet for prototype communication saves bandwidth, the reconstruction process on the proxy server increases computational complexity. Future work could also explore how these techniques perform under extreme hardware constraints, such as on mobile devices or edge sensors with limited memory.

Summary updated

BibTeX
@inproceedings{dong2022federated,
  author = {Jiahua Dong and Lixu Wang and Zhen Fang and Gan Sun and Shichao Xu and Xiao Wang and Qi Zhu},
  title = {{Federated Class-Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure