One-Shot Federated Learning.

Neel Guha, Ameet Talwalkar, Virginia Smith

TL;DR

Researchers at Carnegie Mellon University have proposed a "one-shot" approach to federated learning that requires only a single round of communication between devices and a central server. By treating local models as an ensemble and using knowledge distillation, they achieved a 51.5% boost in performance over local baselines, reaching 90.1% of the performance of an "ideal" (but impossible) centralized model.

What Problem Does This Paper Address?

Federated Learning (FL) is the practice of training machine learning models across a vast network of decentralized devices (like smartphones or IoT sensors) without ever moving their raw data to a central server. This protects privacy, but it introduces a massive technical hurdle: communication bandwidth.

Current state-of-the-art FL methods (like Federated Averaging) are iterative. The server sends a model to devices, devices compute small updates, send them back, and the process repeats hundreds or thousands of times. In the real world, where mobile connections are flaky and battery life is precious, this constant back-and-forth is a dealbreaker.

While "one-shot" schemes exist—where you just average the parameters of local models once—they typically fail when data is "non-IID" (meaning every user’s data looks different) or when the number of devices is much larger than the amount of data per device. This paper tackles how to make one-shot learning actually work in these messy, real-world conditions.

Methods

The authors shift the strategy from averaging model weights to aggregating model predictions. Their approach involves three main components:

  1. Local Training to Completion: Unlike standard FL, where devices only do a little bit of work before reporting back, here each device trains its local model (specifically kernelized SVMs in this study) until it is fully optimized.
  2. Ensemble Selection: Sending thousands of models to a server is inefficient. The authors proposed three ways to pick the best $k$ models to form an ensemble:
  3. Cross-Validation (CV) Selection: Only devices that perform well on their own local validation data send their models.
  4. Data Selection: Only devices with the most training data contribute.
  5. Random Selection: A simple baseline where $k$ devices are chosen at random.
  6. Knowledge Distillation (Semi-Supervised): If the server has access to a small amount of unlabeled "proxy" data, it can use the ensemble (the "teacher") to train a single, compact "student" model. This "distilled" model is much smaller and easier to send back to devices for inference.

Datasets

The methods were evaluated on three real-world federated datasets:

  • EMNIST: Handwritten characters from over 3,400 individuals. The task is to distinguish between uppercase and lowercase letters.
  • Sentiment140: A collection of tweets from 4,000 users. The task is binary sentiment detection (positive vs. negative).
  • Gleam: Sensor data from Google Glass worn by 38 users. The task is to identify physical activities like eating, talking, or walking.

Key Insights and Ideas

  • Ensembles > Averaging: The "aha moment" here is that while you can't easily average the internal parameters of complex models (like SVMs with different support vectors), you can easily average their outputs. Ensembling captures global information that simple parameter averaging misses.
  • Quality Over Quantity: The results showed that a "Full Ensemble" (using every device) isn't always best. Selecting a subset of high-performing or data-rich devices often yielded better results, especially on the Gleam dataset.
  • Distillation as a Privacy Shield: Beyond compression, distillation acts as a privacy layer. By training a student model on proxy data using the ensemble's predictions, the server avoids sending the original local models (which might contain sensitive support vectors) back out to other devices.

Key Results

  • Performance Boost: The proposed one-shot ensemble methods achieved an average 51.5% relative gain in ROC-AUC compared to models trained only on local device data.
  • Closing the Gap: The one-shot approach reached 90.1% of the performance of an "Unachievable Ideal"—a theoretical model trained on all data pooled into one central location (which is impossible in FL due to privacy).
  • Efficiency of Distillation: The distilled student models were able to match the performance of the massive ensembles using only a relatively small number of unlabeled proxy samples.

Limitations and Future Work

The authors identify several areas for further exploration:

  • Convex vs. Non-Convex: This study focused primarily on convex models (SVMs). The authors note that extending these one-shot ensemble and distillation techniques to deep neural networks (non-convex) is a critical next step.
  • Device "Cohorts": Rather than one global model, the authors suggest identifying groups of similar devices (e.g., users in the same geographic region) to create personalized ensembles.
  • Few-Shot Learning: While one-shot is the goal, the authors acknowledge that moving to "few-shot" (2-5 rounds of communication) might provide a sweet spot between communication efficiency and model accuracy.
  • Privacy Proofs: While distillation helps with privacy, formal guarantees (like Differential Privacy) need to be rigorously integrated into the framework.

Summary updated

BibTeX
@misc{guha2019one,
  author = {Neel Guha and Ameet Talwalkar and Virginia Smith},
  title = {{One-Shot Federated Learning.}},
  year = {2019},
  eprint = {1902.11175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.11175},
}
Figure