Source: Lecture PDF · Review roadmap

Notation: , .

Stochastic and mini-batch gradient descent

For an average loss over examples:

Full GD evaluates all component gradients per update. SGD uses one example or a mini-batch :

With fresh uniform sampling from the full fixed dataset, conditional on the current iterate/history:

Thus the estimate is full gradient + zero-mean noise. This per-step statement does not generally apply unchanged to shuffling through the remaining examples without replacement.

Tradeoff: cheaper updates, often more iterations and a noisier trajectory. A sampled step need not decrease the full objective. Larger batches generally reduce sampling noise but cost more per update. Learning-rate schedules can avoid full-objective line search.

Stopping: one tiny mini-batch gradient is unreliable. Use a larger gradient estimate, sustained lack of progress and an iteration/computation cap. Tiny parameter updates may simply reflect a tiny learning rate.

Logistic regression: label convention

L4 uses :

The margin measures agreement between score and label. This equals L2’s logistic loss after recoding .

Newton root finding

For scalar equation :

Each step finds the root of the tangent approximation. Requires a nonzero derivative. Root finding for is different from minimising ; optimisation applies root finding to .

Newton optimisation

Minimise the local quadratic Taylor model:

Its stationarity equation gives

Pure Newton uses step size . In computation, solve the linear system rather than explicitly forming the inverse. For scalar , the update is .

If , the quadratic model has a unique minimiser and, for ,

Newton’s direction is then descent; the full step still need not decrease the true objective far from the solution.

Local quadratic convergence: with a sufficiently close start, positive definite Hessian at the minimiser and suitable smoothness (e.g. locally Lipschitz Hessian),

This is a local rate, not a global convergence guarantee.

Limitations: singular Hessian → undefined standard step; indefinite Hessian → possible ascent; poor starting point → bad steps/cycling. General dense Hessian storage is and factorisation costs ; structure can reduce costs.

A local minimum only requires a semidefinite Hessian. Positive definiteness is an extra assumption: has at its minimum.

Quasi-Newton methods and rescaling

Quasi-Newton uses an inverse-Hessian approximation :

If and , the direction is descent. L5 develops BFGS and L-BFGS to learn curvature without computing the exact Hessian each iteration.

For invertible coordinate change , define :

GD in , mapped back to , becomes

Rescaling changes GD trajectories and can improve conditioning. The underlying objective and corresponding minimisers remain equivalent.

Connections

  • L1 → Newton: second-order Taylor supplies the local model; bases explain rescaling.
  • L2 → interpretation: a small gradient alone does not establish a minimum.
  • L3 → step selection: separate the Newton/quasi-Newton direction from its step size.
  • L5: BFGS approximates curvature; L-BFGS limits storage. SGD reduces data-evaluation cost, while these methods address curvature computation/storage.
  • TUT4: apply full/mini/single-sample updates to the same logistic loss and compare total computation.

For examples: SGD, pp. 12–15 · Newton, pp. 17–27 · rescaling, pp. 28–30.