LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256K

Tao Yuan, Xuefei Ning, Dong Zhou, Zhijie Yang, Shiyao Li, Minghui Zhuang, Zheyue Tan, Zhuyu Yao, Dahua Lin, Boxun Li, Guohao Dai, Shengen Yan, Yu Wang

TL;DR

Large Language Models (LLMs) are boasting ever-increasing context windows, but current benchmarks struggle to keep pace, suffering from knowledge leakage and biased evaluations. This paper introduces LV-Eval, a new benchmark with five length levels up to 256K words, designed to provide a more robust and controllable evaluation of long-context understanding. LV-Eval employs novel techniques to mitigate leakage and introduce challenging, realistic scenarios, revealing significant performance drops in LLMs when faced with confusing information.

What Problem Does This Paper Address?

The rapid advancement of LLMs has led to models capable of processing context lengths of 256K tokens or more. However, existing benchmarks for evaluating long-context understanding are significantly shorter (typically 5K-21K words) and suffer from critical flaws. These include:

  • Insufficient Context Length: The available benchmarks don't push the limits of modern LLMs, failing to adequately test their claimed long-context capabilities.
  • Knowledge Leakage: Many benchmarks use publicly available documents that might have been part of LLM training data. This allows models to answer questions based on memorization rather than true comprehension of the provided context, inflating their scores.
  • Inaccurate Metrics: Standard metrics like F1 score are often sensitive to answer formatting and irrelevant words, leading to biased and unreliable evaluations of answer quality.

These issues collectively create a biased and incomplete picture of an LLM's long-context understanding abilities.

Methods

LV-Eval tackles these problems with a multi-pronged approach:

  • Controllable Evaluation with Length Levels: LV-Eval features five distinct length levels (16K, 32K, 64K, 128K, and 256K words). Crucially, each QA pair is tested across all these lengths using the same core question and answer, but with varying context content. This allows for a direct comparison of performance as context length increases.
  • Confusing Facts Insertion (CFI): To increase the difficulty and realism, the authors use GPT-4 to generate plausible but factually incorrect statements that are similar to the true facts in the context. These are then manually revised by annotators to resolve conflicts and inserted into the context. This tests a model's ability to discern relevant information amidst misleading details.
  • Keyword and Phrase Replacement (KPR): To combat knowledge leakage, key terms and phrases in both the context and QA pairs are replaced with synonyms or rephrased. This forces LLMs to rely on understanding the context rather than recalling pre-existing knowledge.
  • Keyword-Recall-Based Metric: A novel two-stage metric is introduced. First, it calculates the recall of manually annotated "answer keywords." If this recall meets a threshold, a second stage calculates an F1 score after filtering out a blacklist of common, non-informative words. This provides a more objective measure of answer quality by focusing on essential information.

Datasets

LV-Eval is a new benchmark comprising 11 bilingual datasets, split into single-hop QA and multi-hop QA tasks. These datasets are constructed by adapting existing public datasets and creating synthetic contexts. The datasets include:

  • Single-hop QA: lic-mixup, loogle-SD-mixup, cmrc-mixup, multifieldqa-en-mixup, multifieldqa-zh-mixup, factrecall-en, and factrecall-zh.
  • Multi-hop QA: dureader-mixup, loogle-CR-mixup, loogle-MR-mixup, and hotpotwikiqa-mixup.

The factrecall-en and factrecall-zh datasets are particularly notable for their "needle in a haystack" style, where a single fact needs to be retrieved from a long context.

Key Insights and Ideas

  • The "Needle in a Haystack" is Getting Harder: LLMs' performance can significantly degrade when faced with confusing information, especially in tasks designed to mimic a "needle in a haystack" scenario. This highlights the challenge of robust information retrieval amidst noise.
  • Knowledge Leakage is a Real Problem: The KPR technique demonstrably reduces scores on datasets sourced from common knowledge bases, confirming that LLMs often rely on memorization rather than context comprehension.
  • Context Length Matters, But Not Always Linearly: While some models show a gentle performance degradation as context length increases (e.g., Llama3-8B-1M), others experience sharp drops even within their stated context limits, suggesting that simply increasing token capacity isn't a complete solution.
  • Language Differences Impact Interference: The study observed that LLMs' susceptibility to confusing facts can vary significantly across languages, with Chinese datasets sometimes showing a higher degradation than English ones.

Key Results

The paper evaluates 15 LLMs on LV-Eval and reports several key findings:

  • Top Performers: Moonshot-v1 and recent large-scale models like Qwen-2.5-72B and Llama-3.1-70B achieve the highest scores, particularly at lengths below 64K.
  • Distinct Score Trends: Models exhibit varied performance degradation patterns. For instance, GLM-4-9B-128k, Yi-6B-200k, and Llama3-8B-1M show relatively gentle declines, though their absolute scores might not always surpass models with shorter context lengths.
  • Impact of CFI: Confusing Facts Insertion (CFI) leads to a notable degradation in LLM scores, with some models showing substantial drops, indicating their susceptibility to misleading information.
  • KPR Effectiveness: Keyword and Phrase Replacement (KPR) effectively mitigates knowledge leakage, as evidenced by decreased scores on datasets prone to memorization.
  • Multi-hop QA is Challenging: LLMs generally perform worse on multi-hop QA tasks compared to single-hop QA, especially when confusing facts are present.

Limitations and Future Work

The authors acknowledge several limitations:

  • Task Scope: LV-Eval currently focuses on QA tasks and does not include other complex tasks like summarization.
  • Model Coverage: Due to computational costs, some of the very latest LLMs (e.g., GPT-4-128k, GPT-4o) were not included in the evaluation.
  • CFI Human Effort: The Confusing Facts Insertion technique relies on manual revision, which is labor-intensive. Future work could explore leveraging stronger LLMs to automate this process.
  • Metric Bias: While the keyword-recall metric is an improvement, the authors note that inter-annotator agreement was not formally measured.

Future work could involve expanding LV-Eval to include more task types, evaluating a wider range of LLMs, and exploring more automated methods for generating challenging test cases.

Summary updated

BibTeX
@inproceedings{yuan2025lv,
  author = {Tao Yuan and Xuefei Ning and Dong Zhou and Zhijie Yang and Shiyao Li and Minghui Zhuang and Zheyue Tan and Zhuyu Yao and Dahua Lin and Boxun Li and Guohao Dai and Shengen Yan and Yu Wang},
  title = {{LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256K}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=r0AXK5Cnhr},
}
Figure