arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.07130cs.CL
收藏

面向长上下文评估的多示例上下文学习研究

On Many-Shot In-Context Learning for Long-Context Evaluation

Computer Science and Engineering, University of Michigan(计算机科学与工程系,密歇根大学)

Kaijian Zou, Muhammad Khalifa, Lu Wang

AI总结:

该研究通过多示例上下文学习探究长上下文语言模型评估,划分出相似样本学习与全样本学习两类任务,推出MANYICLBENCH基准测试12款模型,发现全样本学习任务下模型长上下文性能下降更显著。

摘要:

多示例上下文学习(ICL)已成为一种兼具利用与测试大语言模型长上下文处理能力的独特设置。本文通过多示例ICL深入探究长上下文语言模型(LCLM)的评估问题。我们首先提出问题:哪些类型的ICL任务能从额外演示中获益,以及它们在评估LCLM方面效果如何?研究发现,分类和摘要任务的性能会随额外演示提升,而翻译和推理任务未呈现明确趋势。接下来,我们探究不同任务对检索与全局上下文理解的需求程度。我们开发了相关指标,将ICL任务分为两类:(i)相似样本学习(SSL):即检索最相似示例即可获得良好性能的任务;(ii)全样本学习(ASL):即需要深入理解提示中所有示例的任务。最后,我们提出了一个新的多示例ICL基准MANYICLBENCH,用于刻画模型在这两方面的能力,并使用MANYICLBENCH对12个LCLM进行了基准测试。我们发现,尽管当前最优模型在SSL任务中最高可在64k token长度下保持良好性能,但许多模型在ASL任务中仅达到16k token时就出现显著性能下降。

英文摘要:

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.

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

↑