The Barzilai-Borwein method[1] is an iterative gradient descent method for unconstrained optimization using either of two step sizes derived from the linear trend of the most recent two iterates. This method, and modifications, are globally convergent under mild conditions,[2][3] and perform competitively with conjugate gradient methods for many problems.[4] Not depending on the objective itself, it can also solve some systems of linear and non-linear equations.
To minimize a convex function with gradient vector at point , let there be two prior iterates, and , in which where is the previous iteration's step size (not necessarily a Barzilai-Borwein step size), and for brevity, let and .
A Barzilai-Borwein (BB) iteration is where the step size is either
[long BB step] , or
[short BB step] .
Barzilai-Borwein also applies to systems of equations for in which the Jacobian of is positive-definite in the symmetric part, that is, is necessarily positive.
Despite its simplicity and optimality properties, Cauchy's classical steepest-descent method[5] for unconstrained optimization often performs poorly.[6] This has motivated many to propose alternate search directions, such as the conjugate gradient method. Jonathan Barzilai and Jonathan Borwein instead proposed new step sizes for the gradient by approximating the quasi-Newton method, creating a scalar approximation of the Hessian estimated from the finite differences between two evaluation points of the gradient, these being the most recent two iterates.
In a quasi-Newton iteration,
where is some approximation of the Jacobian matrix of (i.e. Hessian of the objective function) which satisfies the secant equation . Barzilai and Borwein simplify with a scalar , which usually cannot exactly satisfy the secant equation, but approximate it as . Approximations by two least-squares criteria are:
[1] Minimize with respect to , yielding the long BB step, or
[2] Minimize with respect to , yielding the short BB step.
In one dimension, both BB step sizes are equal and same as the classical secant method.
The long BB step size is the same as a linearized Cauchy step, i.e. the first estimate using a secant-method for the line search (also, for linear problems). The short BB step size is same as a linearized minimum-residual step. BB applies the step sizes upon the forward direction vector for the next iterate, instead of the prior direction vector as if for another line-search step.
Barzilai and Borwein proved their method converges R-superlinearly for quadratic minimization in two dimensions. Raydan[2] demonstrates convergence in general for quadratic problems. Convergence is usually non-monotone, that is, neither the objective function nor the residual or gradient magnitude necessarily decrease with each iteration along a successful convergence toward the solution.
If is a quadratic function with Hessian , is the Rayleigh quotient of by vector , and is the Rayleigh quotient of by vector (here taking as a solution to , more at Definite matrix).
Fletcher[4] compared its computational performance to conjugate gradient (CG) methods, finding CG tending faster for linear problems, but BB often faster for non-linear problems versus applicable CG-based methods.
BB has low storage requirements, suitable for large systems with millions of elements in .
angle between and .