Comparing BFGS and OGR for Second-Order Optimization

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Przybysz, Adrian, Kołek, Mikołaj, Sobota, Franciszek, Duda, Jarek
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915659598790656
author Przybysz, Adrian
Kołek, Mikołaj
Sobota, Franciszek
Duda, Jarek
author_facet Przybysz, Adrian
Kołek, Mikołaj
Sobota, Franciszek
Duda, Jarek
contents Estimating the Hessian matrix, especially for neural network training, is a challenging problem due to high dimensionality and cost. In this work, we compare the classical Sherman-Morrison update used in the popular BFGS method (Broy-den-Fletcher-Goldfarb-Shanno), which maintains a positive definite Hessian approximation under a convexity assumption, with a novel approach called Online Gradient Regression (OGR). OGR performs regression of gradients against positions using an exponential moving average to estimate second derivatives online, without requiring Hessian inversion. Unlike BFGS, OGR allows estimation of a general (not necessarily positive definite) Hessian and can thus handle non-convex structures. We evaluate both methods across standard test functions and demonstrate that OGR achieves faster convergence and improved loss, particularly in non-convex settings.
format Preprint
id arxiv_https___arxiv_org_abs_2512_06969
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Comparing BFGS and OGR for Second-Order Optimization
Przybysz, Adrian
Kołek, Mikołaj
Sobota, Franciszek
Duda, Jarek
Machine Learning
Artificial Intelligence
Estimating the Hessian matrix, especially for neural network training, is a challenging problem due to high dimensionality and cost. In this work, we compare the classical Sherman-Morrison update used in the popular BFGS method (Broy-den-Fletcher-Goldfarb-Shanno), which maintains a positive definite Hessian approximation under a convexity assumption, with a novel approach called Online Gradient Regression (OGR). OGR performs regression of gradients against positions using an exponential moving average to estimate second derivatives online, without requiring Hessian inversion. Unlike BFGS, OGR allows estimation of a general (not necessarily positive definite) Hessian and can thus handle non-convex structures. We evaluate both methods across standard test functions and demonstrate that OGR achieves faster convergence and improved loss, particularly in non-convex settings.
title Comparing BFGS and OGR for Second-Order Optimization
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2512.06969