Inferensys

Glossary

Group LASSO

An extension of the LASSO that performs variable selection on predefined groups of features, either selecting or discarding all members of a group together.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
FEATURE SELECTION

What is Group LASSO?

Group LASSO is a regularized regression method that extends the standard LASSO to perform variable selection on predefined, non-overlapping groups of features, forcing all coefficients within a group to be either zero or non-zero simultaneously.

Group LASSO is an extension of the LASSO (Least Absolute Shrinkage and Selection Operator) that incorporates prior knowledge of feature groupings into the regularization penalty. Instead of applying an L1 penalty to individual coefficients, it applies an L2 norm penalty to each group's coefficient vector, summed across all groups. This composite penalty, a sum of Euclidean norms, enforces group-wise sparsity: an entire group of correlated features—such as a set of dummy variables encoding a categorical factor or a gene pathway—is either selected or discarded as a unit.

The optimization objective minimizes the residual sum of squares subject to the constraint that the sum of the L2 norms of the coefficient sub-vectors is below a tuning parameter. This is particularly critical in high-dimensional biomarker identification, where features naturally cluster into pathways or genetic loci. Unlike standard LASSO, which might select only one representative from a highly correlated cluster, Group LASSO retains the entire cluster, improving model interpretability and statistical power. Efficient solutions are typically computed via block coordinate descent algorithms.

MECHANISMS & PROPERTIES

Key Features of Group LASSO

Group LASSO extends standard L1 regularization by enforcing sparsity at the group level, ensuring that entire predefined sets of features are either retained or eliminated together. This makes it indispensable for biomarker discovery where features naturally cluster into pathways, gene sets, or categorical encodings.

01

Group-Level Sparsity

Unlike standard LASSO which selects individual features, Group LASSO applies an L2,1 mixed norm penalty. The objective function minimizes the sum of squared errors plus a penalty term proportional to the L2 norm of each group's coefficient vector. This forces the entire coefficient vector for a group to zero simultaneously, achieving structured sparsity that respects natural feature groupings such as gene pathways or transcription factor targets.

02

Mathematical Formulation

The optimization problem is: minimize (1/2)||y - Σ X_g β_g||²₂ + λ Σ √p_g ||β_g||₂, where:

  • X_g is the feature matrix for group g
  • β_g is the coefficient vector for group g
  • p_g is the group size
  • λ controls overall regularization strength The √p_g term accounts for varying group sizes, preventing larger groups from being unfairly penalized. This is a convex optimization problem solvable via block coordinate descent.
03

Overlapping Groups Extension

The standard formulation assumes non-overlapping groups, but a powerful extension allows features to belong to multiple groups simultaneously. This is critical in genomics where a gene may participate in several biological pathways. The overlapping variant uses a latent variable approach, duplicating features that appear in multiple groups and applying the group penalty to each copy independently, then constraining the copies to sum to the original coefficient value.

04

Sparse Group LASSO Variant

This hybrid combines group-level and within-group sparsity by adding both an L1 penalty on individual coefficients and an L2,1 penalty on groups: λ₁||β||₁ + λ₂ Σ ||β_g||₂. This is particularly valuable when you want to select entire pathways but also allow only the most predictive genes within a selected pathway to have non-zero weights, yielding a doubly sparse solution that enhances interpretability in biomarker panels.

05

Block Coordinate Descent Solver

The standard optimization algorithm iterates over groups, holding all other groups fixed while solving a subproblem for each group. For group g, the update rule has a closed form: β_g = (1 - λ√p_g / ||S_g||₂)₊ S_g, where S_g is the partial residual solution and (·)₊ denotes the positive part. This is a soft-thresholding operator applied to the group norm, efficiently shrinking entire groups to zero when their collective contribution falls below the threshold.

06

Applications in Biomarker Discovery

Group LASSO excels in SNP-to-gene mapping where all SNPs within a gene form a natural group, and in pathway-based biomarker selection where gene sets from KEGG or Gene Ontology define groups. It also handles categorical variable selection in clinical models—treating all dummy-encoded levels of a categorical predictor as one group ensures the entire variable is selected or discarded, preventing the interpretability problem of partial categorical inclusion.

REGULARIZATION METHOD COMPARISON

Group LASSO vs. Standard LASSO vs. Elastic Net

Structural and functional comparison of three L1-based regularized regression techniques for high-dimensional feature selection.

FeatureGroup LASSOStandard LASSOElastic Net

Penalty Type

L1/L2 mixed (group-level)

L1 (absolute value)

L1 + L2 (convex combination)

Selection Granularity

Predefined feature groups

Individual features

Individual features with grouping tendency

Sparsity Pattern

Group-wise sparsity

Element-wise sparsity

Element-wise sparsity with correlated retention

Handles Correlated Features

Selects or discards entire correlated groups

Arbitrarily selects one from correlated set

Requires Group Membership Prior

Optimization Complexity

Higher (non-separable penalty)

Lower (separable penalty)

Moderate (separable penalty)

Typical Solver

Block coordinate descent

Coordinate descent

Coordinate descent

Number of Hyperparameters

1 (regularization strength)

1 (regularization strength)

2 (regularization strength, L1/L2 ratio)

GROUP-LEVEL FEATURE SELECTION

Group LASSO in Biomarker Identification

Group LASSO extends standard L1 regularization by enforcing sparsity at the group level, ensuring that entire predefined sets of features—such as genes in a pathway or SNPs in a gene—are selected or discarded together. This mechanism is critical for identifying biologically meaningful biomarkers in high-dimensional genomic data.

01

The Group Penalty Mechanism

Group LASSO replaces the sum of absolute coefficients with a sum of L2 norms for each feature group. The objective function minimizes: RSS + λ * Σ √(p_g) * ||β_g||₂, where p_g is the group size and β_g is the coefficient vector for group g. This non-differentiable penalty at the origin forces the entire group's coefficients to zero simultaneously, achieving block-wise sparsity. The √(p_g) factor compensates for varying group sizes, preventing larger groups from being unfairly penalized.

02

Biological Group Definitions

Groups are defined using prior biological knowledge to ensure interpretable selection:

  • Gene pathways: KEGG, Reactome, or Gene Ontology sets group genes by shared function
  • SNP sets: Variants grouped by gene, regulatory region, or linkage disequilibrium block
  • Protein domains: InterPro or Pfam families grouping structurally related regions
  • Metabolite classes: Lipid subclasses or amino acid derivatives
  • Co-expression modules: WGCNA-derived clusters of correlated transcripts This domain-informed grouping prevents the selection of isolated, uninterpretable features.
03

Algorithmic Implementation

The optimization is typically solved via block coordinate descent or proximal gradient methods:

  • Block coordinate descent: Iteratively updates each group's coefficients while holding others fixed, applying a group-wise soft-thresholding operator: β_g = (1 - λ√(p_g) / ||S_g||₂)₊ * S_g, where S_g is the unpenalized update
  • Proximal gradient descent: Applies the group soft-thresholding as a proximal operator after each gradient step
  • SGL package in R and scikit-learn's group_lasso extensions provide production-ready implementations
  • Cross-validation selects the optimal λ by minimizing prediction error across held-out folds
04

Sparse Group LASSO Variant

The Sparse Group LASSO combines group-level and within-group sparsity by adding both penalties: λ₁ * Σ ||β_g||₂ + λ₂ * ||β||₁. This allows selection of entire groups while also zeroing out individual features within selected groups. In biomarker studies, this is invaluable when a pathway is relevant but only a subset of its member genes are truly predictive. The dual penalty requires tuning two hyperparameters, typically via a grid search over (λ₁, λ₂) pairs.

05

Overlap and Hierarchy Extensions

Real biological groups often overlap—a gene may belong to multiple pathways. Extensions handle this complexity:

  • Overlap Group LASSO: Uses a latent variable decomposition where each feature's coefficient is the sum of contributions from all groups it belongs to, penalizing each group's contribution separately
  • Hierarchical Group LASSO: Enforces that a child group (e.g., a specific protein complex) can only be selected if its parent group (e.g., the broader pathway) is also selected, reflecting biological hierarchies These methods prevent double-penalization of shared features and maintain ontological consistency.
06

Biomarker Discovery Workflow

A typical Group LASSO pipeline for biomarker identification:

  1. Preprocessing: Normalize expression data, handle batch effects with ComBat, standardize features to zero mean and unit variance
  2. Group definition: Map probes/genes to curated pathway databases or define custom gene sets from prior experiments
  3. Model fitting: Run Group LASSO with 10-fold cross-validation to select λ that minimizes mean squared error
  4. Stability assessment: Apply the model to 100 bootstrap resamples; retain groups selected in >80% of iterations
  5. Validation: Test the selected pathway biomarkers in an independent cohort for prognostic or predictive performance
GROUP LASSO EXPLAINED

Frequently Asked Questions

Clear, technically precise answers to the most common questions about Group LASSO, its mechanisms, and its role in high-dimensional biomarker discovery.

Group LASSO is a regularized regression method that extends the standard LASSO by performing variable selection on predefined groups of features, forcing the model to either select all members of a group or discard them entirely. It works by modifying the standard linear regression objective function with a penalty term that is the sum of the L2-norms of the coefficient vectors for each group. While standard LASSO applies an L1 penalty to individual coefficients, driving some to exactly zero, Group LASSO applies a block-wise penalty. If a group's collective L2-norm is shrunk to zero, every coefficient within that group becomes zero simultaneously. This is mathematically expressed as minimizing Loss(β) + λ * Σ_g √(p_g) * ||β_g||₂, where β_g is the coefficient sub-vector for group g, p_g is the group size, and λ controls the overall regularization strength. The √(p_g) term accounts for varying group sizes, preventing larger groups from being unfairly penalized. This mechanism is particularly powerful in genomics, where a single gene may be represented by multiple probe sets or a categorical variable is one-hot encoded into several binary features, and the goal is to select the entire gene or category as a unit.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.