Why does Huber loss make gradient boosting more robust to target outliers than squared loss?

Quick Overview

Asks why gradient boosting with Huber loss copes better with extreme target values than boosting with squared loss. Tests understanding of pseudo-residuals, how tree leaf values are set, and how the Huber threshold is chosen.

Why does Huber loss make gradient boosting more robust to target outliers than squared loss?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why does Huber loss make gradient boosting more robust to target outliers than squared loss? Assume a regression problem where a small share of the training targets are extreme, for example data-entry errors or rare spikes, and the model is a gradient-boosted tree ensemble. ```hint Look at the gradient Each boosting round fits a tree to the negative gradient of the loss. Write that quantity for squared loss and for Huber loss, and compare how each one grows with the size of the error. ``` ```hint Leaf values Fitting the residuals is half of a round. Think about how the value in each leaf is set, and what a mean does when one row in the leaf has a huge residual. ``` ### What a Strong Answer Covers - The shape of Huber loss and how its negative gradient, the pseudo-residual, compares with the one from squared loss - How an unbounded pseudo-residual affects split selection and leaf values in boosting - How leaf values are computed under Huber loss and why they resist a single extreme row - How the threshold $\delta$ is chosen and what happens when it is very small or very large ### Follow-up Questions - How does Huber loss compare with absolute error and quantile loss as a boosting objective? - Second-order boosting libraries divide by the hessian. What is the second derivative of Huber loss for large errors, and how do implementations work around it? - If the outliers are in the input features instead of the target, does switching to Huber loss help a tree ensemble? - How would you choose $\delta$ on validation data, and which metric would you evaluate it with?

Overview: Asks why gradient boosting with Huber loss copes better with extreme target values than boosting with squared loss. Tests understanding of pseudo-residuals, how tree leaf values are set, and how the Huber threshold is chosen.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why does Huber loss make gradient boosting more robust to target outliers than squared loss?

Assume a regression problem where a small share of the training targets are extreme, for example data-entry errors or rare spikes, and the model is a gradient-boosted tree ensemble.

What a Strong Answer Covers Guidance

  • The shape of Huber loss and how its negative gradient, the pseudo-residual, compares with the one from squared loss
  • How an unbounded pseudo-residual affects split selection and leaf values in boosting
  • How leaf values are computed under Huber loss and why they resist a single extreme row
  • How the threshold δ\delta is chosen and what happens when it is very small or very large

Follow-up Questions Guidance

  • How does Huber loss compare with absolute error and quantile loss as a boosting objective?
  • Second-order boosting libraries divide by the hessian. What is the second derivative of Huber loss for large errors, and how do implementations work around it?
  • If the outliers are in the input features instead of the target, does switching to Huber loss help a tree ensemble?
  • How would you choose δ\delta on validation data, and which metric would you evaluate it with?