Single-Pass Document Scanning for Question Answering
Not on the map. Why?
Abstract (arXiv)
Handling extremely large documents for question answering is challenging: chunk-based embedding methods often lose track of important global context, while full-context transformers can be prohibitively expensive for hundreds of thousands of tokens. We propose a single-pass document scanning approach that processes the entire text in linear time, preserving global coherence while deciding which sentences are most relevant to the query. On 41 QA benchmarks, our single-pass scanner consistently outperforms chunk-based embedding methods and competes with large language models at a fraction of the computational cost. By conditioning on the entire preceding context without chunk breaks, the method preserves global coherence, which is especially important for long documents. Overall, single-pass document scanning offers a simple solution for question answering over massive text. All code, datasets, and model checkpoints are available at https://github.com/MambaRetriever/MambaRetriever
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 47 of its 58 references that are in the map. First posted on arXiv 4 Apr 2025.
Builds on
47 of 58 references.
References · 47
- 2017Attention Is All You Needcited by 60,361
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
35 more
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 723
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2021Efficient Attentions for Long Document Summarizationcited by 345
- 2023Improving Text Embeddings with Large Language Modelscited by 303
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 236
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
- 2024Generative Representational Instruction Tuningcited by 233
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2024RankRAG: Unifying Context Ranking with Retrieval-Augmented Generation in LLMscited by 202
- 2024An Empirical Study of Mamba-based Language Modelscited by 186
- 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 124
- 2024Make Your LLM Fully Utilize the Contextcited by 119
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approachcited by 119
- 2023How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrievalcited by 118
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2024ChatQA: Surpassing GPT-4 on Conversational QA and RAGcited by 90
- 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 81
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 72
- 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Studycited by 63
- 2023Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecturecited by 63
- 2024DocFinQA: A Long-Context Financial Reasoning Datasetcited by 60
- 2024Just read twice: closing the recall gap for recurrent language modelscited by 60
- 2023BAMBOO: A Comprehensive Benchmark for Evaluating Long Text Modeling Capacities of Large Language Modelscited by 53
- 2024ChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilitiescited by 53
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixerscited by 44
- 2023RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Modelscited by 37
- 2024Benchmarking and Building Long-Context Retrieval Models with LoCo and M2-BERTcited by 21
- 2024Contextual Document Embeddingscited by 19
- 2024From Artificial Needles to Real Haystacks: Improving Retrieval Capabilities in LLMs by Finetuning on Synthetic Datacited by 18
- 2022MuLD: The Multitask Long Document Benchmarkcited by 9
- 2024ELITR-Bench: A Meeting Assistant Benchmark for Long-Context Language Modelscited by 9
- 2024Mamba Retriever: Utilizing Mamba for Effective and Efficient Dense Retrievalcited by 8
- 2024FastFiD: Improve Inference Efficiency of Open Domain Question Answering via Sentence Selectioncited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 5.
6 papers.
- 2025The Geometry of Reasoning: Flowing Logics in Representation Spacecited by 21
- 2026Coding Agents are Effective Long-Context Processorscited by 12
- 2026Rethinking the Reranker: Boundary-Aware Evidence Selection for Robust Retrieval-Augmented Generationcited by 5
- 2026CT Open: An Open-Access, Uncontaminated, Live Platform for the Open Challenge of Clinical Trial Outcome Predictioncited by 2
- 2026AttentionRetriever: Attention Layers are Secretly Long Document Retrieverscited by 0
- 2026Linear-Time and Constant-Memory Text Embeddings Based on Recurrent Language Modelscited by 0
- 2026Linear-Time and Constant-Memory Text Embeddings Based on Recurrent Language Models20 Apr 2026
- 2026CT Open: An Open-Access, Uncontaminated, Live Platform for the Open Challenge of Clinical Trial Outcome Prediction17 Apr 2026
- 2026Coding Agents are Effective Long-Context Processors20 Mar 2026
- 2026AttentionRetriever: Attention Layers are Secretly Long Document Retrievers12 Feb 2026
- 2026Rethinking the Reranker: Boundary-Aware Evidence Selection for Robust Retrieval-Augmented Generation3 Feb 2026
- 2025The Geometry of Reasoning: Flowing Logics in Representation Space10 Oct 2025