The Local Optimisation Problem

Summary

Local optimisation seeks a local minimiser of a (generally non-convex, twice-differentiable) objective via an iterative loop that alternates a search-direction decision and a step-size (line-search) decision. In modern machine learning the objective is an empirical risk evaluated on sub-sampled mini-batches, so gradients and values arrive corrupted by a genuine Gaussian likelihood rather than to machine precision. This noise — of magnitude far beyond machine epsilon — breaks classical notions of stability and step-size selection, and is exactly the opening for the probabilistic viewpoint.

Overview

Chapters II (integration) and III (linear algebra) reconstructed linear numerical tasks as inference. Local optimisation is the first nonlinear task (§25). The recurring PN thesis applies: optimisation algorithms are probabilistic agents whose step-size and direction choices are expected-loss-minimising actions. But unlike earlier chapters, Part IV moves away from merely re-deriving classical methods and instead develops new functionality for the noisy, big-data regime that classical solvers handle poorly (Ch. 24).

The key numerical challenge separating machine learning from classical numerics is the central role of big external data. When datasets are large, data points are sub-sampled (“batched”) for every internal computation. Batching introduces stochasticity — noise of a magnitude far beyond machine precision — and classical notions of stability no longer apply. It no longer makes sense to speak of a “correct number computed with a tiny error”; a real likelihood function must enter the picture. If this likelihood is not modelled, a number of visible problems arise (e.g. the disappointing algorithmic landscape of deep learning).

Main Content

Problem setting

Unconstrained local minimisation

Given , at least twice continuously differentiable, with gradient and Hessian

a local minimiser is

is strongly convex if is (strictly) positive definite everywhere; this is not generally assumed. ranges from a handful (control) to billions (deep learning). The setting is unconstrained and seeks a local (not global — cf. The Global Optimisation Problem) minimum.

The generic iterative loop

Classical unconstrained solvers (Algorithm 25.1) mirror the linear solvers of Ch. III: from they produce by two principal steps.

Direction–then–step-length iteration

  1. Search direction : choose using calls to the black boxes and/or . The naïve choice is steepest / gradient descent, .
  2. Step size : the next iterate is . Finding a good is a univariate optimisation solved by a line search. A line search returning the exact univariate optimum is called perfect (an analytical device; it does not exist in practice).

The line search operates on the projected univariate sub-problem with derivative the projected gradient .

Both and are scalars; a line search lives in an “inner loop” with almost no state propagation between calls (so the subscript is dropped). Typically only 1–10 evaluations are used. Performance depends crucially on both and (Exercise 25.2): even gradient descent with a badly-chosen fixed step size fails.

Convergence of exact-line-search steepest descent (quadratic case)

For the strongly convex quadratic ( spd, global min ) with eigenvalues , steepest descent with exact line searches, , satisfies

Interpretation. With condition number : an isometric problem () converges in one step; large makes the bound essentially vacuous (constant near 1), matching the known slowness of gradient descent. A general-function version (Thm. 25.3) shows near a spd minimum, with — i.e. a linear convergence rate.

Convergence-rate vocabulary (S. Wright): sublinear ( but ); linear/geometric (, ); superlinear (); quadratic (, Newton’s rate — leading digits double each step).

Numerical uncertainty is a feature of data science (§26.1)

Classical numerics recovers methods as MAP/mean estimates under a Dirac likelihood : the Dirac encodes that a computer computes to machine precision (see Computation as Probabilistic Inference). Contemporary big-data tasks feature errors of a more drastic nature, requiring the Dirac to be replaced by an explicit likelihood.

Empirical risk minimisation and batch noise

Fitting parameters to data minimises a (regularised) empirical risk

with regulariser (data-independent) and per-datum loss . For big data, one uses a random batch of size :

Re-drawing i.i.d. each call makes an unbiased estimator; by the CLT it is approximately Gaussian:

Batching thus provides a knob () trading computational precision against cost, and evaluations at different are disturbed by independent Gaussian noise (batches re-drawn each request). Signal-to-noise ratios below one are common in deep learning.

This Gaussian noise explicitly introduces a likelihood into the computation, naturally motivating a probabilistic treatment — and explains why efficient classical methods (tuned for Dirac likelihoods) struggle in the noisy setting.

Examples

Two robots doing gradient descent (Exercise 25.2)

Two wheeled robots on a hill do “gradient descent” on potential-energy density with a fixed step , stepping . One uses SI units (), the other Imperial (). Because a fixed step size interacts with the units/scaling of the gradient, the two identical-in-spirit robots take different physical steps and reach different energies — an intuition for why fixed step sizes (unlike an adaptive/perfect line search) are problematic and hide unit-dependent assumptions.

Gaussian-process view of ERM (Exercise 26.1)

A basic GP regression model — data produced by latent at under i.i.d. Gaussian likelihood and GP prior — is itself an optimisation problem with a loss of the ERM form. Its MAP posterior mean solves that loss; choosing the prior/likelihood corresponds to choosing regulariser and per-datum loss .

Connections

See Also