Regularization from Large Wights Perspective
Posted rhyswang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Regularization from Large Wights Perspective相关的知识,希望对你有一定的参考价值。
Problem with Large Weights
Large weights in a neural network are a sign of overfitting.
A network with large weights has very likely learned the statistical noise in the training data. This results in a model that is unstable, and very sensitive to changes to the input variables. In turn, the overfit network has poor performance when making predictions on new unseen data.
Regularization? A popular and effective technique to address the problem is to update the loss function that is optimized during training to take the size of the weights into account.
This is called a penalty, as the larger the weights of the network become, the more the network is penalized, resulting in larger loss and, in turn, larger updates. The effect is that the penalty encourages weights to be small, or no larger than is required during the training process, in turn reducing overfitting.
L1 and L2 norm
A linear regression model that implements L1 norm for regularisation is called lasso regression, and one that implements (squared) L2 norm for regularisation is called ridge regression.
Note: Strictly speaking, the last equation (ridge regression) is a loss function with squared L2 norm of the weights (notice the absence of the square root). When the Gradient Descent is used to update the weights, the rule is:
Compare the second term of each of the equation above. Apart from the derivative of original loss, the change in w depends on the ±λ term or the -2λw term. Both of them decrease the value of the weights.
以上是关于Regularization from Large Wights Perspective的主要内容,如果未能解决你的问题,请参考以下文章
LeetCode 1093. Statistics from a Large Sample
Large Scale Metric Learning from Equivalence Constraints (KISSME) CVPR 2012
时间:2019-06-01 标签:c#concat to string from large list array
GPT-2隐私泄露论文阅读:Extracting Training Data from Large Language Models
ElasticsearchResult window is too large, from + size must be less than or equal to: [10000]
HF-Net:From Coarse to Fine: Robust Hierarchical Localization at Large Scale