Differentiable NAS Framework and Application to Ads CTR Prediction

Ravi Krishna, Aravind Kalaiah, Bichen Wu, Maxim Naumov, Dheevatsa Mudigere, Misha Smelyanskiy, Kurt KeutzerarXiv 2021

Introduction

In the landscape of modern digital advertising, Click-Through Rate (CTR) prediction is a cornerstone of revenue generation for "hyperscalers" like Facebook and Google. Even marginal improvements in model accuracy, such as a 0.001 reduction in logloss, translate into significant business impact. Traditionally, the Deep Neural Networks (DNNs) powering these predictions, such as the Deep Learning Recommendation Model (DLRM), are manually designed—a process that is both labor-intensive and prone to sub-optimal configurations.

While Neural Architecture Search (NAS) offers a path toward automation, standard Reinforcement Learning (RL) based methods are often computationally prohibitive, requiring thousands of GPU hours. Moreover, recommendation models present unique challenges, particularly the massive embedding tables used for categorical features, which standard NAS tools are not designed to optimize. This paper presents an extensible, modular Differentiable NAS (DNAS) framework tailored for these high-stakes recommendation systems.

Differentiable NAS Methodology

The core of the proposed framework is the transition from discrete architecture sampling to a continuous, differentiable search space. Unlike RL-based NAS, which trains thousands of individual models, DNAS utilizes a "supernet" architecture.

The Supernet and Gumbel Softmax

A supernet is a single, large network that encompasses all possible architectural paths within a defined search space. To make the selection of specific paths differentiable, the authors employ the Gumbel Softmax trick. This allows the system to learn "architecture parameters" (which determine the probability of choosing a specific operation) simultaneously with the standard model weights using gradient descent.

The DNAS supernet structure utilizes sampling between various operational paths to determine the optimal architecture.

Search Spaces for Recommendation Models

The framework targets three critical areas of the DLRM backbone:

  1. MLP Search (FC-of-FC): Using a Directed Acyclic Graph (DAG) approach to optimize the sequence and dimensions of fully connected layers.
  2. Embedding Dimension Search: Determining the ideal vector size for different categorical features, allowing the model to allocate more capacity to high-impact features.
  3. Embedding Cardinality Search: Applying hashing techniques to prune redundant rows in embedding tables, effectively reducing the model's memory footprint without sacrificing performance.

Search and Tuning Workflow

The efficiency of the DNAS framework is further enhanced by a structured search and tuning pipeline. The process begins with a supernet search configuration that explores various hyperparameters and architectural options across multiple GPU jobs.

The end-to-end pipeline from supernet search configuration to finding the best performing architectures.

By decoupling the training of weights and architecture parameters, the framework acts as a form of regularizer. It identifies features prone to overfitting and adjusts their cardinality or dimensions accordingly, leading to models that generalize better to unseen data.

Experimental Results

The framework was rigorously tested on the Criteo Kaggle CTR prediction dataset, which consists of 46 million records. The results demonstrate significant gains in both performance and efficiency:

  • Accuracy: The DNAS-discovered model achieved a state-of-the-art logloss of 0.4442, surpassing the previous baseline of 0.447.
  • Efficiency: The search process was remarkably fast, completing in just 0.28 GPU-days. This represents a 52.6x speedup compared to traditional proxy-task methods.
  • Compression: Through embedding cardinality search, the framework reduced embedding table storage by 15.14x with a negligible impact on loss (0.0012).

Conclusion and Future Directions

The DNAS framework provides a powerful tool for automating the design of recommendation systems, offering a significant boost in development velocity. While the current implementation focuses on MLPs and embeddings, future work aims to incorporate feature interaction layers into the search space and explore simultaneous multi-objective search. By reducing the computational barrier to NAS, this research paves the way for more efficient and accurate models in the critical domain of online advertising.

Summary updated

BibTeX
@misc{krishna2021differentiable,
  author = {Ravi Krishna and Aravind Kalaiah and Bichen Wu and Maxim Naumov and Dheevatsa Mudigere and Misha Smelyanskiy and Kurt Keutzer},
  title = {{Differentiable NAS Framework and Application to Ads CTR Prediction}},
  year = {2021},
  eprint = {2110.14812},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.14812},
}
Figure