Skip to content

Week 2 Lecture 1

Non-linear Transformations

Ξ¦ is a non-linear transformation, Ξ¦:𝒳︀→𝒡︀, where 𝒡︀=ℝ𝑑̃ (𝑑̃ just means, that this isn’t the 𝑑 of the original input space)

Where 𝒡︀ is called feature space.

β„Ž(π‘₯)=β„ŽΜƒ(Ξ¦(π‘₯))=𝑀̃𝑇Φ(π‘₯)

Overfitting and regularization

In the underdetermined case (𝑁≀𝑑) linear regression always finds a model with zero empirical risk.

Even if π‘₯𝑖 and 𝑦𝑖 are independent!!!

Overfitting occurs if the model faithfully reflects idiosyncrasies of the training data rather than the underlying process that has generated the data.




Let’s assume we use a polynomial non-linearity. In this case, we’d need to figure out what π‘˜ degree to use. We can find it using cross-validation.

Two-norm regularization

We can restrict out hypothesis with a parameter 𝐢>0, such that ‖𝑀‖≀𝐢 (see presentation for proof)

This 𝐢 can restrict how steep our hypothesis can be.

But doing optimization under a constraint gets hard. We can instead add another term to the empirical risk: πœ†π‘€π‘‡π‘€ (πœ† is a parameter similar to 𝐢)

Adding this still gets us an analytical solution:

𝑀⋆=(𝑋𝑇𝑋+πœ†πΌ)βˆ’1𝑋𝑇𝑦

If we set πœ†=0 then the regularization term disappears, and the whole formula becomes the original regularization formula.

If πœ†β†’βˆž, then the value under the matrix inverse becomes really large, thus its inverse converges to 0. I.e. the 𝑀⋆ becomes zero as well.

Similarly, rather than two-norm, one can use one-norm for regularization. This method is called LASSO. It’s used, since one-norm regularization causes sparser models.

BUT in the real world, things are somewhat different. If we take a heavily overparameterized model, the errors suddenly start getting better (double descent). This is because in the overparameterized case, our goal (see: previous lecture) was to find the weights that go through every datapoint, while having the smallest weight norm. I.e. it does implicit two-norm regularization.