In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Miss
Not on the map. Why?
Abstract (arXiv)
This paper addresses the challenge of processing long documents using generative transformer models. To evaluate different approaches, we introduce BABILong, a new benchmark designed to assess model capabilities in extracting and processing distributed facts within extensive texts. Our evaluation, which includes benchmarks for GPT-4 and RAG, reveals that common methods are effective only for sequences up to 104 elements. In contrast, fine-tuning GPT-2 with recurrent memory augmentations enables it to handle tasks involving up to 11× 106 elements. This achievement marks a substantial leap, as it is by far the longest input processed by any neural network model to date, demonstrating a significant improvement in the processing capabilities for long sequences.
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). Builds on 31 of its 39 references that are in the map. First posted on arXiv 16 Feb 2024.
Builds on
31 of 39 references.
References · 31
- 2017Attention Is All You Needcited by 59,932
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
19 more
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2014Neural Turing Machinescited by 630
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 339
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 232
- 2022Memorizing Transformerscited by 219
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2022Recurrent Memory Transformercited by 197
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
- 2022Block-Recurrent Transformerscited by 107
- 2024Long Context Compression with Activation Beaconcited by 101
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
- 2020MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioningcited by 79
- 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrievalcited by 20
- 2022Temporal Latent Bottleneck: Synthesis of Fast and Slow Processing Mechanisms in Sequence Learningcited by 13
- 2022Explain My Surprise: Learning Efficient Long-Term Memory by Predicting Uncertain Outcomescited by 11
Built on by
Citing papers per year: 2024: 22; 2025: 9; 2026: 5.
36 papers.
Sort:
By area:
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 163
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2024MileBench: Benchmarking MLLMs in Long Contextcited by 86
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 77
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
- 2024Needle In A Multimodal Haystackcited by 56
- 2024Multimodal Needle in a Haystack: Benchmarking Long-Context Capability of Multimodal Large Language Modelscited by 53
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2024Needle in the Haystack for Memory Based Large Language Modelscited by 32
24 more
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
- 2024DetectiveQA: Evaluating Long-Context Reasoning on Detective Novelscited by 21
- 2024VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridgescited by 20
- 2024Associative Recurrent Memory Transformercited by 15
- 2024Needle Threading: Can LLMs Follow Threads through Near-Million-Scale Haystacks?cited by 12
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMscited by 11
- 2025VTCBench: Can Vision-Language Models Understand Long Context with Vision-Text Compression?cited by 11
- 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stackscited by 6
- 2026ActMem: Bridging the Gap Between Memory Retrieval and Reasoning in LLM Agentscited by 6
- 2024Enhancing Supermarket Robot Interaction: A Multi-Level LLM Conversational Interface for Handling Diverse Customer Intentscited by 5
- 2026What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agentscited by 4
- 2025SolidMark: Evaluating Image Memorization in Generative Modelscited by 3
- 2025JobHop: A Large-Scale Dataset of Career Trajectoriescited by 3
- 2025NeMo: Needle in a Montage for Video-Language Understandingcited by 3
- 2024Assessing the quality of information extractioncited by 2
- 2026Core-based Hierarchies for Efficient GraphRAGcited by 2
- 2024Microstructures and Accuracy of Graph Recall by Large Language Modelscited by 1
- 2024Pay Attention to What Matterscited by 1
- 2025SCALAR: Scientific Citation-based Live Assessment of Long-context Academic Reasoningcited by 1
- 2026GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDscited by 1
- 2024Evaluating Long Range Dependency Handling in Code Generation LLMscited by 0
- 2024In-Context Ensemble Learning from Pseudo Labels Improves Video-Language Models for Low-Level Workflow Understandingcited by 0
- 2025Assessing Automated Fact-Checking for Medical LLM Responses with Knowledge Graphscited by 0
- 2026Efficient Retrieval-Augmented Generation via Token Co-occurrence Graphscited by 0
- 2026What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agents9 Jul 2026
- 2026Efficient Retrieval-Augmented Generation via Token Co-occurrence Graphs29 Jun 2026
- 2026GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDs23 Mar 2026
- 2026Core-based Hierarchies for Efficient GraphRAG5 Mar 2026
- 2026ActMem: Bridging the Gap Between Memory Retrieval and Reasoning in LLM Agents4 Feb 2026
- 2025VTCBench: Can Vision-Language Models Understand Long Context with Vision-Text Compression?17 Dec 2025
- 2025Assessing Automated Fact-Checking for Medical LLM Responses with Knowledge Graphs16 Nov 2025
- 2025NeMo: Needle in a Montage for Video-Language Understanding29 Sep 2025
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMs21 Sep 2025
- 2025JobHop: A Large-Scale Dataset of Career Trajectories12 May 2025
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scale19 Apr 2025
- 2025SolidMark: Evaluating Image Memorization in Generative Models1 Mar 2025
24 more
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphs26 Feb 2025
- 2025SCALAR: Scientific Citation-based Live Assessment of Long-context Academic Reasoning19 Feb 2025
- 2024Needle Threading: Can LLMs Follow Threads through Near-Million-Scale Haystacks?7 Nov 2024
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMs17 Oct 2024
- 2024In-Context Ensemble Learning from Pseudo Labels Improves Video-Language Models for Low-Level Workflow Understanding24 Sep 2024
- 2024Pay Attention to What Matters19 Sep 2024
- 2024DetectiveQA: Evaluating Long-Context Reasoning on Detective Novels4 Sep 2024
- 2024VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridges2 Sep 2024
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumption25 Jul 2024
- 2024Evaluating Long Range Dependency Handling in Code Generation LLMs23 Jul 2024
- 2024Associative Recurrent Memory Transformer5 Jul 2024
- 2024Needle in the Haystack for Memory Based Large Language Models1 Jul 2024
- 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stacks21 Jun 2024
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attention17 Jun 2024
- 2024Multimodal Needle in a Haystack: Benchmarking Long-Context Capability of Multimodal Large Language Models17 Jun 2024
- 2024Enhancing Supermarket Robot Interaction: A Multi-Level LLM Conversational Interface for Handling Diverse Customer Intents16 Jun 2024
- 2024Needle In A Multimodal Haystack11 Jun 2024
- 2024MileBench: Benchmarking MLLMs in Long Context29 Apr 2024
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarization24 Apr 2024
- 2024Retrieval Head Mechanistically Explains Long-Context Factuality24 Apr 2024
- 2024Assessing the quality of information extraction5 Apr 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrieval28 Feb 2024
- 2024Microstructures and Accuracy of Graph Recall by Large Language Models19 Feb 2024
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2026Core-based Hierarchies for Efficient GraphRAGcited by 2
- 2026GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDscited by 1
- 2026Efficient Retrieval-Augmented Generation via Token Co-occurrence Graphscited by 0
- 2026Efficient Retrieval-Augmented Generation via Token Co-occurrence Graphs29 Jun 2026
- 2026GraphRAG for Engineering Diagrams: ChatP&ID Enables LLM Interaction with P&IDs23 Mar 2026
- 2026Core-based Hierarchies for Efficient GraphRAG5 Mar 2026
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarization24 Apr 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024MileBench: Benchmarking MLLMs in Long Contextcited by 86
- 2024Needle In A Multimodal Haystackcited by 56
- 2024Multimodal Needle in a Haystack: Benchmarking Long-Context Capability of Multimodal Large Language Modelscited by 53
- 2025VTCBench: Can Vision-Language Models Understand Long Context with Vision-Text Compression?cited by 11
- 2025VTCBench: Can Vision-Language Models Understand Long Context with Vision-Text Compression?17 Dec 2025
- 2024Multimodal Needle in a Haystack: Benchmarking Long-Context Capability of Multimodal Large Language Models17 Jun 2024
- 2024Needle In A Multimodal Haystack11 Jun 2024
- 2024MileBench: Benchmarking MLLMs in Long Context29 Apr 2024
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 163
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 77
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2024Needle in the Haystack for Memory Based Large Language Modelscited by 32
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphscited by 23
- 2024VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridgescited by 20
- 2024Associative Recurrent Memory Transformercited by 15
- 2024Needle Threading: Can LLMs Follow Threads through Near-Million-Scale Haystacks?cited by 12
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMscited by 11
- 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stackscited by 6
12 most cited of 21 All 21 (JSON)
- 2025Assessing Automated Fact-Checking for Medical LLM Responses with Knowledge Graphs16 Nov 2025
- 2025NeMo: Needle in a Montage for Video-Language Understanding29 Sep 2025
- 2025Context Is What You Need: The Maximum Effective Context Window for Real World Limits of LLMs21 Sep 2025
- 2025JobHop: A Large-Scale Dataset of Career Trajectories12 May 2025
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scale19 Apr 2025
- 2025TRIX: A More Expressive Model for Zero-shot Domain Transfer in Knowledge Graphs26 Feb 2025
- 2024Needle Threading: Can LLMs Follow Threads through Near-Million-Scale Haystacks?7 Nov 2024
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMs17 Oct 2024
- 2024In-Context Ensemble Learning from Pseudo Labels Improves Video-Language Models for Low-Level Workflow Understanding24 Sep 2024
- 2024Pay Attention to What Matters19 Sep 2024
- 2024VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridges2 Sep 2024
- 2024Evaluating Long Range Dependency Handling in Code Generation LLMs23 Jul 2024
12 newest of 21 All 21 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024LOCOST: State-Space Models for Long Document Abstractive Summarization
- 2025LLM×MapReduce-V2: Entropy-Driven Convolutional Test-Time Scaling for Generating Long-Form Articles from Extremely Long Resources
- 2022Efficient Long Sequence Modeling via State Space Augmented Transformer
- 2024A Comprehensive Survey of Accelerated Generation Techniques in Large Language Models
- 2022Efficient Long Sequence Encoding via Synchronization
- 2024DeciMamba: Exploring the Length Extrapolation Potential of Mamba
- 2025Compress, Gather, and Recompute: REFORMing Long-Context Processing in Transformers
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystack