Abstract
Existing frameworks for evaluating long-context language models (LCLM) can be broadly categorized into real-world and synthetic tasks. Despite their utility, both approaches are accompanied by certain intrinsic limitations. Real-world tasks are too complex to interpret or characterize and are susceptible to data contamination. In contrast, synthetic tasks often adopt the needle-in-the-haystack (NIAH) format, wherein a lack of coherence between the "needle" and the "haystack" compromises their validity as proxies for realistic applications. In response to these challenges, we posit that an ideal long-context evaluation framework should be characterized by three essential features: seamless context, controllable setting, and sound evaluation. This study introduces LongBioBench, a novel benchmark that utilizes artificially generated biographies as a controlled environment for assessing LCLMs across dimensions of understanding, reasoning, and trustworthiness. Our experimental evaluation, which includes 18 LCLMs in total, demonstrates that most models still exhibit deficiencies in semantic understanding and elementary reasoning over retrieved results and are less trustworthy as context length increases. Our further analysis indicates some design choices employed by existing synthetic benchmarks, such as contextual non-coherence, numerical needles, and the absence of distractors, rendering them vulnerable to test the model long-context capabilities. Moreover, we also reveal that long-context continual pretraining primarily adjusts RoPE embedding to accommodate extended context lengths. To sum up, compared to previous synthetic benchmarks, LongBioBench achieves a better trade-off between mirroring authentic language tasks and maintaining controllability, and is highly interpretable and configurable.
Introduction
Evaluating the performance of Large Language Models (LLMs) over massive context windows (e.g., 128k+ tokens) presents significant challenges. Current benchmarks typically fall into two categories: real-world tasks and synthetic tasks. Real-world tasks, such as long-document summarization, offer authenticity but suffer from potential data contamination and a lack of fine-grained control. Conversely, synthetic tasks like "Needle-in-a-Haystack" (NIAH) are highly controllable but often lack semantic coherence. For instance, a model might find a "needle" simply because it stands out as semantically unrelated to the surrounding "haystack," creating a shortcut that does not reflect real-world complexity.
The LongBioBench Framework
To address these limitations, we propose LongBioBench, a benchmark designed to be synthetic and controllable yet semantically seamless. LongBioBench utilizes a generator to create fictional biographies, where each "bio" contains specific attributes like name, birthdate, and hobby. This approach ensures that the "needle" is semantically indistinguishable from the "haystack" of other biographies.
The framework is built on three pillars:
- Seamless Context: Target information is embedded within hundreds of similar biographies, preventing easy retrieval via semantic outliers.
- Controllability: Parameters such as context length, number of retrievals, and distractor density can be precisely tuned.
- Sound Evaluation: The use of fictional data eliminates reliance on parametric knowledge, and evaluation is conducted via exact-match metrics for high interpretability.
LongBioBench is highly extensible, supporting tasks ranging from simple retrieval (Understanding) to complex numerical operations (Reasoning) and source attribution (Trustworthiness).
Experimental Results and Insights
We evaluated 18 LCLMs, including state-of-the-art models like GPT-4o, Qwen2.5, and Llama 3.1. Our findings reveal a significant "reasoning gap." While top-tier models excel at simple retrieval, their performance degrades sharply when required to reason over retrieved facts or maintain trustworthiness.
Key insights from our evaluation include:
- The Coherence Trap: Models perform significantly better when the context is incoherent. Standard NIAH tests may overestimate model capabilities by providing unintended retrieval cues.
- Retrieval vs. Reasoning: There is a massive performance gap between finding a fact and using it. For example, models may retrieve two dates but fail to calculate the difference between them.
- Trustworthiness Decline: As context length increases, models are less likely to cite sources correctly or admit when information is missing, leading to increased hallucinations.
- Effective Context Window: Most models show a sharp performance drop-off beyond 64k tokens, suggesting their effective context window is smaller than advertised.
Conclusion
LongBioBench provides a more rigorous and interpretable evaluation of long-context capabilities by bridging the gap between synthetic controllability and real-world semantic coherence. Future work will expand the benchmark to include more complex reasoning patterns and evaluate emerging non-Transformer architectures.
Summary updated