Abstract
Distributed optimization algorithms often utilize local training steps to mitigate high communication costs. While ProxSkip recently established that probabilistic synchronization can lead to provable communication acceleration, it mandates that all clients perform an identical number of local steps. We introduce GradSkip, a novel algorithm that allows clients to perform varying amounts of local computation based on the "importance" or difficulty of their local data. GradSkip maintains the accelerated communication complexity of $O(\sqrt{\kappa_{max}})$ while significantly reducing the total computational burden. Our theoretical analysis shows that GradSkip can be up to $n$ times more computationally efficient than ProxSkip in heterogeneous settings. We further generalize this to GradSkip+, supporting arbitrary unbiased compression and proximable regularizers, and validate our findings through empirical studies.
Introduction
In Federated Learning (FL), the primary bottleneck is the communication overhead associated with synchronizing model parameters across a vast network of decentralized devices. To address this, local training methods—where clients perform multiple local updates before communicating with a central server—have become the standard.
A significant theoretical milestone was reached with ProxSkip (Mishchenko et al., 2022), which proved that a probabilistic approach to communication could achieve "acceleration." Specifically, it reached a target accuracy with a communication complexity of $O(\sqrt{\kappa} \log(1/\epsilon))$, where $\kappa$ is the condition number. However, ProxSkip assumes a homogeneous computational load across all clients. In practice, data is highly heterogeneous; some clients possess "easy" (well-conditioned) data, while others have "hard" data. Forcing all clients to perform the same number of local steps is computationally wasteful and exacerbates the "straggler" problem.
Methodology: The GradSkip Framework
GradSkip addresses the inefficiency of uniform local training by introducing a dual-randomness mechanism that decouples local computation from global synchronization.
1. Dual-Probability Mechanism
GradSkip employs two distinct coin flips:
- Communication Skipping ($p$): A global probability determines whether the clients sync with the server, identical to the mechanism in ProxSkip.
- Gradient Skipping ($q_i$): A local probability specific to each client $i$. This allows clients with well-conditioned data to skip expensive gradient evaluations during local iterations.
2. Auxiliary Shifts and Drift Control
To prevent local models from drifting due to skipped gradients, GradSkip utilizes a system of "auxiliary shifts" ($\hat{h}_{i,t}$). These variables serve as a memory of local gradients. When a gradient step is skipped, the algorithm uses these shifts to approximate the update, ensuring the local trajectory remains aligned with the global objective without requiring fresh gradient computations.
3. Generalizations: GradSkip+ and VR-GradSkip+
The framework is extended into GradSkip+, which accommodates arbitrary unbiased compression operators and generic proximable regularizers. For scenarios involving stochastic gradients (small batches), VR-GradSkip+ incorporates variance reduction techniques to maintain convergence guarantees in the presence of stochastic noise.
Theoretical Insights
The core theoretical contribution of GradSkip is the decoupling of communication complexity from uniform computational requirements.
- Maintained Acceleration: Remarkably, letting some clients do less work does not slow down the global communication rate. GradSkip preserves the $O(\sqrt{\kappa_{max}})$ communication complexity of ProxSkip.
- Computational Efficiency: While ProxSkip requires $\sqrt{\kappa_{max}}$ local steps from every client, GradSkip allows a client $i$ to perform steps proportional to its local condition number $\kappa_i$. In highly heterogeneous environments, this leads to a computational speedup of $O(n)$, where $n$ is the number of clients.
- Straggler Resilience: By tuning $q_i$ based on hardware capabilities, GradSkip can balance the workload, ensuring that slower devices (stragglers) do not delay the global synchronization, as they can be assigned a higher skipping probability.
Empirical Results
The researchers evaluated GradSkip using both synthetic datasets and the "australian" benchmark from the LibSVM library.
- Synthetic Data: By controlling the local condition numbers, the experiments demonstrated that GradSkip's computational savings scale with data heterogeneity. In extreme cases with high heterogeneity, GradSkip was 37x more efficient in terms of gradient evaluations than ProxSkip.
- Real-world Benchmark: On the "australian" dataset for logistic regression, GradSkip achieved a 2.17x reduction in total gradient evaluations compared to the baseline, without any loss in convergence speed or accuracy.
Discussion and Limitations
GradSkip represents a significant advancement in making Federated Learning both communication and computation efficient. However, several avenues for future research remain:
- Non-Convexity: The current proofs rely on the objective functions being strongly convex. Extending these guarantees to non-convex landscapes, such as those found in deep neural networks, remains an open challenge.
- Partial Participation: The current theory assumes all clients participate in every round. In massive-scale FL, only a small fraction of devices are usually online at once.
- Lossy Compression: While GradSkip+ supports compression, deeper integration with lossy communication compression could yield even better results.
Conclusion
GradSkip proves that in distributed optimization, smarter computation is just as vital as faster communication. By allowing clients to skip local steps based on their specific data profile and hardware capacity, GradSkip achieves state-of-the-art acceleration while drastically reducing the energy and time required for local training.
Summary updated