HEARTS: Multi-task Fusion of Dense Retrieval and Non-autoregressive Generation for Sponsored Search

Bhargav Dodla, Akash Kumar Mohankumar, Amit Singh

TL;DR

This paper tackles the challenge of finding the best keywords for sponsored search ads by combining two powerful but distinct approaches: generative language models (NLG) and dense retrieval (DR). They introduce CLOVER-Unity, a unified model that leverages the complementary strengths of both, leading to significantly better keyword suggestions and improved user engagement and revenue on Microsoft Bing.

What Problem Does This Paper Address?

Sponsored search is a massive revenue driver for search engines, where advertisers bid on keywords to reach potential customers. The core challenge lies in matching user search queries to the most relevant keywords from a vast and ever-changing pool of advertiser bids. This is difficult because:

  • Ambiguity: Search queries and keywords are often short and can have multiple meanings.
  • Scale: The keyword space is enormous, spanning diverse topics and languages.
  • Real-time Needs: Matching must happen instantly to serve ads effectively.

Traditional methods fall into two camps: Generative (NLG) approaches, which try to create new keywords from a query, and Dense Retrieval (DR) approaches, which find existing keywords based on semantic similarity. The authors noticed that these methods, while effective, often missed keywords that the other method would have found, suggesting they capture different aspects of relevance.

Methods

The paper proposes CLOVER-Unity, a novel approach that unifies NLG and DR within a single model. Here's how it works:

  • Shared Encoder: A single transformer encoder (like BERT) processes the input query.
  • Dual Outputs: The encoder's output is used for two distinct purposes:
  • Dense Retrieval (DR): A dense vector representation is generated for keyword matching using efficient nearest neighbor search (DiskANN).
  • Generative Retrieval (NLG): The encoder's output is also used to predict keyword tokens in a non-autoregressive manner (CLOVERv2), constrained by a trie of valid bid keywords.
  • Unified Training: CLOVER-Unity is trained with a combined loss function that includes both a contrastive loss for DR and a negative log-likelihood loss for NLG. This encourages the model to learn representations useful for both tasks simultaneously.
  • Efficient Inference: For DR, they use DiskANN for fast retrieval. For NLG, they employ an optimized trie-based decoding strategy and a novel "permutation decoding" to improve diversity and efficiency.

Datasets

The authors used several datasets for their experiments:

  • Sponsored Search Datasets: They curated three large-scale datasets (Query2Bid-1M, Query2Bid-5M, Query2Bid-10M) from Microsoft Bing search logs, containing high-quality query-keyword pairs.
  • Public Short-text Benchmarks: To demonstrate broader applicability, they also evaluated on two standard extreme classification datasets: AmazonTitles and WikiSeeAlsoTitles.

Key Insights and Ideas

  • Complementary Strengths: NLG and DR methods retrieve significantly different sets of high-quality keywords (around 40% overlap), meaning neither approach alone captures the full picture.
  • NLG for Nuance, DR for Breadth: NLG models excel at capturing word-level relationships like synonyms and hypernyms, while DR models are better at retrieving longer, more specific keywords that might include additional context.
  • Unified Model Advantage: Combining NLG and DR in a single model (CLOVER-Unity) not only captures more relevant keywords but also does so more efficiently than using separate models.
  • Practicality Matters: The paper emphasizes not just performance but also computational efficiency and provides practical tips for deploying such unified models in production.

Key Results

  • Offline Performance: CLOVER-Unity's individual NLG and DR components outperformed their standalone counterparts. The unified CLOVER-Unity model achieved 9.8% higher good keyword density than an ensemble of separate DR and NLG models.
  • Efficiency: CLOVER-Unity reduced computational costs by almost half compared to the ensemble approach.
  • Online A/B Tests (Microsoft Bing):
    • 0.89% average increase in total clicks.
    • 1.27% average increase in revenue.
    • Improved user engagement and increased query coverage, especially for less frequent "tail" queries.
  • Public Benchmarks: CLOVER-Unity (DR component) outperformed leading extreme classification methods on standard metrics.

Limitations and Future Work

  • Quality Thresholds: The authors note that while NLG and DR components are unified, they might require different downstream quality thresholds for filtering keywords due to inherent differences in their output quality.
  • Keyword Clustering: They found that clustering keywords using DR embeddings helped reduce index size and memory requirements, suggesting further exploration of embedding-based techniques.
  • Deployment Optimizations: The paper offers practical recommendations for deployment, such as using unified encoders, offloading trie-beam search to a separate CPU, and leveraging optimized inference engines like Onnxruntime.
  • Broader Applications: The success on public extreme classification benchmarks suggests CLOVER-Unity's potential for tasks beyond sponsored search.

Summary updated

BibTeX
@misc{dodla2022hearts,
  author = {Bhargav Dodla and Akash Kumar Mohankumar and Amit Singh},
  title = {{HEARTS: Multi-task Fusion of Dense Retrieval and Non-autoregressive Generation for Sponsored Search}},
  year = {2022},
  eprint = {2209.05861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.05861},
}
Figure