Implementation of Stochastic Quasi-Newton's Method in PyTorch

Yingkai Li, Huidong Liu
5/7/2018
cs.LGmath.OCstat.ML

Official code: harryliew/SdLBFGS (26 stars, Python, last commit 2018-10-02).

Abstract

In this paper, we implement the Stochastic Damped LBFGS (SdLBFGS) for stochastic non-convex optimization. We make two important modifications to the original SdLBFGS algorithm.

Show full abstract

First, by initializing the Hessian at each step using an identity matrix, the algorithm converges better than original algorithm. Second, by performing direction normalization we could gain stable optimization procedure without line search. Experiments on minimizing a 2D non-convex function shows that our improved algorithm converges better than original algorithm, and experiments on the CIFAR10 and MNIST datasets show that our improved algorithm works stably and gives comparable or even better testing accuracies than first order optimizers SGD, Adagrad, and second order optimizers LBFGS in PyTorch.

View on arXivView PDF

Code Implementations(1)

harryliew/SdLBFGSOfficial100%
2610PythonMay 7, 20188 years ago

Similar Papers

Cite this paper

@article{li2018implementation,
  title  = {Implementation of Stochastic Quasi-Newton's Method in PyTorch},
  author = {Yingkai Li and Huidong Liu},
  year   = {2018},
  eprint = {1805.02338},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.02338}
}

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/1805.02338.svg)](https://codeofpaper.com/paper/1805.02338)

Discussion