In recent years, the transformer has established itself as a workhorse in many applications ranging from natural language processing to reinforcement learning. Similarly, Bayesian deep learning has become the gold-standard for uncertainty estimation in safety-critical applications, where robustness and calibration are crucial. Surprisingly, no successful attempts to improve transformer models in terms of predictive uncertainty using Bayesian inference exist. In this work, we study this curiously underpopulated area of Bayesian transformers. We find that weight-space inference in transformers does not work well, regardless of the approximate posterior. We also find that the prior is at least partially at fault, but that it is very hard to find well-specified weight priors for these models. We hypothesize that these problems stem from the complexity of obtaining a meaningful mapping from weight-space to function-space distributions in the transformer. Therefore, moving closer to function-space, we propose a novel method based on the implicit reparameterization of the Dirichlet distribution to apply variational inference directly to the attention weights. We find that this proposed method performs competitively with our baselines.
Columbia University(哥伦比亚大学);Columbia University School of Professional Studies(哥伦比亚大学专业研究学院);Department of Statistics(统计学系);Columbia University Department of Computer Science(哥伦比亚大学计算机科学系)
Bayesian Transformer for Probabilistic Load Forecasting in Smart Grids
O&M Analytics, AES Clean Energ(O&M分析部,AES清洁能源);The AES Corporation(AES公司);Department of Information and Communication Engineering(信息与通信工程系);Pabna University of Science and Technology(帕纳大学科学与技术)
Universal priors: solving empirical Bayes via Bayesian inference and pretraining
Courant Institute of Mathematical Sciences, NYU(纽约大学Courant数学科学研究所);Center for Data Science, NYU(纽约大学数据科学中心);Department of EECS, MIT(麻省理工学院电子工程与计算机科学系)
Uncertainty-driven ensembles of deep architectures for multiclass classification. Application to COVID-19 diagnosis in chest X-ray images
Elsevier Science Publishers B.V.(爱思唯尔科学出版公司);University of Winchester(温彻斯特大学);Universidad de Granada(格拉纳达大学);Universidad de Malaga(马拉加大学);University of Leicester(莱斯特大学)
Transformers Can Learn Posterior Predictive Distributions In-Context
Department of Statistical Science, Duke University, Durham, NC, USA(统计科学系,达勒姆大学,达勒姆,NC,美国);Department of Electrical and Computer Engineering, Duke University, Durham, NC, USA(电气与计算机工程系,达勒姆大学,达勒姆,NC,美国)
Likelihood-guided Regularization in Attention Based Models
Department of Statistics, Virginia Polytechnic Institute and State University(统计学系,弗吉尼亚理工大学和州立大学);Department of Statistics, Virginia Tech.(统计学系,弗吉尼亚理工大学)
Sparse Transformer Architectures via Regularized Wasserstein Proximal Operator with $L_1$ Prior
Department of Mathematics, University of California, Los Angeles, CA, USA(加州大学洛杉矶分校数学系);Department of Mathematics, University of South Carolina, Columbia, SC, USA(南卡罗来纳大学数学系)
Gradient Dynamics of Attention: How Cross-Entropy Sculpts Bayesian Manifolds
Columbia University(哥伦比亚大学);Columbia University School of Professional Studies(哥伦比亚大学专业研究学院);Department of Statistics(统计学系);Columbia University Department of Computer Science(哥伦比亚大学计算机科学系)
Bayesian sparsification for deep neural networks with Bayesian model reduction
Technische Universität Dresden(德累斯顿工业大学);University College London(伦敦大学学院);Wellcome Centre for Human Neuroimaging(惠康人类神经成像中心);Queen Square Institute of Neurology(皇后广场神经病学研究所);VERSES AI Research Lab(VERSES AI研究实验室);Centre for Tactile Internet with Human-in-the-Loop (CeTI)(以人为中心的触觉互联网中心)
Neural Architectures for Amortized Bayesian Inference: Statistical Foundations and Empirical Assessments
Department of Mathematics and Statistics, Indian Institute of Technology Kanpur(数学与统计学系,印度理工学院坎浦尔分校);Marshall School of Business, University of Southern California(马歇尔商学院,南加州大学)
Can Transformers Learn Full Bayesian Inference in Context?
Department of Statistics, LMU Munich(慕尼黑大学统计系);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Center for Data Science, New York University(纽约大学数据科学中心);Department of Computer Science, Technical University of Munich(慕尼黑技术大学计算机科学系)