Rankitect: Ranking Architecture Search Battling World-class Engineers at Meta Scale

Wei Wen, Kuang-Hung Liu, Igor Fedorov, Xin Zhang, Hang Yin, Weiwei Chu, Kaveh Hassani, Mengying Sun, Jiang Liu, Xu Wang, Lin Jiang, Yuxin Chen, Buyun Zhang, Xi Liu, Dehua Cheng, Zhengxing Chen, Guang Zhao, Fangqiu Han, Jiyan Yang, Yuchen Hao, Liang Xiong, Wen-Yen Chen · DOI · OpenReview

Rankitect: Building Better Ranking Models at Meta Scale

TL;DR

This paper introduces Rankitect, a novel Neural Architecture Search (NAS) framework designed to discover high-performing ranking models at Meta's massive scale. Rankitect demonstrates that automated search can not only match but even surpass human-engineered models, achieving competitive trade-offs between model accuracy (Normalized Entropy loss) and computational cost (FLOPs), and even winning online A/B tests.

What Problem Does This Paper Address?

Neural Architecture Search (NAS) has shown promise in finding optimal deep learning models, but its application has largely been confined to academic settings with smaller datasets and less optimized "baselines." In real-world industrial systems like Meta's ranking platforms, which serve billions of users and rely on models meticulously crafted by expert engineers over years, it's unclear if NAS can truly compete. The challenges are significant: the sheer scale of data, the existence of highly optimized production baselines, the dynamic nature of these baselines (engineers continuously improve them), and the critical need for efficient search that delivers results quickly for production deployment. This paper aims to bridge this gap by developing and evaluating NAS at Meta's scale for ranking systems.

Methods

Rankitect tackles this challenge by building new architectures from scratch using low-level building blocks. It implements and compares three state-of-the-art NAS approaches:

  • Sampling-based NAS: This method uses a Neural Predictor to guide the search for promising architectures. The paper introduces and compares two low-cost evaluation proxies for this method: "weight-sharing proxy" and "early-stop proxy," finding the latter to be more effective for higher ranking quality with sufficient data.
  • One-shot NAS with Reinforcement Learning (RL): This approach co-trains an RL agent with a supernet (a large network encompassing all possible architectures). Key innovations here include:
  • Noise Reduction: An "in-place baseline" is introduced to mitigate the noise in performance metrics caused by data distribution shifts, leading to a more stable reward signal for the RL agent.
  • Sample Efficiency: A joint on-policy/off-policy RL method is proposed to improve sample efficiency by using experience replay, allowing the reuse of past samples for policy updates.
  • Differentiable NAS (DNAS): This method optimizes architecture parameters directly through gradient descent, offering increased efficiency and potentially faster convergence compared to sampling-based methods.

Rankitect also incorporates system-level optimizations like activation checkpointing and vectorized operations to handle the computational demands of large-scale NAS.

Datasets

The paper uses internal industrial ranking system datasets from Meta. These datasets are massive, with training involving over 50 billion examples for typical ranking models. The specific datasets are not named but are described as containing floating-point dense features, content embeddings, and sparse embeddings from categorical lookup tables.

Key Insights and Ideas

  • NAS Can Compete at Scale: The most significant insight is that NAS, when properly adapted and scaled, can indeed outperform highly optimized, human-engineered production models in real-world ranking systems.
  • Search Space Design Matters: While Rankitect can discover architectures from scratch, leveraging a search space designed by experienced engineers (like the DHEN architecture) can lead to even better results, suggesting a powerful synergy between human expertise and automated search.
  • Low-Cost Proxies are Crucial: For sampling-based NAS, finding effective and efficient low-cost proxies for evaluating candidate architectures is vital for practical application at scale. The "early-stop proxy" proved more effective than "weight-sharing proxy" when sufficient data was available.
  • Noise Reduction is Key for RL: In noisy industrial environments, techniques like using an "in-place baseline" to reduce performance metric variance are essential for stable and effective RL-based NAS.
  • Efficiency Gains are Substantial: DNAS and one-shot NAS methods offer dramatic improvements in search efficiency (e.g., 145x faster than sampling-based methods), making large-scale NAS feasible within practical timeframes.

Key Results

  • Outperforming Production Models: Rankitect discovered new ranking models from scratch that achieved a competitive trade-off between Normalized Entropy (NE) loss and FLOPs, matching or exceeding production baselines.
  • Battling Human Engineers: When using a search space designed by engineers (DHEN), Rankitect generated models that achieved better NE-FLOPs trade-offs than human-designed models, even outperforming a strong human-tuned baseline by over 0.02% absolute NE gain.
  • Online A/B Test Success: Models discovered by Rankitect achieved positive offline evaluation and statistically significant gains in online A/B tests at Meta scale.
  • Efficiency: DNAS and one-shot NAS methods were approximately 145x more efficient in terms of GPU hours compared to sampling-based methods. DNAS also showed faster convergence to FLOPs targets.
  • Model Transferability: Models discovered by Rankitect demonstrated strong transferability, performing well across different products and serving cost constraints.

Limitations and Future Work

  • DNAS vs. One-Shot RL: While DNAS showed better performance and faster convergence for FLOPs constraints, the authors ultimately chose to focus on the one-shot RL method for their software system due to lower engineering complexity, memory requirements, and the ability to handle non-differentiable objectives more naturally.
  • Supernet Complexity: The paper notes that building a supernet with full connections and all blocks can lead to an explosion in parameter count. They implemented optimizations like sharing pairwise linear projections and using bottleneck layers to manage this.
  • Future Work: The paper suggests further exploration into optimizing DNAS for FLOPs constraints and continuing to leverage human-designed search spaces to combine the strengths of both approaches. The potential for Rankitect to automate architecture design and free up human engineering resources is highlighted as a key future direction.

Summary updated

Abstract

Neural Architecture Search (NAS) has demonstrated its efficacy in computer vision and potential for ranking systems. However, prior work focused on academic problems, which are evaluated at small scale under well-controlled fixed baselines. In industry system, such as ranking system in Meta, it is unclear whether NAS algorithms from the literature can outperform production baselines because of: (1) scale - Meta's ranking systems serve billions of users, (2) strong baselines - the baselines are production models optimized by hundreds to thousands of world-class engineers for years since the rise of deep learning, (3) dynamic baselines - engineers may have established new and stronger baselines during NAS search, and (4) efficiency - the search pipeline must yield results quickly in alignment with the productionization life cycle. In this paper, we present Rankitect, a NAS software framework for ranking systems at Meta. Rankitect seeks to build brand new architectures by composing low level building blocks from scratch. Rankitect implements and improves state-of-the-art (SOTA) NAS methods for comprehensive and fair comparison under the same search space, including sampling-based NAS, one-shot NAS, and Differentiable NAS (DNAS). We evaluate Rankitect by comparing to multiple production ranking models at Meta. We find that Rankitect can discover new models from scratch achieving competitive trade-off between Normalized Entropy loss and FLOPs. When utilizing search space designed by engineers, Rankitect can generate better models than engineers, achieving positive offline evaluation and online A/B test at Meta scale.
BibTeX
@inproceedings{wen2024rankitect,
  author = {Wei Wen and Kuang-Hung Liu and Igor Fedorov and Xin Zhang and Hang Yin and Weiwei Chu and Kaveh Hassani and Mengying Sun and Jiang Liu and Xu Wang and Lin Jiang and Yuxin Chen and Buyun Zhang and Xi Liu and Dehua Cheng and Zhengxing Chen and Guang Zhao and Fangqiu Han and Jiyan Yang and Yuchen Hao and Liang Xiong and Wen-Yen Chen},
  title = {{Rankitect: Ranking Architecture Search Battling World-class Engineers at Meta Scale}},
  booktitle = {The Web Conference},
  year = {2024},
  doi = {10.1145/3589335.3648304},
}
Figure