Second-Order Optimization

Second-order optimization uses curvature information, not only gradients, to choose parameter updates. In machine learning, this usually means using the Hessian or an approximation to it.

For a scalar loss :

Newton’s method uses:

This rescales the gradient by local curvature.

Local Quadratic View

Near , a second-order approximation is:

Minimizing this quadratic gives the Newton step when is invertible and well-conditioned.

Why Deep Learning Rarely Uses Full Hessians

IssueMeaning
Size is for parameters
Memoryfull Hessian storage is usually impossible for large models
Costexact inversion is expensive
Indefinitenessnonconvex losses can have negative curvature
Noisemini-batch Hessians can be unstable

Practical methods often use Hessian-vector products, diagonal approximations, low-rank approximations, quasi-Newton methods, natural-gradient approximations, or adaptive first-order optimizers.

Curvature Diagnostics

Curvature still matters even when training uses AdamW or SGD:

SignalInterpretation
Large Hessian eigenvaluessharp directions, learning-rate sensitivity
Ill-conditioningsome directions need much smaller steps than others
Negative curvaturesaddle or nonconvex region
Large gradient norm with unstable lossstep may be too large for local curvature
Flat validation responsehyperparameter may not affect the selected metric strongly

Boundaries

Second-order information can support different claims:

UseClaim
Optimization methodcurvature directly changes updates
Diagnosticcurvature explains instability or sharpness
Uncertainty approximationlocal curvature approximates posterior shape
Architecture analysiscurvature compares trainability or sensitivity

Do not treat a curvature plot as proof of generalization. It needs a metric, split, and uncertainty boundary.

Checks

  • Is the method using a full Hessian, Hessian-vector products, diagonal approximation, or a proxy?
  • Is curvature computed on train, validation, or test data?
  • Is the Hessian of loss, log likelihood, energy, or another objective?
  • Are reported eigenvalues comparable across model scales and losses?
  • Does the second-order claim affect optimization, uncertainty, or only interpretation?