The Choice of Normalization Influences Shrinkage in Regularized Regression

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Larsson, Johan, Wallin, Jonas
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912461446184960
author Larsson, Johan
Wallin, Jonas
author_facet Larsson, Johan
Wallin, Jonas
contents Regularized models are often sensitive to the scales of the features in the data and it has therefore become standard practice to normalize (center and scale) the features before fitting the model. But there are many different ways to normalize the features and the choice may have dramatic effects on the resulting model. In spite of this, there has so far been no research on this topic. In this paper, we begin to bridge this knowledge gap by studying normalization in the context of lasso, ridge, and elastic net regression. We focus on binary features and show that their class balances (proportions of ones) directly influences the regression coefficients and that this effect depends on the combination of normalization and regularization methods used. We demonstrate that this effect can be mitigated by scaling binary features with their variance in the case of the lasso and standard deviation in the case of ridge regression, but that this comes at the cost of increased variance of the coefficient estimates. For the elastic net, we show that scaling the penalty weights, rather than the features, can achieve the same effect. Finally, we also tackle mixes of binary and normal features as well as interactions and provide some initial results on how to normalize features in these cases.
format Preprint
id arxiv_https___arxiv_org_abs_2501_03821
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Choice of Normalization Influences Shrinkage in Regularized Regression
Larsson, Johan
Wallin, Jonas
Machine Learning
Methodology
62J07 (Primary), 68T09 (Secondary)
G.3; G.4; I.6
Regularized models are often sensitive to the scales of the features in the data and it has therefore become standard practice to normalize (center and scale) the features before fitting the model. But there are many different ways to normalize the features and the choice may have dramatic effects on the resulting model. In spite of this, there has so far been no research on this topic. In this paper, we begin to bridge this knowledge gap by studying normalization in the context of lasso, ridge, and elastic net regression. We focus on binary features and show that their class balances (proportions of ones) directly influences the regression coefficients and that this effect depends on the combination of normalization and regularization methods used. We demonstrate that this effect can be mitigated by scaling binary features with their variance in the case of the lasso and standard deviation in the case of ridge regression, but that this comes at the cost of increased variance of the coefficient estimates. For the elastic net, we show that scaling the penalty weights, rather than the features, can achieve the same effect. Finally, we also tackle mixes of binary and normal features as well as interactions and provide some initial results on how to normalize features in these cases.
title The Choice of Normalization Influences Shrinkage in Regularized Regression
topic Machine Learning
Methodology
62J07 (Primary), 68T09 (Secondary)
G.3; G.4; I.6
url https://arxiv.org/abs/2501.03821