How does momentum mitigate zig-zagging along ill-conditioned ravines?

Quick Overview

Asks why plain gradient descent zig-zags across narrow, ill-conditioned valleys of a loss surface and how adding momentum changes that behavior. Tests understanding of the condition number, step-size limits, the momentum update as a running average of gradients, and when momentum overshoots.

How does momentum mitigate zig-zagging along ill-conditioned ravines?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does momentum mitigate zig-zagging along ill-conditioned ravines? A ravine here is a region of the loss surface that is very steep in one direction and nearly flat in another, so the Hessian has a large condition number. ```hint Split the gradient Break the gradient into a component across the ravine and a component along it, and track how each one changes sign from one step to the next. ``` ```hint What limits the step Ask which direction sets the largest learning rate that keeps plain gradient descent stable, and what that rate means for the other direction. ``` ### What a Strong Answer Covers - Why a high condition number forces a small learning rate and causes zig-zagging under plain gradient descent - The momentum update and its reading as an exponential average of past gradients - What that average does to the cross-ravine and along-ravine components, including the effective step size - The convergence improvement on quadratics and how it depends on the condition number - The failure mode when momentum is set too high, and how Nesterov momentum reduces it ### Follow-up Questions - How would you pick the learning rate and momentum together for a quadratic with known largest and smallest curvature? - How does the Nesterov update differ from heavy-ball momentum? - How does momentum compare with a per-parameter adaptive method such as Adam on an ill-conditioned problem? - What changes when the gradients are noisy mini-batch estimates?

Overview: Asks why plain gradient descent zig-zags across narrow, ill-conditioned valleys of a loss surface and how adding momentum changes that behavior. Tests understanding of the condition number, step-size limits, the momentum update as a running average of gradients, and when momentum overshoots.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does momentum mitigate zig-zagging along ill-conditioned ravines?

A ravine here is a region of the loss surface that is very steep in one direction and nearly flat in another, so the Hessian has a large condition number.

What a Strong Answer Covers Guidance

  • Why a high condition number forces a small learning rate and causes zig-zagging under plain gradient descent
  • The momentum update and its reading as an exponential average of past gradients
  • What that average does to the cross-ravine and along-ravine components, including the effective step size
  • The convergence improvement on quadratics and how it depends on the condition number
  • The failure mode when momentum is set too high, and how Nesterov momentum reduces it

Follow-up Questions Guidance

  • How would you pick the learning rate and momentum together for a quadratic with known largest and smallest curvature?
  • How does the Nesterov update differ from heavy-ball momentum?
  • How does momentum compare with a per-parameter adaptive method such as Adam on an ill-conditioned problem?
  • What changes when the gradients are noisy mini-batch estimates?