Regularization
When the cross-product matrix cannot be inverted, or barely can, a penalty added to the loss stabilizes the coefficients. Which penalty matters: Ridge shrinks toward zero but never reaches it, Lasso drives useless variables exactly to zero, and ElasticNet handles groups of correlated variables. Dropping variables outright, by VIF or PCA, is the alternative.
