Why are regression trees fitted to pseudo-residuals even when gradient boosting solves a classification problem?

Quick Overview

Asks why gradient boosting fits regression trees to pseudo-residuals even when the task is classification. Tests understanding of the raw log-odds score, the negative gradient of the log loss, additive model updates and how leaf values are chosen.

Why are regression trees fitted to pseudo-residuals even when gradient boosting solves a classification problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why are regression trees fitted to pseudo-residuals even when gradient boosting solves a classification problem? ```hint What gets added up Ask what quantity the ensemble sums across boosting rounds, and when the class probability is actually computed. ``` ```hint Look at the target Take the derivative of the binary log loss with respect to that summed quantity and check what kind of number it is for each training point. ``` ### What a Strong Answer Covers - What the ensemble outputs before any sigmoid or softmax, and why the updates must be additive - The pseudo-residual as the negative gradient of the loss, with the binary log-loss formula and its range - Why real-valued targets call for regression trees, and why summing class votes would not give a gradient step - How the same tree learner serves other losses, and how leaf values are set ### Follow-up Questions - How do XGBoost and LightGBM use the second derivative of the loss when choosing splits and leaf values? - With K classes, how many trees does each boosting round fit, and what is each tree's target? - What happens to the pseudo-residuals of points the model already classifies correctly with high confidence?

Overview: Asks why gradient boosting fits regression trees to pseudo-residuals even when the task is classification. Tests understanding of the raw log-odds score, the negative gradient of the log loss, additive model updates and how leaf values are chosen.

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

Why are regression trees fitted to pseudo-residuals even when gradient boosting solves a classification problem?

What a Strong Answer Covers Guidance

  • What the ensemble outputs before any sigmoid or softmax, and why the updates must be additive
  • The pseudo-residual as the negative gradient of the loss, with the binary log-loss formula and its range
  • Why real-valued targets call for regression trees, and why summing class votes would not give a gradient step
  • How the same tree learner serves other losses, and how leaf values are set

Follow-up Questions Guidance

  • How do XGBoost and LightGBM use the second derivative of the loss when choosing splits and leaf values?
  • With K classes, how many trees does each boosting round fit, and what is each tree's target?
  • What happens to the pseudo-residuals of points the model already classifies correctly with high confidence?