arXiv:2610.02182cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02182

SoftServe: A Scalable Quasi-Newton Method for Deep Learning

Joohwan Ko, Tetiana Parshakova, Diana Cai, Robert M. Gower

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Quasi-Newton (QN) methods have long been among the most effective methods for large-scale unconstrained convex optimization. Two obstacles have limited their use in deep learning: non-convexity and enormous parameter sizes. We introduce SOFTSERVE, a family of QN methods designed to overcome these obstacles without line searches or ad hoc curvature corrections. SOFTSERVE derives positive-definite curvature estimates from the variational objective of Berglund et al. (2025), even in the presence of negative curvature. We develop diagonal and Kronecker-factored variants that preserve positive definiteness by construction and scale to massive neural networks. Finally, SOFTSERVE relies on the stable coupled Newton–Schulz iteration for the required matrix operations, replacing costly matrix decompositions with GPU-friendly matrix multiplications. SOFTSERVE excels on problems that are severely ill-conditioned, including tasks such as recurrent networks, deep autoencoders, physics-informed neural networks, and a 136M-parameter physics-informed diffusion model, often achieving lower losses than established baselines including Adam, Muon, and SOAP.

1 INTRODUCTION

Quasi-Newton methods, such as the celebrated BFGS method (Broyden, 1970; Fletcher, 1970; Goldfarb, 1970; Shanno, 1970), are among the most effective methods for large-scale, convex deterministic optimization. Deep learning has led to renewed interest in adapting these methods to train large networks (Goldfarb et al., 2020; Ren et al., 2022). However, applying these methods to deep learning requires curvature estimates that can accommodate non-convex objectives and gradient noise while remaining computationally efficient.

To see how curvature enters the optimization update, consider a generic second-order method. For parameters x∈RDx \in \mathbb{R}^D, second-order methods typically take steps of the form

x+=x−γHg.x^{+}=x-\gamma H g.

Here x+x^+ is the updated parameter vector, and γ>0\gamma > 0 is the step size. The vector g∈RDg \in \mathbb{R}^D is the (stochastic) gradient at xx, and the matrix H∈RD×D\boldsymbol{H} \in \mathbb{R}^{D \times D} is an estimate of the inverse Hessian.

Non-convexity of the objective poses a fundamental challenge for second-order optimization methods because the true Hessian could have negative eigenvalues. If the estimate HH has a negative eigenvalue, then the update direction −Hg-Hg could be an ascent direction, which would increase the loss function. This is one of the reasons why first-order methods are often preferred in deep learning: one can always guarantee descent (in expectation). For a second-order method to be applicable in deep learning, the estimate HH must always be positive definite, even in the presence of directions of negative curvature.

For quasi-Newton methods, such as BFGS, maintaining positive definiteness is at odds with the main tool used to measure curvature, namely the secant equation. In the presence of negative curvature, enforcing the secant equation can inadvertently force the Hessian estimate to become indefinite, as we will show in Section 2. The standard remedy is to use sophisticated line search procedures to

†^{\dagger}Work done while at the Flatiron Institute. Email: joohwanko@cs.umass.edu.

2^{2}Equal senior authors.

only move in directions of positive curvature (Nocedal & Wright, 2006; Wolfe, 1969). But these line searches require access to the full batch loss, which is too costly and not feasible in the stochastic setting of deep learning.

Beyond the challenges arising from non-convexity and stochastic objectives, the sheer scale of modern deep learning models makes storing and updating dense curvature estimates prohibitively expensive. A standard approach for reducing this cost is the limited memory approach of L-BFGS (Liu & Nocedal, 1989), which typically uses only 10 pairs of parameter and gradient differences to implicitly build the estimate H. But storing 10 pairs of parameters and gradients would require storing 10 copies of our model and 10 copies of the gradient, increasing the memory storage by 20-fold. This is infeasible for all but small models.

To scale to modern deep learning, it is common to approximate the matrix H by a diagonal matrix (Duchi et al., 2011; Tieleman & Hinton, 2012; Kingma & Ba, 2015) or a Kronecker-structured matrix (Martens & Grosse, 2015; Gupta et al., 2018). For quasi-Newton optimization, while Kronecker-structured updates have been proposed for applying BFGS to deep learning (Goldfarb et al., 2020; Ren et al., 2022), this approach still needs to be applied with mechanisms for handling non-convexity and stochasticity, limiting its applicability.

A promising new direction is to reconsider how curvature enters the quasi-Newton update. Recently, Berglund et al. (2025) show that by replacing the secant equation with a soft secant penalty we can ensure that our Hessian estimate is positive definite, even in the presence of negative curvature. But Berglund et al. (2025) only consider dense estimates, making their approach infeasible for deep learning.

We introduce SOFTSERVE (Soft Secant Equation Regularized with Variational Entropy), a quasi-Newton framework that combines the flexibility of a soft secant constraint (Li, 2019; Berglund et al., 2025) with the computational advantages of a structured matrix approximation of the inverse Hessian. Optimizing within diagonal and Kronecker-structured families yields novel updates that preserve positive definiteness, without full batch evaluations or line searches. We develop efficient algorithms for computing these updates using modern GPU-friendly numerical linear algebra methods, such as variants of Newton-Schulz (Amsel et al., 2026; Higham, 2008), allowing SOFTSERVE to scale to large neural networks.

We then demonstrate the utility of SOFTSERVE on several deep learning tasks where curvature information is fundamental—such as severely ill-conditioned tasks—including recurrent networks, autoencoders, and physics-informed models (such as a 136M-parameter diffusion model). On these tasks we find that SOFTSERVE often outperforms modern methods such as Adam, Muon, and SOAP. A Python implementation of SOFTSERVE is available at https://github.com/joohwanko/SoftServe.

References (39)