Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Single-Pass Document Scanning for Question Answering

About

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

Weili Cao, Jianyou Wang, Youze Zheng, Longtian Bao, Qirui Zheng, Taylor Berg-Kirkpatrick, Ramamohan Paturi, Leon Bergen• 2025

Related benchmarks

TaskDatasetResultRank
Long document retrievalLongBench Retrieval v2 (full)
F1 Score0.4386
55
Question AnsweringMultifieldQA
F1 Score51.73
52
Single-document retrievalQasper
F1 Score37.22
44
Single-document retrievalQASA
F1 Score47.32
44
Single-document retrievalRepLiQA
F1 Score0.721
44
Single-document retrievalNaturalQuestions
F1 Score42.68
44
Single-document retrievalConditionalQA
F115.82
44
Question AnsweringNarrativeQA
F1 Score20.62
16
Question AnsweringQasper
F1 Score0.2953
16
Long document retrievalQASA (test)
F1 Score46.04
11
Showing 10 of 24 rows

Other info

Follow for update