Abstract
As Large Language Models (LLMs) scale to support context windows of 32k to 1M tokens, evaluating their true reasoning capabilities over long sequences becomes critical. We introduce M4LE, a comprehensive benchmark comprising 36 datasets across 11 task types and 12 domains. Unlike existing benchmarks that rely on natural long documents prone to data leakage, M4LE uses an automated construction method to create "synthetic-yet-realistic" tasks. Our evaluation reveals that while models excel at single-span retrieval, they face a "multi-span wall" when required to synthesize information from multiple locations or rely on semantic hints.
Introduction
The current "long-context" arms race in LLM development lacks granular evaluation tools. Existing benchmarks often use naturally occurring long documents, which suffer from potential data leakage and a lack of control over retrieval difficulty. It is difficult to determine if a model's success is due to genuine reasoning or simply having seen the text during pre-training. M4LE addresses these issues by providing a controlled environment to measure how a model utilizes long context across multiple dimensions.
The M4LE Framework
The core of M4LE is its multi-dimensional evaluation strategy, categorizing long-context understanding into five distinct abilities and four primary axes: Multi-Task, Multi-Domain, Multi-Range, and Multi-Ability.
The five abilities are defined as:
- Explicit Single-Span: Retrieving information from a specific paragraph using a clear identifier.
- Semantic Single-Span: Locating a paragraph based on meaning-based hints.
- Explicit Multi-Span: Synthesizing information from multiple labeled sections.
- Semantic Multi-Span: The most challenging tier, requiring the connection of multiple pieces of information based solely on semantic cues.
- Global Understanding: Tasks requiring a holistic view of the entire context.
Methodology and Datasets
M4LE utilizes an automated construction method. High-quality short-context tasks (e.g., news summarization) are embedded into a "haystack" of distractor content. By varying the number of distractors, the benchmark precisely controls input length from 1k to 32k tokens. The benchmark aggregates 36 NLP datasets across 12 domains (including Wikipedia, Academic, News, and E-commerce) and 11 task types. It supports both English and Chinese, testing cross-lingual stability.
Key Insights
Our analysis highlights several critical trends in long-context modeling:
- The Multi-Span Struggle: Models perform well on "needle-in-a-haystack" tasks (single-span) but struggle significantly when tasks require attending to multiple spans. This suggests current attention mechanisms are inefficient at "hopping" between relevant sections.
- Semantic vs. Explicit Retrieval: For advanced models like GPT-3.5-Turbo, semantic hints are harder to process than explicit IDs. Conversely, weaker models often fail to use identifiers as anchors, making explicit retrieval equally difficult.
- Fine-tuning Limitations: Models fine-tuned for long contexts (e.g., LongChat) do not show a massive advantage over base models using scaling tricks like NTK-aware RoPE, indicating that optimal long-context training recipes are still being sought.
Experimental Results
Evaluation across various LLMs shows a universal performance decay as context length increases.
Key findings include:
- GPT-3.5-Turbo-16K remains the leader but still experiences a ~28% performance drop at 8k tokens.
- Lost-in-the-Middle: We confirmed that models are significantly better at utilizing information at the beginning or end of the input, often ignoring the middle.
- The Open-Source Gap: Most open-source models, including LLaMA 2 and Vicuna, show a performance "cliff" beyond 4k tokens, even with modifications for longer sequences.
Conclusion
M4LE provides a rigorous testbed for long-context LLMs, exposing the "multi-span wall" and the limitations of current retrieval strategies. Future work will involve extending the benchmark to 32k+ tokens and exploring more sophisticated prompting techniques to mitigate multi-span failures.
Summary updated