Regression is a statistical technique employed in machine learning to forecast a continuous target variable based on a set of features. In L1 regression, commonly referred to as Lasso regression, the loss function is defined as the sum of the absolute values of the coefficients. This approach can result in some coefficients being exactly zero, effectively performing feature selection by disregarding less significant features. L1 regression is more affected by outliers since it attempts to fit these points, leading to non-zero coefficients. Conversely, L2 regression, known as Ridge regression, incorporates the square of the coefficients in its loss function. Unlike L1, all coefficients in an L2 regression model are non-zero, even those that are very small, which may result in overfitting as it considers all features. L2 regression is less impacted by outliers, as it squares the differences between predicted and actual values, causing outliers to be 'spread' out and making it more resilient.