Abstract
Federated Learning (FL) enables large-scale distributed training of machine learning models, while still allowing individual nodes to maintain data locally. However, executing FL at scale comes with inherent practical challenges: 1) heterogeneity of the local node data distributions, 2) heterogeneity of node computational speeds (asynchrony), but also 3) constraints in the amount of communication between the clients and the server. In this work, we present the first variant of the classic federated averaging (FedAvg) algorithm which, at the same time, supports data heterogeneity, partial client asynchrony, and communication compression. Our algorithm comes with a novel, rigorous analysis showing that, in spite of these system relaxations, it can provide similar convergence to FedAvg in interesting parameter regimes. Experimental results in the rigorous LEAF benchmark on setups of up to 300 nodes show that our algorithm ensures fast convergence for standard federated tasks, improving upon prior quantized and asynchronous approaches.
Introduction
Federated Learning (FL) allows multiple devices (clients) to train a shared model without ever sharing their raw data. However, moving FL from the lab to the real world hits three major roadblocks:
- Data Heterogeneity: Clients often have very different data distributions (non-i.i.d.), which can cause models to diverge.
- Client Heterogeneity (Asynchrony): In a network of smartphones or IoT devices, some nodes are much faster than others. Standard algorithms like FedAvg are "synchronous," meaning the server must wait for the slowest "straggler" to finish before moving to the next round.
- Communication Costs: Modern AI models are massive. Sending full-precision updates over limited bandwidth is a major bottleneck.
While previous research has addressed these issues individually or in pairs, combining all three is notoriously difficult. For example, allowing asynchrony and data heterogeneity together can "skew" the global model toward the data of the fastest clients. Adding communication compression often introduces noise that, when combined with the "staleness" of asynchronous updates, makes theoretical convergence nearly impossible to prove.
The QuAFL Algorithm
The authors introduce QuAFL (Quantized Asynchronous Federated Learning), which extends the classic FedAvg algorithm with three key innovations:
- Non-blocking, Partial Progress: Unlike FedAvg, the QuAFL server does not wait. When the server polls a client, the client immediately sends back whatever progress it has made since it was last contacted—even if it hasn't finished its assigned local steps.
- Position-Aware Quantization: Standard compression techniques (like QSGD) have errors that scale with the model's total magnitude, which can grow indefinitely. QuAFL uses a specialized lattice-based quantizer where the error only depends on the distance between the server and client models. This keeps the "noise" from compression under control.
- Speed-Adjusted Weighting: To prevent fast clients from dominating the model, QuAFL uses a weighting factor ($\eta_i$) based on the client's expected speed. This "dampens" the updates from fast nodes to maintain a balanced global objective.
The paper also provides a novel theoretical analysis using a "potential argument" to prove that QuAFL converges for non-convex loss functions without requiring the common (but often unrealistic) assumption of bounded gradients.
Experimental Evaluation
The researchers evaluated QuAFL using the LEAF benchmark, a standard for federated settings, across several tasks including MNIST, Fashion MNIST, CIFAR-10, and CelebA. These datasets provide a range of challenges, from standard image classification to face attribute recognition split by identity to ensure a "pure" non-i.i.d. setting.
Key Results
QuAFL demonstrates superior performance in realistic, "messy" environments:
Wall-Clock Speedup: In simulated environments with 25% slow clients, QuAFL reached lower loss levels significantly faster than synchronous FedAvg. This highlights the efficiency of capturing partial progress asynchronously.
Robustness to Stragglers: The algorithm is highly resilient to "slow" nodes. Even if a client has made zero progress when polled, the system continues without a "loss spike," unlike other asynchronous methods like FedBuff. This stability is crucial for maintaining performance in heterogeneous networks.
Compression Efficiency: QuAFL can compress updates by more than 3x (using 14-bit quantization) without any significant loss in accuracy or convergence speed, effectively addressing communication constraints.
Discussion and Insights
- Don't Wait, Just Quantize: Capturing partial progress asynchronously is more efficient for wall-clock time, provided you have a way to handle the resulting model inconsistency.
- The Quantization Trap: "Standard" quantizers fail in asynchronous FL because their error is proportional to the model norm. Switching to "position-aware" quantization (referencing the server's model) is the "secret sauce" that makes the theory work.
- Balancing the Scales: Without the speed-based weighting ($\eta_i$), an asynchronous system naturally favors the data of fast clients. QuAFL’s weighting ensures that the "slow and steady" nodes still have a fair say in the final model.
Limitations and Future Work
The current convergence theory requires a very large number of rounds ($T \geq \Omega(n^3)$) relative to the number of nodes. While QuAFL performs great in practice with fewer rounds, tightening this theoretical gap is an open challenge. Additionally, extending QuAFL to support more advanced optimizers (like Adam or those using gradient tracking) and reducing hyperparameter sensitivity in highly heterogeneous networks are valuable next steps.
Summary updated