Wide & Deep Learning for Recommender Systems

Heng-Tze Cheng, Levent Koc, Jeremiah Harmsen, Tal Shaked, Tushar Chandra, Hrishi Aradhye, Glen Anderson, Greg Corrado, Wei Chai, Mustafa Ispir, Rohan Anil, Zakaria Haque, Lichan Hong, Vihan Jain, Xiaobing Liu, Hemal Shah

Abstract

This paper introduces the Wide & Deep learning framework, which jointly trains a linear model (the "wide" part) and a deep neural network (the "deep" part) to combine the strengths of memorization and generalization. Deployed on Google Play, the system demonstrated a 3.9% boost in app acquisition rates while meeting the strict low-latency requirements of a massive-scale industrial system.

Introduction: Memorization vs. Generalization

In recommender systems, models must balance two competing goals: memorization and generalization.

  • Memorization is the ability to learn frequent co-occurrences of items or features in historical data. Generalized linear models with cross-product features excel at this but require heavy manual feature engineering and cannot recommend items based on unseen feature combinations.
  • Generalization is the ability to explore new, unseen feature combinations. Deep neural networks (DNNs) achieve this by learning low-dimensional dense embeddings for sparse features. However, in highly sparse datasets, deep models can "over-generalize," predicting non-zero relevance for unrelated user-item pairs.

The authors propose a unified architecture that captures the precise, interpretable "exception rules" of linear models alongside the broad generalization of deep networks.

The Wide & Deep Learning Framework

The proposed architecture jointly trains two distinct components:

  1. The Wide Component: A generalized linear model ($y = w^T x + b$) that uses cross-product feature transformations to capture interactions between sparse, categorical features.
  2. The Deep Component: A standard feed-forward neural network that converts high-dimensional categorical features into dense embedding vectors, which are then passed through several ReLU hidden layers.

Crucially, this is not a simple ensemble. In joint training, the wide and deep components are combined via a weighted sum of their output log odds and fed into a single logistic loss function. This allows the wide model to focus on a small set of cross-product features that complement the deep model's weaknesses, specifically memorizing exception rules where the deep model might over-generalize.

Detailed Wide & Deep architecture for app recommendations

Implementation and Results

The model was evaluated on a massive dataset of user and app impression logs from Google Play, comprising over 500 billion examples.

Key Insights

  • Mitigating Hallucination: Deep models can "hallucinate" relevance for niche items with few interactions. The wide model acts as a necessary anchor to prevent these over-generalized recommendations.
  • Offline vs. Online Metrics: The Wide & Deep model showed only marginal improvements in offline AUC (0.728 vs 0.726 for wide-only). However, in live A/B testing, it drove massive gains. This suggests that static offline data does not fully capture the benefits of exploratory recommendations in a dynamic live system.

Performance and Serving

In a 3-week live A/B test serving over a billion active users, the Wide & Deep model increased app acquisitions by +3.9% compared to a wide-only control and +1.0% compared to a deep-only model. To meet the $O(10)$ millisecond latency requirement, the team optimized inference using multithreading and smaller batch sizes, reducing client-side latency from 31 ms to 14 ms.

Conclusion

While the wide component still requires domain expertise for manual feature engineering, the Wide & Deep framework provides a powerful balance for large-scale recommenders. By open-sourcing the implementation in TensorFlow, the authors have paved the way for widespread industrial adoption of this hybrid approach.

Summary updated

BibTeX
@inproceedings{cheng2016wide,
  author = {Heng-Tze Cheng and Levent Koc and Jeremiah Harmsen and Tal Shaked and Tushar Chandra and Hrishi Aradhye and Glen Anderson and Greg Corrado and Wei Chai and Mustafa Ispir and Rohan Anil and Zakaria Haque and Lichan Hong and Vihan Jain and Xiaobing Liu and Hemal Shah},
  title = {{Wide \& Deep Learning for Recommender Systems}},
  booktitle = {DLRS@RecSys},
  year = {2016},
  doi = {10.1145/2988450.2988454},
}
Figure