Asynchronous Stochastic Quasi-Newton MCMC for Non-Convex Optimization

Umut Simsekli, Çagatay Yildiz, Thanh Huy Nguyen, A. Taylan Cemgil, Gaël Richard

Abstract

This paper introduces as-L-BFGS, an asynchronous parallel stochastic L-BFGS algorithm designed for non-convex optimization. By leveraging the framework of Stochastic Gradient Markov Chain Monte Carlo (SG-MCMC), the method incorporates second-order curvature information while maintaining the scalability of asynchronous execution. Theoretical analysis demonstrates global convergence, and empirical results on large-scale matrix factorization tasks show significant speedups and improved convergence over state-of-the-art first-order and synchronous second-order methods.

Introduction

Modern machine learning often involves minimizing non-convex loss functions over massive datasets. While first-order methods like Stochastic Gradient Descent (SGD) are standard, they lack the efficiency of Quasi-Newton methods like L-BFGS, which utilize curvature information to accelerate convergence. However, scaling L-BFGS to large-scale distributed settings faces two primary challenges: the noise inherent in stochastic gradients and the synchronization bottlenecks caused by "straggler" workers in parallel environments.

Methodology: as-L-BFGS

The proposed as-L-BFGS algorithm addresses these challenges by treating optimization as a sampling problem from a target distribution concentrated around the global minimum.

Asynchronous Architecture and Stability

The algorithm employs a master-worker architecture where workers compute updates independently and asynchronously. To mitigate the instability caused by "stale" updates (updates based on outdated model parameters), the authors introduce a momentum variable. This momentum acts as a stabilizer, smoothing the optimization path and "repairing" numerical inconsistencies introduced by asynchrony.

Local Curvature Estimation

To maintain reliable curvature estimates, each worker maintains its own local L-BFGS memory. This ensures that the gradient differences used to estimate the Hessian remain internally consistent. Furthermore, workers use overlapping data subsamples to compute consistent gradients for curvature estimation, reducing the impact of stochastic noise.

Experimental Evaluation

The researchers evaluated as-L-BFGS against asynchronous SGD (a-SGD) and mini-batch L-BFGS (mb-L-BFGS) using both synthetic models and the MovieLens (1M, 10M, 20M) datasets for matrix factorization.

Robustness to Worker Variation

A key advantage of asynchrony is its resilience to variations in worker speeds. As shown in the figure below, as-L-BFGS maintains a relatively constant execution time even as the variance in worker performance ($\sigma_w^2$) increases, whereas synchronous methods like mb-L-BFGS suffer significantly from straggler effects.

Comparison of execution time across varying worker speed distributions. as-L-BFGS remains robust to high variation compared to synchronous mb-L-BFGS.

Large-Scale Performance

On real-world recommendation system tasks, as-L-BFGS consistently outperformed both first-order asynchronous methods and synchronous second-order methods.

Convergence performance on MovieLens datasets. as-L-BFGS (purple) reaches lower RMSE and gradient norms faster than a-SGD (blue) and mb-L-BFGS (orange).

As illustrated in the convergence plots, as-L-BFGS achieves lower Root Mean Square Error (RMSE) and faster reduction in gradient norms across all MovieLens dataset sizes. The use of curvature information allows for more "informed" steps, leading to superior convergence rates in wall-clock time.

Discussion and Conclusion

The integration of SG-MCMC theory with asynchronous L-BFGS provides a robust framework for non-convex optimization. The use of momentum and local memory effectively counters the challenges of staleness and noise. While the algorithm shows near-linear speedup with increasing workers, there is an inherent "step-size ceiling" where extreme staleness requires smaller steps, eventually limiting parallel gains. Future work will focus on optimizing L-BFGS matrix-vector products and exploring tighter local convergence guarantees.

Summary updated

BibTeX
@inproceedings{simsekli2018asynchronous,
  author = {Umut Simsekli and Çagatay Yildiz and Thanh Huy Nguyen and A. Taylan Cemgil and Gaël Richard},
  title = {{Asynchronous Stochastic Quasi-Newton MCMC for Non-Convex Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure