AdaBoost
Boosting weak learners: reweight the mistakes, add a new stump, combine them by weighted vote.
Animated explanation
The idea
Bagging trains models in parallel and averages them to reduce variance. Boosting trains them in sequence, each one concentrating on what the ensemble so far gets wrong, to reduce bias.
AdaBoost keeps a weight on every training example. After each weak learner (typically a decision stump, a tree with one question) is trained, the examples it misclassified get heavier and the correct ones lighter. The next stump, trained on the reweighted data, is pushed towards the hard cases. Finally all stumps vote, each with a say that grows with its accuracy. Dozens of barely-better-than-chance stumps combine into a strong classifier.
What it is really optimising
AdaBoost is forward stagewise additive modelling under the exponential loss : each round adds the stump and weight that most reduce that loss given everything already in the model. The weights are exactly the current losses of each example. This view connects AdaBoost to gradient boosting, which generalises it to any differentiable loss.
Practical behaviour
AdaBoost often keeps improving test error even after training error hits zero, because it keeps enlarging the margins . But the exponential loss punishes mislabelled points enormously, so with noisy labels AdaBoost can chase outliers. Use a learning rate below 1, limit the rounds by validation, or prefer gradient boosting with a robust loss.
The algorithm, step by step
- 1Initialise weights ; labels .
- 2For : fit a stump minimising the weighted error .
- 3Set .
- 4Update and renormalise.
- 5Predict .
The maths
Learner weight
Example reweighting
Training error bound
Strengths and weaknesses
Strengths
- Turns very weak learners into a strong classifier
- Few hyperparameters (rounds, learning rate)
- Theoretical guarantees on training error and margins
Weaknesses
- Sensitive to label noise and outliers (exponential loss)
- Sequential: cannot parallelise rounds
- Usually beaten by gradient boosting libraries in practice
Reach for it when…
Check your understanding
Lambdian Lab
AdaBoost with decision stumps
Labels are ±1.
- fit_stump(X, y, w): search features, thresholds (the data values) and polarity ±1 for the lowest weighted error; a stump predicts polarity · (+1 if x[f] > t else −1). Return (f, t, polarity, error).
- stump_predict(X, stump).
- fit_adaboost(X, y, M): return a list of (alpha, stump).
- predict(X, model): sign of the weighted vote (0 counts as +1).