How does Newton's method compare with gradient descent? What does one Newton step do on f(x,y)=4x2+2y2+5 from (−1,2), and why is Newton's method not used to train large neural networks?

Linear algebra and optimisation, Second-order methods
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can derive the Newton step, see why curvature information removes the conditioning problem, and weigh that against its cost.

Key idea

Newton's method jumps to the minimum of the local quadratic approximation: xt+1=xt−H−1∇f(xt), where H is the Hessian (the matrix of second derivatives). It divides each eigen-direction by its curvature λi, so a badly conditioned problem is no harder, and near a minimum it converges very fast. But it needs O(d2) memory and O(d3) time per step for d parameters.

Steps

  1. Derive the step. Approximate f(x+δ)≈f(x)+∇f⊤δ+12δ⊤Hδ, set the gradient with respect to δ to zero, ∇f+Hδ=0, and get δ=−H−1∇f.
  2. Do the example. ∇f(−1,2)=(8⋅(−1), 4⋅2)=(−8,8) and H=diag⁡(8,4), so H−1∇f=(−1,2). The new point is (−1,2)−(−1,2)=(0,0), the exact minimum in one step. Newton solves any quadratic in one step; gradient descent on the same function needs η<0.25 and many steps.
  3. Compare speeds. The best fixed-step gradient descent shrinks the error by κ−1κ+1 per step on a quadratic, where κ=λmax⁡/λmin⁡ is the condition number. Newton does not depend on κ, and near a minimum the error roughly squares each step, ∥et+1∥≤C∥et∥2 (quadratic convergence).
  4. Explain the cost for neural networks. With d=108 parameters, the Hessian has 1016 entries, and solving with it costs O(d3). Hessians from mini-batches are also noisy.
  5. Explain the problem with non-convex losses. At a saddle point the Hessian has negative eigenvalues, and the pure Newton step moves towards any point with zero gradient, including saddles and maxima.
  6. Give the practical middle ground: damped Newton with a line search; quasi-Newton methods (BFGS, L-BFGS) that build up an approximate H−1 from gradients; Gauss–Newton and K-FAC; Hessian-free methods using Hessian-vector products; and diagonal scalings such as Adam.

Common mistakes

How long your answer should be

3–4 minutes, including the one-step example.

Last checked on 4 December 2026.

Read this

Previous in Linear algebra and optimisation: Why does momentum speed up gradient descent on ill-conditioned problems?
Next in Linear algebra and optimisation: How does the mini-batch size affect the noise in stochastic gradient descent? What is the variance of a mini-batch gradient, and what is the “linear scaling rule” for the learning rate?