How does an ill-conditioned Hessian cause gradient descent to zig-zag?

Quick Overview

Asks why gradient descent zig-zags when the Hessian has a large condition number. It tests the eigenbasis view of the update, the stability limit on the learning rate, how the condition number sets convergence speed, and fixes such as momentum and preconditioning.

How does an ill-conditioned Hessian cause gradient descent to zig-zag?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does an ill-conditioned Hessian cause gradient descent to zig-zag? ```hint Use the quadratic model Near a minimum the loss is roughly $\tfrac{1}{2} x^\top H x$. Write the gradient descent update in the eigenbasis of $H$ and look at the factor that multiplies each coordinate per step. ``` ```hint One rate, two curvatures Ask what the stability limit on the learning rate is set by, and what that same learning rate does in the flattest direction. ``` ### What a Strong Answer Covers - The geometry of a large condition number and what the negative gradient points at in a narrow valley - The per-eigendirection update factor, when it turns negative, and the stability limit on the learning rate - How the condition number sets the convergence rate under the best fixed step - Fixes such as momentum, preconditioning, and reducing the condition number through scaling or normalization ### Follow-up Questions - Why does momentum improve the dependence on the condition number to roughly its square root? - Would choosing the step by exact line search at every iteration remove the zig-zag? - How do feature standardization and normalization layers change the condition number? - When can a diagonal preconditioner like Adam's fail to fix an ill-conditioned valley?

Overview: Asks why gradient descent zig-zags when the Hessian has a large condition number. It tests the eigenbasis view of the update, the stability limit on the learning rate, how the condition number sets convergence speed, and fixes such as momentum and preconditioning.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does an ill-conditioned Hessian cause gradient descent to zig-zag?

What a Strong Answer Covers Guidance

  • The geometry of a large condition number and what the negative gradient points at in a narrow valley
  • The per-eigendirection update factor, when it turns negative, and the stability limit on the learning rate
  • How the condition number sets the convergence rate under the best fixed step
  • Fixes such as momentum, preconditioning, and reducing the condition number through scaling or normalization

Follow-up Questions Guidance

  • Why does momentum improve the dependence on the condition number to roughly its square root?
  • Would choosing the step by exact line search at every iteration remove the zig-zag?
  • How do feature standardization and normalization layers change the condition number?
  • When can a diagonal preconditioner like Adam's fail to fix an ill-conditioned valley?