Embedding-based Zero-shot Retrieval through Query Generation

Davis Liang, Peng Xu, Siamak Shakeri, Cícero Nogueira dos Santos, Ramesh Nallapati, Zhiheng Huang, Bing XiangarXiv 2020

Abstract

Traditional neural retrieval models require vast amounts of human-labeled data, which is often unavailable for niche domains. This paper presents a novel approach to zero-shot retrieval by leveraging a generative model (BART) to create millions of synthetic queries from existing text passages. By training a Siamese BERT-based retriever on this "silver-standard" data, we achieve state-of-the-art performance that significantly outperforms traditional lexical matching algorithms like BM25 across diverse benchmarks.

Introduction

Information retrieval typically relies on either fast lexical matching (e.g., BM25) or semantically aware neural embedding models. While lexical matching is robust, it fails to capture synonyms and semantic context. Conversely, neural models are highly effective but data-hungry, requiring hundreds of thousands of query-passage pairs. In many specialized fields, such as medical or legal search, such labeled data is non-existent. This research addresses the "zero-shot" challenge: building high-performance neural retrievers using only document corpora without human-labeled queries.

Methodology: The Query Generation Pipeline

The core of the proposed method is a pipeline that transforms a document corpus into a training set for a retrieval model through synthetic query generation (QG).

The proposed architecture featuring a BART-based Generator Model and a BERT-based Retrieval Model.

The process involves four main stages:

  1. Query Generation (QG): A BART language model is fine-tuned on a general-purpose dataset (MS MARCO) to learn the relationship between passages and relevant questions.
  2. Massive Synthesis: This model is applied to 22 million Wikipedia passages to generate multiple synthetic queries per passage, resulting in the WikiGQ dataset containing 110 million pairs.
  3. Retrieval Model Training: A dual-encoder architecture is employed. The authors found that a "Siamese" configuration, where the query and passage encoders share weights, is particularly effective.
  4. Domain Adaptation: To handle specialized domains, the QG model generates domain-specific synthetic data, allowing the retriever to learn technical jargon without manual labeling.

Key Insights and Model Architecture

A critical finding of this work is the superiority of generative pre-training over extractive methods. While previous approaches like the Inverse Cloze Task (ICT) used existing sentences as "fake queries," generating new queries with BART better mimics the syntax and intent of real human searches.

Recall performance on Natural Questions comparing Siamese and Two-tower architectures across different embedding sizes.

As shown in the experimental results, the Siamese architecture consistently outperforms the standard Two-tower model. Sharing parameters between the query and passage towers helps the model map both inputs into a unified semantic space more effectively. Furthermore, performance scales positively with embedding size, with significant gains observed as the dimensionality increases from 32 to 512.

Experimental Results

The synthetic-trained Siamese model was evaluated against the BM25 baseline across six major datasets, including Natural Questions (NQ), InsuranceQA, and BioASQ.

  • Performance Gains: The model outperformed BM25 on 5 out of 6 datasets, achieving an average increase of 2.45 points in Recall@1.
  • Wikipedia Tasks: On NQ, the model showed a 20% to 50% improvement over lexical baselines.
  • Unsupervised Success: The approach proved highly effective for domain adaptation. Generating synthetic data for InsuranceQA provided a substantial performance boost, demonstrating the generator's ability to "teach" the retriever new domain languages.

Conclusion and Future Directions

This research demonstrates that massive-scale synthetic data generation is a viable and powerful alternative to human labeling for training neural retrievers. While the model struggled with the BioASQ dataset—likely due to inherent lexical biases in its ground truth—the overall results suggest a paradigm shift in zero-shot retrieval. Future work will focus on filtering noisy synthetic queries, improving generation efficiency, and exploring the scaling laws of even larger generative models for query synthesis.

Summary updated

BibTeX
@misc{liang2020embedding,
  author = {Davis Liang and Peng Xu and Siamak Shakeri and Cícero Nogueira dos Santos and Ramesh Nallapati and Zhiheng Huang and Bing Xiang},
  title = {{Embedding-based Zero-shot Retrieval through Query Generation}},
  year = {2020},
  eprint = {2009.10270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.10270},
}
Figure