Skip to content
AI.info

Advanced techniques

Ensemble Diversity and Error Correlation

Understand the statistical logic behind ensembles before learning specific combination algorithms.

By the end you can

Analogy

Two committees whose membership is published

The largest ensembles running on any given morning are weather ensembles, and their operators publish the membership rather than describing it. ECMWF states its medium-range system in two sentences: “The ENS is an ensemble of 51 forecasts, all having a horizontal resolution of around 9 km. It comprises one control forecast (CNTL), plus 50 other forecasts that each have slightly altered initial conditions and slightly altered model physics.”

Read the recipe, not the count. The 50 non-control members are not 50 opinions gathered from 50 sources. They are one forecast system disturbed on purpose, twice over: the initial conditions altered, and the model physics altered as well. Diversity here is a manufactured input with a line in the budget. It is not a lucky property of a committee that happened to assemble.

NOAA/NCEP's GEFS version 12 makes the same choice at a different price. It was implemented into operations on 23 September 2020. It runs 31 members — 30 perturbed plus 1 control — at about 25 km, raised from the previous 21 (20 perturbed plus 1 control). Two decisions are visible in those numbers: how many members, and how coarse each member is allowed to be so that the machine can afford them all.

Both facts set up everything that follows. Every member is a full forecast, competent on its own, not a weak run kept around for variety. And the perturbations exist precisely so that the members do not fail in the same way at the same time. An ensemble is worth its cost only when both halves hold.

In production, diversity is manufactured and paid for: ECMWF perturbs one system 50 times, NOAA/NCEP's GEFS version 12 thirty.

Two published equations for what an average actually buys

When several regression models have similar error variance and their errors are weakly correlated, averaging can reduce the variance of the final prediction, because positive and negative deviations partly cancel. Krogh and Vedelsby made that cancellation exact rather than suggestive. Their ambiguity decomposition, published in 1994, splits the ensemble's generalisation error into two terms, E = Ebar - Abar: the weighted average of the members' own errors, minus the ensemble ambiguity — the amount by which the members deviate from the ensemble's own answer. The minus sign carries two consequences. The ensemble can never be worse than its average member. And what it gains is exactly the amount its members disagree. The authors state the corollary without hedging: “A combination of the output of several networks (or other predictors) is only useful if they disagree on some inputs. Clearly, there is no more information to be gained from a million identical networks than there is from just one of them”.

The equivalent bias-variance-covariance form covers the squared error of the ensemble mean, and it is the one to read before ordering more hardware: E{(fbar-t)^2} = bias^2 + (1/M)var + (1 - 1/M)covar. Brown and two colleagues published it in 2005. Adding members divides the variance term by M. It does nothing to bias, and nothing to covariance, whose factor (1 - 1/M) only grows towards 1 as M grows. Member count is a lever on one of three terms. Architecture diversity, feature diversity, resampled data, different random seeds and different inductive biases all aim at the term the count cannot touch. They create alternative paths to the prediction, which is the only way the covariance term moves. If every model learned the same spurious relationship, aggregation leaves that term intact and can make the mistake look more confident.

For classification, averaging calibrated probabilities usually preserves more information than majority voting. Voting discards confidence and can behave oddly when models are differently calibrated. The combination rule should match the output semantics and the decision threshold used downstream.

Adding members divides the variance term by M and leaves bias and covariance exactly where they were.

Visual

Three ingredients of ensemble value

This layered view separates properties that are often collapsed into the single word “diversity.” Each layer has a citation behind it rather than an intuition.

The first two layers are the two words of Dietterich's condition: the classifiers must be “accurate and diverse”, a requirement he credits to Hansen & Salamon (1990). Drop either word and the benefit is gone. The third layer is where Krogh and Vedelsby's ambiguity term is either preserved or thrown away. An aggregator that reduces each member to a hard class discards the very deviations the decomposition is counting.

FigureLayers · 3 layers
  1. 01

    Base competence

    Each member must carry signal above a trivial or random baseline.

  2. 02

    Complementary errors

    Members should not make the same mistakes on the same examples.

  3. 03

    Sound aggregation

    The combiner must preserve useful probability or ranking information.

Comparison

Ways to create diversity without creating chaos

Different diversity mechanisms change both the expected benefit and the operational cost, and Leo Breiman turned that trade into a bound. His random forests paper, in 2001, proves an upper bound on forest generalisation error, PE* <= rho-bar(1 - s^2)/s^2, where rho-bar is the mean correlation between member raw margins and s is member strength. Read as an instruction rather than a result, it is the design rule for every mechanism in the table below: “To improve accuracy, the randomness injected has to minimize the correlation ρ̄ while maintaining strength.” Both halves are load-bearing. Correlation sits in the numerator, so decorrelation improves the bound. Strength sits in the denominator, so a mechanism that decorrelates by making members weaker moves the bound the wrong way faster than it helps.

The library most readers will actually run states the same mechanism in its own documentation. Scikit-learn says the randomness it injects yields trees with “somewhat decoupled prediction errors”, so that on averaging “some errors can cancel out”. Bootstrap sampling and feature subsampling are not folklore attached to trees. They are correlation-reduction devices aimed at rho-bar. ECMWF's 50 altered members and the 30 perturbed members of GEFS version 12 are the same device at national scale: perturb the inputs and the physics, and keep every member strong enough to stand alone.

FigureComparison · 3 columns

Data perturbation

Train the same learner on resampled or reweighted examples.

  • Often effective for unstable learners
  • Keeps architecture and features consistent
  • Shared data bias can remain
  • Example: bootstrap samples for trees

Model diversity

Combine learners with different inductive biases.

  • Can capture different functional relationships
  • More expensive to tune and maintain
  • Predictions may need calibration
  • Example: linear model plus tree ensemble

Representation diversity

Vary features, views, modalities, or pretrained encoders.

  • Useful when signals are genuinely complementary
  • Raises data alignment and leakage risks
  • May improve robustness across slices
  • Example: text and behavior models in ranking

Example

What to inspect before averaging anything

A useful ensemble audit looks beyond the aggregate score. It must also not stop at a diversity number, because the study that measured those numbers most carefully found they do not predict what they are used to predict. Kuncheva and Whitaker took ten diversity statistics in 2003 — four pairwise (Q, correlation, disagreement, double fault) and six non-pairwise — and computed them on 14,700 three-classifier teams enumerated from partitions of the 10 breast-cancer features. The rank correlations between those statistics and the improvement over the single best classifier ran from -21% to 38%. Their conclusion is blunt: “The absolute value of the correlation coefficients in Table 7 are so low that the diversity measures considered here have no useful predictive value.” So measure these things to understand your ensemble. Measure gain itself to decide anything.

  • Pairwise residual correlation: this is Breiman's rho-bar in empirical form, and high values suggest that additional members may add little variance reduction. Treat it as a description of the error structure, not as a score to maximise.
  • Per-slice disagreement: disagreement concentrated on rare or safety-critical cases deserves manual review, not automatic averaging.
  • Individual calibration: a severely overconfident member can distort probability averaging even when its accuracy is acceptable, and strength is the term Breiman's bound punishes you for trading away.
  • Marginal contribution: add models one at a time and measure whether each improves the chosen metric after cost is included. Ovadia's own size sweep is the published prior for what that curve tends to look like.
  • Failure overlap: inspect whether all members fail on the same examples. Double fault, one of the four pairwise statistics Kuncheva and Whitaker measured, is exactly this quantity, and shared failures often reveal shared data or target problems rather than a tuning opportunity.

Key idea

The shared-bias trap

An ensemble can be stable and still be wrong. If every member was trained on the same biased labels, the same leakage-prone features, or the same missing subpopulation, the aggregate may reinforce the defect. In the decomposition above, that shared defect lives in the bias term, and the bias term does not care how many members you bought. Agreement is evidence of consistency, not evidence of truth.

This matters most when the ensemble is used as an uncertainty proxy. Variation across members can reveal epistemic uncertainty only under assumptions about how the members were generated. Low disagreement does not prove the input is familiar or the prediction safe.

What happens to that proxy when the world moves has been measured. Ovadia and colleagues, in 2019, tested CIFAR-10 and ImageNet ResNets on 80 distortions — 16 corruption types at 5 intensities each, taken from Hendrycks & Dietterich (2019). Ensembles won the comparison: “Deep ensembles seem to perform the best across most metrics”. The paper's first take-home message is the other half of the same experiment: “Along with accuracy, the quality of uncertainty consistently degrades with increasing dataset shift regardless of method.” Ensembles are inside that “regardless”. They were the best method measured, and their uncertainty still decayed as the corruption intensity rose.

Model agreement can hide a common blind spot.

Steps

A diversity lab with three candidate models

Use this small experiment to learn whether combination is helping for the right reason. Two published results should set your expectations before you start, so that the lab confirms or contradicts something rather than merely producing numbers.

First, the diversity statistic is not the objective. Across 14,700 teams, Kuncheva and Whitaker found rank correlations with actual improvement running only from -21% to 38%. Step 3 exists to explain step 5, not to replace it. Second, the size curve flattens early. Ovadia's size sweep reports “diminishing returns beyond size 5”, the main experiments use M = 10, and the largest ensembles it plots are 8-16 members. If your fourth model is still buying obvious gains, that is a finding about your members' correlation, and worth understanding before you buy a fifth.

FigureProcess · 5 steps
  1. 1. Freeze a common evaluation set

    Use the same untouched examples and slice definitions for every member.

  2. 2. Record individual predictions

    Store probabilities or scores, not only final classes.

  3. 3. Compare residuals and disagreements

    Locate examples where members diverge and where they fail together.

  4. 4. Test simple combiners first

    Try an unweighted mean before learning complex weights.

  5. 5. Measure marginal value

    Remove each member and quantify the change in quality, latency, and cost.

Key idea

Diversity can be useless or harmful

Two models can disagree often while both being wrong on the cases that matter, and a deliberately weak member may raise a diversity statistic while lowering the ensemble's expected utility. That is not a hypothetical. It is the mechanism behind Kuncheva and Whitaker's verdict that the ten measures they tested have “no useful predictive value” for gain: a statistic that rewards disagreement cannot tell disagreement-through-competence from disagreement-through-weakness.

The same failure mode turns up in a modern setting. A 2026 capability-controlled audit by Donghwan Kim evaluated five diversity metrics across 31,900 subsets of 30 LLMs on MMLU-Pro. Simple majority voting beat the strongest member in only 9.98% of canonical size-3 subsets. The ensemble usually lost to one of its own members. And the diversity proxy turned out to be nearly collinear with one minus mean accuracy, at Spearman rho = +0.991. That is the trap stated numerically: the metric was mostly measuring how weak the team was.

Inspect joint errors on operational slices, not global disagreement. The relevant question is whether a member contributes correct information when the rest of the ensemble fails. If its unique predictions are noisy, biased, or expensive to serve, diversity is not a benefit.

Useful diversity is conditional: the member must add correct signal on consequential cases.

Position

The 0.026 is arithmetic about independence, not a result about ensembles

The 0.026 is the most quotable number in this area, and the easiest one to carry away wrong. It is not a measurement of what an ensemble achieved. Dietterich's derivation, in 2000, reads: “Figure 1 shows this for a simulated ensemble of 21 hypotheses, each having an error rate of 0.3. The area under the curve for 11 or more hypotheses being simultaneously wrong is 0.026, which is much less than the error rate of the individual hypotheses.” The load-bearing word is simulated. The figure is a binomial tail — the chance that 11 or more of the 21 are wrong at once, given an error rate of 0.3 and errors made independently. Independence is exactly what models trained by one team, on one dataset, under one label policy tend not to have.

The requirement takes two words, not one. Dietterich, crediting Hansen & Salamon (1990), gives the necessary and sufficient condition for an ensemble to beat its members: the classifiers must be “accurate and diverse”. The same passage carries a boundary the number's admirers usually drop. If members' errors are uncorrelated but their error rates exceed 0.5, voting makes the ensemble worse, not better. Independence is not a safety property. It sharpens whatever the members already are, in whichever direction they lean. That is why accuracy is named first.

The count, meanwhile, is the cheap lever. Adding a model is a scheduling decision. Making the next model fail differently is a research problem, and only one of those can be promised in a sprint. The equations say what the cheap lever buys — 1/M on variance, nothing on covariance — and the measurements agree. Ovadia's size sweep reports “diminishing returns beyond size 5”, the main experiments run at M = 10, and the largest ensembles plotted are 8-16 members. Ashukha and colleagues, an independent group, reached the matching conclusion in 2020 with their deep ensemble equivalent score. The lever runs out early, and everyone who has measured it says so.

The harder half concerns what an ensemble licenses rather than what it scores. Ensembles were the best method in the Ovadia comparison, and their uncertainty still degraded with shift “regardless of method”. A deployed ensemble is therefore entitled to a claim about variance and not to a claim about safety. Members agreeing tells you that they agree. Under the shift that made somebody want an uncertainty estimate in the first place, that agreement is worth less — and the study reports this as true of every method it tested, its own winner included.

An ensemble earns a claim about variance; under shift it has not earned one about safety.

Key takeaways