SlimFL: Federated Learning with Superposition Coding over Slimmable Neural Networks

Won Joon Yun, Yunseok Kwak, Hankyul Baek, Soyi Jung, Mingyue Ji, Mehdi Bennis, Jihong Park, Joongheon KimarXiv 2022

TL;DR

SlimFL is a novel federated learning (FL) framework that integrates width-adjustable "slimmable" neural networks with superposition coding to handle device heterogeneity and poor wireless channels. By introducing a specialized training method called SUSTrain, it achieves significantly higher accuracy and faster convergence than standard FL while slashing communication and energy costs by nearly 3x.

What Problem Does This Paper Address?

Federated Learning (FL) promises to train global models on decentralized data while preserving privacy. However, the "real world" of edge computing is messy. Devices like smartphones and IoT sensors have vastly different battery levels, memory capacities, and compute powers. Furthermore, wireless channel conditions are often unstable, and the data stored on these devices is typically non-IID (not independently and identically distributed)—meaning one device might only see photos of cats while another only sees dogs.

Standard FL usually forces a "one-size-fits-all" model on every device. If the model is too big, weak devices fail; if it's too small, accuracy suffers. While Slimmable Neural Networks (SNNs)—which can adjust their width on the fly—seem like a natural fit, existing SNN training algorithms (like USTrain) fall apart in the non-IID environments typical of FL.

Methods

The authors propose SlimFL, which combines three key components to bridge this gap:

  1. Slimmable Neural Networks (SNN): The architecture allows a single model to run at different widths (e.g., 0.5x or 1.0x).
  2. Superposition Coding (SC) & Successive Decoding (SD): Borrowing from wireless communication theory (NOMA), SlimFL treats model segments as messages with different priorities. A device encodes the "left-half" (LH, the 0.5x model) and "right-half" (RH, the remainder of the 1.0x model) using different power levels. The server uses Successive Decoding to always try to get the LH first. If the channel is good, it decodes the RH too and combines them.
  3. Superposition Training (SUSTrain): This is the paper's core algorithmic contribution. Standard SNN training uses "inplace knowledge distillation," where the full-width model acts as a teacher for the sub-width "student." In non-IID FL, the teacher model updates too drastically, providing "outdated" knowledge that hinders convergence. SUSTrain aligns the forward passes of different widths and uses superpositioned gradients to minimize inter-width interference during backpropagation.
Fig. 1. A schematic illustration: SlimFL consists of four processes. On the local side, the local SNN is trained with SUSTrain. After training, the local SNN is coded with SC. The local devices transmit SC-encoded local parameters to the server. On the server side, the server successively decodes SC-encoded parameters. The server aggregates the decoded parameters and reconstructs the global parameters.

Datasets

The researchers evaluated SlimFL using three standard computer vision benchmarks:

  • Fashion MNIST (FMNIST): The primary dataset for testing energy and communication efficiency.
  • MNIST: Handwritten digits, used for feasibility studies.
  • CIFAR-10: A more complex dataset of color images to test generalization.

To simulate real-world non-IID conditions, they partitioned the data across 10 devices using a Dirichlet distribution ($\alpha$), allowing them to control exactly how "skewed" each device's local dataset was.

Key Insights and Ideas

  • Prioritized Aggregation: By prioritizing the LH (0.5x) segment, SlimFL ensures that even devices with terrible connections contribute to the global model. This "partial" contribution is better than the "all-or-nothing" approach of vanilla FL.
  • Synergistic Learning: A major finding is that aggregating 0.5x models doesn't just help weak devices; it actually helps the 1.0x global model reach its optimum faster, especially in non-IID scenarios.
  • Stabilizing the "Teacher": The authors identified that the "sandwich rule" and standard distillation are "unfit" for FL because local updates are too volatile. SUSTrain stabilizes this by ensuring the student and teacher are updated concurrently with aligned gradients.
  • Optimal Power Splitting: The paper provides a mathematical design principle (Proposition 1) for how much transmit power should be allocated to the LH vs. RH segments to minimize the global convergence bound.
Detailed view of Server Operations (SD and Aggregation) and Local Device Operations (SUSTrain and SC).

Key Results

SlimFL demonstrates massive gains over "Vanilla FL" (FedAvg):

  • Resource Efficiency: SlimFL achieved a 3.6x reduction in total computing costs and a 2.9x reduction in communication costs to reach convergence.
  • Accuracy Boost: In poor channel conditions and high non-IIDness ($\alpha=0.1$), SlimFL-1.0x outperformed Vanilla FL-1.0x by 18% in top-1 accuracy.
  • Stability: Training was significantly more stable; the standard deviation of test accuracy for SlimFL was only 31%, compared to 59% for the vanilla baseline.
  • Energy Savings: SlimFL required only 32.63% of the communication energy of a comparable multi-model baseline (Vanilla FL-1.5x) to converge.

Limitations and Future Work

  • Downlink Assumptions: The current analysis assumes the server-to-device (downlink) transmission is always successful because servers have much higher broadcast power. In extremely remote or interference-heavy environments, this might not hold.
  • Width Granularity: The experiments primarily focused on two width configurations (0.5x and 1.0x). While the theory generalizes, the practical overhead of managing many more width levels (e.g., 0.25x, 0.75x) remains to be explored.
  • Multitask Learning: The authors suggest that an interesting future direction is applying SlimFL to multitask learning, where different model widths could be dynamically assigned to tasks of varying difficulty.

Summary updated

BibTeX
@misc{yun2022slimfl,
  author = {Won Joon Yun and Yunseok Kwak and Hankyul Baek and Soyi Jung and Mingyue Ji and Mehdi Bennis and Jihong Park and Joongheon Kim},
  title = {{SlimFL: Federated Learning with Superposition Coding over Slimmable Neural Networks}},
  year = {2022},
  eprint = {2203.14094},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.14094},
}
Figure