Abstract
With the advancement of large language models (LLMs) and the expansion of their context windows, existing long-context benchmarks fall short in effectively evaluating the models’ comprehension and reasoning abilities in extended texts. Moreover, conventional benchmarks relying on F1 metrics often inaccurately score responses: they may undervalue correct answers that differ from the reference responses and overvalue incorrect ones that resemble the reference texts. In response to these limitations, we introduce Marathon, a novel evaluation benchmark that adopts a multiple-choice question format. It is specifically designed to overcome the constraints of previous benchmarks and provide a rapid, precise, and unbiased appraisal of the long-context comprehension skills of large language models. We conducted comprehensive evaluations on the Marathon benchmark with a range of state-of-the-art LLMs and assessed the effectiveness of various optimization strategies tailored for long-context generation. We anticipate that the Marathon benchmark and its associated leaderboard will enable a more precise and equitable evaluation of LLMs’ capabilities in understanding and reasoning over extended contexts.
Introduction
As Large Language Models (LLMs) evolve to support context windows exceeding 200,000 tokens, traditional evaluation methods have become increasingly inadequate. Researchers have introduced Marathon, a new benchmark designed to rigorously test how LLMs handle massive amounts of text. By moving away from traditional, often-flawed "exact match" scoring and adopting a challenging multiple-choice format, Marathon reveals that while Retrieval-Augmented Generation (RAG) is a powerful tool for long-context QA, models still struggle significantly with complex reasoning tasks like chronological reordering and numerical computation.
The Challenge of Long-Context Evaluation
Existing benchmarks often rely on metrics like F1-score or ROUGE, which compare a model's output to a reference answer word-for-word. This is problematic: a model might provide a perfectly correct answer in different words (getting a low score) or hallucinate a similar-looking but incorrect answer (getting a high score). Furthermore, simply "finding a needle in a haystack" is no longer a sufficient test of intelligence. True long-context capability requires the ability to reason across hundreds of pages—performing math, understanding timelines, or synthesizing information scattered across a document.
The Marathon Benchmark
The authors developed Marathon, a benchmark consisting of 1,530 test samples across six distinct tasks. To ensure precise evaluation, they adopted a multiple-choice format. A key innovation was the use of GPT-4 to generate "highly misleading" distractor options. By feeding GPT-4 small fragments of the long context and asking it to create plausible but incorrect answers based on those fragments, the researchers ensured that models cannot simply "guess" the right answer by spotting a familiar keyword; they must understand the global context to succeed.
The study also compared three common strategies for handling long sequences:
- Vanilla: Truncating the middle of the text to fit the model's native window.
- Prompt Compression: Using tools like LongLLMLingua to delete less important tokens.
- Retrieval-Augmented Generation (RAG): Using embedding models (OpenAI and Jina) to find and feed only the most relevant snippets to the LLM.
Dataset Composition
Marathon is built upon the foundations of two existing long-context datasets, LooGLE and LongBench, transforming them into a multiple-choice format across six categories:
- Comprehension and Reasoning: High-level understanding.
- Multiple Information Retrieval: Finding multiple related facts.
- Timeline Reorder: Sorting events chronologically (identified as highly difficult).
- Computation: Performing math based on scattered data.
- Passage Retrieval: Locating specific paragraphs.
- Short Dependency QA: Standard QA where the answer is localized.
Context lengths in the benchmark reach up to 260,000 characters, pushing the limits of current model architectures.
Key Insights and Results
- The RAG Advantage: For most QA-style tasks, RAG significantly outperformed prompt compression. For example, the Tulu2 model saw its accuracy jump from ~38% (Vanilla) to over 61% when using Jina embeddings.
- Reasoning vs. Retrieval: Models performed reasonably well at finding specific facts (Passage Retrieval), but their performance cratered on Timeline Reorder and Computation. In the Timeline Reorder task, the average accuracy across all models was only ~30%, barely better than random guessing (25%).
- The Instruction-Following Gap: Many open-source models failed to output their answers in the requested JSON format, often lapsing into "chatty" long-form responses. Longchat was a notable exception, showing ChatGPT-level proficiency in following formatting instructions.
- Model Leaders: GPT-4 remains the gold standard with an average accuracy of 78.59%. Among open-source "Vanilla" models, Yi-34B (55.91%) and ChatGLM3-6B (55.05%) were the top performers.
Limitations and Future Work
The authors acknowledge that the distribution of context lengths in Marathon is currently skewed, with most samples concentrated below 130k characters and very few exceeding 200k. Future work aims to balance these lengths, expand the benchmark to include multimodal data (video and image-heavy documents), and incorporate efficiency metrics like inference speed and memory consumption to provide a more holistic view of model performance in production environments.
Summary updated