How does coordinate descent choose update directions differently from gradient descent?

Quick Overview

Compare how coordinate descent and gradient descent choose update directions and step sizes. Tests cyclic, randomized and greedy coordinate rules, why coordinate descent suits the Lasso and SVM duals, and when coupled or non-smooth objectives make it slow or stuck.

How does coordinate descent choose update directions differently from gradient descent?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does coordinate descent choose update directions differently from gradient descent? Cover both the direction of each update and how far each update moves. ```hint One update at a time Write down the vector each method moves along in a single update, and ask how the step length along that vector is chosen. ``` ```hint Correlated variables Picture a quadratic bowl whose two variables are strongly correlated, so its contours are long diagonal ellipses, and trace what an axis-aligned method does there. ``` ### What a Strong Answer Covers - The direction each method uses per update and the rules for picking a coordinate - How step sizes are chosen per coordinate compared with one global learning rate - The problem structures where coordinate descent is the method of choice, with a concrete example - The failure modes: coupled variables, non-smooth objectives that do not separate by coordinate, and parallel hardware ### Follow-up Questions - Derive the coordinate update for the Lasso. Why does it produce exact zeros? - Give a convex function where coordinate descent stops at a point that is not the minimum. - What changes if you update every coordinate at once using the old values of the others? - How does block coordinate descent relate to alternating least squares for matrix factorization?

Overview: Compare how coordinate descent and gradient descent choose update directions and step sizes. Tests cyclic, randomized and greedy coordinate rules, why coordinate descent suits the Lasso and SVM duals, and when coupled or non-smooth objectives make it slow or stuck.

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

How does coordinate descent choose update directions differently from gradient descent?

Cover both the direction of each update and how far each update moves.

What a Strong Answer Covers Guidance

  • The direction each method uses per update and the rules for picking a coordinate
  • How step sizes are chosen per coordinate compared with one global learning rate
  • The problem structures where coordinate descent is the method of choice, with a concrete example
  • The failure modes: coupled variables, non-smooth objectives that do not separate by coordinate, and parallel hardware

Follow-up Questions Guidance

  • Derive the coordinate update for the Lasso. Why does it produce exact zeros?
  • Give a convex function where coordinate descent stops at a point that is not the minimum.
  • What changes if you update every coordinate at once using the old values of the others?
  • How does block coordinate descent relate to alternating least squares for matrix factorization?