GBDT (Gradient Boosting Decision Tree) views boosting as gradient descent in function space: with the additive model FM(x)=∑m=1Mρmhm(x), each round updates along the negative gradient of the loss w.r.t. the function values, Fm=Fm−1−ρm∇FLF=Fm−1. Round m has three steps: (1) compute the negative-gradient pseudo-residual for each sample, y~i=−[∂F(xi)∂L(yi,F(xi))]F=Fm−1; (2) fit a regression tree to (xi,y~i), obtaining leaf regions Rjm (j=1,…,Jm); (3) line-search each leaf's output ρjm=argminρ∑xi∈RjmL(yi,Fm−1(xi)+ρ). Under squared loss L=21(y−F)2 the pseudo-residual is exactly the residual y~i=yi−Fm−1(xi) and the leaf output is the leaf-mean; under absolute loss y~i=sign(yi−Fm−1(xi)) and the leaf output is the median (L2 → mean, L1 → median); for binary classification with log loss, F models the log-odds with p^i=σ(Fm−1(xi)), pseudo-residual y~i=yi−p^i, and leaf values are refined by a Newton step. Training uses shrinkage (learning rate) ν∈(0.01,0.1): Fm=Fm−1+ν⋅treem — each tree contributes less, more trees are needed, but generalization improves substantially; stochastic gradient boosting (subsampling) further reduces variance. Friedman (2001) showed AdaBoost is gradient boosting under exponential loss.
💡Use Cases
how pseudo-residuals arise, how leaf outputs are determined, differences from AdaBoost, and the role of the learning rate are frequent whiteboard follow-ups; GBDT is also the classic strong baseline for regression, classification, and ranking (LambdaMART).
⚡Key Problems Solved
AdaBoost's exponential loss only fits binary classification and is noise-sensitive — the negative-gradient framework extends boosting to any differentiable loss: each round fits ∂F∂L instead of the labels, so adapting a new loss only requires its first derivative (Huber/quantile loss for robust regression, log loss for calibrated probabilities, NDCG surrogates for ranking); fitting residuals directly reduces bias, making it the standard fix for high-bias low-variance weak models (shallow trees), complementing random forests which reduce variance.
🎯5 High-Frequency Exam Points
1
Whiteboard the negative-gradient pseudo-residual y~i=−[∂F∂L]F=Fm−1: why does it equal y−Fm−1 under squared loss?
2
Derive leaf outputs: mean under squared loss, median under absolute loss; why a Newton step for binary log loss?
3
Relationship to AdaBoost: why is AdaBoost a special case of gradient boosting under exponential loss? How do base learners and weighting differ?
4
Role of shrinkage ν: why do small learning rates with more trees usually work better? Effect on the bias-variance tradeoff?
5
Which loss functions can GBDT adapt? Compare its use cases with random forests (bias vs variance reduction)?