A Parallel SGD method with Strong Convergence

Dhruv Mahajan, S. Sathiya Keerthi, S. Sundararajan, Léon BottouarXiv 2013

Abstract

Stochastic Gradient Descent (SGD) is a cornerstone of large-scale machine learning, yet its sequential nature poses significant challenges for distributed environments. Traditional parameter mixing often suffers from high variance and bias, leading to suboptimal convergence. This paper introduces a parallel SGD framework that leverages "gradient consistency" to transform local SGD updates into a global descent direction. By integrating local stochastic iterations with a global line search, the proposed method achieves a global linear rate of convergence. Empirical evaluations on massive datasets demonstrate that this approach significantly outperforms state-of-the-art distributed solvers in both communication efficiency and generalization speed.

Introduction

In large-scale optimization, the standard approach to handling massive datasets is distributing data across multiple computing nodes. While SGD is highly efficient on single machines, parallelizing it effectively is non-trivial. Simple weight averaging (parameter mixing) encounters two primary issues: variance, where heterogeneous local data leads to divergent models, and bias, where excessive local iterations cause nodes to stall at local optima. This research proposes a method that maintains the efficiency of SGD while providing the robust convergence guarantees of batch gradient descent.

Methodology: Gradient Consistency

The core innovation is the principle of gradient consistency. Instead of nodes independently minimizing their local loss functions, they optimize a "tilted" objective function $\hat{f}_p(w)$.

  1. The Tilt: At each iteration $r$, the master node broadcasts the global gradient $g^r$ to all slave nodes. Each node constructs $\hat{f}_p(w)$ such that its gradient at the current iterate matches the global gradient: $\nabla \hat{f}_p(w^r) = g^r$.
  2. Local Optimization: Nodes perform several epochs of local SGD on these tilted functions to find a new point $w_p$.
  3. Direction Aggregation: The differences $d_p = w_p - w^r$ are averaged by the master node to form a global descent direction $d^r$.
  4. Line Search: A standard line search (satisfying Armijo-Wolfe conditions) is applied to update the global weights, ensuring stable progress.

This framework ensures the algorithm behaves like a batch descent method, allowing for a flexible trade-off between local computation and global communication. Additionally, the algorithm includes a safeguard: if the stochastic nature of local updates produces a poor direction, it falls back to the negative gradient. Theoretical analysis shows the probability of this fallback decreases to zero as the number of local epochs increases.

Experimental Results

The method was evaluated using the kdd2010 dataset, a high-dimensional benchmark containing 8.41 million examples and 20.21 million features. The experiments utilized squared hinge loss with $L_2$ regularization.

Communication Efficiency

The proposed method (FS-s, where $s$ is the number of local epochs) demonstrates superior communication efficiency. By performing more local work, the algorithm requires significantly fewer global communication passes to reach a target objective value compared to the Statistical Query Model (SQM) and hybrid approaches.

Communication efficiency on 25 nodes showing the difference to the optimal function value versus communication passes.

Generalization and Scalability

Beyond objective function convergence, the FS-s method reaches high Area Under Precision-Recall Curve (AUPRC) values faster than competing methods. This performance advantage scales effectively from 25 to 100 nodes. While the gap between methods narrows slightly as the number of nodes increases—due to local approximations becoming less representative—the parallel SGD approach remains the most efficient in terms of wall-clock time and generalization.

AUPRC over time for 100 nodes, illustrating the rapid generalization of the parallel SGD method.

Conclusion

By enforcing gradient consistency, this parallel SGD method bridges the gap between fast local stochastic updates and stable global batch convergence. The inclusion of a global line search provides strong theoretical guarantees, while the empirical results confirm its practical utility for massive-scale linear classification tasks. Future work may explore the application of this framework to non-convex problems and the integration of second-order local optimizers.

Summary updated

BibTeX
@misc{mahajan2013parallel,
  author = {Dhruv Mahajan and S. Sathiya Keerthi and S. Sundararajan and Léon Bottou},
  title = {{A Parallel SGD method with Strong Convergence}},
  year = {2013},
  eprint = {1311.0636},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1311.0636},
}
Figure