Multi-hop question answering systems fail in a characteristic way. A question such as "which river flows through the birthplace of the director of film X" needs an intermediate "bridge" document, here the director's biography, before the final document can even be located. If the first retrieval step misses that bridge, every later step is wasted. Diagnoses of long-horizon search agents find that cumulative retrieval recall correlates with final accuracy at $r = 0.99$, and that agents which never surfaced the gold evidence were right only 2.2% of the time (Diagnosing Search Behavior and Failure Modes in Long-Horizon Search Agents). The obvious fix, retrieving more at every step, runs into a second wall. Longer contexts degrade reasoning even when the evidence is present and recited correctly: on one arithmetic task, Llama-3-8B fell from 96% to 11% at 30k tokens (Context Length Alone Hurts LLM Performance Despite Perfect Retrieval).
This note argues that database query optimization explains both failures and supplies the repair. In a database, a selection filter may be moved earlier in a plan ("pushed down") only when its condition refers to columns that already exist at that earlier point. Standard dense retrieval scores hop-1 documents by similarity to the whole question. In effect it pushes the final-hop condition below the hop that produces the attribute it tests, which is an illegal rewrite, and illegal rewrites silently drop rows. We propose to compile multi-hop questions into explicit retrieval plans. Each condition is attached only where it is legal. Per-hop candidate widths are then set by a single global error budget, calibrated so that end-to-end evidence recall meets a user target while the reader receives as few tokens as possible.
Core Claim
The core claim has two parts, and both can be tested. The first part concerns legality. A large share of bridge-fact omissions are caused by applying question-level relevance at hops whose outputs cannot yet satisfy it. Plans that respect pushdown legality, scoring hop-$i$ candidates only against the sub-predicate defined over hop-$i$ attributes, should recover those omissions without widening retrieval.
The second part concerns budgets. Once the plan is explicit, the compounding of recall across cascaded operators becomes something we can control. Write $\epsilon_i$ for the calibrated probability that hop $i$ drops a needed document, and $c_i(\epsilon_i)$ for the expected tokens that hop forwards when run at that miss rate. The union bound then guarantees end-to-end evidence miss of at most $\sum_i \epsilon_i$ without assuming the hops fail independently. We choose the allocation by solving
$$\min_{\epsilon_1,\dots,\epsilon_k} \sum_{i=1}^{k} c_i(\epsilon_i) \quad \text{subject to} \quad \sum_{i=1}^{k} \epsilon_i \le \epsilon,$$
where $\epsilon$ is the user's allowed end-to-end miss rate and $k$ is the number of hops. The optimum spends recall where it is cheap. A hop whose candidate list is short and sharply ranked can be run very safely at little cost. A hop with a flat score distribution gets a looser target. A uniform per-hop target such as $\gamma^{1/k}$, the implicit default when operators are tuned in isolation, wastes tokens on easy hops and starves hard ones.
Relation to Prior Work
Three lines of work supply the machinery. The first supplies the method for semantic operators. Semantic Operators: A Declarative Model for Rich, AI-based Data Processing and LOTUS define language-model filters and joins as relational operators. They run these operators as "proxy-oracle cascades", in which a cheap model scores every row and only uncertain rows go to an expensive model, and they carry statistical recall guarantees. We reuse those cascades and that calibration. The difference is scope. LOTUS optimizes one operator at a time over pre-existing tables, and its authors name global multi-operator planning as open. We plan across hops whose input tables do not exist until the previous hop runs.
The second line supplies the pushdown framing. Predicate pushdown is the workhorse rewrite of the algebra papers, from data-fusion operators (Eliminating NULLs with Subsumption and Complementation, with 1.4x to 37x speedups from pushing filters below complementation) to recursive path operators over streaming graphs (Evaluating Complex Queries on Streaming Graphs). Those rewrites are safe because their side conditions on attribute availability are checked. Our contribution is to state that side condition for text hops and to show what violating it costs.
The third line both motivates and constrains the proposal. Database reasoning over text runs select-project-join queries over text with a retriever, a neural extraction step, and a symbolic aggregator. Its accuracy drops from 90.1% with gold support sets to about 67% with real retrieval, and it covers only shallow joins. That is the gap we target, on its own benchmark. Text2SQL is Not Enough shows that unified relational-plus-language-model plans beat both Text2SQL and RAG. It also shows that automated plan synthesis failed and only hand-written plans worked. That result is a warning: our plan compiler must be evaluated against compiler errors, not only executor errors.
On the retrieval side, HopRetriever finds that bridge hops are best scored by the mention sentence containing the link (weighted 89.53% of the time) rather than by document content. That is exactly what a legal hop-local predicate looks like, and we adopt it as a physical scorer. HopRetriever still searches greedily from one starting entity and has no recall budget. FrugalRAG shows that fewer, better searches beat longer exploration, but it learns its stopping behavior with reinforcement learning over fixed hop caps and gives no guarantee. Our stopping rule comes from the budget instead.
Research Program
We will build three components. The first is a plan compiler. A language model rewrites a question into a small algebra with three operators: a scan, retrieval against an index under a predicate; a hop, an entity-linking join from documents to documents; and a selection over extracted attributes. Every predicate is annotated with the attributes it reads. A static checker then flags any predicate placed below the hop that produces its attributes. Predicates of this kind fall into three cases. Some are legal: hop-local mention context, or question terms that genuinely describe the bridge entity. Some can be relaxed: they become a weak, recall-oriented prior rather than a hard filter. The rest must be lifted above the hop. The rewrite rules are deliberately few, and each comes with a stated side condition.
The second component is per-operator calibration. For each operator type (bridge hop, comparison selection, aggregation scan), we use held-out questions with gold per-hop evidence to fit the miss-rate curve and the token-cost curve as functions of candidate width. Calibrating across questions, rather than within one question's data, avoids the small-sample overhead that LOTUS faces on small tables. The price is that the guarantee is marginal over the question distribution, and we state it that way.
The third component is the budget allocator. It solves the allocation above per plan and runs the plan, sending only the final hop's surviving documents to the reader. Hops run on whole candidate sets at once, in the spirit of loop-lifting in Pathfinder, so the plan never enters the agent's turn-by-turn loop.
Baselines
The naive reference point is single-shot dense retrieval with the full question at a fixed top-$k$, followed by one reader call. That is the illegal-pushdown plan in its purest form. Its HotpotQA fullwiki ceiling is visible in the original baseline's 17.73 joint F1 (HotpotQA).
The strongest existing system for multi-hop accuracy under few searches is FrugalRAG 7B, which reports 68.47% model-based evaluation (MBE, accuracy judged by a language model) on HotpotQA at 2.05 searches, against ReAct at 64.20% with 2.76 searches (FrugalRAG). It is the strongest competitor because it already trades search count against accuracy, which is our exact axis. We will use the released model and the same retrieval index and reader, and compare at matched average reader tokens. Beating it means higher MBE at equal or fewer reader tokens, or equal MBE with a certified recall bound it cannot offer.
On WIKINLDB, the reference is the Thorne et al. pipeline at about 67% with real retrieval and 90.1% with gold support sets (Database reasoning over text). Success means closing a substantial fraction of that 23-point gap at matched retrieved-fact counts.
On BrowseComp-Plus, FrugalRAG reports over 20% zero-shot accuracy, and frontier agents reach 68.6–74.1% (Diagnosing Search Behavior). We do not expect to beat frontier agents with a 7B reader. The comparison there is per-question retrieval recall against reader tokens, measured with the benchmark's relevance labels.
Two ablations isolate the key ingredients. The first keeps the plans but uses a uniform per-hop target $\gamma^{1/k}$, which tests the allocator. The second keeps the allocator but scores every hop against the full question, which tests legality. All arms share the index, the reader, and a tuning budget of the same number of held-out calibration questions.
Why not just…?
Why not just widen top-$k$ at every hop? Wider retrieval does raise recall, but it pays the context-length penalty documented by Context Length Alone Hurts LLM Performance. More importantly, widening cannot repair an illegal predicate. If the bridge document scores low against the full question, it stays low at any $k$ short of very large. We will plot recall against reader tokens for uniform widening. The legality claim fails if that curve matches ours.
Why not just prompt the model to decompose the question into sub-questions? This is the real threat. Good decomposition already attaches conditions to the right hops, so much of the legality gain may come from decomposition alone. Our uniform-target ablation is exactly "decomposition plus independently tuned hops." If it matches the full system, the honest conclusion is that the contribution reduces to the calibrated budget and its guarantee, and we will report it that way. The static legality checker adds value only where the decomposition contains leaked predicates. We will measure how often leakage occurs in language-model decompositions on HotpotQA bridge questions.
Why not just let a reinforcement-learned agent search, as FrugalRAG does? Learned policies are strong on accuracy per search. However, they give no recall certificate, they depend on training hop caps, and the diagnostic study shows that agent trajectories drift into a redundant "wasted tail." The matched-token comparison above settles accuracy. The certificate is a property agents lack by construction.
Proposed Experiments
The decisive check uses HotpotQA fullwiki bridge questions. Supporting-fact labels give per-hop gold, so we can count, for each method, how many bridge omissions occurred at hop 1 under full-question scoring and how many legality-respecting plans recover at the same width. The second check is calibration validity. Across target miss rates $\epsilon$ from 0.05 to 0.3 on WIKINLDB, HotpotQA, and BrowseComp-Plus, the empirical end-to-end evidence miss rate should sit at or below $\epsilon$, and the optimized allocation should forward fewer tokens than the uniform allocation at the same certified $\epsilon$. The third check carries evidence recall through to the answer. We measure MBE on HotpotQA and accuracy on WIKINLDB against the baselines at matched reader tokens, and we report compiler errors separately from executor errors, given the TAG finding that automatic plan synthesis is the weak link. If plans are compiled correctly but the gain disappears at the answer level, that points to the reader's own limit, about 87.5% even with oracle evidence on BrowseComp-Plus, rather than to retrieval, and we will say so.
References
- Diagnosing Search Behavior and Failure Modes in Long-Horizon Search Agents
- Context Length Alone Hurts LLM Performance Despite Perfect Retrieval
- Semantic Operators: A Declarative Model for Rich, AI-based Data Processing
- LOTUS: Enabling Semantic Queries with LLMs Over Tables of Unstructured and Structured Data
- Eliminating NULLs with Subsumption and Complementation
- Evaluating Complex Queries on Streaming Graphs
- Database reasoning over text
- Text2SQL is Not Enough: Unifying AI and Databases with TAG
- HopRetriever: Retrieve Hops over Wikipedia to Answer Complex Questions
- FrugalRAG: Less is More in RL Finetuning for Multi-hop Question Answering
- Pathfinder: XQuery - The Relational Way
- HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering