[Paper Review] Fast Asynchronous Parallel Stochastic Gradient Decent
This paper proposes AsySVRG, a fast asynchronous parallel stochastic gradient descent method that leverages the variance-reduced SVRG framework to enable efficient multicore training. By introducing consistent and inconsistent reading strategies, AsySVRG achieves linear convergence and outperforms Hogwild! in both convergence speed and computation cost on real-world datasets.
Stochastic gradient descent~(SGD) and its variants have become more and more popular in machine learning due to their efficiency and effectiveness. To handle large-scale problems, researchers have recently proposed several parallel SGD methods for multicore systems. However, existing parallel SGD methods cannot achieve satisfactory performance in real applications. In this paper, we propose a fast asynchronous parallel SGD method, called AsySVRG, by designing an asynchronous strategy to parallelize the recently proposed SGD variant called stochastic variance reduced gradient~(SVRG). Both theoretical and empirical results show that AsySVRG can outperform existing state-of-the-art parallel SGD methods like Hogwild! in terms of convergence rate and computation cost.
Motivation & Objective
- Address the performance limitations of existing parallel SGD methods on multicore systems, particularly suboptimal convergence rates.
- Improve convergence speed and computational efficiency for large-scale empirical risk minimization problems.
- Design an asynchronous parallel strategy for the SVRG algorithm that avoids synchronization bottlenecks while maintaining convergence guarantees.
- Demonstrate superior performance over state-of-the-art methods like Hogwild! in both theoretical convergence rate and empirical runtime.
Proposed method
- Proposes two asynchronous schemes—consistent reading and inconsistent reading—to coordinate multiple threads updating shared parameters without locks.
- Adapts the SVRG algorithm by computing a control variate using a snapshot of the full gradient at periodic intervals to reduce gradient variance.
- Uses the update rule $\mathbf{v}_m = \nabla f_{i_m}(\mathbf{u}_{k(m)}) - \nabla f_{i_m}(\mathbf{u}_0) + \nabla f(\mathbf{u}_0)$ to correct stale gradients in the asynchronous setting.
- Employs a shared memory model where threads independently sample data instances and update the global parameter vector asynchronously.
- Sets the inner-loop length $M = \frac{2n}{p}$ to balance convergence and computational cost across $p$ threads.
- Uses a constant step size $\gamma$, with adaptive decay ($\gamma \leftarrow 0.9\gamma$) every epoch to improve practical convergence.
Experimental results
Research questions
- RQ1Can an asynchronous variant of SVRG achieve faster convergence than existing parallel SGD methods like Hogwild! on multicore systems?
- RQ2Do consistent and inconsistent reading strategies in AsySVRG maintain linear convergence under asynchrony?
- RQ3How does AsySVRG compare to Hogwild! in terms of computation cost and convergence speed on real-world datasets?
- RQ4What is the impact of lock-free versus locked update strategies on the performance of asynchronous SVRG?
- RQ5Can AsySVRG achieve faster convergence with fewer effective passes over the data compared to Hogwild!?
Key findings
- AsySVRG with inconsistent reading (AsySVRG-unlock) achieves a speedup of 5.77x on 10 threads for the rcv1 dataset, outperforming Hogwild! which took over 200 seconds on the same task.
- On the news20 dataset, AsySVRG-unlock required 514.50 seconds to reach a gap of $10^{-4}$, while Hogwild! exceeded 2000 seconds, demonstrating a significant runtime advantage.
- AsySVRG-lock achieved a 4.92x speedup on rcv1 with 8 threads, while Hogwild! with 10 threads took over 500 seconds, highlighting AsySVRG’s superior efficiency.
- The convergence rate of AsySVRG is significantly faster than Hogwild!, as shown in Figure 1, where AsySVRG reaches lower objective values with fewer effective passes.
- The consistent reading strategy performed worst in practice, with longer runtimes than both AsySVRG-lock and AsySVRG-unlock, indicating its inefficiency in asynchronous settings.
- AsySVRG maintains linear convergence under both consistent and inconsistent reading, as proven theoretically, unlike Hogwild! which only achieves sub-linear convergence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.