L-Eval: Instituting Standardized Evaluation for Long Context Language Models

Chenxin An, Shansan Gong, Ming Zhong, Xingjian Zhao, Mukai Li, Jun Zhang, Lingpeng Kong, Xipeng Qiu

Introduction

As Large Language Models (LLMs) evolve, their context windows have expanded dramatically, with models like GPT-4 and Claude supporting 100k tokens or more. However, evaluation methodologies have struggled to keep pace. Existing benchmarks often feature relatively short inputs (under 16k tokens) and are heavily biased toward summarization tasks. Furthermore, evaluating long-form generation is plagued by "length bias," where automated metrics like ROUGE penalize models for being more verbose than human references, even when the content is accurate.

To address these gaps, the authors introduce L-Eval, a comprehensive benchmark designed to stress-test Long-Context Language Models (LCLMs) across 20 diverse tasks with inputs reaching up to 200k tokens.

The L-Eval Benchmark

L-Eval consists of 508 long documents and over 2,000 human-labeled query-response pairs. The tasks are categorized into "closed-ended" (objective, exact-match) and "open-ended" (subjective, generation-based) challenges.

Overview of the 20 diverse tasks included in the L-Eval benchmark, categorized by type and domain.

The benchmark includes several datasets annotated from scratch to ensure they are not part of the models' training data, such as Coursera (reasoning over video subtitles), SFiction (science fiction QA), CodeU (deducing program outputs), and LongFQA (finance-specific QA). These tasks require more than simple retrieval; they demand complex reasoning over long-range dependencies.

Solving the Length Bias: LIE Evaluation

A core contribution of this work is the Length-Instruction-Enhanced (LIE) evaluation method. Traditional n-gram metrics like ROUGE-L and F1 often fail to correlate with human judgment in long-context settings because they are sensitive to output length.

In LIE evaluation, the prompt explicitly instructs the model to match the word count of the reference answer. By controlling for this variable, the authors found that automated metrics became significantly more reliable.

Impact of Length-Instruction-Enhanced (LIE) evaluation on the correlation between automatic metrics and human judgment.

As shown in the figure above, the Kendall-Tau correlation coefficient for ROUGE-L jumps from approximately 0.5 to over 0.8 when LIE is applied. When using GPT-4 as an automated judge with LIE, the correlation with human judgment reaches a near-perfect 1.0.

Key Insights and Model Performance

  • Commercial Dominance: GPT-4-32k and Claude-100k maintain a substantial lead over open-source alternatives. There remains a ~20-point accuracy gap on closed-ended tasks between the best open-source models and GPT-4.
  • Retrieval vs. Reasoning: While techniques like NTK-aware RoPE help models find specific information (the "needle in a haystack"), they can paradoxically degrade performance on tasks requiring mathematical reasoning over the same context.
  • "Lost in the Instruction": Open-source models frequently struggle to follow complex instructions when the input exceeds 4k tokens, leading to a high rate of invalid outputs compared to commercial models.
  • LCLMs vs. RAG: The study suggests that end-to-end long-context models generally outperform Retrieval-Augmented Generation (RAG) systems, indicating that holistic context processing is superior to snippet-based searching for complex understanding.

Conclusion

L-Eval provides a much-needed standardized yardstick for the long-context era. By introducing diverse, high-quality datasets and the LIE evaluation technique, the authors provide a pathway for more accurate and cost-effective assessment of LCLMs. While commercial models currently lead, the benchmark highlights critical areas for improvement in open-source models, particularly in instruction following and long-range logical tracing.

Summary updated

BibTeX
@inproceedings{an2024l,
  author = {Chenxin An and Shansan Gong and Ming Zhong and Xingjian Zhao and Mukai Li and Jun Zhang and Lingpeng Kong and Xipeng Qiu},
  title = {{L-Eval: Instituting Standardized Evaluation for Long Context Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.776},
}
Figure