Why is Huber loss useful when evaluating predictions on data with heavy outliers?

Quick Overview

Asks why Huber loss is a better way to score predictions than squared error when the data contains extreme outliers. It tests understanding of the piecewise loss, how it limits each point's influence, how to set its threshold, and when down-weighting outliers is a mistake.

Why is Huber loss useful when evaluating predictions on data with heavy outliers?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is Huber loss useful when evaluating predictions on data with heavy outliers? ```hint Compare growth rates Look at how much one very large residual adds to the total under a squared penalty, and how much it adds under an absolute one. ``` ```hint Think about influence Ask how hard a single point can pull the score, or the fitted model, as its residual keeps growing. ``` ### What a Strong Answer Covers - The piecewise definition of Huber loss and the role of the threshold δ - Why squared error lets a few large residuals dominate, and how Huber limits each point's influence - How Huber compares with MAE: smoothness, efficiency near zero, differentiability - How to choose δ from the residual scale, and what happens as δ grows very large or shrinks toward zero - When down-weighting outliers is the wrong call, and what to report alongside the score ### Follow-up Questions - How would you estimate the residual scale for δ when the residuals themselves contain outliers? - If you train with Huber loss, what does the model's prediction estimate: the conditional mean, the median, or something between? - When would you use pseudo-Huber or log-cosh loss instead, and what do they change? - Demand spikes are rare but costly. How would you evaluate a forecasting model so that its errors on spikes stay visible?

Overview: Asks why Huber loss is a better way to score predictions than squared error when the data contains extreme outliers. It tests understanding of the piecewise loss, how it limits each point's influence, how to set its threshold, and when down-weighting outliers is a mistake.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why is Huber loss useful when evaluating predictions on data with heavy outliers?

What a Strong Answer Covers Guidance

  • The piecewise definition of Huber loss and the role of the threshold δ
  • Why squared error lets a few large residuals dominate, and how Huber limits each point's influence
  • How Huber compares with MAE: smoothness, efficiency near zero, differentiability
  • How to choose δ from the residual scale, and what happens as δ grows very large or shrinks toward zero
  • When down-weighting outliers is the wrong call, and what to report alongside the score

Follow-up Questions Guidance

  • How would you estimate the residual scale for δ when the residuals themselves contain outliers?
  • If you train with Huber loss, what does the model's prediction estimate: the conditional mean, the median, or something between?
  • When would you use pseudo-Huber or log-cosh loss instead, and what do they change?
  • Demand spikes are rare but costly. How would you evaluate a forecasting model so that its errors on spikes stay visible?