Partial model averaging in Federated Learning: Performance guarantees and benefits

Sunwoo Lee, Anit Kumar Sahu, Chaoyang He, Salman Avestimehr

In the world of Federated Learning (FL), the standard operating procedure is "train locally, average occasionally." This approach, epitomized by the FedAvg algorithm, saves communication bandwidth but introduces a sneaky problem: model discrepancy. When local workers train independently for too long, their models drift into wildly different regions of the parameter space. Averaging these "estranged" models can actually hinder the global model's progress.

A recent paper titled "Partial Model Averaging in Federated Learning: Performance Guarantees and Benefits" proposes a clever structural change to how we synchronize models, promising faster convergence and better accuracy without increasing the total data transferred.

TL;DR

Instead of averaging the entire model every few steps, this paper proposes synchronizing a distinct subset of model parameters at every iteration. This "partial model averaging" acts as a constant tether that prevents local models from drifting too far apart, leading to up to a 2.2% boost in accuracy and significantly smoother convergence.

What Problem Does This Paper Address?

Federated Learning often involves hundreds or thousands of workers training on heterogeneous (non-IID) data. The standard approach, Local SGD (or FedAvg), allows workers to perform multiple local updates before synchronizing with a central server.

While this reduces communication frequency, it creates model discrepancy. Because each worker sees different data, their local models "drift" toward different local minima. When you finally average these divergent models, the resulting global model often takes a step that is "distracted" from the true global objective. This issue scales poorly; the more workers you have, the more chaotic the averaging process becomes, slowing down the entire training pipeline.

Methods

The authors introduce a Partial Model Averaging framework. Here is the breakdown of how it differs from the status quo:

  • Standard FedAvg: Workers train for $\tau$ iterations locally, then send their entire model to be averaged.
  • Partial Averaging: The model is partitioned into $\tau$ subsets. At every single iteration, workers synchronize just one of these subsets.

By the end of $\tau$ iterations, the entire model has been averaged exactly once—just like in FedAvg. However, because some part of the model is being "tethered" to the global average at every step, the local models never have the chance to wander too far off-course.

Crucially, the total communication volume remains identical to periodic averaging. The authors also provide rigorous theoretical proofs showing that this method achieves "linear speedup" (meaning training gets twice as fast if you double the workers) for smooth, non-convex optimization problems in both IID and non-IID settings.

Datasets

The researchers put their theory to the test across a wide range of standard benchmarks:

  • Computer Vision: CIFAR-10, CIFAR-100, SVHN, and Fashion-MNIST.
  • Natural Language Processing: IMDB movie reviews (for sentiment analysis using LSTMs).
  • Federated Benchmarks: FEMNIST (Federated Extended MNIST), which is specifically designed to simulate the messy, non-IID nature of real-world federated data.

To simulate different levels of "data messiness," they used Dirichlet distributions to control the degree of heterogeneity across workers.

Key Insights and Ideas

  • The "Tethering" Effect: The most striking insight is visual. In the paper's plots, FedAvg shows massive spikes in model discrepancy just before an averaging step. Partial averaging, by contrast, maintains a low, stable level of discrepancy throughout.
  • Smoother Global Loss: Because the models stay close together, the global loss curve doesn't "spike" as it often does in FedAvg. It moves downward more smoothly, mimicking the behavior of standard Synchronous SGD but with the communication efficiency of local methods.
  • Algorithmic Agnostic: This isn't just a replacement for FedAvg; it’s a framework. It can be integrated into other advanced FL algorithms like FedProx or SCAFFOLD by simply changing how the parameters are aggregated.

Key Results

  • Accuracy Gains: On CIFAR-10 with 128 workers, partial averaging achieved up to 2.2% higher validation accuracy than periodic full averaging within the same iteration budget.
  • Faster Convergence: The models reached high accuracy levels significantly faster, especially in non-IID settings where model drift is usually most destructive.
  • Scalability: The benefits were most pronounced when scaling to a large number of workers (e.g., 128), which is the primary challenge in modern federated systems.

Limitations and Future Work

While the volume of data is the same, the frequency of communication is higher (every step vs. every $\tau$ steps). In high-latency environments—like mobile phones on a spotty 4G connection—the overhead of establishing a connection every iteration could outweigh the statistical benefits. The authors acknowledge this "latency cost" as a practical trade-off.

Future directions suggested by the work include: 1. Smart Partitioning: Exploring whether certain layers (like early convolutional layers vs. late fully connected layers) benefit more from frequent averaging than others. 2. Adaptive Intervals: Combining this with adaptive communication strategies that change the subset size or frequency based on the training progress. 3. Privacy: Investigating if frequent partial updates change the privacy profile of the model compared to infrequent full updates.

Summary updated

BibTeX
@inproceedings{lee2023partial,
  author = {Sunwoo Lee and Anit Kumar Sahu and Chaoyang He and Salman Avestimehr},
  title = {{Partial model averaging in Federated Learning: Performance guarantees and benefits}},
  booktitle = {Neurocomputing},
  year = {2023},
  url = {https://openreview.net/forum?id=J9H6aibUF9},
}
Figure