Introduction
In the era of massive datasets, the efficiency of training machine learning models is as critical as their predictive accuracy. Stochastic optimization algorithms, particularly Stochastic Gradient Descent (SGD), serve as the primary tools for large-scale learning. However, these methods often suffer from high variance in gradient estimates, leading to slow sublinear convergence rates. While variance reduction techniques like Stochastic Variance Reduced Gradient (SVRG) have successfully achieved linear convergence in sequential settings, their extension to high-performance parallel environments remains a challenge.
This paper, originally presented at AAAI-17, introduces Async-ProxSVRG and Async-ProxSVRCD—two asynchronous parallel versions of state-of-the-art proximal optimization algorithms. These methods bridge the gap between precise variance reduction and the computational power of multi-core processing.
Problem Formulation: Regularized Empirical Risk Minimization
Most machine learning tasks involve Regularized Empirical Risk Minimization (R-ERM), where the goal is to minimize a composite objective function consisting of a smooth loss function and a potentially non-smooth regularization term (e.g., $L_1$ norm for sparsity).
Standard tools like Proximal Stochastic Gradient Descent (ProxSGD) are popular for handling non-smooth regularizers. However, ProxSGD's stochastic nature introduces significant noise, necessitating a diminishing step size that hampers convergence speed. SVRG addresses this by periodically computing a full gradient to "anchor" stochastic updates, allowing for a constant step size and faster linear convergence.
The primary hurdle in parallelizing SVRG is synchronization. Synchronous parallel methods often suffer from the "straggler" problem, where faster processors remain idle while waiting for slower ones. Asynchronous parallelization eliminates this idle time but introduces "stale" gradients—updates calculated based on outdated model versions—which can compromise stability and convergence.
Proposed Asynchronous Algorithms
The authors propose two distinct asynchronous proximal algorithms to address these challenges:
- Async-ProxSVRG (Consistent Read): Workers retrieve the entire model state, compute a gradient based on a mini-batch, and apply the update. To maintain stability, the authors employ a "consistent read" mechanism, ensuring that each worker interacts with a coherent version of the model parameters.
- Async-ProxSVRCD (Inconsistent Read): This variant updates the model on a coordinate-by-coordinate or block-by-block basis. By restricting updates to specific segments of the model, workers can operate with "inconsistent reads," where different model components may reflect different update stages. This approach is particularly effective for high-dimensional problems.
A core contribution of the paper is a rigorous theoretical analysis of the maximum allowable delay ($\tau$) caused by asynchrony. The authors prove that both algorithms maintain linear convergence rates provided the delay is bounded, a condition typically met in practice through data sparsity or fine-grained updates.
Experimental Evaluation
The researchers evaluated the proposed algorithms on three benchmark datasets for binary classification: rcv1, real-sim, and news20. These datasets represent a range of sparsity and dimensionality characteristics, as detailed in the table below.
The experiments focused on solving regularized logistic regression tasks, comparing the new asynchronous methods against sequential baselines and existing asynchronous approaches like Async-ProxSGD.
Key Results and Insights
The experimental results validate the theoretical claims of near-linear speedup and superior convergence properties in multi-core environments.
- Near-Linear Speedup: The algorithms demonstrated impressive scalability. For instance, on the
rcv1dataset, the methods achieved nearly a 15x speedup using 16 workers compared to a single-threaded execution, approaching the theoretical ideal of linear scaling. - The Role of Sparsity: For Async-ProxSVRG, data sparsity acts as a natural buffer. When features rarely overlap, updates from different workers are less likely to conflict, effectively mitigating the impact of stale gradients.
- Granularity in High Dimensions: For the high-dimensional
news20dataset, Async-ProxSVRCD showed the most significant gains. By decomposing the model into many small blocks, the probability of concurrent updates to the same block is minimized, allowing for efficient scaling even in dense feature spaces. - Superiority over ProxSGD: Both proposed algorithms significantly outperformed
Async-ProxSGDin convergence speed, demonstrating that the benefits of variance reduction are preserved and even amplified in asynchronous parallel settings.
Conclusion
The paper demonstrates that variance-reduced proximal methods can be effectively parallelized asynchronously to achieve near-linear speedups without sacrificing convergence guarantees. While the current analysis assumes strong convexity, the work provides a foundation for extending these principles to non-convex problems, such as deep neural networks, and exploring more complex proximal operators in asynchronous environments.
Summary updated