Skip to content

Using subsequence association filtering and breadth-aware selection to suppress hallucinated words in LLM query expansionTracing and Taming Hallucinated Terms via Subsequence-Association Filtering and Breadth-Aware Selection for LLM Query Expansion

Paper Tracker· arXiv:2610.13810· Amit Kumar Jaiswal, Sagar Uprety, Prayag Tiwari·Indexed by this site · 2026-10-12· Originally publishedTools

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

SAFE-QE filters expansion words by cross-context reproducibility. The authors say its nDCG@10 is indistinguishable from generative expansion, with fewer unsupported words injected.

Questions
LLM query expansion can inject entities unsupported by the corpus and off-topic words, increasing ranking noise and potentially harming strong retrievers. Existing filtering typically keeps or discards words based on co-occurrence with retrieval evidence, and how many words to keep is left to fixed top-k or tuned weights.
Methods
SAFE-QE does not train. After sampling candidate terms with an open instruction-tuned LLM, it scores them using reproducibility across random contexts and support from pseudo-relevant documents, penalizing terms that are highly reproducible and unsupported; then it greedily maximizes coverage under grounding constraints and filters by resampling frequency. It also defines a query-side HETR.
Experiments and results
In Table 1, except for the no-expansion row, corrected p > 0.5 for nDCG@10 vs. HyDE, CSQE, MILL; Query2doc p = 0.021. Table 3 macro-average: SAFE-QE unsupported word load 4.79, Query2doc 27.83, HyDE 57.47.
Limitations and future work
The authors state that τg is fixed and should be calibrated per retriever, component ablations were not done, and limited-sample analysis of breadth and consistency remains open. The experiments use six collections, three retrievers, and four generators; the paper does not report the values of each hyperparameter.
Experimental setupQwen2.5-0.5B、Gemma-2-2B et al. · TREC Deep Learning 2019、TREC Deep Learning 2020 et al. · nDCG@10、HETR et al.
Evaluated models
Qwen2.5-0.5BGemma-2-2BQwen2.5-7BGemma-2-9B
Benchmarks
TREC Deep Learning 2019TREC Deep Learning 2020TREC-COVIDNFCorpusFiQA-2018SciFact
Metrics
nDCG@10HETRhallucinated term load
AI summarySAFE-QE suppresses hallucinated words in LLM query expansion through subsequence association filtering and breadth-aware selection. On TREC and BEIR, its nDCG@10 is not statistically different from generative and corpus-guided expansion, but it injects 4.3 unsupported words per query, while Query2doc and HyDE inject 27.8 and 57.5. The method is training-free and retriever-agnostic, scores candidate words by cross-context reproducibility conditioned on the corpus, down-weights words that recur under random contexts but lack support from pseudo-relevance sets, and proposes the Hallucinated Expansion Term Rate to measure query-side faithfulness.

SAFE-QE suppresses hallucinated words in LLM query expansion through subsequence association filtering and breadth-aware selection. On TREC and BEIR, its nDCG@10 is not statistically different from generative and corpus-guided expansion, but it injects 4.3 unsupported words per query, while Query2doc and HyDE inject 27.8 and 57.5. The method is training-free and retriever-agnostic, scores candidate words by cross-context reproducibility conditioned on the corpus, down-weights words that recur under random contexts but lack support from pseudo-relevance sets, and proposes the Hallucinated Expansion Term Rate to measure query-side faithfulness.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    LLM query expansion can inject words without document support; SAFE-QE uses reproducibility and coverage constraints to filter words.

    The core problem in LLM query expansion is injecting words unsupported by relevant documents; existing filtering neither explains why words appear nor provides a criterion for how many to keep.

    • Scenario: Query expansion uses relevant words to bridge the vocabulary gap between query and documents. The authors claim current practice shifts to LLM-generated words, keywords, or hypothetical documents; Query2doc, HyDE, etc., report gains, but hallucinations inject non-existent entities and off-topic words, increasing ranking noise.
    • Reported costs: The authors paraphrase Weller et al.: stronger retrievers benefit less from expansion; generated expansion helps weak retrievers but introduces false positives at the top of strong retrievers’ rankings. Abe et al. distinguish two failure types: unfamiliar queries introduce non-existent entities or irrelevant words; ambiguous queries collapse to the most popular sense, narrowing coverage.
    • Existing gaps: The authors claim corpus grounding, mutual verification, small-model filtering, and preference alignment treat hallucinated words as undifferentiated noise, deciding keep/discard by co-occurrence with retrieval evidence. How many to keep and how to trade off coverage vs. faithfulness is left to fixed top-k or tuned weights.
    • Authors’ basis: Sun et al. characterize decoder-only transformers as subsequence association models; hallucination occurs when dominant hallucinated associations overwhelm faithful ones. Kalavasis et al. frame generation as a trade-off between consistency (no hallucination) and breadth (coverage), and discuss stability. The authors believe these results are little used in IR.
    • This paper proposes: Training-free and claimed retriever-agnostic SAFE-QE. It scores and downweights candidate words by corpus-conditioned cross-context reproducibility, then formulates word selection as constrained coverage maximization over pseudo-relevant sets, keeping only words stable under resampling. Also defines query-side metric HETR, measuring injected words without support from any relevant document.
  2. What related research exists?

    The paper discusses three types of LLM expansion, hallucination mitigation, and subsequence association and breadth-consistency theory.

    LLM Query Expansion

    • Pseudo-documents: Query2doc (Wang et al., 2023) appends generated passages to the query, with BM25 also repeating the query; the paper states it reports 3-15% BM25 gains on MS MARCO and TREC DL. HyDE (Gao et al., 2023) encodes zero-shot hypothetical documents with an unsupervised dense encoder, and the paper paraphrases that its bottleneck is attributed to filtering hallucinations. MuGI (Zhang et al., 2024) fuses multiple pseudo-references and adaptively reweights them.
    • Term generation and corpus conditioning: Jagerman et al. (2023) use prompts to generate expansion terms, and the paper states chain-of-thought gives the strongest keywords. GRF (Mackie et al., 2023) builds RM3 feedback from long-form LLM text; CSQE (Lei et al., 2024) extracts key sentences from BM25 top-k; LameR (Shen et al., 2023) conditions generation on retrieved documents; ThinkQE (Lei et al., 2025) iteratively thinks against the corpus.
    • Doc2Query (Gospodinov et al., 2023) filters hallucinated generated queries before indexing. The authors state this is the closest prior work on filtering generated text, but it is on the document side, heuristic, and without an explanation of the generation mechanism.

    Hallucination in Expansion and Mitigation

    • Weller et al. (2024) report that expansion gains are negatively correlated with retriever strength. Abe et al. (2025) write about two failure types: unfamiliar queries and ambiguous queries. Yoon et al. (2025) argue that many gains of LLM-QE come from knowledge leakage, i.e., gains mainly appear when generated text contains content implied by the gold standard. The authors state this is adjacent to their work, but Yoon et al. treat leakage as a confound, while they use the same mechanism to separate faithful and hallucinated associations.
    • Mitigations include grounding (CSQE, LameR, ThinkQE), consistency (MILL, Jia et al., 2024), small-model filtering (GOLFer, Liu and Zhang, 2025), and training alignment (LLM-QE, Yao et al., 2025). The authors state none of these works base mitigation on a theory of the generation mechanism, nor do they frame term selection as a consistency–breadth tradeoff.

    Mechanism and Generation Characterization

    • Sun et al. (2025) argue that hallucination arises from dominant hallucinated subsequence associations overpowering faithful associations. Their SAT uses reproducibility of triggering target outputs in random contexts to find causal input subsequences, and validates on HALoGEN (Ravichander et al., 2025).
    • Kalavasis et al. (2026) prove in generation-in-the-limit: exact breadth is as hard as identification; approximate breadth (missing only finitely many valid terms) is strictly easier; requiring stability pulls these concepts back to harder cases.

    Experimental Baselines and Collections

    • Baselines are no expansion, generative Query2doc and HyDE, and corpus-guided CSQE and MILL. Collections are TREC DL 2019/2020, and TREC-COVID, NFCorpus, FiQA-2018, SciFact from BEIR.

    The authors state that, to their knowledge, this is the first transfer of the above two theoretical results to information retrieval, and they view expansion term generation as term selection over the corpus vocabulary that is approximately broad but consistent and resampling-stable.

  3. How does the paper address this problem?

    SAFE-QE scores candidate words for corpus-conditioned reproducibility, then applies coverage maximization under grounding constraints and stability filtering.

    The authors place word selection within an approximately broad yet consistent range, using corpus-conditioned analogies of subsequence association signals to judge whether each word is faithful. The method is named SAFE-QE, is training-free, and wraps any generate-then-expand pipeline.

    Problem Setting

    • Given query q, corpus C, and first-stage retriever R, LLM G provides candidate pool T. The target subset should cover relevant material while excluding fluent but unsupported words.
    • The authors do not require including every valid word. The paper writes that precise breadth is as hard as identification and unnecessary to risk; they only require missing few faithful facets and not including hallucinated words.
    • Each word’s faithfulness is judged using corpus-conditioned analogies of signals like Sun et al., rather than retraining the generator.

    Candidate Generation and Scoring

    • Using Query2doc/CoT-style templates, sample N times from an open instruction-tuned LLM. freq(t) is the proportion of samples containing the word. The authors treat this as a practical proxy for a stable generator: words the generator commits to under resampling.
    • The perturbation set has P prompts, randomly discarding and reordering subsequences of q; if generated pseudo-documents are used, their fragments are also reordered. ρ(t) is the proportion where the word still appears. The authors claim high ρ indicates the word is triggered by dominant associations largely independent of the specific query intent.
    • γ(t) is the maximum support score over the retriever’s top-k pseudo-relevant documents Dk. Lexical occurrence is used in sparse settings; in dense settings, the maximum cosine similarity between the word and the document sentence embedding.
    • The retention score combines grounding, penalty, and frequency:

    s(t)=γ(t)−λρ(t)(1−γ(t))+μfreq(t) The first term is grounding, the middle penalizes highly reproducible but unsupported words, and the last is frequency; λ, μ are non-negative. The authors claim the middle term corresponds to the type of words flagged by subsequence association claims.

    Coverage Selection and Stability Filtering

    • Taking only top-k by retention score ignores redundancy; multiple high-scoring words may cover the same facet. Instead, the authors maximize coverage of the pseudo-relevant set under grounding constraints. cov(t) is the set of documents with support score at least τ.
    • Solve within budget B over candidates with γ(t)≥τg:

    T^{\star}=\arg\max_{S\subseteq T_g,\,|S|\le B}\left|\bigcup_{t\in S}\mathrm{cov}(t)\right|+\beta\sum_{t\in S}s(t) The coverage term corresponds to approximate breadth, and the grounding constraint to consistency. The authors claim the objective is submodular, greedy has a (1−1/e) guarantee, and they deliberately forgo exact breadth.

    • Then discard words with freq(t) below θ. The authors claim that words appearing only in few resamples are empirically more often hallucinations. Sparse retrieval uses RM3-style fusion with weight α; dense retrieval concatenates words onto q before encoding. Algorithm 1 summarizes the process. The paper does not provide values for N, P, k, λ, μ, β, τ, τg, θ, α, B.

    How Faithfulness is Measured

    • nDCG only looks at whether ranking improves. The authors adapt HALoGEN’s atomic verification to query expansion: HETR is the proportion, per query, of injected words (in the expanded query, not in the original) that have no support from any judged relevant document, then averaged over queries.
    • Support is judged by a high-precision verifier: exact or near lexical match for entities and numbers, entailment for phrases. The paper does not name the entailment model. The authors claim a useful method should reduce HETR without reducing nDCG@10.
    • Also define load: expected per-query count of unsupported injected words, i.e., HETR(q) times number of injected words, then expectation over queries. The authors claim ratio and load answer different questions.
  4. What experiments did the paper conduct?

    In Table 1, HyDE, CSQE, MILL nDCG p > 0.5; Table 3 load: SAFE-QE is 4.79.

    Experimental Setup

    • Questions: RQ1 whether filtering hallucinated terms loses effectiveness; RQ2 how many fewer hallucinated terms remain relative to generative and corpus-guided expansion; RQ3 whether gains concentrate on strong retrievers; RQ4 whether faithfulness gains persist on small generators.
    • Collections: TREC DL 2019 (43 judged queries), DL 2020 (54), TREC-COVID (50), NFCorpus (323), FiQA-2018 (648), SciFact (300). The last four are the selected BEIR collections.
    • Retrievers: BM25, SPLADE, Contriever. Indexing and retrieval use Pyserini pre-built indexes.
    • Generators: Qwen2.5-0.5B, Gemma-2-2B, Qwen2.5-7B, Gemma-2-9B. Main results use Gemma-2-9B; RQ4 uses all four. Generation is non-greedy sampling, N times per query, with P perturbation prompts; neither value is given.
    • Baselines: no expansion; Query2doc, HyDE; CSQE, MILL. The authors state the generative pair is to see the harm of ungrounded generation, and the corpus-guided pair represents the strongest prior mitigation, used to compare against γ.
    • Metrics and tests: nDCG@10, HETR, load. Significance is per-query paired t-tests with Bonferroni correction across baselines, threshold p<0.05. The paper does not report the number of random repetitions or name the phrase entailment model.

    Main Results

    According to Table 1 (aggregated over four BEIR collections, generator gemma-2-9b; p is corrected paired t-test; HETR Δ is SAFE-QE minus baseline):

    Swipe horizontally to read the table

    BaselineSAFE-QE nDCG@10Baseline nDCG@10pHETR Δ
    No expansion0.4040.4100.152Not reported
    Query2doc0.4030.4110.021-0.142
    HyDE0.4030.3991.000-0.153
    CSQE0.4040.4070.683-0.047
    MILL0.4040.4000.562-0.066
    • The authors state the effectiveness is a null result: indistinguishable from HyDE, CSQE, and MILL, with a difference from Query2doc reaching corrected significance, but they state it is about one-tenth of a rank position in nDCG@10. They state that removing terms unsupported by relevant documents did not remove terms the retriever relies on.
    • The table note states SAFE-QE is better than the other methods on faithfulness, and the main text states these HETR reductions have p<0.001, with relative reductions of -25.9% relative to HyDE, -24% relative to Query2doc, -15.1% relative to MILL, and -11.2% relative to CSQE. In Table 1, SAFE-QE's HETR is 0.440 in the Query2doc and HyDE rows, and 0.369 in the CSQE and MILL rows; the table note only explains that 0.440 is the per-query value for the BEIR aggregate, and the paper does not explain the basis for 0.369.
    • Table 2 also gives average gains relative to no expansion over six collections and three retrievers: Query2doc +0.0231, CSQE +0.0197, MILL +0.0075, SAFE-QE +0.0058, HyDE -0.0045. The authors state the effect is not a cost paid for faithfulness.

    Faithfulness and Term Load

    • Table 3 (gemma-2-9b, macro-average over six collections and three retrievers; HETR is the micro-rate on injected terms, hence different from Table 1's 0.440): SAFE-QE has HETR 0.465, injected term count 10.3, load 4.79; Query2doc has 0.656, 43.0, 27.83; HyDE has 0.663, 87.2, 57.47; CSQE has 0.531, 14.8, 7.90; MILL has 0.546, 13.8, 7.52. The cut column writes 85%, 93%, 45%, 43%. The main text also writes SAFE-QE has 4.30 unsupported terms per query, and the abstract writes 4.3, 27.8, 57.5; this is inconsistent with Table 3's 4.79, and the table is taken as authoritative here.
    • The authors state that looking only at rates would judge "injecting two terms, one unsupported" as worse than "injecting eighty terms, thirty unsupported," so they also report load. Figure 2 breaks down injection amount, HETR, and load by retriever; the caption states SAFE-QE's advantage is largest on dense retrievers. The converted bar numbers cannot be reliably aligned, so they are not transcribed.
    • Query times in the same table: SAFE-QE is 10.97 seconds/query, 1516 tokens/query, 2.00 generation calls; Query2doc is 4.06, 78, 1.00; HyDE is 1.10, 231, 0.19; CSQE is 5.23, 758, 1.00; MILL is 2.91, 757, 0.50. The authors state faithfulness is traded for the generation cost of two samples plus P perturbation prompts.

    Retriever Differences and Generator Scale

    • Table 4 gives HETR for each collection and retriever. The authors state that Query2doc and HyDE's injection sets do not depend on the first stage, so HETR is retriever-independent; grounding methods use the retriever's own pseudo-relevant set, hence retriever-dependent. In the table, Query2doc/HyDE are the same for BM25 and SPLADE, but different for Contriever, e.g., on DL'20 Query2doc is 0.747, while BM25/SPLADE is 0.262. All SPLADE cells for CSQE and MILL are n/a, with the table note stating they inject no terms, are the same as no expansion, and are excluded from the aggregate. Some Contriever cells are marked † and also excluded.
    • The authors state SAFE-QE has the lowest HETR in all five comparable Contriever settings; on BM25 it is lowest in only one of six collections, with CSQE and MILL maintaining slightly cleaner sets with similar footprints; on SPLADE it is lowest in two. The caption states it is on the frontier under BM25 and Contriever, and under SPLADE its rate is higher than generative baselines, although the authors state its load is one-third of the latter. The main text writes that under SPLADE's grounding threshold there are 14.4 terms per query, BM25 has 12.3, and the rate rises from 0.248 to 0.415. The authors state τg should be calibrated per retriever and leave it as future work. In Table 4's BM25 rows, on DL'19 SAFE-QE is 0.041 and CSQE is 0.042, and on TREC-COVID both are 0.003.
    • In Table 5 (macro-average over all collections and retrievers), SAFE-QE's nDCG@10 is Qwen2.5-0.5B 0.4648, Gemma-2-2B 0.4784, Qwen2.5-7B 0.4750, Gemma-2-9B 0.4845, and HETR is 0.398, 0.386, 0.344, 0.375. HyDE's nDCG@10 is 0.3951, 0.4641, 0.4697, 0.4788, and HETR is 0.640, 0.597, 0.590, 0.570. MILL's HETR is 0.480, 0.447, 0.420, 0.443. The authors state the faithfulness advantage exists at every scale and does not depend on a large generator: 0.5B SAFE-QE is already more faithful than 9B HyDE. The table note explains that 9B's 0.375 differs in basis from Table 1's 0.440. HETR does not decrease monotonically with scale, and the paper does not explain the rise from 7B to 9B.

    Other Ablations and Analyses

    • The Conclusion states component ablations are not yet complete; the main text has no ablation table.
    • SPLADE, DL'19: no expansion 0.7308, SAFE-QE 0.6950, Query2doc 0.5848, HyDE 0.6160 (Table 2). The conclusion states every expansion regresses on strong learned sparse retrievers, and SAFE-QE halves the regression; the paper does not give the aggregate difference for this halving.
    • The NFCorpus SPLADE row is an exception: no expansion 0.3473, Query2doc 0.3486, HyDE 0.3556, SAFE-QE 0.3504, and expansion does not fall below no expansion.
    • The authors state that on the three Contriever collections with five methods, each method is within ±0.03 of no expansion, with no significant differences; and they state dense retrieval separates methods least in effectiveness and most in faithfulness.
    • SciFact, BM25: SAFE-QE 0.6778, below no expansion 0.6789, and also below Query2doc 0.7079 and HyDE 0.7095.
    • The paper does not report the values of each hyperparameter, nor agreement between HETR and human judgment.
  5. What are some points that can be further explored?

    The authors state that the grounding threshold should be calibrated per retriever, and component ablations and limited-sample breadth analysis remain incomplete.

    Limitations and Future Directions Acknowledged by the Authors

    • The grounding threshold τg is fixed and should be calibrated per retriever; SPLADE results show the pseudo-relevant set determines how many candidates survive (Conclusion; also left for future work in Results).
    • Component ablation is not yet done. The authors claim that would turn the design argument into measured results (Conclusion).
    • Finite-sample behavior of the breadth–consistency trade-off remains open. The authors currently treat asymptotic characterizations as design vocabulary (Conclusion).
    • Finite-sample analysis of when the grounded subset for budget B is sufficiently broad would make this borrowing more robust (Conclusion).
    • The authors claim the formulation can extend to generative retrieval and learned sparse expansions (Conclusion).

    Experimental Coverage

    • Collections: TREC DL 2019 (43), DL 2020 (54), TREC-COVID (50), NFCorpus (323), FiQA-2018 (648), SciFact (300); retrievers: BM25, SPLADE, Contriever (Section 5, Table 2).
    • Generators: Qwen2.5-0.5B, Gemma-2-2B, Qwen2.5-7B, Gemma-2-9B. Main results use Gemma-2-9B; scale comparison uses all four (Table 5).
    • Baselines: no expansion, Query2doc, HyDE, CSQE, MILL. Metrics: nDCG@10, HETR, load. The paper reports paired tests aggregated over four BEIR collections (Table 1).
    • In Table 2 and Table 4, all SPLADE cells for CSQE and MILL are n/a; some Contriever cells are †; table notes say these cells are excluded from aggregation.
    • The paper does not report λ, μ, β, τ, τg, θ, α, B, N, P, k values, number of repeats, the phrase entailment verifier model name, or agreement between HETR and human. Conclusion states component ablation is not yet done.
  6. Summarize the main content of the paper

    SAFE-QE suppresses expansion hallucination through reproducibility and coverage selection, and the authors state there is no visible cost to ranking quality.
    • SAFE-QE is training-free query expansion filtering used to reduce terms in LLM expansions that lack support from relevant documents.
    • What the authors address: generative expansion injects nonexistent entities and off-topic terms. The authors paraphrase that this adds top false positives for strong retrievers and also fails on unfamiliar or ambiguous queries. Existing grounding, mutual verification, and training alignment do not explain why terms appear, and retention counts rely on a fixed top-k.
    • After multiple samplings from an open LLM, higher support from pseudo-relevant documents is better; terms that repeatedly appear across random contexts but lack document support are downweighted. Then greedy maximization of coverage is performed over grounded candidates, and terms with too-low resampling frequency are dropped. HETR measures the proportion of injected terms lacking relevant document support, and load is the count of such terms per query.
    • Table 1 on four BEIR collections with gemma-2-9b, SAFE-QE's nDCG@10 is 0.403 or 0.404 depending on the baseline row. Corrected p is greater than 0.5 versus HyDE, CSQE, MILL, and p is 0.021 versus Query2doc. In Table 2, the average gain relative to no expansion is +0.0058, Query2doc is +0.0231, HyDE is -0.0045.
    • Under macro averaging in Table 3, SAFE-QE's HETR is 0.465 and load is 4.79, Query2doc's load is 27.83, and HyDE's is 57.47. The abstract states 4.3 versus 27.8 and 57.5 per query, which is inconsistent with that table. In Table 5, on Qwen2.5-0.5B SAFE-QE's HETR is 0.398, lower than HyDE's 0.570 on Gemma-2-9B.
    • The authors conclude that faithfulness can be obtained with no visible cost in ranking quality; the filtering itself, not the underlying large generator, produces this benefit. The authors state that when all expansions regress on a strong learned sparse retriever, SAFE-QE halves the regression. The authors also state that τg should still be calibrated per retriever, and component ablations and limited-sample analysis have not yet been done.
Read originalarxiv.org