Pixie: A System for Recommending 3+ Billion Items to 200+ Million Users in Real-Time

Chantat Eksombatchai, Pranav Jindal, Jerry Zitao Liu, Yuchen Liu, Rahul Sharma, Charles Sugnet, Mark Ulrich, Jure Leskovec

TL;DR

Pinterest built Pixie, a real-time graph-based recommendation system capable of serving billions of items to hundreds of millions of users. By employing a novel "Pixie Random Walk" algorithm on a massive graph and incorporating graph pruning, Pixie significantly boosts user engagement and achieves sub-100ms latency, powering over 80% of user interactions on the platform.

What Problem Does This Paper Address?

The paper tackles the immense challenge of providing personalized, engaging, and real-time recommendations on a platform like Pinterest. This involves dealing with an enormous catalog of over 3 billion items and a user base of over 200 million active users. Traditional recommendation systems often struggle with such scale, and crucially, the requirement for recommendations to be generated on demand within strict latency constraints (sub-100ms) is a significant hurdle. Precomputing recommendations daily, while common, leads to stale suggestions and wasted resources on inactive users. Pixie aims to bridge this gap by offering a scalable, real-time solution that adapts to user behavior instantly.

Methods

Pixie's core innovation lies in its Pixie Random Walk algorithm, a sophisticated extension of traditional random walk methods for graph-based recommendations. Key aspects include:

  • Graph Representation: Pinterest's data is modeled as a bipartite graph of pins and boards, with over 3 billion nodes and 17 billion edges.
  • User-Specific Biasing: The random walk is biased based on user features (like language and topic preferences), making recommendations personalized without needing to store a separate graph for each user.
  • Multiple Query Pins with Weights: Instead of a single query pin, Pixie uses a set of user-interacted pins, each with an assigned weight reflecting recency and action type, to capture a richer user context.
  • Multi-hit Booster: This mechanism rewards candidate pins that are visited by random walks originating from multiple query pins, indicating a stronger overall relevance.
  • Early Stopping: A novel convergence criterion allows the random walks to terminate efficiently once the set of top candidates stabilizes, significantly reducing computation time.
  • Graph Pruning: To manage the massive graph size and improve performance, a pruning strategy is employed. This involves removing "noisy" or overly diverse boards based on topic entropy and discarding edges with low topic similarity between pins and boards. This reduces graph size and improves recommendation quality.

Datasets

The paper primarily uses the Pinterest internal graph data, which consists of:

  • Over 3 billion pins.
  • Over 100 billion edges representing user saves of pins to boards.
  • This data is dynamically generated and updated daily.

No new public benchmarks are introduced; instead, the authors compare Pixie against their previous Hadoop-based production system and content-based recommender methods.

Key Insights and Ideas

  • The power of graph structure for recommendations: Pinterest's user-curated graph of pins and boards captures rich, multi-faceted relationships that are crucial for generating relevant recommendations, something purely content-based methods miss.
  • Real-time is a game-changer for engagement: The ability to react instantly to user actions and provide recommendations within milliseconds dramatically increases user engagement compared to batch-processed systems.
  • Personalization through graph biasing: Dynamically biasing random walks based on user features is an efficient way to achieve personalized recommendations without the prohibitive cost of maintaining individual user graphs.
  • Graph pruning is essential for scale and quality: Removing less informative parts of the graph not only reduces computational load and memory footprint but also demonstrably improves recommendation accuracy.
  • Balancing exploration and exploitation: The ability to adjust walk lengths allows for tuning recommendations between topical (shorter walks) and exploratory (longer walks), catering to different user needs.

Key Results

  • User Engagement Lift: Pixie recommendations led to up to 50% higher per-pin engagement compared to previous systems in A/B tests.
  • Graph Pruning Improvement: A graph pruning strategy resulted in an additional 58% improvement in recommendations and reduced the graph size by a factor of six.
  • Real-time Performance: A single Pixie server can handle 1,200 recommendation requests per second with a 60ms 99-percentile latency.
  • System Impact: Pixie-backed systems contribute to over 80% of all user engagement on Pinterest.
  • Recommendation Quality: Pixie significantly outperformed content-based methods in predicting which pin a user would save next, achieving higher hit rates across top-K rankings.
  • Language Localization: Pixie significantly boosted the proportion of target-language content in recommendations compared to basic random walks.

Limitations and Future Work

  • Randomness and Stability: While Pixie aims for stability, its randomized nature means recommendations can vary. The paper investigates this variance and suggests that several hundred thousand steps are generally sufficient for stable results.
  • Parameter Tuning: The effectiveness of early stopping depends on carefully chosen parameters (np and nv), which require tuning to balance runtime and recommendation quality.
  • Future Work: The authors anticipate extending Pixie with new algorithms and graphs featuring novel node types and edge definitions for even more applications. The generic nature of the system suggests broad applicability beyond current use cases.

Summary updated

BibTeX
@inproceedings{eksombatchai2018pixie,
  author = {Chantat Eksombatchai and Pranav Jindal and Jerry Zitao Liu and Yuchen Liu and Rahul Sharma and Charles Sugnet and Mark Ulrich and Jure Leskovec},
  title = {{Pixie: A System for Recommending 3+ Billion Items to 200+ Million Users in Real-Time}},
  booktitle = {The Web Conference},
  year = {2018},
  doi = {10.1145/3178876.3186183},
}
Figure