Fast Server Learning Rate Tuning for Coded Federated Dropout

Giacomo Verardo, Daniel Barreira, Marco Chiesa, Dejan Kostic, Gerald Q. Maguire Jr

This paper, presented by researchers from the KTH Royal Institute of Technology, introduces Coded Federated Dropout (CFD), a method to make Federated Learning (FL) significantly more communication-efficient without the typical accuracy trade-offs.

TL;DR

Coded Federated Dropout (CFD) combines coding theory-based sub-model selection with a fast server learning rate tuning algorithm. This approach allows federated learning to achieve 99.6% of the accuracy of full-model training while reducing bandwidth usage by 2.43×.

What Problem Does This Paper Address?

Federated Learning allows multiple devices (clients) to train a shared model without sharing their private data. However, modern deep learning models are massive, and sending them back and forth between a server and thousands of clients creates a massive communication bottleneck.

Federated Dropout (FD) was proposed to solve this by having clients train only a subset (a "sub-model") of the global model. While this saves bandwidth, it usually comes with two major headaches:

  1. Lower Accuracy: Randomly dropping parts of the model often leads to poorer final performance compared to training the full model.
  2. Slow Convergence: FD typically requires many more training rounds to reach the same accuracy, which can negate the bandwidth savings per round.

The authors identify that these issues stem from how sub-models are selected and the fact that FD requires different hyperparameter tuning (specifically the server learning rate) than standard FL.

Methods

The authors propose two main innovations to fix Federated Dropout:

1. Coded Sub-model Selection

Instead of randomly dropping neurons to create sub-models, CFD uses binary masks derived from coding theory. The goal is to ensure that the sub-models sent to different clients are "orthogonal"—meaning they overlap in a way that minimizes interference when the server aggregates their updates.

  • Gold Codes: Borrowed from CDMA (cell phone technology), these sequences are designed to have low cross-correlation.
  • Constant Weight Codes (CWC): These are designed to maximize the Hamming distance between different client masks.

2. Fast Server Learning Rate Adaptation

The authors discovered that the optimal server learning rate ($\eta$) for a dropout-enabled session is often much higher than for a standard session. To avoid the massive cost of full-scale hyperparameter grid searches, they developed Algorithm 1. This algorithm runs several short, parallel FL sessions with different $\eta$ values at the start of training. It quickly identifies which rate hits a target accuracy threshold the fastest and refines the search, adding minimal overhead to the total training time.

Datasets

The researchers evaluated their methods using:

  • EMNIST62: A large-scale dataset for character and digit recognition (62 classes).
  • Model Architecture: A convolutional neural network (CNN) with approximately 6.6 million parameters.

Key Insights and Ideas

  • The CDMA Analogy: Just as Gold codes allow multiple cell phones to share the same frequency without "talking over" each other, using them in CFD allows multiple clients to contribute to a global model update with minimal "noise" or interference between their specific sub-model updates.
  • Hyperparameters Don't Transfer: You cannot simply take the best learning rate from a full-model FL session and apply it to a Dropout session. As shown in Figure 1, a learning rate that causes a standard session to diverge might actually be the "sweet spot" for a session using Federated Dropout.
Figure 1: Increasing the server learning rate η to 3.0 is beneficial for random FD with different sub-models per client, while it is detri- mental for the no dropout case
  • Cross-Correlation > Hamming Distance: Interestingly, Gold codes (which minimize cross-correlation) consistently outperformed CWCs (which maximize Hamming distance). This suggests that for model aggregation, controlling how updates overlap is more important than simply making the masks as different as possible.

Key Results

  • Near-Peak Accuracy: Using CFD with Gold codes and the FedAdam optimizer, the researchers achieved 99.6% of the accuracy of a "no-dropout" (full bandwidth) session.
  • Massive Bandwidth Savings: To reach that high accuracy, CFD required 2.43× less bandwidth than the standard no-dropout approach.
  • Faster Convergence: Compared to baseline Federated Dropout, the coded approach achieved up to a 1.5× speedup in reaching target accuracy (see Figure 3).
Figure 3: The dropout approaches require a higher η in order to reach the minimal number of rounds for the target accuracy

Limitations and Future Work

  • Rigidity of Gold Codes: Gold codes have specific mathematical constraints; they only work for certain mask lengths and generally fix the dropout rate at 50% ($\alpha = 0.5$). This lacks the flexibility needed for scenarios where clients might need much smaller sub-models due to extreme hardware constraints.
  • CWC Underperformance: While CWCs are more flexible, they didn't provide a significant accuracy boost over random dropout in these experiments.
  • Future Directions: The authors plan to investigate other sequences from coding theory that might offer the high performance of Gold codes with the flexibility to handle various dropout rates and model sizes.

Summary updated

BibTeX
@inproceedings{verardo2022fast,
  author = {Giacomo Verardo and Daniel Barreira and Marco Chiesa and Dejan Kostic and Gerald Q. Maguire Jr},
  title = {{Fast Server Learning Rate Tuning for Coded Federated Dropout}},
  booktitle = {FL @ IJCAI},
  year = {2022},
  doi = {10.1007/978-3-031-28996-5\_7},
}
Figure