arXiv(opens in a new tab)cs.IRSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.06968

Tracing Query Expansion Effects through Sparse Autoencoder Features

Fangan Dong, Weiran Shi, Zhiwei Xu, Xuri Ge, Ben He, Xin Xin, Zhumin Chen, Ying Zhou

Abstract

Query expansion (QE) is a critical technique in information retrieval that enriches underspecified queries with additional textual context. However, its effect is often unreliable in modern dense retrieval, especially for strong off-the-shelf retrievers without retraining. Existing studies mainly examine expansion quality, semantic drift, or retrieval outcomes, but rarely explain how QE changes dense retrievers internally. In this work, we trace QE effects through sparse autoencoder (SAE) features. Using paired original and expanded queries, we decompose layer-wise retriever representations into sparse latent activations, identify QE-related latents from expansion-induced activation shifts, and interpret them with natural-language descriptions and retrieval cases. Our analysis shows that effective QE induces layer-concentrated changes in sparse latents aligned with retrieval intent and entity attributes, rather than only perturbing final query embeddings. SAE-based activation steering further validates these latents improve retrieval more consistently than random interventions or vanilla QE across four benchmarks, suggesting that SAEs can explain QE effects and offer a lightweight option for precise retrieval behavior modulation without query rewriting or retriever fine-tuning¹.

1 Introduction

Query expansion (QE) is a classic technique in information retrieval research (Xu and Croft, 1996; Carpineto and Romano, 2012). Recent methods often expand the original query with generated pseudo-documents (Wang et al., 2023a), expansion terms (Jagerman et al., 2023), or contextual descriptions (Rizzo et al., 2024), aiming to mitigate short queries, vocabulary mismatch, and incomplete semantic expression (Wang et al., 2022; Li

Figure

Figure 1: A motivating example showing that query expansion can improve sparse retrieval, but may hurt dense retrieval.

et al., 2025; Seo and Lee, 2025). In sparse retrieval, the effect of QE is relatively explicit: newly introduced terms can directly improve lexical matching between queries and documents, often leading to substantial gains (Cartright et al., 2010; Liu and Zhang, 2025). In dense retrieval, however, expanded queries influence retrieval mainly by reshaping continuous query representations rather than by explicit term matching (Li et al., 2022). This makes QE less predictable, whereas the added text may provide useful semantic context (Wang et al., 2021; Li et al., 2023), but may also introduce irrelevant content or semantic drift (Zighelnic and Kurland, 2008), resulting in limited gains or even performance degradation (Lei et al., 2024).

Recent studies suggest that QE can be less effective for dense retrieval models with stronger representation capabilities (Weller et al., 2024). In particular, when applied to off-the-shelf dense retrievers that are not fine-tuned on expanded queries, simply appending generated text to the original query often yields limited improvements and may even hurt performance (Pimpalkhute et al., 2024; Abe et al., 2025). These findings indicate that QE in dense retrieval cannot be fully explained by the semantic quality or richness of the expanded text. Since the expanded query is ultimately encoded into a continuous representation, its effect depends on how the

*Corresponding author. ¹The code and data are available at https://github.com/cat-sk/QE-SAE retriever integrates the original query and the added context internally. However, existing works mainly examine final retrieval metrics (Weller et al., 2024), expansion quality (Lei et al., 2024), or global shifts in query embeddings (Pimpalkhute et al., 2024), leaving the internal feature-level changes largely unexplored. This raises questions about which latent features are activated or suppressed by QE, whether they correspond to retrieval-relevant semantics, and how they contribute to improved or degraded final performance.

To this end, we revisit the impact of query expansion on dense query representations through sparse latent features. Specifically, we use sparse autoencoders (SAEs) (Bussmann et al., 2024; Gao et al., 2025) to decompose hidden representations of dense retrievers into sparse latent activations, and compare these activations between original and expanded queries across retriever layers. Since SAE latents can be interpreted with natural-language descriptions, this analysis allows us to identify which semantic features are amplified or suppressed by query expansion. We further examine QE-related latents through activation steering, applying directions derived from sparse latents to the dense retriever at inference time, which offers an intervention-based view of latent features and a lightweight way to modulate retrieval behavior.

The contributions of this paper are threefold: 1) To our knowledge, we are the first to systematically analyze the effect of query expansion from the internal representations of dense retrievers, revealing how QE changes sparse latent activations across layers; 2) we provide interpretable evidence for these latents through feature separability, natural-language latent descriptions, and case studies, showing their connections to retrieval intent and final performance; and 3) we examine the identified latents through activation steering, which supports our analysis and provides a lightweight intervention tool for modulating dense retrieval behavior without retriever fine-tuning.

References (25)