How do quasi-Newton methods (BFGS and L-BFGS) approximate the Hessian without computing second derivatives, what are the secant equation and the curvature condition , and how does L-BFGS reduce memory from to ?
Linear algebra and optimisation, Second-order methods
Level L4 Advanced. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you understand how BFGS builds curvature from gradient differences alone and why L-BFGS scales to large parameter vectors.
Key idea
BFGS maintains a symmetric positive-definite approximation (or its inverse ) updated at every step using only the step vector and gradient change , enforcing the secant equation .
Steps
- Motivate the secant equation: by Taylor's theorem, . Defining and , a good Hessian approximation should satisfy the secant equation (equivalently ).
- Explain the curvature condition : multiplying on the left by gives . For to remain positive definite (so is guaranteed to be a descent direction), we must have . A Wolfe line search enforces this.
- Describe the BFGS update: for , among all symmetric matrices satisfying the inverse secant equation , BFGS chooses the inverse-Hessian approximation closest to (in a weighted Frobenius norm), yielding a rank-two update to (and also to ) that preserves symmetry and positive definiteness in time per step, avoiding matrix inversion.
- Explain L-BFGS (limited-memory BFGS): storing takes memory, which is infeasible when . L-BFGS never forms explicitly; it stores only a small history of the most recent pairs (typically ) in memory and computes the product on the fly via the two-loop recursion in time.
Common mistakes
- Writing the secant equation backwards as (that is the inverse-Hessian form ).
- Using BFGS with mini-batch stochastic gradients without care: noisy across different batches can violate and corrupt the curvature estimate.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: For , where , , and is symmetric, how do you derive using differentials and verify every matrix product by its shapes?
Next in Linear algebra and optimisation: Why can deterministic gradient descent take arbitrarily long or get trapped near a strict saddle point, and how do stochastic gradient noise (SGD) or perturbed gradient descent escape strict saddles?