potentialpaper

Calibrating Scientific Foundation Models with Inference-Time Stochastic Attention

Akash Yadav, Taiwo Adebiyi, Ruda Zhang

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Robustly estimates uncertainty in Transformer-based foundation models via a lightweight, inference-time stochastic attention mechanism with efficient univariate calibration.

Abstract. Transformer-based scientific foundation models are increasingly deployed in high-stakes settings, but current architectures give deterministic outputs and provide limited support for calibrated predictive uncertainty. We propose Stochastic Attention, a lightweight sample-average inference-time modification that randomizes attention by replacing softmax weights with normalized multinomial samples controlled by a single concentration parameter, and produces predictive ensembles without retraining. To set this parameter, we introduce a calibration objective that matches the stochastic attention output with the target, yielding an efficient univariate post-hoc tuning problem. We evaluate this mechanism on scientific foundation models for weather and time-series forecasting, as well as a regression task. Across benchmarks against baseline methods, Stochastic Attention achieves the strongest native calibration and the sharpest prediction intervals at comparable calibration, with adaptation costs nearly three orders of magnitude lower than the next-best baseline. Code is available at https://github.com/UQUH/StochasticAttention.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Final meta-review post-discussion.: I have read the author responses to the reviewers and initial meta-review. They addressed all of the meta-review points, and all reviewers said that their points were resolved as well. Final ratings are 5/5/5.

The paper is a clean inference-time mechanism with a clear theoretical framing, principled calibration objective, and good evaluation. The reviewers and I agree this merits acceptance.


After reading the paper and reviews, I note that the reviewers are overall quite positive about the paper. As some strengths, the reinterpretation of softmax attention as an expectation is deemed novel + elegant, the calibration objective seems principled, and the 3 OOM cost advantage over weight-space methods looks compelling. The paper is on a path toward acceptance, and the reviewers converged on a few concerns that the authors should prioritize during the rebuttal period.

  • Value of native calibration: Since temperature scaling costs almost nothing, the authors should articulate, ideally including evidence, where native calibration retains a genuine advantage, or reframe the main claim accordingly. This is since their SA achieving the best calibration is a headline claim.
  • Statistical reporting (from reviewers wUZN, G8VH): Some of the claims rest on point estimates, and although 20 random splits are available no dispersion statistics are reported. The authors should ideally provide variance estimates, so the significance of the claimed advantages can be assessed.
  • OOD behavior (om reviewers Cki7, G8VH): The method talks about uncertainty through the attention distribution of a point model, which by construction cannot capture model uncertainty. The reviewers ask how calibration behaves under shift or OOD events. A limited experiment or characterization of scope would strengthen the paper.
  • Expressivity of an individual global ν\nu (from reviewers Cki7, wUZN): The method's parsimony relies on a single global concentration parameter, but the paper does not test whether this is adequate across heads, layers, and input regimes. Preliminary layer-/head-wise results or a clear argument for the global choice would strengthen the method.
Final justification

Accept (poster). All initial meta-review points were addressed, and reviewers were satisfied with the rebuttals with new experiments and resolved concerns, with final score 5/5/5.

Area Chair twJK · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Final meta-review post-discussion.: I have read the author responses to the reviewers and initial meta-review. They addressed all of the meta-review points, and all reviewers said that their points were resolved as well. Final ratings are 5/5/5.

The paper is a clean inference-time mechanism with a clear theoretical framing, principled calibration objective, and good evaluation. The reviewers and I agree this merits acceptance.


After reading the paper and reviews, I note that the reviewers are overall quite positive about the paper. As some strengths, the reinterpretation of softmax attention as an expectation is deemed novel + elegant, the calibration objective seems principled, and the 3 OOM cost advantage over weight-space methods looks compelling. The paper is on a path toward acceptance, and the reviewers converged on a few concerns that the authors should prioritize during the rebuttal period.

  • Value of native calibration: Since temperature scaling costs almost nothing, the authors should articulate, ideally including evidence, where native calibration retains a genuine advantage, or reframe the main claim accordingly. This is since their SA achieving the best calibration is a headline claim.
  • Statistical reporting (from reviewers wUZN, G8VH): Some of the claims rest on point estimates, and although 20 random splits are available no dispersion statistics are reported. The authors should ideally provide variance estimates, so the significance of the claimed advantages can be assessed.
  • OOD behavior (om reviewers Cki7, G8VH): The method talks about uncertainty through the attention distribution of a point model, which by construction cannot capture model uncertainty. The reviewers ask how calibration behaves under shift or OOD events. A limited experiment or characterization of scope would strengthen the paper.
  • Expressivity of an individual global ν\nu (from reviewers Cki7, wUZN): The method's parsimony relies on a single global concentration parameter, but the paper does not test whether this is adequate across heads, layers, and input regimes. Preliminary layer-/head-wise results or a clear argument for the global choice would strengthen the method.
Final justification

Accept (poster). All initial meta-review points were addressed, and reviewers were satisfied with the rebuttals with new experiments and resolved concerns, with final score 5/5/5.

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair for the meta-review and its clear prioritization. We address the four concerns in turn.

1. The value of native calibration:

As several Reviewers recognized, this work treats calibrated uncertainty as a multidimensional operating point involving accuracy, calibration, sharpness, and cost. Our claim is not that native calibration wins a single-metric race against post-hoc correction, but that SA reaches the best deployable trade-off across these four axes from one frozen model, for three reasons.

The usual cost comparison prices only the second step: a temperature is applied to an ensemble that must already exist, and producing that ensemble is where the expense lies, whether through SWAG trajectory collection or MultiSWAG's ten independent trainings. SA requires no such ensemble; it draws predictive samples at inference from the frozen backbone. A trained backbone is standard practice, not an SA-specific requirement; the baselines' uncertainty mechanisms must still be trained or collected for each deployment, whereas SA's does not.

That expense can bring the baselines to a target calibration level, but it does not guarantee informativeness. A fitted temperature adjusts the global magnitude of a spread that the ensemble has already produced; it does not make the intervals more informative. At their validation-scaled operating points, the baselines' intervals remain 1.2-3.6 times as wide as native SA's, significantly so in 34 of 40 UCI comparisons. Structurally, temperature scaling is a rank-preserving rescaling about the ensemble mean, μ + T(P - μ): it preserves the ensemble's input-wise spread pattern and rescales it globally. SA instead generates that input-conditioned structure through attention routing before calibrating its overall scale.

We also state clearly that ν and temperature are both scalars fitted on labeled data, so SA is not label-free, and that several baselines match SA's calibration level after scaling. The limitations will say so, and the revision will present temperature scaling as a first-class comparison with a regime of its own: an inexpensive route to a target calibration level wherever the deployment can afford the resulting width. The two regimes separate most clearly under distribution shift, addressed in the third concern below.

2. Statistical reporting:

Every metric now includes dispersion and significance. Using the corrected resampled t-test of Nadeau and Bengio (2003), requiring agreement with the exact Wilcoxon signed-rank test, and applying Holm's correction within each dataset, all at the 0.05 level, SA is significantly better calibrated in 21 of 40 UCI comparisons and statistically indistinguishable in 18, with one disclosed exception on Protein. Its intervals are significantly narrower in 34 of 40 comparisons after each baseline is scaled. To provide an exact coverage reference, we expanded every ensemble from S = 19 to S = 99 by pooling fresh draws; nothing was retrained, and every conclusion holds at either size. The tables appear in our response to Reviewer wUZN.

3. Out-of-distribution behavior:

We agree that the mechanism carries no weight-space uncertainty. We will add a sources-of-uncertainty paragraph stating what SA does represent: token-level attention-routing dispersion calibrated to residual scale. The supporting argument appears in our response to Reviewer G8VH. We also tested out-of-distribution behavior directly. Under a realistic ClimaX shift, with one season excluded from calibration, SA's calibration transfers and it remains sharpest at matched calibration. For UCI, we conducted two studies under a standard out-of-distribution lens: a convex-hull analysis showing that a random split is largely interpolation, and a held-out-region study across 183 conditions that creates genuine extrapolation. In the latter, no single-model method's native calibration survives, including ours; robustness with sharpness is obtained only through independently trained ensembles, at their additional cost, with which SA composes. Protocols and findings appear in our response to Reviewer Cki7.

4. Expressivity of a single global ν:

We ran the requested ablation using a differentiable convex-interpolation relaxation of SA, fitting ν by Adam on the same dispersion objective at three ClimaX scopes: global (1 parameter), per-layer (8), and per-head (128). The corresponding W₁ values are 0.0430, 0.0428, and 0.0424: freeing the scale improves W₁ by at most 0.0006, while requiring 18-44 GPU-minutes rather than 1-3 minutes for a single scalar. Structurally, ν controls only the perturbation scale; its input-conditional shape is inherited from the trained attention weights, so per-input adaptivity is already present without an additional tuned parameter. The construction appears in our response to Reviewer Cki7, and the theory in our response to Reviewer G8VH.

Reviewer wUZNOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Stochastic Attention (SA), an inference-time mechanism that replaces deterministic softmax attention weights with normalized multinomial samples controlled by a single concentration parameter ν\nu. The authors frame calibrated uncertainty as a multi-dimensional operating point involving accuracy, calibration, sharpness, and cost, and argue that existing uncertainty quantification methods for large scientific models are either too expensive (deep ensembles, weight-space methods) or insufficiently calibrated. SA enables predictive ensemble generation without retraining. A calibration objective selects ν by matching attention-induced stochastic deviation to held-out residual scale, yielding a univariate post-hoc tuning problem. The method is evaluated on TimesFM (ETT time-series benchmarks), ClimaX (global weather forecasting), and FT-Transformer (eight UCI regression tasks).

Strengths and weaknesses

Strengths

  • Mean-Preserving Design with Theoretical Rigor: The interpretation of deterministic attention as an expectation over a categorical distribution, and its replacement with normalized multinomial averaging, is elegant. Propositions 3.2 and 3.3 cleanly characterize expectation preservation and 1/ν1/\sqrt\nu convergence, lending mathematical credibility to the mechanism.
  • Principled Calibration Objective: The dispersion-matching loss (Eq. 9) with its squared-bias/variance decomposition (Eq. 10) is well-motivated and avoids heuristic noise-scale tuning.
  • Strong Cost-Performance Narrative: The computational comparison: SA calibration in 1–3 minutes on a frozen backbone versus ~29 hours (SWAG) or ~12 days (MultiSWAG). This is the paper's most practically compelling result for large scientific models.
  • Cross-Domain Breadth: Evaluation across weather forecasting, time-series forecasting, and tabular regression shows the mechanism is not tied to a single architecture or task.

Weaknesses

  • Large Native Calibration Gap: On TimesFM/ETTh1 (Figure 2), SA achieves 61.5% empirical coverage versus a 95% target. While the paper notes this is "closer to target than any baseline," all baselines miss by 57–79 percentage points, making this a low comparative bar that could mask a substantial miscalibration.
  • Advantage Erodes After Standard Correction: Figure 3b shows that after temperature scaling, baselines reach Wasserstein-1 distances of 0.04–0.06, essentially matching SA's native W1=0.056. The claims of the paper regarding superior native calibration are therefore only an advantage if users forgo standard post-hoc calibration methods—an unlikely deployment assumption.
  • Missing Statistical Validation: Main results are reported as point estimates without standard deviations, confidence intervals, or variance across random seeds. Table 2 cites 20 random splits, but reports aggregated values without dispersion statistics, preventing assessment of significance or reproducibility.
  • Incomplete Baseline Coverage: The comparison omits deep ensembles, conformal prediction, and modern variational baselines such as SWAG-SGLD. Temperature scaling appears only as a post-hoc correction to baselines rather than as an integrated first-class comparison.

Four-Dimensional Rating (1–4)

This section provides a four-dimensional rating of the paper's work, based on quality, clarity, significance, and originality with a score from 1 to 4 (1 = Poor, 4 = Excellent)

  • Quality: 3 / 4 (Theoretical construction is clean and well-structured, but empirical claims are weakened by large calibration gaps, and baseline selection that does not frame temperature scaling as a primary competitor.)
  • Clarity: 4 / 4 (The four-axis operating-point framework is introduced with exceptional clarity. Propositions and algorithms are presented with sufficient detail for reproducibility. The distinction between calibration and sharpness is maintained consistently throughout.)
  • Significance: 3 / 4 (The inference-time calibration paradigm addresses a genuine bottleneck for scientific foundation models. However, the empirical evidence does not yet fully support the conclusion that SA delivers calibrated uncertainty at a level suitable for high-stakes scientific decision-making.)
  • Originality: 4 / 4 (Reinterpreting softmax attention as an expectation over a categorical distribution and replacing it with multinomial sampling is a creative and natural contribution. The calibration-first selection of ν via dispersion matching is novel.)
Questions
  1. Statistical Reporting on Main Benchmarks: The UCI evaluation uses 20 random splits but Tables 1 and 2 report only point estimates. Can you provide mean and standard deviation of coverage, sharpness, and proper scoring rules across these splits (and across multiple random seeds for ClimaX/TimesFM)?

    • Score Impact: If variance is low and improvements over baselines are statistically significant (p<0.05p < 0.05), the Quality and Significance ratings would increase to 4/4 and the overall score would rise to 6.
  2. Interpretation of the TimesFM Coverage Gap: Figure 2 shows SA at 61.5% coverage versus a 95% target on ETTh1. What is the authors' assessment of whether this level of miscalibration is acceptable for scientific deployment, and what further steps (e.g., calibration layers, conformal methods) would be needed to close this gap?

    • Score Impact: If the authors provide evidence that the gap can be closed with minimal additional cost or propose a concrete extension, this would raise the Significance rating.
  3. Why Does Temperature Scaling Eliminate the Native Advantage?: Figure 3b shows that baselines post-hoc temperature-scaled reach W1=0.04–0.06, essentially identical to SA's native W1=0.056. Given that temperature scaling adds negligible cost, what is the practical value of native calibration compared to simply post-scaling baseline methods in deployment?

    • Score Impact: A clear argument demonstrating scenarios where native calibration outperforms post-hoc scaling—or evidence that SA retains advantages under distribution shift—would strengthen the Quality assessment.
  4. Deployment Latency of Multiple Passes: SA requires M stochastic forward passes to estimate the predictive distribution. How does this affect wall-clock inference latency compared to a single deterministic pass, and how was M chosen for the main experiments?

    • Score Impact: If M is small (e.g., 10–20) and latency remains competitive, this validates the cost claims. If M is large, the cost advantages in Figure 4 may overstate deployment feasibility.
  5. Head-Wise ν Sensitivity: Section 8 acknowledges the limitation of a single global ν\nu. Have the authors explored head-wise or layer-wise concentration parameters, and if so, how does calibration quality change with increased expressivity?

    • Score Impact: Preliminary results showing that richer ν parameterizations improve calibration without prohibitive optimization cost would increase both Quality and Significance.
Limitations

The authors acknowledge two primary limitations: the global nature of ν\nu across heads and layers, and the current restriction to continuous regression-style residuals (with classification mentioned as future work).

These acknowledgments are appropriate but insufficiently discussed relative to their impact. The global ν\nu limitation is noted in the conclusion but not explored experimentally. The fact that temperature scaling erases the native calibration advantage (Fig. 3b) is documented in Section 6.2 but not discussed as a limitation of the main claim. The authors should more clearly delineate the regimes where inference-time stochastic attention provides genuine benefits over inexpensive post-hoc alternatives, and where it does not. The current framing treats all baselines as either too expensive or poorly calibrated.

Formatting concerns

None that I could report.

3 comments
Authors · CommentOpenReview ↗

(For this Reviewer alone, we use two official comments because the requested statistical evidence requires several tables; together, they remain within the 10,000-character rebuttal allowance.)

We thank the Reviewer for a constructive review and, above all, for stating exactly what evidence would move the assessment.

Q1 and W3, statistical reporting:

Every metric now includes dispersion and significance under one testing protocol, stated once here. The twenty splits per dataset from Gal and Ghahramani (2016), and the five Protein splits under the same upstream protocol, share about 90% of their training data, so a naive paired test overstates significance. We therefore use the corrected resampled t-test of Nadeau and Bengio (2003), require agreement with the exact Wilcoxon signed-rank test, and control each dataset's family of five comparisons with Holm's correction, all at the Reviewer's stated 0.05 level. To provide an exact coverage reference, we expanded every ensemble from S = 19 to S = 99: the 5th and 95th order statistics from 99 samples have expected coverage exactly 0.90. Nothing was retrained, and every conclusion also holds at S = 19.

For native calibration, SA attains the lowest pooled W₁ on six of eight datasets; on Naval, it is statistically tied with MC Dropout. Across the forty comparisons, SA is significantly better calibrated in 21 and statistically indistinguishable in 18. The single exception is Protein, where MC Dropout is significantly better on one of the datasets with the largest backbone errors.

For coverage, SA is closest to the reference on six of eight datasets, ties MC Dropout on Protein, and lies within 0.03 of the best result on Naval. Across splits, the standard deviations do not exceed 0.11, so the reported differences are not driven by split-to-split variance.

Sharpness is evaluated only after each baseline receives its own temperature. At those operating points, the baselines' intervals remain 1.2-3.6 times as wide as native SA's, significantly so in 34 of 40 comparisons. The one reversal is Naval, where HSA's lower point error yields tighter scaled intervals (Section 6.3).

For the proper scoring rules named in the question, the CRPS results are mixed: SA is better in 14 of 40 comparisons and behind in 10. We attribute this to the calibration-first objective rather than the mechanism itself. The operating-point analysis shows that sweeping ν to optimize the proper score makes SA the best of the six methods in their native form on both CRPS and Energy Score for ClimaX (Section 7).

For ClimaX, we conducted twenty runs, each re-fine-tuning the backbone from the pretrained checkpoint with a distinct seed and a resampled calibration year, while holding the test years fixed. When calibrated on the trained target and lead time, Z500 at 72 hours, as described to Reviewer Cki7, SA achieves native W₁ = 0.0470 ± 0.0034, deterministic ACC = 0.9683 ± 0.0006, and sample-mean ACC = 0.9570 ± 0.0035. Thus, SA's behavior is stable under complete retraining. The same paired protocol is running for all five baselines; those statistics, together with the TimesFM analogue, will appear in the revised version.

Q3 and W2, the practical value of native calibration:

Our comment to the Area Chair addresses this meta-review concern in full. In brief, the claim is the four-axis operating point obtained from one frozen model without a second output-space recalibration stage. Under shift, the baselines are severely miscalibrated without their correction, whereas SA requires no additional output-space correction after fitting ν. We also report where SA struggles: beyond the training support, no single-model method's native calibration survives, and MultiSWAG's multi-model nature dominates, at roughly 12 GPU-days versus minutes for SA. The full study appears in our response to Reviewer Cki7.

Q5, head-wise and layer-wise ν:

We ran the requested ablation using a differentiable convex-interpolation relaxation of SA, fitted by Adam on the same objective at global, per-layer, and per-head scope on ClimaX. Freeing the scale changes W₁ by at most 0.0006 and requires 18-44 GPU-minutes rather than 1-3 minutes for one scalar. Head heterogeneity is real, with ν spanning 5-14, but a single global ν is empirically adequate and preserves SA's motivating efficiency. The values and construction appear in our responses to Reviewers Cki7 and G8VH.

Limitations:

The revised version addresses the global-ν limitation experimentally, explains the regression-only scope, and states the four-axis delineation explicitly.

Authors · CommentOpenReview ↗

(Part 2 of 2: the tables supporting the response above and the three remaining questions.)

All UCI values use S = 99. In the tables, † marks SA significantly better under both tests after Holm correction, = denotes statistical indistinguishability, ▽ a better baseline, and ‡ Protein's five upstream splits (Gal and Ghahramani, 2016), for which the revision states the small-sample rule. The first table reports pooled W₁ with 95% cluster-bootstrap intervals for SA; baseline intervals were also computed and will appear in the revision.

Dataset SA [95% CI] MC Drop SWAG MSWAG HSA IVON
Concrete 0.045 [0.037,0.056] † † † † †
Energy 0.020 [0.013,0.036] = = = = †
Kin8nm 0.063 [0.057,0.069] † † † † †
Naval 0.009 [0.007,0.026] = † = † †
Power 0.087 [0.083,0.092] † † † † †
Protein 0.160 [0.149,0.170] ▽‡ = = = †‡
Wine 0.188 [0.179,0.195] = = = = †
Yacht 0.020 [0.012,0.053] = = = = =

Coverage of the 90% interval against its exact 0.90 reference, mean ± standard deviation over splits (bold = closest):

Dataset SA MC Drop SWAG MSWAG HSA IVON
Concrete 0.79±0.05 0.66±0.05 0.47±0.06 0.56±0.05 0.66±0.05 0.13±0.03
Energy 0.88±0.05 0.96±0.03 0.70±0.05 0.80±0.05 0.81±0.05 0.41±0.07
Kin8nm 0.76±0.02 0.59±0.02 0.61±0.03 0.69±0.02 0.68±0.02 0.23±0.03
Naval 0.87±0.04 0.90±0.04 0.79±0.05 0.85±0.02 0.78±0.09 0.30±0.06
Power 0.67±0.04 0.38±0.05 0.31±0.02 0.35±0.02 0.24±0.02 0.15±0.04
Protein 0.52±0.05 0.52±0.02 0.43±0.02 0.47±0.01 0.41±0.01 0.11±0.01
Wine 0.36±0.06 0.24±0.05 0.26±0.05 0.34±0.03 0.21±0.03 0.03±0.02
Yacht 0.89±0.07 0.93±0.05 0.96±0.04 0.98±0.02 0.97±0.04 0.63±0.11

Interval width after validation-fitted temperature scaling: each cell is the scaled baseline's PI-95 width divided by native SA's, mean ± standard deviation.

Dataset MC Drop SWAG MSWAG HSA IVON
Concrete 1.30±0.07† 1.34±0.14† 1.24±0.11† 1.77±0.20† 1.36±0.16†
Energy 1.23±0.15† 1.26±0.23† 1.09±0.16 2.72±0.59† 1.12±0.22
Kin8nm 1.27±0.05† 1.41±0.12† 1.32±0.05† 1.49±0.07† 1.47±0.08†
Naval 1.21±0.12† 3.58±0.93† 3.04±0.39† 0.42±0.24▽ 2.05±0.34†
Power 1.60±0.11† 1.84±0.07† 1.79±0.07† 1.89±0.08† 1.75±0.11†
Protein 1.75±0.05†‡ 1.97±0.09†‡ 1.85±0.05†‡ 1.89±0.06†‡ 2.33±0.09†‡
Wine 2.61±0.14† 2.94±0.24† 2.78±0.28† 2.71±0.18† 2.60±0.20†
Yacht 1.12±0.18 1.53±0.46 1.41±0.43 1.71±0.63† 1.43±0.39†

W1 and Q2, the TimesFM coverage gap:

Coverage of 61.5% against a 95% target is a real gap, but not one specific to SA: every method inherits the point model's difficulty in the paper's hardest low-data regime, with the baselines reaching only 15.6%-38.5%. We therefore applied split conformal on ETTh1 at horizon 96, fitting one residual quantile per series on model-unseen calibration windows. It closes the gap for every method: realized coverage reaches 0.95-0.98, with no retraining. At that guaranteed level, SA is narrowest when the quantile is pooled across series and statistically tied with IVON under per-series strata. It also achieves the best interval score, which penalizes both width and misses, in every configuration. Under a plain residual score, IVON is narrower, which we report as observed.

Q4, latency and the choice of M:

M is fixed at 19 predictive samples for every method, within the Reviewer's stated range of 10-20, so no method benefits from a larger sampling budget. Reanalyzing the stored draws at every budget from 2 to 19 leaves the most frequently best-calibrated method unchanged. At the selected setting, one SA pass adds about 11% overhead relative to the 0.424 s deterministic ClimaX pass (Appendix D). Sequential latency scales with M; the passes are independent and batchable.

W4, baseline coverage:

MultiSWAG, built from ten independently trained models, is the suite's deep-ensemble-style representative, introduced by Wilson and Izmailov (2020) through the Bayesian-marginalization view of deep ensembles. It costs about 12 GPU-days versus minutes for SA. We also ran split conformal on all eight UCI datasets. It reaches nominal coverage throughout, with intervals 1.3-3.3 times as wide as SA's native intervals; on the same interval score, conformal is better on seven of eight datasets. This width-for-coverage trade-off motivates composition rather than substitution. We did not run SWAG-SGLD. It collects a weight trajectory through the same broad mechanism as SWAG, whose ClimaX run takes about 28.5 hours, so it lies on the same side of the cost axis; we will cite the omission explicitly.

We hope our response address the Reviewer's concerns, and once we again appreciate the detailed feedback given to strengthen our work.

Authors · CommentOpenReview ↗

Follow up to Reviewer wUZN: statistical validation for SWAG and MultiSWAG

Our earlier response reported the completed ClimaX study comprising twenty runs for SA. Using the same protocol, SWAG is now complete, and we have also completed a component bootstrap analysis for MultiSWAG. SA and SWAG use the same splits and seeds, making every comparison between them paired across runs.

SWAG (20/20 runs).

Each run retrains SWAG from the pretrained checkpoint using that run’s resampled calibration split and distinct seed. Across the twenty runs, SWAG attains native W1=0.2189±0.0006W_1 = 0.2189 \pm 0.0006. After temperature scaling on each run’s calibration year, it attains scaled W1=0.0553±0.0067W_1 = 0.0553 \pm 0.0067, interval width 1273±661273 \pm 66, and sample mean ACC =0.9691±0.0001= 0.9691 \pm 0.0001, with T=29.25±1.22T = 29.25 \pm 1.22.

Within this paired design, the mean difference in W1W_1 is −0.0083-0.0083 in SA’s favor, with a standard deviation of 0.00870.0087 across runs (paired tt test p=4×10−4p = 4 \times 10^{-4}; Wilcoxon p=5×10−5p = 5 \times 10^{-5}); SA is lower in 17 of 20 runs. Its intervals are also 37% narrower in every run, 804±46804 \pm 46 versus 1273±661273 \pm 66 (p=8×10−17p = 8 \times 10^{-17}), without a subsequent output space correction or trajectory collection for each run.

MultiSWAG (bootstrap over 20 trained components).

A MultiSWAG run requires ten independently trained SWAG components. We therefore complement its completed runs with a component bootstrap.

These ensembles attain native W1=0.2186±0.0014W_1 = 0.2186 \pm 0.0014, scaled W1=0.0478±0.0037W_1 = 0.0478 \pm 0.0037 with T=24.6±1.5T = 24.6 \pm 1.5, interval width 1200±421200 \pm 42, and sample mean ACC =0.9688±0.0001= 0.9688 \pm 0.0001. The submitted paper’s actual mixture falls within one standard deviation of every bootstrap statistic, providing a direct check that the component resampling construction remains consistent with the reported MultiSWAG result.

Viewed together, these results place MultiSWAG after temperature scaling and native SA at essentially the same calibration level, 0.0478±0.00370.0478 \pm 0.0037 and 0.0470±0.00340.0470 \pm 0.0034, respectively. The distinction lies in how that level is reached. MultiSWAG uses ten independent trainings and a subsequent output space correction for each run, whereas SA uses one frozen backbone. At the same time, SA’s intervals are 33% narrower, 804±46804 \pm 46 versus 1200±421200 \pm 42. This comparison should be read alongside the scope of the bootstrap: it captures variability due to component selection at a fixed split, rather than variability across splits. The fully independent runs will address the latter in the revised paper.

Compute scale of the study.

Each additional run in this statistical validation campaign begins with full retraining and requires approximately 2 days on 2 GPUs, or about 4 GPU days per run, and 76 GPU days for the 19 additional runs of a method. MultiSWAG requires 9 new components per run; across 8 runs, 72 component trainings add approximately 288 GPU-days. Under the current accounting, the study across all six methods totals approximately 5×76+288=6685 \times 76 + 288 = 668 GPU days and is being executed on a rolling basis on a shared university cluster. This total reflects the cost of the validation campaign rather than the cost of SA’s uncertainty mechanism; SA’s own calibration remains a 1 to 3 minute procedure on a frozen backbone.

Status.

SA and SWAG are complete at 20/20 runs, and MultiSWAG has been evaluated through the component bootstrap described above. IVON, Contextual Dropout, and HSA are being evaluated under the same paired protocol, together with fully independent MultiSWAG runs using resampled splits. Across the completed analyses, variation within each method remains small relative to the differences between methods: the coefficient of variation of native W1W_1 is 7% for SA and 0.3% for SWAG, while ACC dispersion is at most 0.4%. The remaining results will be reported in the revised version.

Reviewer G8VHOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The manuscript introduces a novel uncertainty quantification method for softmax attention transformers targeting regression by multinomial sampling from the softmax distribution throughout the model. The number of draws from the softmax distribution is the single hyperparameter for post-hoc fitting the distribution using a held-out calibration set. Evaluation on timeseries forecasting, weather prediction and UCI datasets show promising results.

Strengths and weaknesses

The paper is well written, the methods are for the most part sufficiently described (see below for some questions) and the evaluation on three separate data domains support the usefulness of the proposed uncertainty quantification method.

The method consists of two parts: the core sampling algorithm, and the efficient inference of the one hyperparameter for post-hoc calibration. The sampling part of the method is clearly derived in terms of the empirical averaging over the multinomial samplings of the softmax distributions in each attention layer. To interpret the softmax distribution in this way is to the best of my knowledge novel. The theoretical motivation for why this particular way of inducing a predictive distribution from a deterministic method should result in useful results are lacking, but the empirical evaluation seems to suggest that this discrete one parameter family has good expresivity in terms of matching observed uncertainty in varied example data domains.

The second part of efficiently choosing the discrete hyperparameter \nu (number of multinomial samplings) is elaborate, seems sound, but the need for such particular parameter estimation is unclear. Given the discrete and small number of possible values for \nu, it would be useful for the reader to see a comparison of the BO inference result compared to a dense search over the possible discrete values. If such evaluation is not possible for whatever reason, then that would serve as a good motivation for a more elaborate method.

Since the uncertainty is proxied through the attention softmax distributions of a point model that by definition can not contain the model uncertainty, I would assume that calibration for out of domain samples is worse. In evaluation, other baselines include MultiSWAG and IVON that both use multiple particles to estimate uncertainty including model uncertainty. How does the proposed method deal with out of domain data?

Minor typos: Line 438, double "In the main text ν. In the main text".

Questions
  1. When the value propagation throughout the model is changed by the multinomial sampling at test time, why are the activations still in-domain for the model? Wouldn't you expect that this introduces a bias away from the training distribution seen layerwise throughout the model?
  2. Why are no classification results included if they are an easy extension and "Neither extension changes the central claim"?
  3. Compute costs in figure 4 include the training budget. It is indicated that the same sample budget is used for the different methods, but it is unclear if this is in terms of FLOPS, particles for MC (my guess), or some other measure. It would be helpful to have a clear comparison of the inference time compute for the main results. In what way are the test time sampling costs comparable between the models during evaluation?
  4. For the time series evaluation, it is hard to understand which part of the data is used for D_cal from just reading the bulk manuscript. If i understand the supplemental correctly, the first 10% of the training data is used for the post training calibration of \nu.
  5. Table 1: Why are MultiSWAG/SWAG/dropout so much better in anomaly correlation coefficient compared to SA if SA is maintaining the deterministic mean? I assume the ACC is calculated on the mean prediction?
Limitations

My only concern is the lack of discussion on sources of uncertainty, and what parts the proposed method aims to represent.

Final justification

The comprehensive rebuttal and following discussion has resolved all my questions and I have increased my confidence to reflect this.

Formatting concerns

.

3 comments
Authors · CommentOpenReview ↗

We thank the Reviewer for the positive assessment and for questions that go directly to the mechanism.

W, sources of uncertainty and out-of-domain data:

The Reviewer's premise is correct: SA's dispersion comes from a point model and carries no weight-space epistemic uncertainty. We will add a sources-of-uncertainty paragraph stating that SA represents token-level attention-routing dispersion calibrated to residual scale and composes with, rather than replaces, weight-space methods. Full protocols and results appear in our response to Reviewer Cki7. In summary: When calibrated on September-May only, SA's ν remains 4 and its off-season calibration is as good as in distribution: W₁ improves from 0.057 to 0.046 and reaches 0.039 on summer extremes. MultiSWAG and IVON require temperature scaling to be usable there and remain wider. Beyond the training support, across 183 held-out-region UCI conditions, no single-model method's native calibration survives, including ours; the ten-model MultiSWAG degrades least, at roughly 12 GPU-days. Model uncertainty is real, and ensembles carry it; SA composes with them.

W, theoretical motivation for the induced family:

Attention weights define probabilities over tokens, and their weighted sum is the expected attention outcome. Sampling one token makes the outcome random; sampling and averaging several tokens preserves randomness while its variance decreases with sample count. This is the family we propose: frequentist rather than Bayesian, with no distribution over parameters. Its dispersion shape is inherited rather than designed. For each attention row, the sampling covariance is (1/ν) V^T(diag(p) - pp^T)V (Proposition 3.3), so dispersion is injected where the model hedges between competing tokens and vanishes where routing is confident. The scalar ν controls only the overall scale of this inherited shape, which residual matching calibrates; this is why the family differs structurally from a global temperature. We will add this explanation to Section 3.

Q1, why the activations remain usable:

Mean preservation (Proposition 3.2) is conditional and applies per attention row, so the end-to-end mean is not exactly preserved through nonlinearities. Two points make the residual drift benign. First, the perturbation is controlled: its covariance decays as 1/ν, so at the calibrated setting the sample mean trades some accuracy for calibration by design (ACC 0.90 versus 0.964), and the deterministic limit returns as ν increases. Second, the drift is not an unmodeled bias, because ν is calibrated on the stochastic model's own residuals: we calibrate the model actually deployed, while the deterministic backbone prediction remains available at zero additional cost.

Q5, the ACC in Table 1:

The Reviewer is correct that ACC is computed on the mean prediction. The SA row reports the finite-M sample mean at M = 19, which carries Monte Carlo noise that the near-deterministic SWAG ensembles largely avoid. A method's position on the calibration-accuracy curve is determined by the objective, not by the SA mechanism: Section 7 shows that sweeping ν toward the proper-score optimum recovers sample-mean accuracy to the ensemble baselines' level. Across twenty complete re-fine-tuning runs using the Z500-targeted objective, deterministic and sample-mean ACC are 0.9683 ± 0.0006 and 0.9570 ± 0.0035; we will report both.

W, bayesian optimization versus dense search:

We agree that enumeration is feasible in this 1-D range; we use Bayesian optimization for efficiency under noisy evaluations. Appendix D.3 shows that it selects ν in {3.91-3.95} across five seeds, all rounding to 4, and {3.70-3.75} under another search range. As an independent check, the convex-interpolation relaxation described to Reviewer Cki7 makes the objective smooth, and Adam converges to 9.0 while Bayesian optimization selects 8.93 under the more targeted setting. Thus, two very different optimizers agree to within rounding, both selecting ν = 9.

Q3, Q4, compute, M, and calibration data:

All methods use the same 19-particle budget. The inference-time comparison and the separation of Figure 4's costs appear in our response to Reviewer wUZN, Q4. The Reviewer read the supplement correctly: TimesFM uses the first 10% of the training portion (Appendix C.1); ClimaX uses the validation year. Two calibration settings appear across our responses and will be stated explicitly in the revision: the seasonal study uses the submitted aggregate target (ν = 4), whereas the optimizer check uses the more targeted Z500-at-72h objective (ν approximately 9).

Q2, classification:

The scope is deliberate: our objective matches dispersion to residual scale, a regression quantity, while the attention-sampling mechanism is task-agnostic. Extending SA to classification therefore requires a calibration objective for class probabilities, not a change to the sampling mechanism. The typo at line 438 is fixed; thank you.

Reviewer G8VH · CommentOpenReview ↗

Thank you for the comprehensive rebuttal that addresses my questions and concerns.

W, theory: This paragraph is elucidating and helps the reader with an intuitive picture of how the dispersion is injected selectively, and how it therefore is very different from e.g. a global temperature rescaling. Q1+Q5: Thank you for pointing towards the results that the deterministic mean is recovered in the \nu -> inf limit, and that this also empirically holds (S7). Dense search: The additional interpolated relaxed results provide a further nice check, and further strengthens the proposed global \nu by showing diminishing returns with granular \nu throughout the model. Sources of UQ: For future work it would be interesting to evaluate the proposed method in combination with modelling the epistemic uncertainty through efficient methods like epistemic neural networks.

Authors · CommentOpenReview ↗

We thank the Reviewer for reading our response and for feedback that was targeted and constructive throughout, which further strengthen the paper.

We agree that epistemic uncertainty is the natural complement to what SA represents, and as the Reviewer rightly suggests, an epistemic neural network is composable with SA rather than an alternative to it. We will look into that direction, and we will point to it in the sources-of-uncertainty paragraph we add to the revision.

We are grateful for the positive assessment already given. If, in the Reviewer's judgment, the clarifications and the additional results have strengthened the paper, we would be glad to see that reflected in the score or the confidence. Either way, we thank the Reviewer for the care taken with our submission

Reviewer Cki7OpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper introduces Stochastic Attention, an inference time uncertainty method for transformer-based scientific models. Instead of using deterministic softmax attention weights, SA samples tokens from the attention distribution and averages their value vectors. This preserves the original attention output in expectation.

Strengths and weaknesses

Strengths - Well motivated method with strong deployment case. The paper distinguishes calibration, sharpness, accuracy, and cost rather than relying only on a single proper score. Its use of histograms, coverage, Wasserstein distance, interval width at matched calibration, and compute cost is a real strength.

Weakness - Mean preservation is shown for a single attention row conditioned on its attention probabilities and values. After SA is propagated through multiple layers, will the predictive mean be different? Baselines could be fairer - SA is emphasized for native calibration, whereas baselines are subsequently temperature-scaled for comparable-calibration sharpness comparisons.

Questions

How does SA perform under distribution shift, rare events, extreme weather, corrupted inputs, or forecasting regimes absent from the calibration split?

Why is a single global ν adequate across attention heads, layers, spatial locations, forecast horizons, and input regimes? Are there ablations for layer-wise, head-wise, or input-adaptive ν?

Limitations

Same as above

Final justification

Points and questions are addressed by the authors.

Formatting concerns

None

1 comment
Authors · CommentOpenReview ↗

We thank the Reviewer for a careful reading and are pleased that the four-axis treatment came through. The studies below extend that framework to the regimes named. We report the findings here and will include the full tables in the revision.

Q1, shift, rare events, extremes, and corrupted inputs:

For ClimaX, we calibrated every method on September-May only, trimming the boundaries so no summer information leaked through the 72-hour lead time. We then evaluated all methods on identical held-out summer examples and on the most extreme summer decile by absolute Z500 anomaly. SA's calibration transfers: ν remains 4, while native W₁ improves from 0.057 in distribution to 0.046 on the held-out summer and 0.039 on the extremes. The baseline temperatures are also stable, within 1.4%. Without correction, the baselines remain severely miscalibrated (W₁ 0.11-0.22; coverage 0.07-0.63), whereas SA requires no additional output-space correction after fitting ν. Sharpness is meaningful only subject to calibration (Gneiting et al., 2007); after scaling the baselines, SA is sharpest on the held-out summer, with width 1158 versus 1172-3018. The held-out-winter study gives the same qualitative result, with MultiSWAG matching SA's width at the cost of ten trainings.

For UCI, we conducted two studies under a standard out-of-distribution lens: a convex-hull analysis, showing that a random split is largely interpolation, and a held-out-region study that forces genuine extrapolation. The latter comprises 183 conditions beyond the training support; every method is retrained, and every calibration parameter is fitted on interior data only. No single-model method's native calibration survives, including ours, with pooled W₁ ranging from 0.10 to 0.50. SA leads most often, on 24 of 61 axes versus 15 for the next method, although the margins narrow and we make no robustness claim from that ranking. On the subset for which full retraining was feasible, the ten-model MultiSWAG degrades least and remains near nominal coverage on Naval and Yacht. Independent trainings carry model uncertainty that no single-model mechanism reproduces there, at roughly 12 GPU-days, and SA composes with them. Fitting baseline temperatures on interior data, as we fit ν, restores coverage on five of eight datasets; against those scaled baselines, native SA wins only 3 of 61 axes, while their intervals are 1.2-3.9 times as wide as SA's. Under three levels of Gaussian corruption applied to test features, with no refitting, the same pattern strengthens: scaled baselines lead on all eight datasets, while their clean-fitted temperatures obtain that coverage with a median width 1.9 times that of SA. The revision will state the delineation clearly: SA transfers and remains sharpest under realistic shift; beyond the training support, no native calibration survives, temperature scaling restores baseline coverage at wider intervals, and robustness with sharpness requires independent ensembles.

Q2, a single global ν and the requested ablations:

Analytically, ν controls only the perturbation scale; its shape is inherited from the trained attention weights. By Proposition 3.3, it is large where attention hedges and vanishes where routing is confident, so dispersion already adapts across inputs, heads, layers, locations, and horizons; the covariance appears in our response to Reviewer G8VH. We then tested whether separate scales help. A differentiable convex-interpolation relaxation of SA is fitted by Adam on the same objective at three ClimaX scopes: global (1), per-layer (8), and per-head (128), yielding W₁ values of 0.0430, 0.0428, and 0.0424. Here, the objective is evaluated on the trained target and lead time, Z500 at 72 hours, rather than the aggregated five-variable default. Under this more targeted setting, Bayesian optimization selects ν = 9 and the gradient fit 9.0. The per-head solution spans 5-14, confirming heterogeneity, but improves W₁ by at most 0.0006 while requiring 18-44 GPU-minutes rather than 1-3 minutes for the single scalar. A global ν is therefore adequate and preserves SA's motivating efficiency.

W, the multi-layer mean and fairness to the baselines:

The Reviewer's reading of Proposition 3.2 is correct. Three points make the residual drift benign. First, it is controlled: covariance decays as 1/ν, and sweeping ν recovers the deterministic backbone's ACC of 0.9640 exactly by ν = 1024, with ACC 0.9631 already at ν = 25. Second, the drift is priced into the method because ν is calibrated on the stochastic model's end-to-end residuals. Third, the deterministic backbone prediction remains available at zero additional cost. Baseline widths are compared only after calibration, so each baseline receives its own temperature fitted on held-out data; SA is never temperature-scaled, and every correction benefits a competitor. We appreciate the care behind these questions and would be glad to clarify anything further.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…