What is a pseudo-residual in gradient boosting?

Quick Overview

Asks what a pseudo-residual is in gradient boosting and how each new tree uses it. Tests the gradient view of boosting, how the pseudo-residual changes with the loss function, and where leaf-value line search and second-order methods fit in.

What is a pseudo-residual in gradient boosting?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is a pseudo-residual in gradient boosting? ```hint Boosting as gradient descent Treat the model's current predictions on the training points as the parameters being optimized. Ask what each new tree is trained to predict, and how that target depends on the loss. ``` ### What a Strong Answer Covers - The definition as a per-sample derivative of the loss with respect to the current prediction, including its sign - Why it matches the ordinary residual under squared error, and what it looks like for at least one other loss - How the next tree uses the pseudo-residuals, including how leaf values are set and shrinkage - The link to gradient descent in function space, and what second-order methods change ### Follow-up Questions - What are the pseudo-residuals for log loss in binary classification, and how would you set a leaf's value from them? - Why does boosting with absolute loss react less to outliers than boosting with squared error? - How do XGBoost-style leaf weights use both the gradient and the Hessian?

Overview: Asks what a pseudo-residual is in gradient boosting and how each new tree uses it. Tests the gradient view of boosting, how the pseudo-residual changes with the loss function, and where leaf-value line search and second-order methods fit in.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is a pseudo-residual in gradient boosting?

What a Strong Answer Covers Guidance

  • The definition as a per-sample derivative of the loss with respect to the current prediction, including its sign
  • Why it matches the ordinary residual under squared error, and what it looks like for at least one other loss
  • How the next tree uses the pseudo-residuals, including how leaf values are set and shrinkage
  • The link to gradient descent in function space, and what second-order methods change

Follow-up Questions Guidance

  • What are the pseudo-residuals for log loss in binary classification, and how would you set a leaf's value from them?
  • Why does boosting with absolute loss react less to outliers than boosting with squared error?
  • How do XGBoost-style leaf weights use both the gradient and the Hessian?