[论文解读] Long-context LLMs Struggle with Long In-context Learning
这篇论文提出 LongICLBench,用于评估极端标签分类的长上下文学习,并显示13个长上下文LLM在最难任务上表现吃力,性能往往在中等长度示例左右达到峰值,提示更长的提示会降级;示例分组/分布也会影响结果。
Large Language Models (LLMs) have made significant strides in handling long sequences. Some models like Gemini could even to be capable of dealing with millions of tokens. However, their performance evaluation has largely been confined to metrics like perplexity and synthetic tasks, which may not fully capture their true abilities in more challenging, real-world scenarios. We introduce a benchmark (LongICLBench) for long in-context learning in extreme-label classification using six datasets with 28 to 174 classes and input lengths from 2K to 50K tokens. Our benchmark requires LLMs to comprehend the entire input to recognize the massive label spaces to make correct predictions. We evaluate on 15 long-context LLMs and find that they perform well on less challenging classification tasks with smaller label space and shorter demonstrations. However, they struggle with more challenging task like Discovery with 174 labels, suggesting a gap in their ability to process long, context-rich sequences. Further analysis reveals a bias towards labels presented later in the sequence and a need for improved reasoning over multiple pieces of information. Our study reveals that long context understanding and reasoning is still a challenging task for the existing LLMs. We believe LongICLBench could serve as a more realistic evaluation for the future long-context LLMs.
研究动机与目标
- 推动对超越困惑度和合成任务的长上下文在-context学习的评估。
- 创建 LongICLBench,用于评估在具有大标签空间的极端标签分类中的长上下文 ICL。
- 分析示例长度和标签分布如何影响 LLM 在具有挑战性的任务上的表现。
- 提供见解以指导未来的长上下文模型设计和评估。
提出的方法
- 挑选六个长上下文、极端标签分类数据集,标签数从 28 到 174,演示文段从 2K 到 50K token。
- 在 LongICLBench 上评估 13 个长上下文 LLM(开源模型,以及如 GPT-4-turbo 的 API 模型)。
- 使用每标签的一-shot 到五-shot 设置,并确保演示在标签分布上均匀。
- 在不同上下文长度下,测量分类任务的准确率和实体/关系任务的 F1。
- 分析模型对提示实例位置的敏感性,以及同标签演示的分组与分散对结果的影响。
实验结果
研究问题
- RQ1现有的长上下文 LLM 能否在极端标签空间中,对极长的演示文本进行上下文学习?
- RQ2演示长度如何在不同难度和标签数量的数据集上影响性能?
- RQ3模型架构或提示结构因素(如实例位置)是否显著影响长上下文 ICL 能力?
- RQ4是否存在一致的降解模式(如线性),随着上下文长度增加,某些模型是否更鲁棒?
主要发现
- Transformers 通常优于基于 RNN 的模型,但在长上下文极端标签 ICL 任务上仍落后于像 GPT-4-turbo 这样的 API 模型。
- 性能通常随上下文增大而提升直到某个点(大约 20K token),但随后随着提示变长而降解或波动。
- 在最难的 Discovery 数据集,174 个标签,所有模型都无法区分细粒度标签,精度接近为零。
- 一些模型(如 Qwen、Mistral)显示随演示长度的近线性降解,表明任务复杂度增加时具有可预测的扩展性。
- 提示设计因素,尤其是按标签在提示中分布的演示,可能显著影响各模型的性能。
- GPT-4-turbo 常提供最强表现,但也并非免疫于因提示分组或实例分布引起的下降。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。