Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. Machine Learning /
  4. What is L1 Regularization?
Machine Learning

What is L1 Regularization?

Updated October 2, 2026 Read 3 min

L1 regularization, known as lasso in linear models, adds a penalty equal to the sum of the absolute values of the model's weights, which shrinks some weights to exactly zero and performs automatic feature selection.

Contents 12
  1. 01Key takeaways
  2. 02L1 explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05When to use L1
  6. 06When L2 is better
  7. 07L1 vs L2 vs elastic net
  8. 08Practical notes
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

L1 regularization adds a penalty equal to the sum of the absolute values of a model’s weights. Its defining property is sparsity: it drives some weights to exactly zero, effectively removing those features from the model. In linear regression this is known as lasso, introduced by Robert Tibshirani in 1996.

Key takeaways

  • Penalty = λ × sum of |weights|.
  • Some weights become exactly zero, so L1 performs feature selection.
  • It suits problems with many features where only a few genuinely matter.
  • With correlated features it tends to keep one and discard the others.
  • Elastic net combines L1 and L2 to get sparsity with more stability.

L1 explained in simple terms

Imagine packing for a trip with a strict rule: pay a fixed fee for every item you bring, regardless of weight. You will leave behind anything not clearly worth its fee, ending with a short list of genuinely useful things. L1 charges that flat fee per feature, so marginal features get dropped entirely.

How it works

Training normally minimises prediction error alone. With L1, it minimises:

total loss = prediction error + λ × Σ|wᵢ|

Because the penalty’s gradient is constant regardless of how small a weight becomes, there is always the same downward pressure. A weight whose predictive contribution is smaller than that pressure is pushed to exactly zero and stays there. L2, by contrast, shrinks weights proportionally, so they approach zero without reaching it.

A worked example

A model predicting house prices starts with ten features. As λ increases:

λNon-zero featuresValidation error
0100.182
0.0190.176
0.160.171
1.030.189
1000.412

At λ = 0.1 the model keeps six features and performs best: four weak features were adding noise. At λ = 1.0 it has discarded useful signal. At λ = 10 everything is zero and the model predicts a constant. The chosen λ comes from cross-validation, not intuition.

When to use L1

  • You have many features and suspect most are irrelevant.
  • You want an interpretable model with a short feature list.
  • Feature collection or computation is expensive, so dropping features saves money.
  • You need a compact model for deployment.
  • You are exploring which features matter before building a final model.

When L2 is better

  • Most features contribute a little and you want to keep them all.
  • Features are highly correlated and you do not want arbitrary selection.
  • You are training neural networks, where weight decay (L2) is standard.
  • Stability across retraining matters more than sparsity.

L1 vs L2 vs elastic net

PropertyL1 (lasso)L2 (ridge)Elastic net
PenaltySum of absolute weightsSum of squared weightsMix of both
Produces zerosYesNoYes
Feature selectionBuilt inNoneBuilt in
Correlated featuresPicks one arbitrarilySpreads weight across themSelects groups together
Stability across resamplesLowerHigherHigher than L1
Typical useSparse, interpretable modelsGeneral shrinkage, neural networksMany correlated features

Practical notes

  • Scale features first. L1 penalises coefficient size, so unscaled features are penalised unequally.
  • Tune λ on validation data, trying values on a log scale.
  • Report the selected features, since that list is a useful output in itself.
  • Check stability: re-run on bootstrap samples; if the selected set changes a lot, prefer elastic net.
  • In neural networks, L1 is used far less than L2; sparsity there is more often achieved through pruning.

Limitations

  • Selection can be unstable with correlated features.
  • With more features than observations, it selects at most as many features as there are rows.
  • The zeros are a modelling convenience, not proof a feature is irrelevant.
  • Less useful for deep networks than for linear models.

Common Use Cases

01

High-dimensional data

Select a few informative features from thousands.

02

Interpretable models

Produce short, explainable feature lists.

03

Genomics and text

Handle datasets with far more features than samples.

04

Cost reduction

Drop features that are expensive to collect.

05

Feature exploration

Identify candidate drivers before final modelling.

06

Compact deployment

Ship models that need fewer inputs.

Frequently Asked Questions

A penalty equal to the sum of absolute weight values, which drives some weights to exactly zero.

Linear regression with an L1 penalty, introduced in 1996, which performs automatic feature selection.

Its gradient is constant, so small weights face the same downward pressure and are pushed to exactly zero.

When you expect most features to be irrelevant and want an interpretable, sparse model.

A combination of L1 and L2 penalties that keeps feature selection while handling correlated features more stably.

Related Terms

  • L2 Regularization
  • Regularization
  • Overfitting
  • Feature Engineering
  • Hyperparameter Tuning
  • Model Variance

Related AI Terms

What is Hyperparameter Tuning?Hyperparameter tuning is the process of systematically searching for the configuration values that make a model perform best…What is Early Stopping in Machine Learning?Early stopping is a regularisation technique that halts training when validation performance stops improving, preventing the model from…What is L2 Regularization?L2 regularization adds a penalty equal to the sum of the squared weights, shrinking all weights smoothly towards…What is Cross-Validation in Machine Learning?Cross-validation is a technique that repeatedly splits data into training and validation parts, rotating which part is held…What is Stochastic Gradient Descent (SGD)?Stochastic gradient descent (SGD) updates a model's weights using one example or a small batch at a time…What is the Bias-Variance Tradeoff?The bias-variance tradeoff describes how a model's error splits into bias from overly simple assumptions and variance from…

Contents

  1. 01Key takeaways
  2. 02L1 explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05When to use L1
  6. 06When L2 is better
  7. 07L1 vs L2 vs elastic net
  8. 08Practical notes
  9. 09Limitations
  10. 10Common Use Cases
  11. 11Frequently Asked Questions
  12. 12Related Terms

AI Topic

  • Machine Learning

Related Terms

  • What is Hyperparameter Tuning?
  • What is Early Stopping in Machine Learning?
  • What is L2 Regularization?
  • What is Cross-Validation in Machine Learning?
  • What is Stochastic Gradient Descent (SGD)?
  • What is the Bias-Variance Tradeoff?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
October 2, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}