Elamur Research

An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants

Paper · 1999 · Eric J. Bauer and Ron Kohavi

Summary

Training the same kind of classifier on slightly different versions of a dataset can produce different answers. If those answers are combined, the resulting vote can be more reliable than any single fit. Bauer and Kohavi ask when that improvement occurs, what accounts for it, and why methods that all produce a vote can behave so differently. They compare Bagging, which trains on independently resampled datasets, with AdaBoost and Arc-x4, which use earlier mistakes to change the emphasis of later training rounds. The study uses fourteen datasets and four base learners, spanning full decision trees, two kinds of single-split trees, and Naive-Bayes.

For full MC4 decision trees, the average test classification error across the datasets fell from 12.6% for a single tree to 10.4% for standard Bagging. Most of that improvement came from lower variance, meaning the combined prediction was less sensitive to which examples happened to be in the training set. AdaBoost brought average error down to 9.8% by lowering both variance and the component the study reports as bias. It still made several datasets harder to classify than they were for a single tree. Naive-Bayes showed a different pattern. It was already comparatively stable, so Bagging helped little. Boosting lowered its average error through a reduction in estimated bias large enough to outweigh an increase in variance.

The experiments also separate choices that are easy to overlook when comparing algorithm names. For Bagging with decision trees, averaging class probabilities, keeping branches that pruning would remove, and re-estimating leaf probabilities on the original training set all helped in the tested configurations. Averaging probabilities materially improved the quality of the probability assigned to the true class, especially for trees. For Arc-x4 with MC4, drawing a fresh sample from the current weight distribution worked better than feeding those weights directly to the learner. The corresponding change gave no significant performance shift for AdaBoost.

A close look at AdaBoost explains how an algorithm that corrects rare mistakes can also be sensitive to noise and numerical details. In one Shuttle run, a single previously low-weight example received half the training weight after a round. An early implementation then discarded almost all examples after an intermediate weight calculation drove them below the software’s cutoff. With a revised update, the run produced a tree with 0.08% test error on the remaining Shuttle examples, compared with 0.38% for the initial tree. That last tree also made no training mistakes, so it took over the prediction. The example shows both how much a change in training emphasis can accomplish and how differently a particular run can end from the vote the procedure was designed to build.

Deep dive: An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants

Bauer and Kohavi compare bagging and boosting, showing how voting changes classification error, bias, and variance for trees and Naive-Bayes. · about 36 minutes to read

The problem and its context

A supervised classifier learns a rule for assigning a class to an example from a collection of examples whose classes are known. A decision tree might learn which attribute to inspect first and which questions to ask next. Change the training examples and the tree may choose a different first question. Because all later branches depend on that choice, a small change in the data can affect predictions far from the place where the training samples differed. Another learner may produce nearly the same predictions after the same change in data. The authors want to understand how these differences in stability shape the benefits of voting in machine learning.

A voting method trains several constituent classifiers and decides how to combine their answers. One question is how to generate useful disagreement. If all constituents make the same predictions, voting reproduces the prediction they already share. If they make different mistakes, the vote may correct some of those mistakes. A second question is how to count their answers. A constituent can contribute a class label, a distribution over classes, or a vote whose weight reflects some measure of its performance. The training procedure and the voting rule can change independently, so the effect of combining classifiers can come from several places.

The paper organizes earlier methods around whether training adapts to past predictions. In the perturb-and-combine family, several fits are created by changing inputs or other conditions without consulting the mistakes of earlier classifiers. The main example is bootstrap aggregation. It draws a fresh sample with replacement for each fit and combines the resulting predictions. The training samples can be generated independently, so the fits can be built in parallel. This is the Bagging procedure introduced in Bagging Predictors.

The introduction also describes other ways researchers had produced multiple predictions. Option trees could retain alternative tests at a node. Other work averaged sets of paths as an alternative to pruning. Another approach produced trees by changing the splitting criterion and involving a human in the process. The paper also mentions error-correcting output codes and Wolpert’s stacking. In stacking, a further learner combines the constituent predictions. That differs from the fixed rule used by Bagging, under which every constituent has the same influence on the final vote.

In the adaptive family, past mistakes influence the data the next learner sees. The paper traces boosting from Schapire’s work on improving weak learners through Freund’s developments to AdaBoost by Freund and Schapire. It also describes Breiman’s Arc-x4, which emphasizes cases according to their accumulated mistakes. Both methods can make a previously inconsequential example influential, but they keep different records of what makes an example hard. AdaBoost updates the weights using the latest round’s weighted error. Arc-x4 uses each example’s history of mistakes. They also end with different voting rules.

Breiman used Arc-x4 to examine whether the adaptive part of boosting could account for its success even when the final votes were counted equally. That question helps motivate the comparison. If the methods perform similarly, a specialized vote weight may be less important for some combinations of learner and data. If they respond differently to the same way of delivering the adaptive weights, the shared idea of focusing on hard examples leaves part of the behavior unexplained.

Earlier work discussed in the paper also offered different explanations for why a growing vote could continue to generalize. Schapire and colleagues studied the margin, the advantage of the vote for an example’s correct class over the strongest competing class. An example can already be classified correctly and still gain a larger margin as more classifiers join. The distribution of these margins was offered as an explanation for the behavior of boosting even after its training predictions were largely correct. The authors also report that Breiman disputed what a margin-based account would lead one to expect. Resolving that disagreement would require more than observing whether one ensemble had lower error than another.

The authors therefore ask several questions of the same experiments. Test classification error tells them whether the vote assigns more correct labels. The bias and variance estimates describe how the predictions change across training samples and how far their average behavior is from the target. Tree size helps them see whether a method is changing the complexity of the fitted constituents. Probability error lets them distinguish getting the label right from assigning useful probabilities. Finally, looking at the vote as it grows shows how much a reader can infer from its training error at any given point.

The comparison also needs a base learner that can serve as a foil to a full decision tree. A learner that is already stable offers relatively little scope for making its output less dependent on the training sample. A deliberately shallow tree offers a different challenge. Its limited form can give it high error even if it repeats much the same prediction across samples. Putting those learners beside full trees allows the paper to ask whether the differences between Bagging and boosting persist when the starting point changes.

The method, step by step

From training examples to a vote

The authors call the training algorithm an inducer and its fitted output a classifier. Each labeled example pairs an attribute vector with a class label. The attribute vector is the collection of values the classifier may inspect, and the label comes from a discrete set of possible answers. The paper assumes that examples are independent draws from the same underlying distribution. For a deterministic inducer, supplying the same training sample under the same conditions produces the same classifier. To get several distinct classifiers from such an inducer, the voting procedure must change what it receives.

From a labeled sample to a voting classifier

The steps in order.

From a labeled sample to a voting classifierStep 1: Choose a base learner and training sample1. Choose a base learner and training sampleStep 2: Resample or assign weights to training examples2. Resample or assign weights to training examplesStep 3: Fit a constituent classifier3. Fit a constituent classifierStep 4: Update training emphasis for adaptive methods4. Update training emphasis for adaptive methodsStep 5: Combine class votes or average class probabilities5. Combine class votes or average class probabilitiesStep 6: Evaluate predictions on held-out examples6. Evaluate predictions on held-out examples

The changes in the second step take different forms. Bagging draws a new sample. Wagging changes example weights with random noise. Boosting makes the training emphasis depend on errors. The final prediction is also configurable. It can use an equal vote, give some classifiers greater voting strength, or work with an average of their probability estimates. The same held-out examples can then be used to judge predictions made by the different configurations.

What each base learner can express

MC4 is the full decision-tree learner. It is implemented in MLC++ and follows C4.5 closely, with unknown attribute values handled as a separate value. The tree grows from the root by testing attributes. Among candidate tests, it uses gain ratio to choose the split, so the selected test favors a useful separation of class labels while accounting for the division it creates in the data. Growth continues while the algorithm can make qualifying splits and the nodes still contain a mixture of classes. By default, it then prunes the tree, replacing some fitted branches with leaves. The authors chose MC4 partly because they could modify it and use the existing facilities in MLC++ to combine classifiers.

MC4(1) removes nearly all of that structural freedom. It can split once, at the root. For a nominal attribute, the resulting branches can represent different values, including an unknown value. For a continuous attribute, the tree divides known values at one threshold and handles unknowns separately. This is a decision stump. A full tree could ask a different question in each resulting branch, whereas the stump must give its prediction there. The restriction is especially important when a continuous feature is useful for distinguishing several classes across several value ranges.

MC4(1)-disc also stops after the root test, but first uses entropy-based discretization. Discretization replaces ranges of a continuous attribute with intervals that can act as distinct values. The entropy criterion uses the class labels when judging how to divide those values. A root test on the resulting attribute can therefore use multiple thresholds established in advance. This makes the discretized stump more expressive than the plain stump without giving it a second level of decisions. Each time its training distribution changes, the information available for choosing the interval boundaries can change as well.

Naive-Bayes uses a different form of evidence. It estimates how common each class is and how frequently it sees each observed attribute value within that class. Under the conditional independence assumption, those within-class quantities can be multiplied. The resulting score can be high because the class is common, because the observed values are frequent in that class, or because of both.

P(y ∣ x) = P(x ∣ y) · P(y) / P(x)

Here P denotes probability, y is a candidate class, and x is the example’s attribute vector. The vertical bar means “given.” The expression on the left is the posterior probability of the class after observing the attributes. On the right, P(x ∣ y) is the probability of observing that vector within the class, P(y) is the class prior, and P(x) is the probability of the observed vector across classes. For an individual prediction, the same denominator applies to each candidate class.

P(y ∣ x) ∝ P(y) · ∏ⱼ₌₁ⁿ P(Aⱼ ∣ y)

In this form, Aⱼ denotes the observed value of the attribute indexed by j. The index starts at 1 and runs through n, the number of attributes. The product sign ∏ instructs the reader to multiply the within-class probabilities across the attributes. The proportionality sign ∝ indicates that the right side gives scores with a common scaling factor omitted. The classifier predicts the class with the highest score. The implementation discretizes continuous attributes using entropy and estimates probabilities from training frequencies with an m-estimate Laplace correction, which smooths the frequency estimates.

Independence matters differently for a predicted label and for a probability. Related attributes can each favor the same class and so preserve the correct ordering of classes. Multiplying their contributions as if each supplied separate evidence can still produce an overly extreme probability. The experiments therefore assess Naive-Bayes on both kinds of output. Its prediction of the most likely class and its confidence in that class answer different questions.

Bagging and the information that enters the vote

For standard Bagging, start with a training sample containing m labeled examples. Draw m times uniformly from that sample, returning the selected example before each new draw. One example can appear repeatedly while another is absent. Fit the inducer to the resulting bootstrap sample and repeat the procedure independently for each constituent. At prediction time, every constituent supplies a class label. The class with the most votes wins, with ties resolved arbitrarily.

P(an example appears in a bootstrap sample) = 1 − (1 − 1/m)ᵐ

P is the probability of the event in parentheses, and m is the original training sample size as well as the number of draws made for one replicate. On one draw, 1/m is the selection probability for a particular training example. The quantity 1 − 1/m is the chance of missing it on that draw, and raising this quantity to m gives the chance of missing it throughout the replicate. Subtracting from 1 gives the probability of seeing it at least once. For large m, the paper gives 63.2% as the approximate share of distinct examples represented in a replicate.

A bootstrap replicate has the same nominal size as the original sample. Its distinct examples carry less information about the original sample than that nominal size suggests, and duplicates change their relative influence. This is the perturbation on which Bagging relies. A tree may find a different root test or grow different branches on a replicate. If the original learner already gives very similar answers under such changes, there is less useful disagreement for an equal vote to resolve.

The paper tests whether the label alone throws away useful information. In probabilistic Bagging, or p-Bagging, each classifier returns an estimate for every class. Those estimates are averaged class by class, and the class with the highest average is selected. A constituent that strongly favors one class and a constituent that barely favors another each get one vote under standard Bagging. Under probability averaging, the strength of their respective preferences carries through to the result.

p̄(y ∣ x) = (1/T) · Σᵢ₌₁ᵀ pᵢ(y ∣ x)

Here p̄(y ∣ x) is the combined probability estimate for class y on example x. The index i identifies a fitted constituent, pᵢ(y ∣ x) is its estimate, and T is the number of constituents. The sum Σ runs over those constituents, and the factor 1/T assigns each the same influence. A decision tree supplies its estimates from the leaf reached by the example. A Naive-Bayes classifier supplies them from its class probability calculation.

Pruning can affect that average even when it leaves the constituent’s predicted class unchanged. The authors use a parent with a 70%/30% class distribution and children with distributions of 100%/0% and 60%/40%. All predict the same class. A branch structure that a classification-oriented pruning rule can remove may still separate a pure region of the training data from one with more uncertainty. An unpruned tree retains that distinction, though a small leaf can estimate its local distribution poorly. Averaging estimates from several trees is one way to make use of this detail without relying on the estimated probabilities of a single small leaf.

In backfitting, a bootstrap sample determines the tree structure. The algorithm then passes the original training sample down that tree and uses those examples to re-estimate the class distributions at its leaves. Its tests and branches stay fixed through the second pass. Thus a case omitted by the bootstrap sample can inform a leaf estimate without influencing the choice of splits. The procedure uses the original training sample for this pass and reserves the held-out examples for evaluation. Backfitting targets the precision of the probabilities supplied by each tree while retaining structural differences created by the bootstrap.

Wagging explores a different source of training variation. Each constituent starts from uniform example weights and receives a new set of perturbations from a Gaussian distribution with mean zero. The standard deviation sets the size of the perturbation. Larger deviations produce more examples with weights at zero, effectively removing those examples from the fit. The authors present this as a way to vary the strength of the perturbation and investigate a tradeoff between bias and variance. Wagging has no feedback loop from the classifier just trained to the next set of weights.

AdaBoost and Arc-x4

AdaBoost begins with equal training weights. A first classifier is fitted and evaluated on the weighted training sample. The error matters in two places. It controls how strongly examples are reweighted for the next fit, and it determines the voting strength of the current classifier. As the training emphasis moves, a learner that made few mistakes under one distribution can face a harder problem under the next.

εᵢ = Σⱼ wⱼ · I[Cᵢ(xⱼ) ≠ yⱼ] / Σⱼ wⱼ

Here εᵢ denotes weighted training error on round i. The index j runs over the examples, wⱼ is the current weight of example j, xⱼ is its attribute vector, and yⱼ is its class label. Cᵢ is the classifier learned during round i, so Cᵢ(xⱼ) is its prediction. The indicator I contributes 1 for a mistake and 0 for a correct answer. The numerator adds the weight on mistakes, and the denominator supplies the total training weight.

w′ⱼ = { wⱼ / (2εᵢ)          if Cᵢ(xⱼ) ≠ yⱼ
      { wⱼ / [2(1 − εᵢ)]    if Cᵢ(xⱼ) = yⱼ

Here w′ⱼ is the new weight for instance j, and wⱼ is the weight that example had when classifier Cᵢ was trained. The upper line applies after an incorrect prediction. The lower line applies after a correct one. The factors involving εᵢ distribute half of the original total training weight to each group. A small total error can consequently produce a large weight increase for the particular examples responsible for it. Their influence within the mistake group still reflects their preceding weights.

This is the paper’s direct form of the AdaBoost update. The earlier implementation shrank weights and then normalized them. Computing the update directly avoids an intermediate shrinkage that can make useful weights too small for the software to retain. The implementation uses a natural weight of one for an unweighted example and scales to the sample size. The paper treats that scale as equivalent to using weights that sum to one for the ideal update. The retained minimum weight is a practical safeguard for the actual computation.

AdaBoost’s final prediction uses a weighted vote. Classifiers with a smaller weighted training error have stronger votes, and each classifier contributes its vote to the class it predicts. A zero-error round is handled as a stopping case. Its classifier receives effectively infinite voting strength and determines the final prediction. This is distinct from the growing ensemble correctly classifying all training examples. The ensemble can be perfect on the training sample even when none of its constituents is individually perfect.

The theory requires a learner whose weighted training error can be kept below 1/2 by a fixed margin. The inducers here offer no such guarantee. If the bound is breached, resetting all weights and rerunning the same deterministic inducer would repeat a fit. The authors instead try bootstrap samples of the original training data, with a limit of 25 attempts at a given trial. This recovery mechanism introduces sampling in a special case. The normal implementation of AdaBoost in the study supplies the weights directly to the inducer, since all four base learners support them.

Arc-x4 also learns sequentially. It records how many of the preceding classifiers have misclassified each training example. The next training distribution emphasizes examples with higher mistake counts. It retains a positive starting contribution for examples that have always been classified correctly.

wⱼ ∝ 1 + mⱼ⁴

Here wⱼ is the weight assigned to training example j, and mⱼ is its count of mistakes by earlier classifiers. The fourth power makes differences in larger counts particularly consequential. The added 1 supplies positive weight when the count is zero, and ∝ indicates that the weights can be scaled to form the training distribution. At prediction time, the constituents vote equally, with ties broken arbitrarily.

The authors run Arc-x4 both by directly passing weights to the base learner and by resampling according to those weights. A weighted fit keeps the weighted data available to the inducer. In the sampling version, the distribution governs how frequently examples are drawn, so it adds randomness in which examples the learner receives. The final equal-vote rule is common to both Arc-x4 versions. Their comparison therefore targets the realization of the training distribution within Arc-x4, without simultaneously changing how final votes are counted.

Measuring what changes between training samples

The study uses a classification-specific decomposition of expected error. Fix an input and imagine training the same procedure on many possible samples of the same size. The frequency with which it predicts each class describes the distribution of its predictions at that input. Separately, the target can have a conditional distribution of labels. The decomposition compares these distributions and captures the spread of predictions across training samples. It uses class probabilities without requiring any numerical ordering or distance between the labels themselves.

Error = Σₓ P(x) · (σₓ² + biasₓ² + varianceₓ)

Here Error is the expected classification error under the decomposition, x indexes inputs, and P(x) weights an input by its probability. At x, σₓ² is the intrinsic term associated with the target distribution, biasₓ² measures the mismatch between the target and prediction distributions, and varianceₓ measures how predictions vary with training samples. The sum Σₓ averages the terms over inputs according to their probabilities.

σₓ² = ½ · [1 − Σᵧ∈Y P(Y_F = y ∣ x)²]

Here σₓ² is the intrinsic term at x. Y is the set of class labels, y is one of those labels, and Y_F is the random target label. The sum runs over all y in Y. The conditional probability describes how frequently the target assigns label y to input x. The squares and factor ½ quantify the spread of that target distribution. A target concentrated on a single class has no spread by this expression.

biasₓ² = ½ · Σᵧ∈Y [P(Y_F = y ∣ x) − P(Y_H = y ∣ x)]²

Here biasₓ² is the squared bias term at input x. Y_H is the random prediction obtained as the training sample changes, and Y_F is the target label. For each class y in the label set Y, the expression takes the difference between the target probability and the prediction probability at x. It squares that difference, sums across the labels, and applies the factor ½. A learner can repeatedly give the same wrong answer, yielding little variation across samples and a large mismatch here.

varianceₓ = ½ · [1 − Σᵧ∈Y P(Y_H = y ∣ x)²]

Here varianceₓ is the variance contribution at x. Y_H is again the predicted label across possible training samples, and P(Y_H = y ∣ x) is the frequency in that population of fits with which the prediction is class y. The summation ranges across the labels in Y. The term is small when predictions concentrate on one class and rises as they spread out. An individual classifier can return a decisive label on every example even when the procedure has substantial variance across training samples.

The estimation procedure first sets aside a test set. From the data available for training draws, the authors form a pool twice the size of the desired training sample. They draw training samples from that pool 10 times and evaluate the fitted procedures on the common test set. The full operation is repeated three times. The repeated predictions provide information about variability even though the experiment cannot observe the full population of training samples or the true label distribution at every input. The reported bias component consequently includes intrinsic noise. It should be read as the study’s combined estimate whenever it appears beside variance.

Experiments and results

How the comparison was set up

The fourteen datasets came from the UC Irvine repository. The smallest was German Credit, with 1,000 examples, and the largest was Shuttle, with 58,000. The collection also varied in feature types and the number of classes. For example, Waveform-40 contained 5,000 examples, of which 1,000 were used for a training sample. Satellite Image contained 6,435 examples and used a training size of 1,500. Nursery had 12,960 examples and used 3,000 for training. Adult had 48,842 examples and used 11,000. The authors reserved at least half of each dataset for testing.

The paper uses learning curves to choose training sizes. Each curve plots held-out error for an inducer fitted with different amounts of training data. The authors wanted a region where error was still declining, since a near-perfect baseline leaves little opportunity to learn whether a voting algorithm helps. They also wanted enough training examples to avoid highly variable fits and enough test cases to compare the fits reliably. Each displayed learning-curve point averages 20 runs at its training size, and the error bars show one standard deviation. The curves reveal that the same training size need not offer the same opportunity for improvement to different base learners.

The usual ensemble budget was 25 constituents. This puts the emphasis on results obtainable with a moderate number of repeated fits. An algorithm that quickly improves the vote can look different under this budget from one that needs a much longer sequence to reach its best error. The authors frame the choice as both an experimental and a practical one, since repeated tree fitting and prediction have costs.

For their main error comparisons, the authors use the repeated sampling procedure that also estimates bias and variance. They use repeated holdout for curves that track performance as the vote grows, because repeating the bias and variance calculation at each point would have been expensive. They also use holdout for probability errors. Within a comparison, the algorithms train and test on the same splits. This pairs the observations so that a particularly difficult split affects both methods rather than becoming an accidental advantage for one.

As an implementation check, the authors revisit earlier Bagging and boosting experiments. In Breiman’s comparison on nine datasets, CART’s average error with Bagging went from 12.76 to 9.69%. On the same datasets, the authors’ MC4 implementation went from 12.91 to 9.91%. In their check against Quinlan, boosting MC4 reproduced the reported 19% gain in accuracy on the 22 datasets they could obtain for the comparison. These checks concern earlier benchmark sets and help establish that the local implementation behaves in line with previous experiments. The main results use the study’s own dataset selection and training sizes.

Reading error and probability scores

Classification error is the share of test examples whose predicted class differs from the recorded label. The study also computes a relative reduction for each dataset and then averages those reductions across datasets.

Relative error reduction = (ε_A − ε_B) / ε_A

Here A is the reference algorithm and B is the algorithm being compared against it. The symbols ε_A and ε_B denote their classification errors on the same dataset. The numerator is the decrease in error, and the denominator expresses it relative to the reference error. The paper averages these dataset-level values. A dataset with a small baseline error can show a large relative reduction even when the absolute change is small, so the average relative reduction and the average classification errors describe different aspects of the results.

For probability predictions, the paper uses a mean-squared error based on the probability assigned to the observed class. It first calculates a squared penalty on each example and then takes the mean over the test set.

L(x, y) = [1 − p(y ∣ x)]²

Here L is the loss for one held-out example with attributes x and recorded class y. The term p(y ∣ x) is the probability assigned to that class by the classifier being tested, and 1 is the probability it would assign to the true label under perfect certainty. The squared difference penalizes assigning little probability to that label. If a hard prediction is treated as putting all probability on its chosen class, the loss is zero when the class is correct and one when it is wrong. Averaging then gives ordinary classification error. With a distribution, the score can distinguish between predictions that select the same class but give the observed label different probabilities.

Full decision trees

For MC4, standard Bagging lowered the average test classification error from 12.6 to 10.4%, with an average relative error reduction of 14.5%. It did not increase the point estimate on any dataset in the main comparison. Letter had a reported 40% relative error reduction. Waveform-40 and Satellite Image showed relative reductions of 31 and 29%, respectively. The other datasets had relative reductions below 15%. Across all datasets, the average variance estimate fell from 5.7 to 3.5%, while the reported bias component moved from 6.9 to 6.8%. The reduction in average error was predominantly a reduction in sensitivity to the training sample.

The final Bagging configuration for full trees used probabilities, unpruned trees, and backfitting. It reached 10.1% average classification error. The improvement over ordinary Bagging was concentrated partly on Mushroom. The paper reports a move from 0.45 to 0.04% classification error there, a 91% relative decrease. Across the dataset collection, the original-to-final Bagging comparison gave a 10% average relative reduction. The paper reports 4% for the same comparison after excluding Mushroom. Both averages describe the variants’ behavior, with the second making clear how strongly a low-error dataset influenced the first.

AdaBoost lowered MC4’s average classification error to 9.8%, a reported 27% average relative reduction from the single-tree baseline. It lowered the reported average bias component from 6.9 to 5.7% and average variance from 5.7 to 4.1%. The variance fell less than it did with ordinary Bagging, while the bias component fell more. Arc-x4 with resampling was close to AdaBoost on average. The paper gives extra decimal places when it compares the boosting variants directly.

Boosting variants with MC4 across the study datasets, mean test classification error

AdaBoost and Arc-x4 with resampling finish close together, while Arc-x4 with direct weighting has higher error.

Boosting variants with MC4 across the study datasets, mean test classification errorArc-x4 with direct weighting: 10.86Arc-x4 with direct weighting10.86Arc-x4 with resampling: 9.81Arc-x4 with resampling9.81AdaBoost (this paper): 9.79AdaBoost (this paper)9.79
The numbers
System or settingerror %
Arc-x4 with direct weighting10.86
Arc-x4 with resampling9.81
AdaBoost (this paper)9.79

The advantage for boosting on average came with losses on particular datasets. On Hypothyroid, AdaBoost with MC4 increased test error by 0.3% from a baseline of 1.2%, a difference the authors report as significant at the 95% level. They also report a significant increase on Sick-euthyroid. On Adult the error went from 15.0 to 16.3%. On LED-24 the paper reports an increase of 3.1% from 34.1% for the single tree. Arc-x4 with resampling was also worse than MC4 alone on these datasets. Elsewhere the gains could be large. With AdaBoost, the relative reductions reported for Letter and Mushroom were 60% and 69%, respectively.

The learning curves provide another comparison between changing the training procedure and simply increasing the amount of data for a single tree. For Waveform, the authors describe the original curve as leveling around 20% error at training sizes of 3000–4500 examples. AdaBoost attained 17.7% error with 1000 training examples. On Letter, the authors put the low point of the original curve at about 12% error for 18,000 examples. The boosted result was 8.1% with a training sample of 5000. These comparisons concern the observed curves and the fitted classifiers at those sample sizes.

Decision stumps and Naive-Bayes

The plain stump remained much less accurate than the full tree. Its average test error was 38.2% by itself and 37.3% with standard Bagging. Probability averaging moved it to 34.4%. For this comparison with hard voting, the reported bias component went from 26.9 to 24.9%, and variance went from 10.4 to 9.5%. The plain stump was left out of the boosting comparison because too many runs failed to achieve the required first-round training error. This was especially consequential on problems with several classes.

For the discretized stump, the main averages permit a comparison among the single fit, hard and probabilistic Bagging, and boosting. The averages for boosting substitute the unboosted classifier on LED-24 and Letter, where the first-round training error criterion failed. Those rows therefore summarize the methods with that fallback included.

Discretized decision stumps across the study datasets, mean test classification error

Probability averaging improves on hard Bagging, and the resampling version of Arc-x4 has the lowest reported average error.

Discretized decision stumps across the study datasets, mean test classification errorMC4(1)-disc: 33.0MC4(1)-disc33.0MC4(1)-disc with hard Bagging: 31.5MC4(1)-disc with hard Bagging31.5MC4(1)-disc with probabilistic Bagging: 28.9MC4(1)-disc with probabilistic Bagging28.9MC4(1)-disc with AdaBoost: 27.1MC4(1)-disc with AdaBoost27.1MC4(1)-disc with Arc-x4 reweighting: 24.8MC4(1)-disc with Arc-x4 reweighting24.8MC4(1)-disc with Arc-x4 resampling (this paper): 24.6MC4(1)-disc with Arc-x4 resampling (thispaper)24.6
The numbers
System or settingerror %
MC4(1)-disc33.0
MC4(1)-disc with hard Bagging31.5
MC4(1)-disc with probabilistic Bagging28.9
MC4(1)-disc with AdaBoost27.1
MC4(1)-disc with Arc-x4 reweighting24.8
MC4(1)-disc with Arc-x4 resampling (this paper)24.6

In the discretized stump’s AdaBoost comparison with the single fit, the reported bias component went from 24.4 to 19.2%. The average variance changed less, with the AdaBoost analysis giving 8.6 to 8.0%. For Arc-x4, resampling and reweighting produced close average classification errors with this inducer. The resampling variant had the lower reported bias component, 17.4 versus 17.7%, while reweighting had slightly lower reported variance. Thus the marked difference between the two ways of training Arc-x4 with MC4 was much less apparent with these stumps.

For Naive-Bayes, the average test classification error went from 13.6 to 13.2% with Bagging and to 12.3% with AdaBoost. Arc-x4 with resampling reached 12.1%, while direct reweighting gave 12.3%. The paper reports an average relative reduction of 24% for AdaBoost against the unboosted fit. The error components went in opposite directions. The estimated bias component for Naive-Bayes was 10.8% before boosting and 8.7% with AdaBoost. The unboosted variance was 2.8%, below that of any of the boosted Naive-Bayes variants. The authors suggest that the entropy-based discretization may be part of the reason, since the thresholds can move as the weights change.

The quality of the probability estimates

The detailed probability experiment used five holdout runs per inducer and data file, at the same effective training size as the bias and variance experiments. The probability metric asks how much probability the procedure puts on the observed class. The variants can therefore differ even on examples where every classifier makes the same decision.

MC4 probability and voting variants across the study datasets, mean-squared error on held-out examples

Probabilistic Bagging has the smallest average squared penalty for the probability assigned to the observed class.

MC4 probability and voting variants across the study datasets, mean-squared error on held-out examplesSingle MC4 with leaf frequencies: 10.7Single MC4 with leaf frequencies10.7Single MC4 with smoothed leaf estimates: 10.0Single MC4 with smoothed leaf estimates10.0Unpruned Bagging with hard predictions: 10.4Unpruned Bagging with hard predictions10.4Unpruned probabilistic Bagging (this paper): 7.5Unpruned probabilistic Bagging (thispaper)7.5
The numbers
System or settingMSE %
Single MC4 with leaf frequencies10.7
Single MC4 with smoothed leaf estimates10.0
Unpruned Bagging with hard predictions10.4
Unpruned probabilistic Bagging (this paper)7.5

For MC4 the change from unpruned hard Bagging to probabilistic Bagging gave a 21% average relative MSE reduction. The paper also reports a 21% average relative MSE reduction against the smoothed single-tree probability predictor. Smoothing the single tree helped, but averaging unpruned trees did more for this error criterion. This finding concerns the probabilities themselves and has a larger numerical effect than the change from hard voting to probability averaging in the classification error of full trees.

The probability comparisons show different sources of improvement for the other learners. With the discretized stump, the MSE averaged 31.1% for hard Bagging and 18.4% for probabilistic Bagging. Running the stump alone in probability mode gave 19.5%. Much of the apparent gain over hard voting can thus be obtained by using probabilities from the stump in the first place. With Naive-Bayes, the corresponding reported MSEs were 13.1% for hard Bagging, 9.8% for probabilistic Bagging, and 10.5% for a single fit in probability mode. The paper found no average relative MSE difference in the last comparison, illustrating again that the mean of dataset-level relative changes can tell a different story from the difference between average error levels.

What the ablations show

Bootstrap samples change growth and pruning in different ways

With pruning enabled, a typical Bagged MC4 constituent was larger than the corresponding single tree when averaged across the datasets. The means were 240 nodes for the Bagged trees and 198 for MC4 alone. On Adult the paper reports an average of 1510 nodes for the Bagged constituents, compared with 776 for a single tree. These are sizes of individual trees. The combined classifier must also store and use the set of constituents.

The growth experiment exposed the opposite pattern before pruning. With pruning disabled, the full-sample trees averaged 667 nodes, while the bootstrap trees averaged 496. The authors report that the bootstrap trees were smaller at this stage on every dataset. The ordering therefore changes between growth and the final fitted tree. The authors attribute the smaller initial trees in part to the lower number of distinct examples. They hypothesize that duplicates subsequently reinforce some patterns, leading the pruning phase to retain branches it would otherwise discard. The experiment locates the reversal in the pruning stage. The explanation about reinforcement is an interpretation of what pruning does on those samples.

Pruning also changed the error components differently for single and Bagged trees. For MC4 alone, turning it off increased the average variance from 5.7 to 7.3% and raised average classification error from 12.6 to 14.0%. For Bagged MC4, the same change increased variance from 3.5 to 3.9%. The average error remained at 10.4% at the precision given in this comparison, while the lower bias component offset part of the variance cost. The result explains why a choice that helps one full tree can lose its advantage when several trees share the prediction.

The paper’s boosting experiments supply a further control on that interpretation. Disabling pruning increased boosting error in the configurations the authors tried. The favorable Ogive of choices for Bagging did not carry over to boosting. The altered training distributions in boosting are driven by mistakes, and the growing vote assigns influence in a different way. The pruning results therefore support a conditional claim about how bootstrap aggregation changes the balance between local detail and variability.

Probability averaging, random weights, and backfitting

With unpruned full trees, changing the final combination from hard Bagging to p-Bagging lowered average classification error from 10.4 to 10.2%. The paper also reports small improvements in both estimated error components. The more pronounced shift in probability error tells where much of the value resides. The estimates can improve without moving the most probable class, and the cases that do change class account for only part of the probability gain. The plain and discretized stumps show larger changes in classification error when their probability estimates enter the vote, so the result also depends on what the base learner can express.

The authors tried similar use of probabilistic predictions with boosting. Averaging or otherwise using the estimated probabilities in the final combination was slightly worse than combining classifications in their tests. They also tried basing instance reweighting on probability predictions, with poor results. For AdaBoost, the paper reports an MSE difference of less than 0.1% between the probabilistic and hard prediction configurations it discusses. The update already responds to classification mistakes on skewed training distributions, which gives a reason to be cautious about interpreting constituent probabilities as estimates for the original data distribution.

Wagging tests whether bootstrap inclusion counts are essential to the benefits of random perturbation. For full MC4 trees, the unpruned and scored Bagging comparison gave 10.21% average classification error. The Wagging errors reported for Gaussian weight perturbations with standard deviations of 2, 2.5, and 3 were 10.19, 10.16, and 10.12%, respectively. The paper describes the differences as insignificant. This makes Wagging a competitive substitute in that comparison. The results leave the ordering of those noise settings uncertain.

Backfitting isolates leaf estimation more directly. Each tree keeps the decisions learned from its bootstrap sample, and the experiment changes the data used to estimate the class distribution at each leaf. In the corresponding comparison, average error moved from 10.4 to 10.1%. The reported bias component was 6.6% without backfitting and 6.7% with it. Variance moved from 3.9 to 3.4%, and the paper reports that no dataset’s variance estimate increased. The benefit in this comparison is associated with more stable predictions, even though the procedure leaves the branch structure of every constituent intact.

The trial curves show how this plays out as more trees are added. On Satellite Image, standard Bagging and the backfitted probabilistic variant tracked each other closely, with most of the improvement occurring in the first five to ten replicates. On Chess, the backfitted variant started ahead and ordinary Bagging caught up later. The curves for DNA-nominal and Nursery showed an advantage for the backfitted variant throughout the displayed runs. These comparisons show both why a final error is useful and why it misses differences in how quickly the methods attain it.

Adaptive sampling and the effect of noise

The resampling experiment changes the delivery of weights within a boosting method. With full MC4 trees, Arc-x4’s average bias estimates were 5.8% with resampling and 5.9% with direct weighting. The corresponding variances were 4.0 and 4.9%. The difference between the Arc-x4 variants is thus predominantly in variance. In the analogous AdaBoost experiment, the authors found no significant change in either direction in classification performance. This supports an implementation-specific conclusion. The two ways of presenting the same emphasis to a learner can give different results, and the importance of that choice depends on the boosting rule and the inducer.

The comparison between Arc-x4 and AdaBoost also shows that a weighted final vote is dispensable for competitive performance in some settings. Arc-x4 with resampling approximately matches AdaBoost with MC4 and has the lower reported average errors with Naive-Bayes and the discretized stump. Taken by itself, this is a comparison of whole procedures. The methods change the training weights by different rules, so their similar full-tree error cannot identify what would happen if only the final vote weights were changed.

LED-24 supplies a more direct test of noise sensitivity. The original data have 10% attribute noise, and the authors reran the comparison at levels from 1 to 9%. AdaBoost with MC4 trailed a single MC4 tree across the studied levels, and the reported gap grew with noise. At 1% attribute noise, the absolute classification-error gap was 0.84%. At 3% noise it was 1.01%, and at 6% noise it was 2.9%. This manipulation gives a basis for connecting noise to an increasing disadvantage in this dataset. The authors also report finding errors in Adult and suspect noise there, but they did not make an equivalent controlled alteration to Adult in the comparison.

Tree size gives another diagnostic for the failures. AdaBoost’s average constituent sizes were smaller than the original MC4 trees on Waveform, Satellite Image, and Shuttle, where test error fell markedly. The datasets on which full-tree boosting increased test error also saw larger AdaBoost constituents. On Adult the size comparison was 776 nodes for MC4 and 2513 on average for the boosted trees. Other datasets also produced larger trees and could still gain in accuracy. Arc-x4 increased average tree size on almost all datasets, and the authors did not find the same relationship between growth and error there. Tree size correlates with parts of the AdaBoost result without supplying a general rule for predicting whether boosting will help.

What the rounds reveal about AdaBoost

The Shuttle example begins with 5000 training examples and evaluates on the remaining 53,000. The unweighted first tree has 0.1% training error and 0.38% test error. Its five mistakes each go from a weight of one to 500. On the next round the new tree misses one example the first tree had classified correctly. The round’s weighted training error is 0.01%. On the next update that example gets weight 2500, half of the total. The tree from that second round has 0.19% test error on its own.

The following tree misses a different group of examples, all previously classified correctly, and has 0.21% test error. The pictures track the redistribution of weight by representing training examples with differently sized markers on the most discriminatory axes. The large markers move as the vote’s constituents expose new mistakes. Some heavily weighted points represent hard regions, while others can be isolated examples. The error rule makes both influential whenever they carry the current mistakes. It has no separate test for identifying an outlier or corrupted value.

On the fifth round, a single mistake on an example of weight 0.063 gave a reported weighted training error of 0.0012%. In the original implementation, an intermediate multiplication pushed almost all example weights below the cutoff of 10⁻⁶. The next tree had zero training error on what remained but 60.86% error on the test set. Using the direct update, the repaired run instead finished with a sixth-round tree whose test error was 0.08%. The final error in that run came from the single decisive tree. It demonstrates that adaptive training can discover a better individual classifier, as well as how a numerical change can determine whether an apparent perfect fit is meaningful.

The other trial curves show why a low training error is an incomplete diagnostic. Unrestricted MC4 votes frequently came close to zero training error by the fifth trial, though the test error persisted. For AdaBoost with Naive-Bayes on DNA, training error descended to zero while test error increased. With the discretized stump on Nursery, the weighted training error stayed around 49% after the early rounds and the training emphasis barely changed. These trajectories distinguish a learner that can fit the current weighted task from one that stalls. They also distinguish making progress on the training sample from making progress on the test cases.

Limitations

Limits the authors identify

The authors treat robustness to noise as an open problem for boosting. Their attempt to drop very high-weight examples did not improve the experiments. High weight can signal a genuine portion of the classification problem that the previous learners have missed, an unusual but valid observation, or a noisy example. The update mechanism does not reveal which explanation applies. The LED-24 experiment demonstrates a problem with increasing attribute noise in that setting. The suspected explanation for Adult remains separate from that controlled test.

The authors also leave the relationship between tree size and error unresolved. The observations about AdaBoost come from comparisons of fitted trees and their test errors. There is no experimental intervention that changes size while holding the entire rest of the boosting run fixed. Arc-x4 further weakens the case for treating average tree size as a general explanation. For Bagging, the paper compares pruning on with pruning off, while leaving open how a gradual change in pruning strength would affect different datasets.

The weak-learner condition is a practical limitation. The families used in the paper are unable to guarantee a weighted error bounded away from 1/2 on every round. At or near that level, restarting, continuing with very small changes in the weights, or falling back to a single fit may each yield different practical behavior. The paper also asks how to handle the opposite extreme, where an individual tree makes zero mistakes and displaces the vote. Shuttle establishes that such a tree can be very successful on held-out cases, while the authors leave its frequency and the merits of different stopping policies open.

The paper identifies further practical costs in the use of voting. A set of trees is harder to present to a reader as a classification rule. The authors discuss prior attempts to express combined predictions in more interpretable forms and report that their own attempt to stack Naive-Bayes over the Bagging or AdaBoost constituents was unsuccessful. They also point out the sequential dependency of boosting. Bagging fits can proceed in parallel, whereas boosting needs information from one round to prepare the next round’s distribution.

Limits of the experimental setup

The dataset and training-size choices support a specific comparison. The datasets all meet a minimum size requirement, training sizes are selected from learning curves with room for improvement, and large portions are reserved for testing. The resulting averages give each selected problem a role in the overall picture, but their interpretation depends on that collection and those training sizes. The fixed voting budget likewise gives evidence about the part of the learning process the authors measured. It cannot determine rankings for procedures run far beyond that budget or trained on a very different fraction of the dataset.

The Image Segmentation learning curve illustrates a particular issue with the splits. The dataset has balanced class representation. With the plain stump, a class that happened to be more common in the training portion could then be less common in the remaining test portion, producing a misleadingly poor result as the training size increased. The authors suggest that stratified holdout could better reflect how that dataset was constructed. They used unstratified holdouts for their comparisons, making the matched splits important and leaving the behavior under stratified sampling unmeasured there.

The bias and variance analysis can distinguish some effects of the methods, but the bias estimate incorporates the unknown intrinsic noise. An observed decrease in the reported component is a comparison made under the same estimation procedure and task. Its level cannot be read as the recoverable part of the error that a better learner could eliminate. The estimates also use only three outer runs for their standard deviations. The authors acknowledge that assuming independence for those runs is an approximation. Matching splits makes the comparisons more informative, while uncertainty still matters when reported average errors are close.

The measured probability loss has a specific scope. It uses the probability of the observed class, so probability distributions that assign that class the same probability receive the same score on the example even if they distribute the rest of their mass differently. The paper motivates probability estimates in part through decisions with unequal costs. Its experiments do not evaluate actual decisions under a range of loss matrices. They support claims about the reported probability criterion and leave performance under particular cost structures open.

Finally, the comparison changes both algorithms and the configurations they can feasibly run. Naive-Bayes is evaluated as implemented, without the feature selection that the authors say often accompanies it. The plain stump is omitted from the boosting results, and the discretized stump’s boosting averages include unboosted fallbacks. The numerical safeguards in AdaBoost and the stopping treatment of a perfect training fit also affect what is evaluated. These details make the results applicable to concrete procedures. The broader behavior of all implementations carrying the same algorithm names remains outside the comparison.

What came after

One later line of work changes what is combined. Model soups takes several fine-tuned predictors and averages their weights. In Bauer and Kohavi’s experiments, the constituent classifiers are fitted independently or sequentially, and the combination happens when they make predictions. Averaging fine-tuned weights moves the combination to the fitted parameters. The resulting predictor can be used without running a vote at inference time. The later work reports an improvement in accuracy without an increase in inference time, addressing a practical cost that the decision-tree comparisons make visible when a prediction requires multiple retained classifiers. Model soups

The connection concerns the form and cost of combination. A decision tree grown on one bootstrap sample can have a different structure from a tree grown on another. The paper’s procedure can still combine their answers because both trees choose among the same labels, or provide estimates over those labels. Model soups combines predictors at the level of weights. Its reported result addresses the feasibility of that operation for fine-tuned predictors. It gives a different route to drawing value from multiple fits, with the combination completed before any new example arrives.

Another later paper studies combining minimally supervised methods for Arabic named entity recognition. It takes the idea of combining methods into the task of identifying entities in text, with minimal supervision as a condition on the methods being combined. Bauer and Kohavi vary the examples or weights supplied to a base inducer to produce constituents for classification. The Arabic work frames its task around bringing minimally supervised methods together. The shared question is how to get better decisions from several sources of predictions, with the later work placing that question in a specific language and task. Combining Minimally-supervised Methods for Arabic Named Entity Recognition

Cite

Cite as Eric J. Bauer and Ron Kohavi. 1999. An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants. Machine Learning.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1023/a:1007515423169

@inproceedings{bauer1999empirical,
  title = {{An Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants}},
  author = {Eric J. Bauer and Ron Kohavi},
  booktitle = {Machine Learning},
  year = {1999},
  doi = {10.1023/a:1007515423169},
  url = {https://doi.org/10.1023/a:1007515423169}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bauer-1999-empirical-comparison-voting-classification-algorithms/