Unified Generative & Dense Retrieval for Query Rewriting in Sponsored Search

Akash Kumar Mohankumar, Bhargav Dodla, K Gururaj, Amit Prakash Singh

TL;DR

This paper tackles the challenge of finding the best keywords for advertisers in sponsored search. They propose CLOVER-Unity, a novel unified model that combines the strengths of both generative (NLG) and dense retrieval (DR) approaches, leading to improved keyword discovery and significant gains in user engagement and revenue in real-world A/B tests.

What Problem Does This Paper Address?

Sponsored search is a crucial revenue stream for search engines, relying on advertisers bidding on keywords to reach potential customers. However, matching user queries to the vast and ever-changing landscape of relevant keywords is a complex task. This difficulty stems from several factors:

  • Ambiguity: Both user queries and keywords are often short and can have multiple interpretations.
  • Scale: The keyword space is enormous, spanning diverse topics, languages, and geographies.
  • Real-time Needs: Matching must be computationally efficient to handle high search traffic.

Traditional approaches fall into two main categories: generative methods (NLG) that create keywords and dense retrieval (DR) methods that find existing keywords. While effective, each has limitations, and they often retrieve different sets of relevant keywords. The paper aims to bridge this gap by exploring how to combine these complementary approaches for better sponsored search advertising.

Methods

The core of this work is the development of CLOVER-Unity, a unified model that leverages a single encoder to perform both generative (NLG) and dense retrieval (DR) tasks simultaneously.

  • Generative Retrieval (NLG): The authors use a non-autoregressive (NAR) model with an AR trie decoding strategy. This approach predicts keyword tokens in parallel, making it more efficient than traditional autoregressive models. They also introduce a novel trie-based decoding mechanism to constrain generation to a closed set of bid keywords and improve efficiency.
  • Dense Retrieval (DR): They employ a siamese architecture with shared parameters to learn dense representations for queries and keywords. To handle the massive scale and ensure effective training, they utilize the NGAME negative mining technique, which selects hard negative samples within training batches.
  • Unified Approach (CLOVER-Unity): This is the main contribution. CLOVER-Unity uses a shared transformer encoder to generate representations for both DR and NLG. The model is trained with a combined objective function that includes a triplet margin loss for DR and a negative log-likelihood loss for NLG. During inference, it performs both DR (using DiskANN for efficient nearest neighbor search) and NLG (using trie-based beam search with a proposed permutation decoding for diversity).

Datasets

The paper utilizes several datasets for their experiments:

  • Internal Sponsored Search Datasets: Three large-scale datasets (Query2Bid-1M, Query2Bid-5M, and Query2Bid-10M) were curated from Bing search logs across 30+ languages. These datasets consist of high-quality query-keyword pairs.
  • Public Short-text Benchmarks: To demonstrate the versatility of their approach, they also evaluated CLOVER-Unity on two widely used benchmarks from the extreme classification repository: AmazonTitles and WikiSeeAlsoTitles.

Key Insights and Ideas

  • Complementary Strengths: NLG and DR methods retrieve significantly different sets of high-quality keywords, with about 40% unique to each. This suggests they capture different aspects of query-keyword relationships.
  • NLG for Word-Level Nuances: Generative models excel at understanding word-level relationships like synonyms and hypernyms, likely due to their token-level prediction objective.
  • DR for Broader Coverage: Dense retrieval methods are less constrained by keyword length and can capture longer, more specific keywords that NLG models might miss.
  • Unification Yields Synergies: Combining NLG and DR in a single model (CLOVER-Unity) not only leverages their individual strengths but also leads to performance improvements beyond a simple ensemble. The DR component of CLOVER-Unity, in particular, shows enhanced ability to identify word-level relationships compared to standalone DR methods.
  • Practical Deployment Matters: The paper shares valuable insights on optimizing unified models for production, including using separate CPU servers for trie-beam search and leveraging efficient inference engines like Onnxruntime.

Key Results

  • Offline Performance: CLOVER-Unity's NLG and DR components individually outperform their standalone counterparts. The unified CLOVER-Unity model achieves 9.8% higher "good keyword density" than the ensemble of two separate DR and NLG models.
  • Efficiency: CLOVER-Unity reduces computational costs by almost half compared to the ensemble of separate models.
  • Online A/B Tests (Microsoft Bing):
    • Average increase in total clicks: 0.89%
    • Average increase in revenue: 1.27%
    • Improved user engagement and query coverage, especially for ambiguous "tail" queries.
  • Public Benchmarks: CLOVER-Unity (DR component) surpasses leading extreme classification and DR methods on standard metrics like PSP@5 and Recall@100.

Limitations and Future Work

  • Limitations: The paper acknowledges that while CLOVER-Unity improves upon ensembles, there's still room for further optimization. The authors also note that NLG models can struggle with generating longer keywords, a limitation they partially address with their NAR approach.
  • Future Work: The paper suggests that CLOVER-Unity's versatility extends beyond sponsored search, showing promise in extreme classification tasks. They also highlight the importance of practical deployment considerations, offering insights for future implementations.

Summary updated

BibTeX
@misc{mohankumar2022unified,
  author = {Akash Kumar Mohankumar and Bhargav Dodla and K Gururaj and Amit Prakash Singh},
  title = {{Unified Generative \& Dense Retrieval for Query Rewriting in Sponsored Search}},
  year = {2022},
  eprint = {2209.05861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.05861},
}
Figure