TL;DR
Continual Federated Learning (CFL) requires distributed edge devices to learn a sequence of new tasks over time without storing or sharing raw user data. HePCo (Heterogeneous Prompt Consolidation) solves this by freezing a shared Vision Transformer (ViT) and communicating only lightweight prompts, while using a novel server-side, data-free generator to distill knowledge in the latent space. This eliminates client storage overheads, cuts communication to ~9.5% of full-model transfer, and outperforms existing methods by over 7% on challenging vision benchmarks.
What Problem Does This Paper Address?
Federated Learning (FL) typically assumes a static set of categories, while Continual Learning (CL) tackles how models incrementally absorb new tasks without catastrophically forgetting old ones. Continual Federated Learning (CFL) merges both: a central server collaborates with distributed, stateless clients to learn sequential tasks over multiple communication rounds without sharing or persisting private data.
In real-world CFL, two major issues compound each other:
- Inter-task forgetting: The model forgets past tasks when learning new ones.
- Intra-task forgetting: Non-IID data distributions (data heterogeneity across clients in dataset size, category coverage, and class balance) cause client models to diverge wildly within the current task.
Existing CFL solutions either require storing replay buffers (violating privacy), sharing complete model weights (incurring massive communication costs), or training image-space generative models (which risk leaking private image data via model inversion attacks).
Methods
HePCo addresses both forgetting and heterogeneity by pairing foundation model prompting with latent-space knowledge distillation:
- Client-Side Decomposed Prompting: Instead of updating the entire network, clients keep a ViT backbone frozen and only train a compact prompt pool (prompt embeddings and key vectors) along with a classification head. Rather than selecting discrete prompts, each client forms a single prompt as a continuous, cosine-similarity-weighted sum over the prompt pool. Clients only transmit prompts, keys, and classifier heads to the server (~9.5% of total backbone parameters).
- Server-Side Latent Generation: A naive average of client prompts degrades severely under heterogeneous data. To repair this, the server trains a lightweight conditional generator (a 3-layer MLP) that synthesizes pseudo-latents directly in the ViT's visual query space ($D=768$). Operating in this latent space means the server never has to execute expensive forward passes through the full image encoder.
- Maximizing Disagreement for Hard Pseudo-Latents: To ensure generated latents are useful for distillation, the server optimizes the generator to minimize client classification error while maximizing disagreement against the intermediate server model:
- A Kullback-Leibler (KL) divergence loss measures classifier disagreement.
- A Mean Squared Error (MSE) loss measures disagreement between client prompts and the server prompt.
- Bi-Distribution Knowledge Distillation: To stop both intra-task and inter-task forgetting, the server maintains two generator states: one for current task categories and one for past tasks. Batches from both generators are mixed and used to distill client representations into a unified server model via prompt MSE matching and cross-entropy classification losses.
Clients (Frozen ViT + Learnable Prompts)
│
▼ [Send Prompts & Heads (~9.5% params)]
Server Aggregation (Prompt/Classifier Weight Average)
│
├─► Conditional Latent Generator (Generates in Query Space)
│ └─► Maximizes Disagreement (KL + MSE) between Server & Clients
│
└─► Latent Knowledge Distillation (Mixes Current & Past Task Latents)
Datasets
The authors evaluate HePCo across three standard image classification benchmarks split into class-incremental sequences:
- CIFAR-100: 100 classes evaluated in a 10-task setup.
- ImageNet-R: 200 classes spanning artistic, cartoon, and deviant renditions split into 10 tasks (evaluating distribution shift against ImageNet-1K pre-training).
- DomainNet: 345 classes split into a 5-task benchmark.
Heterogeneity was parameterized via three levers: split ratio ($\gamma = 0.1$, fraction of data seen per client), category ratio ($\kappa = 0.6$, proportion of task classes seen by each client), and imbalance ratio ($\beta$, controlling Dirichlet/long-tail distributions down to extreme skew, $\beta = 0.01$).
Key Insights and Ideas
- Latent space is vastly cheaper and safer than pixel space: Generating synthetic feature latents rather than full images eliminates expensive convolutional/transformer rendering passes, reduces generation complexity, and protects client privacy because intermediate embeddings cannot be inverted back to raw client images.
- Disagreement fuels effective distillation: Training generators purely on client classification loss yields trivial, easily classifiable latents. Actively maximizing disagreement between the server aggregate and local clients forces the generator to produce borderline "hard" latents that resolve client divergence.
- Prompt aggregation beats full fine-tuning: Freezing the backbone avoids catastrophic disruption of general pre-trained representations, while continuously weighted prompt pools offer enough capacity for edge clients without needing full-weight communication.
Key Results
- Class-Balanced Setting ($\beta = 1$):
- On ImageNet-R, HePCo achieves 59.96% average accuracy ($A_N$), outperforming the prior state-of-the-art method TARGET (52.38%) by over 7%, while cutting average forgetting ($F_N$) from 8.88% down to 7.08%.
- On CIFAR-100, HePCo reaches 76.54% $A_N$ (vs. TARGET’s 73.56%).
- On DomainNet, HePCo scores 64.01% $A_N$ (vs. CFed’s 63.32%).
- Extreme Heterogeneity / Imbalance ($\beta = 0.01$):
- Under severe local data imbalance, HePCo maintains 41.68% accuracy on ImageNet-R, more than double TARGET’s 19.84% and CFed’s 25.74%.
- Overhead Reductions:
- Communication & Memory: Reduces exchanged parameter volume by ~90.5% compared to full-model tuning methods.
- Client Compute: Requires 0 extra distillation or replay compute at the edge. The server absorbs the overhead (~220 seconds per round on 2 Titan RTX GPUs, comparable to TARGET's 190s and CFed's 166s).
Limitations and Future Work
- Server Compute Burden: While clients remain lightweight, the server must train GAN-style latent generators and run iterative distillation steps every communication round, which may constrain compute-limited server environments.
- Backbone Dependency: The method explicitly assumes clients have access to a shared, pre-trained Vision Transformer backbone; generalizing this consolidation mechanism across heterogeneous client architectures remains an open problem.
- Prompt Interpretability: Understanding what these learned, aggregated prompt embeddings capture semantically across disparate client distributions remains difficult to evaluate.
Summary updated