In this work we propose Straggler-Aware Layer-Wise Low-Latency Federated Learning (SALF), that leverages the optimization procedure of neural networks via backpropagation to update the global model in a layer-wise fashion. This repository contains a basic PyTorch implementation of SALF. Please refer to our paper for more details.
This code has been tested on Python 3.7.3, PyTorch 1.8.0 and CUDA 11.1.
- PyTorch=1.8.0: https://pytorch.org
- scipy
- tqdm
- matplotlib
- torchinfo
- TensorboardX: https://github.com/lanpa/tensorboardX
python main.py --exp_name=salf --stragglers salf --stragglers_percent 0.9 --up_to_layer 1 --data mnist --model mlp
python main.py --exp_name=salf --eval