Why does group lasso yield all-or-nothing sparsity at the group level?

Quick Overview

Asks why group lasso keeps or removes whole groups of coefficients at once. Tests whether you can reason about the shape of a regularization penalty, its optimality conditions and the proximal update, and when grouped sparsity is the right tool for features such as one-hot encodings or spline bases.

Why does group lasso yield all-or-nothing sparsity at the group level?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Group lasso splits the coefficients of a linear model into predefined groups (for example, the dummy columns of one categorical feature) and penalizes each group as a unit. Why does group lasso yield all-or-nothing sparsity at the group level? ```hint Where the penalty has a kink Find the points where each group's penalty term is not differentiable, and compare them with the corners of the plain L1 penalty. ``` ```hint Solve the simplest case Assume each group's columns are orthonormal and solve for one group's coefficients in closed form, holding the other groups fixed. ``` ### What a Strong Answer Covers - The form of the group lasso penalty, including the weight for group size - How the penalty behaves across groups compared with within a group, shown through its geometry or its points of non-differentiability - The optimality (KKT) condition under which a whole group is exactly zero - What the block soft-thresholding update does to a group's coefficients - Where group lasso is used, and how to get sparsity inside groups as well ### Follow-up Questions - Why does the penalty use the unsquared norm? What happens if you square it? - How is group lasso fit when the groups are not orthonormal? - Why should the columns inside each group be standardized or orthonormalized before fitting? - How would you handle groups that overlap, such as a feature that belongs to two groups?

Overview: Asks why group lasso keeps or removes whole groups of coefficients at once. Tests whether you can reason about the shape of a regularization penalty, its optimality conditions and the proximal update, and when grouped sparsity is the right tool for features such as one-hot encodings or spline bases.

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

Group lasso splits the coefficients of a linear model into predefined groups (for example, the dummy columns of one categorical feature) and penalizes each group as a unit. Why does group lasso yield all-or-nothing sparsity at the group level?

What a Strong Answer Covers Guidance

  • The form of the group lasso penalty, including the weight for group size
  • How the penalty behaves across groups compared with within a group, shown through its geometry or its points of non-differentiability
  • The optimality (KKT) condition under which a whole group is exactly zero
  • What the block soft-thresholding update does to a group's coefficients
  • Where group lasso is used, and how to get sparsity inside groups as well

Follow-up Questions Guidance

  • Why does the penalty use the unsquared norm? What happens if you square it?
  • How is group lasso fit when the groups are not orthonormal?
  • Why should the columns inside each group be standardized or orthonormalized before fitting?
  • How would you handle groups that overlap, such as a feature that belongs to two groups?