arXiv:2410.02694cs.CLcs.AI2024-10被引 121

提出全面评估长文本模型的新基准,解决旧方法不靠谱的问题。

HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughly

  • 设计涵盖七类应用场景的综合评测框架,支持128K上下文长度
  • 发现合成任务无法预测真实表现,开源模型在复杂推理上明显落后
  • 推荐使用RAG任务快速开发,适合需要全上下文理解的场景

现有长上下文语言模型(LCLMs)评测基准多依赖合成任务如针堆找针(NIAH)或任意任务子集,但这些方法未能覆盖多样下游应用,导致评估信号噪声大、结果不可靠。本文揭示其根源在于应用覆盖不足、上下文长度有限、度量不可靠及与基础模型不兼容。为此,我们提出HELMET(How to Evaluate Long-context Models Effectively and Thoroughly),包含七个以应用为中心的评测类别。通过支持最高128K token的可控长度、基于模型的可靠度量和少量样本提示,实现对前沿59个LCLMs的更一致可靠排名。研究发现:(1) 合成任务如NIAH不能有效预测下游性能;(2) HELMET各类别间趋势差异显著且相关性低;(3) 尽管多数模型在NIAH中表现完美,但开源模型在需全上下文推理或复杂指令遵循的任务中显著落后,且差距随长度增加而扩大。建议使用我们的RAG任务加速模型开发,因其易部署且能更好预测其他下游表现,主张采用跨多样化任务的全面评估。

原文摘要 · Abstract (English)

Many benchmarks exist for evaluating long-context language models (LCLMs), yet developers often rely on synthetic tasks such as needle-in-a-haystack (NIAH) or an arbitrary subset of tasks. However, it remains unclear whether these benchmarks reflect the diverse downstream applications of LCLMs, and such inconsistencies further complicate model comparison. We investigate the underlying reasons behind these practices and find that existing benchmarks often provide noisy signals due to limited coverage of applications, insufficient context lengths, unreliable metrics, and incompatibility with base models. In this work, we introduce HELMET (How to Evaluate Long-context Models Effectively and Thoroughly), a comprehensive benchmark encompassing seven diverse, application-centric categories. We also address several issues in previous benchmarks by adding controllable lengths up to 128K tokens, model-based evaluation for reliable metrics, and few-shot prompting for robustly evaluating base models. Consequently, we demonstrate that HELMET offers more reliable and consistent rankings of frontier LCLMs. Through a comprehensive study of 59 LCLMs, we find that (1) synthetic tasks like NIAH do not reliably predict downstream performance; (2) the diverse categories in HELMET exhibit distinct trends and low correlations with each other; and (3) while most LCLMs achieve perfect NIAH scores, open-source models significantly lag behind closed ones when tasks require full-context reasoning or following complex instructions -- the gap widens as length increases. Finally, we recommend using our RAG tasks for fast model development, as they are easy to run and better predict other downstream performance; ultimately, we advocate for a holistic evaluation across diverse tasks.

长文本评估RAG模型评测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。