Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Learning the shape of the valley as you go
Newton’s method measures the valley’s curvature directly at every step: accurate but expensive. Gradient descent ignores curvature: cheap but slow. A quasi-Newton method takes the middle road. After each step, it notes how much the slope changed and uses that to update its mental map of the curvature. After a few steps its map is good enough to take Newton-like strides, without ever measuring curvature directly.
L-BFGS keeps only the last few observations, so it works even with millions of unknowns.
L-BFGS is the workhorse for smooth, deterministic problems: calibration, trajectory optimization, physics-informed networks, neural style transfer and many scientific-ML fits. SciPy and PyTorch both ship it. Its bound-constrained variant, L-BFGS-B, handles box constraints.
- 1. Quasi-Newton methods learn the curvature from…
- 2. L-BFGS remembers…
- 3. Compared with gradient descent, BFGS is usually…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The secant condition
Let and . Taylor gives . A quasi-Newton approximation (or ) must satisfy
The BFGS update (inverse form)
With :
The direction is , followed by a line search. Each step costs with no linear solve, compared with Newton’s .
- 1. The (inverse) secant condition is…
- 2. A BFGS update is a rank-… modification
- 3. The cost per BFGS iteration (dense) is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Properties
- Positive definiteness: if and , then . The Wolfe curvature condition (A6.1-5) guarantees , so every direction is a descent direction.
- Superlinear convergence: near a strong minimum, (Dennis and Moré, 1974). That’s faster than any linear rate, though not quite quadratic.
- Quadratics: with exact line searches, BFGS terminates in at most steps, and equals the inverse Hessian.
- Self-correction: bad early approximations are repaired as new curvature arrives.
L-BFGS
Store only the last pairs (typically –20). The two-loop recursion computes in time and memory without ever forming . Start from with (a curvature-scaled identity). This is how 10⁶-variable problems are solved on a laptop.
Limitations
- Stochastic gradients break the secant information. Mini-batch noise makes unreliable, so L-BFGS is mostly used full-batch or with careful variance control (Byrd et al., 2016).
- Non-convex problems: skip or damp updates when . SR1 updates allow indefinite approximations inside trust regions.
- 1. BFGS keeps H positive definite as long as…
- 2. BFGS converges…
- 3. L-BFGS memory scales as…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Deriving the secant condition
By the mean-value theorem, , the average Hessian along the step applied to . Requiring makes the model’s gradient exact at both endpoints. ∎
BFGS satisfies the secant condition
Note . So . ∎
Positive definiteness
For , let . Then . If , the second term is positive (since ). If , then and the first term is positive. ∎
BFGS as the closest update
BFGS solves s.t. , , in a weighted Frobenius norm. It’s the least change consistent with the new information (Goldfarb, 1970).
Exercise 3.1: How many steps does BFGS (exact line search) need on a 5-D quadratic?
At most 5. The search directions are conjugate, and BFGS is equivalent to conjugate gradients on quadratics with exact line searches. That’s why it’s closely related to Krylov methods (A2.4-7).
- 1. (I − ρysᵀ)y equals…
- 2. On an n-D quadratic with exact line search, BFGS terminates in at most…
- 3. BFGS is the minimal-change update in a…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.A 200-dimensional classifier in 62 iterations
Regularized logistic regression on 1000 samples with 200 features spanning a decade of scales: GD with step needs 974 iterations to reach . L-BFGS with needs 62, storing 4000 numbers instead of BFGS’s 40,000. The two-loop recursion is verified against the explicit BFGS matrix on a small case. The same algorithm scales unchanged to millions of parameters.
Quasi-Newton methods in AI, robotics and aerospace
- Scientific ML: physics-informed neural networks are often fine-tuned with L-BFGS after Adam (Raissi, Perdikaris and Karniadakis, 2019).
- Trajectory optimization and calibration: L-BFGS(-B) in SciPy and IPOPT’s quasi-Newton mode when Hessians are unavailable.
- Computer vision: classic bundle-adjustment alternatives and image registration use L-BFGS.
- Spacecraft trajectory design codes use quasi-Newton SQP (SNOPT) for large NLPs (Gill, Murray and Saunders, 2005).
References
- C. Broyden (1970); R. Fletcher (1970); D. Goldfarb (1970); D. Shanno (1970). The four BFGS papers in IMA J. Appl. Math., Computer Journal and Mathematics of Computation.
- J. Dennis, J. Moré (1974). “A characterization of superlinear convergence and its application to quasi-Newton methods.” Mathematics of Computation, 28(126).
- J. Nocedal (1980). “Updating quasi-Newton matrices with limited storage.” Mathematics of Computation, 35(151).
- D. Liu, J. Nocedal (1989). “On the limited memory BFGS method for large scale optimization.” Mathematical Programming, 45.
- R. Byrd, P. Lu, J. Nocedal, C. Zhu (1995). “A limited memory algorithm for bound constrained optimization.” SIAM Journal on Scientific Computing, 16(5) (L-BFGS-B).
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. Ch. 6–7.
- R. Byrd, S. Hansen, J. Nocedal, Y. Singer (2016). “A stochastic quasi-Newton method for large-scale optimization.” SIAM Journal on Optimization, 26(2).
- M. Raissi, P. Perdikaris, G. Karniadakis (2019). “Physics-informed neural networks.” Journal of Computational Physics, 378.
- P. Gill, W. Murray, M. Saunders (2005). “SNOPT: an SQP algorithm for large-scale constrained optimization.” SIAM Review, 47(1).
- D. Goldfarb (1970). “A family of variable-metric methods derived by variational means.” Mathematics of Computation, 24(109).