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

Last updated 3 November 2026

  • Coordinate descent updates one coefficient at a time with the others fixed, so it never needs a global gradient of the non-smooth objective.

  • Each 1-D subproblem (a parabola plus λ|β_j|) is solved exactly via the subgradient condition. The result is soft-thresholding: β_j = S(ρ_j, λ)/z_j, which is exactly zero when |ρ_j| ≤ λ (the source of sparsity).

  • It converges to the global minimum because the L1 penalty is separable across coordinates. It is fast in practice thanks to O(n) residual updates, warm starts along a λ path and screening rules (glmnet).

  • https://pmc.ncbi.nlm.nih.gov/articles/PMC4279872/
  • https://medium.com/@vadimtyuryaev/lasso-regression-demystified-2025-the-guide-to-sparse-interpretable-models-with-python-code-e2ed8b528a0a
  • https://www.mlvisualization.com/visualizations/lasso-regression
All Regularization interview questions