Gradient Boosting
Builds an ensemble of small trees one at a time, each trained to correct the remaining errors of all trees before it.
Also GBM · gradient boosted trees · XGBoost · LightGBM · CatBoost
Friedman, 2001
You throw a dart and miss a bit to the left. Your second throw only tries to fix that miss. Your third fixes what is still off. Many small corrections add up to a bullseye.
Where it fits
+All relationships as a list
Is a kind of / part of
Siblings
Uses / built on
Techniques that apply here
How it works
Start with a very simple guess, such as the average house price. It is wrong for most houses. Compute each house’s residual (true price minus guess). Now train a small decision tree to predict those residuals, and add a fraction of its output to the guess. Repeat.
After hundreds of rounds, the sum of all those small trees is a very accurate model.
Why “gradient”? For squared error, the residuals are exactly the negative gradient of the loss with respect to the predictions. Fitting trees to the negative gradient works for any differentiable loss, so the same algorithm handles regression, classification and ranking. It is gradient descent, but in the space of functions instead of weights.
The learning rate (shrinkage) scales each tree’s contribution. Smaller steps need more trees but generalize better.
The math
where is the tree fitted at round and the learning rate.
Everyday use cases
- Case 01
Card fraud detection
Scoring each card transaction in milliseconds for signs of fraud.
- Case 02
Search and ad ranking
Boosted trees have long powered ranking models in search engines and ad systems.
- Case 03
Credit scoring
Predicting default risk from tabular applicant data.
Famous examples
- 1993Card Fraud Detection
Models that score every card payment for fraud risk in milliseconds, combining supervised classifiers such as gradient boosting with anomaly detection on spending patterns.
- 1989Credit Scoring
Predicting how likely a borrower is to repay, traditionally with interpretable scorecards based on logistic regression, increasingly with gradient boosting, under strict fairness and explainability rules.
Strengths, weaknesses and when to use it
Strengths
- Often the most accurate model for tabular data.
- Mature, fast libraries (XGBoost, LightGBM, CatBoost) with missing-value handling built in.
Weaknesses
- More hyperparameters to tune than a random forest.
- Can overfit if you add too many trees with a high learning rate.
When to use itWhen you want top accuracy on structured, spreadsheet-like data and can spend a little time tuning.
Compare with
Check yourself
- Q01
What does each new tree in gradient boosting try to predict?
Show answer
B: The errors (residuals) the current ensemble still makes
- Q02
How does gradient boosting differ from a random forest?
Show answer
A: Trees are built sequentially to fix errors, instead of independently and averaged