Scaling Laws of Ensemble Uncertainty in Language Models
Organizations: McGill University and Mila
Abstract
Many use cases for large language models (LLMs)---from AI safety to exploration and human interaction---can benefit from epistemic uncertainty estimates. We argue that existing Bayesian Deep Learning solutions, which are often restricted to a fixed model family, fail to capture the full epistemic uncertainty at practical LLM scales. This is because the error due to the bounded capacity of the model family remains invisible to disagreement among models supported by the prior. We relate this error to the well-known power-law scaling of LLM loss with model size. We then show that a second power law quantifies the shrinking disagreement within ensembles as model size increases. Its slower decay relative to the capacity law above suggests that ensembles capture a growing share of epistemic uncertainty and become more competitive as an axis for scaling, compared to a single larger model. Finally, a third power law quantifies the loss of ensemble diversity as members share a larger fraction of training before branching, and therefore identifies a further limitation, beyond the capacity error, for LoRA ensembles and optimization-based or second-order methods that approximate uncertainty around a single training solution. At a high level, these findings suggest diverse ensembles can be a promising axis, both for scaling and uncertainty quantification at larger scales.
Figures & tables
Appendix figures & tables48 assets
Supplementary material from the paper’s appendix.
Appendix
| Map | Parameters | Fitting settings |
|---|---|---|
| Temperature | 1 | Bounded minimization, |
| Vector | 512 | L-BFGS, at most 150 iterations; initially |
| MLP | 131,584 | 256 hidden units; input |
| AdamW, 25 epochs, batch 8,192 | ||
| Learning rate , cosine decay; weight decay |
| (M) | Bytes/ | Ens. T | Ens. V | Ens. M | Member M | Gain / reducible loss |
|---|---|---|---|---|---|---|
| 0.79 | 35.4 | 0.154 | 5.452 | 9.047 | 8.677 | 0.671% |
| 0.79 | 70.7 | 0.465 | 5.253 | 8.409 | 8.232 | 0.652% |
| 0.79 | 141.4 | 0.251 | 5.370 | 8.401 | 8.029 | 0.677% |
| 0.79 | 282.8 | 0.280 | 4.197 | 7.038 | 7.174 | 0.588% |
| 2.65 | 35.4 | 0.466 | 3.358 | 4.656 | 4.335 | 0.425% |
| 2.65 | 70.7 | 0.288 | 2.466 | 3.700 | 3.468 | 0.365% |
| Model | Gain | % loss | Model | Gain | % loss |
|---|---|---|---|---|---|
| Pythia-14M | +0.226 | +0.0176 | DataDecide C4 7.0M | +0.040 | +0.0026 |
| Pythia-31M | +0.014 | +0.0012 | DataDecide C4 28.8M | +0.046 | +0.0041 |
| Pythia-70M | +0.107 | +0.0098 | DataDecide C4 76.4M | +0.001 | +0.0001 |
| Pythia-160M | +0.004 | +0.0004 | DataDecide C4 190.5M | +0.016 | +0.0018 |
| Pythia-410M | +0.099 | +0.0118 | DataDecide C4 371.5M | +0.040 | +0.0049 |
| Pythia-1B | +0.150 | +0.0187 | DataDecide C4 597.7M | +0.060 | +0.0076 |
| Model | (M) | Vector | MLP | ||
|---|---|---|---|---|---|
| Pythia | |||||
| 14M | 14.1 | -0.006 | -0.001 | +2.192 [+1.484, +2.896] | +1.975 [+1.652, +2.313] |
| 31M | 30.5 | +0.113 | +0.110 | +2.144 [+1.533, +2.748] | +1.564 [+1.307, +1.817] |
| 70M | 70.4 | -0.010 | -0.014 | +3.614 [+2.856, +4.312] | +1.828 [+1.569, +2.089] |
| 160M | 162.3 | +0.414 | +0.407 | +2.753 [+2.139, +3.361] | +1.689 [+1.404, +1.977] |
| 410M | 405.3 | +0.100 | +0.103 | +0.948 [+0.632, +1.254] | +0.647 [+0.484, +0.800] |
| (M) | Temperature | Original MLP | Validated MLP | Fold 0 | Fold 1 |
|---|---|---|---|---|---|
| 14.1 | -0.006 | +0.528 | +0.528 | ||
| 30.5 | +0.113 | -238.249 | +0.000 | Identity | Identity |
| 70.4 | -0.010 | -245.615 | +0.000 | Identity | Identity |
| 162.3 | +0.414 | +0.361 | +0.135 | Identity | |
| 405.3 | +0.100 | +0.203 | +0.000 | Identity | Identity |
| 1011.8 | +0.073 | -191.980 | +0.000 | Identity | Identity |
| Family | Models | Model sizes | ECE range |
|---|---|---|---|
| Pythia | 10 | 14M–12B | 0.436–1.642 |
| Qwen2.5 dense | 7 | 0.5B–72B | 0.566–1.329 |
| Qwen3 dense | 5 | 0.6B–14B | 0.626–0.912 |
| Qwen3 MoE | 1 | 30B-A3B | 0.743 |
| Comparison | Change | Paired 95% range |
|---|---|---|
| Qwen2.5-0.5B Qwen2.5-14B | -0.689 | [-0.911, -0.319] |
| Qwen2.5-0.5B Qwen2.5-72B | -0.764 | [-0.948, -0.396] |
| Qwen2.5-14B Qwen2.5-72B | -0.074 | [-0.294, +0.157] |
| Qwen3-0.6B Qwen3-14B | -0.247 | [-0.420, +0.107] |
| Family | (M) | |||||
|---|---|---|---|---|---|---|
| Pythia | 14.1 | 6 | 0.91467 | 0.87543 | 0.04708 | 8.10% |
| Pythia | 30.5 | 9 | 0.82338 | 0.78469 | 0.04352 | 8.89% |
| Pythia | 70.4 | 10 | 0.75479 | 0.71678 | 0.04224 | 10.03% |
| Pythia | 162.3 | 9 | 0.65751 | 0.62693 | 0.03440 | 10.62% |
| Pythia | 405.3 | 8 | 0.58780 | 0.56178 | 0.02974 | 11.70% |
| Pythia dedup v0 | 6857.3 | 2 | 0.49224 | 0.48028 | 0.02391 | 15.09% |
| Model family | Ensemble construction | Plotted size |
| Seed comparisons | ||
| Pythia, standard Pile | 6–10 retained seeds per size | 14.1–405M |
| Pythia, deduplicated v0 | Separate public seed-labelled pair | 6.86B |
| DataDecide-C4 | Three seeds per size | 6.96M–1.28B |
| DataDecide-Dolma | Three seeds per size | 191M–1.28B |
| Marin Delphi | Three seeds per size | 447M–9.7B |
| Family | Setting weights | Individual-model loss observations |
|---|---|---|
| Pythia | Equal across sizes | One released checkpoint per size (10 checkpoints) |
| DataDecide C4 | Equal across sizes | Default checkpoint at each size (7 checkpoints) |
| DataDecide Dolma | Equal across sizes | Default checkpoint at each size (4 checkpoints) |
| Dense Qwen2.5/3 | Equal across sizes | Each generation fitted separately (12 checkpoints in total) |
| Delphi | Log-size interval coverage | All 33 released checkpoints; three seeds at each size |
| Family | Sizes | (M) | SE | Log-RMSE | |
|---|---|---|---|---|---|
| Pythia | 5 | 14.1–405 | 0.138 | 0.020 | 0.041 |
| DataDecide C4 | 5 | 76.4–1280 | 0.162 | 0.016 | 0.027 |
| DataDecide Dolma | 4 | 190.5–1280 | 0.152 | 0.018 | 0.017 |
| Delphi | 11 | 447.2–9715 | 0.200 | 0.008 | 0.022 |
| Corpus | Selection | Sizes | Log-RMSE | Deletion range | |
|---|---|---|---|---|---|
| C4 | Pythia, available | 5 | 0.154 | 0.035 | |
| C4 | Pythia, filtered | 5 | 0.132 | 0.041 | |
| C4 | DD C4, all sizes | 7 | 0.127 | 0.048 | |
| C4 | DD C4, M | 5 | 0.162 | 0.018 | |
| C4 | DD Dolma | 4 | 0.155 | 0.020 | |
| Recent | Pythia, available | 5 | 0.169 | 0.027 |
| Width | Layers | (M) | Batch | Muon rate | Embedding rate | Head/norm rate |
| Spread and full-parameter branching experiments | ||||||
| 128 | 4 | 0.786 | 16 | 0.006087 | 0.066236 | 0.001775 |
| 192 | 6 | 2.654 | 32 | 0.006087 | 0.066236 | 0.001775 |
| 256 | 8 | 6.291 | 64 | 0.006087 | 0.066236 | 0.001775 |
| 384 | 12 | 21.234 | 128 | 0.006087 | 0.066236 | 0.001775 |
| 512 | 16 | 50.332 | 256 | 0.006087 | 0.066236 | 0.001775 |
| Quantity | ||
|---|---|---|
| Geometric spread | ||
| Invisible portion | ||
| Total reducible loss |
| Choice | (bits/byte) |
|---|---|
| Working value from joint extrapolation | 0.593341 |
| Best achieved reference: Kimi-K2-Base | 0.63764990 |
| DeepSeek-V4-Pro-Base | 0.68195265 |
| Model family / reference | Geometric | Arithmetic | BALD | |
|---|---|---|---|---|
| Public-model reference laws | ||||
| Pythia reference | 5 | |||
| DataDecide reference | 13 | |||
| Dense Qwen reference | 5 | |||
| Delphi reference | 11 | |||
| Matched family laws: seeds | ||||
| Family | Invisible | Visible | (%) |
|---|---|---|---|
| Pythia | |||
| DataDecide-C4 | |||
| DataDecide-Dolma | |||
| Dense Qwen2.5/3 | |||
| Delphi | |||
| Character |
| Model | C4 validation | Recent text |
|---|---|---|
| Qwen2.5-72B | 0.479487 | 0.395215 |
| DeepSeek-V3-Base | 0.430436 | 0.365561 |
| DeepSeek-V3.1-Base | 0.442147 | 0.373619 |
| GLM-4.5-Air-Base | 0.450985 | 0.384772 |
| GLM-4.5-Base | 0.417401 | 0.352689 |
| Kimi-K2-Base | — | 0.340229 |
| Family | (nats/byte) |
|---|---|
| Character | |
| Pythia | 0.18996 |
| DataDecide C4 | 0.20088 |
| DataDecide Dolma | 0.17154 |
| Dense Qwen2.5/Qwen3 pairs | 0.14397 |
| Delphi | 0.20384 |
| Cohort | Cells | A: fit | B: fit | A: held out | B: held out | |
|---|---|---|---|---|---|---|
| Character models: bits/byte, leave one of six widths out | ||||||
| Character, | 0.593341 | 78 | 0.0193 | 0.0198 | 0.0290 | 0.0294 |
| Character, | 0.637650 | 78 | 0.0200 | 0.0203 | 0.0303 | 0.0310 |
| Character, | free | 78 | 0.0191 | 0.0197 | 0.0304 | 0.0301 |
| Pythia: nats/byte, leave one of ten sizes out | ||||||
| Final, size only | 0.436514 | 10 | 0.0056 | 0.0061 | 0.0075 | 0.0085 |
| Students | Reference | Windows | Train/test contexts | |
|---|---|---|---|---|
| Character, 0.86–50.7M | 3 | BLT-7B | 256 | 4,096/4,096 |
| Pythia, 14–410M | 3 | MPT-30B | 96 | 1,536/1,280 |
| DataDecide C4, 6.96–597.7M | 3 | OLMo-7B | 96 | 1,536/1,280 |
| Qwen, 0.5/0.6–14/14B | 2 | Qwen2.5-72B | 96 | 1,536/1,280 |
| Delphi, 447M–9.7B | 3 | Delphi 25B | 96 | 1,536/1,280 |
| Setting | Value |
|---|---|
| Loss | Mean squared error |
| Adam learning rate | |
| Batch size | 64 |
| Training folds / validation folds | 3 / 1 |
| Patience / epoch cap | 100 / 100,000 |
| Initialization seed | 42 |
| Member (M) | Source | |||
|---|---|---|---|---|
| 0.858 | Measured | |||
| 6.461 | Measured | |||
| 21.441 | Measured | |||
| 50.678 | Interpolated | |||
| 170.303 | Measured |
| Curve | |||
|---|---|---|---|
| Public-model upper curves | 0.33372841 | — | — |
| Character increasing-data upper curves | 0.41127265 | — | — |
| Character fixed data, | 0.65696935 | — | — |
| Character fixed data, | 0.65553698 | — | — |
| Character fixed data, | 0.65496251 | — | — |
| Character singleton cost reference | 0.41127265 | 0.366901 | 0.092751 |
| Constraint | Ref. (M) | (B) | Cost ratio | Single | Gain | 95% interval |
|---|---|---|---|---|---|---|
| Fixed data | 758.6 | 29.4912 | 1.02097 | 0.565021 | +5.616 | |
| Matched cost | 597.7 | 36.7002 | 1.00108 | 0.559427 | +0.023 |
| Width | (M) | Independent | ||||
|---|---|---|---|---|---|---|
| 128 | 0.79 | 76.72 | 1.043 | 0.971 | 0.722 | 0.281 |
| 192 | 2.65 | 60.65 | 0.899 | 0.837 | 0.659 | 0.247 |
| 256 | 6.29 | 51.21 | 0.949 | 0.885 | 0.700 | 0.284 |
| 384 | 21.23 | 43.90 | 0.944 | 0.866 | 0.687 | 0.307 |
| 512 | 50.33 | 40.04 | 0.926 | 0.846 | 0.678 | 0.318 |
| 768 | 169.87 | 34.12 | 0.905 | 0.830 | 0.688 | 0.383 |
| Size-law population | SE | |
|---|---|---|
| Independent initialization and order | 0.134 | 0.008 |
| Initialization only | 0.127 | 0.005 |
| Branch at | 0.135 | 0.002 |
| Branch at | 0.140 | 0.001 |
| Branch at | 0.129 | 0.003 |
| Branch at | 0.039 | 0.010 |
| Pair | ||||
|---|---|---|---|---|
| Ordinary late branch ( ) | 1.542097 | 0.007462 | 1.534636 | 1.534759 |
| 1.543177 | 0.008937 | 1.534241 | 1.534463 | |
| 1.544696 | 0.011007 | 1.533689 | 1.534087 | |
| 1.554386 | 0.020424 | 1.533962 | 1.536031 | |
| Independent seeds | 1.542116 | 0.030323 | 1.511793 | 1.514174 |
| Width | Parameters (M) | Spread ratio | ||||
|---|---|---|---|---|---|---|
| 192 | 2.76 | 2.724 | ||||
| 256 | 6.46 | 2.550 | ||||
| 384 | 21.44 | 2.375 | ||||
| 512 | 50.68 | 2.297 |
| Width | Pool loss penalty | |||
|---|---|---|---|---|
| 192 | 0.108 | 0.100 | 0.090 | 15.30–36.47 |
| 256 | 0.118 | 0.119 | 0.112 | 18.22–43.76 |
| 384 | 0.105 | 0.115 | 0.123 | 14.31–33.92 |
| 512 | 0.100 | 0.119 | 0.135 | 10.48–28.13 |
| 768 | 0.102 | 0.144 | 0.179 | 12.34–31.02 |
LLM Uncertainty Estimation
Large language model uncertainty estimation measures when outputs may be wrong, ambiguous, or unreliable to guide safer decisions.
See all 419 papers