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

从重复现象理解上下文学习

Understanding In-Context Learning from Repetitions

Zhejiang University(浙江大学);Westlake University(西湖大学);Institute of Advanced Technology, Westlake Institute for Advanced Study(西湖高等研究院先进技术研究院);Tsinghua University(清华大学);Baidu Research(百度研究院)

Jianhao Yan, Jin Xu, Chiyu Song, Chenming Wu, Yafu Li, Yue Zhang

AI总结:

本文从表面重复现象出发,实证提出 token 共现强化原则,以解释大型语言模型上下文学习的内部机制、失败原因及其局限性。

摘要:

本文探讨了大型语言模型(LLMs)中上下文学习背后难以捉摸的机制。我们的工作通过表面重复的视角来审视上下文学习,提供了一个新颖的视角。我们定量研究了表面特征在文本生成中的作用,并实证确立了“token 共现强化”的存在,这一原则基于两个 token 的上下文共现来加强它们之间的关系。通过研究这些特征的双重影响,我们的研究阐明了上下文学习的内部运作机制,并阐述了其失败的原因。本文为理解上下文学习及其潜在局限性做出了重要贡献,为这一令人兴奋的能力提供了全新的视角。

英文摘要:

This paper explores the elusive mechanism underpinning in-context learning in Large Language Models (LLMs). Our work provides a novel perspective by examining in-context learning via the lens of surface repetitions. We quantitatively investigate the role of surface features in text generation, and empirically establish the existence of \emph{token co-occurrence reinforcement}, a principle that strengthens the relationship between two tokens based on their contextual co-occurrences. By investigating the dual impacts of these features, our research illuminates the internal workings of in-context learning and expounds on the reasons for its failures. This paper provides an essential contribution to the understanding of in-context learning and its potential limitations, providing a fresh perspective on this exciting capability.

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

↑