AdaBoost & the Exponential Loss
Weak learnability, the training-error bound and the statistical view.
Can an algorithm that is only slightly better than random guessing always be turned into one that is almost always right? Kearns and Valiant asked; Schapire proved that it can. This lesson proves the equivalence, uncovers the minimax theorem hidden in the weak-learning assumption, and shows that AdaBoost is coordinate descent on the exponential loss, whose minimizer is half the log-odds.
What you’ll learn
- State weak and strong PAC learnability, and prove that AdaBoost turns a weak learner into a strong one, using the training-error bound and a VC bound for weighted votes.
- Extend the training-error bound to real-valued (confidence-rated) base hypotheses, and derive the optimal step and the optimal leaf scores of a partition.
- Prove with von Neumann's minimax theorem that weak learnability on a sample is equivalent to separability by a vote of base hypotheses with a positive margin.
- Show that AdaBoost is coordinate descent with exact line search on the exponential loss, relate it to LogitBoost and Newton steps, and state when AdaBoost is consistent.
Weak and strong learnability
The clause "for every " is what makes the question deep: a weak learner must beat chance on every distribution, including the strange ones boosting will construct. Kearns and Valiant were the first to ask whether weak learnability implies strong learnability. Schapire (1990) proved it does, with a recursive construction that trains copies of the weak learner on filtered distributions and takes a majority vote. Freund (1995) found a far more efficient booster, but both were impractical, and AdaBoost, unlike them, needs no prior knowledge of the weak learner's accuracy. It also gives the cleanest proof.
Draw a sample of labeled examples. AdaBoost's weights form a distribution on , so the weak learner, fed examples drawn from , returns with (with high probability, after a union bound over the rounds). By the training-error bound, after enough rounds the vote is consistent with :
belongs to the class of weighted votes of hypotheses from the weak learner's class . Counting the sign patterns of hypotheses and of the threshold on top bounds its VC dimension (Shalev-Shwartz & Ben-David, 2014, chapter 10):
A hypothesis consistent with examples, from a class of VC dimension , has error with probability at least (the realizable bound of VC Dimension & the Fundamental Theorem). With and , hiding logarithmic factors:
So examples give error : the weak learner has become a strong one. The converse is trivial, since a strong learner run with is weak.
Think first Suppose the weak learner were guaranteed to beat chance only when the examples are weighted uniformly. Where exactly does the proof break?
In the first step, from round 2 on. The weights that AdaBoost hands the weak learner are far from uniform; in fact is built so that has error exactly under it. A learner with guarantees only near the uniform distribution may return edge-zero hypotheses there, and the bound stalls. Boosting draws its power from the distribution-free guarantee.
Confidence-rated boosting
Schapire & Singer (1999) noticed that the proof of the training-error bound never uses . Unrolling the weights and bounding the 0–1 loss by works for any real-valued and , so the training error is at most with . Each round should therefore pick and to make small. Let take values in : the sign is the prediction, the magnitude a confidence.
Let , the edge under . For , the convex function lies below its chord between and :
Put and average under :
Minimize the right side over :
For -valued the chord bound is an equality and , which recovers AdaBoost: and .
Partitions. When is constant on the blocks of a partition, such as the leaves of a tree, absorb into a score per block. With the total weight of examples in block with label , separates, and each block is minimized on its own:
A stump splits the weighted sample into two blocks. Block 1 holds positives of total weight 0.40 and negatives of weight 0.10; block 2 holds positives of weight 0.05 and negatives of weight 0.45. With the optimal confidence-rated scores, what is ?
Show the answer
0.7
. The plain stump on the same split errs on weight , so . Confidence ratings shrink the bound a little more per round: block 2 is purer than block 1, and its score is larger in magnitude than block 1's .
Weak learning is a margin condition
Fix the sample and a finite base class closed under negation (); on points, stumps realize only finitely many labelings, so finiteness costs nothing. Form the matrix and read it as a zero-sum game, the view developed by Breiman (1999) and by Freund and Schapire. The data player picks a distribution over examples. The hypothesis player picks a distribution over , that is, a vote . The hypothesis player's payoff is .
For a -valued , the edge and the weighted error are tied, so "error at most " means "edge at least ":
The payoff is linear in each player's distribution, and a linear function on a simplex is extremal at a vertex. So best responses can be pure on both sides:
Von Neumann's minimax theorem for finite zero-sum games lets the players move in either order. Chaining the three displays proves the identity, and the first step translates it into errors:
Three consequences:
- The assumption can fail for visible reasons. If two training examples share an input but have opposite labels, the distribution putting weight on each makes every hypothesis a coin flip, so . In general, weak learning holds on a sample exactly when some vote of base hypotheses separates it with positive margin.
- AdaBoost is a dynamic in this game. Freund & Schapire (1997) derived AdaBoost from Hedge, a multiplicative-weights algorithm for online allocation (Online Learning & Regret): the data player updates its weights multiplicatively and the weak learner best-responds. If the weak learner returns the best hypothesis each round, every edge satisfies , so the training error vanishes whenever .
- Margins enter. AdaBoost is guaranteed a minimum margin of roughly when is small, and it need not reach (Rudin, Daubechies & Schapire, 2004). Why margins matter for test error is the subject of Why Boosting Resists Overfitting.
At round 40, under the current weights, the best stump has weighted error exactly . What does the minimax theorem tell you about the training sample?
- AdaBoost has converged to the maximum-margin vote
- No weighted vote of stumps classifies every training example with a positive margin
- The vote was too large in earlier rounds
- The stumps have started to overfit
Show the answer
B. No weighted vote of stumps classifies every training example with a positive margin
Some distribution, the current , gives every stump edge , so and therefore : no vote separates the sample with positive margin, and AdaBoost with stumps cannot reach zero training error on it.
AdaBoost is coordinate descent on the exponential loss
Let be finite and write any vote as with . The empirical exponential loss is convex in , and AdaBoost minimizes it one coordinate at a time (Breiman, 1999; Mason, Baxter, Bartlett & Frean, 2000; Friedman, Hastie & Tibshirani, 2000).
Differentiate along coordinate . The factor that appears is AdaBoost's current distribution, :
So the steepest coordinate is the base hypothesis with the smallest weighted error, which is what the weak learner returns. Exact line search along it gives AdaBoost's vote:
Each round multiplies the loss by , and . The training-error bound of the Descent lesson is the exponential loss itself:
The greedy view explains AdaBoost's long-run behavior. Greedy procedures of this kind drive the loss to its infimum over the span of (Zhang & Yu, 2005 analyze boosting in this generality). If some vote separates the sample (), that infimum is and is never attained: , and only the direction matters for the classifier, just as for logistic regression on separable data (The Implicit Bias of Gradient Descent). Statistically, the exponential loss and the binomial deviance share the population minimizer , whose sign is the Bayes classifier: both are classification-calibrated, so driving their risk to its minimum drives the 0–1 risk to the Bayes error (Soft Margins & Surrogate Losses).
| Algorithm | Loss | Each round adds |
|---|---|---|
| Discrete AdaBoost | exponential | a classifier with exact line search: one coordinate step |
| Real AdaBoost | exponential | the real-valued score , from class probabilities estimated on the weighted data |
| Gentle AdaBoost | exponential | a Newton step: a weighted least-squares fit of , with weights |
| LogitBoost | binomial deviance | a Newton step on the log-likelihood: weighted least squares on with weights , where ; then |
Key takeaways
- Weak and strong PAC learnability are equivalent (Schapire 1990). AdaBoost with a -weak learner is consistent with examples after rounds, and a VC bound for votes turns that into error .
- For any real-valued base hypotheses, the training error is at most . With edge , the step gives ; on a partition, the optimal scores are .
- By the minimax theorem, weak learnability with edge on a sample is equivalent to separability by a convex combination of base hypotheses with margin .
- AdaBoost is coordinate descent with exact line search on the exponential loss, ; Real AdaBoost, Gentle AdaBoost and LogitBoost replace its step by real-valued or Newton steps.
- AdaBoost stopped after rounds is consistent (Bartlett & Traskin 2007), yet every convex-potential booster can be defeated by random label noise (Long & Servedio 2010).
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Why must a weak learner beat chance under every distribution over the examples, rather than just the uniform one?
- Because PAC learning requires polynomial running time
- Because otherwise the VC dimension of the vote would be infinite
- Because the uniform distribution is never used by AdaBoost
- Because boosting hands it reweighted distributions concentrated on hard examples, and without a guarantee there the edges can vanish
Show the answer
D. Because boosting hands it reweighted distributions concentrated on hard examples, and without a guarantee there the edges can vanish
The training-error bound is only as good as the edges on the distributions that boosting actually creates, and those are built to be hard: makes a coin flip.
A real-valued weak hypothesis with values in has edge under . Which step minimizes the bound on , and what is the bound?
- , and
- , and
- , and
- , and
Show the answer
C. , and
and . For a classifier, edge means weighted error , and the same numbers come out of AdaBoost's formulas.
At a point , AdaBoost's score is . If were the population minimizer of the exponential loss, what would be?
- About 0.75
- About 0.90
- About 0.63
- About 0.99
Show the answer
B. About 0.90
inverts to .
On a fixed training sample, every distribution over the examples admits a base hypothesis with weighted error at most . This is equivalent to which statement?
- Some convex combination of base hypotheses has margin on every training example
- Some single base hypothesis has error at most under the uniform distribution
- The sample is linearly separable in the original input space
- The base class has finite VC dimension
Show the answer
A. Some convex combination of base hypotheses has margin on every training example
By von Neumann's minimax theorem, . The left side is at least exactly when every distribution has a hypothesis with edge , that is, error at most .
Bartlett & Traskin (2007) proved that AdaBoost is consistent, meaning its risk converges to the Bayes risk. Under which stopping rule?
- Run until the training error reaches zero
- Stop when the weighted error first exceeds 0.45
- Stop after about rounds, for some
- Never stop: AdaBoost run to convergence is always consistent
Show the answer
C. Stop after about rounds, for some
The number of rounds acts as a regularization parameter, and it must grow with , but not too fast. With noisy labels, running indefinitely lets the vote fit the noise.
Further reading
- R. E. Schapire, "The strength of weak learnability," Machine Learning 5(2), 197–227 (1990).
- R. E. Schapire & Y. Singer, "Improved boosting algorithms using confidence-rated predictions," Machine Learning 37(3), 297–336 (1999).
- J. Friedman, T. Hastie & R. Tibshirani, "Additive logistic regression: a statistical view of boosting," Annals of Statistics 28(2), 337–407 (2000).
- P. L. Bartlett & M. Traskin, "AdaBoost is consistent," Journal of Machine Learning Research 8, 2347–2368 (2007).
- R. E. Schapire & Y. Freund, Boosting: Foundations and Algorithms (MIT Press, 2012).