Taylor expansion approximates a function near a point using its derivatives:
1D:
Multivariable (2nd order):
where is the Gradient and is the Hessian Matrix.
Why it matters in ML:
- Gradient descent uses the 1st-order approximation: step in direction
- Newton's method uses the 2nd-order approximation: set the gradient of the quadratic to zero →
- Loss surface analysis — the 2nd-order term reveals whether a critical point is a minimum, maximum, or saddle (positive definiteness of H)
- Natural gradient and Fisher information also derive from 2nd-order Taylor of KL divergence
The quality of the approximation depends on how smooth is and how large is. Neural network loss surfaces are highly non-quadratic globally, but locally the quadratic approximation motivates most optimization theory.
See also: Convexity, Learning Rate Schedules