Saved in:
Bibliographic Details
Main Authors: Cobb, Adam D., Baydin, Atılım Güneş, Pearlmutter, Barak A., Jha, Susmit
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.10419
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914917593907200
author Cobb, Adam D.
Baydin, Atılım Güneş
Pearlmutter, Barak A.
Jha, Susmit
author_facet Cobb, Adam D.
Baydin, Atılım Güneş
Pearlmutter, Barak A.
Jha, Susmit
contents This paper introduces a second-order hyperplane search, a novel optimization step that generalizes a second-order line search from a line to a $k$-dimensional hyperplane. This, combined with the forward-mode stochastic gradient method, yields a second-order optimization algorithm that consists of forward passes only, completely avoiding the storage overhead of backpropagation. Unlike recent work that relies on directional derivatives (or Jacobian--Vector Products, JVPs), we use hyper-dual numbers to jointly evaluate both directional derivatives and their second-order quadratic terms. As a result, we introduce forward-mode weight perturbation with Hessian information (FoMoH). We then use FoMoH to develop a novel generalization of line search by extending it to a hyperplane search. We illustrate the utility of this extension and how it might be used to overcome some of the recent challenges of optimizing machine learning models without backpropagation. Our code is open-sourced at https://github.com/SRI-CSL/fomoh.
format Preprint
id arxiv_https___arxiv_org_abs_2408_10419
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Second-Order Forward-Mode Automatic Differentiation for Optimization
Cobb, Adam D.
Baydin, Atılım Güneş
Pearlmutter, Barak A.
Jha, Susmit
Machine Learning
This paper introduces a second-order hyperplane search, a novel optimization step that generalizes a second-order line search from a line to a $k$-dimensional hyperplane. This, combined with the forward-mode stochastic gradient method, yields a second-order optimization algorithm that consists of forward passes only, completely avoiding the storage overhead of backpropagation. Unlike recent work that relies on directional derivatives (or Jacobian--Vector Products, JVPs), we use hyper-dual numbers to jointly evaluate both directional derivatives and their second-order quadratic terms. As a result, we introduce forward-mode weight perturbation with Hessian information (FoMoH). We then use FoMoH to develop a novel generalization of line search by extending it to a hyperplane search. We illustrate the utility of this extension and how it might be used to overcome some of the recent challenges of optimizing machine learning models without backpropagation. Our code is open-sourced at https://github.com/SRI-CSL/fomoh.
title Second-Order Forward-Mode Automatic Differentiation for Optimization
topic Machine Learning
url https://arxiv.org/abs/2408.10419