Pinterest Home Feed Unified Lightweight Scoring: A Two-tower Approach

Pinterest Engineering
9 min readintermediate
--
View Original

Overview

The article discusses Pinterest's implementation of a unified lightweight scoring system for its home feed recommendations using a two-tower architecture. It highlights the motivations behind this approach, the technical details of the model, and the benefits observed in terms of engagement, diversity, and infrastructure costs.

What You'll Learn

1

How to implement a two-tower model for lightweight scoring in recommendation systems

2

Why unifying candidate generators can enhance recommendation diversity

3

How to optimize embedding serving for both user and pin data

Prerequisites & Requirements

  • Understanding of machine learning concepts and recommendation systems

Key Questions Answered

What is the purpose of the two-tower architecture in Pinterest's scoring system?
The two-tower architecture separates user and pin features to compute embeddings that measure the likelihood of user engagement with specific pins. This design allows for better representation of both user interests and pin characteristics, leading to improved recommendations.
How does Pinterest's unified lightweight scoring improve engagement metrics?
By applying the unified lightweight scoring layer, Pinterest observed a 2-3% increase in total saves and closeups, while total hides dropped by 3-4%. This indicates that the new model enhances the relevance of recommendations, leading to higher user engagement.
What are the benefits of using a unified scoring model across candidate generators?
The unified scoring model reduces engineering efforts and online serving costs, as it allows for a single model to be applied across various candidate generators. This approach simplifies the development process and improves the overall efficiency of the recommendation system.

Key Statistics & Figures

Engagement increase
2-3%
Observed in total saves and closeups after implementing the unified lightweight scoring layer.
Reduction in total hides
3-4%
Indicates improved relevance of recommendations following the new scoring approach.

Technologies & Tools

Backend
Pixie
Used as a recommendation system based on a bipartite pin-board graph.

Key Actionable Insights

1
Implementing a two-tower architecture can significantly enhance the performance of recommendation systems.
This architecture allows for better feature representation, which can lead to improved engagement metrics and user satisfaction.
2
Regularly evaluate the performance of your recommendation algorithms to identify areas for improvement.
Using metrics such as engagement rates and diversity can help in fine-tuning the models to better meet user needs.
3
Consider offline workflows for embedding computation to reduce online serving costs.
Precomputing embeddings for stable content can save computational resources during peak traffic times.

Common Pitfalls

1
Overcomplicating the scoring model can lead to increased online serving costs.
It's important to balance feature complexity with computational efficiency to maintain performance without incurring excessive costs.

Related Concepts

Machine Learning In Recommendation Systems
Embedding Techniques For User And Item Data
Efficiency In Online Serving Architectures