FedDM: Iterative Distribution Matching for Communication-Efficient Federated Learning

Yuanhao Xiong, Ruochen Wang, Minhao Cheng, Felix Yu, Cho-Jui Hsieh

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving user privacy. However, traditional FL methods like Federated Averaging (FedAvg) struggle with two primary challenges: statistical heterogeneity (non-i.i.d. data) and high communication costs. When data distributions vary significantly across devices, simple weight averaging often fails to converge efficiently, requiring hundreds of communication rounds. Moreover, as model architectures grow, transmitting millions of parameters becomes a significant bottleneck.

FedDM (Federated Learning with Distribution Matching) introduces a novel approach to these problems. Instead of transmitting model weights or gradients, clients communicate small, highly informative synthetic datasets that capture their local data distributions. This strategy not only reduces the communication payload but also provides the central server with a more comprehensive view of the global loss landscape.

The Core Methodology: Iterative Distribution Matching

The fundamental innovation of FedDM lies in its use of Dataset Distillation—specifically distribution matching—within an iterative framework.

Local Surrogate Functions

Traditional FL methods rely on local gradients, which only provide a first-order "tangent" approximation of the loss function at a specific point. FedDM, however, constructs a "local surrogate function." This surrogate is a mathematical approximation that more accurately reflects the local training objective over a wider region of the weight space.

Comparison of the original loss function, the surrogate function used in FedDM, and a standard tangent approximation.

Distribution Matching via MMD

To build this surrogate, each client generates a tiny set of synthetic images. These images are optimized so that their features in the model's latent space match those of the client's real, private data. This is achieved using the Maximum Mean Discrepancy (MMD) metric, ensuring the synthetic distribution is a faithful representation of the original.

The iterative process follows these steps:

  1. Global Broadcast: The server sends the current global model to selected clients.
  2. Local Distillation: Clients update their synthetic data to align with the current model's feature space.
  3. Synthetic Upload: Clients transmit these small synthetic sets back to the server.
  4. Global Update: The server aggregates the synthetic data from all clients and trains the global model on this combined "distilled" dataset.

To ensure privacy, the authors incorporate a Gaussian mechanism, providing $(\epsilon, \delta)$-differential privacy by adding controlled noise during the distribution matching process.

Experimental Evaluation

The authors evaluated FedDM on standard benchmarks including MNIST, CIFAR-10, and CIFAR-100, simulating non-i.i.d. conditions using Dirichlet distributions.

Performance and Communication Efficiency

FedDM consistently outperforms state-of-the-art FL baselines in both accuracy and communication efficiency. On the CIFAR-10 dataset with highly unbalanced data, FedDM achieved 69.66% accuracy within just 20 rounds, significantly higher than SCAFFOLD (66.12%) and FedAvg (approx. 60%).

Performance comparison across MNIST, CIFAR-10, and CIFAR-100 datasets, showing test accuracy relative to communication rounds and message size.

As shown in the results, FedDM's communication efficiency is particularly striking. For large networks like ResNet-18, the total number of pixels in the synthetic images is often much smaller than the number of model parameters. This allows FedDM to reduce communication costs by up to 80% compared to weight-based methods.

Robustness to Heterogeneity and Noise

FedDM demonstrates remarkable resilience in extreme non-i.i.d. scenarios, such as when clients hold data from only a single class. While traditional methods often see performance collapse in these settings, FedDM remains robust. Furthermore, because it matches distributions rather than individual gradients, the method is more resilient to the noise required for Differential Privacy, preserving the learning signal more effectively.

Discussion and Future Directions

While FedDM offers significant advantages, it faces challenges in scaling to "extreme classification" tasks with thousands of labels, as the communication cost scales with the number of classes. Additionally, the server-side aggregation of synthetic data from millions of clients could present a computational bottleneck in massive cross-device deployments.

Future research may explore further compression of synthetic sets or adaptive optimization of the "images per class" ratio to enhance scalability. Nonetheless, FedDM represents a significant shift in FL, proving that "sending data" (in synthetic form) can be far more efficient and effective than "sending models."

Summary updated

BibTeX
@misc{xiong2022feddm,
  author = {Yuanhao Xiong and Ruochen Wang and Minhao Cheng and Felix Yu and Cho-Jui Hsieh},
  title = {{FedDM: Iterative Distribution Matching for Communication-Efficient Federated Learning}},
  year = {2022},
  eprint = {2207.09653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.09653},
}
Figure