Many-shot in-context learning (ICL) has emerged as a unique setup to both utilize and test the ability of large language models to handle long context. This paper delves into long-context language model (LCLM) evaluation through many-shot ICL. We first ask: what types of ICL tasks benefit from additional demonstrations, and how effective are they in evaluating LCLMs? We find that classification and summarization tasks show performance improvements with additional demonstrations, while translation and reasoning tasks do not exhibit clear trends. Next, we investigate the extent to which different tasks necessitate retrieval versus global context understanding. We develop metrics to categorize ICL tasks into two groups: (i) similar-sample learning (SSL): tasks where retrieval of the most similar examples is sufficient for good performance, and (ii) all-sample learning (ASL): tasks that necessitate a deeper comprehension of all examples in the prompt. Lastly, we introduce a new many-shot ICL benchmark, MANYICLBENCH, to characterize model's ability on both fronts and benchmark 12 LCLMs using MANYICLBENCH. We find that while state-of-the-art models demonstrate good performance up to 64k tokens in SSL tasks, many models experience significant performance drops at only 16k tokens in ASL tasks.
Retrieval-style In-Context Learning for Few-shot Hierarchical Text Classification
Institute of Computing and Intelligence, Harbin Institute of Technology(哈尔滨工业大学计算与智能学院);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学院)
Selecting Demonstrations for Many-Shot In-Context Learning via Gradient Matching
School of Computer Science and Engineering, Beihang University, China(北京航空航天大学计算机科学与工程学院);Meituan, Inc.(美团公司);Beijing Institute for General Artificial Intelligence, China(北京通用人工智能研究院);Ping An Technology, China(平安科技);Department of Computer Science, University of Manchester, UK(曼彻斯特大学计算机科学系)
Failures Are the Stepping Stones to Success: Enhancing Few-Shot In-Context Learning by Leveraging Negative Samples
Chengdu Institute of Computer Applications, Chinese Academy of Sciences(中国科学院成都计算机应用研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Multidisciplinary Research for Advanced Materials (IMRAM), Tohoku University(东北大学多学科先进材料研究所)
Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluation
Saarland University(萨尔兰大学);University of Cambridge(剑桥大学);Bar-Ilan University(巴伊兰大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学)
Demonstration Augmentation for Zero-shot In-context Learning
School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Beyond Many-Shot Translation: Scaling In-Context Demonstrations For Low-Resource Machine Translation
Institute of Information Science, Academia Sinica(台湾“中央研究院”信息科学研究所);National Taiwan University of Science and Technology(台湾科技大学);Ecole Centrale de Marseille(马赛中央理工学院);National University of Singapore(新加坡国立大学)
Few-Shot Anaphora Resolution in Scientific Protocols via Mixtures of In-Context Experts
School of Interactive Computing(交互计算学院);Georgia Institute of Technology(佐治亚理工学院)
指代消解是跨语言、文本类型和领域的信息抽取的重要任务,激发了对不需要大的注释数据集的方法的需求。上下文学习是一种很有前途的方法,但将上下文学习应用于指代消解还存在一些挑战。例如,编码一个由以下内容组成的上下文演示:一个照应词、一个段落长度的上下文和一个相应的先行词列表,需要在一个长序列的标记上调节语言模型,限制每个提示的演示数量。在本文中,我们提出了MICE(Mixtures of In-Context Experts),我们证明了它对于科学协议中的Few-Shot回指解析是有效的(Tamari et al.,2021年)。在只给出少量训练样本的情况下,MICE结合了数百名上下文专家的预测,使F1分数比竞争性即时检索基线提高了30%。此外,我们表明MICE可以用于训练紧凑的学生模型,而不牺牲性能。据我们所知,这是第一个工作,目前的实验结果表明,在上下文学习的有效性的任务,Few-Shot照应决议在科学协议。
Meta In-Context Learning Makes Large Language Models Better Zero and Few-Shot Relation Extractors
School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院);Beijing Institute of Computer Technology and Application(北京计算机技术及应用研究所)
Zero-shot Entity and Tweet Characterization with Designed Conditional Prompts and Contexts
International Institute of Information Technology, Bangalore(班加罗尔国际信息技术学院);Indraprastha Institute of Information Technology, Delhi(德里印德拉普拉斯塔信息技术学院);International Institute of Information Technology, Hyderabad(海得拉巴国际信息技术学院)
More is not always better? Enhancing Many-Shot In-Context Learning with Differentiated and Reweighting Objectives
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);MoonshotAI;Xiaomi AI Lab(小米AI实验室);University of Electronic Science and Technology of China(电子科技大学);Mohamed bin Zayed University of Artificial Intelligence(Mohamed bin Zayed人工智能大学);School of Artifcial Intelligence, Wuhan University(武汉大学人工智能学院);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MoE(下一代智能搜索与推荐工程技术研究中心,MoE)