Uncertainty Decomposition for Bayes-Filtered Transformers via Bayesian Predictive Inference

Sandra Fortini, Kenyon Ng, Sonia Petrone, Judith Rousseau, Susan Wei
2/4/2026
stat.MLcs.LGstat.ME
transformer-attentionbayesian

No confident code implementation found for this paper.

Abstract

Bayes-filtered transformers are transformers meta-learned on sequences from a prior predictive distribution to approximate the corresponding posterior predictive distribution. They output total predictive uncertainty in a single forward pass but never explicitly represent a posterior distribution, making the standard route to separating aleatoric from epistemic uncertainty unavailable.

Show full abstract

We address this challenge through the lens of Bayesian predictive inference (BPI). Our main result is a predictive Central Limit Theorem (CLT) for supervised settings under conditions that are among the weakest known in the BPI literature. The CLT characterises the posterior of the limiting predictive distribution given an observed context as asymptotically Gaussian; the variance of this Gaussian quantifies epistemic uncertainty. We apply the framework to TabPFN, a Bayes-filtered transformer that is a state-of-the-art foundation model for tabular prediction. The resulting credible bands achieve near-nominal frequentist coverage as context length grows, and the decomposition largely matches standard desiderata: epistemic uncertainty shrinks with context length and is highest in sparsely observed regions within the span of the context data, while aleatoric uncertainty dominates near decision boundaries where classes overlap.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fortini2026uncertainty,
  title  = {Uncertainty Decomposition for Bayes-Filtered Transformers via Bayesian Predictive Inference},
  author = {Sandra Fortini and Kenyon Ng and Sonia Petrone and Judith Rousseau and Susan Wei},
  year   = {2026},
  eprint = {2602.04596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.04596v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.04596.svg)](https://codeofpaper.com/paper/2602.04596)

Discussion