Boosting

Machine Learning
Introduced by
Schapire, R. E.; Freund, Y.
Year
1990–1997
Type
Sequential ensemble (iterative reweighting)
Family
Machine learning

What does it do?

Boosting builds a strong classifier by training a sequence of simple weak learners, where each new learner concentrates on the training examples that the ensemble still misclassifies, and the final prediction is a weighted vote of all learners.

The formulas on this page describe the discrete AdaBoost variant for binary classification. The same sequential principle underlies gradient boosting, which the related gradient boosting page covers.

The intuition behind the method

Think of a revision process in which each round concentrates on the questions answered wrongly before. After each weak learner is trained, misclassified examples receive larger weights, so the next learner is pushed toward the hard cases. The final answer is a weighted vote in which learners with lower weighted error count for more. Because each round targets the errors the ensemble still makes, learners that are only slightly better than chance can, in principle, combine into a much more accurate classifier.

History

Schapire (1990) studied the strength of weak learnability, the theoretical result on which boosting rests. Freund and Schapire (1997) gave the AdaBoost algorithm and its analysis, which provide the discrete update rules set out on this page. Later work viewed boosting as an optimisation algorithm in function space (Breiman, 1999). Friedman (1999) described boosting as stagewise greedy gradient descent and named such learners 'gradient machines'. The gradient boosting framework that extends this view to other loss functions is covered on the related gradient boosting page, and implementations such as XGBoost, LightGBM and CatBoost are widely used for tabular data.

When to use it

Choose boosting for supervised prediction on labelled tabular data, particularly when the relationships are nonlinear, feature interactions matter, and a single simple model underfits. The dataset should be large enough that repeated reweighting does not simply fit idiosyncrasies of a small sample. Avoid boosting when labels are noisy or contain outliers, because reweighting increases the influence of exactly those points. Also avoid it when the deliverable is an interpretable model with explicit coefficients, since the final model is a weighted sum of many learners rather than a short equation, or when training time and parallel computation are the main constraints. The discrete AdaBoost formulas here apply to binary classification; regression requires a different formulation, such as the gradient boosting variants.

Limitations and considerations

  • Examples that the ensemble keeps misclassifying gain weight round after round, so mislabelled or outlying points can come to dominate the final vote.
  • Training is sequential: each learner depends on the weights left by the previous one, which limits parallelisation compared with bagging-based methods such as random forests.
  • Without a stopping rule, additional rounds keep reshaping the decision boundary around hard training points, so the fit can become too specific to the training sample.
  • The prediction is a signed weighted sum of many learners, so no single coefficient explains how a feature affects the outcome.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Each round adds a learner trained on reweighted data, so the ensemble can represent decision boundaries that a single shallow learner cannot.
  • The learner weights alpha_t let accurate learners dominate the final vote instead of treating all rounds equally.
  • The procedure is defined for any base learner that can minimise weighted error, and stumps are a common and simple choice.
  • The sequential idea extends beyond the discrete AdaBoost formulas to gradient boosting, which supports regression and other loss functions.
  • Gradient boosting implementations such as XGBoost, LightGBM and CatBoost are widely used for tabular data.

Applications

  • Binary classification on tabular data across finance, healthcare, and marketing; multiclass classification requires an extension of the discrete formulas on this page.
  • Regression tasks such as house price prediction or demand forecasting, which use gradient boosting variants rather than the discrete formulas on this page.
  • Click-through-rate and ranking problems in information retrieval.
  • Fraud detection and anomaly scoring where accuracy on rare events is critical.
  • Feature selection and variable importance ranking in exploratory analyses.

How it works

How it works

1

Every training example starts with weight 1/n, so the first weak learner sees the data with no example favoured. The weights are updated in later rounds and kept proportional so that they sum to one.

Formula
w_i^{(1)} = 1/n \; \forall i
2

A weak learner h_t, often a shallow decision tree or stump, is chosen to minimise the weighted number of misclassifications. Examples with larger weights count more in this error, so each new learner is pulled toward the examples the previous rounds got wrong.

Formula
h_t = \arg\min_{h} \sum_i w_i^{(t)} \mathbf{1}[h(x_i) \neq y_i]
3

The learner's weighted error epsilon_t determines its coefficient alpha_t, which is half the log-odds of the learner being correct. The coefficient is finite and positive only when 0 < epsilon_t < 1/2. This is the weak-learning requirement: each learner must do better than chance. A learner with low weighted error receives a large positive coefficient. A learner with an error of exactly one-half, which is chance level for binary labels, receives a coefficient of zero and contributes nothing to the vote. A learner with an error above one-half would receive a negative coefficient, so it should be rejected, and the procedure stopped if no learner meets the condition. The formula is undefined when epsilon_t is zero, so a perfect learner needs separate handling in an implementation.

Formula
\alpha_t = \frac{1}{2} \ln\!\left(\frac{1 - \epsilon_t}{\epsilon_t}\right)
4

Each weight is multiplied by exp(-alpha_t y_i h_t(x_i)), so examples the learner classifies correctly are down-weighted and misclassified examples are up-weighted. Because alpha_t is larger for more accurate learners, a strong learner changes the weights more than a weak one.

Formula
w_i^{(t+1)} \propto w_i^{(t)} \exp(-\alpha_t y_i h_t(x_i))
5

The prediction for an input x is the sign of the sum of alpha_t h_t(x) over all rounds, so each learner's output is scaled by its coefficient. The result is a single classifier built from many weak ones, with the sign giving the predicted class.

Formula
H(x) = \text{sign}\!\left(\sum_{t=1}^{T} \alpha_t h_t(x)\right)

Common pitfalls

  • Choosing a large number of rounds without a held-out check. Training error can keep falling while performance on new data stops improving or deteriorates; use validation or cross-validation to choose the number of rounds.
  • Training on unexamined labels. The reweighting focuses on exactly the examples that label errors make hard, so label quality should be checked before fitting.
  • Judging the model by training error alone. The weighted training error that drives the procedure is not an estimate of accuracy on new data.
  • Copying settings between implementations. The discrete AdaBoost formulas above have no learning-rate parameter, whereas gradient boosting libraries expose a learning rate, tree depth and subsampling; their settings do not transfer directly.

Frequently asked questions

What is the difference between boosting and bagging (random forest)?

Bagging trains independent trees in parallel on bootstrap samples and averages their predictions, which primarily reduces variance. Boosting trains trees sequentially, each correcting the previous one's errors, primarily reducing bias. Boosting often achieves higher accuracy but is more prone to overfitting on noisy data.

Which boosting algorithm should I use?

AdaBoost, whose discrete formulas appear on this page, is a binary classification algorithm. For most tabular regression or classification work, gradient boosting implementations such as XGBoost, LightGBM or CatBoost are commonly used in practice, since they support more loss functions and built-in regularisation.

How do I prevent overfitting with boosting?

Use a small learning rate with more rounds, and stop training when performance on a held-out validation set stops improving. Limiting tree depth and subsampling rows or columns for each tree also reduce overfitting. Suitable values depend on the data and should be chosen by validation.

Can boosting handle class imbalance?

Yes. Gradient boosting frameworks let you set class weights or use custom loss functions. AdaBoost's reweighting also helps, but it can amplify noise in the minority class, so resampling may still be beneficial.

Is boosting interpretable?

Boosting ensembles are not directly interpretable in the way linear models are, because the prediction is a weighted sum of many learners with no explicit coefficients. Built-in feature importance scores and post-hoc tools such as SHAP values give approximate explanations of the ensemble's behaviour, including for individual predictions. They do not replace an interpretable equation, so where one is required a simpler model is more appropriate.

Related methods

Sources

  1. 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
  2. Schapire, R. E. (1990). The strength of weak learnability. Machine Learning, 5(2), 197–227.

    Open DOI reference
  3. Econometric analysis of financial and economic time series, Part B (Advances in Econometrics, JAI Press, 2006), p. ?