Heterogeneity-aware Distillation for Federated Continual Learning

Gaozhuo Liu, Xiuying Wang, Yulong Li, Chuang Zhao, Yankai Jiang, Imran Razzak, Yichen LiNeurIPS 2026

TL;DR

Training AI across distributed devices while data constantly evolves is like trying to conduct an orchestra where every musician plays a different instrument and the sheet music changes every five minutes. Most Federated Continual Learning (FCL) methods throw a single, catch-all fix at this chaos. This paper introduces Ha-FCL, a framework that cleanly separates who is learning (spatial differences in device models and data) from when they are learning (temporal shifts across tasks), using targeted server-side distillation to significantly boost accuracy and curb forgetting.

What Problem Does This Paper Address?

Federated Learning (FL) lets edge devices—like phones, hospitals, or autonomous vehicles—collaboratively train a shared model without giving up raw private data. Classic FL assumes the world stands still. In reality, new tasks and data classes arrive sequentially, causing catastrophic forgetting: learning new tricks erases old ones.

Combining FL with Continual Learning gives us Federated Continual Learning (FCL). Here, the authors point out a blind spot in prior work: researchers usually treat "heterogeneity" as one big blob. In reality, FCL suffers from two distinct, entangled headaches:

  1. Spatial (Static) Heterogeneity: Devices have different hardware budgets (requiring smaller or wider neural networks) and different local data distributions (non-IID data).
  2. Temporal (Dynamic) Heterogeneity: Data streams shift over time as new tasks arrive, causing decision boundaries to drift.
Figure 1: Conceptual illustration of spatial static and temporal dynamic heterogeneity in FCL. (a) Architectural differences across clients. (b) Prediction drift for the same historical example as tasks progress. Ha-FCL explicitly disentangles these factors through feature alignment for spatial consistency and historical regularization for temporal retention.

Most FCL methods assume all clients share identical model architectures and use a single heuristic to handle everything. If you naively average differently sized models or rely solely on output predictions, intermediate feature representations clash and performance tanks.

Methods

Ha-FCL builds on standard width-scalable federated training (like HeteroFL), where resource-rich clients train wide sub-networks of a global ResNet-18 and tiny devices train narrow slices (down to $1/16\times$ width).

What’s new is how the server consolidates knowledge. Rather than touching private data, the server maintains a tiny public anchor buffer (500 non-private reference images). Clients send back their intermediate features and output predictions ("logits") on these anchors. The server then runs three specialized distillation modules:

  • Multi-Layer Feature Distillation (MFD) for Space: Because a $1/16\times$ narrow model and a full-width model "think" in different dimensions, MFD groups clients by width, computes sample-weighted feature centroids, and uses learnable projectors to align both mid-level (structural) and final-layer (semantic) representations on the server.
  • Historical-Logit Regularization (HLR) for Time: To stop temporal drift without replaying private user data, the server caches the global model's past soft predictions on the public anchors. As new tasks arrive, KL-divergence regularization forces the model not to contradict its past functional behavior on old classes.
  • Representation Co-Distillation (RCD) as the Referee: Optimizing features (MFD) and outputs (HLR) separately can pull the model in conflicting directions. RCD projects both features and current-round logits into a unified embedding space so they reinforce each other. Cleverly, it uses a sigmoid warm-up schedule—staying quiet early in a new task so the model remains plastic, then ramping up alignment as training stabilizes.

Datasets

No new datasets are introduced; the authors evaluate on three standard vision benchmarks adapted for class-incremental FCL:

  • CIFAR-10 (split into 5 sequential tasks, 2 classes each)
  • CIFAR-100 (10 tasks, 10 classes each)
  • Tiny-ImageNet (20 tasks, 10 classes each)

Data is partitioned across 20 clients using Dirichlet distributions ($\alpha \in \{1, 5, 10\}$) to simulate severe-to-mild non-IID skew, paired with two hardware setups: Fully Mixed (5 different model widths) and Extreme (clients split strictly between full $1\times$ width and tiny $1/16\times$ width).

Key Insights and Ideas

  • Divide and conquer beats one-size-fits-all: Ablation studies show that slapping standard knowledge distillation and historical regularization onto HeteroFL gets you 17.58% on CIFAR-100—but Ha-FCL's coordinated three-part design jumps to 20.85%.
  • Extreme hardware gaps don't break it: Counterintuitively, Ha-FCL often performs better in the polarized "Extreme" width setup ($1\times$ and $1/16\times$ only) than in the evenly mixed setup, showing that MFD effectively bridges massive capacity gaps between rich and tiny clients.
  • Timing matters in continual learning: Letting the model adapt freely at the start of a task before tightening representation alignment via the warm-up schedule beats both weak and overly aggressive constant supervision.

Key Results

Across 7 baselines (including HeteroFL, Re-Fed, AF-FCL, and FedWeIT), Ha-FCL wins across the board:

  • CIFAR-10: Under severe data skew ($\alpha=1$) and mixed model widths, Ha-FCL hits 47.21% Top-1 accuracy—beating AF-FCL by 12.62 percentage points (pp) and HeteroFL by 16.30pp. It peaks at 50.98% under $\alpha=5$.
  • CIFAR-100: Reaches 24.12% in the extreme width setting ($\alpha=1$), outperforming the strongest baseline (Re-Fed) by 6.58pp, while simultaneously lowering forgetting (0.2702 vs. 0.3219).
  • Tiny-ImageNet: Achieves 8.01% (mixed, $\alpha=1$) and up to 9.60% (polarized, $\alpha=10$), steadily outpacing baselines that hover between 2% and 8%.

Limitations and Future Work

  • Public Data Assumption: Ha-FCL relies on a shared 500-sample public buffer matching observed task classes—something that may be tricky to source in sensitive domains like medicine.
  • Communication & Privacy Overhead: While it doesn't add extra communication rounds, clients must upload feature and logit responses on public anchors. Though computed on public inputs, formal privacy guarantees (like differential privacy) would require extra safeguards.
  • Architecture Scope: Experiments focus on width-scaled ResNet-18 sub-networks rather than fundamentally different model families (e.g., mixing CNNs and Vision Transformers). Future work aims to tackle broader architectures, adaptive buffer construction, and theoretical convergence proofs.

Summary updated

Abstract

Federated Continual Learning (FCL) requires distributed clients to acquire new tasks while retaining previously learned knowledge. In this paper, we revisit the heterogeneity challenge in FCL, which is composed of two distinct aspects: spatial static heterogeneity, e.g., initial data distribution and model architecture differences, and temporal dynamic heterogeneity, e.g., task shifts over time. While existing methods acknowledge the presence of heterogeneity, they typically treat it in a unified manner by employing a single adaptive strategy without explicitly disentangling their impacts. In contrast, we propose a heterogeneity-aware distillation framework for FCL called Ha-FCL, which is designed to handle spatial and temporal heterogeneity through tailored distillation strategies. Specifically, Ha-FCL combines width-aware federated training with server-side public-anchor distillation, integrating multi-layer feature distillation for architecture-aware alignment with historical-logit regularization and representation co-distillation. This forms a coordinated dual-dimensional distillation scheme that balances adaptation to new tasks with retention of prior knowledge. This enables more targeted knowledge transfer and leads to improved model performance under complex FCL scenarios. We evaluate our method in various heterogeneous settings. Compared with state-of-the-art baselines, Ha-FCL consistently improves test accuracy and shows better robustness under challenging heterogeneous FCL settings.
BibTeX
@inproceedings{liu2026heterogeneity,
  author = {Gaozhuo Liu and Xiuying Wang and Yulong Li and Chuang Zhao and Yankai Jiang and Imran Razzak and Yichen Li},
  title = {{Heterogeneity-aware Distillation for Federated Continual Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=6F5SkPuDh3},
}
Figure