Introduction
In the era of big data, machine learning models are increasingly characterized by massive sample sizes and high-dimensional feature spaces. Training these models typically involves minimizing a composite objective function, which consists of a smooth convex loss function and a non-smooth, block-separable regularizer (such as Group Lasso). To handle the computational burden, researchers have turned to asynchronous parallel algorithms, like the well-known Hogwild!, which allow multiple threads to update parameters simultaneously without the overhead of synchronization locks.
However, a significant gap exists in current literature: most lock-free stochastic coordinate descent (SCD) methods are restricted to updating a single coordinate at a time. This limitation stems from the fact that single-float updates are atomic at the hardware level, whereas updating a block of coordinates asynchronously introduces complex memory inconsistencies. This paper introduces AsySBCDVR, a novel algorithm that bridges this gap by enabling lock-free, asynchronous block coordinate descent with integrated variance reduction.
The AsySBCDVR Algorithm
AsySBCDVR (Asynchronous Stochastic Block Coordinate Descent with Variance Reduction) is designed specifically for shared-memory systems, such as multi-core CPUs. It integrates several advanced optimization strategies to ensure both scalability and speed.
Doubly Stochastic Scheme
Unlike standard stochastic gradient descent which only samples data points, AsySBCDVR employs a doubly stochastic approach. At each iteration, the algorithm randomly samples both a mini-batch of data and a specific block of coordinates. This dual sampling allows the algorithm to scale efficiently with respect to both the number of training examples and the number of features.
Variance Reduction and Lock-Free Execution
To accelerate convergence, the algorithm utilizes a variance reduction technique similar to SVRG (Stochastic Variance Reduced Gradient). It operates using a two-layer loop structure:
- Outer Loop: Computes a full gradient across the entire dataset to establish an anchor point.
- Inner Loop: Uses the full gradient to correct the variance of stochastic gradients computed on mini-batches.
Crucially, AsySBCDVR performs these updates in a lock-free manner. Threads read the current parameter vector, compute the proximal update for their assigned block, and write the results back to shared memory without any read or write locks. This maximizes hardware utilization but introduces "perturbed iterates"—discrepancies caused by threads overwriting each other's work.
Theoretical Framework and Convergence
The authors provide a rigorous mathematical analysis to prove that AsySBCDVR remains robust despite the inconsistencies inherent in asynchronous execution. They utilize a "perturbed iterate analysis" framework that explicitly accounts for the time delay (denoted as $\tau$) between a thread's memory read and its subsequent write-back.
Optimal Strong Convexity
A key highlight of the paper is the use of the "optimal strong convexity" condition. This condition is significantly weaker than standard strong convexity, making the algorithm's theoretical guarantees applicable to a much wider range of real-world machine learning problems where traditional strong convexity may not hold.
Key Results
The paper establishes the following theoretical benchmarks:
- Linear Convergence: For objective functions satisfying the optimal strong convexity condition, AsySBCDVR achieves a linear convergence rate.
- Sublinear Convergence: For general smooth convex functions, the algorithm maintains a sublinear convergence rate of $O(1/s)$, where $s$ represents the number of outer epochs.
- Near-Linear Speedup: By eliminating the overhead of synchronization locks, the theoretical bounds suggest that the algorithm can achieve a near-linear speedup as the number of parallel threads increases, provided the step size is appropriately bounded relative to the maximum delay $\tau$.
Conclusion and Future Directions
AsySBCDVR represents a significant theoretical advancement in parallel optimization, extending lock-free analysis from single-coordinate updates to more complex block-coordinate updates. While the paper focuses on mathematical proofs of convergence and speedup, it sets the stage for future empirical studies. Subsequent research is needed to evaluate the algorithm's performance on real-world datasets and to observe how hardware-specific factors, such as memory bandwidth and cache thrashing, interact with the theoretical near-linear speedup guarantees.
Summary updated