Large language models are widely used to expand search queries, but they often inject hallucinated entities and off-topic terms that add ranking noise. Existing fixes treat these terms as an undifferentiated nuisance and filter them with agreement heuristics, without explaining why a term appears or how many terms to keep. A new arXiv paper proposes SAFE-QE, a training-free and retriever-agnostic method that draws on a subsequence-association account of hallucination.
SAFE-QE scores each candidate expansion term by its corpus-conditioned cross-context reproducibility: terms that reappear under randomized query contexts but lack support in the pseudo-relevant set are flagged as products of dominant hallucinatory associations and down-weighted. The method then frames term selection as constrained coverage maximisation over the pseudo-relevant set, keeping a set that is approximately broad but consistent and stable across resampling. The authors also introduce the Hallucinated Expansion Term Rate (HETR), a query-side metric that counts injected terms no relevant document supports.
In experiments on TREC and BEIR collections, SAFE-QE was statistically indistinguishable from generative and corpus-steered expansion on nDCG@10 while injecting far fewer unsupported terms: 4.3 per query, versus 27.8 for Query2doc and 57.5 for HyDE. On a strong learned sparse retriever, where every expansion method regressed, SAFE-QE still delivered faithfulness at no measurable cost in ranking quality. The authors conclude that hallucination filtering can be achieved without sacrificing retrieval effectiveness.