Stochastic BFGS Methods
- Stochastic BFGS is a family of quasi-Newton methods that adapts the BFGS update to work with noisy gradient information while preserving inverse-Hessian preconditioning.
- The approach employs same-batch gradient differences, damping, and regularization techniques to stabilize curvature estimates and maintain positive definiteness.
- Variants include limited-memory, block, and Kronecker-factored methods, enabling scalable applications in convex optimization and deep learning.
Stochastic BFGS (S-BFGS) denotes a family of stochastic quasi-Newton methods that adapt the Broyden–Fletcher–Goldfarb–Shanno update to optimization problems in which only noisy gradient information is available. Across the literature, the common objective is to retain the inverse-Hessian preconditioning effect of BFGS while avoiding the instability caused by stochastic gradients, indefinite curvature, large-scale parameter spaces, and the absence of exact line search. The resulting methods range from regularized full-memory recursions for convex stochastic optimization and support vector machines to online limited-memory variants, damped schemes for nonconvex problems, block and sketched updates, Kronecker-factored layerwise methods for deep neural networks, and Bayesian formulations that treat the inverse Hessian as a random object inferred from noisy curvature observations (Mokhtari et al., 2014, Mokhtari et al., 2014, Wang et al., 2014, Mokhtari et al., 2014, Goldfarb et al., 2020, Carlon et al., 10 Jul 2025).
1. Conceptual scope and relation to deterministic BFGS
Deterministic BFGS maintains an inverse-Hessian approximation through the secant relation and the rank-two inverse update
where and . In stochastic optimization, the central difficulty is that is no longer an exact curvature vector but a noisy quantity derived from sampled gradients, so enforcing the deterministic secant equation too literally can destabilize the metric estimate (Wang et al., 2014, Irwin et al., 2020).
The stochastic formulations therefore replace exact gradients by mini-batch or sample-average estimators and embed BFGS-type curvature learning inside a stochastic approximation step. Typical iterations have the form
or, in support-vector-machine and regularized convex formulations,
where or is an unbiased stochastic gradient estimator, approximates the Hessian, and the additional diagonal term is a safeguard against poor curvature estimates (Wang et al., 2014, Mokhtari et al., 2014).
The literature does not treat S-BFGS as a single algorithm. Rather, it comprises a class of methods that differ in how they form curvature pairs, preserve positive definiteness, limit memory, and control stochastic noise. This suggests that “S-BFGS” is best understood as a methodological lineage rather than a unique recursion. That interpretation is reinforced by work on online L-BFGS, stochastic damped-BFGS, regularized stochastic BFGS, stochastic block BFGS, Kronecker-factored quasi-Newton updates, and Bayesian stochastic BFGS variants (Mokhtari et al., 2014, Wang et al., 2014, Gower et al., 2016, Goldfarb et al., 2020, Carlon et al., 10 Jul 2025).
2. Stochastic curvature pairs and secant information
A defining design choice in S-BFGS is how the curvature pair is constructed. Early convex formulations emphasize that the variable displacement is standard,
0
but the gradient difference must be computed on the same mini-batch at both iterates: 1 with 2 and 3 evaluated using the same sampled data. This reuse is presented as essential for keeping the stochastic secant relation consistent; using two independent mini-batches is explicitly identified as insufficient for convergence guarantees in online limited-memory BFGS (Mokhtari et al., 2014, Mokhtari et al., 2014).
In regularized convex S-BFGS, the curvature vector is corrected to
4
which shifts the secant information away from singularity and yields the update
5
In nonconvex stochastic optimization, the analogous construction uses
6
again computed from the same batch, followed by damping before insertion into a BFGS formula (Mokhtari et al., 2014, Wang et al., 2014).
Later work generalizes the secant idea in two different directions. One direction treats inverse-Hessian learning as a stochastic matrix inversion problem. In that view, estimating 7 is posed as solving 8 under symmetry, and the update enforces a sketched condition
9
on a random subspace rather than on a single deterministic direction. Deterministic BFGS becomes a special case of this projection viewpoint (Gower et al., 2018). A second direction uses block curvature information: stochastic block BFGS replaces a single secant relation by the matrix-valued block secant equation
0
where 1 contains multiple sketch directions and 2 supplies several curvature constraints at once (Gower et al., 2016).
A different reinterpretation appears in Bayesian S-BFGS. There, the inverse Hessian is treated as a random matrix with posterior
3
and the update is the maximum a posteriori solution of a quadratic program balancing a prior centered at 4 against the noisy residual 5. This directly models the unreliability of stochastic curvature information instead of enforcing an exact secant equation (Carlon et al., 10 Jul 2025).
3. Positive definiteness, damping, and regularization
The central stability problem in S-BFGS is that stochastic or nonconvex curvature pairs need not satisfy 6. Much of the literature can be read as a sequence of mechanisms for restoring positive definiteness and spectral control.
In regularized stochastic BFGS for convex stochastic optimization, the corrected pair 7 ensures
8
under a lower Hessian bound and 9. This yields 0, hence 1, while the extra term 2 ensures
3
The method therefore falls back toward a regularized stochastic gradient step when curvature information is unreliable (Mokhtari et al., 2014, Mokhtari et al., 2014).
For nonconvex stochastic optimization, stochastic damped-BFGS introduces a Powell-style damping coefficient
4
and forms
5
The ensuing update
6
guarantees 7 if 8 (Wang et al., 2014).
Large-scale nonconvex optimization motivated a further combination of damping and regularization. In Sd-REG-LBFGS, the paper argues that simply composing standard damping with standard regularization can fail, and instead defines
9
with 0 chosen so that, if 1,
2
The resulting update preserves positive definiteness and imposes a lower eigenvalue bound 3 (Chen et al., 2019).
Deep-network quasi-Newton methods introduce an additional issue: the Hessian is both indefinite and highly variable. The Kronecker-factored BFGS and L-BFGS methods in deep learning therefore use a double damping strategy. First, a Powell-style damping mixes 4 with 5 to guarantee a lower bound. Second, a Levenberg–Marquardt-like stabilization using 6 is applied to control the size of both Hessian and inverse-Hessian approximations. The paper derives bounds of the form
7
with the practical intent of controlling both lower and upper spectral growth (Goldfarb et al., 2020).
A related but distinct response to noise is secant penalization. SP-BFGS replaces the hard secant condition by a penalty term and produces an update that interpolates smoothly between full BFGS and no update, with the relaxed positive-definiteness condition
8
This method is not presented as a classical S-BFGS algorithm, but it is explicitly situated alongside stochastic and noisy-gradient quasi-Newton methods and addresses the same fragility of overwriting curvature information under noise (Irwin et al., 2020).
4. Memory limitation, sketching, and structural approximations
Scalability is a defining fault line in the S-BFGS literature. Full dense updates become impractical in high dimension, so many influential developments are structured or limited-memory variants.
| Variant | Core mechanism | Representative setting |
|---|---|---|
| RES / regularized S-BFGS | corrected pair 9, progress term 0 | convex stochastic optimization, SVMs (Mokhtari et al., 2014) |
| oLBFGS | fixed window of 1 curvature pairs, two-loop recursion | large-scale machine learning (Mokhtari et al., 2014) |
| Stochastic block BFGS | block secant 2 | variance-reduced ERM (Gower et al., 2016) |
| K-BFGS / K-BFGS(L) | layerwise Kronecker factors 3 | deep feed-forward neural networks (Goldfarb et al., 2020) |
| Bayesian L-S-BFGS | posterior-weighted limited-memory update with pair precision 4 | stochastic optimization with small batch sizes (Carlon et al., 10 Jul 2025) |
Online limited-memory BFGS is the canonical storage-reduction strategy. It stores only the most recent 5 pairs 6, computes search directions through the standard two-loop recursion, and reduces memory and compute from 7 for dense stochastic BFGS to 8. The method emphasizes that using a common sample set at consecutive iterates is necessary for its convergence proof and that a scaled identity initialization
9
is part of the stability argument (Mokhtari et al., 2014).
Stochastic block BFGS increases the amount of curvature extracted per update rather than reducing it. The update is defined as a projection onto multiple curvature constraints,
0
with closed form
1
The paper also develops limited-memory and factored forms 2, together with Gaussian, previous-direction, and self-conditioning sketches (Gower et al., 2016).
Deep-network S-BFGS variants use structure rather than memory truncation alone. For each layer 3, the gradient and Hessian block satisfy
4
which motivates the approximation
5
The inverse-Hessian factor for a layer is taken as
6
and the parameter update becomes
7
The algorithm performs two forward-backward passes on the same minibatch and updates the 8 factor with BFGS or L-BFGS, while 9 is handled by Hessian-action BFGS with Levenberg–Marquardt regularization (Goldfarb et al., 2020).
Variable sample-size stochastic quasi-Newton methods extend the limited-memory idea into regimes with smoothing and regularization. In that framework,
0
with sample size 1 increasing over time, and the rsL-BFGS update is designed to preserve secant structure even when the objective itself is being altered by smoothing and regularization (Jalilzadeh et al., 2018).
5. Convergence guarantees and complexity statements
For strongly convex stochastic optimization, several S-BFGS variants obtain almost sure convergence together with an expected 2 decay of the objective gap. Regularized stochastic BFGS proves
3
under bounded sample Hessians, bounded second moments of stochastic gradients, 4, and Robbins–Monro stepsizes, and with the harmonic rule 5 derives
6
The support-vector-machine adaptation proves the same qualitative conclusions in classifier training, formulated as almost sure convergence to the optimal classifier and “linear in expectation” in the stochastic-approximation sense (Mokhtari et al., 2014, Mokhtari et al., 2014).
Online limited-memory BFGS establishes a similar rate under strong convexity and bounded sample Hessians. It proves uniform spectral bounds
7
through trace and determinant control, obtains the one-step inequality
8
and then shows almost sure convergence and
9
for harmonic stepsizes (Mokhtari et al., 2014).
For nonconvex stochastic optimization, the general SQN framework assumes only stochastic first-order oracle access and requires uniform bounds
0
Under Lipschitz continuity of 1, lower boundedness, unbiased bounded-variance stochastic gradients, and square-summable but non-summable stepsizes, the method satisfies
2
Its randomized counterpart RSQN yields an 3 worst-case SFO complexity for obtaining an 4-solution with 5 (Wang et al., 2014).
The deep-learning K-BFGS(L) analysis is more conservative. The proof applies to a variant with damping/skipping for 6, exact inversion for 7, and decreasing stepsizes 8 with 9. Under smoothness, bounded-below objective, unbiased stochastic gradients with bounded variance, and bounded activations, the paper shows
0
and then derives
1
iterations (Goldfarb et al., 2020).
Sd-REG-LBFGS targets large-scale nonconvex stochastic optimization and proves uniform matrix bounds
2
together with the average gradient-norm estimate
3
under bounded Hessians of the random function and bounded stochastic-gradient variance. The stated iteration complexity for reaching an 4-stationarity criterion is
5
Two additional strands sharpen the theoretical landscape. Accelerated stochastic matrix inversion proves a linear convergence rate
6
for the inversion primitive, improving over the non-accelerated sketch-and-project rate 7, and then transfers this acceleration to BFGS-like matrix updates (Gower et al., 2018). Variable sample-size SQN proves linear mean convergence and oracle complexity 8 in strongly convex smooth regimes, retains linear convergence under Moreau smoothing for smoothable nonsmooth problems, and obtains sublinear rates such as 9 and 00 in merely convex settings (Jalilzadeh et al., 2018).
6. Empirical behavior, distinctions within the literature, and recurrent misconceptions
Empirically, the earliest convex and SVM-focused papers report substantial gains over plain SGD. In the support-vector-machine study with squared hinge loss, for 01 the stochastic BFGS method reaches 02 after about 03 processed samples, whereas SGD needs about 04. For 05, after processing 06 samples, S-BFGS attains 07, whereas SGD is still at about 08. Using a test set of 09 points and repeating the experiment 10 times, the mean test accuracy of S-BFGS is about 11, while SGD often tops out near 12 (Mokhtari et al., 2014).
Large-scale online limited-memory BFGS shows that the curvature benefit can persist in extremely high dimension. On a search engine advertising logistic-regression problem with
13
the paper reports that oLBFGS reaches a low log-likelihood value after processing only about 14 feature vectors, while SGD is still far from that level after 15. The conclusion stated is that oLBFGS can train the regressor using less than 16 of the data required by SGD to obtain similar classification accuracy (Mokhtari et al., 2014).
Deep-learning experiments broaden the application range but also show the importance of structure. Kronecker-factored K-BFGS and especially K-BFGS(L) are tested on MNIST, FACES, and CURVES with 9- and 13-layer ReLU autoencoders. The reported finding is that these methods are consistently better than first-order methods in training loss and often substantially better in test error, while matching or nearly matching KFAC; they also often achieve comparable performance to KFAC with less computation per iteration because they avoid the expensive matrix inversions required by KFAC (Goldfarb et al., 2020).
Variance-reduced block/sketched quasi-Newton methods and Bayesian limited-memory methods extend the empirical record further. Stochastic block BFGS combined with SVRG is tested on large-scale logistic regression using LIBSVM datasets and is reported as more robust and substantially outperforming current state-of-the-art methods, with the previous-direction sketch often best overall (Gower et al., 2016). Bayesian L-S-BFGS is evaluated on multinomial logistic regression with 17-regularization on madelon, mushrooms, MNIST, and CIFAR-10, with dimensionality up to 18. The reported result is that L-S-BFGS is consistently faster and more robust than SdLBFGS and oLBFGS across all datasets, and that it tolerates larger step sizes than the competing limited-memory stochastic quasi-Newton methods (Carlon et al., 10 Jul 2025).
Several misconceptions recur in this literature. A first misconception is that S-BFGS simply means “BFGS with minibatch gradients.” The repeated use of same-batch gradient differences, damping, regularization, pair rejection, structured factorizations, sketching, and limited memory indicates otherwise (Wang et al., 2014, Goldfarb et al., 2020). A second misconception is that all stochastic quasi-Newton papers study the same object. One stochastic L-BFGS analysis explicitly notes that it is not about classical full-memory S-BFGS; full-memory BFGS appears there only as background or as a proof device for spectral bounds (Zhao et al., 2017). A third misconception is that more aggressive inverse-Hessian learning is always better. The noisy-gradient literature repeatedly documents the opposite phenomenon: naive or lightly modified BFGS can diverge, oscillate, or amplify noise, whereas conservative curvature assimilation, damping, or penalized secant enforcement can improve robustness even when it moves the metric toward the true inverse more slowly (Irwin et al., 2020, Carlon et al., 10 Jul 2025).