- Introduced by
- Freund, Y. & Schapire, R.E.
- Year
- 1997
- Type
- Ensemble (sequential boosting of weak learners)
What does it do?
AdaBoost (Adaptive Boosting) is a boosting algorithm introduced by Yoav Freund and Robert Schapire in 1997.
It combines a sequence of simple weak learners, giving more weight in each round to the observations that earlier learners misclassified. It is a forerunner of gradient boosting and is simple enough to serve as a common classification baseline.
The intuition behind the method
A single shallow tree is a weak learner: it is only a little better than guessing. AdaBoost builds many such learners one after another. After each learner is trained, the observations it misclassified receive more weight, so the next learner concentrates on the cases the others get wrong. The final prediction is a weighted vote in which more accurate learners count for more.
History
AdaBoost was introduced by Yoav Freund and Robert Schapire in 1997, in the paper 'A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting' published in the Journal of Computer and System Sciences. The method is a forerunner of gradient boosting, and later gradient boosting tools such as XGBoost build on the same idea of sequentially combining weak learners.
When to use it
Choose AdaBoost for binary classification on cross-sectional tabular data when you want a simple boosting baseline. It makes no normality assumption about the features. Avoid it when the data contain many outliers or noisy labels that have not been screened, because the exponential loss lets such points dominate later rounds. With small samples, a few noisy points can strongly affect the weights, so compare it with simpler models such as logistic regression, and with a bagged ensemble such as Random Forest, on held-out data.
Limitations and considerations
- The exponential loss makes it sensitive to noisy data and outliers, so outliers should be screened before fitting.
- Each added learner pushes the fit further toward the training data, so the number of estimators controls overfitting and must be chosen on held-out data.
- With small samples, noisy observations can receive disproportionate weight, and the learners fitted to them can be unreliable.
- The standard algorithm is for two classes; multiclass problems need an extension.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Simple, with few parameters to set; the main tuning choice is the number of estimators.
- Combines weak depth-1 learners into a strong classifier, giving a compact baseline for tabular classification.
- Makes no normality assumption about the features.
- Its adaptive reweighting is explicit: each round's weights show which observations the ensemble is currently struggling with.
Applications
- Classification baselines on cross-sectional tabular data.
- Prediction tasks where a simple, interpretable boosted model is preferred.
- Teaching and demonstrating the boosting idea before moving to gradient boosting.
- Combining many shallow decision stumps into a single strong classifier.
How it works
How it works
Every training observation starts with an equal weight. These weights tell each successive weak learner how much it should care about getting that observation right. Standard (discrete) AdaBoost assumes two classes coded -1 and +1; multiclass problems need a variant designed for them.
A weak learner, typically a decision stump (a tree of depth 1), is fitted to the weighted data. Because it is so simple, on its own it does only slightly better than chance. Its weighted error should be better than chance; a learner that does no better than guessing receives no positive voting weight and should not be added.
The learner's weighted error determines its weight alpha in the final vote: the smaller the error, the larger alpha. Observations the learner misclassified are then multiplied up, so they carry more influence in the next round than correctly classified ones; equivalently, each weight is multiplied by exp(-alpha * y * h(x)) with labels coded -1/+1. In the standard algorithm all weights are then renormalised to sum to one. The update is driven by an exponential loss, which penalises misclassification at a sharply increasing rate. This is also why AdaBoost is sensitive to noisy points and outliers, since they keep gaining weight.
Formula
w_i \leftarrow w_i \exp(\alpha \, \mathbb{1}[y_i \neq h(x_i)])After the rounds are complete, the weak learners are pooled into one prediction by a weighted majority vote, with each learner weighted by its alpha. The sign of this weighted sum gives the predicted class.
Formula
H(x) = \text{sign}\left(\sum_t \alpha_t h_t(x)\right)Common pitfalls
- Running AdaBoost on data with outliers or label noise without screening them first.
- Letting the number of estimators grow without checking validation performance.
- Using it on a very small sample without comparing it to simpler models, since a few noisy points can dominate the weighting.
- Choosing AdaBoost over Random Forest for noisy data without comparing the two on held-out data.
Frequently asked questions
How is AdaBoost different from Random Forest?
Random Forest builds many trees in parallel, each on a bootstrap sample, and averages them (bagging). AdaBoost builds weak learners sequentially, each one focusing on the cases the previous ones got wrong (boosting). Because of its exponential loss, AdaBoost is more sensitive to noise and outliers than Random Forest.
Why is AdaBoost sensitive to outliers?
It uses an exponential loss function that penalises misclassification at a sharply increasing rate. Persistently misclassified points, often outliers or noisy observations, keep gaining weight, so they can dominate later rounds and degrade the model.
How many estimators should I use?
The number of estimators (weak learners) controls how far the fit is pushed toward the training data. Increase it while validation performance improves, and stop once performance plateaus or starts to worsen.
What is a weak learner here?
Typically a decision stump, a decision tree of depth 1. On its own it is only slightly better than chance, but AdaBoost combines many of them, each weighted by its accuracy, into a single strong classifier.
Related methods
Sources
Freund, Y. & Schapire, R.E. (1997). A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting. Journal of Computer and System Sciences, 55(1), 119–139.
Open DOI reference