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

长上下文模型的上下文学习:深入探索

In-Context Learning with Long-Context Models: An In-Depth Exploration

Carnegie Mellon University(卡内基梅隆大学);Tel Aviv University(特拉维夫大学);Google DeepMind(谷歌DeepMind)

Amanda Bertsch, Maor Ivgi, Emily Xiao, Uri Alon, Jonathan Berant, Matthew R. Gormley, Graham Neubig

AI总结:

本文研究了极端规模下长上下文模型的上下文学习行为,发现其性能随示例增加持续提升,对比了示例检索与微调,并揭示了长上下文ICL对输入重排不敏感等特性,表明其是有效工具且未必需要长上下文编码。

摘要:

随着模型上下文长度持续增加,可在上下文中提供的示例数量已接近整个训练数据集的规模。我们在多个数据集和模型上研究了这种极端规模下的上下文学习(ICL)行为。我们表明,对于许多具有大标签空间的数据集,性能随着数千个示例的增加而持续提升。我们将此与示例检索和微调进行对比:示例检索在低上下文长度下表现出色,但在示例增多时增益递减;微调比 ICL 更需要数据,但通过额外数据可以超越长上下文 ICL 的性能。我们利用 ICL 设置研究了上下文学习和长上下文模型的多个属性。结果表明,长上下文 ICL 对随机输入重排的敏感度低于短上下文 ICL,同标签示例的分组会对性能产生负面影响,且性能提升并非源于将许多示例一起编码带来的累积增益。我们得出结论,长上下文 ICL 可以作为一种有效的工具,并且可能根本不需要长上下文来编码示例集。

英文摘要:

As model context lengths continue to increase, the number of demonstrations that can be provided in-context approaches the size of entire training datasets. We study the behavior of in-context learning (ICL) at this extreme scale on multiple datasets and models. We show that, for many datasets with large label spaces, performance continues to increase with thousands of demonstrations. We contrast this with example retrieval and finetuning: example retrieval shows excellent performance at low context lengths but has diminished gains with more demonstrations; finetuning is more data hungry than ICL but can exceed long-context ICL performance with additional data. We use the ICL setting to study several properties of both in-context learning and long-context models. We show that long-context ICL is less sensitive to random input shuffling than short-context ICL, that grouping of same-label examples negatively impacts performance, and that the performance boosts do not arise from cumulative gain from encoding many examples together. We conclude that long-context ICL can be an effective tool, and may not require long-context for encoding the demonstration set at all.

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

↑