What is the pseudo-residual when gradient boosting is trained under mean absolute error loss?

Quick Overview

Asks what pseudo-residual gradient boosting fits when the loss is mean absolute error. Tests the ability to derive negative gradients, explains how leaf values and the starting prediction are chosen for this loss, and probes outlier behavior and second-order boosting libraries.

What is the pseudo-residual when gradient boosting is trained under mean absolute error loss?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the pseudo-residual when gradient boosting is trained under mean absolute error loss? ```hint Start from the definition Pseudo-residuals are the negative gradient of the loss with respect to the current prediction. Work out that derivative for an absolute value and notice what information about the error it keeps. ``` ```hint After the tree is fit Once a tree is fit to these targets, ask whether its raw leaf averages are a sensible step for this loss, or whether each leaf needs a different value. ``` ### What a Strong Answer Covers - The derivative of the absolute loss and the pseudo-residual it gives, including the point where it is undefined - How leaf values are set after the tree structure is fit, and why - The initial prediction under this loss - The effect on sensitivity to outliers and on Newton-style boosting libraries ### Follow-up Questions - How does the pseudo-residual change under Huber loss, and when would you prefer it? - What would go wrong if you kept the raw leaf averages of the pseudo-residuals as leaf values? - How would you adapt the same scheme to predict the 90th percentile instead of the median? - Why can't a booster that takes Newton steps use the Hessian of the absolute loss directly?

Overview: Asks what pseudo-residual gradient boosting fits when the loss is mean absolute error. Tests the ability to derive negative gradients, explains how leaf values and the starting prediction are chosen for this loss, and probes outlier behavior and second-order boosting libraries.

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

What is the pseudo-residual when gradient boosting is trained under mean absolute error loss?

What a Strong Answer Covers Guidance

  • The derivative of the absolute loss and the pseudo-residual it gives, including the point where it is undefined
  • How leaf values are set after the tree structure is fit, and why
  • The initial prediction under this loss
  • The effect on sensitivity to outliers and on Newton-style boosting libraries

Follow-up Questions Guidance

  • How does the pseudo-residual change under Huber loss, and when would you prefer it?
  • What would go wrong if you kept the raw leaf averages of the pseudo-residuals as leaf values?
  • How would you adapt the same scheme to predict the 90th percentile instead of the median?
  • Why can't a booster that takes Newton steps use the Hessian of the absolute loss directly?