TL;DR
Deep ensembles capture both data noise (aleatoric uncertainty) and model lack of knowledge (epistemic uncertainty), yet standard post-hoc calibration methods treat them as a single, uniform quantity. JUCAL (Joint Uncertainty Calibration) is a lightweight post-processing algorithm that optimizes two scalar parameters to independently scale and balance aleatoric and epistemic uncertainty. In doing so, it consistently improves predictive likelihood and ranking metrics, allowing a calibrated 5-model ensemble to outperform a standard 50-model ensemble—slashing inference costs by up to 10×.
What Problem Does This Paper Address?
Modern deep neural networks often output overconfident class probabilities, especially on out-of-distribution (OOD) inputs. While Deep Ensembles (DEs) are widely considered the gold standard for uncertainty estimation—using softmax sharpness for aleatoric uncertainty and ensemble member disagreement for epistemic uncertainty—they remain poorly calibrated out of the box.
Standard post-hoc calibration fixes (like pool-then-calibrate temperature scaling or conformal prediction) apply a single scaling factor to the pooled distribution. However, aleatoric and epistemic uncertainty are rarely miscalibrated in the exact same way. If training regularization causes an ensemble to overestimate aleatoric noise while underestimating epistemic diversity, a single temperature parameter cannot fix both: reducing temperature makes OOD predictions recklessly overconfident, while increasing it makes in-distribution predictions underconfident.
Methods
JUCAL introduces a post-hoc calibration procedure requiring only the logits (or predicted probabilities) of an already trained ensemble on a validation dataset. It adjusts predictions via two distinct parameters:
- $c_1$ (Aleatoric Scaling): Applies temperature scaling directly to each ensemble member's individual logits ($f_m(x) / c_1$), controlling individual predictive sharpness.
- $c_2$ (Epistemic Scaling): Modulates the diversity (spread) among ensemble members around their ensemble-mean logit $\bar{f}(x)$ without shifting the mean itself.
The diversity-adjusted, calibrated logit for member $m$ is defined as: $$f_m^{\text{JUCAL}}(x) = \frac{1 - c_2}{c_1} \bar{f}(x) + \frac{c_2}{c_1} f_m(x)$$
The final prediction averages the softmax outputs of these adjusted logits. The parameters $(c_1, c_2)$ are found via a fast, coarse-to-fine 2D grid search that minimizes the Negative Log-Likelihood (NLL) on the validation set.
Crucially, the authors mathematically prove that JUCAL is invariant to the choice of the right-inverse of the softmax function. This means JUCAL can be applied off-the-shelf to black-box models that only produce probabilities (such as Random Forests or XGBoost) by simply setting $f(x) = \log(p(x))$.
Datasets
The authors evaluate JUCAL across multiple modalities:
- Text Classification: The FTC-metadataset (Arango et al., 2024), consisting of fine-tuned language models (GPT-2, BERT-Large, BART-Large, ALBERT-Large, T5-Large) evaluated on six benchmarks: IMDB, Tweet Sentiment Extraction, AG News, DBpedia, SST-2, and SetFit. Each benchmark is tested in both a 100% "Full" setting and a 10% "Mini" data regime.
- Image Classification: Ensembles of Convolutional Neural Networks (CNNs) evaluated on CIFAR-10, CIFAR-100, Fashion-MNIST, and MNIST (including hyperparameter ablations).
Key Insights and Ideas
- Selective OOD Expansion: In regions densely populated by training data, ensemble members strongly agree, so scaling disagreement via $c_2$ has almost no effect. In sparse or OOD regions where members already disagree, $c_2 > 1$ amplifies this disagreement, widening uncertainty where it is needed without sacrificing confident in-distribution predictions.
- True Disentanglement: Across datasets, the estimated epistemic uncertainty drops substantially as more training data is provided (moving from the 10% mini to the 100% full dataset), while aleatoric uncertainty remains largely unchanged—validating that JUCAL captures theoretically sound definitions of uncertainty.
- Fixing Relative Uncertainty Rankings: While standard pool-then-calibrate temperature scaling is a monotonic transformation that leaves ranking metrics unchanged, JUCAL reshapes the relative confidence landscape, improving instance-level uncertainty ranking ($AOROC = 1 - \text{AUROC}$ and $AORAC$).
Key Results
- Significant Metric Gains: Across text classification benchmarks, JUCAL reduces NLL by up to 15%, reduces conformal predictive set sizes by up to 20% at fixed coverage (e.g., 99% or 99.9%), and improves AOROC by up to 40%.
- 10× Inference Cost Reduction: A small ensemble of size 5 calibrated with JUCAL (
JUCAL Greedy-5) matched or outperformed an uncalibrated or temperature-scaled 50-model ensemble (Greedy-50) across test NLL and prediction set size. - Negligible Overhead: While fine-tuning ensemble models required thousands of GPU hours, calibrating $(c_1, c_2)$ with JUCAL required only a few CPU seconds to minutes (e.g., under 13 CPU minutes for 112,000 validation points without parallelization).
Limitations and Future Work
- Modality Scope: Experiments focused exclusively on multi-class text (fine-tuned LLMs) and image classification (CNNs). The authors highlight extending JUCAL to autoregressive LLM chatbots and time-series generation as open future work.
- Data Requirements: JUCAL relies on having access to a reasonably sized validation/calibration split. The authors suggest combining JUCAL with out-of-bag bootstrapping techniques to improve data efficiency on small datasets.
Summary updated