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

Continual Adaptation of Vision Transformers for Federated Learning

Shaunak Halbe, James Seale Smith, Junjiao Tian, Zsolt Kira

Abstract

In this paper, we focus on the important yet understudied problem of Continual Federated Learning (CFL), where a server communicates with a set of clients to incrementally learn new concepts over time without sharing or storing any data. The complexity of this problem is compounded by challenges from both the Continual and Federated Learning perspectives. Specifically, models trained in a CFL setup suffer from catastrophic forgetting which is exacerbated by data heterogeneity across clients. Existing attempts at this problem tend to impose large overheads on clients and communication channels or require access to stored data which renders them unsuitable for real-world use due to privacy. In this paper, we attempt to tackle forgetting and heterogeneity while minimizing overhead costs and without requiring access to any stored data. We study this problem in the context of Vision Transformers and explore parameter-efficient approaches to adapt to dynamic distributions while minimizing forgetting. We achieve this by leveraging a prompting based approach (such that only prompts and classifier heads have to be communicated) and proposing a novel and lightweight generation and distillation scheme to consolidate client models at the server. We formulate this problem for image classification and establish strong baselines for comparison, conduct experiments on CIFAR-100 as well as challenging, large-scale datasets like ImageNet-R and DomainNet. Our approach outperforms both existing methods and our own baselines by as much as 7% while significantly reducing communication and client-level computation costs.

Introduction: The Challenge of Continual Federated Learning

Most Federated Learning (FL) assumes a static world where the categories to be learned are fixed. In reality, data is dynamic; a fleet of autonomous cars or a network of medical imaging devices will encounter new objects or diseases over time. This necessitates Continual Federated Learning (CFL), which faces three primary challenges: catastrophic forgetting, data heterogeneity across clients, and the need for extreme efficiency and privacy.

Existing CFL solutions often require sharing full model weights or generative models that can leak private data. To address these, researchers at Georgia Tech have introduced HePCo (Heterogeneous Prompt Consolidation), a framework designed to adapt Vision Transformers (ViTs) to new data streams while keeping communication lean and privacy tight.

Overview of the HePCo framework showing client-server interaction and local learning streams.

Methodology: Decomposed Prompting and Latent Distillation

HePCo utilizes a two-pronged strategy to manage the complexities of CFL.

1. Decomposed Prompting

Instead of fine-tuning a massive Vision Transformer backbone, HePCo keeps the backbone frozen. It trains a small set of learnable "prompts"—vectors injected into the transformer layers that instruct the model on how to handle specific tasks. This allows clients to send only a tiny fraction (~9.5%) of the total model parameters to the server.

The query-based mechanism used to select relevant prompts from the pool.

2. Latent-Space Distillation

The core innovation is how the server aggregates these prompts without access to raw data:

  • Pseudo-Latent Generation: The server trains a lightweight generator to produce "fake" features (latents) in the feature space, rather than actual images. This is faster and more private.
  • Disagreement Maximization: The generator is trained to find "hard" samples where the global model and client models disagree, focusing the update on areas of high uncertainty.
  • Distillation: The server uses these pseudo-features to fine-tune global prompts and classifier heads, acting as a student learning from the client "teachers."

Experimental Evaluation

The researchers evaluated HePCo on several large-scale benchmarks to simulate real-world distribution shifts:

  • CIFAR-100: A standard image classification baseline.
  • ImageNet-R: Contains cartoons, art, and sketches to test generalization.
  • DomainNet: A massive dataset spanning multiple domains like clipart and real images.

Key Results and Impact

HePCo demonstrates significant improvements over existing state-of-the-art methods:

  • Superior Accuracy: It outperformed the TARGET baseline by over 7% on ImageNet-R.
  • Efficiency Gains: While competing methods required transferring over 700 MB per round, HePCo required only 31.37 MB.
  • Robustness: The method maintained high performance in "long-tail" scenarios where data is highly imbalanced across clients.
  • Client-Side Efficiency: By moving the distillation and generation process to the server, HePCo requires zero extra computation from the edge devices.

Conclusion

HePCo represents a significant step forward in making Continual Federated Learning practical for real-world edge devices. While it currently relies on pre-trained Vision Transformer backbones, its ability to consolidate knowledge in the latent space provides a robust template for privacy-preserving, efficient model adaptation. The code is available at https://github.com/shaunak27/hepco-fed.

Summary updated

BibTeX
@article{halbe2024continual,
  author = {Shaunak Halbe and James Seale Smith and Junjiao Tian and Zsolt Kira},
  title = {{Continual Adaptation of Vision Transformers for Federated Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=vsZ5A3Zxyr},
}
Figure