typebraintank dispatch
headlinePlain keyword search outscores AI agents and knowledge graphs as a corpus grows
dekA controlled scaling study finds a file-browsing AI agent edges ahead on a small document set, but classic BM25 search pulls clearly ahead as the set grows to half a million documents.
date2026-11-27
sectionAgency · Retrieval at scale
datelineHefei · University of Science and Technology of China
paperBM25 Wins at Scale: A Scaling Study of Retrieval-Augmented Generation Paradigms
statuspreprint, not peer reviewed
originalhttps://braintank.ai/a/arxiv-2607.26497.html
cite
text

Imagine a company knowledge base holding half a million documents: tickets, chat logs, design notes, meeting minutes. You want a large language model to answer questions from it. The model cannot read everything at once, so something has to decide which few pages it sees. There are several competing ways to do that. Some are decades old and some lean heavily on AI. Each tends to be tested on its own benchmark, at one fixed collection size, with its own answering model and its own grader.

That makes a simple question surprisingly hard to answer: what happens to each approach as the collection grows while the questions stay the same? A 2026 preprint, not yet peer reviewed, by Pengyu Wang and colleagues at the University of Science and Technology of China and Metastone Technology sets out to measure exactly that. It is the starting point for this series on how search agents read a body of text.

The idea

The umbrella technique is retrieval-augmented generation, or RAG. A language model answers a question by first fetching relevant passages from a document collection and then writing its answer from them. The authors group the fetching step into four broad families. The oldest is lexical search, represented here by BM25. This is a classic keyword-matching formula that ranks documents by how often, and how distinctively, they contain the words in the query. Building its index needs no AI model at all.

The second family is dense retrieval, which searches by meaning rather than by exact words. An embedding model turns each chunk of text, and each query, into a list of numbers (a vector), and the system returns the chunks whose vectors sit closest to the query's. The third is graph-based RAG. Before any question is asked, these systems use a language model, or sometimes a simpler tool, to pull entities and the relationships between them out of every document and assemble a knowledge graph. At question time they search that graph, for instance by walking outward from the entities a question mentions. The fourth family is agentic retrieval. Here a language model explores the collection over many steps, deciding for itself what to look at next, much as a coding assistant explores an unfamiliar codebase.

These families spend effort in different places. Graph systems pay a large one-off bill to build their index, measured in language-model tokens, the chunks of text a model reads or writes. Agents skip the index entirely but pay on every question. BM25 and dense retrieval are cheap on both counts. The authors argue that testing at a single corpus size can hide the point at which one approach overtakes another.

How this paper puts it to work

The study uses EnterpriseRAG-Bench, a benchmark built around a fictional company that sells language-model inference. It holds 511,957 documents from nine sources, about 600.8 million tokens, plus two organisational overview pages. It comes with 500 questions of ten types. The authors first build a fixed core they call the bedrock, 1,144 documents in all. It contains every document needed to answer the questions, plus deliberately misleading material. Traps are documents on the same topic as a true answer but with the wrong version, date or decision. Lures are documents that resemble questions with no answer in the collection but cannot answer them, so a system cannot score well on those simply because it found nothing.

On top of the bedrock they add ordinary documents in a fixed order, each tier roughly 1.25 times larger than the last. The result is 28 nested tiers, each containing the whole of the one before. Only the amount of background material changes. Seven pipelines run against this ladder: BM25, a dense retriever, four graph systems (HippoRAG 2, MS-GraphRAG, LightRAG and LinearRAG), and a file-system agent. The agent has read-only commands to list, search and read raw files, no index, and a budget of 80 model calls per question.

Everything else is shared. Retrieval methods hand over their top five chunks. One model, Qwen3.6-27B, writes every answer and also drives the agent. A small embedding model, Qwen3-Embedding-0.6B, powers dense retrieval. A metering layer charges each token either to building the index or to answering questions. Answers are graded with the benchmark's combined score, which credits how complete an answer is, but only if it is judged correct.

What it shows, and what it does not

On the bedrock, the agent scores 77.4 and BM25 74.7, and their confidence ranges overlap. As the collection grows, the two lines cross at around ten million tokens of corpus, a figure based on the central estimates. From there BM25 leads at every larger tier both reached. At the full half-million documents, BM25 scores 50.5, the agent 30.7 and dense retrieval 29.9. Dense retrieval trails BM25 at every tier. The graph systems also score below BM25 wherever they finish, but they stop early. LightRAG halts at 2,254 documents, MS-GraphRAG at 8,750, and HippoRAG 2 and LinearRAG at 131,876. The authors identify build cost as the obstacle. Fitting curves to measured costs, they project that full-scale builds of the language-model-built graphs would take billions of tokens, and roughly four years on a single instance in LightRAG's case. Those full-scale figures are extrapolations, not measurements.

Cost also separates the agent from the one-shot methods. BM25 uses about 5,800 tokens per question. The agent uses 226,000 on the bedrock, and its share of questions that exhaust the 80-call budget climbs to 31 per cent at full scale. A follow-up experiment points to the cause. On a 150-question set at full scale, the raw-file agent retrieves at least one correct document for 39.0 per cent of questions, against 78.0 per cent when the same agent is given a BM25 search tool. That hybrid scores 69.4, beating both plain BM25 and the raw-file agent while using about a ninth of the raw-file agent's tokens. On this evidence, the agent's trouble at scale lies in finding candidates, not in reasoning over them once found.

The study has limits. Everything rests on one synthetic enterprise benchmark, and the authors note that its questions contain precise keywords that favour exact matching. There is one answering model and one small embedder. Each system runs once per question. The traps were mined partly with BM25; an audit using direct dense search overlapped little with the original candidates, though it also turned up traps and lures of its own. The agent results are sensitive to implementation: on the bedrock subset, a Codex-based harness scored 43.9 against 86.3 for the authors' own. What the study does support is narrower but useful: in this setting, BM25 is a cheap default that holds up best as the collection grows, and agents do better searching through a ranked index than browsing raw files.