FedMix: Approximation of Mixup under Mean Augmented Federated Learning

Tehrim Yoon, Sumin Shin, Sung Ju Hwang, Eunho Yang

Abstract

Federated learning (FL) often suffers from performance degradation in non-IID data environments due to client model drift. This paper proposes FedMix, a novel data augmentation framework that approximates the popular "Mixup" technique across clients. By sharing only averaged local data batches under a framework called Mean Augmented Federated Learning (MAFL), FedMix allows clients to regularize their local training using global data statistics without exposing raw private images. Experimental results on FEMNIST and CIFAR benchmarks demonstrate that FedMix significantly improves accuracy and convergence speed compared to standard FL algorithms like FedAvg.

Introduction

Standard Federated Learning (FL) algorithms, such as FedAvg, are designed with the assumption that data is identically and independently distributed (IID) across participating clients. In real-world scenarios, however, data is typically highly heterogeneous (non-IID). For example, one user might only take photos of cats while another only photographs cars. When clients train on these skewed local datasets, their model updates drift in divergent directions, causing severe performance degradation and slow convergence when aggregated by a central server.

The core challenge is enabling local models to learn from the diverse data distributions of other clients to prevent this drift, all while strictly adhering to the privacy constraints of FL—specifically, the prohibition of sharing raw, sensitive data. FedMix addresses this by simulating the benefits of global data augmentation through a mathematically grounded approximation.

Methods: Mean Augmented Federated Learning

The authors propose a new framework called Mean Augmented Federated Learning (MAFL). In MAFL, clients send their model weights to the server as usual, but they also contribute "mashed" or averaged batches of their local data. To leverage this averaged data, the authors introduce two techniques:

  • NaiveMix: A baseline approach where clients perform standard Mixup—linearly interpolating between two inputs and their labels—using their own raw local data and the received averaged global data.
  • FedMix (The Core Novelty): The authors utilize a first-order Taylor expansion of the cross-entropy loss to approximate the loss of a global Mixup (mixing local raw data with external raw data) using only the averaged external data.
Conceptual comparison of Mixup variants in a federated setting.

This mathematical decoupling proves that individual raw images from other clients are not strictly necessary to gain the regularization benefits of global Mixup; the statistical average of those images is sufficient to approximate the necessary gradients. This allows FedMix to simulate the benefits of a diverse global dataset without ever seeing raw client data.

Experimental Setup

The authors evaluated their methods on standard FL benchmarks, artificially partitioned to be highly non-IID:

  • FEMNIST: Handwritten characters partitioned naturally by the writer.
  • CIFAR-10 & CIFAR-100: Image classification datasets. Extreme non-IID settings were simulated by restricting clients to only 2 classes (CIFAR-10) or 20 classes (CIFAR-100).
  • Shakespeare: A next-character prediction NLP dataset partitioned by speaking role.

Key Results and Insights

FedMix consistently outperformed standard baselines like FedAvg and FedProx, as well as local Mixup strategies. On the highly non-IID CIFAR-10 setup, FedMix achieved 81.2% accuracy in 162 rounds, whereas FedAvg only reached 73.8% and required 283 rounds to plateau.

Performance comparison of FedMix against baselines across three datasets.

Key insights from the evaluation include:

  • Privacy-Utility Trade-off: The number of images used to compute the shared average ($M_k$) acts as a tunable knob. While averaging fewer images retains more distinct features, the authors found that even averaging all of a client’s local data into a single mean yields strong performance while maximizing privacy.
  • Efficiency: The communication overhead of sending data averages is negligible compared to the millions of parameters in modern neural networks. Furthermore, despite requiring an input derivative calculation, the overall training time remains competitive with FedAvg.
  • Robustness: FedMix showed significantly less performance degradation than baselines when client participation rates were low, a common challenge in real-world FL deployments.

Conclusion and Future Work

While FedMix provides a practical and effective way to handle non-IID data, it currently lacks formal mathematical privacy guarantees such as Differential Privacy (DP). If averaging batch sizes are too small, model inversion attacks could potentially infer sensitive details.

Future research directions include integrating FedMix with formal DP methods—such as adding calibrated Gaussian noise to the shared averages—and expanding the framework to more complex domains beyond basic image classification and NLP.

Summary updated

BibTeX
@inproceedings{yoon2021fedmix,
  author = {Tehrim Yoon and Sumin Shin and Sung Ju Hwang and Eunho Yang},
  title = {{FedMix: Approximation of Mixup under Mean Augmented Federated Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=Ogga20D2HO-},
}
Figure