AdaBoost (short for Adaptive Boosting) is a statistical classification meta-algorithm formulated by Yoav Freund and Robert Schapire in 1995, who won the 2003 Gödel Prize for their work. It can be used in conjunction with many types of learning algorithm to improve performance. The output of multiple weak learners is combined into a weighted sum that represents the final output of the boosted classifier. Usually, AdaBoost is presented for binary classification, although it can be generalized to multiple classes or bounded intervals of real values. AdaBoost is adaptive in the sense that subsequent weak learners (models) are adjusted in favor of instances misclassified by previous models. In some problems, it can be less susceptible to overfitting than other learning algorithms. The individual learners can be weak, but as long as the performance of each one is slightly better than random guessing, the final model can be proven to converge to a strong learner. Although AdaBoost is typically used to combine weak base learners (such as decision stumps), it has been shown to also effectively combine strong base learners (such as deeper decision trees), producing an even more accurate model. Every learning algorithm tends to suit some problem types better than others, and typically has many different parameters and configurations to adjust before it achieves optimal performance on a dataset. AdaBoost (with decision trees as the weak learners) is often referred to as the best out-of-the-box classifier. When used with decision tree learning, information gathered at each stage of the AdaBoost algorithm about the relative 'hardness' of each training sample is fed into the tree-growing algorithm such that later trees tend to focus on harder-to-classify examples.
Training AdaBoost refers to a particular method of training a boosted classifier. A boosted classifier is a classifier of the form FT(x)=∑t=1Tft(x) where each ft is a weak learner that takes an object x as input and returns a value indicating the class of the object. For example, in the two-class problem, the sign of the weak learner's output identifies the predicted object class and the absolute value gives the confidence in that classification. Each weak learner produces an output hypothesis h which fixes a prediction h(xi) for each sample in the training set. At each iteration t, a weak learner is selected and assigned a coefficient αt such that the total training error Et of the resulting t-stage boosted classifier is minimized. Et=∑iE[Ft−1(xi)+αth(xi)] Here Ft−1(x) is the boosted classifier that has been built up to the previous stage of training and ft(x)=αth(x) is the weak learner that is being considered for addition to the final classifier.
Weighting At each iteration of the training process, a weight wi,t is assigned to each sample in the training set equal to the current error E(Ft−1(xi)) on that sample. These weights can be used in the training of the weak learner. For instance, decision trees can be grown which favor the splitting of sets of samples with large weights.
Derivation This derivation follows Rojas (2009): Suppose we have a data set {(x1,y1),…,(xN,yN)} where each item xi has an associated class yi∈{−1,1}, and a set of weak classifiers {k1,…,kL} each of which outputs a classification kj(xi)∈{−1,1} for each item. After the (m−1)-th iteration our boosted classifier is a linear combination of the weak classifiers of the form: C(m−1)(xi)=α1k1(xi)+⋯+αm−1km−1(xi), where the class will be the sign of C(m−1)(xi). At the m-th iteration we want to extend this to a better boosted classifier by adding another weak classifier km, with another weight αm: Cm(xi)=C(m−1)(xi)+αmkm(xi) So it remains to determine which weak classifier is the best choice for km, and what its weight αm should be. We define the total error E of Cm as the sum of its exponential loss on each data point, given as follows: E=∑i=1Ne−yiCm(xi)=∑i=1Ne−yiC(m−1)(xi)e−yiαmkm(xi) Letting wi(1)=1 and wi(m)=e−yiCm−1(xi) for m>1, we have: E=∑i=1Nwi(m)e−yiαmkm(xi) We can split this summation between those data points that are correctly classified by km (so yikm(xi)=1) and those that are misclassified (so yikm(xi)=−1): E=∑yi=km(xi)wi(m)e−αm+∑yi≠km(xi)wi(m)eαm=∑i=1Nwi(m)e−αm+∑yi≠km(xi)wi(m)(eαm−e−αm) Since the only part of the right-hand side of this equation that depends on km is ∑yi≠km(xi)wi(m), we see that the km that minimizes E is the one in the set {k1,…,kL} that minimizes ∑yi≠km(xi)wi(m) [assuming that αm>0], i.e. the weak classifier with the lowest weighted error (with weights wi(m)=e−yiCm−1(xi)). To determine the desired weight αm that minimizes E with the km that we just determined, we differentiate: dEdαm=d(∑yi=km(xi)wi(m)e−αm+∑yi≠km(xi)wi(m)eαm)dαm The value of αm that minimizes the above expression is: αm=12ln(∑yi=km(xi)wi(m)∑yi≠km(xi)wi(m))
We calculate the weighted error rate of the weak classifier to be ϵm=∑yi≠km(xi)wi(m)∑i=1Nwi(m), so it follows that: αm=12ln(1−ϵmϵm) which is the negative logit function multiplied by 0.5. Due to the convexity of E as a function of αm, this new expression for αm gives the global minimum of the loss function. Note: This derivation only applies when km(xi)∈{−1,1}, though it can be a good starting guess in other cases, such as when the weak learner is biased (km(x)∈{a,b},a≠−b), has multiple leaves (km(x)∈{a,b,…,n}) or is some other function km(x)∈ℝ. Thus we have derived the AdaBoost algorithm: At each iteration, choose the classifier km, which minimizes the total weighted error ∑yi≠km(xi)wi(m), use this to calculate the error rate ϵm=∑yi≠km(xi)wi(m)∑i=1Nwi(m), use this to calculate the weight αm=12ln(1−ϵmϵm), and finally use this to improve the boosted classifier Cm−1 to Cm=C(m−1)+αmkm.
Statistical understanding of boosting
… excerpt ends here. Continue reading the full article.