Elamur Research

Randomizing Outputs to Increase Prediction Accuracy

Paper · 2000 · Leo Breiman

Summary

A decision tree can change substantially when it is trained on a different sample. Combining several trees can make predictions more dependable, but where should the differences among those trees come from? Leo Breiman asks whether it is enough to change the answers in the training data while keeping the examples themselves fixed. The question puts the training targets at the center of a procedure typically associated with resampling entire examples, as in Bagging Predictors.

Breiman tests two ways to generate those alternative answers. Output smearing adds normally distributed noise to numerical targets. For classification, it first represents each class as a separate numerical indicator, then adds noise to those indicators. Output flipping works directly with class labels. It changes some of them at random, using transition probabilities chosen to keep the overall class proportions stable in expectation. Each perturbed version of the data produces a separate tree. The trees average their numerical predictions or vote for a class.

Smearing usually improves on bagging in the experiments. On Friedman #1, for example, the mean squared error is 5.01 with smearing and 6.23 with bagging, with both procedures evaluated on newly generated test sets. On sonar, the average held-out misclassification error is 16.3% with smearing and 20.1% with bagging. The advantage varies by dataset, and some results favor bagging. Flipping produces errors broadly comparable to smearing when the flip rate is chosen separately for each dataset. That comparison gives flipping the benefit of a search over rates. The paper also reports that AdaBoost achieves a lower average misclassification rate than smearing across the classification datasets.

The experiments with synthetic data explain why intentionally inaccurate training targets can help. When Breiman redraws labels from their true probabilities while holding the inputs fixed, the available variation can be small because many inputs already point strongly to a particular class. Artificial flips make individual trees less accurate, yet voting over those trees can remove much more error. In some settings, the resulting ensemble also makes a better systematic choice about which class to predict. That gives the paper a possible explanation for its results: altering the targets can change both the disagreements that voting resolves and the prediction on which the trees converge.

Deep dive: Randomizing Outputs to Increase Prediction Accuracy

Leo Breiman tests whether adding noise to training targets or changing class labels can make an ensemble of decision trees more accurate. · about 35 minutes to read

The problem and its context

How a training sample shapes a prediction

A supervised prediction procedure starts with examples that pair inputs with observed outputs. An input can contain several measured quantities. The output might be a numerical response, in which case the problem is regression, or a class label, in which case it is classification. Training turns those pairs into a rule that can predict an output for a new input. A different collection of training pairs can lead to a different rule even when the procedure for building it is exactly the same. Breiman treats this dependence on the training sample as a source of error in machine learning.

Imagine holding a test input in place and asking what a tree would predict after training on a succession of fresh samples from the same population. Each sample could change which questions the tree asks, where it places its splits, or which observations determine its prediction at that input. Some changes will cancel if predictions are combined. Others will persist because the procedure has a systematic preference. In regression, an average can suppress fluctuations around a common prediction. In classification, voting can suppress alternative labels when they receive fewer votes than the leading class.

The paper places this question in the study of flexible predictors such as trees and neural networks. A flexible procedure can produce a wide range of fitted rules, depending on the examples it receives. That range matters because a learner can have small systematic error and still be unreliable when fitted to a particular sample. Improving such a learner involves finding a way to preserve its capacity to learn the underlying relationship while reducing the effect of incidental features of the training sample.

The idealized experiment would collect many independent training sets of the original size, fit the same learner to each, and combine the resulting predictions. That construction gives Breiman a way to define the average numerical prediction or the most commonly predicted class. It also clarifies the practical difficulty. The researcher ordinarily has a single training set. Any ensemble built from it must find a substitute for the variation that independent collections would supply.

What changes when a training set is perturbed

Breiman presents bagging, boosting, and arcing as examples of methods that produce versions of a training set and combine the resulting predictors. Bagging constructs bootstrap samples by drawing training pairs with replacement. A given pair can appear several times in a resample, and others can be absent. Since a pair contains both its input and its output, resampling changes which input vectors the learner sees as well as which responses it sees alongside them. For the paper’s argument, the important property of bagging is that the response attached to a particular observed pair stays attached when that pair is selected.

The earlier clue came from Breiman’s work on selecting subsets of variables in linear regression. Selecting a subset makes the fitted prediction rule responsive to changes in the data because a different sample can change which variables enter the rule. In that setting, adding noise to the responses while keeping the inputs in place had worked about as well as bagging. The new paper asks whether the same idea extends to tree-based regression and classification. It also takes up a question raised by Freund and Schapire about whether perturbing labels alone could achieve the benefits of combining classifiers trained on altered data.

It helps to distinguish what can happen to the inputs from what can happen to the outputs. In an independent training sample, the learner can encounter a different set of input vectors. Even if the input vectors could be held exactly in place, the learner could still encounter different outputs whenever the distribution allows several responses at the same input. Regression makes that distinction relatively familiar. Repeated observations at an input can give a range of numerical responses. In classification, the corresponding question is how frequently the same input would generate a different class.

Those are properties of the data-generating process. An ensemble designer has a separate choice about how much variation to introduce on purpose. The observed class may be close to certain at a given input, leaving little variation if the experiment simply redraws a label according to its true probability. A procedure that intentionally changes labels can alter the training problem much more strongly. Studying both kinds of variation lets Breiman ask whether output randomization works because it imitates a fresh sample or because it changes which rules the learner tends to fit.

This aim also distinguishes the paper from two earlier uses of noise that Breiman discusses. An studied small amounts of output noise in training a single neural-network predictor for regression. Grossman and Lapedes used changed class labels to diagnose how a single neural-network classifier fits its training data. Breiman’s unit of interest is the collection of predictors produced by repeatedly perturbing the training targets. The relevant accuracy is what remains after their predictions have been combined.

The method, step by step

Building trees from alternative targets

Start with the observed training pairs. Keep the input vectors in their original positions and make a fresh version of the outputs. For numerical prediction, add a separate random disturbance to each response. For classification, either add disturbances to a numerical encoding of the classes or replace some labels directly. Use the resulting pairs to grow a tree. Then go back to the observed outputs and generate another perturbed set of targets for another tree.

A new input is evaluated by all the trees. In regression, each tree supplies a number, and the procedure averages those numbers. The classification form of smearing has an extra decision inside each tree. The tree produces a score for each class, the class with the largest score gets that tree’s vote, and the ensemble predicts the class with the largest vote count. Flipping uses class labels throughout, so each fitted classifier can provide its vote directly.

Training and predicting with randomized outputs

The steps in order.

Training and predicting with randomized outputsStep 1: Keep the observed training inputs fixed1. Keep the observed training inputs fixedStep 2: Choose a rule for perturbing the targets2. Choose a rule for perturbing the targetsStep 3: Generate fresh targets from the observed outputs3. Generate fresh targets from the observed outputsStep 4: Grow a tree on the altered pairs4. Grow a tree on the altered pairsStep 5: Repeat the perturbation and tree fitting5. Repeat the perturbation and tree fittingStep 6: Obtain each tree's prediction for the test input6. Obtain each tree's prediction for the test inputStep 7: Average numerical predictions or count class votes7. Average numerical predictions or count class votes

A tree in this procedure is fitted to one particular random version of the targets. If the disturbance changes how well a split separates numerical responses or classes, it can change the split that the tree chooses. That change can affect subsequent splits, since each subsequent decision works with the examples that reach that part of the tree. As a result, output smearing does more than move individual predictions by small numerical amounts. The disturbance can change which inputs the tree groups together.

Breiman studies the procedure at two levels. One is operational: given the observed pairs, how should the outputs be altered, how should a tree be built, and how should predictions be combined? The other is analytical: what part of the original prediction error is associated with the outputs, and what changes when averaging or voting is introduced? The following notation distinguishes the observed training sample from the independent cases used to define prediction error.

Regression error and the two sources of variation

T = {(yₙ, xₙ) : n = 1, …, N}

Here T is the training set, n indexes its observations, and N is the training-set size. The response and input vector at observation n are yₙ and xₙ. The braces enclose the collection of training pairs. Breiman assumes that the pairs are drawn independently from the same distribution, denoted P. A fresh pair, written as (Y, X), has that distribution and is independent of the training set. The function f(x, T) is the prediction at input x after the learner has been fitted to T.

PE(f(·, T)) = E_{Y,X}[(Y − f(X, T))²]

PE is prediction error for a fixed fitted rule. The dot marks the input position in the function. The expectation E with subscripts Y and X averages over fresh responses and inputs, holding T fixed. The square gives the loss for the numerical difference between the response and its prediction. A rule incurs larger losses as its errors grow in magnitude, regardless of their sign.

Y = f⁎(X) + ε

The structural response f⁎(X) is the conditional mean of Y at the input X. The residual ε is the part of Y left after removing that mean. The star distinguishes the population response function from the function fitted on a sample.

E[ε | X] = 0

E denotes expectation, and the vertical bar means that X is held fixed. Zero conditional mean says that the residual ε averages away among responses at a given X. It does not require all inputs to have the same degree of response noise. When squared prediction error is expanded around f⁎, the term involving both the residual and the fitted rule’s departure from f⁎ vanishes under this conditional expectation.

PE(f(·, T)) = E[ε²] + E_X[(f⁎(X) − f(X, T))²]

The first term averages squared response noise ε². The second averages over the fresh input X and measures the squared distance between the fitted rule and the population’s conditional mean at that input. T remains fixed. This identity separates the part of the error that exists even with the population response function from the part that depends on the fitted rule.

The next step is to compare rules trained on different samples of the same size. This comparison has two averages. The first is the average error of a trained rule. The second is the average prediction at a particular input. They answer different questions because calculating a squared error and taking a mean can be done in either order.

P̄E(f) = E_T[PE(f(·, T))]

P̄E is the average prediction error of the learning procedure f, and E_T averages the error PE over repeated training samples T. Each rule in this average is first evaluated as an individual rule on fresh cases.

f̄(x) = E_T[f(x, T)]

The bar on f̄ identifies the pointwise average prediction across training samples T. The input x stays fixed inside E_T. This is the population version of an average over independently fitted rules. Its departure from f⁎ describes a systematic error that could persist even with a very large collection of such rules.

E_{T,X}[(f⁎(X) − f(X, T))²] = E_X[(f⁎(X) − f̄(X))²] + E_{T,X}[(f(X, T) − f̄(X))²]

The left side measures the learner’s average squared departure from f⁎ over training sets T and test inputs X. The first term on the right measures the squared departure of the average rule f̄ from f⁎. The second measures how widely the predictions f(X, T) fluctuate around f̄(X). At a fixed X, the deviations of the fitted rules from f̄ average to zero. That fact removes the cross term and gives the separation.

P̄E(f) = σ² + B²(f) + V(f)

Here σ² denotes E[ε²], the noise contribution. B²(f) denotes the squared bias term, the average squared discrepancy between f̄ and f⁎. V(f) denotes the variance term, which measures changes in the prediction as T changes. This is the usual regression distinction Breiman begins from. To study perturbations of the targets, he divides V(f) again.

f̄(x, X₀) = E_{Y₀ | X₀}[f(x, Y₀, X₀)]

X₀ is the array of training input vectors, and Y₀ is the vector of corresponding training outputs. The subscript on E says to average over Y₀ from its conditional distribution given X₀. The prediction input x also stays fixed. The expression f(x, Y₀, X₀) is the same fitted prediction as f(x, T), with the two parts of T written explicitly. The resulting f̄(x, X₀) answers what the learner predicts on average when it sees those training inputs and the outputs are repeatedly redrawn.

V(f) = E_{T,X}[(f(X, T) − f̄(X, X₀))²] + E_{X,X₀}[(f̄(X, X₀) − f̄(X))²]

The first term measures how far a fitted prediction f(X, T) moves around the average available at its own training inputs X₀. Its expectation covers training sets T and independent test inputs X. The second term measures how much that conditional average f̄(X, X₀) moves around the overall average f̄(X) as X₀ changes. Its expectation averages over test inputs and training-input arrays. The second average can be taken after the outputs have already been integrated out.

V(f) = V_O(f) + V_I(f)

O marks the output contribution and I the residual input contribution. V_O(f) is the first term in the preceding equation. V_I(f) is the second. Both are expectations of squared deviations. V_O answers how much predictions fluctuate when the outputs are redrawn for known inputs, averaged over the possible training inputs. V_I captures the variation still present across those input sets after the output draws have been averaged within each set. The allocation therefore has a specific order: average over outputs conditional on inputs, then examine what remains across inputs.

Classification error, bias, and spread

In classification, averaging numerical predictions would not have the same interpretation because the predicted outputs are categories. The starting loss is whether the chosen class matches the observed class. Breiman analyzes the error at a particular input before averaging over inputs. That exposes the difference between the class that is genuinely most probable and the class that the learning procedure most often predicts.

PE(f(·, T)) = P_{Y,X}(Y ≠ f(X, T))

PE again denotes the error of a rule trained on fixed T. P with subscripts Y and X takes probability over a fresh label Y and input X. The sign ≠ marks a misclassification, since Y and the fitted prediction f(X, T) differ.

PE(f(·, T)) = E_X[P_Y(Y ≠ f(X, T) | X)]

The probability inside the brackets averages over the label Y at the fixed input X. E_X then averages over the possible inputs. This step emphasizes that the same rule can have a different probability of error in different parts of the input space.

P_Y(Y = f(X, T) | X = x) = ∑ⱼ P(Y = j | X = x) I(f(x, T) = j)

The index j runs through the possible classes. The symbol ∑ adds their contributions, and I is an indicator that is 1 when its condition is true and 0 otherwise. The fitted rule chooses a class at x, so its indicator selects the conditional probability of that class. The left side is the resulting probability of a correct prediction at x for the given T.

P_{T,Y}(Y = f(X, T) | X = x) = ∑ⱼ P(Y = j | X = x) P_T(f(x, T) = j)

On the left, the probability now covers the training sample T along with the fresh label Y at x. On the right, P_T(f(x, T) = j) is the proportion of equivalent training draws on which the learner would choose class j at x. Because the fresh pair is independent of the training data, each true class probability can be multiplied by the corresponding prediction probability. Adding over j gives the chance that the two choices agree.

P(j | x) = P(Y = j | X = x)

P(j | x) abbreviates the conditional probability that the true label Y is j when the input X is x.

P(j | f, x) = P_T(f(x, T) = j)

P(j | f, x) abbreviates the probability that the trained procedure f picks j at x, with probability taken over T. The two kinds of probabilities refer to different experiments. One varies the real label at x. The other varies the data used to train the predictor and records its decision at x.

j⁎(x) = arg maxⱼ P(j | x)

The operator arg max returns a class j attaining the largest value of the expression that follows. Thus j⁎(x) denotes a class with the largest true probability at x. Choosing such a class minimizes the conditional probability of misclassification. Averaged over X, that minimum is called the Bayes error rate.

P_{T,Y}(Y ≠ f(X, T) | X = x) = 1 − P(j⁎ | x) + ∑ⱼ [P(j⁎ | x) − P(j | x)] P(j | f, x)

Here j⁎ is shorthand for j⁎(x). The first part, 1 minus P(j⁎ | x), is the error of the optimal class choice at x. Each term in the sum charges the learning procedure for choosing class j. The charge combines the loss in true probability from choosing j and the frequency P(j | f, x) with which the procedure makes that choice. A class tied with j⁎ has zero cost in this sum because its true probability is the same.

P̄E(f) = PE⁎ + E_X[∑ⱼ (P(j⁎ | X) − P(j | X)) P(j | f, X)]

P̄E(f) averages the learner’s error over training samples, and PE⁎ is the Bayes error averaged over fresh inputs. The remaining expectation E_X integrates the same class penalties across X. In this formula j⁎ is evaluated at X. Its probability is maximal by definition, so all the contributions to excess error are non-negative.

The paper uses the distribution of predicted classes to distinguish different kinds of excess error. Imagine the class labels from a very large collection of training samples being counted at each test input. The plurality class is the one with the highest vote count. It represents the choice the same procedure tends to make when sampling variation is averaged through voting.

ĵ(x) = arg maxⱼ P(j | f, x)

The hat in ĵ marks the most often predicted class at x. The maximization is over j and uses the training-sample prediction probabilities, rather than the true probabilities used to define j⁎. A distinct plurality class carries a systematic cost whenever its true probability is below the maximum.

B = E_X[(P(j⁎ | X) − P(ĵ | X)) P(ĵ | f, X)]

This is the paper’s bias term for the individual classifier. The conditional true probabilities of j⁎ and ĵ determine the cost of the prevailing prediction. The factor P(ĵ | f, X) weights that cost by how frequently it is incurred when fitting a single classifier. Both class choices are functions of the input X.

S = E_X[∑_{j ≠ ĵ} (P(j⁎ | X) − P(j | X)) P(j | f, X)]

Breiman calls S the spread. The expectation is over X, and the sum covers classes j outside the plurality class ĵ at that input. Each alternative class is weighted by its prediction probability and charged its shortfall in true probability. This quantity measures more than disagreement. Two equally frequent alternative predictions can contribute differently when one is a more plausible true label.

If the prediction rule always uses ĵ(x), it has no spread around that choice. The corresponding systematic error is evaluated without the frequency weight used for the individual learner.

B_vote = E_X[P(j⁎ | X) − P(ĵ | X)]

B_vote here denotes the bias of the rule formed by a plurality taken over complete training-set replications. The expectation measures the average difference between the true probability of the optimal class and that of the ensemble’s chosen class. Where ĵ already maximizes the true probability, agreement on ĵ removes the cost of votes for worse choices. Where ĵ has a smaller true probability, concentrating the votes on it makes the systematic error count on every such decision. Voting can therefore change both the frequency of alternative choices and the weight of the prevailing choice.

What an output-only vote measures

Breiman defines a second theoretical vote by fixing the training inputs and averaging the fitted predictions over genuine redraws of their outputs. The probability distribution used in the vote is conditional on those inputs. The winning class can depend on which inputs happened to appear in the training sample even after there have been many output redraws.

j̃(x, X₀) = arg maxⱼ P_{Y₀ | X₀}(f(x, (Y₀, X₀)) = j)

The tilde identifies the plurality class j̃ for fixed training inputs X₀ and prediction input x. The probability varies the training outputs Y₀ conditional on X₀. The learner f is fitted on the pairs represented by (Y₀, X₀), and the maximization selects the class j with greatest support under these redraws.

Let the original classification error be the average error of individual fitted trees. The paper defines the overall decrease from that error as the change obtained by voting over complete training-set replications. The output contribution is the decrease obtained by voting over output replications at fixed inputs. The remaining change is attributed to input variability.

Δ_I P̄E = ΔP̄E − Δ_O P̄E

ΔP̄E is the decrease from the original average error to the error of the complete-replication vote. The subscript O marks the decrease obtained with the fixed-input vote. The subscript I labels the difference remaining after that decrease is accounted for. The symbol Δ indicates a change in average prediction error.

P̄E = PE⁎ + B_vote + Δ_O P̄E + Δ_I P̄E

P̄E is the original average error of the individual classifier. PE⁎ is the Bayes rate, and B_vote is the systematic error of the full-replication vote. The two changes in error connect that vote back to the individual learner’s error. This decomposition is defined through class decisions and their measured losses. The corresponding regression terms come from averaging squared fluctuations. The shared labels for outputs and inputs describe the order of the comparison, while the quantities themselves answer different questions.

Smearing a numerical response

The practical regression method needs a scale for artificial noise. Breiman first measures the sample standard deviation of the observed responses, a measure of how far they typically lie from their mean. He then recalculates the standard deviation after excluding responses more than 2.5 initial standard deviations from the initial mean. This second pass supplies a scale that is less sensitive to extreme responses. The exclusion is for estimating the noise scale. The training targets themselves are subsequently generated for the training examples.

y′ₙ = yₙ + zₙ · sd

Here yₙ is the observed response at training observation n and y′ₙ is its perturbed version. The dot means multiplication. The symbol sd is the adjusted standard deviation, and zₙ is an independent draw from a standard normal distribution, which has mean 0 and variance 1. The rule applies across n from 1 to N. Each repetition generates a fresh set of draws, scaled by the same response-scale estimate.

Breiman grows a maximal tree from each set of smeared responses. A maximal tree is allowed to grow without the pruning step that would otherwise choose a smaller fitted tree. The regression experiments grow 100 such trees and take their average at each test input. Even though the additive noise is centered on the observed response, the prediction of the ensemble need not equal the prediction of the tree fitted to the unchanged responses. The learner selects its splits using the altered targets, and that selection can change which observations determine a prediction.

Smearing a class indicator

For classification smearing, the number of output coordinates is the number of classes, J. An observed label is encoded by placing 1 in its own coordinate and 0 in every other coordinate. A fitted tree then predicts a vector of responses. During fitting, a split is scored by the total sum of squared deviations across coordinates. With the original indicators, the paper identifies this split rule with the Gini criterion. The Gini criterion measures how mixed the classes are in the groups that result from a split. With smeared indicators, the same squared-deviation calculation works on continuous numbers.

sdⱼ = √(2 pⱼ (1 − pⱼ))

The subscript j indexes a class. The quantity pⱼ is the proportion of training examples observed in that class, and sdⱼ is the standard deviation used for the noise on its coordinate. The square root applies to the whole product. The factors pⱼ and 1 minus pⱼ encode the class frequency and its complement, so the applied noise scale depends on how common the indicator is.

y′ⱼ,ₙ = yⱼ,ₙ + zⱼ,ₙ · sdⱼ

The original indicator for class j and observation n is yⱼ,ₙ. Its smeared version is y′ⱼ,ₙ, and zⱼ,ₙ is an independent standard normal draw for that coordinate and observation. The dot again denotes multiplication. The indices cover classes from 1 to J and observations from 1 to N. Independence of the disturbances across coordinates means that the perturbed vector generally has continuous values without the constraints of an original indicator vector.

A tree’s predicted vector is converted back into a label by finding its largest coordinate. That gives each tree a single vote. The 100 trees fitted to the 100 perturbed target sets then choose the class with the greatest vote count. The order matters. Averaging the numerical class scores across the trees would let the size of a score affect the ensemble’s decision. Plurality gives each tree equal influence through its chosen class.

Flipping labels while preserving class proportions

Flipping skips the numerical class encoding. Each observed label is eligible to become another label under a probability rule that depends on class frequency. Breiman reports that preserving the class mix approximately was important in his experiments. Directing an equal share of altered labels toward every class would tend to change that mix when classes have different frequencies. The proposed probabilities take the original proportions as their reference.

p(j | k) = w · c(j), for j ≠ k

The original class is k and the assigned class is j. The expression p(j | k) denotes the transition probability, c(j) is the proportion of observed labels in the destination class j, and w controls the overall amount of randomization. The dot denotes multiplication. This equation applies when the assigned class differs from the original class.

p(k | k) = 1 − w(1 − c(k))

The probability of retaining class k is p(k | k), and c(k) is that class’s original proportion. The product w(1 − c(k)) is the total probability of moving from k to any distinct class. Taking that value away from 1 gives the probability of staying in k.

The proportions c are invariant under these transitions. Consider a particular class. Some examples that start in it leave, and some that start in other classes arrive. The two flows cancel in expectation because the probability of entering the class contains its own original proportion as a factor. A single randomized training set can still show a different class mix. The invariance describes the sampling rule averaged over its draws. The paper also states that the original proportions give the unique invariant distribution under the flipping transitions.

sq = ∑ⱼ c(j)²

The quantity sq is the sum, over all classes j, of their squared original proportions c(j). The square occurs because the original class frequencies determine both how many examples are eligible for each kind of move and the destination probabilities used in deciding whether a move changes a label.

fr = ∑ₖ c(k) w(1 − c(k))

The quantity fr is the desired fraction of labels changed, interpreted for the transition rule as an expected fraction. The sum runs over the original class k. The factor c(k) is the fraction of training labels beginning in k, and w(1 − c(k)) is the probability that one of those labels leaves it.

w = fr / (1 − sq)

This equation sets w from the target flip rate fr and the sum of squared proportions sq. The division follows by factoring w out of the preceding sum and using the fact that the class proportions sum to 1. The probability rule thus adjusts for the makeup of the training set rather than treating w itself as the fraction of labels that will change. Flipping repeatedly makes new sets of labels from the original ones, keeps the input vectors fixed, and uses the resulting trees’ class votes for prediction.

Experiments and results

How the comparisons were organized

Breiman uses synthetic data for two purposes. The first is to estimate the components of prediction error, taking advantage of known data-generating distributions. The second is to compare practical predictors using newly generated training and test samples. Keeping those experiments distinct matters because only the diagnostic experiments require the true conditional distribution for redrawing outputs. In the accuracy experiments, the ensemble is constructed from the training data and the specified perturbation rule.

The diagnostics use unpruned CART, the Classification and Regression Trees procedure, to study how training variation affects a flexible learner. The practical comparisons test smearing against bagging on both numerical and categorical tasks. For classification, the paper also gives results for a single CART tree whose size is selected by cross-validation. Flipping is assessed against smearing on the classification datasets. The paper’s comparison with AdaBoost is reported separately as an average across those datasets.

The regression metric is mean squared error on test responses. The classification metric is misclassification error as a percentage of test examples. Where the paper reports repeated runs, it averages the test errors across those runs. The diagnostic tables have different meanings: one reports contributions as percentages of total squared prediction error, while the classification decomposition reports terms on the misclassification percentage scale. The ensemble vote gains in those tables should therefore be read as parts of a decomposition, not as the test error of an ensemble taken by themselves.

Regression on held-out and generated test sets

The regression comparison uses several evaluation designs. For Ozone, Housing, and Servo, a randomly selected 10% is left out for testing in each run. Training uses the remaining 90%, and the procedure is repeated 100 times. Each ensemble contains 100 trees. The result for a dataset is the average of the test-set mean squared errors, so it reflects performance on repeated splits of the available observations.

Robotarm has its own fixed test set. The predictors train on 15,000 examples, and the error is evaluated on 5000 test examples. The synthetic Friedman datasets use a fresh 200-example training set and a 2000-example test set per run. Those experiments are repeated 50 times. Bagging uses the same evaluation procedures and 100 trees per run, giving the methods the same ensemble size within the comparison.

Mean squared error on generated Friedman #1 test sets

The smeared trees have lower average test error than the bagged trees.

Mean squared error on generated Friedman #1 test setsBagging: 6.23Bagging6.23Output smearing (this paper): 5.01Output smearing (this paper)5.01
The numbers
System or settingmean squared error
Bagging6.23
Output smearing (this paper)5.01

On the repeated holdouts, smearing reduces mean squared error from 18.1 to 17.4 on Ozone and from 10.6 to 10.3 on Housing, with bagging listed first in each case. On Servo the corresponding errors are 98.3 and 89.7. On the separate Robotarm test set, bagging has mean squared error 4.72 and smearing has 4.64. These results show the direction of the comparison under different test arrangements. The magnitudes are particular to the datasets because squared error depends on the scale of the response.

Among the generated datasets, Friedman #3 gives mean squared errors of 25.1e-3 for bagging and 23.3e-3 for smearing, averaged over the generated train–test runs. Friedman #2 reverses the ranking, with 21.4e3 for bagging and 22.2e3 for smearing. That exception is especially informative alongside the diagnostic experiment, where the variance of an individual tree on Friedman #2 is overwhelmingly associated with the outputs. A large natural output contribution can motivate output-based averaging, but it does not settle how a particular artificial noise scale will compare with a bootstrap ensemble.

Classification with smeared indicators

The classification methods are evaluated under repeated holdouts, fixed test data, and generated train–test runs. For the first 8 results, ending with letters, the paper describes holding out 10% at a time and averaging over 100 runs. Smearing fits 100 trees per run, and the bagging errors are obtained with the same evaluation procedure. The single-tree CART comparison uses 10-fold cross-validation within the training portion to select tree size, then assesses the selected tree on the held-out portion. The held-out cases therefore serve a different role from the folds used to select the tree.

The paper also describes evaluations with a dedicated test set, where there is one ensemble run and the selected CART tree is evaluated on the test cases. For the generated-data experiments, it specifies newly drawn training sets of 300 and test sets of 3000, with error averaged over 50 runs. Those train–test simulations are distinct from the synthetic diagnostics that repeatedly redraw labels for fixed inputs. The reporting leaves an ambiguity at the boundary between the dedicated-test and synthetic groups, which limits how specifically the protocol can be assigned to every row.

On the repeated holdouts, sonar illustrates the comparison with both baselines. The mean misclassification errors are 29.2% for CART, 20.1% for bagging, and 16.3% for smearing. On vowel, the corresponding errors are 20.9%, 8.0%, and 4.4%. These comparisons show both a gain from combining trees and a further gain from changing the way the ensemble is generated. The single CART tree is already size-selected through cross-validation, so its role is to compare a separately tuned single-tree predictor with ensemble procedures.

Average held-out misclassification error on vowel

Smearing achieves the lowest error among the methods in the main classification comparison.

Average held-out misclassification error on vowelSingle CART tree: 20.9Single CART tree20.9Bagging: 8.0Bagging8.0Output smearing (this paper): 4.4Output smearing (this paper)4.4
The numbers
System or settingmisclassification error %
Single CART tree20.9
Bagging8.0
Output smearing (this paper)4.4

The repeated-holdout results also include smaller changes. On glass, the misclassification errors are 23.2% for bagging and 22.6% for smearing. On breast (Wis), they are 4.1% and 3.4%. Vehicle provides an exception: bagging gives 15.4%, and smearing gives 15.8%. In the dedicated-test comparison for dna, both methods give 5.1%. Those rows show that the advantages on vowel and sonar cannot be taken as representative of the size or direction of every comparison.

For the generated synthetic tasks twonorm and threenorm, the mean test errors are 6.9% and 19.5% with bagging, and 5.2% and 18.1% with smearing, respectively. The selected CART trees give 23.2% and 33.9%. On ringnorm, the corresponding errors are 9.9% for bagging, 7.0% for smearing, and 22.1% for the selected tree. The advantage of aggregation appears under these generated test distributions as well as on the repeated holdouts. Relative performance within the ensemble comparisons still varies with the task.

The paper reports that AdaBoost, run on the 15 classification datasets, has an average misclassification rate 5% lower than smearing. This is the reported aggregate comparison. Reading it as a gap of 5 percentage points on each dataset would give it a meaning the report does not support. The common-baseline results establish how smearing fares against bagging and CART on individual tasks. The AdaBoost result gives a separate indication of where smearing stands against a stronger ensemble procedure in the paper’s tests.

Classification with flipped labels

Flipping adds a choice that the smearing procedure handles through its fixed formula for the class noise scales. Breiman tries flip rates from .10 to .50 in increments of .05. The results table lists a selected rate for each dataset together with the lowest error obtained in the search. The comparisons show what flipping achieved under a favorable setting per dataset. They provide less direct evidence for how a rate chosen before testing would perform.

At the favorable settings, flipping and smearing end up close across the classification tasks. On the vowel holdouts, flipping has a misclassification error of 4.0% at a flip rate of .50, while smearing has 4.4%. On letters, flipping gives 4.7% at .45 and smearing gives 5.2%. On the digit test, flipping gives 8.9% at .40, compared with 9.9% for smearing. On the generated ringnorm tests, flipping gives 5.7% at .25, while smearing gives 7.0%.

Mean test misclassification error on generated ringnorm data

The selected flipping setting gives the lowest reported error in this comparison.

Mean test misclassification error on generated ringnorm dataBagging: 9.9Bagging9.9Output smearing: 7.0Output smearing7.0Output flipping at the selected rate (this paper): 5.7Output flipping at the selected rate(this paper)5.7
The numbers
System or settingmisclassification error %
Bagging9.9
Output smearing7.0
Output flipping at the selected rate (this paper)5.7

The direction changes on several held-out comparisons. On sonar, flipping gives 17.3% at .20 against 16.3% with smearing. On glass, it gives 23.1% at .25 against 22.6%. The generated twonorm tests give 5.2% for both methods, with the flipping entry using .25. The variability in selected rates, alongside the mixed rankings, is part of Breiman’s judgment that smearing is the simpler procedure to use. Flipping can reach better reported results for particular tasks, but finding the rate is a separate part of obtaining those results.

What the ablations show

Redrawing the outputs reveals where ordinary variation comes from

Breiman’s main controlled comparisons are synthetic experiments that change which parts of the training sample are allowed to vary. Knowing the generating distribution makes it possible to hold the training inputs fixed and draw fresh outputs for those inputs. It is also possible to generate entirely fresh sets of training pairs. A large independent evaluation sample then helps estimate expected error for each construction. This use of repeated simulation, or Monte Carlo estimation, gives the output and input contributions an operational interpretation.

For regression, the experiments use Friedman #1, Friedman #2, and Friedman #3. Training sets have 200 examples, and the calculations average over 50 generated training sets per dataset. The independent evaluation set contains 15,000 examples. Friedman #1 has 10 inputs, while Friedman #2 and Friedman #3 each have 4. The learner is unpruned CART, so the components describe a tree-building procedure that is free to respond to changes in the training data.

On Friedman #1, the paper assigns 47.8% of total prediction error to output variance and 18.7% to residual input variance. On Friedman #3, the corresponding shares are 49.1% and 15.5%. The output term accounts for about 75% of their combined variance contribution, as the paper reports. On Friedman #2, output and input variance account for 51.2% and 0.5% of total prediction error, with the paper describing output variance as 99% of the combined variance. The denominator matters. The reported shares of total error coexist with response noise and bias, while the shares of variance describe how the portion attributable to training fluctuations is divided.

The classification diagnostic uses twonorm, threenorm, and ringnorm, with equal probabilities for the two classes. Each dataset produces 100 training sets of 300 examples. Within a training set, Breiman obtains the true probability of class #1 for each fixed input. He samples a new binary label using that probability, repeats the procedure for 100 iterations, and takes a plurality vote among the resulting classifiers. A generated evaluation set of 15,000 cases is used to estimate the error components.

In twonorm, the reported error reductions attributed to output and residual input variation are 7.5 and 11.5, respectively, on the table’s percentage scale. In ringnorm they are 4.6 and 14.9. Threenorm changes the ordering, with 13.7 attributed to outputs and 7.6 to residual inputs. The classifier’s systematic error under full voting is also different across the tasks. The table lists bias components of 2.0 for twonorm, 2.6 for threenorm, and 4.0 for ringnorm. Together the terms show why varying outputs under the true law can have quite different effects across classification problems, even though the training size and replication procedure are held in common.

Why genuine label redraws may produce similar trees

For a binary problem, the smaller of the two conditional class probabilities gives the chance of drawing the less likely label at a given input. Breiman uses it to measure how many training inputs offer room for meaningful variation in their labels. The diagnostic compares this smaller probability with the thresholds .1, .01, and .001, then averages the proportions over 10 training sets.

At the threshold .01, the percentages of training inputs below the threshold are 79.3 for twonorm, 33.8 for threenorm, and 86.2 for ringnorm. At .001, the corresponding percentages are 60.3, 7.3, and 64.9. An input counted at either threshold has a true conditional distribution heavily concentrated on one class. Even drawing the label again and again may leave the learner with nearly the same class information at those inputs. Threenorm has fewer such concentrated cases by these measures, consistent with its larger estimated gain from genuine output redraws.

The limiting example is a problem with perfectly separated classes. The true class is then known from the input under the population distribution. Redrawing labels from that distribution while holding the inputs in place adds no label variation. A tree trained on finitely many examples can still make errors on fresh inputs because it has to infer the separation from those examples. This example separates the amount of ambiguity in the true labels from the possibility of improving a learned prediction rule by perturbing them artificially.

Artificial flips change both individual trees and their vote

Breiman tests that possibility using a simpler flip mechanism than the class-proportion rule of the practical benchmark. He starts from a synthetic training set drawn from the original distribution. He makes 100 alternative training sets of size 300 by flipping labels with probability .25, regardless of the input. Each version produces a tree. Evaluation uses the original input–output distribution, so success still means predicting the labels of the original problem.

The individual trees become less accurate. In the diagnostic tables, the average single-tree misclassification error on twonorm changes from 23.1% in the original analysis to 33.1% under artificial flipping. For threenorm it changes from 34.7% to 40.6%, and for ringnorm from 25.0% to 34.1%. The training disturbance is substantial enough to degrade individual predictions on the untouched task. Assessing the trees separately would therefore give a misleading account of what the ensemble obtains from the disturbance.

The output-vote contribution changes direction much more sharply. With artificial flipping, the decline in average error attributed to voting over fixed-input output variants is 27.7 for twonorm, 20.8 for threenorm, and 28.3 for ringnorm, on the same percentage scale. The residual input contributions become 2.6, 6.0, and 3.8, respectively. The pattern is that voting removes a larger portion of the single-tree error while additional input variation accounts for a smaller remaining change. An artificially generated collection can therefore contain more disagreements that a vote resolves than a collection based on genuine conditional label draws.

The systematic component also falls, from 2.0 to 0.6 for twonorm, from 2.6 to 0.3 for threenorm, and from 4.0 to 1.4 for ringnorm. Those are the bias terms for the full vote in the decomposition. They describe how well the ensemble’s prevailing class aligns with the class that has greatest true probability. Breiman suggests that this change can help explain the advantage over bagging, which the paper characterizes as primarily reducing variability, with little effect on bias. The synthetic comparison supports that explanation for these cases. The two benchmark procedures could reach similar error rates through different combinations of systematic error and disagreement.

How much the perturbation rule matters

The flip-rate search shows sensitivity to the amount of alteration, although the paper gives the selected results rather than full error curves. The rate selected for one dataset can be quite different from that selected for another. Changing labels less often keeps the fitting problems closer to the original. Changing them more often gives the trees more opportunity to disagree, while further degrading the information available to each fit. The selected rate is where the reported comparison found a favorable balance for that task.

Breiman also tried using the known class probabilities of the synthetic data to guide flipping and found no combination that improved the result. This gives the simple class-based transition a meaningful comparison. Information about the real conditional probability of a label is directly useful when generating genuine redraws. The paper’s trials found no gain from importing that information into the artificial flipping rule, whose purpose is to create a collection of predictors that combine well.

A further experiment combines flipping and bagging. Breiman reports small improvements in most cases and gives no detailed numerical results for the combination. The observation suggests that the two perturbations can sometimes be complementary. The evidence is qualitative, and the reported gains are modest. Along with the fixed-input diagnostics, it supports the narrower conclusion that changing outputs can be a sufficient source of variation for a competitive ensemble of trees.

Limitations

Limits Breiman states

Flipping requires selecting a rate. Breiman regards that choice as a practical disadvantage because the successful value varies across datasets. Smearing uses a common prescription for setting the noise scale from the responses or class frequencies. The paper describes that prescription as broadly usable across the tested tasks, with exceptions in the comparisons against bagging. It also places both randomization procedures below stronger ensemble methods in the reported comparisons, including AdaBoost and the half-and-half bagging procedure discussed in the closing remarks.

The bias explanation is tentative. Breiman demonstrates that the artificial-flip ensembles have lower systematic error in the synthetic diagnostics, then proposes that this capability may account for their improvement over bagging. The reported evidence concerns particular controlled data-generating processes. It leaves open how frequently the same mechanism explains the differences on observed datasets, where the optimal class probabilities generally cannot be inspected.

The paper motivates the approach in terms of broadly applicable ideas about flexible learning procedures, while its experiments use trees. Conclusions about regression or classification with other learners would require evidence about how those learners respond to altered targets. The earlier neural-network studies discussed in the paper involve other evaluation goals. Their presence establishes related uses of output noise, with the experimental evidence for ensemble accuracy here still coming from tree learners.

Limits of the experimental setup

The best flipping results use a search over candidate rates and report the lowest evaluated error. The paper does not describe a separate validation stage that selects the rate before a fresh test evaluation. The reported minima can therefore benefit from selecting a favorable outcome among several estimates. A reader can use the table to see what the search achieved and how selected settings differ across cases. It gives weaker grounds for expecting the same performance when the flip rate must be chosen without access to those evaluation results.

The comparison also leaves the limits of the parameter choices largely unexplored. Regression smearing uses a noise scale derived from the overall spread of the training responses. Classification smearing scales the noise by each class’s observed frequency. Neither experiment maps out how error changes across alternative smearing strengths. Similarly, the flipping table gives selected settings instead of the whole set of errors at candidate rates. It is consequently difficult to judge how much error would change with a nearby setting, or whether a broad range of rates would give nearly the same result on a particular dataset.

The direct variance measurements depend on having a known conditional output distribution and enough synthetic replications to approximate the required averages. The estimates show which components are large in the chosen examples. In regression, the contributions are squared deviations with a precise decomposition. In classification, the contributions are comparisons between prediction rules that vote over different kinds of replication. Calling both sets of contributions output and input variability gives them a common interpretation at a high level. The numerical components still have to be read according to their own definitions.

The class-proportion rule preserves the observed frequencies in expectation, so each realization can change the training proportions. Additionally, those frequencies express how common a label is across the training set. They do not describe which inputs provide the most evidence for that label. The equal class probabilities used in the synthetic classification diagnostic make it easier to isolate the effect of label concentration at an input. They give limited evidence about which perturbations would work well under a markedly different class mix or how errors are distributed among classes. The benchmark metric measures overall misclassification and offers no separate class-level accuracy comparison.

The dataset grouping in the classification description is ambiguous. It specifies the first 8 datasets for repeated holdouts, then describes the next 4 as dedicated-test evaluations and the last four as generated tests, while the results table has 15 dataset rows. The errors can be read directly from the table, and the holdout protocol and the generated protocols for the named synthetic examples are useful for interpreting the main comparisons. The boundary between the groups is less securely documented than the results themselves. The results tables also contain point estimates without uncertainty intervals, so close values are best understood as the reported ordering under the evaluation procedure. They do not establish a precise difference in performance under repeated new studies.

Finally, the number of trees is fixed in the principal comparisons. With 100 trees, the experiments compare the perturbation strategies at the same ensemble size. They leave open whether the observed rankings would hold with many fewer trees or how quickly each method approaches its large-ensemble behavior. This matters because the paper’s theoretical averaging and voting constructions describe the behavior under repeated training draws, while the practical procedure has a finite number of votes.

What came after

No specific later extension of output smearing or flipping is documented. Breiman’s closing discussion does identify a direction for subsequent investigation. If diversity among trees can come from resampling pairs, altering targets, or changing how splits are chosen, then different ways of constructing an ensemble can be compared through the decisions its vote ultimately makes. Dietterich’s work on randomized split selection is discussed as a contemporaneous example of another source of diversity. Breiman’s own trial combining bagging with flipping is a preliminary comparison of two such sources. Both belong to the paper’s closing account of the research question, where the unresolved issue is which kinds of perturbation improve the ensemble’s prevailing prediction as well as reducing the effect of disagreement.

Cite

Cite as Leo Breiman. 2000. Randomizing Outputs to Increase Prediction Accuracy. Machine Learning.

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

@inproceedings{breiman2000randomizing,
  title = {{Randomizing Outputs to Increase Prediction Accuracy}},
  author = {Leo Breiman},
  booktitle = {Machine Learning},
  year = {2000},
  doi = {10.1023/a:1007682208299},
  url = {https://doi.org/10.1023/a:1007682208299}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/breiman-2000-randomizing-outputs-increase-prediction-accuracy/