Abstract
Composition optimization, characterized by nested objective functions of the form $f(x) = F(G(x))$, is essential for various machine learning applications such as reinforcement learning and risk management. However, existing stochastic composition algorithms are primarily designed for sequential execution, limiting their scalability. This paper proposes two asynchronous parallel algorithms, AsyVRSC-Shared and AsyVRSC-Distributed, which leverage variance reduction to achieve linear convergence and provable linear speedups. By effectively mitigating the impact of stale gradients through variance reduction, these algorithms significantly reduce training time on large-scale datasets while maintaining convergence guarantees.
Introduction
In standard machine learning, the objective is typically to minimize a simple average of loss functions. However, many advanced problems require composition optimization, where the objective is a nested function: $f(x) = F(G(x))$. This structure is prevalent in reinforcement learning (evaluating policies) and finance (portfolio risk management).
Due to this nested structure, standard Stochastic Gradient Descent (SGD) is inefficient, as calculating the gradient requires computing the inner function $G(x)$ fully. While single-machine algorithms like Variance Reduced Stochastic Composition (VRSC) have been developed, they do not scale to massive datasets. Naive asynchronous parallelization often fails because workers use "stale" (delayed) weights, and the nested functions amplify these errors. This paper addresses the challenge of making composition optimization work efficiently in fast, asynchronous, parallel environments.
Methods
The authors propose two Asynchronous Variance Reduced Stochastic Composition (AsyVRSC) algorithms, tailored to common parallel computing architectures:
- AsyVRSC-Shared (For Shared-Memory): Designed for multi-core CPUs or multi-GPU setups, this algorithm uses a "lock-free" approach where workers read and write to a shared memory pool. To prevent destructive overwrites, it updates only a single coordinate of the parameter vector at a time as an atomic operation.
- AsyVRSC-Distributed (For Master-Worker Clusters): Designed for distributed networks, a master node holds the parameters while worker nodes independently pull parameters, compute gradients locally, and send them back for atomic updates.
Both algorithms adapt the variance reduction technique (specifically SVRG) to an asynchronous setting using a two-phase loop. As shown in the worker-side procedure for the distributed version, the algorithm alternates between a synchronous phase to calculate a full gradient snapshot and an asynchronous phase for rapid stochastic updates.
Theoretical Insights
- Variance Reduction Absorbs Delays: The authors prove mathematically that variance reduction does more than just speed up convergence; it actively helps absorb the noise introduced by asynchronous time delays.
- Dimensionality vs. Delay: In shared-memory systems, linear speedup is achievable as long as the maximum time delay is bounded by the square root of the data's dimensionality. High-dimensional problems effectively help "hide" these delays.
- Sparsity as a Scalability Driver: For distributed clusters, linear speedup is guaranteed if the gradients are sparse. Sparsity reduces the likelihood of conflicting updates, allowing the system to scale more effectively.
Experimental Evaluation
The algorithms were evaluated using synthetic datasets simulating real-world composition optimization problems:
- Reinforcement Learning: Synthetic Markov Decision Process (MDP) datasets with 2,000 states and varying feature dimensions.
- Portfolio Management: Synthetic financial datasets with 10,000 samples and 300 features, tuned for different sparsity levels.
Key Results
- Theoretical Guarantees: Both algorithms achieve a geometric (linear) convergence rate for strongly convex loss functions, matching the best single-machine theoretical performance in a parallel setting.
- Empirical Speedup: Testing with up to 16 threads/workers demonstrated near-linear speedups in both running time and iteration count. AsyVRSC significantly outperformed synchronous parallel baselines like SynSCGD and SynVRSC due to the lack of locking overhead.
- Architecture Performance: AsyVRSC-Shared was most effective for high-dimensional problems, while AsyVRSC-Distributed excelled with highly sparse data.
Limitations and Future Work
The current theoretical proofs rely on the assumption of strong convexity, which may not apply to non-convex deep learning problems. Additionally, the distributed algorithm's guarantees depend on data sparsity, and the mathematical model assumes bounded time delays. Future research could extend these methods to handle unbounded delays or non-convex objective functions, further broadening the applicability of asynchronous composition optimization.
Summary updated