CAB212 · Unit 4: Ensemble learning
Boosting: AdaBoost and gradient boosting
8 practice questions
Key points
- Sequential weak learners
- AdaBoost reweights samples
- Gradient boosting fits residuals
- Boosting mostly reduces bias
Boosting trains weak learners sequentially, each focusing on the mistakes of the previous ones. It mainly reduces bias (and can also reduce variance).
AdaBoost: start with equal sample weights. After each weak learner (often a depth-1 tree, a "stump"), increase the weights of misclassified samples. Each learner gets a vote weight alpha = 0.5 ln((1 - err)/err); more accurate learners get larger alpha. Final prediction is a weighted vote.
Gradient boosting: each new tree fits the residuals (negative gradient of the loss) of the current ensemble: F_m = F_{m-1} + eta * h_m, where eta is the learning rate (shrinkage). Implementations: XGBoost, LightGBM, CatBoost.
| Bagging / RF | Boosting | |
|---|---|---|
| Training | Parallel | Sequential |
| Learners | Strong, deep | Weak, shallow |
| Reduces | Variance | Bias (and variance) |
| Noise sensitivity | Robust | More sensitive |
Exam pitfall: a small learning rate needs more trees but usually generalizes better.
Try two questions
In gradient boosting for regression with squared error, each new tree is fitted to the:
- Residuals of the current ensemble
- Labels of the test set
- Original targets again, ignoring earlier trees
- Feature means of the training set
Show the answer
A. Residuals equal the negative gradient of squared error.
Boosting trains its base learners:
- Sequentially
- In parallel independently
- Only once
- Without data
Show the answer
A. Each learner depends on previous errors.