Federated Knowledge Distillation

Hyowoon Seo, Jihong Park, Seungeun Oh, Mehdi Bennis, Seong-Lyun KimarXiv 2020

TL;DR

Federated Knowledge Distillation (FD) drastically reduces the communication overhead of distributed learning by exchanging compact model outputs (logits) instead of massive model parameters. By leveraging the theory of Neural Tangent Kernels (NTK) and innovative data augmentation like Mixup, FD achieves up to a 40,000x reduction in total communication costs compared to traditional Federated Learning, making it a powerful tool for resource-constrained edge devices.

What Problem Does This Paper Address?

Standard Federated Learning (FL) has a "communication wall." In FL, edge devices (phones, cars, sensors) train local models and send their entire set of model parameters (weights or gradients) to a central server. While this preserves privacy by not sharing raw data, modern deep neural networks are enormous. For example, a MobileBERT model has 25 million parameters, requiring a 96 MB payload per communication round. Over limited wireless bandwidth, this is often prohibitively slow and energy-intensive.

The authors address this by exploring Federated Distillation (FD). Instead of sending millions of weights, workers only share their "logits"—the final output probability distributions for each class. For a 10-class problem like MNIST, this reduces the exchange to just 10 numbers per label, regardless of how deep or complex the underlying model is.

Methods

The paper provides a comprehensive look at FD, moving from theoretical foundations to practical applications:

  1. Theoretical Analysis (NTK): The authors use Neural Tangent Kernel (NTK) theory to analyze the convergence of Knowledge Distillation (KD) and Co-Distillation (CD). This allows them to mathematically prove how student models converge to ground-truth labels when guided by teacher ensembles.
  2. Federated Distillation (FD): To avoid the need for workers to share the exact same data samples (a requirement in standard CD), FD groups local logits by their ground-truth labels. Workers upload these label-wise averages to a server, which aggregates them into global average logits.
  3. Mix2FLD: A novel baseline for asymmetric wireless channels. Since downlink (server-to-device) bandwidth is usually higher than uplink, Mix2FLD uses FL for the downlink (sending full weights) and FD for the uplink (sending logits). It incorporates Mixup and Inverse-Mixup to augment data and protect privacy during the "seed sample" collection phase.
  4. Federated Reinforcement Distillation (FRD): The authors extend FD to Reinforcement Learning by using "proxy states" to cluster and average policies, allowing multiple agents to learn collaboratively without sharing raw experience trajectories.
A schematic illustration of federated distillation (FD) with 3 devices and 2 labels in a classification task.

Datasets

The paper evaluates its methods using standard computer vision benchmarks and a reinforcement learning environment:

  • MNIST: Hand-written digits (0-9).
  • FMNIST (Fashion-MNIST): Clothing items.
  • CIFAR-10 & CIFAR-100: Complex natural images across 10 and 100 classes.
  • CartPole-v1: A classic reinforcement learning task from the OpenAI Gym.

Key Insights and Ideas

  • Logits are Information-Rich: Unlike one-hot labels (e.g., "this is a cat"), logits provide a distribution (e.g., "this is 80% cat, 15% dog, 5% car"). This "dark knowledge" helps student models learn much faster with fewer samples.
  • The Power of Ensembles: In Co-Distillation, an ensemble of multiple student models acts as a "virtual teacher." The authors show that this ensemble is often more accurate than any individual model, allowing the system to reach zero prediction error even without a pre-trained teacher.
  • Scalability via Workers: A surprising theoretical finding is that having more workers actually accelerates convergence in CD. In the limit (as the number of workers approaches infinity), one-shot convergence becomes feasible.
  • Privacy through Mixing: By using Mixup (linearly combining two samples), devices can share "seed samples" with the server that are mathematically obscured, providing a layer of differential privacy while still allowing the server to perform effective distillation.
A schematic illustration of co-distillation (CD) among 3 student models without any pre-trained teacher model.

Key Results

  • Communication Efficiency: FD reduces the communication payload size per round by approximately 10,000x compared to FL.
  • Total Cost Reduction: When accounting for both faster convergence and smaller payloads, FD can reduce total communication costs by over 40,000x.
  • Convergence Speed: In MNIST tests, FD achieved 4.3x faster convergence than standard FL.
  • CD Performance: Theoretical and numerical results confirm that CD loss converges to zero as the number of communication rounds increases, with higher worker counts (C=100) leading to near-instant convergence.
Learning curves of CD with C ∈ {2, 5, 100} workers, capturing the loss converging to 0 as the number r of communication rounds increases.

Limitations and Future Work

  • The Non-IID Gap: FD's main weakness is performance on "Non-IID" data (where different workers have very different data distributions). If a worker lacks samples for a specific class, it struggles to incorporate global knowledge for that class, leading to an accuracy drop of up to 10% compared to FL.
  • Computational Complexity: Advanced methods like Mix2up require matrix inversions, which may become a bottleneck as the number of mixed samples grows.
  • Future Directions: The authors suggest exploring FD for unsupervised and self-supervised learning, as well as optimizing for time-varying network topologies where devices frequently connect and disconnect.

Summary updated

BibTeX
@misc{seo2020federated,
  author = {Hyowoon Seo and Jihong Park and Seungeun Oh and Mehdi Bennis and Seong-Lyun Kim},
  title = {{Federated Knowledge Distillation}},
  year = {2020},
  eprint = {2011.02367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.02367},
}
Figure