Skip to content

QueryFlow: Evolving the Query State in Multi-Hop Graph Retrieval

THE ARGUMENT

In multi-hop retrieval, the thing that must co-evolve with evidence representations is the query state itself; coupling the two is what closes the last missing hop.

On this page

You have a shortlist for a purchase: a retrieval service that promises to answer customer questions by pulling pages off the web (retrieval, meaning picking a few pages out of thousands to hand downstream). The vendor demos it on one sentence and the answer page lands at rank one, so you are ready to sign. But your customers ask questions that need two or three hops — who wrote this book, then where that person was born. The demo passes because the service scores every page against the original question on its own and returns the closest ten, and the answer happened to sit near the top. The failure shows up on the third hop: the intermediate clue has already been found, but the question the retriever searches with never changed, so it keeps circling the first hop. That gap is what QueryFlow [1] targets.

The default: score every page against the original question, keep the top ten

The default is single-round dense retrieval: embed the question and every page, compare similarity, keep the closest ten. It assumes relevance can be judged page by page. Multi-hop questions break that assumption, because the second and third pieces of evidence do not look relevant on their own — they only look relevant once the intermediate fact is in hand.

Iterative retrieval takes a step forward by feeding retrieved passages or intermediate conclusions back into the next query. But the feedback travels through text history: last round's passage becomes part of this round's query, while entity relations across documents stay implicit inside the prose instead of being used as structure.

Graph retrieval makes that structure explicit by treating entities as nodes and relations as edges and letting relevance propagate along edges. The paper targets one specific family: fixed-query graph retrievers [1]. They keep updating entity representations layer after layer while the query condition stays at the original question. The example in Figure 1 is blunt. The question asks for the birthplace of the author of The Hobbit. Round one establishes the author as J. R. R. Tolkien, so the remaining information need shifts to that person's birthplace; the fixed query keeps scoring in the direction of the book, round two pulls back more book-adjacent evidence, and the birthplace never reaches the top ten.

In the paper's words, these designs accumulate relational context in entity representations without an explicit feedback path for that context to revise the query condition governing subsequent propagation [1]. That is the seam it fills.

The fix: let the query state and the evidence representations evolve together

The paper frames multi-hop evidence recovery as the coupled evolution of two things: evidence representations and the query condition. Accumulated graph context should decide both what the retriever represents and where it searches next. In the implementation this becomes three interfaces.

  • Boundary feedback: B_l(i) = m_x(i) · q_{l-1}. At the entities grounded to the question, the injected vector is the updated query state rather than the original question embedding. The grounding mask m_x stays fixed; only the content injected at those anchors changes.
  • Relation feedback: γ = σ(W_r·q_{l-1} + b_r), used to modulate the base relation embedding dimension by dimension before a layer-specific two-layer MLP. One gate is shared across relation types while each type keeps its own base embedding, so the query state decides which dimensions of the relation matter this round.
  • Query evolution: the previous state q_{l-1} attends over all entity representations, softmax normalised over the full node set V, producing a graph summary z_l; a GRU then merges z_l with q_{l-1} into the new q_l.

Propagation itself uses standard parts: the boundary input plus summed DistMult messages from neighbours (a scoring form that multiplies entity and relation vectors dimension-wise), concatenated with the node's own state, passed through a linear layer, with a residual connection and LayerNorm.

One engineering detail deserves its own note: attention is normalised over all nodes, but the summary z_l has a fixed width d regardless of graph size. However large the graph grows, the controller receives a fixed-length vector. Many graph retrievers die on real corpora precisely because every round sweeps attention over the whole graph; a fixed-width summary at least decouples controller cost from graph size.

Finally, entity scores are computed against the original question, passed through softplus, and aggregated into document scores through the entity–document incidence matrix weighted by reciprocal document frequency; the top k documents feed answer generation [1].

The evaluation material: four datasets, three metrics, and what the excerpt does not give

Evaluation runs on four multi-hop QA datasets. The excerpt supplies names and metrics but no per-dataset result table, so the tables below separate what can be confirmed from what cannot.

DatasetRole in the paperNumbers confirmable from this excerpt
2WikiMultiHopQAOne of four multi-hop QA datasetsNone; appears only in the dataset list
HotpotQASameNone
MuSiQueSameNone
ConcurrentQASameNone
MetricFull nameWhat it measuresReported macro gain
R@10macro Recall@10How much supporting evidence the top ten recovers+4.98 points
FR@10Full Recall@10Whether the top ten recover the entire support chain+8.40 points
LLM-AccLLM-judged answer accuracyWhether the downstream answer is correct+8.0 points

The 10 in R@10 is the retrieval budget k the paper defines: the top ten documents form the output set, and the goal is for that set to cover the supporting documents. FR@10 asks whether the whole chain is recovered, which the paper calls complete recovery. Partial coverage and complete coverage are not the same thing.

How to read 4.98, 8.40 and 8.0

The most informative thing about the three numbers is their ordering: the FR@10 gain (+8.40) is well above the R@10 gain (+4.98). R@10 gives credit for recovering one more supporting unit; FR@10 only counts a closed chain. When the FR gain approaches twice the R gain, the method is mostly closing the last missing piece of evidence — exactly where a fixed query stalls. The +8.0 on LLM-Acc points the same way, which is indirect support for the chain from complete evidence to correct answers.

One caveat: these are macro averages over four datasets, not results on any single dataset. Macro averaging flattens variance — one dataset up 15 points and another down 2 can still average to +6. To judge whether this works on your corpus you need the per-dataset table, and that table is not in this excerpt. Likewise the paper only says gains are over representative baselines; the excerpt lists neither the baseline set nor their individual numbers. Any second-hand claim of the form "beats X by N points" that does not go back to that table should not be trusted.

Where the method stops: conditions to check before you buy

Applicability is narrower than the abstract suggests. Check these before signing.

  • You need a graph. The corpus must be processed into entities, relation types, and an entity–document incidence matrix. On short texts with sparse entities and noisy relations, that construction cost can eat the retrieval gain.
  • The graph is static within a query. The paper states that graph topology, document associations and the grounding mask stay fixed while representations evolve; what changes is representations and the query condition, not the structure. Fast-moving corpora need their edges rebuilt.
  • The budget is fixed. Every metric is reported at k=10, and the excerpt has no curve for other k. If your product hands downstream only three pieces of evidence, conclusions at 10 do not transfer directly.
  • The evaluation surface is narrow. All four datasets are English multi-hop QA with the task of recovering supporting documents. Fact verification, cross-lingual search and open-web search are motivating scenarios in the introduction, not measured ones.
  • Compute is not free. Every layer runs softmax attention over all entities, so cost grows with the number of layers; the excerpt gives no latency or throughput figures, and the efficiency section is not in hand.

There is a more fundamental boundary too. Multi-hop retrieval aims to recover a question's support set, not to store knowledge. The graph is an index and carries no reasoning; reasoning stays with the downstream model. So the method can raise the odds that the evidence arrives complete, but it cannot guarantee a correct answer — the residual error inside LLM-Acc is outside its reach.

Back to that contract: if the vendor demos single-hop questions, a fixed query and a generous k, the demo is not testing what this paper tests. Before signing, ask them for FR@10 and per-dataset numbers on your own question distribution [1].

References

  1. QueryFlow: Multi-Hop Graph Retrieval with Adaptive Query Evolution

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…