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

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.
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.
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.
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.
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.
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.
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
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
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²
LASSO vs. Other Penalized Regression Methods
Comparison of regularization techniques for high-dimensional genomic feature selection and polygenic risk score modeling.
| Feature | LASSO (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 |
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.
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.
Related Terms
Master these complementary techniques and metrics to build robust, interpretable PRS models with LASSO regression.
Elastic Net Regularization
A hybrid penalty combining the L1 penalty of LASSO with an L2 (ridge) penalty. While LASSO selects at most n variables when p > n, elastic net can select groups of correlated predictors, overcoming LASSO's limitation of arbitrarily picking one variant from a high-LD block. The mixing parameter α controls the balance between L1 sparsity and L2 grouping.
Cross-Validation for λ Tuning
The regularization parameter λ controls the strength of the L1 penalty and thus model sparsity. K-fold cross-validation partitions data into training and validation sets to select the λ that minimizes prediction error. The one-standard-error rule chooses the largest λ within one standard error of the minimum, yielding a more parsimonious model with fewer selected variants.
Feature Standardization
LASSO requires all predictor variables to be on a comparable scale because the L1 penalty is applied uniformly to all coefficients. Without standardization, variants with larger numeric ranges would be unfairly penalized. Standard practice involves z-score normalization of each SNP dosage to mean zero and unit variance before fitting the model.
Coordinate Descent Algorithm
The workhorse optimization method for fitting LASSO models in high-dimensional genomic data. It cycles through each coefficient, updating it while holding all others fixed, using soft-thresholding to apply the L1 penalty. This approach scales efficiently to millions of SNPs because it exploits sparsity and avoids expensive matrix inversions required by classical regression.
Stability Selection
A resampling-based method that applies LASSO to multiple subsamples of the data and tracks how frequently each variant is selected. Variants with selection probabilities exceeding a threshold are retained. This addresses LASSO's sensitivity to data perturbations and provides error control on the expected number of false positives, crucial for biomarker validation.
Comparison with LDpred2
While LASSO assumes a sparse genetic architecture with few causal variants, LDpred2 uses a Bayesian point-normal prior that models a mixture of null and non-null effects across the entire genome. LASSO sets coefficients to exactly zero, whereas LDpred2 shrinks all variants toward zero without explicit selection. The optimal method depends on the trait's underlying polygenicity.

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