[Paper Review] BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystack
BABILong benchmarks LLMs on long-context reasoning across 20 tasks with background text, revealing limited context utilization (10-20%), weak RAG performance, and strong recurrent-memory models that handle up to 11 million tokens.
In recent years, the input context sizes of large language models (LLMs) have increased dramatically. However, existing evaluation methods have not kept pace, failing to comprehensively assess the efficiency of models in handling long contexts. To bridge this gap, we introduce the BABILong benchmark, designed to test language models' ability to reason across facts distributed in extremely long documents. BABILong includes a diverse set of 20 reasoning tasks, including fact chaining, simple induction, deduction, counting, and handling lists/sets. These tasks are challenging on their own, and even more demanding when the required facts are scattered across long natural text. Our evaluations show that popular LLMs effectively utilize only 10-20\% of the context and their performance declines sharply with increased reasoning complexity. Among alternatives to in-context reasoning, Retrieval-Augmented Generation methods achieve a modest 60\% accuracy on single-fact question answering, independent of context length. Among context extension methods, the highest performance is demonstrated by recurrent memory transformers after fine-tuning, enabling the processing of lengths up to 50 million tokens. The BABILong benchmark is extendable to any length to support the evaluation of new upcoming models with increased capabilities, and we provide splits up to 10 million token lengths.
Motivation & Objective
- Assess how well current LLMs reason over facts distributed in extremely long documents.
- Evaluate effectiveness of context-extension methods and retrieval-augmented generation on long inputs.
- Provide an extensible benchmark with lengths up to 1 million tokens (tested up to 11 million) to evaluate newer models.
Proposed method
- Extend bAbI-style reasoning tasks by embedding task sentences in background text from PG19 to create long contexts.
- Evaluate 24 models across context lengths and task types including fact chaining, induction, deduction, counting, and lists/sets.
- Compare Retrieval-Augmented Generation (RAG) and context-extension methods (e.g., recurrent memory transformers).
- Fine-tune selected models on BABILong with curriculum learning from short to long sequences.
- Use predefined length splits up to 1M tokens, and test some models up to 11M tokens.
Experimental results
Research questions
- RQ1How do current LLMs perform on long-context reasoning tasks when facts are distributed across extremely long documents?
- RQ2To what extent do models utilize available context, and how does performance scale with context length and reasoning complexity?
- RQ3How do RAG and various context-extension approaches compare on BABILong tasks, especially for multi-hop reasoning?
- RQ4Can smaller, fine-tuned models (e.g., RMT, Mamba) outperform larger models or RAG at very long input lengths?
- RQ5What is the relationship between BABILong results and other benchmarks (e.g., MMLU, RULER) across different context lengths?
Key findings
- Popular LLMs effectively use only about 10-20% of the input context.
- Performance degrades sharply as reasoning complexity and input length increase.
- RAG methods achieve around 60% accuracy on single-fact questions, largely independent of context length.
- Fine-tuned recurrent memory transformers (RMT) process very long texts, up to 11 million tokens, outperforming RAG in long-context tasks.
- Mamba and RMT deliver the strongest results among evaluated models, with RMT maintaining capabilities far beyond training length (up to 11M tokens).
- Fine-tuning improves performance for longer contexts, but base-size models generally remain limited without specialized long-context adaptations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.