arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.16695cs.CLcs.AIcs.LG
收藏

用终身ICL和任务干草堆压力测试长上下文语言模型

Stress-Testing Long-Context Language Models with Lifelong ICL and Task Haystack

Tsinghua University(清华大学);University of Southern California(南加利福尼亚大学)

Xiaoyue Xu, Qinyuan Ye, Xiang Ren

AI总结:

该研究提出终身ICL问题设置与任务干草堆评估套件,测试长上下文语言模型在终身ICL中利用上下文的能力,基准测试发现前沿模型平均失败率15%,开源模型最高61%,揭示干扰、近因偏差等影响因素及模型鲁棒性问题。

摘要:

我们提出终身ICL(终身上下文学习)这一问题设置,旨在挑战长上下文语言模型(LMs)通过上下文学习(ICL)掌握一系列语言任务。我们进一步推出任务干草堆(Task Haystack)评估套件,专门用于评估和诊断长上下文语言模型在终身ICL中如何利用上下文。当给定任务指令和测试输入时,长上下文语言模型需利用终身ICL提示中的相关演示,避免其他任务的干扰和影响,且测试准确率不应显著低于单任务ICL基线。任务干草堆受广泛采用的“针在草堆中”(NIAH)评估启发,但带来独特新挑战:要求模型(1)更深入利用上下文,而非简单复制粘贴;(2)在不断变化的主题和任务长流中导航,模拟现实场景中上下文的复杂性和动态性。此外,任务干草堆继承NIAH的可控性,为模型开发者提供有效识别模型漏洞的工具和可视化手段。我们用任务干草堆对14个长上下文语言模型进行基准测试,发现GPT-4o等前沿模型仍难以应对该设置,平均失败率达15%;多数开源权重模型差距更大,失败率最高达61%。在受控分析中,我们确定干扰和近因偏差等因素导致这些失败案例;测试时任务指令被改写或ICL演示过度重复时,性能会下降,引发对长上下文语言模型鲁棒性、指令理解能力及真实上下文利用能力的担忧。

英文摘要:

We introduce Lifelong ICL, a problem setting that challenges long-context language models (LMs) to learn a sequence of language tasks through in-context learning (ICL). We further introduce Task Haystack, an evaluation suite dedicated to assessing and diagnosing how long-context LMs utilizes contexts in Lifelong ICL. When given a task instruction and test inputs, long-context LMs are expected to leverage the relevant demonstrations in the Lifelong ICL prompt, avoid distraction and interference from other tasks, and achieve test accuracies that are not significantly worse than those of the Single-task ICL baseline. Task Haystack draws inspiration from the widely-adopted "needle-in-a-haystack" (NIAH) evaluation, but presents distinct new challenges. It requires models (1) to utilize the contexts at a deeper level, rather than resorting to simple copying and pasting; (2) to navigate through long streams of evolving topics and tasks, proxying the complexities and dynamism of contexts in real-world scenarios. Additionally, Task Haystack inherits the controllability of NIAH, providing model developers with tools and visualizations to identify model vulnerabilities effectively. We benchmark 14 long-context LMs using Task Haystack, finding that frontier models like GPT-4o still struggle with the setting, failing on 15% of cases on average. Most open-weight models further lack behind by a large margin, with failure rates reaching up to 61%. In our controlled analysis, we identify factors such as distraction and recency bias as contributors to these failure cases. Further, performance declines when task instructions are paraphrased at test time or when ICL demonstrations are repeated excessively, raising concerns about the robustness, instruction understanding, and true context utilization of long-context LMs.

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

↑