Spectral Co-Distillation for Personalized Federated Learning

Zihan Chen, Howard Hao Yang, Tony Quek, Kai Fong Ernest ChongNeurIPS 2023

Spectral Co-Distillation for Personalized Federated Learning

Federated Learning (FL) enables multiple clients to collaboratively train a machine learning model without sharing their raw, private data. However, a persistent hurdle in FL is data heterogeneity. Because different clients possess vastly different data distributions, a single "one-size-fits-all" global model often performs poorly across the board.

Personalized Federated Learning (PFL) addresses this by training both a generic global model and unique personalized models tailored to each client. While effective, current PFL methods typically rely on simple weight similarity or arbitrary architectural splits between "shared" and "private" components, lacking a strong theoretical foundation for what knowledge should be shared.

To bridge this gap, researchers introduce Spectral Co-Distillation, a novel PFL framework that leverages the Fourier spectrum of model weights to capture similarities between global and local models. Combined with a new "wait-free" training protocol, this approach achieves state-of-the-art accuracy and significantly reduces training time.

Methodology

The authors ground their approach in Spectral Bias theory, which observes that deep neural networks naturally learn low-frequency, low-level features before acquiring high-frequency, high-level ones. By viewing model weights through the lens of Fourier analysis, the framework mathematically distinguishes between "generic" features (low frequency) and "specialized" features (high frequency).

1. Spectral Co-Distillation

Instead of comparing raw weights, the framework applies a Discrete Fourier Transform (DFT) to the model weights to analyze their spectrum. This enables a bi-directional "bridge" between the global and local models:

  • Generic Model (GM) Update: The global model distills knowledge specifically from the low-frequency components of the personalized models. Because low-level features are generally shared across tasks, this helps the global model generalize better without overfitting to any single client's quirks.
  • Personalized Model (PM) Update: Local models distill knowledge from the full spectrum of the global model. This allows local models to benefit from the "averaged" high-level features learned collaboratively across the entire federation.
Spectral co-distillation framework architecture

Unlike standard Knowledge Distillation, which is typically a one-way transfer from teacher to student, this co-distillation approach allows the global and local models to mutually improve each other simultaneously.

2. Wait-Free Local Training Protocol

Standard FL operates on a "compute-and-wait" basis: clients finish local training, send their updates to the server, and then sit idle while the server aggregates and broadcasts the new global model. Recognizing that communication is often the primary bottleneck in FL, the authors propose a "wait-free" protocol.

In this updated protocol, clients train their personalized models during the communication idle time. By overlapping PM training with the GM communication phase, the system turns wasted idle time into productive computation, significantly reducing the total runtime.

Comparison of compute-and-wait vs. wait-free protocols

Key Results

The researchers evaluated their framework on three major benchmarks—CIFAR-10, CIFAR-100, and iNaturalist-2017—under varying degrees of data heterogeneity (controlled by a concentration parameter $\alpha$). The proposed method consistently outperformed state-of-the-art baselines like Ditto, pFedMe, and FedRoD.

  • Accuracy Gains: On the complex CIFAR-100 dataset with high heterogeneity ($\alpha=0.1$), the proposed method achieved a personalized model accuracy of 46.82%, significantly outperforming standard FedAvg (39.27%) and other PFL competitors.
  • Efficiency and Speedup: The wait-free protocol provided substantial efficiency gains. The method reached target accuracy levels 1.38x to 2.87x faster than standard "compute-and-wait" implementations.
  • Adaptability: The system demonstrated a "fast adaptive capability," proving it could quickly generate high-quality personalized models for new clients joining the federation after the initial training phase.

Limitations and Future Directions

While highly effective, the current formulation assumes a synchronized network connection, which may not be realistic for mobile or edge computing scenarios where connectivity is intermittent. Furthermore, it does not explicitly account for "stragglers" (extremely slow clients) or adversarial attacks from malicious clients attempting to poison the model.

Future work will likely focus on extending this spectral approach to asynchronous local training protocols, making the framework even more robust to extreme network heterogeneity and real-world edge environments.

Summary updated

BibTeX
@inproceedings{chen2023spectral,
  author = {Zihan Chen and Howard Hao Yang and Tony Quek and Kai Fong Ernest Chong},
  title = {{Spectral Co-Distillation for Personalized Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=RqjQL08UFc},
}
Figure