Abstract
Continual Federated Learning (CFL) faces the simultaneous challenges of catastrophic forgetting and data heterogeneity across distributed clients. We present HePCo (Heterogeneous Prompt Consolidation), a framework that utilizes parameter-efficient Vision Transformer (ViT) prompting and a data-free latent space distillation scheme. HePCo allows a global model to incrementally learn new concepts without accessing raw client data. Our approach outperforms existing state-of-the-art methods by up to 7% in accuracy while reducing communication costs by over 90%, all while maintaining zero additional computational overhead for clients.
1. Introduction
The deployment of machine learning in distributed environments, such as mobile networks or healthcare systems, requires models to learn continuously from a stream of data across multiple nodes. This scenario, known as Continual Federated Learning (CFL), is plagued by two primary issues: catastrophic forgetting, where the model loses previously acquired knowledge when learning new tasks, and data heterogeneity (non-IID data), where divergent local data distributions prevent effective model aggregation.
HePCo addresses these hurdles by shifting the focus from full model weight updates to lightweight "prompts" and utilizing a server-side distillation process that operates entirely in the latent space, preserving privacy and efficiency.
2. Methodology
HePCo introduces three core innovations to streamline the CFL process:
2.1 Decomposed Prompting
Rather than fine-tuning the entire backbone of a massive Vision Transformer (ViT), HePCo keeps the ViT weights frozen. Clients learn a small set of "prompts"—learnable vectors that guide the model's attention for specific tasks. HePCo employs a weighted sum of these prompts, offering the flexibility needed to handle diverse, heterogeneous data streams more effectively than single-prompt selection methods.
2.2 Latent Generation and Distillation
To consolidate knowledge without raw data, the server trains a lightweight generator to produce pseudo-latents (abstract embeddings) rather than high-resolution images. This approach is significantly faster and more memory-efficient than image-level generation.
The server uses these pseudo-latents to fine-tune the global model via knowledge distillation. A "disagreement loss" is implemented to ensure the generator produces challenging examples that highlight differences between client models. This forces the global model to capture the nuances of local distributions while replaying knowledge from previous tasks to mitigate forgetting.
3. Experimental Evaluation
The framework was evaluated on three benchmarks: CIFAR-100, ImageNet-R (artistic renditions), and DomainNet (multi-domain sketches, photos, etc.). Experiments simulated long-term learning through 5-task and 10-task sequences.
3.1 Key Results
- Accuracy: HePCo achieved an absolute improvement of over 7% in average accuracy on ImageNet-R compared to baselines like TARGET and CFed.
- Communication Efficiency: By transmitting only prompts and classifier heads (approx. 9.5% of total parameters), communication costs were reduced from ~330MB to 31.37MB per round—a 90% saving.
- Client-Side Efficiency: The heavy lifting of generation and distillation is moved entirely to the server, resulting in zero additional computational overhead for the clients.
- Heterogeneity Robustness: HePCo's performance advantage became more pronounced as data heterogeneity between clients increased.
4. Conclusion
HePCo represents a significant advancement in privacy-preserving, communication-efficient Continual Federated Learning. By isolating task-specific knowledge through prompting and consolidating it via latent space distillation, it bypasses the need for data sharing or complex image generation. Future work will explore the explainability of learned prompts and the adaptation of this framework to non-Transformer architectures.
Code: https://github.com/shaunak27/hepco-fed
Summary updated