Papers › Can QPP Choose the Right Query Variant? Evaluating Query Variant Selection for RAG Pipelines

Can QPP Choose the Right Query Variant? Evaluating Query Variant Selection for RAG Pipelines

24 Apr 2026arXiv:2604.22661added by Syntology

Negar Arabzadeh, Andrew Drozdov, Michael Bendersky, Matei Zaharia

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Large Language Models (LLMs) have made query reformulation ubiquitous in modern retrieval and Retrieval-Augmented Generation (RAG) pipelines, enabling the generation of multiple semantically equivalent query variants. However, executing the full pipeline for every reformulation is computationally expensive, motivating selective execution: can we identify the best query variant before incurring downstream retrieval and generation costs? We investigate Query Performance Prediction (QPP) as a mechanism for variant selection across ad-hoc retrieval and end-to-end RAG. Unlike traditional QPP, which estimates query difficulty across topics, we study intra-topic discrimination - selecting the optimal reformulation among competing variants of the same information need. Through large-scale experiments on TREC-RAG using both sparse and dense retrievers, we evaluate pre- and post-retrieval predictors under correlation- and decision-based metrics. Our results reveal a systematic divergence between retrieval and generation objectives: variants that maximize ranking metrics such as nDCG often fail to produce the best generated answers, exposing a "utility gap" between retrieval relevance and generation fidelity. Nevertheless, QPP can reliably identify variants that improve end-to-end quality over the original query. Notably, lightweight pre-retrieval predictors frequently match or outperform more expensive post-retrieval methods, offering a latency-efficient approach to robust RAG.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 19 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 12 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 12 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 19 samples from 1 repository, 16 ran (4 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-24 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

Narabzad/QPP-4-RAG found in paper text by SyntologySyntology: 19 samples, 16 ran (12 instrument-failed) · 3 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested: 16 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 12 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
12ran · our draft was wrong
3ran
3unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Narabzad/QPP-4-RAG. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

Narabzad/QPP-4-RAG found in paper text by Syntology 19 samples, 16 ran (12 instrument-failed) · 3 unverified
RM1_from_text querygym/qpp/run_clarity_from_text.py ran MIT (permissive) · 65c2bbc2b1ae6508 · report fixture: signature qtokens:list/1/str, pid_list:list/1/str, score_list:list/1/float, index_reader:MockIndexReader/0/?, k:int/0/int, mu:int/0/int · returned ndarray · level recorded 2026-09-24
calculate_correlations querygym/analyze_nugget_qpp_correlations.py ran MIT (permissive) · 7c838f84a3939965 · report fixture: signature df:DataFrame/0/?, nugget_cols:list/1/str, qpp_cols:list/1/str, method_name:str/0/str · returned DataFrame · level recorded 2026-09-25
evaluation in 57 papers QPP4CS/evaluation_QPP.py ran · our draft was wrong MIT (permissive) · 0b535ecda28038b9 · report fixture: signature ap_path:str/0/str, pp_path:str/0/str, target_metric:str/0/str · returned dict · level recorded 2026-09-25
extract_data_for_correlation querygym/analyze_nugget_qpp_correlations.py ran · our draft was wrong MIT (permissive) · da1bdb0fd0fac0ac · report fixture: signature data:dict/0/? · returned tuple · level recorded 2026-09-24
extract_top_qpp_reformulations querygym/get_top_qpp_reformulations.py ran · our draft was wrong MIT (permissive) · 9020a6c44731fef1 · report fixture: signature data:dict/0/?, top_k:int/0/int · returned dict · level recorded 2026-09-24
get_all_qpp_methods querygym/get_top_qpp_reformulations.py ran · our draft was wrong MIT (permissive) · b014346a20727cb7 · report fixture: signature data:dict/0/? · returned list · level recorded 2026-09-24
get_all_qpp_metrics querygym/analyze_qpp_correlations.py ran · our draft was wrong MIT (permissive) · f203650ab4b737a0 · report fixture: signature data:dict/0/? · returned list · level recorded 2026-09-25
get_all_qpp_metrics querygym/analyze_qpp_oracle_performance.py ran · our draft was wrong MIT (permissive) · 713b9b714a8f6bcc · report fixture: signature data:dict/0/? · returned list · level recorded 2026-09-24
get_cross_encoder_model querygym/run_bert_qpp.py ran · our draft was wrong MIT (permissive) · fa3ad2aea7a350a9 · report fixture: returned MockCrossEncoder · level recorded 2026-09-24
get_doc_term_freqs querygym/qpp/run_clarity_from_text.py ran · our draft was wrong MIT (permissive) · 03c65479d21484de · report fixture: signature pid:str/0/str, index_reader:MockIndexReader/0/? · returned dict · level recorded 2026-09-24
get_qpp_score querygym/get_top_qpp_reformulations.py ran · honoured contract MIT (permissive) · 026ed0d5c10b5c62 · report fixture: signature reformulation:dict/0/?, qpp_method:str/0/str · returned float · level recorded 2026-09-25
load_consolidated_data querygym/analyze_nugget_qpp_correlations.py ran · our draft was wrong MIT (permissive) · bc1b076ebd35d7cc · report fixture: signature json_file:str/0/str · returned dict · level recorded 2026-09-25
load_queries in 17 papers querygym/run_bert_qpp.py ran · our draft was wrong MIT (permissive) · 02e3825c62997adf · report fixture: signature queries_file:str/0/str · returned dict · level recorded 2026-09-24
load_retrieval_run_file querygym/run_bert_qpp.py ran · our draft was wrong MIT (permissive) · 1144f1e29cc4fa45 · report fixture: signature run_file_path:str/0/str · returned dict · level recorded 2026-09-24
run_scoring querygym/run_rag_nuggetizer.py ran MIT (permissive) · befdda679e933e1e · report fixture: signature assignments_dir:str/0/str, scores_dir:str/0/str, script_path:str/0/str, log_file:str/0/str · returned tuple · level recorded 2026-09-24
setup_openai_api_key querygym/run_rag_generation_only.py ran · our draft was wrong fingerprinted MIT (permissive) · 88d82053714e947e · report fixture: signature api_key:str/0/str · returned str · level recorded 2026-09-24
CLARITY querygym/qpp/run_clarity_from_text.py unverified MIT (permissive) · fc1d3c8f3c10c928 · report
analyze_qpp_oracle_performance querygym/analyze_qpp_oracle_performance.py unverified MIT (permissive) · d75693278e80c095 · report
calculate_correlations querygym/analyze_qpp_correlations.py unverified MIT (permissive) · 2eabbea57b3c0bda · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2604.22661, was issued in April 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections