Abstract
Distributed Stochastic Gradient Descent (SGD) is essential for training large-scale models but suffers from significant bottlenecks: high communication overhead, heavy computational complexity, and slow convergence rates for zeroth-order methods. This paper introduces HO-SGD (Hybrid-Order Distributed SGD), a framework that balances these trade-offs by alternating between "cheap" zeroth-order (ZO) updates and periodic first-order (FO) gradient corrections. By leveraging pre-shared random seeds to communicate only scalars during ZO phases, HO-SGD reduces communication load by a factor of the model dimension $d$. Theoretical analysis and empirical results on MNIST adversarial attacks and multi-class classification show that HO-SGD maintains the fast convergence order of FO methods while significantly lowering resource requirements.
Introduction
Training modern deep neural networks (DNNs) requires distributing workloads across numerous worker nodes. However, standard distributed SGD faces three primary challenges:
- Communication Overhead: Exchanging $d$-dimensional gradient vectors in every iteration creates a network bottleneck as $d$ grows into the millions.
- Computational Complexity: Backpropagation for first-order gradients is expensive for every data point.
- Convergence Trade-offs: Zeroth-order (ZO) methods, which estimate gradients using function evaluations, are computationally light but typically converge much slower than first-order (FO) methods.
Existing solutions like model averaging attempt to reduce communication frequency but often suffer from "model drift." HO-SGD provides a "middle way" that preserves FO convergence speed without the associated costs.
The HO-SGD Framework
HO-SGD operates in a two-phase cycle designed to maximize efficiency:
- The Zeroth-Order (ZO) Phase: For the majority of iterations, workers perform ZO gradient estimation. By using pre-shared random seeds, nodes can agree on a random direction without transmitting it. Consequently, workers only need to broadcast a single scalar (the directional derivative), reducing communication load by a factor of $d$.
- The First-Order (FO) Phase: Every $ au$ iterations, workers perform a full FO gradient update and synchronize. This "correction" phase acts as a compass reset, preventing the accumulation of approximation errors from the ZO phase.
As shown in the theoretical comparison above, HO-SGD maintains a convergence order of $O(d/\sqrt{mN})$, matching fully synchronous FO-SGD while drastically reducing the average communication load per iteration.
Experimental Evaluation
The researchers evaluated HO-SGD across two main tasks: generating universal adversarial perturbations on the MNIST dataset and multi-class classification using datasets like SENSORLESS, ACOUSTIC, COVTYPE, and SEISMIC.
In the adversarial attack experiments, HO-SGD demonstrated superior performance compared to pure ZO methods. It achieved a lower "attack loss" (indicating a more effective attack) and produced adversarial images with lower $l_2$ distortion, effectively matching the quality of expensive FO methods at a fraction of the cost.
Key Insights and Results
- Breaking the Dimensionality Barrier: The use of pre-shared seeds is a critical innovation. It makes the communication cost during ZO iterations independent of the model's dimension $d$, solving a major scalability issue in distributed learning.
- Theoretical Parity: The paper proves that FO gradients are not required at every step to achieve FO-level convergence. One can be "lazy" for $O(d)$ steps and still remain on the optimal convergence path.
- Wall-Clock Efficiency: In classification tasks, HO-SGD significantly outperformed pure ZO methods in wall-clock time, reaching high accuracy levels faster by avoiding the noisy, slow progress typical of pure zeroth-order optimization.
Conclusion
HO-SGD successfully bridges the gap between zeroth-order and first-order optimization. While it requires empirical tuning for the synchronization period ($\tau$) and does not inherently solve memory constraints on worker nodes, it offers a robust solution for communication-constrained distributed training. Future work may explore the application of this hybrid approach in fully decentralized peer-to-peer networks.
Summary updated