Efficient Implementation of Second-Order Stochastic Approximation Algorithms in High-Dimensional Problems

Jingyi Zhu, Long Wang, James C. Spall
6/23/2019
math.OCcs.LG

Official code: jingyi-zhu/Fast2SPSA (13 stars, MATLAB, MIT, last commit 2020-11-27).

Abstract

Stochastic approximation (SA) algorithms have been widely applied in minimization problems when the loss functions and/or the gradient information are only accessible through noisy evaluations. Stochastic gradient (SG) descent---a first-order algorithm and a workhorse of much machine learning---is perhaps the most famous form of SA.

Show full abstract

Among all SA algorithms, the second-order simultaneous perturbation stochastic approximation (2SPSA) and the second-order stochastic gradient (2SG) are particularly efficient in handling high-dimensional problems, covering both gradient-free and gradient-based scenarios. However, due to the necessary matrix operations, the per-iteration floating-point-operations (FLOPs) cost of the standard 2SPSA/2SG is $O(p^3)$, where $p$ is the dimension of the underlying parameter. Note that the $O(p^3)$ FLOPs cost is distinct from the classical SPSA-based per-iteration $O(1)$ cost in terms of the number of noisy function evaluations. In this work, we propose a technique to efficiently implement the 2SPSA/2SG algorithms via the symmetric indefinite matrix factorization and show that the FLOPs cost is reduced from $O(p^3)$ to $O(p^2)$. The formal almost sure convergence and rate of convergence for the newly proposed approach are directly inherited from the standard 2SPSA/2SG. The improvement in efficiency and numerical stability is demonstrated in two numerical studies.

View on arXivView PDF

Code Implementations(1)

MIT

The MATLAB code below implements the second-order SPSA (simultaneous perturbation stochastic approximation) and second-order SG (stochastic gradient) in an efficient manner, such that the FLOPS-per-iteration is reduced from $O(p^3)$ to $O(p^2)$ where $p$ is the dimension of the underlying parameter. See more details in "Efficient Implementation of Second-Order Stochastic Approximation Algorithms in High-Dimensional Problems" (to appear in IEEE TNNLS).

132MATLABAug 23, 20196 years agoMIT

Similar Papers

Cite this paper

@article{zhu2019efficient,
  title  = {Efficient Implementation of Second-Order Stochastic Approximation Algorithms in High-Dimensional Problems},
  author = {Jingyi Zhu and Long Wang and James C. Spall},
  year   = {2019},
  eprint = {1906.09533},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.09533}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.09533.svg)](https://codeofpaper.com/paper/1906.09533)

Discussion