NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Calibrating Scientific Foundation Models with Inference-Time Stochastic Attention

Akash Yadav, Taiwo Adebiyi, Ruda Zhang

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Time Series, PDEs & Probabilistic ML › Time Series Forecasting and Modeling · Type: new method · Keywords: scientific foundation models, uncertainty calibration, inference-time stochastic attention, predictive ensembles, weather forecasting

Areas: Model Architectures & Sequence Modeling › Dynamic and relational architectures › Time Series Forecasting

Summary

Stochastic Attention adds a lightweight inference-time randomization to transformer-based scientific foundation models, enabling calibrated predictive uncertainty and ensembles without retraining.

Explained to a 5-year-old

Big computer models that predict weather and other things give only one answer. Sometimes we want to know how sure they are. This paper adds a little randomness to the model's thinking so it can make many answers and tell us how confident it is, without having to teach it again. It works like a simple trick that makes the model guess differently each time and then averages those guesses. This helps the model be more honest about what it knows, especially in important situations.

Explained to a 5-year-old, longer

Big computer models are used to predict things like weather, stock prices, or scientific data. Usually they give a single answer, but they don't say how sure they are. Knowing how sure something is can be very important when decisions affect many people. This paper adds a small amount of randomness to the way the model looks at information, so it can produce many possible answers at the same time. By mixing these answers together, the model can show a range of predictions and tell us how confident it is. The randomness is controlled by a simple setting that makes the model balance accuracy and uncertainty. This way, the model can give better estimates of its own confidence without needing to be retrained from scratch. It works like a quick trick that can be applied to many existing models. The new method is easy to use and does not need a lot of extra computing power. It helps the model be more honest about what it knows, especially in critical situations. Overall, it makes big prediction models safer and more trustworthy for important tasks.

For a technical reader

The paper addresses the lack of uncertainty estimates in large transformer models used for scientific predictions. It adds a lightweight randomization step at inference time, called Stochastic Attention, which replaces deterministic attention weights with sampled ones. By averaging multiple stochastic outputs, the model produces calibrated predictions and confidence intervals without any retraining. A simple calibration objective tunes the randomness level, making the approach easy to integrate into existing pipelines. The result is a practical way to get reliable uncertainty estimates with minimal computational overhead.

Problem

Scientific foundation models currently produce deterministic outputs, lacking calibrated predictive uncertainty crucial for high-stakes applications. There is a need for a method to provide calibrated uncertainty at inference time without retraining the model.

Method

The approach randomizes attention at inference by replacing softmax weights with normalized multinomial samples controlled by a concentration parameter, and averages samples to produce ensembles. A calibration objective matches the stochastic attention output to the target, solving a simple univariate tuning problem.

Results

The approach provides the best native calibration and sharper prediction intervals while requiring adaptation costs about 1000 times lower than the next-best baseline.

Contributions

It introduces a lightweight inference-time stochastic attention mechanism that yields calibrated uncertainty and ensembles without retraining, and provides a simple calibration objective for tuning the concentration parameter.

Practical relevance

Enables safer deployment of scientific foundation models in critical applications by providing reliable uncertainty estimates at low computational cost.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction