Introduction
In the landscape of large-scale machine learning, solving regularized empirical risk minimization problems efficiently is a primary challenge. While Stochastic Gradient Descent (SGD) is widely adopted for its per-iteration efficiency, it suffers from a sub-linear convergence rate due to the inherent variance in its gradient estimates. To address this, researchers developed the Stochastic Variance Reduced Gradient (SVRG) algorithm, which achieves a superior linear convergence rate through variance reduction. However, the original SVRG is inherently sequential.
Parallel optimization frameworks like Hogwild! have attempted to leverage multicore systems by allowing threads to update a shared model asynchronously without locks. While Hogwild! achieves high hardware utilization, it is based on standard SGD and thus remains limited by sub-linear convergence. This paper introduces AsySVRG (Asynchronous Stochastic Variance Reduced Gradient), a method that successfully combines the fast, lock-free parallelism of Hogwild! with the linear convergence of SVRG.
The AsySVRG Algorithm
AsySVRG operates using a nested loop structure designed to balance variance reduction with parallel throughput:
- Outer Loop: All available threads collaborate to compute a "full gradient" of the entire dataset. This full gradient serves as an anchor for the subsequent inner loop, providing the necessary information to reduce the variance of stochastic updates.
- Inner Loop: Individual threads operate independently and asynchronously. Each thread selects random data instances and computes variance-reduced updates to a shared parameter vector $w$.
The researchers explored two primary coordination schemes for the inner loop:
- Consistent Reading: Threads utilize a lock to ensure they read a consistent version of the parameter vector, where all elements correspond to the same update "age."
- Inconsistent Reading: A lock-free approach where threads read the parameter vector even while other threads are simultaneously updating it. This introduces "stale" or mixed-age data but significantly reduces synchronization overhead.
Theoretical Contributions
A significant contribution of this work is the theoretical proof that AsySVRG maintains a linear convergence rate even when employing inconsistent reading. The authors demonstrate that as long as the delay ($\tau$) between a thread reading the parameters and committing its update is bounded, the algorithm remains robust to the noise introduced by asynchrony.
Experimental Evaluation
The performance of AsySVRG was evaluated against Hogwild! using three high-dimensional benchmark datasets for logistic regression:
- rcv1: Reuters newswire stories (20,242 instances, 47,236 features).
- real-sim: UseNet articles (72,309 instances, 20,958 features).
- news20: A large newsgroup dataset (19,996 instances, >1.3 million features).
Key Results
- Accelerated Convergence: AsySVRG consistently outperformed Hogwild! across all benchmarks. On the
rcv1dataset, AsySVRG reached the target error threshold in just 25.33 seconds, whereas Hogwild! required over 200 seconds to achieve the same accuracy. - Lock Overhead: Experiments confirmed that "Consistent Reading" performed the worst due to locking overhead. The speed gains from lock-free execution far outweighed the potential benefits of data consistency.
- Scalability: The lock-free version of AsySVRG scaled efficiently with thread count. For instance, using 10 threads on the
rcv1dataset yielded a 5.77x speedup over the single-threaded implementation.
Discussion and Limitations
The success of AsySVRG highlights that variance reduction is not only compatible with asynchronous parallelism but is also robust to the resulting staleness in parameter updates. However, several considerations remain for practical deployment:
- Bounded Delay: The theoretical guarantees rely on the assumption that the update delay $\tau$ is bounded. In systems with extreme resource contention, this bound might be exceeded, potentially impacting stability.
- Architecture Specificity: This study focuses on shared-memory multicore systems. Adapting AsySVRG for distributed clusters would require addressing higher network latency and the communication costs associated with computing the full gradient in the outer loop.
- Hyperparameter Tuning: While theory suggests conservative step sizes for guaranteed convergence, the authors found that larger step sizes often yielded better empirical results. Automating the selection of these step sizes remains an area for future research.
Conclusion
AsySVRG represents a significant advancement in parallel optimization, proving that the high-level benefits of variance reduction can be maintained in a lock-free, asynchronous environment. By achieving linear convergence on multicore hardware, it offers a powerful alternative to traditional parallel SGD methods for large-scale machine learning tasks.
Summary updated