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.
Glossary
Group LASSO

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.
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.
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.
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.
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.
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.
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.
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.
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.
Group LASSO vs. Standard LASSO vs. Elastic Net
Structural and functional comparison of three L1-based regularized regression techniques for high-dimensional feature selection.
| Feature | Group LASSO | Standard LASSO | Elastic 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 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.
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.
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.
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, whereS_gis 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_lassoextensions provide production-ready implementations - Cross-validation selects the optimal
λby minimizing prediction error across held-out folds
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.
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.
Biomarker Discovery Workflow
A typical Group LASSO pipeline for biomarker identification:
- Preprocessing: Normalize expression data, handle batch effects with ComBat, standardize features to zero mean and unit variance
- Group definition: Map probes/genes to curated pathway databases or define custom gene sets from prior experiments
- Model fitting: Run Group LASSO with 10-fold cross-validation to select
λthat minimizes mean squared error - Stability assessment: Apply the model to 100 bootstrap resamples; retain groups selected in >80% of iterations
- Validation: Test the selected pathway biomarkers in an independent cohort for prognostic or predictive performance
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Group LASSO extends the sparsity principle to predefined feature groups. These related techniques address different aspects of high-dimensional variable selection, from individual feature screening to structured sparsity and ensemble approaches.
LASSO (L1 Regularization)
The foundational method that Group LASSO extends. LASSO adds a penalty equal to the absolute value of coefficient magnitudes to the loss function, shrinking irrelevant feature coefficients to exactly zero. Unlike Group LASSO, it performs individual feature selection without considering group structure. The penalty term is λ∑|βⱼ|, creating a diamond-shaped constraint region that forces sparsity at the vertex intersections.
Sparse Group LASSO
A direct extension that combines both group-level and within-group sparsity. The penalty includes a standard Group LASSO term plus an additional L1 penalty on individual coefficients: λ₁∑||β_g||₂ + λ₂||β||₁. This allows the model to select entire groups while also zeroing out irrelevant features within selected groups. Particularly useful in pathway analysis where entire biological pathways may be relevant, but only specific genes within them drive the signal.
Overlap Group LASSO
A variant that handles features belonging to multiple overlapping groups simultaneously. The penalty uses a latent variable formulation where each feature's coefficient is decomposed into components corresponding to each group it belongs to. The penalty becomes λ∑||β̄_g||₂, where β̄_g are the coefficient subvectors for each group. Critical for gene set analysis where genes participate in multiple biological pathways.
Elastic Net
Combines L1 and L2 penalties linearly: λ₁||β||₁ + λ₂||β||₂². While not group-structured, Elastic Net handles highly correlated features by selecting or deselecting them together—a behavior Group LASSO achieves through explicit group definition. The L2 component stabilizes the L1 path when features are correlated, avoiding the arbitrary single-variable selection that standard LASSO exhibits among correlated predictors.
Stability Selection
A resampling-based framework that can wrap around Group LASSO to improve selection robustness. It applies the selection algorithm to many random subsamples of the data and selects features or groups that are consistently chosen above a threshold frequency. Addresses Group LASSO's sensitivity to the regularization parameter λ by integrating over a range of penalty values, providing finite-sample false discovery control without asymptotic assumptions.
Hierarchical LASSO
Enforces tree-structured sparsity where a feature can only be selected if its ancestors in a predefined hierarchy are also selected. The penalty is a sum of group norms over nested groups defined by the tree structure. Applied in taxonomic microbiome analysis and wavelet decomposition where features naturally organize into parent-child relationships. Contrasts with Group LASSO's flat, non-hierarchical group structure.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us