WIPIVERSE All articles

AdaBoost

AdaBoost

AdaBoost (short for Adaptive Boosting) is a machine-learning meta-algorithm for supervised classification, formulated by Yoav Freund and Robert E. Schapire in 1995. It belongs to the family of ensemble methods known as boosting, in which many relatively weak prediction rules are combined into a single, more accurate rule. Freund and Schapire received the 2003 Gödel Prize and the 2004 ACM Paris Kanellakis Theory and Practice Award for their work on boosting.

Overview

AdaBoost constructs a strong classifier by combining a sequence of weak classifiers (also called base learners). A weak learner is any model that performs only slightly better than random guessing; a common choice is a decision stump (a one-level decision tree), though deeper trees, neural networks, and other models are also used. The final prediction is a weighted majority vote of the weak hypotheses.

The algorithm is adaptive in that each successive weak learner is trained on a reweighted version of the training data, with greater emphasis placed on examples that previous learners misclassified. This reweighting is the origin of the "Ada" (adaptive) in the name.

Algorithm (Discrete AdaBoost, binary case)

Given training examples $(x_1, y_1), \dots, (x_m, y_m)$ with labels $y_i \in {-1, +1}$:

  1. Initialize weights $D_1(i) = 1/m$ for all $i$.
  2. For $t = 1, \dots, T$:
    • Train a weak learner on the distribution $D_t$ to obtain a hypothesis $h_t : X \to {-1, +1}$.
    • Compute its weighted error $\varepsilon_t = \Pr_{i \sim D_t}[h_t(x_i) eq y_i]$.
    • Choose a coefficient $\alpha_t = \tfrac{1}{2}\ln!\left(\frac{1-\varepsilon_t}{\varepsilon_t}\right)$.
    • Update the weights: $D_{t+1}(i) = \frac{D_t(i)\exp(-\alpha_t y_i h_t(x_i))}{Z_t}$, where $Z_t$ is a normalization factor ensuring $D_{t+1}$ sums to 1.
  3. Output the final hypothesis $H(x) = \operatorname{sign}!\left(\sum_{t=1}^{T} \alpha_t h_t(x)\right)$.

The coefficient $\alpha_t$ assigns greater influence to more accurate weak learners. Misclassified examples receive increased weight, so later learners are forced to concentrate on harder cases. The only hyperparameter is the number of rounds $T$.

Theoretical properties

  • Training error bound. Freund and Schapire proved that the training error of the final hypothesis is at most $\prod_{t=1}^{T} 2\sqrt{\varepsilon_t(1-\varepsilon_t)} = \prod_{t=1}^{T}\sqrt{1 - 4\gamma_t^2} \le \exp!\left(-2\sum_{t=1}^{T}\gamma_t^2\right)$, where $\gamma_t = \tfrac{1}{2} - \varepsilon_t$ measures how much better than random each weak hypothesis is. If every weak learner is slightly better than chance ($\varepsilon_t \le \tfrac{1}{2} - \gamma$), the training error decreases exponentially in $T$.
  • Weak learning condition. The analysis assumes each weak hypothesis has error below $1/2$ with respect to the distribution it was trained on. AdaBoost is adaptive in that it does not require a prior lower bound on this edge, unlike earlier boosting algorithms.
  • Generalization. An early bound based on VC-dimension suggested that AdaBoost would overfit as $T$ increases. Empirically, however, test error often continues to fall long after training error reaches zero. Schapire, Freund, Bartlett, and Lee (1998) explained this through margins: larger margins on the training set yield tighter generalization bounds that are independent of the number of rounds. This analysis connects boosting to support vector machines, though AdaBoost involves $\ell_1$-type norms and corresponds to linear programming rather than the quadratic programming of SVMs.
  • Loss minimization. Breiman and others showed that AdaBoost performs a greedy, stagewise minimization of the exponential loss $\sum_i \exp(-y_i F(x_i))$, and can be viewed as coordinate descent or functional gradient descent. This perspective has motivated generalizations to other loss functions and tasks such as regression.
  • Consistency. Bartlett and Traskin (2007) proved that AdaBoost is universally consistent under suitable conditions on the weak hypothesis class and the number of rounds.

Variants and extensions

  • Real AdaBoost / confidence-rated predictions (Schapire and Singer): weak hypotheses output real values whose sign is the predicted label and whose magnitude expresses confidence.
  • Gentle AdaBoost and LogitBoost (Friedman, Hastie, and Tibshirani): variants based on different loss functions that are less sensitive to outliers.
  • AdaBoost.M1, AdaBoost.M2, AdaBoost.MH, AdaBoost.MR: generalizations to multiclass problems.
  • BrownBoost (Freund): an adaptive variant designed to be more robust to noisy and mislabeled data.
  • LPBoost: a totally corrective algorithm that re-optimizes all coefficients at each step.

Applications and limitations

AdaBoost has been applied in computer vision (notably the Viola–Jones face-detection framework, which used a boosted cascade of simple features), text categorization (e.g., BoosTexter), optical character recognition, and ranking problems. It has been described as one of the most widely used and studied practical boosting algorithms, and has been ranked among the top algorithms in data mining.

Known limitations include:

  • Sensitivity to noise and outliers. Because it repeatedly increases weight on misclassified examples, AdaBoost can over-emphasize noisy or mislabeled points. Theoretical work (for example, Long and Servedio) shows that convex-loss boosters such as AdaBoost can fail badly in high-noise settings.
  • Dependence on data and weak learner. Performance varies with the dataset and the choice of base learner; insufficient data, overly complex weak hypotheses, or weak hypotheses that are too weak can all degrade results.
  • Potential overfitting. Although often resistant to overfitting, AdaBoost can overfit in some circumstances, particularly with noisy data.

See also

  • Boosting
  • Ensemble learning
  • Gradient boosting
  • Random forest
  • Support vector machine

References

  • Freund, Y.; Schapire, R. E. (1995). "A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting." Proceedings of the 2nd European Conference on Computational Learning Theory (EuroCOLT), 23–37. Journal version: Journal of Computer and System Sciences, 55(1):119–139, 1997.
  • Freund, Y.; Schapire, R. E. (1999). "A Short Introduction to Boosting." Journal of Japanese Society for Artificial Intelligence, 14(5):771–780.
  • Schapire, R. E.; Freund, Y.; Bartlett, P.; Lee, W. S. (1998). "Boosting the Margin: A New Explanation for the Effectiveness of Voting Methods." The Annals of Statistics, 26(5):1651–1686.
  • Friedman, J.; Hastie, T.; Tibshirani, R. (2000). "Additive Logistic Regression: A Statistical View of Boosting." The Annals of Statistics, 28(2):337–407.
  • Schapire, R. E.; Singer, Y. (1999). "Improved Boosting Algorithms Using Confidence-Rated Predictions." Machine Learning, 37(3):297–336.
  • Viola, P.; Jones, M. (2001). "Rapid Object Detection Using a Boosted Cascade of Simple Features." IEEE Conference on Computer Vision and Pattern Recognition.
  • Bartlett, P. L.; Traskin, M. (2007). "AdaBoost is Consistent." Journal of Machine Learning Research, 8:2347–2368.
  • Schapire, R. E.; Freund, Y. (2012). Boosting: Foundations and Algorithms. MIT Press.
  • Hastie, T.; Tibshirani, R.; Friedman, J. (2009). The Elements of Statistical Learning (2nd ed.). Springer.
Browse

More topics to explore

    Browse all articles