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 For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2604.22661")

Code

Syntology Ran 11 of 19 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: found in paper text by Syntology: 19 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Narabzad/QPP-4-RAG found in paper text by Syntology 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; 11 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
8unverified

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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

RM1_from_text Narabzad/QPP-4-RAG/querygym/qpp/run_clarity_from_text.py found in paper text by Syntology ran MIT (permissive) · 65c2bbc2b1ae6508 · report
extract_data_for_correlation Narabzad/QPP-4-RAG/querygym/analyze_nugget_qpp_correlations.py found in paper text by Syntology ran MIT (permissive) · da1bdb0fd0fac0ac · report
extract_top_qpp_reformulations Narabzad/QPP-4-RAG/querygym/get_top_qpp_reformulations.py found in paper text by Syntology ran MIT (permissive) · 9020a6c44731fef1 · report
get_all_qpp_methods Narabzad/QPP-4-RAG/querygym/get_top_qpp_reformulations.py found in paper text by Syntology ran MIT (permissive) · b014346a20727cb7 · report
get_all_qpp_metrics Narabzad/QPP-4-RAG/querygym/analyze_qpp_oracle_performance.py found in paper text by Syntology ran MIT (permissive) · 713b9b714a8f6bcc · report
get_cross_encoder_model Narabzad/QPP-4-RAG/querygym/run_bert_qpp.py found in paper text by Syntology ran MIT (permissive) · fa3ad2aea7a350a9 · report
get_doc_term_freqs Narabzad/QPP-4-RAG/querygym/qpp/run_clarity_from_text.py found in paper text by Syntology ran MIT (permissive) · 03c65479d21484de · report
load_queries Narabzad/QPP-4-RAG/querygym/run_bert_qpp.py found in paper text by Syntology ran MIT (permissive) · 02e3825c62997adf · report
load_retrieval_run_file Narabzad/QPP-4-RAG/querygym/run_bert_qpp.py found in paper text by Syntology ran MIT (permissive) · 1144f1e29cc4fa45 · report
run_scoring Narabzad/QPP-4-RAG/querygym/run_rag_nuggetizer.py found in paper text by Syntology ran MIT (permissive) · befdda679e933e1e · report
setup_openai_api_key Narabzad/QPP-4-RAG/querygym/run_rag_generation_only.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 88d82053714e947e · report
CLARITY Narabzad/QPP-4-RAG/querygym/qpp/run_clarity_from_text.py found in paper text by Syntology unverified MIT (permissive) · fc1d3c8f3c10c928 · report
analyze_qpp_oracle_performance Narabzad/QPP-4-RAG/querygym/analyze_qpp_oracle_performance.py found in paper text by Syntology unverified MIT (permissive) · d75693278e80c095 · report
calculate_correlations Narabzad/QPP-4-RAG/querygym/analyze_nugget_qpp_correlations.py found in paper text by Syntology unverified MIT (permissive) · 7c838f84a3939965 · report
calculate_correlations Narabzad/QPP-4-RAG/querygym/analyze_qpp_correlations.py found in paper text by Syntology unverified MIT (permissive) · 2eabbea57b3c0bda · report
evaluation Narabzad/QPP-4-RAG/QPP4CS/evaluation_QPP.py found in paper text by Syntology unverified MIT (permissive) · 0b535ecda28038b9 · report
get_all_qpp_metrics Narabzad/QPP-4-RAG/querygym/analyze_qpp_correlations.py found in paper text by Syntology unverified MIT (permissive) · f203650ab4b737a0 · report
get_qpp_score Narabzad/QPP-4-RAG/querygym/get_top_qpp_reformulations.py found in paper text by Syntology unverified MIT (permissive) · 026ed0d5c10b5c62 · report
load_consolidated_data Narabzad/QPP-4-RAG/querygym/analyze_nugget_qpp_correlations.py found in paper text by Syntology unverified MIT (permissive) · bc1b076ebd35d7cc · 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