atlas

Research map / Large language models / Retrieval and knowledge

BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystack

NeurIPS 2024 · Large language models › Retrieval and knowledge · approach: Long-context and personalized retrieval · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces BABILong, a scalable generative benchmark that hides bAbI reasoning facts inside PG19 book text to test long-context reasoning up to 10M tokens (50M for ARMT), and evaluates LLMs, RAG, long-context methods and fine-tuned recurrent memory models.

Problem

Existing long-context benchmarks (e.g., needle-in-a-haystack) are too simple, short, or unable to test multi-fact reasoning over very long contexts, so the effective context utilization of LLMs is unclear.

Approach

Generate arbitrarily long inputs by interleaving bAbI reasoning sentences (20 tasks) with natural PG19 background text, so models must find, store and reason over distributed facts; evaluate a wide range of LLMs, RAG pipelines, and fine-tuned recurrent memory transformers (RMT, ARMT, Mamba) on it.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use sentence-based retrieval instead of 512-token chunk retrieval (ablation)RAG on BABILong QA1 · BABILong QA1accuracyHelped
Increase retrieved sentences from top-5 to top-20 (ablation)Sentence-based RAG on BABILong QA1 · BABILong QA1accuracyNo clear effect
Fine-tune GPT-3.5-Turbo on QA1GPT-3.5-Turbo · BABILong QA1 across context lengthsaccuracyHelped
Fine-tune Mistral-7B on QA1Mistral-7B · BABILong QA1 across context lengthsaccuracyHelped
Fine-tune GPT-3.5 on QA1 (ablation)GPT-3.5 · BABILong QA2-QA5, no distractor textaccuracyHelped
Fine-tune Mistral-7B on QA1 (ablation)Mistral-7B · BABILong QA2-QA5, no distractor textaccuracyHurt
Use retrieval-augmented generation instead of direct prompting (ablation)GPT-4 and Llama-3 · BABILong long-context tasksaccuracyNo clear effect
Use RAG for multi-fact retrievalBABILong QA2 and QA3 · BABILong QA2 and QA3accuracyHurt
Fine-tune recurrent memory models on BABILongRMT and ARMT · BABILong, up to 10M tokensaccuracyHelped
Scale recurrent memory models beyond training sequence lengthRMT · BABILong, up to 11.1M tokensaccuracyNo clear effect
Use ARMT for very long sequencesARMT · BABILong, up to 50M tokenssequence length processed: 50 million tokensHelped
Use Mamba instead of recurrent memory modelsFine-tuned models on BABILong QA3 · BABILong QA3accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: bAbI PG19

Benchmarks: BABILong MMLU RULER

Metrics: accuracy correlation with MMLU

Baselines: GPT-4 Gemini 1.5 Pro GPT-3.5-Turbo Mamba RAG-C RAG-S Yarn Activation Beacon RULER MMLU

Builds on: bAbI PG19 Recurrent Memory Transformer Associative RMT RULER

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy