What is soft thresholding, and how does it produce the lasso solution?

Last updated 3 November 2026

  • Soft thresholding S_λ(z) = sign(z)·max(|z| − λ, 0) moves z toward zero by λ and outputs exactly 0 when |z| ≤ λ. It is the proximal operator of the L1 norm (the exact 1-D lasso solution).

  • With an orthonormal design, lasso decouples into β̂_j = S_λ(x_jᵀy) (soft-thresholded OLS).

  • In general, coordinate descent cycles through features and soft-thresholds each partial-residual fit. Proximal gradient methods (ISTA/FISTA) instead apply it after each gradient step.

  • https://quantmemo.com/concepts/the-regularization-path
  • https://medium.com/@vadimtyuryaev/lasso-regression-demystified-2025-the-guide-to-sparse-interpretable-models-with-python-code-e2ed8b528a0a
  • https://medium.com/biased-algorithms/lasso-regression-from-scratch-in-python-218799c1183d
All Regularization interview questions