In-context learning (ICL) is one of the surprising and useful features of large language models and subject of intense research. Recently, stylized meta-learning-like ICL setups have been devised that train transformers on sequences of input-output pairs $(x, f(x))$. The function $f$ comes from a function class and generalization is checked by evaluating on sequences generated from unseen functions from the same class. One of the main discoveries in this line of research has been that for several function classes, such as linear regression, transformers successfully generalize to new functions in the class. However, the inductive biases of these models resulting in this behavior are not clearly understood. A model with unlimited training data and compute is a Bayesian predictor: it learns the pretraining distribution. In this paper we empirically examine how far this Bayesian perspective can help us understand ICL. To this end, we generalize the previous meta-ICL setup to hierarchical meta-ICL setup which involve unions of multiple task families. We instantiate this setup on a diverse range of linear and nonlinear function families and find that transformers can do ICL in this setting as well. Where Bayesian inference is tractable, we find evidence that high-capacity transformers mimic the Bayesian predictor. The Bayesian perspective provides insights into the inductive bias of ICL and how transformers perform a particular task when they are trained on multiple tasks. We also find that transformers can learn to generalize to new function classes that were not seen during pretraining. This involves deviation from the Bayesian predictor. We examine these deviations in more depth offering new insights and hypotheses.
PRISM of Opinions: A Persona-Reasoned Multimodal Framework for User-centric Conversational Stance Detection
Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学(深圳));Peng Cheng Laboratory, Shenzhen, China(鹏城实验室);Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies(广东省新型安全智能技术重点实验室);The Hong Kong Polytechnic University, Hong Kong, China(香港理工大学);Macau University of Science and Technology, Hong Kong, China(澳门科学技术大学)
Capturing Polysemanticity with PRISM: A Multi-Concept Feature Description Framework
Technische Universität Berlin(柏林技术大学);BIFOLD;UMI Lab(UMI实验室);Fraunhofer Heinrich-Hertz-Institute(弗劳恩霍夫海因里希-赫兹研究所);ETH AI Center(苏黎世联邦理工学院人工智能中心);Universität Potsdam(波茨坦大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)
The PRISM Alignment Dataset: What Participatory, Representative and Individualised Human Feedback Reveals About the Subjective and Multicultural Alignment of Large Language Models
University of Oxford(牛津大学);University of Pennsylvania(宾夕法尼亚大学);Bocconi University(博科尼大学);ML Commons;Contextual AI;Factored AI;UCL(伦敦大学学院);Cohere;MetaAI;New York University(纽约大学);AWS AI Labs(亚马逊云科技AI实验室);Meedan
Through the Prism of Culture: Evaluating LLMs' Understanding of Indian Subcultures and Traditions
Amar Nath and Shashi Khosla School of Information Technology, Indian Institute of Technology Delhi(阿玛纳特和沙希·科斯拉信息科技学院,印度理工学院德里);Computer Science and Engineering Department, Delhi Technological University(德里技术大学计算机科学与工程系);Department of Computer Science and Engineering, Indian Institute of Technology Kharagpur(印度理工学院Khargpur计算机科学与工程系)
BCL: Bayesian In-Context Learning Framework for Information Extraction
HiThink Research(海天瑞声研究);University College London(伦敦大学学院);University of Edinburgh(爱丁堡大学);The Hong Kong University of Science and Technology(香港科技大学);East China Normal University(华东师范大学);Shanghai Medical Image Insights(上海医学影像洞察);University of Waterloo(滑铁卢大学);University of Washington(华盛顿大学);Beijing Institute of Technology(北京理工大学)
Bayesian Attention Mechanism: A Probabilistic Framework for Positional Encoding and Context Length Extrapolation
MALTA – Machine Learning Theory and Applications Lab, PUCRS – Porto Alegre, Brazil(MALTA机器学习理论与应用实验室,PUCRS-波士顿实验室,巴西);Kunumi Institute, Brazil(昆米研究所,巴西)
Bayesian Inverse Contextual Reasoning for Heterogeneous Semantics-Native Communication
Kwangwoon University(光云大学);Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院(KAIST));University of Oulu(奥卢大学);Seoul National University (SNU)(首尔国立大学(SNU))
On the relationship between a Gamma distributed precision parameter and the associated standard deviation in the context of Bayesian parameter inference
Department of Mathematics, Imperial College London, London, United Kingdom;Department of Mechanical Engineering, University of Michigan, Ann Arbor, MI, USA.;Department of Industrial \& Operations Engineering, University of Michigan, Ann Arbor, MI, USA.;Department of Chemical;Nano Engineering, University of California, San Diego, CA, USA
Harnessing Large Language Models to Compile Task-Relevant Context into Bayesian Optimisation
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University College London (UCL)(伦敦大学学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所)
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(慕尼黑技术大学计算机科学系)
NOTMAD: Estimating Bayesian Networks with Sample-Specific Structures and Parameters
Massachusetts Institute of Technology(麻省理工学院);Broad Institute of MIT and Harvard(麻省理工学院与哈佛大学博德研究所);Carnegie Mellon University(卡内基梅隆大学);University of Chicago(芝加哥大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
Variational Bayesian Methods for a Tree-Structured Stick-Breaking Process Mixture of Gaussians by Application of the Bayes Codes for Context Tree Models
Center for Data Science Waseda University(早稻田大学数据科学中心)