Abstract
We describe ASAGA, an asynchronous parallel version of the incremental gradient algorithm SAGA that enjoys fast linear convergence rates. Through a novel perspective, we revisit and clarify a subtle technical flaw in previous asynchronous convergence proofs, showing that linear speedups are possible even without the strict sparsity requirements previously thought necessary.
Introduction
In modern machine learning, optimization often involves minimizing a finite sum of functions, typically representing a loss function across a massive dataset. Incremental gradient methods, such as SAGA, have become popular due to their fast convergence and low memory footprint. However, to scale these methods to the size of contemporary datasets, parallelization across multi-core processors is essential.
The primary challenge in parallelizing these algorithms is managing asynchrony. In lock-free systems, multiple threads access and modify shared memory simultaneously. This leads to "stale" information, where a thread's gradient calculation is based on a parameter value that has already been updated by others. Proving convergence under such chaotic conditions is mathematically demanding and has historically relied on flawed labeling frameworks or overly restrictive sparsity assumptions.
The ASAGA Algorithm
ASAGA is the first fully asynchronous, lock-free version of SAGA. To make SAGA suitable for parallel environments, the authors introduced two key modifications:
- Sparse SAGA Updates: Standard SAGA requires dense updates to every parameter at each step, which causes excessive thread contention. ASAGA utilizes a sparse variant where only parameters relevant to the current data point are updated. A reweighting technique ensures these updates remain unbiased.
- "After Read" Labeling Framework: The paper identifies a fundamental flaw in existing asynchronous analysis: if gradient computation time depends on the data point, traditional iteration labeling introduces bias. ASAGA’s framework labels iterations based on when a thread finishes reading data, ensuring random sampling remains independent of the system state.
As shown in the algorithm comparison above, the implementation (Algorithm 2) handles the practicalities of inconsistent reads and atomic updates in shared memory, while the analyzed version (Algorithm 1) provides the theoretical foundation for convergence.
Key Insights and Theoretical Contributions
A major contribution of this work is proving that sparsity is not a strict requirement for linear speedups in asynchronous optimization. While previous frameworks like Hogwild! emphasized sparsity, ASAGA demonstrates that for "well-conditioned" problems—those with smooth and curved optimization surfaces—linear speedups are achievable even on dense data.
Furthermore, the transition from "lagged" updates used in previous SAGA implementations to "anticipated" updates in Sparse SAGA significantly simplifies implementation in lock-free, parallel environments.
Empirical Results
The authors evaluated ASAGA against several benchmarks, including SAGA, SVRG, and Hogwild! (asynchronous SGD), across three datasets: RCV1 (sparse text), URL (highly sparse), and Covtype (dense).
The experimental results confirm the theoretical predictions:
- Convergence: ASAGA (running on 10 cores) converges significantly faster in terms of wall-clock time compared to its sequential counterparts and other asynchronous methods like Hogwild!.
- Speedup: ASAGA achieves near-linear speedups on up to 20 cores. Beyond this point, performance gains begin to taper, likely due to hardware-level bottlenecks such as memory bus saturation and cache hierarchy limitations rather than algorithmic failures.
Conclusion
ASAGA provides a robust, theoretically grounded, and practically efficient method for parallelizing incremental gradient descent. By fixing the labeling framework for asynchronous analysis and demonstrating that sparsity is not a prerequisite for speedup, this work sets a new standard for multi-core optimization research. Future work may involve extending these principles to distributed systems, where communication costs between nodes present a different set of challenges.
Summary updated