Why do ensembles work, when are they worth the cost, and where do they show up in LLM systems?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Ensembles work by averaging away uncorrelated errors, and the gain is driven by how decorrelated the members are, not how many there are. If you average M models with individual error variance σ² and mean pairwise correlation ρ, the ensemble's variance is roughly ρσ² + (1-ρ)σ²/M. Grow M and the second term vanishes, but the ρσ² floor stays. That single expression explains everything: ten seeds of the same architecture on the same data have high ρ and give you a modest win; genuinely different model classes give more.
Full worked answer
Ensembles work by averaging away uncorrelated errors, and the gain is driven by how decorrelated the members are, not how many there are. If you average M models with individual error variance σ² and mean pairwise correlation ρ, the ensemble's variance is roughly ρσ² + (1-ρ)σ²/M. Grow M and the second term vanishes, but the ρσ² floor stays. That single expression explains everything: ten seeds of the same architecture on the same data have high ρ and give you a modest win; genuinely different model classes give more.
The taxonomy follows from it. Bagging trains high-variance learners in parallel on bootstrap samples and averages, reducing variance. Random forest adds random feature subsets specifically to lower ρ, which is the entire trick. Boosting trains high-bias weak learners sequentially on residuals, reducing bias, but members are correlated by construction and it will overfit label noise. Stacking fits a meta-learner on out-of-fold predictions of diverse base models, and it must be out-of-fold or you leak. Plain probability averaging is a strong baseline, usually within a hair of stacking with none of the leakage risk.
Cheap variants: snapshot ensembles over a cyclic LR schedule, and MC dropout. Lower cost, correspondingly lower diversity. Weight averaging (SWA, model soups) is a different animal entirely - one model at inference, so no serving cost at all.
When it is not worth it: 10x inference cost for ~1 point is a bad trade in production. Ensembles are also harder to monitor, debug and calibrate; averaging well-calibrated models produces an under-confident result. The usual right move is to ensemble offline to find the achievable ceiling, then distil the ensemble into a single model.
LLM-era ensembling is alive and renamed. Self-consistency (sample k chains, majority vote) is bagging over stochastic decodes. Best-of-n with a verifier or reward model is a selection ensemble. Multi-model juries for evals reduce single-model idiosyncrasy. All of these are test-time compute, and the cost/quality curve is the classic ensembling tradeoff with tokens as the currency.
What a good answer covers
- Ensembles work by averaging away uncorrelated errors, and the gain is driven by how decorrelated the…
- If you average M models with individual error variance σ² and mean pairwise correlation ρ, the…
- Grow M and the second term vanishes, but the ρσ² floor stays
- That single expression explains everything
- Bagging trains high-variance learners in parallel on bootstrap samples and averages, reducing variance
Key terms: Bagging · Boosting · Stacking · Self-consistency · Multi-model juries
In the glossary: Dropout · Self-consistency · Decode · Best-of-N · Reward model · Test-time compute
Interviewer follow-ups to expect
Self-consistency with 8 samples helps on maths and barely moves open-ended generation. Why?
LLM-era ensembling is alive and renamed. Self-consistency (sample k chains, majority vote) is bagging over stochastic decodes. Best-of-n with a verifier or reward model is a selection ensemble. Multi-model juries for evals reduce single-model idiosyncrasy. All of these are test-time compute, and the cost/quality curve is the classic ensembling tradeoff with tokens as the currency.
You have a 5-model ensemble that beats your single model by 2 points. Walk me through distilling it and what you expect to lose.
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep