Skip to content

What is ensemble learning?

Combining the predictions of several models to obtain one more accurate than any single model on its own.

Ensemble learning is the family of techniques that combines the predictions of several models to obtain one more accurate than any of them produces individually. The statistical principle is the same as the wisdom of the crowd: if the individual models' errors are uncorrelated, averaging the predictions makes the errors tend to cancel while the shared signal remains. The three classic strategies differ in how they obtain that diversity. Bagging trains many models on different samples of the same data and averages the results, and its most widespread realization is the random forest, introduced by Leo Breiman in 2001. Boosting trains models in sequence, each one focused on the examples the previous ones got wrong. Stacking, finally, trains a further model that learns how to weight the others' predictions according to how reliable each of them has proved to be.

See also: OverfittingWhen a model learns the noise in its training data instead of the rule, and collapses on new data it has never seen.

Diversity is the thing you are buying

The point most often lost is that an ensemble gains nothing from the number of models, but from their decorrelation. Ten copies of the same model trained on the same data produce the same error ten times, and the average of the same error ten times is that error. All the design work therefore consists of manufacturing difference deliberately: different samples, different subsets of variables, algorithms of different kinds, different starting points. This also explains why the main benefit is on variance rather than bias: an ensemble corrects the instability of flexible models, reducing overfitting, but if every component errs in the same direction because of a defect in the data, the ensemble inherits that defect intact and with more apparent confidence.

An enterprise example

A company assessing its customers' credit risk finds that a single decision tree is readable but unstable, to the point that retraining it with a few more customers changes the rules. A random forest over hundreds of trees, each trained on a different sample and a different subset of variables, produces far more stable and accurate predictions. The price is the loss of direct explanation: there is no longer a rule to read, only the vote of hundreds of trees. In a context where the decision has to be justified to the customer or to a regulator, that price belongs on the balance sheet before choosing the ensemble, not after.

Why it matters for decision makers

For a decision maker the ensemble is the clearest case of a recurring trade-off in data projects: accuracy against explainability, with compute cost on the same side of the scale. On tabular data, which is the majority of real enterprise data, tree-based ensembles remain the most effective tool, often ahead of neural networks, which is useful to know when a vendor proposes far more expensive architectures for a problem that does not call for them. The question to ask is not how many models are inside, but where their diversity comes from: without a convincing answer you are paying for ten models and getting the accuracy of one. The same principle, and the same limit, apply when the components are not statistical models but generative systems: having several models vote, or using one as a judge of another, is an ensemble in every respect, and it pays off only to the extent that those systems do not share the same blind spots.

  • OverfittingWhen a model learns the noise in its training data instead of the rule, and collapses on new data it has never seen.
  • Wisdom of the crowdWisdom of the crowd combines individual estimates into a collective judgment that can be more accurate than individual answers but is never infallible.
  • Decision treesA decision tree is a model that learns a sequence of rules from data to assign a category or predict a numerical value for a case it has not seen before.
  • LLM-as-a-judgeLLM-as-a-judge uses a language model to assess generated answers against explicit criteria; its results should be checked against human judgments on the task.
  • Evals (model evaluation)Evals are systematic assessments that measure an AI system against defined cases and criteria, helping teams compare versions and understand its risks.

See it in the universe

If you need the AI in production, not in a demo, that is my job.

See AI integrations

Or write to me.