Skip to content

Menu

WorksComputer Science

Tracing and Taming Hallucinated Terms via Subsequence-Association Filtering and Breadth-Aware Selection for LLM Query Expansion

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_nyvrvn8t. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Large language models (LLMs) are now a standard source of query expansion terms but they hallucinate. They inject non existent entities and off-topic terms that add ranking noise and can hurt strong retrievers. Existing remedies such as corpus grounding, mutual verification and preference alignment treat hallucinated terms as an undifferentiated nuisance to be filtered by agreement heuristics, without a mechanistic account of why a given term appears or a principled criterion for how many terms to keep. We propose Subsequence-Association Filtered, breadth-aware query expansion (SAFE-QE), a training-free, retriever agnostic method that draws on the subsequence-association account of hallucination. We score each candidate expansion term by its corpus conditioned cross-context reproducibility, terms that reappear under randomised query contexts yet lack support in the pseudo-relevant set are flagged as products of dominant hallucinatory associations and down-weighted. Drawing on the characterisation of language generation as a trade-off between consistency (no hallucination) and breadth (coverage), we cast term selection as constrained coverage maximisation over the pseudo-relevant set, keeping a set that is approximately broad but consistent and stable across resampling. We also introduce the Hallucinated Expansion Term Rate, a query side faithfulness metric that counts injected expansion terms no relevant document supports. We evaluate our approach on benchmarked TREC and BEIR collections. Our SAFE-QE is statistically indistinguishable from generative and corpus-steered expansion on nDCG@10 while injecting fewer unsupported terms 4.3 per query against 27.8 for Query2doc and 57.5 for HyDE and on a strong learned sparse retriever, where every expansion method regresses. Faithfulness is therefore available at no measurable cost in ranking quality.

Introduction

Query expansion augmenting a short query with related terms to close the vocabulary gap between queries and documents is one of the oldest and most reliable levers in information retrieval (IR). The current wave of query expansion replaces corpus derived pseudo-relevance feedback (PRF) with terms, keywords, or hypothetical documents generated by large language models (LLMs). Methods such as Query2doc [14], HyDE [2], query expansion by prompting [4], and generative relevance feedback [10] report substantial gains, especially for lexical retrievers such as BM25. Yet these gains are fragile. LLMs hallucinate, they produce fluent text that is factually wrong or unsupported by any relevant document. In query expansion, this manifests as injected non existent entities and off-topic terms. Two empirical studies make the cost concrete. Weller et al. [15] show across many methods, retrievers, and datasets, a negative correlation between retriever strength and the benefit of expansion, generated expansions help weak retrievers but add additional noise that harms strong ones by introducing false positives near the top of the ranking. Abe et al. [1] identify two failure modes unfamiliar queries, where the LLM introduces non existent entities or unrelated terms, and ambiguous queries, where expansions collapse onto the most popular sense and narrow coverage. Recent work to ground generation in the corpus are CSQE [7], LameR [12], ThinkQE [8] to cross verify generated and retrieved evidence [5], to filter smaller model generations [9], or to align the generator with ranking preferences via training [16]. These are effective but they share two blind spots. They are mechanism agnostic, a term is kept or dropped by whether it happens to co-occur with retrieved evidence. They lack a principled selection criterion, how many terms to keep, and how to trade coverage against faithfulness is left to a fixed top-kk or a tuned weight. We argue that two recent theoretical results [13, 6] supply exactly the missing ingredients, and that is understudied in IR. Sun et al. [13] explain hallucination mechanistically, decoder only transformers behave as subsequence-association models, and hallucination occurs when a dominant hallucinatory association between an input subsequence and an output token outweighs faithful ones. Also, Kalavasis et al. [6] characterise language generation as an intrinsic trade-off between consistency i.e., eventually producing only valid outputs or no hallucination, and breadth refers to covering a rich subset of the target, formalising exact and approximate breadth and the role of generator stability. We detail our underlying notion schematically in Figure 1.

Figure 1. A schematic pipeline of a dominant hallucinated subsequence association makes the LLM emit context-free, ungrounded expansion terms that inject false positives into the ranking, and these terms hurt stronger retrievers.

Inspired by these approaches, we propose SAFE-QE that treats expansion term generation as generation-in-the-limit over the target corpus vocabulary and asks for a term set that is approximately broad but consistent, broad enough to improve recall, yet consistent enough to avoid injecting hallucinated terms. It (a) generates candidate terms with an open LLM, (b) scores each by a lightweight, corpus conditioned analogue of SAT that rewards terms grounded in the pseudo-relevant set and penalises terms whose presence is reproducible across randomised contexts but corpus unsupported, (c) selects a set by submodular coverage maximisation under a grounding constraint. And, (d) keeps only terms that are stable across resampled generations. SAFE-QE is training-free and retrieve agnostic wrapping any generate-then-expand pipeline. Our contributions can be summarised as follows.

  1. We reframe hallucination in query expansion through the lens of subsequence associations [13] and the consistency breadth stability characterisation of language generation [6].

  1. We introduce SAFE-QE, a training-free method combining a corpus conditioned reproducibility score with breadth-aware, stability checked selection.

  1. We propose HETR, a Hallucinated Expansion Term Rate that quantifies unsupported injected terms via atomic corpus verification, adapting the HALoGEN method [11] to query expansion.

Related Work

LLM based query expansion: LLM QE methods cluster into three families. Pseudo document generation appends an LLM written document to the query, Query2doc [14] concatenates a generated passage (with query repetition for BM25) and reports 3-15% BM25 gains on MS MARCO and TREC DL. HyDE [2] encodes a zero shot ‘hypothetical document’ with an unsupervised dense encoder whose bottleneck is credited with filtering hallucinations. MuGI [18] fuses multiple pseudo references with adaptive reweighting. Term or keyword generation prompts for expansion terms with chain of thought giving the strongest keywords [4]. Corpus grounded or feedback fused methods reduce hallucination by conditioning on retrieved evidence. GRF [10] builds RM3 based feedback models from long form LLM text. CSQE [7] extracts pivotal sentences from BM25’s top-kk. LameR [12] conditions generation on retrieved documents. ThinkQE [8] iterates a thinking process against the corpus. On the document side, Doc2Query [3] filters hallucinated generated queries before indexing, the closest prior instance of filtering generated text, but applied to documents, heuristically, and without a generative mechanism account.

Hallucination in expansion, and why it matters Weller et al. [15] and Abe et al. [1] document that generated expansions inject noise and non existent entities, hurting strong retrievers and unfamiliar or ambiguous queries. Yoon et al. [17] argue that much of LLM-QE’s benefit stems from knowledge leakage, gains appear mainly when generated text contains gold entailed content. This is conceptually adjacent to our formulation, both links to memorised associations but [17] diagnose leakage as a confound, whereas we exploit the same mechanism to separate faithful from hallucinatory associations and filter accordingly. Mitigations to date rely on grounding i.e. CSQE, LameR, ThinkQE, agreement such as MILL [5], small model filtering [9], or training LLM-QE [16]. None grounds mitigation in a theory of the generative mechanism, and none frames selection as a consistency breadth trade-off.

Decoder-only transformers act as subsequence embedders and that hallucination arises when a dominant hallucinatory subsequence association outweighs faithful ones [13]. Their SAT algorithm identifies causal input subsequences by measuring how reproducibly they trigger a target output across randomised contexts, validated on HALoGEN [11]. Kalavasis et al. [6] extends on generation in the limit, prove that generating with exact breadth is as hard as identification, that approximate breadth (missing only finitely many valid items) is strictly easier, and that requiring stability (a generator whose output eventually stops changing) collapses these notions to the harder regime. A sharp consistency breadth stability interplay. We are to our knowledge, the first to port either result into information retrieval.

Our Method

Problem Formulation

Given a query qq and a corpus C\mathcal{C} with a first-stage retriever RR, query expansion produces an expanded query q+q^{+} that retrieves a better ranking. An LLM GG proposes a pool of candidate terms T={t1,…,tm}T = \{t_1, \ldots, t_m\} (tokens, phrases, or salient spans of a generated pseudo-document). Some are faithful supported by documents relevant to qq and some are hallucinated, fluent but unsupported. Our goal is to keep a subset T⋆⊆TT^{\star} \subseteq T that maximises coverage of the relevant material (breadth) while excluding hallucinated terms (consistency).

We view GG as a generator over the corpus vocabulary and target the approximately broad but consistent regime of [6]. We do not demand every valid term, exact breadth is as hard as identification and needlessly risky, only that T⋆T^{\star} miss few faithful facets while admitting no hallucinated ones. To decide faithfulness per term, we use a corpus conditioned analogue of the subsequence association signal of [13].

Candidate generation

We prompt GG, an open instruction-tuned LLM with a Query2doc/CoT-style template to produce NN independent samples, yielding a multiset of candidate terms with sample frequencies. Let freq⁡(t)∈[0,1]\operatorname{freq}(t) \in[0,1] denote the fraction of the NN samples containing tt. High freq is our practical proxy for a stable generator in the sense of [6], a term the generator commits to under resampling.

Corpus conditioned reproducibility score

We compute two quantities for each candidate tt.

Cross context reproducibility ρ(t)\rho(t). Following the SAT approach [13], we build a small perturbation set of PP variant prompts that randomly drop and recombine subsequences of qq (and, when used, of the generated pseudo-document), then measure how often tt still appears,

ρ(t)=1P∑p=1P1[t∈G(q~p)].(1)\rho(t) = \frac{1}{P}\sum_{p=1}^{P}\mathbf{1}[t \in G(\widetilde{q}_p)]. \tag*{(1)}

A high ρ(t)\rho(t) means tt is triggered by a dominant association that is largely independent of the specific query intent, a hallmark of a context-insensitive (often hallucinatory) association.

Corpus grounding γ(t)\gamma(t). Let DkD_k be the top-kk pseudo-relevant documents from R(q)R(q). We set γ(t)=max⁡d∈Dksup⁡(t,d)\gamma(t) = \max_{d \in D_k}\operatorname{sup}(t,d), where sup⁡(t,d)∈[0,1]\operatorname{sup}(t,d) \in[0,1] is a support score, lexical presence for sparse settings, or maximum cosine similarity between the embedding of tt and the sentences of dd for dense settings.

Faithfulness. A term is trusted when it is grounded, and it is suspected hallucinatory when it is highly reproducible yet ungrounded. We combine these into a keep-score

s(t)=γ(t)⏟grounding−λρ(t)(1−γ(t))⏟context-free & ungrounded+μfreq⁡(t),(2)s(t) = \underbrace{\gamma(t)}_{\text{grounding}} - \lambda\underbrace{\rho(t)(1-\gamma(t))}_{\text{context-free \& ungrounded}} + \mu\operatorname{freq}(t), \tag*{(2)}

with non-negative hyperparameters λ,μ\lambda,\mu. The middle term is of essence, it penalises exactly the terms flagged by the subsequence-association account, those a dominant association reproduces regardless of context and that no relevant document supports.

Breadth-aware, consistency constrained selection

Keeping the top-kk by s(t)s(t) ignores redundancy, many high-scoring terms may cover the same facet. We instead maximise coverage of the pseudo-relevant set subject to a consistency (grounding) constraint. We represent each document

Algorithm 1 SAFE-QE
Require: query $q$, retriever $R$, LLM $G$, budget $B$, params $\lambda$, $\mu$, $\beta$, $\tau$, $\tau_g$, $\theta$, $\alpha$
1: $\{\text{samples}\} \leftarrow G(q)$ sampled $N$ times; form candidate pool $T$ with $\operatorname{freq}(\cdot)$
2: $D_k \leftarrow$ top-$k$ documents of $R(q)$ ▷ pseudo-relevant set
3: for each $t \in T$ do
4: compute $\rho(t)$ over $P$ perturbed prompts; $\gamma(t)$ over $D_k$
5: $s(t) \leftarrow \gamma(t) - \lambda \rho(t)(1-\gamma(t)) + \mu \operatorname{freq}(t)$ ▷ {xref}`Eq. (2)`
6: end for
7: $T_g \leftarrow \{t : \gamma(t) \ge \tau_g\}$; solve {xref}`Eq. (3)` greedily $\to T^\star$
8: $T^\star \leftarrow \{t \in T^\star : \operatorname{freq}(t) \ge \theta\}$ ▷ stability filter
9: return $q^+ \leftarrow \operatorname{Fuse}(q,T^\star,\alpha)$

d∈Dkd \in D_k by the set of candidate terms it supports, cov⁡(t)={d∈Dk:sup⁡(t,d)≥τ}\operatorname{cov}(t) = \{d \in D_k : \operatorname{sup}(t,d) \ge\tau\}. We solve

T⋆=arg⁡max⁡S⊆Tg, ∣S∣≤B∣⋃t∈Scov⁡(t)∣+β∑t∈Ss(t),Tg={t:γ(t)≥τg},(3)T^\star= \underset{S \subseteq T_g,\ |S|\le B}{\arg\max}\left|\bigcup_{t\in S}\operatorname{cov}(t)\right|+\beta\sum_{t\in S}s(t),\qquad T_g=\{t:\gamma(t)\ge\tau_g\}, \tag*{(3)}

i.e., a budget-BB maximum coverage objective which is submodular, solved greedily with a (1−1/e)(1-1/e) guarantee restricted to grounded candidates TgT_g. The coverage term encodes approximate breadth span the facets present in the corpus, while the grounding constraint enforces consistency. This is the operational reading of the trade-off in [6], we deliberately forgo exact breadth (all valid terms) for a broad but safe subset.

Stability filter and expansion

We drop any t∈T⋆t \in T^\star with freq⁡(t)\operatorname{freq}(t) below a threshold θ\theta, volatile terms that appear in few resamples are empirically more often hallucinated. The surviving terms form q+q^+, for sparse retrieval we fuse them into an RM3-style expansion with weight α\alpha, for dense retrieval we append them to qq before encoding. Our algorithm 1 summarises the procedure.

Hallucination Metric for Query Expansion

Retrieval metrics measure whether expansion helps ranking, instead of whether it is faithful. A hallucinated term can occasionally help by lucky lexical overlap. To measure faithfulness, we adapt the atomic verification protocol of HALoGEN [11] to query expansion. For a query qq with judged relevant documents Rel⁡(q)\operatorname{Rel}(q), and a set of injected expansion terms E(q)E(q) (terms in q+q^+ but not in qq), the Hallucinated Expansion Term Rate is

HETR⁡=1∣Q∣∑q∈Q∣{t∈E(q):∄d∈Rel⁡(q) that supports t}∣∣E(q)∣,(4)\operatorname{HETR}=\frac{1}{|\mathcal{Q}|}\sum_{q\in\mathcal{Q}}\frac{\left|\{t\in E(q):\nexists d\in\operatorname{Rel}(q)\text{ that supports }t\}\right|}{|E(q)|}, \tag*{(4)}

where supports is decided by a high-precision verifier i.e., exact/near-lexical match for entities and numbers, entailment for phrases. HETR is the fraction of injected terms unsupported by any relevant document, a query-side analogue of hallucination score of HALoGEN. We report HETR alongside effectiveness, a useful method lowers HETR without lowering nDCG@10.

Experimental Studies

We conduct a series of experiments to evaluate our proposed method, SAFE-QE investigating the following research questions. RQ1 Does filtering hallucinated terms cost retrieval effectiveness?. RQ2 How many hallucinated terms does SAFE-QE actually keep out of the query relative to generative and corpus steered expansion?. RQ3 Does the benefit concentrate on strong retrievers, the regime in which generative expansion is known to regress [15]?. RQ4 Does the faithfulness benefit survive a small generator, or does it merely track generator quality?.

Datasets and Setups: We employ test collections such as TREC Deep Learning 2019 (43 judged queries) and 2020 (54), and four BEIR collections chosen to span domain shift and entity-heavy content, i.e. TREC-COVID (50), NFCorpus (323), FiQA-2018 (648) and SciFact (300).

We pair each collection with three first stage retrievers of increasing strength, BM25 (sparse), SPLADE (learned sparse) and Contriever (dense). The three way split is what lets us separate expansion helps from ‘expansion helps weak retrievers’, which differs from Weller et al. [15] draw and the one RQ3 turns on. Candidate terms are generated by four open, instruction-tuned LLMs, which are Qwen2.5-0.5B, Gemma-2-2B, Qwen2.5-7B and Gemma-2-9B. The reported results use the strongest generator, Gemma-2-9B, and the full generation is employed for RQ4. We employ Pyserini with prebuilt indexes for indexing and retrieval. Generation is greedy-free sampling with NN samples per query and PP perturbed prompts aforementioned in § 3. We assess significance with paired tt-tests over per-query scores, Bonferroni correction across baselines at p<0.05p < 0.05.

Baselines: We employ the first stage retriever, no expansion on the raw query. Two generative baselines expand with free LLM text, Query2doc [14] concatenates a generated pseudo document to the query, and HyDE [2] encodes a hypothetical document. For corpus steered, we employ two baselines condition generation on retrieved evidence, CSQE [7] extracts pivotal sentences from the top-kk, and MILL [5] cross verifies generated and retrieved text. The generative pair isolates how much damage ungrounded generation does, the corpus steered pair is the strongest prior mitigation and an appropriate comparison for grounding term γ\gamma of SAFE-QE.

Metrics

For effectiveness, we employ nDCG@10. Faithfulness employs HETR from Eq. (4). HETR is a rate, so it says nothing about how many terms a method injects in the first place. A method that adds two terms of which one is unsupported scores worse than one that adds eighty of which thirty are. We therefore also report the quantity a retriever actually sees, the hallucinated term load

load⁡=Eq[HETR⁡(q)⋅∣E(q)∣],(5)\operatorname{load} = \mathbb{E}_{q}\left[\operatorname{HETR}(q)\cdot\lvert E(q)\rvert\right], \tag*{(5)}

the expected number of unsupported terms injected per query. Rate and load answer different questions and we report both throughout.

Result

We observe that the effectiveness result is a null one. SAFE-QE is statistically indistinguishable from HyDE, CSQE and MILL i.e., all ∣Δ∣≤0.004\lvert\Delta\rvert\le0.004, p>0.5p > 0.5 after correction and within 0.008 of Query2doc, where the gap reaches significance (p=0.021p = 0.021) but is a tenth of a rank position at nDCG@10. Removing terms that no relevant document supports does not remove terms the retriever relies on. It can be observed via faithfulness as per RQ2 should be read against this. It yields at no measurable cost in ranking quality, which is the trade a practitioner is asked to make, which prior filtering work lacks. The justification for RQ1 is reported in Table 2, which shows that the effectiveness is not the price of faithfulness, and Table 1 reports the paired per-query tests, pooled over the four BEIR collections with the Gemma-2-9B generator.

BaselinenDCG@10 SAFE-QEbaseΔ\DeltappHETR SAFE-QEbaseΔ\Deltapp
No expansion0.4040.410-0.0060.152––––
Query2doc0.4030.411-0.008*0.0210.4400.582-0.142***<0.001
HyDE0.4030.399+0.0041.0000.4400.593-0.153***<0.001
CSQE0.4040.407-0.0040.6830.3690.416-0.047***<0.001
MILL0.4040.400+0.0040.5620.3690.435-0.066***<0.001

Table 1. Table 1. Paired per-query tests of SAFE-QE with each baseline, pooled over the four BEIR collections with the gemma-2-9b generator. Δ\Delta is SAFE-QE baseline. pp is a paired tt-test with Bonferroni correction across baselines, *p<0.05p<0.05, **p<0.01p<0.01, ***p<0.001p<0.001. On effectiveness SAFE-QE is statistically indistinguishable from every generative baseline, on faithfulness it is better than rest of the methods. The HETR of 0.440 here is the BEIR-pooled per-query value; the all-collection macro-average appears in Table 5.

Table 2. Evaluation across six collections and three retrievers, where generator is gemma-2-9b. The best nDCG@10 scores are in bold. n/a represents the baseline’s injected no terms at all and is slightly identical to no expansion, CSQE and MILL under SPLADE. These are excluded from every aggregate. † marks Contriever cells not included in this comparison; they are omitted from all aggregates. Δ\Delta is the mean gain over no expansion a method covers.

CollectionRetrieverNoneQuery2docHyDECSQEMILLSAFE-QE
DL’19BM250.50580.63240.52550.56110.51740.5876
SPLADE0.73080.58480.6160n/an/a0.6950
Contriever0.5812††0.5844†0.6381
DL’20BM250.47960.60440.55970.50570.46220.5336
SPLADE0.71970.64090.5936n/an/a0.6127
Contriever0.52510.6731†0.5469†0.5775
TREC-COVIDBM250.59470.70610.64300.65100.68250.6644
SPLADE0.72700.63870.6574n/an/a0.6805
Contriever0.59640.73210.71810.67400.6640†
NFCorpusBM250.32180.34960.33010.34470.33050.3479
SPLADE0.34730.34860.3556n/an/a0.3504
Contriever0.32810.33720.33180.33070.30670.3221
FiQABM250.23610.25830.21860.23860.22130.2401
SPLADE0.34730.30800.3109n/an/a0.3218
Contriever0.32930.32120.30730.29590.28320.3066
SciFactBM250.67890.70790.70950.68080.69070.6778
SPLADE0.70360.69160.6904n/an/a0.6952
Contriever0.67680.70540.68370.67650.66370.6808
Δ\Delta vs. no expansion–+0.0231-0.0045+0.0197+0.0075+0.0058

Table 2.

We can observe that in Table 3, SAFE-QE has both the lowest hallucination rate 0.465 as compared to Query2doc (0.656) and HyDE (0.663), and much the smallest expansion footprint 10.3 terms per query against 43.0 and 87.2. Also, SAFE-QE puts 4.30 unsupported terms into the average query as compared to 27.83 for Query2doc and 57.47 for HyDE, a reduction of 85% and 93%. Against the corpus steered baselines, which selects a small grounded set and are therefore the hard comparison, the reduction is 45% over CSQE and 43% over MILL.

MethodHETR∣E(q)∣|E(q)|loadcuts/querytok/querygen. calls
Query2doc0.65643.027.8385%4.06781.00
HyDE0.66387.257.4793%1.102310.19
CSQE0.53114.87.9045%5.237581.00
MILL0.54613.87.5243%2.917570.50
SAFE-QE0.46510.34.79–10.9715162.00

Table 3. Faithfulness and query time cost on the collection, retriever, where generator is gemma-2-9b, macro-averaged over all six collections and three retrievers. HETR here is the micro-rate over injected terms, so it differs from the BEIR-pooled per-query value in Table 1. ∣E(q)∣|E(q)| is the number of terms a method injects into the query. load is the absolute number of those terms that no judged relevant document supports, HETR ×∣E(q)∣\times|E(q)|, and cut is SAFE-QE’s reduction in that load. Lower is better in the first three columns. SAFE-QE buys its faithfulness with generation cost, two sampled generations plus PP perturbed prompts.

We report HETR for every collection and retriever in Table 4. The BEIR restriction belongs to the significance analysis, where the per-query artefacts

CollectionRetrieverQuery2docHyDECSQEMILLSAFE-QE
DL’19BM250.1940.2060.0420.0650.041
SPLADE0.1940.206n/an/a0.310
Contriever††0.274†0.125
DL’20BM250.2620.2880.0770.1060.083
SPLADE0.2620.288n/an/a0.370
Contriever0.747†0.347†0.197
TREC-COVIDBM250.0330.0380.0030.0110.003
SPLADE0.0330.038n/an/a0.065
Contriever0.6580.6700.0960.349†
NFCorpusBM250.4810.4810.2650.3530.282
SPLADE0.4810.481n/an/a0.464
Contriever0.9100.9110.7050.7960.522
FiQABM250.6190.6330.5270.4550.521
SPLADE0.6190.633n/an/a0.626
Contriever0.9280.9340.8140.8360.645
SciFactBM250.6730.6900.5660.4730.557
SPLADE0.6730.690n/an/a0.657
Contriever0.9500.9520.8400.8960.721

Table 4. HETR across all six collections and three retrievers, and generator is gemma-2-9b. HETR is retriever-independent for Query2doc and HyDE, whose injected set does not depend on the first stage, and retriever-dependent for the grounded methods, whose selection is computed against the retriever’s own pseudo-relevant set. n/a and † are as in Table 2.

live. HETR is defined per query from the injected set and the judged relevant documents. For the individual collections, we report it via Figure 3, which shows SAFE-QE has the lowest HETR on all five comparable Contriever, where free generation is least grounded. On BM25 it is lowest on one of six with CSQE and MILL keeping a marginally cleaner set from a comparable footprint, and on SPLADE it is lowest on two of six, the retriever-dependence discussed above. Its advantage in that last regime is in the footprint. We report pooled per-query

Figure 3. The faithfulness effectiveness plane, per retriever, macro averaged over the collections. Up and to the left is better. SAFE-QE sits on the frontier under BM25 and Contriever. Under SPLADE its rate is higher than the generative baselines’ even though its load is a third of theirs (Figure 2), because grounding is computed against SPLADE’s own pseudo-relevant set and that set admits more candidates.

over BEIR in Table 1, every HETR reduction is significant at p<0.001p < 0.001, -25.9% relative against HyDE, -24% against Query2doc, -15.1% against MILL and -11.2% against CSQE. If we recall RQ1 together with this, which justifies that comparable ranking quality on a significantly more faithful expansion.

Figure 3 shows the trade-off and also its one exception. The grounding signal γ\gamma of SAFE-QE is computed against the retriever’s own top-kk, so unlike Query2doc and HyDE, whose injected set, and therefore whose HETR is retriever-independent. SAFE-QE’s selection moves with the first stage. Under SPLADE the pseudo-relevant set both passes more candidates through the grounding threshold 14.4 terms per query against 12.3 under BM25, and grounds them less reliably, and the rate rises with it from 0.248 to 0.415. The load still falls because the footprint is a third of Query2doc’s, but the rate does not, and we report this to inform that the grounding threshold τg\tau_g should be calibrated per retriever instead of fixed, which we leave to future work.

Under Contriever, on the three collections including five methods, every method is within ±0.03\pm0.03 of no expansion and the differences are not significant. Dense retrieval is the regime, where this separates the methods least on effectiveness, and can be observed from Figure 2 separates them most on faithfulness. We observe that SAFE-QE is better than both baselines reported in Table 5. First, the effectiveness of SAFE-QE is far flatter in generator size than HyDE from 0.5B to 9B. The faithfulness benefit is a property of the filter and is irrespective of the generator behind, because it is the cheap generator that a production expansion pipeline can afford.

Figure 2. Fig. 2. Results for decomposing what a retriever actually receives, per retriever, over the collections. On the left, how many terms a method injects. In middle, what fraction of them no judged relevant document supports (HETR). On right, their product, the hallucinated-term load. The advantage of SAFE-QE is largest on the dense retriever, where free generation is least grounded.

MethodnDCG@10HETR
QwenGemmaQwenGemmaQwenGemmaQwenGemma
0.5B2B7B9B0.5B2B7B9B
HyDE0.39510.46410.46970.47880.6400.5970.5900.570
MILL0.44140.45350.45840.46200.4800.4470.4200.443
SAFE-QE0.46480.47840.47500.48450.3980.3860.3440.375

Table 5. nDCG@10 and HETR as the expansion LLM grows from 0.5B to 9B parameters, macro-averaged over all collections and retrievers. SAFE-QE’s faithfulness advantage is present at every scale and without dependence on a large generator; the 9B HETR (0.375) therefore differs from the BEIR-pooled 0.440 in Table 1.

Conclusion

Our proposed approach follows the subsequence-association account of hallucination [13] and the consistency breadth stability characterisation of language generation [6] to a long standing IR task. Our method, SAFE-QE is a retriever agnostic method that traces and downweights hallucinatory expansion terms and selects a set that is broad but consistent and stable across resampling. Alongside it, we introduced HETR, a query side hallucination metric for expansion, and argued that a rate must be together with the expansion footprint it applies to—the hallucinated-term load is what a retriever actually receives. Across six collections and three retrievers, SAFE-QE matches generative and corpus-steered expansion on nDCG@10 while injecting 85% fewer unsupported terms than Query2doc and 93% fewer than HyDE, and 43–45% fewer than the corpus steered baselines that represent the strongest prior mitigation. The benefit is produced by the filter instead of a generator behind it, with a 0.5B generator SAFE-QE is already more faithful than HyDE with a 9B one. On a strong learned sparse retriever, where every expansion method regresses, SAFE-QE halves the regression. The grounding threshold τg\tau_g is fixed and should be calibrated per retriever, since the SPLADE result shows the pseudo-relevant set, and setting how many candidates survive. The component ablation is outstanding and is what would turn the design argument into a measured one. More broadly, our formulation extends to generative retrieval and to learned sparse expansion, and the finite sample behaviour of the breadth-consistency trade-off remains open. We use the asymptotic characterisation as a design vocabulary, and a finite analysis of when a budget-BB grounded subset is broad enough would put that borrowing on firmer ground. We hope the bridge encourages further mechanism grounded IR methods. breadth-consistency trade-off.

References

  1. [1]Abe, K., Takeoka, K., Kato, M.P., Oyamada, M.: Llm-based query expansion fails for unfamiliar and ambiguous queries. In: Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval. pp. 3035–3039 (2025)arxiv.org/abs/2505.12694
  2. [2]Gao, L., Ma, X., Lin, J., Callan, J.: Precise zero-shot dense retrieval without relevance labels. In: Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). pp. 1762–1777 (2023)arxiv.org/abs/2212.10496
  3. [3]Gospodinov, M., McAveney, S., Macdonald, C.: Doc2query+: When less is more. In: European Conference on Information Retrieval. pp. 414–422. Springer (2023)arxiv.org/abs/2301.03266
  4. [4]Jagerman, R., Zhuang, H., Qin, Z., Wang, X., Bendersky, M.: Query expansion by prompting large language models. arXiv preprint arXiv:2305.03653 (2023)arxiv.org/abs/2305.03653
  5. [5]Jia, P., Liu, Y., Zhao, X., Li, X., Hao, C., Wang, S., Yin, D.: Mutual verification with large language models for zero-shot query expansion. In: Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). pp. 2498–2518 (2024)arxiv.org/abs/2310.19056
  6. [6]Kalavasis, A., Mehrotra, A., Velegkas, G.: On characterizations for language generation: Interplay of hallucinations, breadth, and stability. In: 37th International Conference on Algorithmic Learning Theory (2026)arxiv.org/abs/2412.18530
  7. [7]Lei, Y., Cao, Y., Zhou, T., Shen, T., Yates, A.: Corpus-steered query expansion with large language models. In: Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers). pp. 393–401 (2024)
  8. [8]Lei, Y., Shen, T., Yates, A.: ThinkQE: Query expansion via an evolving thinking process. In: Christodoulopoulos, C., Chakraborty, T., Rose, C., Peng, V. (eds.) Findings of the Association for Computational Linguistics: EMNLP 2025. pp. 17772–17781. Association for Computational Linguistics, Suzhou, China (Nov 2025). https://doi.org/10.18653/v1/2025.findings-emnlp.965, https://aclanthology.org/2025.findings-emnlp.965/
  9. [9]Liu, L., Zhang, M.: Golfer: Smaller lms-generated documents hallucination filter & combiner for query expansion in information retrieval. In: Findings of the Association for Computational Linguistics: ACL 2025. pp. 153–162 (2025)DOI
  10. [10]Mackie, I., Chatterjee, S., Dalton, J.: Generative relevance feedback with large language models. In: Proceedings of the 46th international ACM SIGIR conference on research and development in information retrieval. pp. 2026–2031 (2023)DOI
  11. [11]Ravichander, A., Ghela, S., Wadden, D., Choi, Y.: Halogen: Fantastic llm hallucinations and where to find them. In: Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). pp. 1402–1425 (2025)
  12. [12]Shen, T., Long, G., Geng, X., Tao, C., Zhou, T., Jiang, D.: Large language models are strong zero-shot retriever. arXiv preprint arXiv:2304.14233 (2023)arxiv.org/abs/2304.14233
  13. [13]Sun, Y., Gai, Y., Chen, L., Ravichander, A., Choi, Y., Dzirni, N., Song, D.: Why and how llms hallucinate: Connecting the dots with subsequence associations. Advances in Neural Information Processing Systems 38, 35159–35203 (2025)arxiv.org/abs/2504.12691
  14. [14]Wang, L., Yang, N., Wei, F.: Query2doc: Query expansion with large language models. In: Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. pp. 9414–9423 (2023)arxiv.org/abs/2303.07678
  15. [15]Weller, O., Lo, K., Wadden, D., Lawrie, D., Van Durme, B., Cohan, A., Soldaini, L.: When do generative query and document expansions fail? a comprehensive study across methods, retrievers, and datasets. In: Findings of the Association for Computational Linguistics: EACL 2024. pp. 1987–2003 (2024)
  16. [16]Yao, S., Huang, P., Liu, Z., Gu, Y., Yan, Y., Yu, S., Yu, G.: Llм-qе: Improving query expansion by aligning large language models with ranking preferences. arXiv preprint arXiv:2502.17057 (2025)
  17. [17]Yoon, Y., Jung, J., Yoon, S., Park, K.: Hypothetical documents or knowledge leakage? rethinking llm-based query expansion. In: Findings of the Association for Computational Linguistics: ACL 2025. pp. 19170–19187 (2025)
  18. [18]Zhang, L., Wu, Y., Yang, Q., Nie, J.Y.: Exploring the best practices of query expansion with large language models. In: Findings of the Association for Computational Linguistics: EMNLP 2024. pp. 1872–1883 (2024)arxiv.org/abs/2401.06311

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type