When a search query and the documents that answer it use different words, the search engine misses those documents. This is the vocabulary mismatch, or lexical gap, problem. It is common: in WikiQA, 20.3% of correct answers share no content words with the question. Current fixes run a loop in which a large language model reads what came back, writes a better query, and searches again. These loops help, but they stop improving almost immediately. InteR peaks at two rounds, and further rounds pile up off-topic words. This proposal replaces the rewritten text with something more stable. In each round, a judge answers only relative questions of the form "is document A more relevant to this question than document B?" The system keeps every such answer. Before each new search, it moves the query's vector (the list of numbers a dense retriever uses to represent text) just far enough to agree with all the answers collected so far.
The idea comes from relative similarity learning, the line of metric-learning work that trains distance functions from triplets ("x is closer to x⁺ than to x⁻") because people and models give more consistent ordinal comparisons than absolute scores. In that literature the triplets train a model offline. Here they are collected at test time, for a single query, and they act as a memory that keeps later rounds from undoing earlier progress. The update moves the query toward judged-better documents whether or not those documents share words with the question, so it addresses the lexical gap without asking the language model to guess the corpus's jargon.
Core Claim
Treat each round of retrieval feedback as a set of ordinal constraints and solve a small convex problem for the next query vector. This should match or beat text-rewriting loops on queries with large vocabulary mismatch. It should also keep improving, or at least hold steady, past the two-round ceiling those loops hit. The key ingredient is that the feedback is relative and it accumulates. With the same judge and the same judging budget, absolute relevance grades should do measurably worse.
Concretely, let $q_0$ be the dense embedding of the original question. Let $T_t$ be all judged pairs $(d^+, d^-)$ collected up to round $t$, where $d^+$ was preferred over $d^-$. Let $s(q,d)=q^\top e(d)$ be the retriever's inner-product score against the frozen document embedding $e(d)$. The next query is
$$q_{t} = \arg\min_{q} \; \lVert q - q_0 \rVert^2 + C \sum_{(d^+,d^-)\in T_t} \max\big(0,\; \alpha - s(q,d^+) + s(q,d^-)\big),$$
where $\alpha$ is a margin and $C$ trades fidelity to the original question against agreement with the judgments. The score is linear in $q$, so this is a convex quadratic program over a few hundred dimensions. It solves in milliseconds and has a unique optimum. The anchor term keeps the query from drifting, which is the failure that unconstrained expansion suffers. This is the maximum-margin formulation of Learning a Distance Metric from Relative Comparisons, which casts triplet-constrained metric learning as a convex QP. It is reused with the query vector as the variable instead of a corpus-wide weight matrix, so the document index never changes.
Relation to Prior Work
Two papers motivate replacing absolute scores with ordinal signals in query refinement. GRAPE trains a query rewriter with group-relative policy optimization. It rewards each rewrite by the target item's rank among sibling rewrites, and it shows that rewarding raw cosine similarity instead leads to "score inflation," where generic words are appended. RaFe builds preference pairs from a reranker's scores to train a single-shot rewriter. Both use relative signals only as offline training rewards for a model that rewrites once at inference. This proposal uses relative signals at inference, accumulated over rounds, and trains nothing.
OASIS supplies evidence that ordering among negatives matters for bridging the lexical gap in code search. It adds an order-aware loss so that hard negatives sit between positives and random negatives. That work is static and offline, whereas here the ordering is elicited per query.
The iterative refinement systems are the closest competitors, and they also constrain the design:
- InteR alternates language-model expansion and retrieval.
- Chain-of-Rewrite rewrites both queries and documents and uses "unknown"-answer probability to down-rank documents.
- CoV-RAG revises the query after drafting an answer and finds this beats revising before retrieval.
- SeRTS runs tree search over reformulations, with an evaluator that grades results on an absolute 1–5 rubric.
All four express refinement as new text and score results absolutely or heuristically. CoV-RAG's result supports one of this proposal's design choices: feedback should come after seeing results. InteR's saturation at two rounds is the specific failure this proposal targets.
DASL regularizes the consistency of embedding difference vectors during training. It is related in spirit but not used here, because the base space stays frozen. BEIR constrains expectations: dense retrievers generalize poorly out of domain, and reranking and late-interaction models do best zero-shot. Per-query adaptation of a dense retriever is therefore most likely to help exactly where BEIR shows dense models failing. Reranking is also the competitor to beat.
Research Program
Each round has three parts. First, retrieve the top documents for the current query $q_t$ from a pool that unions dense and BM25 results. BM25 often provides a lexical foothold the dense model lacks. Second, pick a small number of document pairs to judge, mixing newly surfaced documents with the current best. Third, ask a judge for a preference on each pair and add the answers to $T_t$, then solve the program above for $q_{t+1}$.
Two judges will be compared. The cheap judge is a cross-encoder whose pairwise orderings are taken as preferences. RaFe reports that reranker-based feedback is about 100 times faster to generate than language-model feedback. The expensive judge is a language model prompted for pairwise preferences, with order randomized to control position bias. Pair selection will be studied as a budgeted active-learning problem. The working hypothesis is that pairs where the current query ranks the two documents nearly equally carry the most information, because those constraints are most likely to be violated and therefore to move the solution.
The analysis has one question at its center: does the accumulated constraint set prevent late-round degradation? Each round, the experiments will track how many earlier constraints a text rewrite would violate if embedded, against zero by construction for the quadratic-program update. Retrieval quality will then be correlated with that violation count. A secondary variant uses the constraint set only as a filter: a language model proposes text rewrites, and the system keeps the candidate whose embedding violates the fewest accumulated constraints. This tests whether the memory, rather than the vector update itself, is what matters.
The method has an honest precondition. If no relevant or even partially relevant document appears in the round-0 pool, the judgments can only push the query away from wrong topics, not toward the right one. Round-0 pool recall will be measured and results stratified by it.
Baselines
The naive reference points are single-pass BM25 and single-pass dense retrieval with the same encoder, using no feedback. On TREC DL'19, InteR reports BM25 at 30.1 MAP. On PopQA, Chain-of-Rewrite reports BM25 at 34.6% accuracy and 37.4% Recall@5.
The strongest text-refinement competitors are InteR and Chain-of-Rewrite. InteR reports 50.0 MAP on TREC DL'19, against 41.8 for zero-shot HyDE (single-pass generation of a hypothetical answer document that is embedded and searched). Chain-of-Rewrite reports 48.0% accuracy and 59.8% Recall@5 on PopQA with Vicuna-13B. Both will be re-implemented with the same open language model the proposal uses as its expensive judge. Each will be run for one to five rounds and given matched language-model token budgets. Beating them means higher MAP and nDCG@10 at equal tokens, and no drop from round 2 to round 5 where they degrade.
The strongest non-iterative competitor is cross-encoder reranking, which BEIR identifies as among the best zero-shot approaches. BEIR's per-dataset numbers are not in the research file, so they will be measured here. For fairness, the reranker gets exactly as many cross-encoder calls as the proposal's cheap judge, spent on reranking a deeper first-stage pool. Beating it requires higher recall at 100, not just higher top-10 precision, because the claim is that the method surfaces documents the first stage never retrieved.
Two ablations isolate the key ingredient. The first, the absolute-feedback ablation, uses the same judge and the same number of judge calls but asks for 1–5 grades and updates the query by grade-weighted averaging toward documents. This is the SeRTS-style signal applied to the same vector-update machinery. The second, the memory ablation, keeps only the current round's pairs in $T_t$. If either ablation matches the full method, the corresponding part of the claim is false.
Why not just…?
Why not just do vector pseudo-relevance feedback, averaging the top documents into the query? This is the most serious threat, because it is cheap and also moves the query without new words. Unweighted top-k averaging is run as a baseline. The judge-weighted absolute-grade ablation is its strongest form. If that ablation matches the full method, the relative framing adds nothing and the proposal reduces to "use a judge to weight relevance feedback." The experiments are designed to settle that question directly. The expected advantage comes from two places. Ordinal judgments can say "this near-miss is worse than that one," which grading collapses. The margin constraints also only move the query when an ordering is violated.
Why not just rerank with a cross-encoder? Reranking reorders what the first stage returned. It cannot recover a relevant document whose wording kept it out of the pool, and that is the failure the lexical gap causes. The budget-matched deeper-pool reranker baseline and the Recall@100 comparison test this. If deeper reranking recovers the same documents, the proposal's value is limited to cases where the first-stage pool cannot be made deeper.
Why not just train a better rewriter with ranking rewards, as GRAPE and RaFe do? Trained rewriters still emit text, which accumulates noise across rounds. They also need training data from the target domain, which is exactly what is missing under the domain shift BEIR highlights. A GRAPE-style group-relative rewriter trained on MS MARCO and run iteratively will be compared out of domain. The proposal's training-free update should win most clearly on TREC-COVID, SciFact and NFCorpus, and could plausibly lose in domain. That would be an informative boundary rather than a failure.
Proposed Experiments
The evaluation covers four groups of benchmarks:
- TREC DL'19 for in-domain web search, measured with MAP and nDCG@10, against InteR's reported 50.0 MAP.
- The BEIR domain-shift subsets TREC-COVID, SciFact, NFCorpus and BioASQ, measured with nDCG@10 and Recall@100. SeRTS reports a 5.5-point recall gain over BM25 on BioASQ Task 11b as a reference.
- PopQA, measured with Recall@5 and downstream answer accuracy using a fixed reader, against Chain-of-Rewrite's reported 59.8% and 48.0%.
- WikiQA, with questions split into those whose answer shares zero content words with the question (the 20.3% slice) and the rest.
The first decisive check is the round curve. Every method is plotted from round 1 to round 5. The claim fails if the quadratic-program update degrades after round 2 the way text expansion does. The second check is the lexical-overlap stratification on WikiQA and PopQA. The gain over the best text-rewriting baseline should be largest on the zero-overlap slice. If the gain is uniform, the method is doing generic feedback and not specifically bridging the vocabulary gap. The third check is the pair of ablations at matched judge budget, which decides whether relative constraints and their accumulation are the cause of any gain. Latency per query and judge calls per query are reported throughout, since the method is only worthwhile if the cheap cross-encoder judge captures most of the language-model judge's benefit.
References
- Learning a Distance Metric from Relative Comparisons
- GRAPE: Let GRPO Supervise Query Rewriting by Ranking for Retrieval
- RaFe: Ranking Feedback Improves Query Rewriting for RAG
- OASIS: Order-Augmented Strategy for Improved Code Search
- Synergistic Interplay between Search and Large Language Models for Information Retrieval
- Chain-of-Rewrite: Aligning Question and Documents for Open-Domain Question Answering
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
- SeRTS: Self-Rewarding Tree Search for Biomedical Retrieval-Augmented Generation
- Robust Similarity Learning with Difference Alignment Regularization
- BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models