arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.04020cs.LGstat.ML
收藏

先验中的病态和贝叶斯Transformers的推断

Pathologies in priors and inference for Bayesian transformers

ETH Zürich(苏黎世联邦理工学院)

Tristan Cinquin, Alexander Immer, Max Horn, Vincent Fortuin

摘要:

近年来,Transformer已经成为从自然语言处理到强化学习的许多应用中的主力。同样,贝叶斯深度学习已成为安全关键型应用中不确定性估计的黄金标准,其中鲁棒性和校准至关重要。令人惊讶的是,不存在使用贝叶斯推理在预测不确定性方面改进Transformer模型的成功尝试。在这项工作中,我们研究这个奇怪的人口稀少的地区贝叶斯Transformers。我们发现,在Transformers的重量空间推断不工作,无论近似后验。我们还发现,先验至少部分是错误的,但这是很难找到这些模型的指定的权重先验。我们假设,这些问题源于复杂的获得一个有意义的映射,从重量空间到功能空间分布的Transformer。因此,移动更接近功能空间,我们提出了一种新的方法的基础上的隐式重新参数化的狄利克雷分布直接应用变分推理的注意力权重。我们发现,该方法与我们的基线竞争。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑