TL;DR
This paper introduces SDEFL (Service Delay Efficient Federated Learning), a framework that minimizes the total time required for federated learning on mobile devices by jointly optimizing local computation and wireless communication. By strategically tuning local iteration counts, weight quantization, and gradient quantization, SDEFL achieves up to a 56% reduction in service delay compared to standard FedAvg with only a marginal impact on model accuracy.
What Problem Does This Paper Address?
Federated Learning (FL) allows mobile devices to collaboratively train models without sharing raw data. Historically, researchers treated wireless communication as the primary bottleneck. However, as 5G and Wi-Fi 6 become standard, the authors observed a shift: the time spent on local CPU/GPU computation is now often comparable to transmission time.
Simply reducing communication (e.g., by doing more local work) or reducing computation (e.g., by using lower precision) independently isn't enough. There is a complex trade-off between "working" (computing) and "talking" (communicating). Furthermore, mobile networks are heterogeneous; a "straggler" device with a weak GPU or poor signal can stall the entire training round. This paper seeks to find the optimal balance for each device to minimize the total "service delay"—the sum of computing and communication time across all training rounds.
Methods
The authors propose the FL-QuWG (Weight and Gradient Quantization) algorithm, which provides three "knobs" to tune for each device:
- Local Computing Control ($H$): The number of local SGD iterations performed before syncing with the server.
- Weight Quantization ($q_w$): Reducing the precision of model weights during local training to speed up GPU operations (e.g., using 16-bit instead of 32-bit).
- Gradient Quantization ($q_g$): Compressing the model updates sent back to the server to save bandwidth.
To solve for these variables, the authors:
- Empirically Studied Trade-offs: They measured how different quantization levels affect both delay and the number of rounds needed for convergence.
- Theoretical Convergence Analysis: They derived a convergence upper bound that accounts for the errors introduced by quantization and local iterations.
- Optimization Formulation: They modeled the problem as an integer nonlinear program. To make it solvable, they converted it into a Geometric Programming (GP) problem, which can be efficiently solved by the edge server in milliseconds.
Datasets
The framework was evaluated using:
- CIFAR-10: A standard image classification dataset.
- Models: ResNet20 and MobileNetV2, representing modern deep learning architectures of varying complexity.
- Data Distributions: Both IID (Independent and Identically Distributed) and non-IID (skewed class distributions) settings to simulate real-world data heterogeneity.
Key Insights and Ideas
- The Sweet Spot of $H$: Increasing local iterations ($H$) reduces communication frequency but increases local delay and can slow down overall convergence due to model drift. As shown in Figure 2, there is a clear "U-shaped" curve where an optimal $H$ exists.
- Quantization as a Regularizer: Surprisingly, moderate gradient quantization (e.g., 5-8 bits) can sometimes help a model converge faster than full precision. This is because the quantization noise increases "gradient diversity," helping the model explore the parameter space more effectively.
- Hardware-Aware Speedups: The authors specifically leveraged NVIDIA Tensor Cores on Jetson Xavier devices, showing that 16-bit weight quantization can provide a ~1.6x speedup in local training time without significant accuracy loss.
- Heterogeneity is Key: In a mixed-device environment, the optimal strategy for a "compute-bottlenecked" device is different from a "communication-bottlenecked" one. SDEFL assigns different quantization levels to different devices to mitigate the straggler effect.
Key Results
- Delay Reduction: Compared to standard FedAvg, SDEFL reduced service delay by 56% for ResNet20. Compared to FedPAQ (a communication-efficient baseline), it reduced delay by 50%.
- Accuracy Trade-off: These massive speedups came at a small cost to accuracy—typically a drop of only 0.3% to 3% depending on the model and data distribution.
- Robustness to Network Speed: In 5G emulations (slower than Wi-Fi 5), SDEFL automatically shifted its strategy to favor more aggressive communication compression ("talking" less) to maintain efficiency.
Limitations and Future Work
- Hardware Constraints: Current off-the-shelf mobile GPUs (like the Volta architecture in the Jetson Xavier) primarily support 16-bit acceleration. To see the benefits of 8-bit or 4-bit quantization, specialized hardware or FPGA-based co-designs are needed.
- Synchronous FL: This paper focuses on synchronous FL, where the server waits for all (or most) devices. The authors suggest that extending this to asynchronous FL—where devices update the server whenever they finish—is a promising future direction.
- Energy Consumption: While delay is minimized, the impact of these strategies on the battery life of mobile devices was not the primary focus and warrants further study.
Summary updated