Dynamic Sampling and Selective Masking for Communication-Efficient Federated Learning

Shaoxiong Ji, Wenqi Jiang, Anwar Walid, Xue LiIEEE Intell. Syst 2020 · DOI

Introduction

Federated Learning (FL) allows for the training of machine learning models on decentralized data sources, such as mobile devices, without requiring the raw data to leave the device. While this paradigm offers significant privacy advantages, it introduces a substantial "communication bottleneck." Deep learning models often contain millions of parameters, and the requirement for every participating device to upload and download these updates in each round can lead to unsustainable network traffic. This paper proposes two strategies to mitigate these costs: Dynamic Sampling and Selective Masking.

Methodology

Dynamic Sampling with Exponential Annealing

Standard FL typically employs a fixed sampling rate, selecting a constant percentage of clients per round. The authors argue that high client participation is most critical during the early stages of training to establish a generalized global model. As training progresses and the model stabilizes, the number of active participants can be reduced. By using an exponential decay function to "anneal" the sampling rate, the system front-loads the learning effort and reduces bandwidth consumption in later rounds.

Top-$k$ Selective Masking

To reduce the volume of data transmitted by each individual client, the researchers introduce "Selective Masking." Instead of sending the full set of weight updates, clients calculate the absolute difference between their local weights and the previous global weights ($|W_{t+1} - W_t|$). Only the "Top-$k$" largest changes are transmitted. This approach prioritizes significant learning signals over negligible updates or noise, effectively compressing the communication payload.

Experimental Results

Robustness of Selective Masking

The effectiveness of Selective Masking was evaluated against a baseline of Random Masking. As illustrated in Figure 4, Selective Masking maintains high testing accuracy even when a large majority of parameter updates are masked. Notably, at lower transmission rates (e.g., sending only 10-30% of data), Selective Masking significantly outperforms Random Masking, demonstrating its ability to preserve model performance under extreme bandwidth constraints.

Figure 4: Testing accuracy vs. Masking rate (fraction of parameters sent). Selective masking consistently outperforms random masking, especially at low transmission rates.

Communication Efficiency of Dynamic Sampling

The proposed Dynamic Sampling strategy was compared against traditional Static Sampling. Results shown in Figure 6 indicate that Dynamic Sampling achieves comparable final accuracy to static methods while drastically reducing cumulative communication costs. By the 100th training epoch, the communication overhead for dynamic strategies is a fraction of that required by the static baseline, proving the efficiency of the annealing approach.

Figure 6: Comparison of testing accuracy and communication cost between Dynamic and Static sampling strategies. Dynamic sampling achieves similar accuracy with significantly lower total communication overhead.

Conclusion

The combination of Dynamic Sampling and Selective Masking addresses the primary communication challenges in Federated Learning. By optimizing both the number of participating clients and the size of their updates, these methods enable efficient training across diverse tasks, including image classification and language modeling. Future work will explore the performance of these algorithms in real-world distributed environments with heterogeneous network conditions.

Summary updated

BibTeX
@inproceedings{ji2020dynamic,
  author = {Shaoxiong Ji and Wenqi Jiang and Anwar Walid and Xue Li},
  title = {{Dynamic Sampling and Selective Masking for Communication-Efficient Federated Learning}},
  booktitle = {IEEE Intell. Syst},
  year = {2020},
  doi = {10.1109/mis.2021.3114610},
}
Figure