How does coordinate descent optimize the lasso objective despite the L1 norm being non-differentiable at zero?

Quick Overview

Asks how coordinate descent minimizes the lasso objective even though the L1 penalty has no derivative at zero. Tests the one-coefficient subproblem, subgradient optimality conditions, where exact zeros come from, and why the method converges and runs fast on large problems.

How does coordinate descent optimize the lasso objective despite the L1 norm being non-differentiable at zero?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does coordinate descent optimize the lasso objective despite the L1 norm being non-differentiable at zero? ```hint Shrink the problem Fix every coefficient except one. What does the objective look like as a function of that single coefficient? ``` ```hint Use the subgradient At $\beta_j = 0$ the absolute value has a whole interval of subgradients. Write the optimality condition with that interval and solve it case by case. ``` ### What a Strong Answer Covers - Why updating one coordinate at a time removes the need for a gradient of the full objective - The one-dimensional subproblem and its closed-form solution, derived from the subgradient optimality condition - When a coefficient is set exactly to zero, and how that produces sparsity - Why cyclic coordinate descent converges for this objective, and what kind of penalty would break it - What makes the method fast in practice ### Follow-up Questions - How does the coordinate update change for the elastic net? - Why does plain subgradient descent rarely produce coefficients that are exactly zero? - How does a screening rule decide to skip a coefficient along the regularization path, and why must its decision be checked afterward? - Coordinate descent can stall on the fused lasso. Why?

Overview: Asks how coordinate descent minimizes the lasso objective even though the L1 penalty has no derivative at zero. Tests the one-coefficient subproblem, subgradient optimality conditions, where exact zeros come from, and why the method converges and runs fast on large problems.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does coordinate descent optimize the lasso objective despite the L1 norm being non-differentiable at zero?

What a Strong Answer Covers Guidance

  • Why updating one coordinate at a time removes the need for a gradient of the full objective
  • The one-dimensional subproblem and its closed-form solution, derived from the subgradient optimality condition
  • When a coefficient is set exactly to zero, and how that produces sparsity
  • Why cyclic coordinate descent converges for this objective, and what kind of penalty would break it
  • What makes the method fast in practice

Follow-up Questions Guidance

  • How does the coordinate update change for the elastic net?
  • Why does plain subgradient descent rarely produce coefficients that are exactly zero?
  • How does a screening rule decide to skip a coefficient along the regularization path, and why must its decision be checked afterward?
  • Coordinate descent can stall on the fused lasso. Why?