BFGS method Created 2026-10-25 Updated 2026-10-31
A quasi-Newton method that maintains a symmetric curvature approximation for differentiable optimization. For a positive-definite symmetric matrix approximating inverse curvature, step , gradient change and , its inverse update isMultiplying by gives , the inverse form of the Quasi-Newton secant equation. The update is a symmetric matrix. For any nonzero ,Both terms are nonnegative, and both can vanish only if and then . Thus positive definiteness is preserved when , making a descent direction away from a stationary point. Full updates use quadratic storage in the dimension; the method does not require explicit Hessian matrix evaluations. Superlinear convergence requires additional local smoothness and line search assumptions.[ref]
Quasi-Newton Methods by NEOS Guide. Secant condition and low-rank curvature updating; BFGS is the zero-parameter member of the displayed family.
Exact line search Created 2026-10-24 Updated 2026-10-31
A line search that finds a global minimizer along the chosen ray, provided one exists. For a negative gradient direction, its decrease in the objective function is at least that of any admissible fixed step size. The cost of solving this one-dimensional minimization problem must be included when comparing computation time.
Target: vector-space.bigb, under Vector subspace. Limited-memory BFGS Created 2026-10-25 Updated 2026-10-31
Limited-memory BFGS is a quasi-Newton method that applies an inverse-Hessian matrix approximation without storing a dense square matrix. It retains only a fixed number of recent secant pairs and . The standard two-loop recursion computes the search direction using storage and arithmetic in dimension .
With a positive-definite initial metric and safeguarded curvature updates, the step is , with chosen by a line search. It is useful when full-memory BFGS would require too much storage. Fixed-memory convergence results typically give linear convergence under strong convexity, bounded metric and suitable line search assumptions; one must not automatically transfer the full-memory superlinear theorem. In a nonconvex problem, a local method does not by itself certify a global minimum.[ref]
Quasi-Newton Methods by NEOS Guide. Final two paragraphs: inverse-Hessian products from stored secant vectors and limited-memory implementations
Line search Created 2026-10-20 Updated 2026-10-24
A line search chooses a positive step size along a search vector , updating to . For a differentiable function , a descent direction makes sufficiently short steps decrease the objective function; an Armijo condition quantifies the decrease, while the Wolfe conditions also prevent accepting an unnecessarily short step.
Merit function 2026-10-31
A merit function is a scalar objective function used by an iterative constrained algorithm to balance objective reduction and feasibility. It permits a line search or other acceptance test even when the original objective function alone is insufficient to judge progress. Quadratic penalty methods and the augmented Lagrangian method give two constructions with different treatments of multiplier information.
For a real symmetric invertible matrix , the full undamped Newton step for the displayed quadratic function sends every starting point to the unique stationary point:This follows because the gradient is affine and its first-order expansion is exact. If is a positive-definite matrix the result is the unique global minimum; a negative-definite matrix gives a global maximum, and an indefinite matrix gives a saddle point. Thus exact arrival does not by itself show that a minimization method has minimized anything. A line search, damping, or a positive-definite matrix replacing the Hessian matrix changes this exact one-step assertion.
Initialize the weights, evaluate the feature matrix and repeat gradient descent updates until the loss or gradient stabilizes. If includes the intercept, thenA positive step size chosen by a convergence rule or line search gives a practical optimization algorithm. Mini-batch updates or a Newton-type method are alternatives. Fit feature scaling, choose regularization and choose any nonstandard threshold using training or validation data, then freeze the procedure before using the held-out test set.
For held-out examples, set , with unless selected otherwise. The requested classification accuracy isAlways predicting the majority class already gives about 90% accuracy. Report a confusion matrix, classification recall and classification precision as well, especially for the minority class. A precision-recall curve shows the threshold tradeoff without confusing high majority-class accuracy with successful minority-class detection. No numerical test accuracy can be calculated without the held-out predictions and labels.
Past exam of the continuous optimisation course of the University of Oxford 2011 2 iii Solution 2026-10-31
Use the exact line searches from part (i). After minimizing along one coordinate, the corresponding gradient component is zero. Unless the optimum has been reached, the whole nonzero gradient therefore lies along the other coordinate, which is selected next. The chosen signed coordinate direction then has . A selected zero gradient component can be skipped; it already minimizes that coordinate.
The Zoutendijk theorem therefore gives . The unique point with zero gradient isSince and is invertible, gradient convergence implies . Positive definiteness makes this the unique global minimum.
Convergence also holds if “line search” is interpreted as any fixed-parameter Wolfe search. If coordinate is selected, its signed step satisfies , where and . Sufficient decrease gives . Summation shows that selected gradient components tend to zero and step lengths tend to zero. The other component was selected in the preceding step; Lipschitz continuity then makes it tend to zero as well. Thus the full gradient converges to zero. The simple one-step angle argument and sharp Q-linear factor below use exact coordinate minimization; arbitrary Wolfe choices need not have that same Euclidean one-step factor.
A line search chooses a positive step size giving useful decrease along the chosen direction. Fix and a trial step . The Armijo condition isThe backtracking line search tests and takes the first accepted value. A Lipschitz gradient has with a constant independent of .
Integrating the gradient along a segment gives the descent lemmaFor , every satisfies the Armijo condition. Thus backtracking terminates. If the trial step is accepted, ; otherwise the immediately preceding step failed, so it exceeded . ConsequentlyThe same global Lipschitz constant and fixed search parameters make independent of . If , the zero direction passes the first test. If , the gradient is constant and the first test passes, so take .
A local minimizer of a differentiable function on necessarily satisfies . A sufficient condition for a strict local minimum is . Indeed, the second-order Taylor expansion has a strictly positive quadratic term that dominates its remainder near .
For Newton's method, solve with , , and set . A positive-definite Hessian makes this a descent direction; general Hessians may need modification or a separate line search for a globally useful method.
The sequence is q-quadratically convergent if there is such that eventually. Sufficient local hypotheses are , a nonsingular , a Lipschitz continuous Hessian near , and sufficiently close. For convergence to a local minimum take positive definite. Near , inverse Hessians are uniformly bounded, and integration along the error segment givesA Hessian Lipschitz constant yields . Choosing a sufficiently small invariant neighborhood proves quadratic convergence. Continuous second derivatives alone do not guarantee this quadratic rate; the Lipschitz hypothesis supplies the needed remainder bound.
At , gradient descent and full BFGS are practical candidates; a dense Newton method can also be feasible, but its extra work and indefinite curvature need attention. The number of examples , data sparsity and conditioning still matter.
For dense , a gradient evaluation costs arithmetic, with working storage beyond the data and accumulation buffers. Gradient descent is inexpensive per iteration and, with an appropriate line search, follows a descent direction, but poor conditioning can make it slow.
Forming the Hessian matrix explicitly costs arithmetic, and a dense Newton method solve costs . A -square double-precision matrix uses about MB, so storage alone is manageable, but repeated factorization may be expensive. Because the Hessian matrix can be indefinite or singular, an unmodified Newton step need not decrease the loss; a modified Hessian, damping or a trust region is appropriate.
Full BFGS uses gradients and an curvature approximation, avoiding explicit second derivatives. Its rank-two updates and direction calculation cost per step and require roughly the same matrix storage. A positive-definite initial approximation with safeguarded curvature updates and a suitable line search preserves descent directions. For this scale it is often a good compromise, without guaranteeing a global minimum.[ref]
Quasi-Newton Methods by NEOS Guide. Secant condition, positive-definite updating, and quadratic per-step operation/storage costs
Here a dense -by- matrix has entries, about GB even with eight-byte storage per entry. Use limited-memory BFGS on the negative of the objective, or equivalently its positive-definite approximate-metric form of gradient ascent. It stores only a fixed small number of vector pairs, costing memory rather than .
Let and put . Direct use of the chain rule givesIf denotes the positive-definite inverse-Hessian matrix approximation for , the iteration iswith a line search increasing and the usual safeguarded limited-memory updates. No exact Hessian matrix is required. With fixed memory and the usual bounded-metric and line search hypotheses, expect local linear convergence near a nondegenerate strict maximum; fixed-memory limited-memory BFGS does not generally inherit the superlinear theorem for full-memory BFGS.
Unlike the preceding objective, is not generally a concave function. Thus this is a method for finding a local maximum; comparison of different converged candidates or a global search is needed to certify a global maximum for arbitrary centres. The symbolic problem supplies no assumption that would justify an unconditional global-convergence claim.[ref]
Quasi-Newton Methods by NEOS Guide. Final paragraphs: storing only recent secant vectors, linear-in-dimension memory, and the L-BFGS implementation
Past exam of the year 1 of the computer science course of the University of Oxford 2021 Discrete mathematics, continuous mathematics, and probability 6 b i Solution Created 2026-10-25 Updated 2026-10-31
A practical choice is a BFGS method, using exact gradients and a line search. At dimension , its -by- inverse-Hessian matrix approximation is small, whereas forming a million rank-one contributions to the exact Hessian matrix is expensive. If , the explicit derivatives areThe positive-definite Hessian matrix and coercivity show that the objective has one global minimizer.
For numerical stability one can minimize instead, which has exactly the same minimizer. Put , , and . Then the logarithmic gradient of an exponential squared-distance sum givesEvaluate the weights as to avoid floating-point overflow. A quasi-Newton method step iswhere is the positive-definite inverse-Hessian matrix approximation updated by BFGS, and is chosen by a line search, for example one satisfying the Wolfe conditions. Under the standard smoothness and nondegeneracy assumptions at this strongly convex minimizer, full-memory BFGS has local superlinear convergence. An exact Newton's method in optimization would have local quadratic convergence, but pays for those much more expensive exact second derivatives.[ref]
Quasi-Newton Methods by NEOS Guide. Opening construction and BFGS update: approximate Hessians from gradients; dense update cost of order d squared
Gradient descent uses only the current gradient and a suitable step size; its additional storage is order . It is attractive for very large or when low per-iteration cost matters most. For a smooth strongly convex function, standard step choices give linear convergence, with a rate sensitive to the condition number. Mere convexity gives a global-minimum interpretation but does not alone imply a linear rate; for nonconvex objectives the usual guarantee concerns stationary points.
BFGS uses successive gradients to update an approximation to inverse curvature, incorporating information that can correct poor scaling. Full BFGS uses order storage and update work. With suitable line searches and local smoothness and positive-curvature assumptions near a nondegenerate minimum, it has superlinear convergence. This often favours it in moderate dimensions when gradients are not extremely cheap relative to the extra work.
Neither gradient descent nor BFGS requires an explicitly evaluated Hessian matrix. Thus an expensive Hessian matrix is compatible with both, rather than a reason to reject BFGS. If an accurate Hessian matrix and its factorization are exceptionally cheap, Newton's method in optimization becomes an additional reasonable option. Convexity helps identify a stationary point as a global minimum; without it, both methods need suitable descent and curvature safeguards. The BFGS update learns curvature from the Quasi-Newton secant equation.[ref]
Quasi-Newton Methods by NEOS Guide. Quasi-Newton condition and the BFGS member of the low-rank updating family.
Quasi-Newton secant equation 2026-10-25
For and , the Quasi-Newton secant equation requires . It reproduces the observed change of gradient along the latest step. If is a positive-definite symmetric matrix and , necessarily . A line search satisfying the weak Wolfe conditions ensures this: with ,This necessary curvature condition is also sufficient for the existence of some positive-definite symmetric matrix mapping to . In an orthonormal basis whose first vector is , its first column must be , with . The block matrix with first row and lower-right block has a positive Schur complement, so is positive-definite.
Search direction 2026-10-31
A search direction is the nonzero vector used in the displayed optimization update. In a line search with positive step size, its orientation matters: a descent direction has negative directional derivative of the objective function. Minimization over a full line instead permits either sign of .
Sequential quadratic programming 2026-10-31
Sequential quadratic programming computes steps from a quadratic model of the optimization Lagrangian with linearized constraints. Its constrained Newton system couples a primal step and multiplier estimates. A line search or trust region then controls the use of that local model.