Universal priors: solving empirical Bayes via Bayesian inference and pretraining
Not on the map. Why?
Abstract (arXiv)
We theoretically justify the recent empirical finding of [Teh et al., 2025] that a transformer pretrained on synthetically generated data achieves strong performance on empirical Bayes (EB) problems. We take an indirect approach to this question: rather than analyzing the model architecture or training dynamics, we ask why a pretrained Bayes estimator, trained under a prespecified training distribution, can adapt to arbitrary test distributions. Focusing on Poisson EB problems, we identify the existence of universal priors such that training under these priors yields a near-optimal regret bound of widetildeO(frac1n) uniformly over all test distributions. Our analysis leverages the classical phenomenon of posterior contraction in Bayesian statistics, showing that the pretrained transformer adapts to unknown test distributions precisely through posterior contraction. This perspective also explains the phenomenon of length generalization, in which the test sequence length exceeds the training length, as the model performs Bayesian inference using a generalized posterior.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 36 of its 84 references that are in the map. First posted on arXiv 16 Feb 2026.
Builds on
36 of 84 references.
References · 36
- 2020Meta-Learning in Neural Networks: A Surveycited by 944
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2021Transformers Can Do Bayesian Inferencecited by 338
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2024TabDPT: Scaling Tabular Foundation Models on Real Datacited by 97
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
24 more
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 44
- 2024Transformers are Universal In-context Learnerscited by 42
- 2024Neural Methods for Amortized Inferencecited by 36
- 2025Can Transformers Learn Full Bayesian Inference in Context?cited by 30
- 2024On Provable Length and Compositional Generalizationcited by 22
- 2020Neural Empirical Bayes: Source Distribution Estimation and its Applications to Simulation-Based Inferencecited by 21
- 2017On the nonparametric maximum likelihood estimator for Gaussian location mixture densities with application to Gaussian denoisingcited by 19
- 2025In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-Learningcited by 17
- 2021On the Robustness to Misspecification of α-Posteriors and Their Variational Approximationscited by 15
- 2025Amortized In-Context Bayesian Posterior Estimationcited by 13
- 2025The Bayesian Geometry of Transformer Attentioncited by 13
- 2021Sharp regret bounds for empirical Bayes and compound decision problemscited by 8
- 2025Quantitative Bounds for Length Generalization in Transformerscited by 8
- 2025Solving Empirical Bayes via Transformerscited by 7
- 2025Stein's unbiased risk estimate and Hyv"arinen's score matchingcited by 6
- 2022Optimal empirical Bayes estimation for the Poisson model via minimum-distance methodscited by 5
- 2025Transformers Simulate MLE for Sequence Generation in Bayesian Networkscited by 5
- 2025In-Context Parametric Inference: Point or Distribution Estimators?cited by 4
- 2026Weak Diffusion Priors Can Still Achieve Strong Inverse-Problem Performancecited by 4
- 2022Empirical Bayes estimation: When does g-modeling beat f-modeling in theory (and in practice)?cited by 3
- 2020Learning Minimax Estimators via Online Learningcited by 2
- 2025Besting Good--Turing: Optimality of Non-Parametric Maximum Likelihood for Distribution Estimationcited by 2
- 2022A Dimensionality Reduction Method for Finding Least Favorable Priors with a Focus on Bregman Divergencecited by 1
Built on by
Not cited yet.