LooGLE: Can Long-Context Language Models Understand Long Contexts?

Jiaqi Li, Mengmeng Wang, Zilong Zheng, Muhan Zhang

Abstract

Large language models (LLMs) are typically limited to processing texts within context window size, which has spurred significant research efforts into enhancing LLMs’ long-context understanding as well as developing high-quality benchmarks to evaluate the ability. However, prior datasets suffer from short comings like short length compared to the context window of modern LLMs; outdated documents that might have data leakage problems; and an emphasis on short dependency tasks only. In this paper, we present LooGLE , a Long Context Generic Language Evaluation benchmark. It features documents post-2022, with over 24,000 tokens per document and 6,000 newly generated questions spanning varying dependency ranges in diverse domains. Human annotators meticulously crafted over 1,100 high-quality question-answer (QA) pairs with thorough cross-validation for a most precise assessment of LLMs’ long dependency capabilities. We conduct a comprehensive evaluation of representative LLMs on LooGLE . The results indicate that most LLMs have shockingly bad long context ability and fail to capture long dependencies in the context, even when their context window size is enough to fit the entire document. Our results shed light on enhancing the “true long-context understanding” ability of LLMs instead of merely enlarging their context window.

Introduction

In the race to build the ultimate Large Language Model (LLM), context window size has become a primary metric of "horsepower," with windows expanding from 4k to over a million tokens. However, a critical question remains: does a larger window translate to deeper understanding? Researchers from BIGAI and Peking University introduce LooGLE, a benchmark designed to distinguish between context window capacity (the volume of data a model can ingest) and long-context understanding (the ability to reason over that data).

The study reveals a sobering reality: while modern LLMs are proficient at "finding a needle in a haystack" (short-dependency retrieval), they struggle significantly with tasks that require connecting dots scattered across dozens of pages, even when the entire text fits within their context window.

The LooGLE Benchmark

LooGLE addresses three fundamental flaws in existing long-context benchmarks: insufficient document length, potential data leakage from pre-2022 training sets, and an over-reliance on low-complexity retrieval tasks.

The LooGLE evaluation framework: human-annotated long documents are processed by LLMs to perform various long-dependency and short-dependency tasks.

The benchmark utilizes 776 documents published after January 2022, sourced from arXiv, Wikipedia, and film scripts, with an average length of approximately 24,000 tokens. To ensure high-quality evaluation, the researchers employed a meticulous three-step manual annotation process. This resulted in 1,101 human-verified long-dependency question-answer (QA) pairs, where evidence is distributed across the entire document.

Experimental Insights and Results

The evaluation of representative LLMs on LooGLE highlights a significant "understanding gap" between short and long dependency tasks.

Key Insights:

  • The Understanding Gap: Models show a massive performance drop when moving from simple retrieval (like Cloze tests) to long-dependency tasks (like timeline reordering). While models can find isolated facts, they struggle to sequence them or reason across long spans.
  • Window Size vs. Performance: Simply increasing the context window does not solve the problem. Models often fail to capture dependencies between distant segments even when the document fits entirely within their window.
  • Retrieval Limitations: Retrieval-augmented generation (RAG) helps with short QA but offers marginal or even negative gains for complex long-dependency tasks because the necessary evidence is too distributed to be captured in a few retrieved chunks.

Performance Summary:

  • Commercial Dominance: GPT-4-32k was the top performer but only achieved roughly 40% accuracy on long-dependency tasks. Claude 3 Opus showed competitive performance, particularly in summarization.
  • Open-Source Struggle: Models like Llama-2-7B-32K or ChatGLM2 lagged far behind, frequently failing to follow formatting instructions or hallucinating evidence.
  • Task Difficulty: Summarization is generally handled well by commercial models, but timeline reordering and multi-step calculations remain extremely difficult, highlighting a lack of "temporal awareness."

Conclusion

LooGLE demonstrates that enlarging context windows is not a panacea for long-document understanding. The results suggest that the research community must focus on architectural improvements—such as better memory mechanisms or specialized training objectives—that specifically target the ability to model long-range inter-dependencies.

Reference: Li, J., et al. (2024). LooGLE: Can Long-Context Language Models Understand Long Contexts? Proceedings of ACL 2024.

Summary updated

BibTeX
@inproceedings{li2024loogle,
  author = {Jiaqi Li and Mengmeng Wang and Zilong Zheng and Muhan Zhang},
  title = {{LooGLE: Can Long-Context Language Models Understand Long Contexts?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=aXdkCHjEgt},
}
Figure