What happens to a fitted regression model if you replace MSE with MAE as the loss?

Quick Overview

Explain what changes when a regression model is trained with mean absolute error instead of mean squared error: the quantity it estimates, its sensitivity to outliers, and how it is optimized. It tests your understanding of loss functions and their practical side effects on predictions and inference.

What happens to a fitted regression model if you replace MSE with MAE as the loss?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What happens to a fitted regression model if you replace MSE with MAE as the loss? Assume the model class and features stay the same and only the training loss changes. Describe how the predictions, the fitting procedure and what you can report about the fit change. ```hint Start with a constant Take the simplest model, a single constant prediction. Which constant minimizes the squared error, and which minimizes the absolute error? ``` ```hint Compare the derivatives Write the derivative of each loss with respect to one residual. What does it say about how hard a large residual pulls on the fit, and about how gradient descent behaves near the optimum? ``` ### What a Strong Answer Covers - The statistic the model estimates under each loss, and when the predictions differ in practice - How the influence of large residuals changes, and the limits of that protection - What changes in optimization: closed form, differentiability, gradient size and uniqueness of the solution - Side effects on residuals, statistical inference, evaluation metrics and tree-based models ### Follow-up Questions - When would you pick Huber loss over both MSE and MAE? - A model forecasts revenue per store and the business sums the forecasts. What goes wrong if it was trained with MAE on right-skewed revenue? - How would you produce prediction intervals with a loss related to MAE? - Does least-absolute-deviation regression protect against outliers in the features as well as in the target?

Overview: Explain what changes when a regression model is trained with mean absolute error instead of mean squared error: the quantity it estimates, its sensitivity to outliers, and how it is optimized. It tests your understanding of loss functions and their practical side effects on predictions and inference.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What happens to a fitted regression model if you replace MSE with MAE as the loss? Assume the model class and features stay the same and only the training loss changes. Describe how the predictions, the fitting procedure and what you can report about the fit change.

What a Strong Answer Covers Guidance

  • The statistic the model estimates under each loss, and when the predictions differ in practice
  • How the influence of large residuals changes, and the limits of that protection
  • What changes in optimization: closed form, differentiability, gradient size and uniqueness of the solution
  • Side effects on residuals, statistical inference, evaluation metrics and tree-based models

Follow-up Questions Guidance

  • When would you pick Huber loss over both MSE and MAE?
  • A model forecasts revenue per store and the business sums the forecasts. What goes wrong if it was trained with MAE on right-skewed revenue?
  • How would you produce prediction intervals with a loss related to MAE?
  • Does least-absolute-deviation regression protect against outliers in the features as well as in the target?