XL2Bench: A Benchmark for Extremely Long Context Understanding with Long-range Dependencies.

Xuanfan Ni, Hengyi Cai, Xiaochi Wei, Shuaiqiang Wang, Dawei Yin, Piji Li · DOI · OpenReview

TL;DR

Large Language Models (LLMs) struggle with understanding extremely long texts due to limited context windows. This paper introduces XL2Bench, a novel benchmark with documents averaging over 100K words, designed to rigorously test LLMs' long-range dependency comprehension. Current LLMs perform poorly on XL2Bench, highlighting the need for better long-context understanding capabilities.

What Problem Does This Paper Address?

Modern Large Language Models (LLMs) have shown impressive capabilities, but a significant limitation is their fixed context window size. This constraint prevents them from processing and understanding extremely long documents, such as entire novels, research papers, or legal texts. While existing benchmarks have attempted to extend context lengths, they often do so by simply increasing the input size of traditional tasks, failing to capture the unique challenges of long-range dependencies and comprehensive understanding required for truly long texts. This gap hinders the development and evaluation of LLMs for real-world applications that involve extensive textual data.

Methods

The authors introduce XL2Bench, a benchmark designed to evaluate LLMs on extremely long texts with a focus on long-range dependencies. XL2Bench comprises three scenarios: Fiction Reading, Paper Reading, and Law Reading, each containing documents with an average length of over 100K words (English) or 200K characters (Chinese).

The benchmark features four tasks of increasing complexity:

  • Memory Retrieval: Locating specific information within the long text.
  • Detailed Understanding: Comprehending and synthesizing information from specific parts of the text.
  • Overall Understanding: Grasping the overarching themes and relationships across the entire document.
  • Open-ended Generation: Producing creative and inferential outputs based on the long text.

To construct XL2Bench, the authors employed a cost-effective methodology involving LLMs for data generation and augmentation, followed by meticulous human verification. They also developed three data augmentation strategies (text transformation, key information replacement, and text concatenation) to mitigate data contamination issues, ensuring models must truly comprehend the text rather than memorizing training data.

Datasets

XL2Bench itself is a newly introduced benchmark. It was constructed using:

  • Fiction Reading: A variety of novels in both Chinese and English.
  • Paper Reading: PDF versions and reviews of papers submitted to ICLR 2023.
  • Law Reading: A substantial collection of original Chinese legislations.

The construction process involved extracting content from these sources and using LLMs to generate questions and augment the data, with human verification to ensure quality.

Key Insights and Ideas

  • Current LLMs are far from human-level performance on long-context tasks: Even state-of-the-art models struggle significantly with understanding and reasoning over extremely long texts.
  • Long-range dependencies are a critical challenge: The benchmark's design specifically targets the ability to connect information across vast distances within a text, a capability where LLMs currently falter.
  • Data contamination is a serious concern: The authors' data augmentation strategies are crucial for ensuring that models are evaluated on their comprehension abilities rather than memorization of training data.
  • Retrieval-Augmented Generation (RAG) is insufficient for comprehensive understanding: RAG methods, which rely on retrieving relevant chunks, do not perform well on XL2Bench tasks that require holistic understanding, suggesting that true comprehension goes beyond simple retrieval.
  • Model size and architecture matter: Smaller models (7B parameters) generally perform poorly, and closed-source models tend to outperform open-source ones, indicating the importance of model scale and potentially proprietary architectural advancements.

Key Results

  • Overall Unsatisfactory Performance: LLMs consistently scored low across the 27 subtasks in XL2Bench, with performance significantly lagging behind human levels, especially in retrieval and counting tasks where humans approach 100% accuracy.
  • Context Window Limitations: Performance generally declines as text length increases, even for models with extended context windows.
  • Language Preference: Some models showed a preference for either Chinese or English tasks, potentially due to the composition of their training data.
  • Data Augmentation Effectiveness: The authors' data augmentation techniques were shown to be effective in reducing the likelihood of biased evaluations.
  • Human Evaluation: Human evaluation of fiction reading tasks confirmed that smaller models (7B) produced disorganized and incoherent outputs, while larger models (20B) showed better, though still suboptimal, performance.

Limitations and Future Work

Limitations: * Accessibility of LLMs: Many high-performing LLMs are not open-source or free, making extensive experimentation difficult for researchers with limited resources. * Computational Resources: Running large LLMs, especially those with extended context windows, requires significant GPU resources, posing a challenge for many researchers.

Future Work: The paper highlights that addressing context dependency is a critical area for future breakthroughs. The authors suggest that further research is needed to develop LLMs capable of truly comprehensive understanding of long texts. The XL2Bench benchmark itself is presented as a valuable resource for advancing this research.

Summary updated

BibTeX
@misc{ni2024xl,
  author = {Xuanfan Ni and Hengyi Cai and Xiaochi Wei and Shuaiqiang Wang and Dawei Yin and Piji Li},
  title = {{XL2Bench: A Benchmark for Extremely Long Context Understanding with Long-range Dependencies.}},
  year = {2024},
  eprint = {2404.05446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.05446},
}
Figure