All conference papers
Search the indexed conferences by title, author, venue, or track.
Explore the NeurIPS analysisNeurIPS papers
861–880 of 9,142
- NeurIPS · Main conference
When Riemann flows with Wasserstein: Generative Modeling of Probability Distributions on Manifolds
Doron Haviv, Edward De Brouwer, Rishabh Anand, Rex Ying, Gabriele Scalia, Hector Corrada Bravo
Abstract
Many scientific datasets, such as molecular conformational ensembles or single-cell tissue measurements, are naturally modeled as meta-distributions: distributions over probability measures on non-Euclidean domains. Existing generative methods largely assume Euclidean geometry and fail to capture this structure. We introduce Riemannian Wasserstein Entropic Flow Matching (RWEFM), a generative framework on the Wasserstein space $\mathcal{P}_2(\mathcal{M})$ of a Riemannian manifold $(\mathcal{M},g)$. RWEFM is trained by regressing a neural vector field onto Riemannian optimal transport velocities, using McCann displacement interpolations as conditional paths. We confirm theoretically that this construction leads to a valid flow matching approach on $\mathcal{P}_2(\mathcal{M})$ and introduce the Riemannian Entropic Map, a GPU-efficient approximation of the optimal transport map on manifolds. Our experiments show that by respecting the intrinsic geometry of the data, RWEFM can generate whole single-cell samples in hyperspherical latent spaces and protein conformational ensembles on the torus. As RWEFM requires only a geodesic distance and a projection operator, it is not restricted to manifolds with closed-form geometry, which we demonstrate by generating distributions on a general triangulated mesh. Code and tutorials are available at [RWEFM](https://github.com/DoronHav/WassersteinFlowMatching).
Abstract source - NeurIPS · Main conference
Speakeasy: Auditing Cheap Signals in Peer Prediction
Fang-Yi Yu, Yuang Zhang
Abstract
How can we elicit truthful information from strategic agents? Traditional peer prediction mechanisms incentivize truthful reporting by rewarding stochastic relationships between agents' reports, but lose their incentive guarantees when agents can submit cheap but correlated signals---such as outputs from different LLMs. We introduce the \emph{Speakeasy mechanism}, a framework for peer prediction when the principal can also sample these cheap signals. The mechanism augments any peer prediction rule with an audit strategy penalizing reports that are similar to the principal's samples. We give a polynomial-time algorithm for the optimal audit strategy, so that truthful reporting is a strict Bayes--Nash equilibrium and yields the highest welfare against agents choosing between reporting truthfully and copying a single cheap signal. We then extend this guarantee, under an additional assumption, to richer misreport strategies that mix multiple cheap signals, showing that Speakeasy preserves the truthfulness of the base mechanism. We empirically test the Speakeasy mechanism against classical peer prediction mechanisms on a peer-review dataset of ICLR submissions, with reviews from human reviewers and several LLMs. Several classical mechanisms fail to make truthful reporting a Bayes--Nash equilibrium once LLMs are available, while Speakeasy restores it for all of them. We further examine EXP3 and LLM agents. We found that EXP3 learners reach truth when the audit is strongly truthful but not when it is only truthful, and LLM behavior depends on the model.
Abstract source - NeurIPS · Main conference
Dynamic Query as Budgeting for Tiny Object Detection
Yi Zhang, Di Xiong, Ge Gao, Xiangyue Zhang, yihang qiu, Yuxuan Zhou, Shuo Chen
Abstract
Recent DETR-based tiny object detectors adopt dynamic query mechanisms to handle severe density imbalance. However, existing designs entangle two effects: how many and which queries are decoded. This entanglement obscures what drives the gains and complicates dynamic-query design; additional learned predictors and heuristic filtering also introduce overhead and potential selection errors. We disentangle these effects and show that dynamic query primarily acts as \emph{budgeting}---allocating decoder query capacity according to object density---rather than intricate query selection. Motivated by this view, we formulate a monotonic and conservative budgeting principle and propose a budgeting-based DETR (\textbf{BUTR}), a streamlined framework that uses a lightweight, non-learned budgeter to estimate an input-dependent query budget $K(x)$ from encoder confidences. BUTR retains standard Top-$K(x)$ query initialization without additional learned modules or heuristic filtering in the budgeter. At $800\times800$ resolution, BUTR-L achieves 35.7 AP at 47.8 FPS on AI-TOD-v2 and 29.8 AP at 42.1 FPS on VisDrone on an NVIDIA T4 GPU. Inference-time integration on COCO further demonstrates its applicability to general scenario detection. Code is available at \url{https://github.com/zhangyi-magic/BUTR}.
Abstract source - NeurIPS · Main conference
Robust Amortized Simulation-Based Inference via Learned Error Models
Matthew OCallaghan, Kaisey Mandel, Gerard Gilmore
Abstract
Recent advances in neural density estimation have enabled amortized Bayesian inference for complex stochastic simulators. However, these methods rely on simulators accurately reflecting the true data-generating process and can degrade significantly under model misspecification. We consider the setting where multiple unlabeled observations are available and introduce robust variational neural posterior estimation (RVNP), an amortized Bayesian inference method that uses an importance-weighted autoencoder to jointly learn a misspecification-robust posterior proxy and an explicit error model that captures the simulation-to-reality gap. Our results show that RVNP can recover robust posterior inference in a data-driven and interpretable manner, outperforming previous methods on multiple metrics across misspecified benchmarks.
Abstract source - NeurIPS · Main conference
Primal-Dual Flow Matching for Sample-Wise Constrained Generation
Zhengyan Huan, Peter Y. Lu, Shuchin Aeron
Abstract
We consider the problem of learning to generate data while satisfying a prescribed \emph{sample-wise} constraint with a user-specified probability of constraint satisfaction. Starting with a population-level constrained negative log-likelihood minimization and using a flow-matching (FM) parameterization, under regularity assumptions and sufficient expressivity of the velocity field family, we derive guarantees on the probability of constraint satisfaction for the corresponding primal-dual optimization algorithm. We provide a practical implementation of this approach, called Primal-Dual Flow Matching (PDFM), which has direct control over constraint satisfaction rate and requires only binary membership oracle feedback for constraint satisfaction, avoiding the need for differentiable distances, projections, or special structure of the constraint set, such as convexity. We show that PDFM improves constraint satisfaction over vanilla FM and achieves competitive performance against constraint-aware baselines while maintaining distributional fidelity. Our code is available at \url{https://github.com/ZhengyanHuan/PDFM}.
Abstract source - NeurIPS · Main conference
The Reasoning Boundary Paradox: How Reinforcement Learning Constrains Language Models
Nguyen Phuc, Chinh D La, Duy M. H. Nguyen, Nitesh Chawla, Binh T. Nguyen, Khoa D Doan
Abstract
Reinforcement Learning with Verifiable Rewards (RLVR) has emerged as a key method for improving Large Language Models' reasoning capabilities, yet recent evidence suggests it may paradoxically shrink the reasoning boundary rather than expand it. This paper explains this shrinkage issue of RLVR by analyzing its learning dynamics and reveals two critical phenomena that account for this failure. First, we expose negative interference in RLVR, where learning to solve certain training problems actively reduces the likelihood of correct solutions for others, leading to the decline of Pass@$k$ performance, or the probability of generating a correct solution within $k$ attempts. Second, we uncover the winner-take-all phenomenon: RLVR disproportionately reinforces problems with high likelihood, correct solutions under the base model, while suppressing other initially low-likelihood ones. Through extensive theoretical and empirical analysis on multiple mathematical reasoning benchmarks, we show that this effect arises from the inherent on-policy sampling in standard RL objectives, causing the model to converge toward narrow solution strategies. These insights motivate us to design a \textit{simple yet effective} data curation algorithm that focuses RLVR learning on low-likelihood problems (the non-winners) and achieves notable improvement in Pass@$k$ performance, illustrating the potential of a broader class of data-curation mitigation strategies.
Abstract source - NeurIPS · Main conference
Log-Averaged Mirror Prox for Fast, Large-Scale Optimal Transport in Linear Space
Matthew Burns, Jiaming Liang
Abstract
We propose Log-Averaged Mirror Prox (LAMP), a linear-space primal-dual method for large-scale optimal transport. LAMP implements primal mirror prox updates by tracking an averaged dual sequence, reducing storage complexity from $\mathcal{O}(nm)$ to $\mathcal{O}(n+m)$ while preserving dense, GPU-friendly reductions. Consequently, LAMP preserves the last-iterate $\widetilde{\mathcal{O}}(\lVert C\rVert_{\infty} nm\varepsilon^{-1})$ arithmetic complexity of conservatively parameterized primal-dual mirror prox. We further analyze LAMP as a direct optimal transport solver in a more performant parameter regime, providing a last-iterate sub-optimality certificate dependent on infeasibility and an explicit $\mathcal{O}(\lVert C\rVert _{\infty}\log (m)/t)$ term. Moreover, we give a computable sufficient condition for ergodic convergence. Numerical experiments with an optimized CUDA implementation show that LAMP outperforms first-order baselines in several high-accuracy (entropic) optimal transport problems. LAMP is further shown to scale up to problems with $n=m=2^{18}$ marginal supports, which were previously beyond the reach of primal-dual first-order methods.
Abstract source - NeurIPS · Main conference
Adaptive Power Iteration Method for Differentially Private PCA
Ta Duy Nguyen, Alina Ene, Huy Nguyen
Abstract
We study $\left(\epsilon,\delta\right)$-differentially private algorithms for the problem of approximately computing the top singular vector of a matrix $A\in\mathbb{R}^{n\times d}$ where each row of $A$ is a datapoint in $\mathbb{R}^{d}$. Following Dwork-Talwar-Thakurta-Zhang (STOC 2014), we consider the privacy model where neighboring inputs differ by one single row. We give a novel algorithm that achieves beyond-worst-case guarantees for input matrices with low coherence, which is a structural property of matrices in many applications, including but not limited to i.i.d. data. Our algorithm contributes to the extensive literature on private power iteration methods, where we introduce a new filtering technique which adapts to this coherence parameter. Our work departs from and complements the work by Hardt-Roth (STOC 2013) which achieves beyond-worst-case guarantees for the more restrictive privacy model where neighboring inputs differ in one single entry by at most 1.
Abstract source - NeurIPS · Main conference
Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Trace
William Tong, Ege Çakar, Cengiz Pehlevan
Abstract
Recent years have witnessed meteoric progress in *reasoning models*: neural networks that generate intermediate *reasoning traces* (RTs) before producing a final output. Despite the rapid advancement, our understanding of how RTs support reasoning, and where this paradigm fails, remain incomplete. To promote greater clarity, we introduce PITA: a novel large-scale dataset of over 23 million statements in propositional logic and their corresponding proofs. As a benchmark for robust reasoning, we focus on length generalization: if a model is trained to determine truth or falsity on statements with proofs up to fixed length, how well does it generalize to statements requiring longer proofs? We propose notions of (1) *task depth* and (2) *task breadth*, which measure respectively (1) the number of proof steps required to solve a proposition and (2) the number of unique propositions within a task family. We vary these quantities across subsets of PITA, and find that RT models generalize well on relatively *broad* and *shallow* subsets, while deteriorating on relatively *narrow* and *deep* subsets compared to non-RT baselines. As a controlled point of comparison, we study a separate, tractable transitive inference task that exhibits qualitatively similar behavior. Our accompanying theory explains the scalings observed in this simpler setting, suggesting one mechanism by which breadth can favor RT models while depth can expose long-context weaknesses. Our findings suggest salient benefits and limitations of proof-like reasoning traces in controlled length-generalization settings.
Abstract source - NeurIPS · Main conference
DARTS: Targeting Prognostic Covariates in Budget-Constrained Sequential Experiments
Kateryna Husar, Alexander Volfovsky
Abstract
Randomized controlled trials typically assume that prognostic covariates are known and available at no cost. In practice, obtaining high-dimensional pretreatment data is costly, forcing a trade-off between covariate-adaptive precision and a measurement budget. We introduce Dynamic Adaptive Rerandomization via Thompson Sampling (DARTS), which treats covariate acquisition as a sequential optimization problem embedded within a design-based causal inference task. A budgeted combinatorial Thompson sampler learns which covariates are most prognostic across successive batches; selected covariates then drive rerandomization and regression adjustment to reduce batch-level average treatment effect variance. Our primary theoretical contribution is a decoupling result: adaptive covariate selection based on past batches preserves batch-level randomization validity, and the cumulative inverse-variance weighted estimator achieves at least nominal asymptotic coverage. We further derive a Bayes risk bound for the acquisition layer that matches the minimax lower bound up to logarithmic factors. Empirically, DARTS systematically concentrates budget on informative features, significantly closing the efficiency gap to oracle designs while maintaining strict inferential validity.
Abstract source - NeurIPS · Main conference
Region-Normalized DPO for Medical Image Segmentation
Hamza Kalisch, Constantin Seibold, Jens Kleesiek, Ken Herrmann, Frederic Jonske
Abstract
Direct Preference Optimization (DPO) has recently been applied to medical image segmentation, where comparing candidate masks can require substantially less annotation effort than producing new dense pixel-level masks. This makes pairwise preferences an appealing source of supervision. However, existing studies largely derive preferences from ground-truth masks, leaving open whether DPO remains effective under the imperfect feedback available in practice. We study this question using controlled noisy judges and oracle preferences, finding that vanilla DPO can exhibit training instability under noisy feedback. Our analysis identifies a normalization mismatch in dense DPO, where candidate masks often differ only in localized regions, yet their preference margin is averaged over the full image. This attenuates the effective preference scale and couples update strength to disagreement-region size. We propose Region-Normalized DPO (RN-DPO), which normalizes the preference margin over the disagreement region, removing both effects. Across two medical segmentation benchmarks, multiple judge configurations, and two backbones, RN-DPO consistently improves mean Dice over vanilla DPO, with gains persisting under oracle preferences and improved training stability under weak judges. Complementary control experiments reveal that restoring the overall preference scale accounts for a substantial part of the improvement, while RN-DPO retains additional gains beyond global calibration, highlighting the value of pair-specific normalization.
Abstract source - NeurIPS · Main conference
Generalized Adaptive Boosting and the Geometry of Mistakes
Marco Bressan, Nataly Brukhim, Nicolò Cesa-Bianchi, Emmanuel Esposito, Yishay Mansour, Shay Moran, Maximilian Thiessen
Abstract
Not all mistakes are alike. For example, in medical diagnosis, false positive and false negative mistakes have a different impact and should not be aggregated. By revisiting the classical theory of boosting through this lens, we introduce the notion of $Z$-learner, which returns weak hypotheses achieving joint false-positive/false-negative guarantees $(FP,FN)$ from some set $Z \subseteq [0,1]^2$. This formulation generalizes the standard notion of $\gamma$-weak learning — recovered by taking $Z=$ { $(z_1,z_2): z_1+z_2<1/2-\gamma$ } — and allows for more flexible notions of weak learnability that account for the impact of the distribution on the achievable learning guarantees. This raises a natural question: which sets Z are boostable? We answer this by giving a complete geometric characterization that unifies, as special cases, both the classical boosting dichotomy and the recent multi-objective extension of Bressan et al. (COLT 2025). We also present an adaptive algorithm for boosting $Z$-learners without relying on the prior knowledge of $Z$, generalizing AdaBoost's ability to handle unknown margin parameters. Finally, we demonstrate that $Z$-learners can achieve confidence amplification. However, the analysis is significantly more involved than in classical boosting and relies on the centerpoint theorem from discrete and computational geometry.
Abstract source - NeurIPS · Main conference
Amortized Linear-time Exact Shapley Value for Product-Kernel Methods
Majid Mohammadi, Siu Lun (Alan) Chau, Krikamol Muandet
Abstract
Kernel methods are widely used in machine learning and statistics for their flexibility and expressive power, yet their black-box nature limits adoption in high-stakes applications. Shapley value--based attribution methods such as SHAP, and kernel-specific adaptations including RKHS-SHAP, provide a principled framework for explainability---but exact computation of Shapley values is generally intractable, forcing existing approaches to rely on approximations that incur unavoidable estimation error. We introduce PKeX-Shapley, an algorithm that exploits the multiplicative structure of product kernels to compute exact Shapley values for all $d$ features in quadratic time in $d$. The method rests on a distribution-free removal operator intrinsic to the product-kernel structure: removing a feature replaces its kernel factor with the multiplicative identity. This yields a parameter-free value function---requiring no sampling and no density estimation---and uniquely determines a functional decomposition of the model\rev{, from which the exact Shapley value can be computed}. Building on this value function, we develop shared recursive formulations that evaluate all feature attributions jointly, achieving amortized linear time per feature with numerical stability. Beyond predictive modeling, the framework extends to widely used kernel-based discrepancies such as the Maximum Mean Discrepancy (MMD) and the Hilbert--Schmidt Independence Criterion (HSIC), providing new tools for interpretable statistical analysis.
Abstract source - NeurIPS · Main conference
Soft Geometric Inductive Bias for Object Centric Dynamics
Hampus Linander, Conor Heins, Marco Perin, Alexander Tschanz, Christopher L Buckley
Abstract
We introduce a transformer architecture for object-centric world models with a soft geometric inductive bias. Object states are represented as Clifford multivectors and the architecture uses the geometric product to learn interactions, retaining the flexibility to model dynamics with approximate symmetry. We evaluate our models on 2D rigid-body dynamics, 3D charged-particle systems, and real-world driving trajectories. Compared with unstructured and equivariant baselines, our soft Clifford transformer achieves lower rollout error when symmetry is broken. We also show that the architecture can be more sample-efficient than baselines, even with unbroken symmetry. On the Waymo Open Motion Dataset, the model achieves lower displacement error than a parameter-matched standard transformer when training data are limited.
Abstract source - NeurIPS · Main conference
$\texttt{NOCE-Net}$: Representation Learning for Battery Operational Context via Nested Sequence Modelling
Arnab Bhattacharjee, Wayes Tushar, Tapan K Saha
Abstract
Learning effective representations from battery operational history is essential for predictive health management and control-oriented applications. Existing approaches rely on response-dependent engineered features or short early-life windows, limiting generalisability and precluding use in prospective settings where future responses are unavailable. We propose $\texttt{NOCE-Net}$, a deep nested sequence model that learns control-enabling representations directly from raw cyclic operational or telemetric data. Our data pipeline, $\texttt{re-BatteryData}$, standardises heterogeneous aging datasets into semantically equivalent Full Equivalent Cycles (FECs) defined by absolute charge throughput, enabling end-to-end learning across diverse operational regimes. $\texttt{NOCE-Net}$ combines multi-patch transformer encoders for intra-cycle dynamics with a GRU backbone for inter-cycle state evolution, operating on approximately $700$ batteries across ten public datasets spanning over $300$ operational profiles. In zero-shot evaluation on unseen battery chemistries and usage patterns, $\texttt{NOCE-Net}$ achieves $13.7\%$ MAPE in voltage response prediction, outperforming strong long-sequence baselines by over $43\%$ while using $40 \times$ fewer parameters. Shape and component diagnostics of the learned hidden states reveal that the GRU's principal direction of evolution achieves Spearman $|\rho| \geq 0.95$ with the capacity fade trajectory on average across all datasets with monotone degradation profiles, including zero-shot test batteries, providing evidence that the representations encode degradation dynamics transferable to downstream tasks beyond battery response modelling.
Abstract source - NeurIPS · Main conference
Optimal sequential tests yield log-optimal e-processes
Ashwin Ram, Aaditya Ramdas
Abstract
It has been recently shown that e-processes are sufficient for sequential testing in the following sense: every level-$\alpha$ sequential test can be obtained by thresholding an e-process at $1/\alpha$. However, in the above result, neither does the test have to be asymptotically optimal (in terms of stopping times) nor does the e-process have to be asymptotically log-optimal. It has separately been shown that asymptotically log-optimal e-processes yield asymptotically optimal sequential tests. In this paper, we prove the converse, arguably completing the story: it is possible to aggregate asymptotically optimal sequential tests into asymptotically log-optimal e-processes. This is accomplished by using a new class of WAIT e-processes: those that are Weighted Aggregates of Indicators of Stopping Times that begin at zero, are nondecreasing and increase to infinity under the alternative at the optimal rate. Importantly, the paper discusses several nuances in the varied definitions of asymptotic (log-)optimality.
Abstract source - NeurIPS · Main conference
GRINQH: Graded Input-dependent Quantization Hierarchy for Efficient LLM Generation
Jette Oberländer, Jan Finkbeiner, Catherine Schoefmann, Emre Neftci
Abstract
Autoregressive decoding with LLMs is primarily bottlenecked by GPU memory bandwidth, especially for latency-sensitive, batch-size-one inference on consumer and workstation GPUs. This regime is increasingly important for coding agents and locally deployed assistants, where per-token latency rather than aggregate serving throughput determines responsiveness. While quantization is essential for mitigating this bottleneck, most existing methods treat inference as a uniform process and fail to account for the asymmetry between the compute-bound prefill stage and the memory-bound decoding stage. We propose GRINQH (GRaded INput-dependent Quantization Hierarchy), a weight-only post-training quantization framework that accelerates decoding by unifying quantization and sparsification. GRINQH leverages activation magnitudes as a proxy for computational importance to dynamically assign weight channels to different precision levels, enabling flexible average bit widths during decoding. Evaluated on Llama3 and Qwen3, GRINQH outperforms state-of-the-art fixed- and mixed-precision baselines in overall accuracy at comparable 3- and 4-bit settings and retains robust generation quality near two effective transferred bits. For latency-oriented, batch-size-one decoding, GRINQH establishes a new sub-4-bit Pareto frontier for LLM generation, enabling a dynamic trade-off between generation quality and inference speed, which we verify with a custom GPU kernel.
Abstract source - NeurIPS · Main conference
Reward Inflation: A Healthy Stimulus for Reinforcement Learning
Ganghun Lee, Minji Kim, Minsu Lee, Byoung-Tak Zhang
Abstract
Reward serves as the primary learning signal in reinforcement learning (RL). However, while reward magnitudes are typically held fixed throughout training, their temporal modulation remains underexplored. In this paper, we propose reward inflation, a gradual scaling of rewards over the course of training, and show that it can act as a healthy stimulus for RL. Theoretically, reward inflation induces an implicit recency weighting that upweights recent transitions during policy updates, enabling faster adaptation. We further show that reward inflation suppresses the emergence of dormant neurons by sustaining gradient signals as the policy saturates, suggesting a possible contribution to plasticity preservation. Empirical results on ALE games and MuJoCo tasks corroborate these findings, showing that an appropriate level of reward inflation benefits a broad range of tasks. Finally, we introduce Fed, an adaptive variant that adjusts the inflation level on the fly, and find that it often improves upon fixed inflation. Source code is available at https://github.com/northadventure/RewardInflation.
Abstract source - NeurIPS · Main conference
Beyond the Half Approximation: Fair and Efficient Online Class Matching
Sander Borst, Max Springer
Abstract
Online bipartite matching, where agents are known in advance but items arrive sequentially and must be irrevocably assigned, is fundamental to problems ranging from ride-sharing to online advertising. When agents belong to classes such as demographic groups or geographic regions, fairness demands equitable treatment across these groups. Recent work introduced class envy-freeness (CEF), a natural extension of the classical fair division notion: an algorithm is $\alpha$-CEF if each class receives value at least an $\alpha$ fraction of what it could extract from any other class's bundle. However, all known algorithms achieving constant-factor CEF guarantees attain utilitarian social welfare (total matching value) of at most $\frac{1}{2}$ times the optimum, far below the $1-\frac{1}{e} \approx 0.632$ achievable without fairness constraints. We resolve the open question of whether fairness necessitates this efficiency loss, by introducing threshold-based algorithms parameterized by $\gamma \in [0,1]$ that equalize allocations across classes until threshold $\gamma$, then maximize efficiency. For divisible matching, this yields simultaneous $(1-e^{-\gamma})$-CEF and $(1 - \frac{e^{\gamma-1}}{\gamma+1})$-USW guarantees; for indivisible matching, $\frac{\gamma}{2}$-CEF with the same USW. Setting $\gamma > 0$ produces the first algorithms beating $\frac{1}{2}$-USW while maintaining constant CEF. We complement this with a novel upper bound construction, proving no non-wasteful $\alpha$-CEF algorithm can exceed $\frac{1 +\alpha - e^{\alpha-1}}{1+\alpha}$-USW and correcting prior bounds that were vacuous for $\alpha < 0.58$. Our upper bound nearly matches our algorithms' performance, giving the first substantive characterization of the price of fairness in online class matching.
Abstract source - NeurIPS · Main conference
Calibrating Scientific Foundation Models with Inference-Time Stochastic Attention
Akash Yadav, Taiwo Adebiyi, Ruda Zhang
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.
Abstract source