arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.04713cs.CLcs.IR
收藏

Sequential-NIAH:一个用于从长上下文中提取顺序针的大海捞针基准

Sequential-NIAH: A Needle-In-A-Haystack Benchmark for Extracting Sequential Needles from Long Contexts

Tencent Youtu Lab(腾讯优图实验室)

Yifei Yu, Qian-Wen Zhang, Lingfeng Qiao, Di Yin, Fang Li, Jie Wang, Zengxi Chen, Suncong Zheng, Xiaolong Liang, Xing Sun

AI总结:

本文提出Sequential-NIAH基准,通过合成时间、真实时间和真实逻辑三类顺序针生成流程及8K至128K上下文样本,系统评估LLMs从长文本中提取顺序信息的能力,并训练专用评估模型,实验表明现有模型准确率最高仅63.50%,揭示了长上下文顺序信息提取仍面临显著挑战。

摘要:

评估大语言模型(LLMs)处理长上下文的能力至关重要,尤其是检索嵌入其中的与查询相关的信息。我们引入了Sequential-NIAH,一个专门设计用于评估LLMs从长上下文中提取顺序信息项(称为“针”)能力的基准。该基准包含三种针生成流程:合成时间顺序、真实时间顺序和真实逻辑顺序,上下文长度从8K到128K不等,共包含14,000个样本(其中2,000个用于测试)。为了便于对该基准进行评估,我们训练了一个评估模型,通过将LLM响应的完整性和顺序一致性与真实答案进行比较来评估其正确性,这提供了比GPT-4或Claude更可靠的评估指标。我们在六个知名的LLM上进行了实验,结果表明,即使表现最好的模型在该基准测试集上的最高准确率也仅为63.50%。进一步分析揭示了增加上下文长度或针的数量所带来的日益增长的挑战,凸显了LLMs仍有很大的改进空间。此外,噪声分析验证了该基准的可靠性和挑战性,使Sequential-NIAH成为推进LLMs长文本信息提取能力研究的重要参考。

英文摘要:

Evaluating the ability of large language models (LLMs) to process lengthy contexts is critical, especially for retrieving query-relevant information embedded within them. We introduce Sequential-NIAH, a benchmark specifically designed to evaluate the capability of LLMs to extract sequential information items (known as \emph{needles}) from long contexts. The benchmark includes three needle generation pipelines: synthetic-temporal, real-temporal, and real-logical orders, with context lengths ranging from 8K to 128K, which comprises 14,000 samples (2,000 for testing). To facilitate the evaluation of this benchmark, we trained an evaluation model that assesses the correctness of LLM responses by comparing their completeness and sequential consistency against the ground truth, which provides a more reliable evaluation metric than GPT-4 or Claude. We conducted experiments on six well-known LLMs, revealing that even the best-performing model achieved a maximum accuracy of only 63.50% on test set of this benchmark. Further analysis highlights the growing challenges posed by increasing the context length or the number of needles, underscoring substantial room for improvement of LLMs. Additionally, noise analysis validates the reliability and challenge of the benchmark, making Sequential-NIAH an important reference for advancing research on long text information extraction capabilities of LLMs.

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

↑