arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.16825cs.LG
收藏

Transformer能否在上下文中学习完整的贝叶斯推断?

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(慕尼黑技术大学计算机科学系)

Arik Reuter, Tim G. J. Rudner, Vincent Fortuin, David Rügamer

AI总结:

本文提出一种基于先前拟合网络和连续归一化流的通用框架,使Transformer能在上下文中对广义线性模型等执行完整贝叶斯推断,实验证明其样本质量媲美MCMC和变分推断方法。

摘要:

Transformer已成为深度学习领域的主导架构,具有广泛的应用和显著的上下文学习(ICL)能力。尽管尚未完全理解,ICL已被证明是一种引人入胜的现象,使Transformer能够在上下文中学习——无需进一步训练。在本文中,我们通过证明Transformer能够对常用的统计模型在上下文中执行完整的贝叶斯推断,进一步推进了对ICL的理解。更具体地,我们引入了一个通用框架,该框架基于先前拟合网络和连续归一化流的思想,使我们能够推断复杂后验分布,例如广义线性模型和潜在因子模型。在真实世界数据集上的大量实验表明,我们的ICL方法产生的后验样本质量与不在上下文中运行的最先进的MCMC或变分推断方法相当。本文的源代码可在https://github.com/ArikReuter/ICL_for_Full_Bayesian_Inference获取。

英文摘要:

Transformers have emerged as the dominant architecture in the field of deep learning, with a broad range of applications and remarkable in-context learning (ICL) capabilities. While not yet fully understood, ICL has already proved to be an intriguing phenomenon, allowing transformers to learn in context -- without requiring further training. In this paper, we further advance the understanding of ICL by demonstrating that transformers can perform full Bayesian inference for commonly used statistical models in context. More specifically, we introduce a general framework that builds on ideas from prior fitted networks and continuous normalizing flows and enables us to infer complex posterior distributions for models such as generalized linear models and latent factor models. Extensive experiments on real-world datasets demonstrate that our ICL approach yields posterior samples that are similar in quality to state-of-the-art MCMC or variational inference methods that do not operate in context. The source code for this paper is available at https://github.com/ArikReuter/ICL_for_Full_Bayesian_Inference.

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

↑