上下文学习是一种使模型能够即时从输入示例中学习而无需更新权重的能力,是大语言模型的一个决定性特征。在这项工作中,我们遵循(Garg et al., 2022)中提出的设定,从简单但基础的线性回归任务这一视角出发,更好地理解上下文学习的通用性与局限性。我们旨在解决的关键问题是:在不同的分布偏移下,Transformer是否比某些自然且更简单的架构更擅长执行上下文学习?为了与Transformer进行比较,我们提出使用一种基于集合的多层感知机(MLPs)的简单架构。我们发现,在分布内评估下,Transformer和基于集合的MLPs都表现出上下文学习能力,但Transformer更接近普通最小二乘法(OLS)的性能。Transformer还表现出对轻微分布偏移更好的鲁棒性,而基于集合的MLPs则表现不佳。然而,在严重的分布偏移下,两种模型的上下文学习能力都会下降。
英文摘要:
In-context learning, a capability that enables a model to learn from input examples on the fly without necessitating weight updates, is a defining characteristic of large language models. In this work, we follow the setting proposed in (Garg et al., 2022) to better understand the generality and limitations of in-context learning from the lens of the simple yet fundamental task of linear regression. The key question we aim to address is: Are transformers more adept than some natural and simpler architectures at performing in-context learning under varying distribution shifts? To compare transformers, we propose to use a simple architecture based on set-based Multi-Layer Perceptrons (MLPs). We find that both transformers and set-based MLPs exhibit in-context learning under in-distribution evaluations, but transformers more closely emulate the performance of ordinary least squares (OLS). Transformers also display better resilience to mild distribution shifts, where set-based MLPs falter. However, under severe distribution shifts, both models' in-context learning abilities diminish.
Drift-Resilient TabPFN: In-Context Learning Temporal Distribution Shifts on Tabular Data
University of Freiburg(弗莱堡大学);Technical University of Munich(慕尼黑工业大学);ETH Zurich(苏黎世联邦理工学院);Charité University Medicine Berlin(柏林夏里特医学院);ELLIS Institute Tübingen(ELLIS图宾根研究所)
Bifrost: Steering Strategic Trajectories to Bridge Contextual Gaps for Self-Improving Agents
The University of Sydney(悉尼大学);Florida International University(佛罗里达国际大学);Hong Kong Baptist University(香港浸会大学);RIKEN Center for Advanced Intelligence Project(理化学研究所高级智能项目中心);The University of Tokyo(东京大学)
Context Shift Reduction for Offline Meta-Reinforcement Learning
University of Science and Technology of China(中国科学技术大学);Cambricon Technologies(寒武纪科技);University of Chinese Academy of Sciences(中国科学院大学);Intelligent Software Research Center, Institute of Software, CAS(中国科学院软件研究所智能软件研究中心);Shanghai Innovation Center(上海创新中心)
Dynamics-Aligned Shared Hypernetworks for Contextual RL under Discontinuous Shifts
Institute for Data Science Foundations, TUHH, Germany(数据科学基础研究所,德意志高等技术大学,德国);Santa Fe Institute, USA(新墨西哥州圣达菲研究所,美国);Neuro-Cognitive Modeling Group, University of Tübingen, Germany(图宾根大学神经认知建模小组,德国)
Southeast University(东南大学);Key Laboratory of New Generation Artificial Intelligence Technology and Its Interdisciplinary Applications, (Southeast University), Ministry of Education(新一代人工智能技术及其跨学科应用重点实验室);Nanyang Technological University(南洋理工大学)
Contextual Optimization under Covariate Shift: A Robust Approach by Intersecting Wasserstein Balls
Department of Industrial Engineering and Operations Research, Columbia University(哥伦比亚大学工业工程与运营管理系);Department of Management, University of Toronto Mississauga, Rotman School of Management, University of Toronto(多伦多大学滑铁卢分校管理系,罗特曼管理学院,多伦多大学);School of Economics and Management, Tsinghua University(清华大学经济管理学院)