What is soft thresholding, and how does it produce the lasso solution?
Last updated
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.