Why does an Lq penalty with q > 1, such as an L3 norm, never produce exact zeros?

Quick Overview

Asks why Lq regularization with q above 1, such as an L3 penalty, shrinks weights without setting any of them exactly to zero. Tests optimality conditions, the proximal view of shrinkage, the geometry of norm balls and how L1 differs.

Why does an Lq penalty with q > 1, such as an L3 norm, never produce exact zeros?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Consider a model trained with a penalty $\lambda \sum_j |w_j|^q$ added to its loss. Lasso ($q = 1$) sets some coefficients exactly to zero, while ridge ($q = 2$) only shrinks them. Why does an Lq penalty with `q > 1`, such as an L3 norm, never produce exact zeros? ```hint Slope at zero Compare the derivative of $|w|^q$ at $w = 0$ when q is above 1 with the subgradient of $|w|$ at the same point. ``` ```hint One weight at a time Look at the single-weight problem of minimizing $\frac{1}{2}(w - z)^2 + \lambda |w|^q$ and ask which values of z lead to a solution of exactly zero. ``` ### What a Strong Answer Covers - The optimality condition at $w = 0$ for q above 1, and how often it can hold - The contrast with the L1 subgradient at zero - A one-dimensional or geometric argument for the same result - What an L3 penalty does to small and to large weights - Which values of q can give exact sparsity, and the trade-off with convexity ### Follow-up Questions - Penalties with q between 0 and 1 also produce zeros. Why are they used much less than L1? - Elastic net mixes L1 and L2 penalties. Does it still produce exact zeros? - Why does plain stochastic gradient descent with an L1 penalty rarely land on exact zeros, and how do proximal methods fix that? - If you wanted weights of similar size, how would an L-infinity penalty compare with L3?

Overview: Asks why Lq regularization with q above 1, such as an L3 penalty, shrinks weights without setting any of them exactly to zero. Tests optimality conditions, the proximal view of shrinkage, the geometry of norm balls and how L1 differs.

PracHub logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

Consider a model trained with a penalty λ∑j∣wj∣q\lambda \sum_j |w_j|^q added to its loss. Lasso (q=1q = 1) sets some coefficients exactly to zero, while ridge (q=2q = 2) only shrinks them. Why does an Lq penalty with q > 1, such as an L3 norm, never produce exact zeros?

What a Strong Answer Covers Guidance

  • The optimality condition at w=0w = 0 for q above 1, and how often it can hold
  • The contrast with the L1 subgradient at zero
  • A one-dimensional or geometric argument for the same result
  • What an L3 penalty does to small and to large weights
  • Which values of q can give exact sparsity, and the trade-off with convexity

Follow-up Questions Guidance

  • Penalties with q between 0 and 1 also produce zeros. Why are they used much less than L1?
  • Elastic net mixes L1 and L2 penalties. Does it still produce exact zeros?
  • Why does plain stochastic gradient descent with an L1 penalty rarely land on exact zeros, and how do proximal methods fix that?
  • If you wanted weights of similar size, how would an L-infinity penalty compare with L3?