AutoADR: Automatic Model Design for Ad Relevance

Yiren Chen, Yaming Yang, Hong Sun, Yujing Wang, Yu Xu, Wei Shen, Rong Zhou, Yunhai Tong, Jing Bai, Ruofei Zhang

Abstract

AutoADR is a novel framework that combines one-shot Neural Architecture Search (NAS) with Knowledge Distillation (KD) to automatically design efficient, high-performing models for ad relevance. By distilling the power of a large BERT teacher into a hardware-constrained student architecture, the framework achieved a 4.6% reduction in "Bad-Ad" ratios in Microsoft Bing’s production environment while maintaining strict latency requirements.

Introduction

In online advertising, "Ad Relevance" determines how well an ad matches a user's search query. It is a high-stakes NLP task: better relevance improves user experience, advertiser satisfaction, and search engine revenue. However, production environments face two major hurdles. First, the Latency-Accuracy Trade-off: large pre-trained models like BERT offer state-of-the-art accuracy but are far too computationally expensive for real-time systems that must process thousands of query-ad pairs in milliseconds. Second, Manual Design Limitations: manually designing "lightweight" architectures that don't sacrifice accuracy is a slow, trial-and-error process. AutoADR addresses these by integrating AutoML with pre-trained models and production constraints.

Methodology

The AutoADR pipeline automates the design of a "sub-model" for a larger production ensemble through a multi-stage workflow.

The AutoADR end-to-end workflow, from teacher preparation to model retraining.

Twin-Tower Architecture and NAS

To handle latency, AutoADR utilizes a twin-tower setup where queries and ads are encoded separately. This allows ad vectors to be pre-calculated offline, leaving only the query encoding and a simple "crossing" layer to be performed in real-time.

The core of the framework is a one-shot NAS process using a "supernet" (based on TextNAS) that contains various operations, including CNNs, RNNs, pooling, and self-attention. The search process is guided by a BERT-large teacher via joint knowledge distillation. Student architectures are trained to mimic the teacher's "soft" predictions rather than just hard human labels. During the search phase, any architecture exceeding a pre-defined memory or latency budget is automatically discarded, ensuring the final winner is production-ready.

Datasets and Training

  • Teacher Training: Millions of human-labeled query-ad pairs were used to fine-tune the BERT-large teacher.
  • NAS & Retraining: A massive real-world dataset of hundreds of millions of query-ad pairs mined from Microsoft Bing search logs.
  • Evaluation: Standardized validation and test sets of 200,000 human-labeled pairs were used to compare AutoADR against baselines.

Key Insights and Results

A significant finding of the NAS process was the specific structural composition required for ad relevance. The best-performing architecture (visualized below) completely excluded RNN layers. Due to latency constraints, the NAS algorithm favored a mix of 1D-CNNs and self-attention, which are more parallelizable and efficient for short-text relevance.

The final discovered architecture for the AutoADR student model, featuring a mix of CNN and attention layers.

Performance Metrics

  • Offline Performance: AutoADR (15.28M parameters) outperformed human-designed baselines like CNNs, RNNs, and Transformers. It achieved a higher PR AUC while being 1.8x faster than C-DSSM and 2.2x faster than a standard Transformer.
  • Online Impact: In live A/B testing on Microsoft Bing, the model led to a 4.6% reduction in the Bad-Ad ratio, a statistically significant improvement that surpassed the internal shipping bar.
  • User Engagement: The model improved secondary metrics, including a +0.16% increase in Click Yield and a -0.33% reduction in the Quick Back Rate, indicating higher quality matches.

Conclusion and Future Work

AutoADR demonstrates that NAS and KD are more powerful when used together: KD provides a richer signal for exploration, while NAS finds the optimal structural container for that knowledge under hardware limits. While currently optimized for ad relevance, future work includes applying the framework to other search components like general relevance and query suggestion, as well as exploring more advanced search algorithms like Reinforcement Learning to further refine the architecture discovery process.

Summary updated

BibTeX
@inproceedings{chen2020autoadr,
  author = {Yiren Chen and Yaming Yang and Hong Sun and Yujing Wang and Yu Xu and Wei Shen and Rong Zhou and Yunhai Tong and Jing Bai and Ruofei Zhang},
  title = {{AutoADR: Automatic Model Design for Ad Relevance}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
  url = {https://openreview.net/forum?id=MfKoK3HS5DQ},
}
Figure