NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data-Free Federated Class Incremental Learning with Diffusion-Based Generative Memory

Naibo Wang, Yuchen Deng, Wenjie Feng, Jianwei Yin, See-Kiong NgarXiv 2024 · OpenReview

Abstract

Federated Class Incremental Learning (FCIL) is a critical yet largely underexplored issue that deals with the dynamic incorporation of new classes within federated learning (FL). Existing methods often employ generative adversarial networks (GANs) to produce synthetic images to address privacy concerns in FL. However, GANs exhibit inherent instability and high sensitivity, compromising the effectiveness of these methods. In this paper, we introduce a novel data-free federated class incremental learning framework with diffusion-based generative memory (DFedDGM) to mitigate catastrophic forgetting by generating stable, high-quality images through diffusion models. We design a new balanced sampler to help train the diffusion models to alleviate the common non-IID problem in FL, and introduce an entropy-based sample filtering technique from an information theory perspective to enhance the quality of generative samples. Finally, we integrate knowledge distillation with a feature-based regularization term for better knowledge transfer. Our framework does not incur additional communication costs compared to the baseline FedAvg method. Extensive experiments across multiple datasets demonstrate that our method significantly outperforms existing baselines, e.g., over a 4% improvement in average accuracy on the Tiny-ImageNet dataset.

Introduction

Federated Learning (FL) enables decentralized model training across multiple devices while maintaining data privacy. However, real-world applications often require models to learn new classes over time, a challenge known as Class Incremental Learning (CIL). When combined, Federated Class Incremental Learning (FCIL) faces the dual hurdle of protecting local data privacy and preventing catastrophic forgetting—where learning new tasks causes the model to lose knowledge of previously learned ones.

Existing "data-free" FCIL approaches typically rely on Generative Adversarial Networks (GANs) to synthesize old data for rehearsal. However, GANs are notoriously unstable and often fail to capture the full diversity of data distributions, especially in non-IID (Independent and Identically Distributed) federated settings. This paper proposes DFedDGM, which leverages the stability and high-fidelity generation of Diffusion Models to create a more robust generative memory.

The DFedDGM Framework

Overview of the DFedDGM framework, including the federated learning process, diffusion model training, and local model training with synthetic rehearsal.

The DFedDGM framework introduces three primary innovations to address the limitations of current FCIL methods:

  1. Diffusion-Based Generative Memory: Unlike GANs, diffusion models provide a stable training objective and produce high-quality synthetic samples. These models act as a local "memory vault," allowing clients to generate images of old classes for rehearsal without storing raw data.
  2. Balanced Sampler: To combat the non-IID nature of federated data (where class distributions vary wildly between clients), a balanced sampler is employed during diffusion model training. This ensures the generative model learns a representative distribution of all local classes, preventing bias toward dominant categories.
  3. Entropy-Based Sample Filtering: To ensure only high-quality synthetic data is used for training, the framework applies an entropy filter. By measuring the uncertainty (entropy) of the global model's predictions on generated images, the system discards low-confidence samples that might otherwise introduce noise into the learning process.
  4. Feature-Based Regularization: Beyond standard logit-based knowledge distillation, DFedDGM incorporates a Feature Distance (FD) loss. This regularization term constrains the drift of internal feature representations, ensuring the model maintains its "understanding" of object characteristics across sequential tasks.

Crucially, the diffusion models remain local to each client. Only the standard model weights are communicated to the central server, ensuring that DFedDGM maintains the same communication efficiency as the standard FedAvg algorithm.

Experimental Results

The researchers evaluated DFedDGM against several state-of-the-art baselines, including FedCIL, TARGET, and MFCL, using benchmarks such as CIFAR-100 and Tiny-ImageNet. The data was distributed across 10 clients using a Dirichlet distribution ($\beta=0.5$) to simulate a challenging non-IID environment.

Accuracy comparison across sequential tasks on CIFAR-10 and Tiny-ImageNet datasets.

As shown in the performance curves, DFedDGM consistently maintains higher accuracy as more tasks are added. On the Tiny-ImageNet dataset, DFedDGM achieved an average accuracy of 33.55%, outperforming the next best method (MFCL) by over 4%. Furthermore, the "forgetting rate" on CIFAR-100 was significantly reduced to 27.64%, compared to over 61% for standard Federated Averaging, demonstrating the effectiveness of diffusion-based rehearsal.

Conclusion

DFedDGM represents a significant step forward for Federated Class Incremental Learning. By replacing unstable GANs with diffusion models and introducing rigorous sample filtering and feature regularization, the framework effectively mitigates catastrophic forgetting in decentralized settings. While diffusion models introduce higher local computational costs, the substantial gains in accuracy and stability provide a compelling path forward for privacy-preserving, lifelong machine learning. Future work will focus on optimizing sampling speeds to make these models more suitable for resource-constrained edge devices.

Summary updated

BibTeX
@misc{wang2024data,
  author = {Naibo Wang and Yuchen Deng and Wenjie Feng and Jianwei Yin and See-Kiong Ng},
  title = {{Data-Free Federated Class Incremental Learning with Diffusion-Based Generative Memory}},
  year = {2024},
  eprint = {2405.17457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17457},
}
Figure