Introduction
Federated Class Continual Learning (FCCL) represents a significant frontier in machine learning, merging the decentralized nature of Federated Learning (FL) with the sequential learning requirements of Continual Learning (CL). The primary obstacle in this domain is "catastrophic forgetting," where a model loses previously acquired knowledge as it learns new classes. While "experience replay"—the storage of past data—is a standard solution in centralized CL, it is often prohibited in federated settings due to strict privacy regulations. Previous attempts to circumvent this using Generative Adversarial Networks (GANs) have struggled with training instability and poor image quality, often producing blurry or abstract results that fail to effectively train the model.
The DDDR Framework
Diffusion-Driven Data Replay (DDDR) introduces a paradigm shift by leveraging the power of pre-trained Latent Diffusion Models (LDMs). Instead of training a generative model from scratch across distributed clients, DDDR utilizes the rich, pre-existing knowledge within a frozen LDM to synthesize high-quality data for old tasks. This approach transforms a complex generative training problem into a more stable and efficient embedding search problem.
Core Methodology
The DDDR framework is built upon three main pillars:
- Federated Class Inversion: To avoid the computational burden of training or fine-tuning full diffusion models, DDDR performs "reverse engineering" to identify compact class embeddings. These small vectors (approximately 128K parameters) are optimized to produce images of specific classes when fed into the frozen LDM. Clients collaborate to optimize these embeddings via Federated Averaging (FedAvg).
- Replay-Augmented Training: Once these embeddings are established, clients use them to generate synthetic images of old classes. Interestingly, the framework also generates synthetic images of current classes. This helps mitigate "non-IID" issues, where different clients have very different data distributions, by ensuring every client has access to a balanced dataset during training.
- Contrastive Learning Constraint: Recognizing that synthetic images are not perfect replicas of real-world data, the authors implement a supervised contrastive loss. This constraint forces the model to map both real and generated images of the same class to similar feature spaces, effectively bridging the "domain gap" and ensuring the model generalizes well to real data.
Experimental Results
DDDR was evaluated on standard computer vision benchmarks, including CIFAR-100 and Tiny-ImageNet, as well as specialized datasets like Stanford Dogs and medical imagery (LiTS and MSD).
- Accuracy: On a 5-task split of CIFAR-100, DDDR achieved an average accuracy of 51.04%, significantly outperforming the previous state-of-the-art (SOTA) method, MFCL (42.67%), and nearly tripling the performance of simple fine-tuning (17.33%).
- Forgetting: The framework demonstrated superior retention of old knowledge. On Tiny-ImageNet, DDDR's forgetting measure was 0.36, compared to 0.52 for MFCL.
- Visual Quality: Qualitative results indicated that DDDR produces recognizable, high-fidelity images that maintain semantic clarity, whereas previous GAN-based methods often produced adversarial-looking noise.
Privacy and Efficiency
Beyond performance, DDDR offers significant advantages in privacy and resource management. Transmitting class embeddings is inherently safer than sharing raw data or model gradients, as the embeddings are resistant to gradient inversion attacks. Furthermore, optimizing and communicating these small embeddings requires significantly less bandwidth and computational power than training a full generative model across a federated network.
Limitations and Future Directions
Despite its success, the authors note a slight "style gap" where generated images may favor certain environmental distributions (e.g., daytime vs. nighttime) present in the LDM's pre-training data. Additionally, the method's effectiveness is tied to the quality of the pre-trained LDM, which may struggle with extremely niche domains. Future work will focus on reducing the computational overhead of the diffusion sampling process to further optimize the framework for edge devices.
Summary updated