arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.16704cs.LGstat.ML
收藏

分布偏移下上下文学习的深入审视

A Closer Look at In-Context Learning under Distribution Shifts

FAIR (Meta AI)(FAIR(Meta人工智能实验室))

Kartik Ahuja, David Lopez-Paz

AI总结:

本文通过线性回归任务比较Transformer与基于集合的MLPs在分布偏移下的上下文学习能力,发现Transformer更接近OLS性能且对轻微偏移更鲁棒,但两者在严重偏移下均失效。

摘要:

上下文学习是一种使模型能够即时从输入示例中学习而无需更新权重的能力,是大语言模型的一个决定性特征。在这项工作中,我们遵循(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.

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

↑