Skip to main content
QUICK REVIEW

[Paper Review] Decoding a Neural Retriever's Latent Space for Query Suggestion

Leonard Adolphs, Michelle Chen Huebscher|arXiv (Cornell University)|Oct 21, 2022
Neural Networks and ApplicationsComputer Science2 citations
TL;DR

This paper proposes a query decoder that inverts a neural retriever's latent space to generate meaningful query reformulations by traversing from a query's embedding to its relevant document's embedding. The method creates a large synthetic dataset of query suggestions on MSMarco, which is used to train a T5-based pseudo-relevance feedback model that outperforms baselines in fluency, diversity, and retrieval effectiveness.

ABSTRACT

Neural retrieval models have superseded classic bag-of-words methods such as BM25 as the retrieval framework of choice. However, neural systems lack the interpretability of bag-of-words models; it is not trivial to connect a query change to a change in the latent space that ultimately determines the retrieval results. To shed light on this embedding space, we learn a "query decoder" that, given a latent representation of a neural search engine, generates the corresponding query. We show that it is possible to decode a meaningful query from its latent representation and, when moving in the right direction in latent space, to decode a query that retrieves the relevant paragraph. In particular, the query decoder can be useful to understand "what should have been asked" to retrieve a particular paragraph from the collection. We employ the query decoder to generate a large synthetic dataset of query reformulations for MSMarco, leading to improved retrieval performance. On this data, we train a pseudo-relevance feedback (PRF) T5 model for the application of query suggestion that outperforms both query reformulation and PRF information retrieval baselines.

Motivation & Objective

  • To address the interpretability gap in neural retrieval models, where query changes do not map clearly to latent space changes.
  • To enable the generation of semantically meaningful query reformulations by decoding latent representations of relevant documents.
  • To create a large-scale, synthetic dataset of query suggestions without human annotation, leveraging latent space traversal.
  • To train a query suggestion model that improves retrieval performance using pseudo-relevance feedback.
  • To evaluate the effectiveness of the generated suggestions in terms of fluency, diversity, and retrieval relevance.

Proposed method

  • Train a query decoder model to invert the fixed neural encoder of a dual-encoder retriever (e.g., GTR), mapping latent embeddings back to natural language queries.
  • Traverse the latent space from a query embedding to the embedding of its gold-retrieved document, sampling intermediate points along the path.
  • Use the query decoder to generate reformulated queries from each intermediate latent point, creating a synthetic dataset of query suggestions.
  • Fine-tune a T5-large model on this synthetic dataset, using the original query and top-5 retrieved results as input to predict diverse and relevant query suggestions.
  • Evaluate the generated suggestions using automatic metrics like self-BLEU (diversity) and perplexity (fluency), and measure retrieval performance on MSMarco and NQ.
  • Use the latent space structure to guide query refinement, ensuring that reformulations lead toward the target document's embedding.

Experimental results

Research questions

  • RQ1Can a neural query decoder effectively reconstruct natural language queries from latent representations of neural retrievers?
  • RQ2Can traversing the latent space between a query and its relevant document generate meaningful and diverse query reformulations?
  • RQ3Can a synthetic dataset of such reformulations improve the performance of a query suggestion model in a pseudo-relevance feedback setup?
  • RQ4How do the generated query suggestions compare to baselines in terms of fluency, diversity, and retrieval effectiveness?
  • RQ5To what extent can the query decoder help identify 'what should have been asked' to retrieve a specific document?

Key findings

  • The query decoder successfully generates fluent and diverse query reformulations from latent representations, with a self-BLEU of 17.8 on MSMarco and 18.4 on NQ, indicating improved diversity over baselines.
  • The T5-based query suggestion model (qsT5) achieves a self-BLEU of 17.8 on MSMarco and 18.4 on NQ, outperforming both the MQR and RM3 baselines in diversity and fluency.
  • The qsT5 model achieves a perplexity of 247.8 on MSMarco and 223.2 on NQ, indicating higher fluency than the baseline T5-plain model (perplexity 196.6 and 249.8 respectively).
  • The synthetic query suggestion dataset leads to improved retrieval performance, with the qsT5 model outperforming both query reformulation and traditional PRF baselines on MSMarco and NQ.
  • The method enables effective query refinement without human annotation, by leveraging the geometric structure of the shared query-document latent space.
  • The approach demonstrates that latent space traversal combined with query decoding can generate semantically relevant, diverse, and effective query suggestions for retrieval systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.