Efficient Split-Mix Federated Learning for On-Demand and In-Situ Customization

Junyuan Hong, Haotao Wang, Zhangyang Wang, Jiayu Zhou

Introduction

This paper introduces Split-Mix, a novel Federated Learning (FL) strategy that allows resource-constrained devices to collaboratively train a "menu" of model sizes and robustness levels. By breaking a large model into small, modular "shards" that are mixed on-demand, the authors achieve high-performance customization without the massive overhead of training multiple independent models.

The Challenge of Heterogeneity and Dynamics

Federated Learning (FL) allows AI models to learn from data spread across thousands of devices without that data ever leaving the device. However, two major real-world challenges usually break standard FL:

  1. Resource Heterogeneity: Not all devices are created equal. A brand-new flagship phone can train a massive model, while an older budget phone might crash trying to load it.
  2. Runtime Dynamics: A device's situation changes. A car's computer might have plenty of memory while idling but very little while navigating. Similarly, a camera might need a standard model in broad daylight but a "robust" (adversarially trained) model when it enters a dark, blurry tunnel.
Illustration of standard FedAvg and HeteroFL

Existing methods like HeteroFL try to solve this by having small devices train only a "slice" of a large model. But this leads to under-training: the full-sized model only gets updates from the few powerful devices, making it perform poorly on the unique data held by the weaker devices.

The Split-Mix Framework

The authors propose the Split-Mix framework, which operates on a "shatter and assemble" principle:

The Split-Mix framework illustrating base models and adaptive distribution
  • The Split: Instead of one giant model, the knowledge is split into $M$ small, equal-sized base sub-networks (e.g., each being 1/4 the width of the target model).
  • The Training: During each round, a client only downloads as many base models as its current "budget" (RAM/CPU) allows. Because these shards are small, even the weakest devices can fully train them.
  • The Mix: At inference time, the device "mixes" a specific number of these base models together. If you need a slim model, you use one shard; if you need a powerful one, you ensemble four.
  • Adversarial Robustness (DAT): To handle changing environmental conditions, they use Dual Batch-Normalization (DBN). Each base model has two sets of BN layers: one for "clean" data and one for "noisy/adversarial" data. By simply adjusting a weight ($\lambda$) between these layers, a user can tune the model's robustness on the fly without re-training.

Experimental Setup

The researchers evaluated Split-Mix across three diverse benchmarks:

  • CIFAR-10: A standard image classification dataset used to test basic performance.
  • Digits: A collection of five different digit datasets (MNIST, SVHN, USPS, etc.) used to simulate "feature non-i.i.d." scenarios where different users see very different styles of data.
  • DomainNet: A large-scale, complex dataset featuring six domains (Clipart, Painting, Sketch, etc.), providing a rigorous test for real-world adaptability.

Key Insights

  • Solving the "Rich Get Richer" Problem: In previous methods, large models were only trained by powerful devices. In Split-Mix, every device—no matter how weak—contributes to the base components that eventually make up the large model. This ensures the "collective intelligence" of the entire network is captured.
  • Modular Robustness is Cheap: Robustness is usually expensive to train and store. By isolating robustness into the Batch-Normalization layers (which account for <1% of total parameters), Split-Mix makes safety an "optional toggle" rather than a heavy burden.
  • Parallelism over Sequentialism: Training four small models in parallel is often more efficient and stable in a distributed setting than trying to train one large, complex architecture with missing pieces.

Key Results

  • Superior Accuracy: On the DomainNet dataset, Split-Mix achieved a 74.2% accuracy for the full-width model, significantly outperforming HeteroFL (58.7%) under the same budget constraints.
  • Massive Efficiency Gains: To reach a similar level of accuracy as a standard wide model on CIFAR-10, Split-Mix required only 1.8% of the parameters and 1.6% of the compute (MACs).
  • Smooth Trade-offs: The DBN approach allowed for a smooth "Pareto front" between accuracy and robustness. Users could slide a bar to make the model more robust in "noisy" environments without needing to download a new model.

Limitations and Future Work

While Split-Mix is a major step forward, the authors and the architecture suggest a few areas for growth:

  • Width vs. Depth: The current work focuses on customizing model width (number of channels). Future iterations could explore depth (number of layers) for even more granular control.
  • Aggregation Complexity: As the number of "shards" grows, the server has more pieces to manage. Finding the optimal number of base models ($M$) for a given population is still an open question.
  • Communication: While efficient, the strategy still requires frequent communication. Combining Split-Mix with advanced compression techniques could make it even more viable for extremely low-bandwidth IoT devices.

Summary updated

BibTeX
@inproceedings{hong2022efficient,
  author = {Junyuan Hong and Haotao Wang and Zhangyang Wang and Jiayu Zhou},
  title = {{Efficient Split-Mix Federated Learning for On-Demand and In-Situ Customization}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=_QLmakITKg},
}
Figure