Does lexical search outperform agentic navigation as corpus size grows?
As document collections scale, does a simple indexed search like BM25 become more reliable than an intelligent agent that explores the corpus sequentially? This matters because it shapes how to architect production RAG systems.
The paper argues that RAG paradigms have no unconditional winner; they cross over as the corpus grows. It varies corpus size across 28 strictly nested tiers spanning roughly 450-fold, holding the questions and a fixed bedrock of relevant and adversarial documents constant, under one reader model and one judging protocol. The File-System Agent leads at the smallest shared tiers, but its sequential exploration costs 39 times more query tokens at the bedrock and "becomes less effective as the search space grows." Around 10 million corpus tokens BM25 overtakes it and stays ahead at every larger shared tier, with a margin approaching 20 points at full scale. BM25 also anchors the low-cost end of the Pareto frontier without any LLM-based construction. Dense retrieval "remains efficient but less accurate," and graph-based RAG "encounters construction walls before deployment scale," with its scalable variants still below BM25 at shared tiers.
The mechanism the authors give is that "the decisive factor is corpus-wide candidate discovery." BM25 and dense retrieval amortize global ranking in an index, so every query sees the whole corpus at once. The File-System Agent instead explores a local tree one call at a time, each call conditioned on the last, which makes relevant branches harder to reach as the tree grows. Graph methods need corpus-wide LLM extraction, where cost, noise and information loss become the bottleneck. Their one direct test of the mechanism is Agent+BM25 at full scale: swapping in BM25 as the retrieval step cuts calls per question from 36.12 to 5.79 and tokens from 895K to 101K, while document recall rises from 36.8 to 72.4 and score from 36.9 to 69.4. Their summary is that "iteration helps most after global ranking, not in place of it." They also report that lexical matching rejects this corpus' factually wrong semantic traps more effectively.
This qualifies the case made in Can direct corpus search beat embedding-based retrieval?, where an agent working directly over raw text with shell commands wins on lexical precision. Both results credit lexical matching, but this paper locates the advantage in the index that lets lexical matching span the whole corpus, not in the agent's ability to author exact-match commands. It also puts a scale condition on When do graph databases outperform vector embeddings for retrieval?: that note already flags graph construction as expensive, and here the expense becomes a wall before deployment size. The lexical-trap result is consistent with Do vector embeddings actually measure task relevance?, though the excerpt does not break out the dense-retriever failures. It also bears on Can retrieval be extended into multi-step chains like reasoning?: extra retrieval steps pay off when each step draws on a strong first-stage ranking.
The excerpt is silent on several things that limit how far the claim travels. It does not name the corpus, the question types, the reader model, or the absolute accuracy of BM25, dense retrieval or the graph systems, and it does not define "official accuracy." The trap finding is tied to this corpus' adversarial documents, and the mechanism is isolated by a single Agent+BM25 contrast, not by varying the agent's design. Whether the roughly 10 million token crossover moves with a different reader model or a stronger agent is not stated. What the evidence does support is narrower and useful: when choosing a RAG paradigm, the corpus size should be part of the decision, and a lexical index is the baseline any agentic or graph pipeline has to beat at scale.
Inquiring lines that read this note 1
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
How should retrieval systems handle complex multi-step reasoning?Related concepts in this collection 4
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can direct corpus search beat embedding-based retrieval?
Explore whether agents that issue shell commands over raw text can outperform dense retrieval systems, especially when queries demand exact entity matching and symbolic precision across multiple reasoning steps.
contrasts: index-free corpus interaction wins there; here sequential exploration without global ranking loses to BM25 as the corpus grows
-
When do graph databases outperform vector embeddings for retrieval?
Vector similarity struggles with aggregate and relational queries that require traversing multiple entity connections. Can graph-oriented databases with deterministic queries solve this failure mode in enterprise domain applications?
qualifies: graph indexing pays off on relational queries, but its construction cost hits walls before deployment scale in this study
-
Do vector embeddings actually measure task relevance?
Vector embeddings rank semantic similarity, but RAG systems need topical relevance. When these diverge—as with king/queen versus king/ruler—does similarity-based retrieval fail in production?
consistent with: lexical matching rejects semantic traps better, though the excerpt gives no dense-retrieval failure breakdown
-
Can retrieval be extended into multi-step chains like reasoning?
Standard RAG retrieves once, but multi-hop tasks need intermediate steps. Can we train models to plan retrieval sequences the way chain-of-thought trains reasoning, and scale retrieval at test time?
qualifies: more retrieval iterations help most when built on global ranking, not as a substitute for it
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- BM25 Wins at Scale: A Scaling Study of Retrieval-Augmented Generation Paradigms
- GrepSeek: Training Search Agents for Direct Corpus Interaction
- From Web Search towards Agentic Deep Research: Incentivizing Search with Reasoning Agents
- A New Role for Relevance: Guiding Corpus Interaction in Agentic Search
- Harness-1: Reinforcement Learning for Search Agents with State-Externalizing Harnesses
- QUEST: Training Frontier Deep Research Agents with Fully Synthetic Tasks
- Is Progressive Disclosure All You Need for Long-Context Agents?
- FutureX: An Advanced Live Benchmark for LLM Agents in Future Prediction
Original note title
BM25 overtakes a File-System Agent near 10 million corpus tokens — corpus-wide candidate discovery, not agentic iteration, decides RAG accuracy at scale