Communication-Efficient On-Device Machine Learning: Federated Distillation and Augmentation under Non-IID Private Data

Eunjeong Jeong, Seungeun Oh, Hyesung Kim, Jihong Park, Mehdi Bennis, Seong-Lyun KimarXiv 2018

TL;DR

This paper introduces two novel frameworks, Federated Distillation (FD) and Federated Augmentation (FAug), to make on-device machine learning both faster and more robust. By exchanging model outputs (logits) instead of massive weight matrices and using GANs to fix "lopsided" local datasets, the authors achieve a 26x reduction in communication overhead while maintaining high accuracy on non-IID data.

What Problem Does This Paper Address?

Standard Federated Learning (FL) has two major bottlenecks when deployed on mobile devices:

  1. Communication Overhead: In FL, devices must exchange their entire model's parameters. As models get larger (think deep CNNs or Transformers), the cost of sending these weights over wireless links becomes prohibitive.
  2. Non-IID Data: Real-world user data is rarely "Independent and Identically Distributed" (IID). One user might only have photos of cats, while another has only dogs. This data heterogeneity significantly degrades the accuracy of a global model compared to training on a balanced, centralized dataset.

The authors aim to decouple communication costs from model size and provide a way for devices to "fill in the gaps" of their local data without compromising privacy.

Methods

The authors propose a two-part solution:

1. Federated Distillation (FD)

Instead of sharing model weights, FD shares logit vectors (the normalized outputs of the model's final layer).

  • Local Phase: Each device calculates its average logit vector for each label (e.g., "what does my model think a '3' looks like on average?").
  • Global Phase: A server aggregates these local averages into a global average logit vector per label.
  • Distillation: Devices download these global averages and use them as a "teacher" in a knowledge distillation loss function. This allows the student model to learn from the collective knowledge of other devices without ever seeing their specific weights.

2. Federated Augmentation (FAug)

To solve the non-IID problem, FAug uses a Generative Adversarial Network (GAN) to balance local datasets.

  • Devices identify "target labels" (classes where they lack data).
  • They upload a few "seed" samples of these target labels to a server.
  • The server uses these seeds (and potentially external data like Google Image Search) to train a Conditional GAN.
  • Devices download the trained GAN generator and use it to locally synthesize the missing data, effectively turning their non-IID dataset into a balanced IID one.

Datasets

The researchers evaluated their approach using the MNIST handwritten digit dataset.

  • To simulate a non-IID environment, they allocated 2,000 samples per device but intentionally removed 97.5% of the samples for specific "target labels," leaving only 5 samples for those classes.
  • The models used were 5-layer Convolutional Neural Networks (CNNs).

Key Insights and Ideas

  • Payload Independence: The most striking insight is that in FD, the communication cost depends on the number of labels, not the number of model parameters. This makes it incredibly scalable for massive models where the output dimension remains small.
  • GANs as Data Equalizers: Rather than moving massive amounts of raw data to fix imbalances, FAug moves a generative model. This acts as a compressed representation of the global data distribution that can be unpacked locally.
  • The Privacy-Communication Trade-off: The paper introduces the concept of "Redundant Labels" to protect privacy. If a device only asks for "cat" images, the server knows the device lacks cats. By asking for "redundant" labels (labels the device already has), the device masks its true data deficiency at the cost of more communication.

Key Results

  • Efficiency: FD with FAug resulted in approximately 26x less communication overhead compared to traditional FL.
  • Accuracy: Despite the massive reduction in data transfer, FD + FAug achieved 95-98% of the test accuracy of standard FL.
  • Robustness: On non-IID data, FD alone struggled (77-90% accuracy), but adding FAug boosted performance by 7-22%, proving that local data augmentation is a viable path for handling heterogeneous edge data.
  • Privacy: The authors quantified "Privacy Leakage" (PL) and demonstrated that as the number of devices in the network increases, the ability for any single device to infer another's private data distribution decreases significantly.

Limitations and Future Work

  • Static Averaging: The current FD implementation uses a simple average for logits. The authors suggest that a weighted average—giving more weight to models as they become more mature during training—could further improve accuracy.
  • Asymmetric Links: The authors propose a hybrid approach for future work: using FD for the uplink (device to server) and FL for the downlink (server to device), taking advantage of the fact that download speeds are typically much faster than upload speeds in wireless networks.
  • Privacy Amelioration: While FAug helps, the "seed" samples still pose a privacy risk. The authors suggest integrating Differential Privacy (adding noise to the seeds) as a necessary next step for deployment in sensitive environments.

Summary updated

BibTeX
@misc{jeong2018communication,
  author = {Eunjeong Jeong and Seungeun Oh and Hyesung Kim and Jihong Park and Mehdi Bennis and Seong-Lyun Kim},
  title = {{Communication-Efficient On-Device Machine Learning: Federated Distillation and Augmentation under Non-IID Private Data}},
  year = {2018},
  eprint = {1811.11479},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.11479},
}
Figure