Elamur Research

DynRank: Improve Passage Retrieval with Dynamic Zero-Shot Prompting Based on Question Classification

Paper · 2025 · Abdelrahman Abdallah, Jamshid Mozafari, Bhawna Piryani et al.

Summary

A search system can retrieve a passage that contains an answer and still place it too far down the results to be useful. DynRank addresses this problem in open-domain question answering, where a system searches a document collection before attempting to answer a question. Its contribution is a way to adapt the instructions used during passage reranking. Rather than give the same question-generation instruction for every query, DynRank first classifies the question by the kind of answer it requests. It then uses that classification to construct a more specific instruction for evaluating the retrieved passages.

The underlying idea is straightforward. A passage may support many possible questions, but only some of them resemble the question the user actually asked. An instruction that asks about a person directs attention differently from one that asks about a date, a location, or a quantity. DynRank represents this distinction through a major question category and a more detailed subtype. These labels determine a prompt, which accompanies each candidate passage. A pretrained generator then scores how likely the original question is under that passage and prompt. The resulting scores determine the new passage order. Though the paper also displays generated questions to illustrate the behavior, its mathematical ranking procedure uses the likelihood of the actual input question.

The experiments apply this reranking procedure to passages supplied by BM25, Contriever, and DPR. On the Natural Questions test set, BM25 has Top-1 retrieval accuracy of 22.1, BM25 followed by UPR reaches 35.4, and BM25 followed by DynRank reaches 36.5. On TriviaQA, the corresponding Top-1 values are 46.3, 55.7, and 58.2. These comparisons show that the category-conditioned procedure can improve the early results of an existing retriever. They do not show that every retrieval setting improves: some individual cells are tied, some favor UPR, and DPR’s original Top-1 result on Natural Questions remains stronger than either reranked version.

The paper also evaluates retrieval outside these question-answering datasets, using selected BEIR tasks and nDCG@10, a measure of the quality of the highest-ranked results. Its results table gives DynRank a reported BEIR average of 54.39, compared with 47.7 for BM25 and 53.7 for RankGPT. An accompanying comparison changes the pretrained generator and finds the strongest reported average with LLaMA v3.1 70B. However, the article contains inconsistencies between several tables and their accompanying explanations, including a different BEIR average in the prose. The dependable conclusion is therefore narrower than the broadest claims: question-type-conditioned prompting is a promising reranking mechanism, with improvements in many reported settings, but the evidence does not establish uniform superiority or isolate every reason for those improvements.

DynRank also requires a careful reading of “zero-shot.” Its reranking generator is used through instructions rather than retrieval-specific training described for this method, but the question classifier is trained with labeled questions. The system combines a supervised classification component with a prompted scoring component. Its practical attraction is this separation: an existing retriever supplies candidates, a relatively explicit classification determines the instruction, and the reranker evaluates those candidates. The authors acknowledge additional computational expense and dependence on the pretrained generator, while leaving several questions about classification errors, efficiency, and generalization open.

Interesting ideas

Condition the procedure on the requested answer. A question contains information about what kind of evidence will be useful before its answer is known. DynRank turns that information into a control signal for passage evaluation. The reusable idea is to identify the expected result type before applying a general-purpose operation. Search, document inspection, and evidence extraction can all benefit when a request for a person is handled differently from a request for a measurement or an explanation. The category guides attention without supplying the answer.

Separate candidate discovery from candidate judgment. DynRank leaves initial retrieval to an existing system and changes the order of its results afterward. This makes the contribution easier to integrate and easier to compare against an unchanged candidate source. The same architecture applies when a cheap procedure proposes many possibilities and a more expensive procedure examines a bounded subset. It is especially useful when replacing the discovery mechanism would be costly or would make the source of an improvement difficult to identify.

Evaluate whether evidence supports the actual request. A passage can inspire a plausible question while remaining poorly matched to the user’s question. DynRank’s formal score addresses this by evaluating the original question under each passage and its category-conditioned instruction. This distinction matters beyond retrieval: a fluent description of evidence is not necessarily evidence that the requested relation is present. A verifier should inspect compatibility with the real task, rather than accept the quality of an auxiliary output as a substitute.

Use hierarchical categories as an interface. Broad types and detailed subtypes provide different amounts of guidance. A major category can express a general requirement, while its subtype narrows the operation without requiring an completely separate processing system. This is a useful design pattern for routing, document classification, and structured extraction. DynRank demonstrates the interface, although it does not establish through a dedicated comparison how much of its retrieval gain comes from each level.

Measure the top of the ranking separately. A useful passage somewhere in a large candidate set may still be unavailable to a downstream component that reads only the earliest results. The paper reports retrieval accuracy at several cutoffs and uses nDCG@10 for BEIR. These measurements expose different properties of the ordering. The transferable lesson is to evaluate the part of the result that the next stage actually consumes, while also checking whether improvements near the beginning conceal losses elsewhere.

Inspect examples for relation drift. The case studies make the mechanism visible, but several also show a generated question moving away from the target relation. Asking about a character’s creator is different from asking about the actor who portrays that character, even though both answers concern people. Such examples suggest a reusable diagnostic: examine entity, relation, and answer-type alignment separately. This helps distinguish useful specialization from a superficially relevant change of subject.

Compare components through the final task. The paper tests alternative question classifiers and alternative generators. Their results show why component quality and system quality should be measured separately. Fine-grained classification accuracy does not by itself identify the best retrieval pipeline, and a stronger generator does not remove errors introduced earlier. The broader engineering lesson is to preserve component diagnostics while making final-task performance the decisive test of an integration.

Deep dive: DynRank: Improve Passage Retrieval with Dynamic Zero-Shot Prompting Based on Question Classification

DynRank adapts passage reranking to question types; understand its scoring method, retrieval results, comparisons, and limitations. · about 35 minutes to read

How Mova uses it

Mova is a small, transparent language system written in Rust. Its native processing turns text into dependency trees, frames, and a world representation; its development direction favors explicit rules, logic, and statistics. DynRank suggests ways to make evidence selection depend more directly on the question being answered. The connections below are proposed transfers, judged against Mova’s documented mechanisms. The status marks describe those proposals, rather than measured applications of DynRank. No DynRank-specific implementation or retrieval result in Mova is established.

Idea: Condition evidence selection on the expected answer type. Where: Question Classification and Dynamic Prompt Generation. Area: semantic parsing and retrieval. Mova could derive an expected answer category from the question’s dependency structure and frame, then use that category to select evidence checks. A person request would activate different checks from a duration request. Mova: частково є (the native question observations and frame alignment described in docs/hybrid-system.md and world/src/knowledge/retention/fastread.rs). Why Mova: this could make existing structural analysis guide evidence selection more directly, without adopting the paper’s neural classifier. The retrieval benefit remains unverified.

Idea: Introduce an explicit major-type and subtype interface. Where: Question Classification, equation describing the classification function, and Appendix D. Area: knowledge representation. Mova could represent a broad answer type together with a narrower subtype as typed values shared by readers and retrieval components. Its concept identifiers, senses, and domain interfaces already provide related machinery, but an interface matching this question taxonomy is not established. Mova: частково є (global concept and sense machinery, plus the interfaces in docs/architecture.md). Why Mova: a stable type boundary could let independent modules agree on what evidence a question requires.

Idea: Construct instructions from transparent classification results. Where: Dynamic Prompt Generation. Area: operational planning. DynRank’s classification-to-template transition could be adapted as a deterministic selection of native inspection procedures, rather than an instruction to an external generator. Mova already turns supported requests into configured actions through bounded rules. Mova: частково є (the configured native deputy in docs/hybrid-system.md). Why Mova: making the selected question type and inspection rule visible would preserve diagnosis when a request receives the wrong procedure. General question-conditioned retrieval through this mechanism is a proposal, with effectiveness unknown.

Idea: Preserve a separate candidate-generation stage. Where: Method, the definition of the retrieved passage set, and Experimental Setup. Area: retrieval architecture. Mova could keep its existing corpus occurrence lookup as the candidate source and add a question-sensitive ordering stage afterwards. This would allow a controlled comparison on the same evidence rather than changing discovery and evaluation together. Mova: частково є (tools/dictindex/README.md documents occurrence lookup, frame filters, and statistical selectors). Why Mova: separating these operations could reveal whether a missed answer comes from missing evidence or poor ordering of evidence already available.

Idea: Score support for the original request. Where: Re-ranking with Pre-trained Language Models, the question-likelihood equations. Area: reasoning and verification. The native analogue would compare the actual question frame with each candidate’s entities, relations, and answer slots. It should not accept a passage merely because the passage supports some other well-formed question. Mova: частково є (question-to-document frame alignment in world/src/knowledge/retention/fastread.rs). Why Mova: this could strengthen an existing reading path while keeping the explanation in terms of explicit structural matches. A score corresponding to DynRank’s likelihood is not implemented evidence.

Idea: Record an inspectable trace of reranking decisions. Where: Figure 2 and the classification, prompt-construction, and scoring stages. Area: interpretability. A Mova experiment could retain the question observation, selected category, candidate evidence, scoring features, and resulting order. These would be distinct records, so an incorrect order could be traced to the stage that produced it. Mova: вже є (the reason-retaining native pipeline in README.md and explicit observations and outcomes in docs/hybrid-system.md, at those documented scopes). Why Mova: applying the same discipline to retrieval would make an experimental reranker reviewable without treating its score as a proof.

Idea: Compare broad categories with detailed subtypes. Where: Question Classification and Table 3. Area: evaluation design. Mova could test whether fine distinctions actually improve evidence selection over a broad native answer category. DynRank supplies both levels, but does not report a retrieval ablation isolating their contributions. Mova: нове. Why Mova: this would determine whether a larger taxonomy earns its maintenance cost or merely introduces classification errors. The novelty mark concerns this proposed comparison; Mova’s documented measurements do not establish that no related experiment exists elsewhere.

Idea: Keep uncertain classification from forcing a narrow action. Where: the classification-to-prompt transition in Figure 2. Area: failure handling. DynRank’s pipeline makes classification consequential, which suggests testing an uncertainty-aware alternative in Mova: unresolved answer types could retain several admissible interpretations or stop a specialized inspection. The paper does not evaluate this extension. Mova: частково є (missing-context failures in docs/hybrid-system.md and escalation in layers, described in docs/architecture.md). Why Mova: preserving ambiguity would fit Mova’s existing failure behavior and could prevent a mistaken subtype from silently excluding relevant evidence.

Idea: Treat category compatibility as guidance rather than truth. Where: Appendix D and the generated-question examples in Appendix C. Area: reasoning. A passage about people can match a human-answer category while discussing the wrong relationship. Mova could make category agreement a preliminary compatibility check, followed by a separate relation check. Mova: частково є (typed frames in prag and state predicates in world, described in docs/architecture.md). Why Mova: this could prevent an answer-shaped candidate from passing merely because its entity class is plausible. The proposed retrieval gate needs its own negative controls.

Idea: Diagnose relation drift independently of answer-type accuracy. Where: Appendix C, especially the Ken Barlow example. Area: semantic evaluation. Mova could label failures where the requested role changes even though the expected answer remains a person: creator, performer, owner, and recipient should remain distinct. Mova: частково є (prag represents event roles, while the fast-reader analysis distinguishes representation, inference, parameter, and parse failures). Why Mova: an explicit relation-drift category could make those analyses more actionable. Its usefulness for improving retrieval has not been measured.

Idea: Check temporal alignment separately from temporal answer type. Where: Appendix C, the Deadpool example. Area: temporal semantics. A request about a future release and a passage about an earlier premiere can both invite date-shaped answers. Mova could require the event and its temporal status to align before accepting a time-bearing passage. Mova: частково є (world tracks event order and the frame pipeline represents events, as described in docs/architecture.md). Why Mova: this could stop a correct-looking date from answering the wrong event question. The example motivates the check but supplies no Mova measurement.

Idea: Track the entity that each question is about. Where: Appendix C, the example involving James K. Polk and Washington C. Whitthorne. Area: coreference and evidence alignment. Mova could verify that the person whose role is requested remains the subject of the candidate evidence, instead of accepting an occupation mentioned nearby. Mova: частково є (coref supplies reasoned links and world maintains entities). Why Mova: this would connect existing entity tracking to retrieval acceptance. The transfer is hypothetical, and the paper’s example does not quantify how frequently such substitutions occur.

Idea: Compare original and reranked evidence at several consumption limits. Where: Table 2 and Experimental Setup. Area: evaluation. A Mova reader may inspect only a bounded portion of retrieved evidence, so a reranking experiment should evaluate the beginning of the list and broader coverage separately. Mova: нове. Why Mova: this would expose a change that helps the first candidate while removing useful alternatives from the reader’s working set. The documented corpus index has bounded queries, but it does not establish the proposed cutoff-based answer-retrieval evaluation.

Idea: Preserve the original retriever as a meaningful control. Where: Table 2, particularly the DPR comparisons. Area: evaluation. DynRank sometimes trails the starting retriever in spite of improving on another reranker. Mova should therefore compare an added ordering stage against both the original order and any existing refinement. Mova: вже є (the negative-control and held-out measurement principles in README.md, within their stated scope). Why Mova: applying those principles here would prevent a complex stage from being credited merely because it beats a weaker modification.

Idea: Evaluate by task family as well as aggregate score. Where: Table 4 and the BEIR discussion. Area: statistics and evaluation. Mova could report question-conditioned evidence selection separately for dictionaries, school explanations, narrative reading, and configured operational requests where those tasks are supported. An overall gain could otherwise hide a family that deteriorates. Mova: частково є (separate students and benchmarks in docs/architecture.md, and source-domain strata in tools/dictindex/README.md). Why Mova: this would keep an aggregate from authorizing a procedure outside the domain where it has demonstrated value.

Idea: Test the downstream effect of classifier errors. Where: Table 3 and the classification-to-reranking pipeline. Area: experimental design. Mova could compare evidence selection using native predicted categories with selection using independently reviewed categories. This would reveal whether failures arise in question interpretation or in evidence scoring. DynRank reports classifier accuracy but does not establish this downstream decomposition. Mova: нове. Why Mova: the comparison could identify whether improving classification is likely to improve the reader, rather than assuming that a better component score must help the complete task.

Idea: Select components through end-to-end evidence. Where: Table 3 and the main retrieval experiments. Area: system evaluation. The classifier with the strongest fine-grained result is not automatically demonstrated to produce the strongest retrieval pipeline. Mova could preserve component tests while requiring a held-out reader comparison before accepting a classification change. Mova: вже є (regression-gated global extensions in docs/architecture.md and gated self-improvement in README.md). Why Mova: this applies an existing admission principle to the new interface and avoids accepting a locally attractive change that damages final answers.

Idea: Bound expensive inspection after cheap retrieval. Where: Experimental Setup and Appendix A. Area: resource management. DynRank applies costly scoring only after a retriever has produced a limited candidate set. Mova could use the same division when deciding which corpus witnesses deserve deeper native analysis or explicit external review. Mova: частково є (bounded proposals in tools/enrich/README.md and bounded worker capabilities in docs/hybrid-system.md). Why Mova: it could control cost while retaining a broad discovery stage. The appropriate evidence budget and any accuracy tradeoff remain unknown.

Idea: Measure quality together with computational cost. Where: Limitations and the generator comparison. Area: efficiency. A Mova adaptation should retain retrieval quality, elapsed work, and resource use for each inspection strategy, rather than infer usefulness from accuracy alone. Mova: частково є (tools/twin and resource-estimate logging described in docs/architecture.md). Why Mova: the paper’s acknowledged overhead makes this necessary for deciding whether a more selective procedure is worthwhile. Mova’s existing measurement infrastructure does not itself establish the cost of this proposed retrieval path.

Idea: Make passage truncation part of the evidence record. Where: Appendix A, the passage and question token limits. Area: data processing. A candidate may be relevant in full but lose its decisive sentence when shortened for a scoring component. Mova could record exactly which text reached each inspection stage and distinguish unavailable evidence from rejected evidence. Mova: частково є (source fingerprints in tools/enrich/README.md and exact sentence evidence in tools/dictindex/README.md). Why Mova: this would make truncation failures diagnosable without attributing them to missing knowledge or faulty inference.

Idea: Keep supervised preparation separate from inference claims. Where: Question Classification, Experimental Setup, and the zero-shot reranking description. Area: provenance and evaluation. A Mova adaptation should state which categories came from rules, which parameters were learned, and whether any teacher prepared supervision. Mova: вже є (the teacher-separated assessment boundary in README.md and docs/architecture.md). Why Mova: applying this established distinction would prevent a prompted retrieval component from making the complete pipeline appear free of labeled training.

Idea: Preserve provenance when changing evidence order. Where: Method, where passages remain members of the retrieved collection during scoring and sorting. Area: data integrity. A Mova reranker should reorder references to corpus evidence while retaining its source, sentence identity, and licensing metadata. Relevance should not convert a narrative statement into a general fact. Mova: вже є (stable occurrence identities and source credits in tools/dictindex/README.md, plus narrative-evidence boundaries in tools/enrich/README.md). Why Mova: this would let improved access coexist with Mova’s existing distinction between finding a statement and admitting knowledge.

Idea: Use a taxonomy without confusing it with a complete account of meaning. Where: Appendix D and Appendix C. Area: ontology design. Mova could adopt answer categories as an operational aid while leaving event roles, attribution, and domain constraints in their own representations. The examples show why answer type alone cannot express the requested relation. Mova: частково є (separate concept, frame, and context layers in docs/architecture.md). Why Mova: keeping these responsibilities distinct could make a compact classifier useful without allowing it to replace richer native interpretation.

Idea: Validate category definitions and identifiers mechanically. Where: Question Classification and Appendix D. Area: schema validation. The paper’s stated fine-grained inventory and its displayed category table do not fully reconcile. A Mova experiment could require every emitted category to have a declaration, parent category, description, and supported inspection behavior. Mova: частково є (build-time concept checks in global, described in docs/architecture.md). Why Mova: extending that discipline to question categories would catch incomplete interfaces before they affect evidence selection. The precise category schema remains a proposal.

Idea: Separate illustrative outputs from the ranking decision. Where: the likelihood equations and Appendix C. Area: interpretability and experimental reporting. Mova could display an auxiliary question or explanation while retaining the actual scoring evidence separately. The displayed text should not be allowed to stand in for the decision mechanism. Mova: частково є (distinct observations, tool receipts, and evidence kinds in docs/hybrid-system.md). Why Mova: this would help reviewers understand a retrieval result without mistaking a persuasive explanation for a validated reason.

Idea: Automate consistency checks between measurements and reports. Where: Tables 2–4 and their accompanying discussions. Area: data validation. A Mova report could bind every claimed comparison to named measurement fields and reject prose that reverses the direction of a result or changes its metric. Mova: нове. Why Mova: DynRank’s reporting inconsistencies illustrate how an otherwise useful experiment can become difficult to interpret. Mova already values retained evidence, but the digest does not establish a general checker connecting result tables to narrative claims.

Idea: Test whether native rules can supply the useful control signal. Where: Question Classification and the related-work discussion of linguistic question classification. Area: syntax and statistics. Instead of reproducing the trained classifier, Mova could derive categories from interrogatives, dependency roles, lexical classes, and domain knowledge, with unknown cases left unresolved. Mova: частково є (native parsing, compiled knowledge, and bounded question observations in docs/architecture.md and docs/hybrid-system.md). Why Mova: this directly fits Mova’s direction while preserving DynRank’s central architectural idea. Whether those native labels improve retrieval is an open experiment.

The problem and its context

Finding evidence before attempting an answer

The paper studies a particular bottleneck in information retrieval: the order of passages returned for a question. In the question-answering architecture it describes, retrieval and reading are separate responsibilities. The retriever searches a document collection and proposes passages. A reader then examines those passages for an answer. Even a capable reader depends on what it receives, so retrieval errors can constrain the entire system.

This dependence has several forms. The retriever may fail to return an answer-bearing passage at all. It may retrieve one but place it behind less useful material. Or it may return passages that share the question’s vocabulary while discussing a different relationship. DynRank addresses the ordering problem after candidates have already been retrieved. Its operation cannot recover a passage absent from that candidate set.

The distinction matters when interpreting its results. A reranker improves access to evidence already available within a bounded collection. It does not demonstrate a better search over the entire document collection unless the evaluation explicitly measures that complete process. DynRank’s contribution sits between initial discovery and subsequent reading, and the paper’s main experiments evaluate retrieval accuracy rather than final answer production.

Earlier approaches described by the authors

The authors place their work after both traditional retrieval and neural passage reranking. BM25 supplies an example of a sparse retrieval method, while DPR represents a dense retrieval approach. These systems provide the initial candidates. DynRank is intended to work with either kind, so its design does not require all candidate sources to share the same internal representation.

For learned reranking, the paper discusses BERT passage reranking as an important earlier approach. Its account emphasizes training a pretrained encoder for retrieval-specific decisions. That establishes a different route to relevance: instead of modifying an instruction at inference time, a system can learn a query–passage judgment from task-oriented supervision. DynRank’s proposed intervention is more narrowly concentrated on how a pretrained generator is asked to evaluate evidence.

The closest methodological reference is UPR. The authors describe it through passage-conditioned question generation and the relationship between those questions and the target query. DynRank retains this question-generation perspective but adds the inferred type of the target question to the instruction. The resulting comparison asks whether a more targeted prompt improves the ordering over a static question-generation instruction.

The paper also discusses RankGPT as a method that produces an ordering of passages under a fixed instruction. Its contrast with DynRank concerns where adaptation enters the process. DynRank uses the query’s classification to alter the instruction before evaluating candidates. This does not make fixed-instruction approaches inherently unsuitable; it defines the particular source of additional guidance the authors want to test.

Other related approaches adjust different parts of the pipeline. Passage-specific Prompt Tuning adapts prompts to passages while leaving the main generator parameters fixed. RankQA adds answer reranking that uses retrieval and comprehension features. These comparisons help identify DynRank’s scope: its distinctive conditioning signal comes from the question category, rather than a new answer-level feature combination or passage-specific parameter adjustment.

Why question classification is relevant

Question classification predicts the kind of answer a question seeks. A request for a person, for example, has a different expected answer class from a request for a place or a numerical quantity. The paper builds on question-classifier research and uses a hierarchy with broad classes and detailed subtypes.

This hierarchy compresses some of the question’s meaning into a small operational description. It does not preserve the whole query. Knowing that the answer should be a person leaves open whether that person is a creator, performer, recipient, or official. Nonetheless, it can exclude many irrelevant directions that a generic passage-to-question instruction might otherwise take.

The authors’ motivation is therefore an interaction problem. A passage contains many facts; an unrestricted instruction may focus on a prominent fact that is not the one needed. A category-conditioned instruction attempts to constrain that choice. The paper’s experiments assess whether this relatively small intervention can improve ranking across different initial retrievers and task collections.

Its contribution should be understood at that level. DynRank does not introduce a complete theory of question meaning, and its categories do not encode all relations needed for answering. It offers a practical mechanism for using one available property of the question to guide a later relevance judgment.

The method, step by step

Begin with a retrieved candidate set

DynRank assumes that a search component has already selected passages for a question. The complete evidence collection is represented as follows:

D = {d₁, …, d_M}

Here, D is the collection of evidence documents, d denotes an individual document, and M is the collection’s size. The notation provides the search space from which the initial retriever obtains candidates. It does not imply that DynRank evaluates every document.

For an input question q, the retriever supplies a bounded set:

Z = {z₁, …, z_K} ⊂ D

Z is the candidate passage set, z denotes a candidate passage, and K is the number of retrieved candidates. The paper moves between document and passage terminology, but the operational unit being reranked is a retrieved passage. DynRank works on this set after retrieval; it changes its ordering instead of its membership.

The main question-answering experiments rerank the top 1,000 retrieved passages. The BEIR setup uses the top 100 BM25 passages. These are different experimental budgets, and they should remain separate when interpreting quality and computational demands.

How DynRank changes passage order

The steps in order.

How DynRank changes passage orderStep 1: Retrieve candidate passages1. Retrieve candidate passagesStep 2: Classify the target question2. Classify the target questionStep 3: Select major and minor categories3. Select major and minor categoriesStep 4: Construct a category-conditioned prompt4. Construct a category-conditioned promptStep 5: Score the original question per passage5. Score the original question per passageStep 6: Sort passages by their scores6. Sort passages by their scores

Classify the target question

The next stage assigns a broad category and a finer subtype to the question. The paper defines this classification through a mapping:

C: Q → L_maj × L_min

C is the classification function. Q is the set of possible questions, L_maj contains the major categories, and L_min contains the subtypes. The multiplication sign indicates that the output is a pair of labels drawn from these sets, rather than a numerical product.

Applying the function produces the labels used downstream:

(l_maj, l_min) = C(q)

q is the input question. l_maj is its predicted major type, and l_min is its predicted subtype. These labels are predictions about the expected answer category. They are not answers, retrieved facts, or guarantees that a suitable passage is present.

The method description specifies RoBERTa fine-tuned on the UIUC question-classification dataset. It states that classification uses 5 broad classes and 50 detailed classes. Appendix D names abbreviation, entity, human, location, and numeric categories, with subtypes covering such distinctions as individuals, languages, dates, distances, and durations.

The displayed category table needs caution. Its subtype identifiers contain a gap between the entity entries and the human entries, while the text states a larger fine-grained inventory. The paper does not reconcile that gap. A reader can understand the intended hierarchical interface without assuming that the displayed appendix is a complete, implementation-ready declaration of every class.

Turn the labels into an instruction

A template function converts the category pair into a prompt:

p = T(l_maj, l_min)

p is the resulting prompt, and T is the template function. Its inputs are the predicted major category and subtype. The passage is incorporated into the instruction used for scoring, but this equation emphasizes the classification-dependent part of prompt construction.

For a human question with an individual subtype, the paper gives an instruction that frames the passage as concerning people and asks for a human-focused question. The important operation is the insertion of category information. The paper does not describe an unrestricted planning system that invents an entirely new reasoning procedure for every query.

“Dynamic” therefore has a specific meaning here. The instruction changes according to the classifier’s output. Questions assigned the same category pair may share the same category-conditioned instruction pattern. The mechanism is adaptive, but the adaptation is mediated by a fixed taxonomy and a template function.

This distinction also clarifies what the prompt does not contain. The classification does not identify the correct person or date. It supplies a constraint on the kind of question the passage should support. The subsequent generator still has to connect the passage with the actual query.

Score the original question under each passage

The paper defines a passage score using the question, passage, and prompt:

s_i = S(q | z_i, p)

s_i is the score assigned to candidate passage z_i. S is the scoring function, q is the original question, and p is the category-conditioned instruction. The vertical bar expresses conditioning: the question is evaluated given the passage and prompt.

The paper then specifies the score through a normalized sequence log-likelihood:

log P(q | z_i, p) = (1 / |q|) Σ_{t=1}^{|q|} log P(q_t | q_<t, z_i, p; Θ)

P is the pretrained generator’s conditional probability. |q| is the question’s token length. q_t is the token at position t, while q_<t denotes the earlier question tokens. Θ represents the generator’s parameters. The summation adds the log-probabilities assigned to the observed question tokens, and division by |q| normalizes the total by question length.

The left side is presented as the log-probability of the question, while the right side is specifically an average over token log-probabilities. That normalization is part of the stated scoring rule. The paper does not provide a separate comparison showing what changes if normalization is removed.

The distinction between scoring and freely generating a question is central. To score q, the system evaluates the tokens of q itself under the passage-conditioned distribution. It need not first generate another question and compare the resulting strings. The paper’s narrative sometimes emphasizes generated questions, and its examples display them, but its formal ranking definition directly evaluates the original question.

For a fixed question, all candidate passages are judged against the same target sequence. What varies is the passage supplied as evidence, together with the same question-derived category instruction. This makes the score a passage-dependent assessment of how well the generator can account for that query under the imposed focus.

Sort by the resulting scores

The final operation is expressed as:

R(Z) = sort(Z, by s_i)

R is the reranking function. It takes the candidate set Z and orders passages according to their scores s_i. The surrounding method description specifies descending score order, so passages receiving stronger question-likelihood scores move towards the beginning.

Sorting is simple; the meaning of the score is more demanding. A high likelihood indicates that the generator considers the question plausible under the passage and instruction. It does not logically certify that the passage entails an answer. The retrieval experiments test whether this scoring rule tends to place useful evidence earlier.

Because membership is unchanged, the method has a natural ceiling imposed by initial retrieval. If no candidate contains the answer, reordering alone cannot create answer-bearing evidence. Conversely, if useful evidence is already highly ranked, a reranker can damage the initial order. The DPR results demonstrate why that possibility must be measured rather than dismissed.

Training and implementation choices

The classifier experiments use the Transformers framework and compare several pretrained encoders. For fine-tuning, the batch size is 64, dropout is 0, and training lasts 5 epochs.1. The learning rate is 2e-5 for base configurations and 5e-6 for large configurations. These settings belong to supervised question classification, not to a new retrieval-training objective for the generator.

For open-domain question answering, Appendix A specifies T0-3B. It gives a passage input limit of 512 tokens and a generated-question limit of 128 tokens. The paper does not fully explain how the displayed generation procedure and these limits relate operationally to every likelihood-scoring detail, so the safest interpretation keeps the explicit settings and the formal score distinct.

For BEIR, the authors compare larger generators, including Mistral 7B, LLaMA v2 7B, and LLaMA v3.1 8B. The strongest reported result uses LLaMA v3.1 70B. Appendix A specifies batch size 16 per GPU, and the experimental setup identifies NVIDIA A40 hardware.

Initial BM25 retrieval uses Pyserini. Contriever uses pretrained checkpoints, while the paper also refers to existing retrieval implementations for its supervised setup. These dependencies underline the modular design: DynRank is an added evaluation stage around retrieved passages, rather than a replacement for all retrieval infrastructure.

Experiments and results

Data and what the measurements mean

The open-domain evaluation uses Natural Questions, TriviaQA, and WebQuestions. Their origins differ. Natural Questions contains search-derived questions associated with Wikipedia material. TriviaQA collects trivia questions with supporting documents. WebQuestions is described through question–answer pairs grounded in Freebase.

The Natural Questions split sizes reported in Table 1 are 79,168 for training, 8,757 for development, and 3,610 for testing. For TriviaQA, the training, development, and test sets contain 78,785, 8,837, and 11,313 examples, respectively. WebQuestions has 3,417 training examples, 361 development examples, and 2,032 test examples. These dataset sizes describe the benchmark splits; they do not mean DynRank’s generator was trained on all of them.

The main retrieval measure is accuracy at a cutoff: whether suitable answer-bearing evidence appears among the passages retained at that rank depth. A small cutoff tests the usefulness of the beginning of the list. A larger cutoff gives the reader access to more candidates and therefore evaluates broader coverage.

The paper says it reports Top-1, Top-20, and Top-100 accuracy after reranking 1,000 candidates. However, the WebQuestions header labels its earliest column Top-10, while the table caption describes the common cutoff set. That disagreement prevents a confident interpretation of the earliest WebQuestions column without further clarification.

BEIR uses nDCG@10. Unlike a simple success indicator for answer presence, this measure evaluates the ordering of relevant material near the top of a list. The paper reports selected BEIR datasets rather than establishing results for every task in the benchmark.

BM25 candidates: improvements near the beginning

The BM25 comparisons provide a clear demonstration of the paper’s intended effect. The same initial retriever is followed either by no reranking, by UPR, or by DynRank. This keeps candidate discovery conceptually separate from the added ordering procedure.

Natural Questions test retrieval, Top-1 accuracy

DynRank puts answer-bearing evidence first more often than the other reported BM25 settings.

Natural Questions test retrieval, Top-1 accuracyBM25: 22.1BM2522.1BM25 + UPR: 35.4BM25 + UPR35.4BM25 + DynRank (this paper): 36.5BM25 + DynRank (this paper)36.5
The numbers
System or settingTop-1 accuracy
BM2522.1
BM25 + UPR35.4
BM25 + DynRank (this paper)36.5

The Natural Questions comparison supports both the general value of reranking and the additional value of DynRank’s configuration over UPR in this setting. It does not isolate category conditioning from every other implementation choice, but it shows the final reported behavior under the authors’ experimental setup.

The broader cutoffs also favor DynRank for these candidates. On the Natural Questions test set, Top-20 accuracy is 62.9 for BM25, 78.4 with UPR, and 78.7 with DynRank. At Top-100, the respective values are 78.2, 85.2, and 85.5. These results describe improvements in ordering within the candidate pool, instead of an expansion of that pool.

TriviaQA shows the same direction for BM25 at the beginning of the ranking:

TriviaQA test retrieval, Top-1 accuracy

DynRank gives the strongest first-passage result among the reported BM25 configurations.

TriviaQA test retrieval, Top-1 accuracyBM25: 46.3BM2546.3BM25 + UPR: 55.7BM25 + UPR55.7BM25 + DynRank (this paper): 58.2BM25 + DynRank (this paper)58.2
The numbers
System or settingTop-1 accuracy
BM2546.3
BM25 + UPR55.7
BM25 + DynRank (this paper)58.2

At broader TriviaQA cutoffs, BM25 followed by DynRank reaches Top-20 accuracy of 83.1 and Top-100 accuracy of 86.6. UPR gives 82.8 and 86.4, while the original BM25 order gives 76.4 and 83.1. The pattern indicates that the main qualitative story is strongest at the very beginning, although the paper also reports gains at larger cutoffs.

Contriever and DPR reveal a more qualified pattern

Contriever’s Natural Questions results also improve with DynRank. The original Top-1 value is 22.1, UPR gives 36.3, and DynRank gives 37.0. At Top-20, the reported values are 67.8, 79.6, and 80.1. This supports the claim that the method is not restricted to BM25 candidates.

Yet the comparison is not uniformly favorable in every cell. On TriviaQA with Contriever, Top-20 accuracy is 82.8 for UPR and 82.7 for DynRank. Their Top-100 accuracy is tied at 86.4. DynRank has the stronger Top-1 result, 58.5 against UPR’s 56.7, but the broader cutoffs demonstrate why “better reranking” should always specify the metric and rank depth.

DPR provides a stronger warning against generalization from selected improvements. On Natural Questions, its original Top-1 accuracy is 48.6, while both UPR and DynRank give 42.5. DynRank improves the broader coverage measures, reaching Top-20 accuracy of 83.9 and Top-100 accuracy of 89.0, compared with DPR’s original 79.1 and 85.7. The added stage therefore changes the tradeoff between first-position success and broader answer coverage.

On TriviaQA, DPR’s Top-1 accuracy is 57.4, compared with 61.3 for UPR and 61.9 for DynRank. The method can help a supervised retriever, but the Natural Questions result shows that the benefit depends on the dataset and cutoff.

The WebQuestions DPR row raises an additional reporting problem. Its reported average is 66.3 for DynRank, while the original DPR average is 67.0. The table therefore does not justify an unqualified assertion that adding DynRank improves every retriever–dataset combination. The ambiguous earliest-column label makes that portion of the evidence even harder to summarize confidently.

Selected BEIR tasks

The BEIR experiment reranks 100 BM25 candidates and reports nDCG@10. Table 4 contains results for Covid, NFCorpus, SciFact, and Signal. Its reported averages support a favorable aggregate comparison:

Selected BEIR tasks, reported average nDCG@10

DynRank has the strongest reported average among these compared configurations.

Selected BEIR tasks, reported average nDCG@10BM25: 47.7BM2547.7UPR: 51.9UPR51.9RankGPT: 53.7RankGPT53.7DynRank (this paper): 54.39DynRank (this paper)54.39
The numbers
System or settingnDCG@10
BM2547.7
UPR51.9
RankGPT53.7
DynRank (this paper)54.39

Individual datasets give a more detailed picture. On Covid, RankGPT scores 76.67 and DynRank scores 76.06. On NFCorpus, DynRank gives 35.80, compared with RankGPT’s 35.62. On SciFact, DynRank reaches 72.80 while RankGPT gives 70.43. Signal favors DynRank over RankGPT, 32.93 against 32.12, but the original BM25 result is 33.05.

These results show that the strongest aggregate does not entail a win over every baseline on every dataset. They also conflict with the accompanying prose, which says RankGPT is stronger on SciFact. The table gives the opposite ordering. Elsewhere, the prose reports DynRank’s BEIR average as 54.1 rather than the table’s 54.39.

Generator choice matters

The paper varies the generator within the DynRank framework. Its reported BEIR average for LLaMA v3.1 70B is 54.39, followed by 53.4 for LLaMA v3.1 8B. LLaMA v2 7B gives 52.7, while Mistral 7B gives 49.18.

This comparison supports the authors’ statement that the underlying generator matters. It does not establish that size alone explains the ordering, because the compared configurations differ in more than size. Gemma 7B is included in the comparison, but the discussion does not provide its exact score, so no numerical result should be assigned to it.

The ODQA and BEIR results also use different generator configurations. Their absolute outcomes therefore cannot be treated as a controlled comparison of task difficulty or prompting benefit across those evaluation settings.

What the ablations show

The paper offers component comparisons and qualitative examples, but it does not report a systematic ablation that separately removes major labels, minor labels, or dynamic prompting while documenting an otherwise identical complete configuration.

Classifier accuracy is informative but incomplete

The classifier comparison includes BERT, DistilBERT, ALBERT, and RoBERTa variants. The results are useful because they separate broad-category accuracy from subtype accuracy.

BERT-base-cased has fine-grained accuracy of 91.8, while its coarse-grained result is 97.2. BERT-large-cased has coarse-grained accuracy of 98.0 but fine-grained accuracy of 83.8. The larger configuration is therefore not uniformly stronger, and performance on broad labels does not determine performance on detailed ones.

RoBERTa-base gives coarse-grained accuracy of 97.2 and fine-grained accuracy of 90.6. RoBERTa-large gives 97.8 and 89.4. Again, the broad and detailed evaluations favor different aspects of the configurations. These results support reporting both levels instead of collapsing classification into a single score.

The accompanying text says RoBERTa excelled at broad classification, but Table 3 gives BERT-large-cased the highest coarse-grained value. Meanwhile, the method description specifies a RoBERTa classifier even though BERT-base-cased has the strongest displayed fine-grained result.

This is not necessarily a methodological failure: a component can be selected for reasons other than its standalone maximum. However, the paper does not supply an end-to-end retrieval comparison explaining the choice. It therefore leaves open whether the best subtype classifier would also make the best DynRank system.

Generator variation tests dependence, not the whole explanation

The generator comparison shows that performance changes substantially across pretrained configurations. This is evidence against treating the prompt transformation as an independently sufficient mechanism. The instruction interacts with a generator whose capabilities affect the final ranking.

However, the comparison does not isolate the reason for those differences. It does not establish whether a configuration follows category instructions more reliably, assigns better question likelihoods, handles particular domains better, or benefits from some combination of these properties. The experiment tells the reader that the component matters, while leaving the explanation broad.

Nor does it measure the full quality–cost tradeoff. Without latency or resource measurements tied to the reported scores, the strongest accuracy result cannot automatically be identified as the most practical deployment choice.

UPR is a useful comparator, with attribution limits

UPR provides a close reference because both approaches evaluate passages through a question-generation perspective. DynRank’s stronger results in many settings are consistent with the usefulness of question-category guidance.

A controlled attribution would require the comparison to establish that the category instruction is the relevant changed factor. The paper does not present a detailed ablation matrix separating prompt wording, classifier choice, generator configuration, and category granularity. The results support DynRank as an evaluated configuration more directly than they prove a unique causal explanation for every gain.

The exceptions also matter. The tied DPR Top-1 values on Natural Questions and the Contriever Top-20 result on TriviaQA show that category conditioning is not a universally beneficial adjustment. An analysis organized by question subtype could have helped identify where it works best, but such a retrieval breakdown is not reported.

The examples show both useful focus and remaining drift

Appendix C compares questions generated under UPR and DynRank. In the Nobel Prize example, UPR produces a general question about the award, while DynRank focuses on its earliest recipient. This is a clear illustration of the intended benefit: passage content is redirected toward the kind of information sought.

The Deadpool example is more mixed. DynRank generates a time-oriented question about a premiere, whereas the target concerns a subsequent film release. The output is more compatible with a temporal answer type, but event identity and temporal intent remain misaligned. The example therefore supports selective focus more clearly than complete query understanding.

The Ken Barlow example exposes another boundary. The target asks who performs the character, while DynRank’s generated question concerns the person who created him. Both questions seek a human answer, yet their relations differ. A category label can guide the answer class without preserving the role the answer must fill.

The PhoneShop example is weaker still as evidence of alignment. The target asks about language, but DynRank asks about a vehicle associated with a passage character. The Polk-related example changes attention to Whitthorne’s employment. These cases should not be read as uniformly successful demonstrations merely because the appendix presents them together.

Finally, generated-question examples do not reveal the actual likelihood scores or their effect on passage position. They help explain possible behavior, but they cannot establish that a displayed question caused a correct ranking decision. The formal scoring procedure and the qualitative illustrations answer related but different questions.

Limitations

Limits acknowledged by the authors

The authors explicitly identify computational overhead. DynRank adds question classification, prompt construction, and passage scoring to initial retrieval. The demanding part is not simply producing a category label; it is evaluating many candidate passages with the prompted generator.

The reported candidate budgets make this concern concrete. ODQA reranks 1,000 passages for each question, while BEIR reranks 100. The paper acknowledges cost but does not provide a latency study, a throughput comparison, or a detailed resource accounting that would show where the added work becomes practical.

The authors also identify dependence on the pretrained generator’s quality and scale. Their own generator comparison supports this concern: the same general framework produces different BEIR outcomes with different configurations. A prompt construction rule does not remove the capabilities and limitations of the component that interprets it.

These are practical limitations as well as scientific ones. A retrieval improvement may be attractive for a batch evaluation while being less useful in a setting with a tight response budget. The paper does not establish that its strongest reported configuration is the best choice under such constraints.

Limits visible in the experimental design

The first additional limit is the fixed candidate pool. DynRank operates after retrieval, so it cannot promote evidence that never entered the set. Its gains are conditional on the initial retriever having found suitable material somewhere among the candidates.

The second is the gap between retrieval and answering. The experiments primarily show whether relevant or answer-bearing passages are ranked usefully. They do not establish a corresponding improvement in a complete reader’s final answers. A better passage order is a plausible aid to answering, but the paper does not measure every later step required for that claim.

The third concerns classification errors. The classifier is not perfect, and its output directly controls the instruction. An incorrect subtype can encourage the scorer to look for the wrong kind of question. The paper does not report retrieval results conditional on correct versus incorrect classification, so the downstream cost of those mistakes remains unknown.

The fourth is the limited explanatory power of the taxonomy. Broad and detailed answer classes still omit much of the requested relation. The appendix examples demonstrate that an individual-person category cannot distinguish a character’s performer from its creator. Similar problems arise when an appropriate answer type is attached to the wrong event or entity.

The English focus is another boundary. The related-work discussion explicitly locates the authors’ classification approach in English. The paper does not establish that its taxonomy, templates, classifier behavior, or measured improvements transfer unchanged to other languages.

“Zero-shot” has a component-specific meaning

DynRank should not be described as a completely untrained or label-free pipeline. The question-classification stage is fine-tuned using labeled data. Its training setup includes explicit optimization settings and a comparison of supervised classifier results.

The zero-shot description concerns how the prompted reranking component is used for retrieval. This can be a meaningful distinction, but it needs to remain attached to the relevant stage. Otherwise, readers may incorrectly infer that the method obtains its category knowledge without supervision.

The paper also does not test whether a rule-based classifier, a different taxonomy, or a simpler category scheme could supply the same useful signal. Its reported implementation demonstrates a particular combination, not the necessity of every component choice.

Reporting inconsistencies constrain interpretation

Several discrepancies affect the precision of the conclusions. The WebQuestions cutoff label conflicts with the table caption. The BEIR average differs between the table and prose. The discussion reverses the table’s RankGPT–DynRank ordering on SciFact.

The ODQA explanation also gives improvement claims that do not line up transparently with the displayed baseline values and cutoff labels. Those statements should not be silently reconciled through new calculations or assumptions. The safest presentation identifies the relevant table cells and preserves the uncertainty about the prose claims.

The classifier discussion has a related issue: its description of broad-category leadership does not match the displayed maximum. The taxonomy appendix likewise does not fully reconcile its listed identifiers with the stated fine-grained class count.

These issues do not make every result unusable. They do mean that precise reproduction would require clarification of the affected settings and measurements. A broad statement of consistent superiority is harder to defend than the narrower observation that many reported comparisons favor DynRank.

What stronger evidence would need to establish

The paper does not report uncertainty intervals or a significance analysis for the retrieval comparisons. Consequently, small numerical advantages should be read as reported point results, without an additional claim about their statistical reliability.

A stronger mechanism analysis would compare fixed and dynamic instructions under a fully matched configuration, then separate the effects of major categories and subtypes. It would also connect classifier errors to retrieval failures and distinguish type compatibility from entity and relation alignment.

A practical analysis would connect retrieval quality to candidate budget, text truncation, latency, and resource use. It would examine whether the strongest generator remains preferable when the system must serve questions under an operational limit.

These are requirements for broader claims, rather than findings the paper already supplies. DynRank establishes an evaluated route for using question classification to guide reranking. It leaves the exact contribution of each design choice, and the conditions under which the added computation is worthwhile, incompletely resolved.

What came after

No subsequent citing work is identified in the available later-work record. There is therefore no supported basis for describing a documented follow-up, an independently measured replication, or an extension that improved DynRank.

The distinction from earlier work is important. UPR, RankGPT, and passage-specific prompt tuning are part of the paper’s intellectual context; they are not later responses to DynRank. The authors position their contribution among those approaches by making the target question’s category an explicit input to prompt construction.

The open questions point towards possible research directions, but these remain directions rather than established descendants: determine which category distinctions help retrieval, trace classification errors into ranking failures, preserve the requested relation as well as its answer type, and measure the quality gained for the computation spent. DynRank supplies a concrete experimental starting point for those investigations without settling them.

Cite

Cite as Abdelrahman Abdallah, Jamshid Mozafari, Bhawna Piryani, Mohammed M. Abdelgwad and Adam Jatowt. 2025. DynRank: Improve Passage Retrieval with Dynamic Zero-Shot Prompting Based on Question Classification. Proceedings of the 31st International Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{abdallah2025dynrank,
  title = {{DynRank: Improve Passage Retrieval with Dynamic Zero-Shot Prompting Based on Question Classification}},
  author = {Abdelrahman Abdallah, Jamshid Mozafari, Bhawna Piryani, Mohammed M. Abdelgwad and Adam Jatowt},
  booktitle = {Proceedings of the 31st International Conference on Computational Linguistics},
  year = {2025},
  url = {https://aclanthology.org/2025.coling-main.319/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/abdallah-2025-dynrank-improve-passage-retrieval-dynamic/