First- and Second-Order Optimisation Methods

Summary

Choosing the search direction splits optimisers into element-wise first-order methods (gradient descent, momentum, Nesterov, Adam) and second-order methods that couple gradient elements (Newton, quasi-Newton). Both admit probabilistic re-interpretations: element-wise probabilistic gradient descent is a per-coordinate Kalman filter on noisy gradients (Wiener or Ornstein–Uhlenbeck dynamics), and quasi-Newton / BFGS estimates the Hessian from secant observations — recoverable, in the linear case, as the posterior mean of a matrix-valued Gaussian (Corollary 28.2). A fully general one-to-one Kalman interpretation of quasi-Newton methods, however, does not exist, because the Hessian is not constant.

Overview

In , how should be chosen? Roughly, methods split into (i) rules motivated by gradient descent (first-order) — often phrased element-wise, , scaling to ; and (ii) rules motivated by Newton–Raphson (second-order), which couple gradient elements. First-class methods can converge asymptotically faster than gradient descent; second-class methods (bar Newton) converge slower than Newton but capture curvature. The classification is primarily computational, not analytic. Algorithm 28.1 (prob_optimise) shows the probabilistic optimiser is structurally identical to the classic one — probabilistic operations are encapsulated in the subroutines (direction and probabilistic line search).

Main Content

Element-wise (first-order) methods

Classic element-wise update rules

  • Gradient descent: .
  • Momentum (heavy ball, Polyak 1964): auxiliary velocity ,

Derived from the Newtonian dynamics of a mass- particle in potential with friction : (28.1), whose locally-linear explicit-Euler discretisation gives (28.3) with , . In the massless limit () it reverts to gradient descent.

  • Nesterov’s accelerated method: a look-ahead variant — implicit ( on both sides), understood via implicit ODE solvers.
  • AdaDelta, Adam: retain a running average of the element-wise square of the gradient (cf. Eq. 27.2), giving a form of “uncertainty-damping” — each coordinate’s step is scaled by its signal-to-noise ratio.

The first three (GD, momentum, Nesterov) are motivated purely on noise-free objectives; noise analysis can be added afterward but is not a design ingredient. Adam-type methods are designed for stochasticity.

Probabilistic element-wise gradient descent as Kalman filtering

Assuming gradient elements evolve independently, , and treating each coordinate’s gradient as a scalar time series (with , ), inference uses the Kalman filter. Two SDE priors:

with Kalman parameters (Wiener) or (OU). Wiener expects free random-walk drift; OU expects gradients to revert to zero (arguably more realistic for an optimiser driving gradients down).

Probabilistic gradient descent (Wiener prior)

With prior mean/variance (element-wise) and the optimiser moving , observe with likelihood ( estimated as in Eq. 26.18/27.2, ). The element-wise Kalman update is

with Kalman gain , and the step

Remarks. (i) For noise-free observations this reverts to plain gradient descent. (ii) The diffusion scale (equivalently ) is a new free parameter, as hard to set as the momentum . (iii) Despite superficial similarity to momentum (28.3), the rules differ (note inside vs. outside the bracket) and address different problems: momentum dampens under-damped oscillations in noise-free optimisation, whereas this filter addresses evaluation noise. Conflating the two (common in ML) is a conceptual error; one can combine both into a probabilistic, smoothed momentum method.

Second-order: Newton and quasi-Newton methods

Newton's method

From the second-order Taylor expansion , if is spd the quadratic has a unique minimum, giving

Newton converges quadratically near a spd minimum but requires forming and inverting the Hessian (solving ) — the dominant cost.

Quasi-Newton / secant equation

Quasi-Newton methods build an approximation from subsequent gradient observations. Since the Hessian is the rate of change of the gradient,

so any satisfying the secant equation (28.10) is a Hessian candidate (or, with noise-free gradients, the inverse secant equation estimates ).

The Dennis family

a rank-2 update parameterised by . Every non-zero yields a satisfying the secant equation. Members (Table 28.1):

NameReference
Symmetric Rank-1 (SR1)Davidon (1959)
Powell Symmetric BroydenPowell (1970)
Greenstadt’s methodGreenstadt (1970)
DFPDavidon; Fletcher & Powell
BFGSBroyden/Fletcher/Goldfarb/Shanno

The rank-2 form (28.11) is the update already seen in the linear-algebra chapter (Eq. 19.21). Taking a step in the estimated Newton direction makes quasi-Newton structurally identical to the generic probabilistic linear solver — connecting to Conjugate Gradients as Probabilistic Inference (on the quadratic with exact line searches, all listed Dennis members produce the same sequence as conjugate gradients).

BFGS/Dennis family as Bayesian inference on the Hessian

Corollary 28.2 — Dennis family as a matrix-Gaussian posterior mean

Let be spd with . Then the Dennis-family estimate (28.11) equals the posterior mean on under the matrix-variate Gaussian prior

and the single Dirac observation likelihood (using the posterior form from Eq. 19.11). Thus a single quasi-Newton step admits a direct probabilistic interpretation as inference on the Hessian.

No general Kalman-filter interpretation of quasi-Newton

One can attempt to phrase the whole quasi-Newton iteration as a Kalman filter: initialise (so ), and choose with to reproduce a Table-28.1 member, giving (Eq. 19.11). But to keep the next step consistent one needs the prediction with an spd satisfying ; such a step does not always exist, because the required need not be spd. So, beyond the linear (constant-Hessian) case of Ch. III, there is no general one-to-one Kalman-filter interpretation of existing quasi-Newton methods. The root cause: in nonlinear optimisation the Hessian is not a constant function, so previously observed aspects become outdated — hence there is no single “best” quasi-Newton method (unlike CG in the linear case).

Examples

Why so many quasi-Newton methods?

In the linear setting, conjugate gradients is the gold standard for spd problems (a single best method). In nonlinear optimisation the Hessian varies, so the solver must make assumptions both about unseen aspects of and about how observed aspects have changed. This is precisely why the Dennis family is a family — BFGS is the most popular but not uniquely best, and other members (e.g. SR1) can be preferable, particularly with noisy gradients.

Connections

See Also