Inferensys

Glossary

LASSO Regression

LASSO (Least Absolute Shrinkage and Selection Operator) regression is a penalized linear regression method that performs automatic variable selection and regularization by applying an L1 penalty to shrink non-predictive coefficients exactly to zero.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
L1 REGULARIZATION

What is LASSO Regression?

LASSO regression is a penalized linear modeling technique that performs automatic variable selection by shrinking irrelevant feature coefficients to exactly zero, creating sparse and interpretable models ideal for high-dimensional genomic data.

LASSO Regression (Least Absolute Shrinkage and Selection Operator) is a penalized regression method that applies an L1 penalty to the absolute magnitude of model coefficients. Unlike ridge regression, which only shrinks coefficients toward zero, LASSO forces many coefficients to become exactly zero, effectively performing continuous feature selection and model regularization simultaneously during the fitting process.

In polygenic risk score modeling, LASSO addresses the p >> n problem where millions of genetic variants vastly outnumber available samples. By selecting only the most predictive SNPs and eliminating noise, LASSO produces a sparse PRS model that avoids overfitting while maintaining interpretability—a critical advantage when identifying the specific variants driving disease susceptibility.

L1 REGULARIZATION MECHANICS

Key Features of LASSO Regression

LASSO (Least Absolute Shrinkage and Selection Operator) regression applies an L1 penalty to perform simultaneous feature selection and coefficient estimation, shrinking irrelevant variant effects to exactly zero for sparse, interpretable polygenic risk score models.

01

L1 Penalty and Sparse Solutions

The defining characteristic of LASSO is the L1 penalty term added to the ordinary least squares loss function. This penalty is proportional to the absolute value of the coefficients:

  • The constraint region forms a diamond shape in parameter space
  • The loss contours hit the corners of the diamond, forcing coefficients to exactly zero
  • This produces a sparse model where only a subset of genetic variants are retained
  • The tuning parameter lambda (λ) controls the strength of regularization
  • As λ increases, more coefficients are driven to zero, simplifying the model

The geometric property of the L1 norm is what distinguishes LASSO from ridge regression (L2 penalty), which shrinks coefficients toward zero but never eliminates them entirely.

L1 Norm
Penalty Type
Exact Zero
Coefficient Fate
02

Bias-Variance Tradeoff in PRS

LASSO intentionally introduces bias into coefficient estimates to dramatically reduce variance, improving out-of-sample prediction accuracy:

  • Unbiased estimates from standard GWAS suffer from high variance when p >> n (more variants than samples)
  • LASSO shrinks large coefficients and eliminates small ones, trading a small amount of bias for a large reduction in variance
  • The optimal λ is typically chosen via k-fold cross-validation to minimize prediction error
  • In PRS applications, this tradeoff prevents overfitting to the discovery GWAS sample
  • The resulting model generalizes better to independent target cohorts

This regularization is essential in genomic prediction where hundreds of thousands of SNPs are tested but only a small fraction have true non-zero effects.

λ min
Optimal Selection
k-fold CV
Tuning Method
03

Coordinate Descent Algorithm

LASSO is computationally feasible for genome-wide data due to the coordinate descent optimization algorithm:

  • Updates one coefficient at a time while holding all others fixed
  • Uses soft-thresholding to apply the L1 penalty efficiently
  • Each update has a closed-form solution, making iterations extremely fast
  • Cycles through all predictors repeatedly until convergence
  • Scales to millions of genetic variants with reasonable compute time
  • Implemented in popular packages like glmnet in R and scikit-learn in Python

The algorithm exploits the fact that most coefficients remain zero throughout optimization, allowing sparse matrix operations that dramatically reduce memory and computational requirements for PRS construction.

glmnet
R Implementation
Millions
Variants Handled
04

Limitations in Polygenic Contexts

Despite its utility, LASSO has specific limitations when applied to polygenic risk score modeling:

  • Correlated predictors: LASSO tends to arbitrarily select one variant from a group of highly correlated SNPs in linkage disequilibrium, discarding others that may be equally predictive
  • Saturation: LASSO can select at most n predictors (sample size) before saturating, which may be insufficient for highly polygenic traits influenced by thousands of causal variants
  • Effect size bias: Selected coefficients are shrunk toward zero, underestimating true effect sizes
  • Elastic net (combining L1 and L2 penalties) often outperforms pure LASSO for complex traits by retaining correlated predictors
  • Methods like LDpred2 and PRS-CS were specifically developed to address these limitations while maintaining sparsity benefits
≤ n
Max Selected Variants
Elastic Net
Common Alternative
05

Practical Implementation for PRS

Building a LASSO-based polygenic risk score involves a structured pipeline:

  • Quality control: Filter SNPs by minor allele frequency, imputation quality, and Hardy-Weinberg equilibrium
  • LD pruning: Optionally reduce redundancy before LASSO to improve stability, though LASSO can handle some correlation
  • Standardization: Center and scale genotypes to have mean zero and unit variance so the penalty applies uniformly
  • Cross-validation: Use 5-fold or 10-fold CV to select λ, typically choosing lambda.min (minimum CV error) or lambda.1se (most regularized model within one standard error)
  • Refitting: Some practitioners refit an unpenalized model using only LASSO-selected variants to reduce shrinkage bias
  • Scoring: Apply the estimated coefficients to target cohort genotypes to calculate individual PRS values
lambda.1se
Conservative Choice
5-10 fold
CV Partitions
06

Comparison with Other PRS Methods

LASSO occupies a specific niche in the PRS methodology landscape:

  • C+T (Clumping + Thresholding): Simpler and faster but uses arbitrary p-value cutoffs rather than data-driven selection
  • Ridge regression: Uses L2 penalty, retains all variants with small coefficients, often better for highly polygenic traits but produces dense models
  • Elastic net: Combines L1 and L2 penalties, balancing sparsity with the ability to retain correlated predictors
  • LDpred2: Bayesian approach modeling the full genetic architecture with a point-normal prior, generally superior for complex traits but computationally heavier
  • PRS-CS: Continuous shrinkage prior that adapts to the LD structure, often outperforming LASSO in cross-ancestry prediction
  • LASSO remains valuable for biomarker discovery applications where identifying a small, interpretable set of variants is more important than maximizing predictive R²
Sparse
LASSO Output
Dense
Ridge Output
FEATURE COMPARISON

LASSO vs. Other Penalized Regression Methods

Comparison of regularization techniques for high-dimensional genomic feature selection and polygenic risk score modeling.

FeatureLASSO (L1)Ridge (L2)Elastic Net

Penalty Type

L1 norm: λΣ|β|

L2 norm: λΣβ²

L1 + L2: λ₁Σ|β| + λ₂Σβ²

Sparse Coefficient Vector

Exact Zero Coefficients

Handles p >> n

Correlated Predictor Handling

Selects one arbitrarily

Shrinks proportionally

Selects groups

Bias-Variance Profile

Higher bias, lower variance

Lower bias, higher variance

Balanced trade-off

Typical Genomic Application

Variant selection for PRS

Polygenic background modeling

Correlated SNP blocks

Solvable with Coordinate Descent

LASSO REGRESSION IN GENOMICS

Frequently Asked Questions

Clear, technically precise answers to the most common questions about applying LASSO regression for polygenic risk score modeling and high-dimensional biomarker selection.

LASSO (Least Absolute Shrinkage and Selection Operator) regression is a penalized linear regression method that performs simultaneous variable selection and coefficient estimation by applying an L1 penalty to the sum of absolute coefficient values. The objective function minimizes the residual sum of squares subject to the constraint that the sum of absolute coefficients is less than a tuning parameter λ. This L1 penalty geometry creates a diamond-shaped constraint region that forces coefficients to hit the corners of the constraint space, where many coefficients become exactly zero. The optimization solves: minimize(||y - Xβ||²₂ + λ||β||₁), where λ controls the shrinkage intensity. As λ increases, more coefficients are driven to zero, producing a sparse model. The solution path is typically computed using the LARS (Least Angle Regression) algorithm or coordinate descent, which efficiently traces coefficient trajectories across λ values. This sparsity property makes LASSO fundamentally different from ridge regression's L2 penalty, which shrinks coefficients toward zero but never eliminates them entirely.

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.