Skip to main content
QUICK REVIEW

[Paper Review] MultiBiSage: A Web-Scale Recommendation System Using Multiple Bipartite Graphs at Pinterest

Saket Gurukar, Nikil Pancha|arXiv (Cornell University)|May 21, 2022
Recommender Systems and TechniquesComputer Science5 citations
TL;DR

MultiBiSage proposes a scalable, production-ready recommendation system that leverages multiple bipartite graphs—capturing diverse Pinterest entities and interactions like user-pins, user-boards, and user-ads—to learn high-quality pin embeddings via a transformer-based aggregation model. It significantly outperforms the deployed PinSage system on multiple engagement metrics by integrating heterogeneous graph signals while reusing existing infrastructure for scalability.

ABSTRACT

Graph Convolutional Networks (GCN) can efficiently integrate graph structure and node features to learn high-quality node embeddings. These embeddings can then be used for several tasks such as recommendation and search. At Pinterest, we have developed and deployed PinSage, a data-efficient GCN that learns pin embeddings from the Pin-Board graph. The Pin-Board graph contains pin and board entities and the graph captures the pin belongs to a board interaction. However, there exist several entities at Pinterest such as users, idea pins, creators, and there exist heterogeneous interactions among these entities such as add-to-cart, follow, long-click. In this work, we show that training deep learning models on graphs that captures these diverse interactions would result in learning higher-quality pin embeddings than training PinSage on only the Pin-Board graph. To that end, we model the diverse entities and their diverse interactions through multiple bipartite graphs and propose a novel data-efficient MultiBiSage model. MultiBiSage can capture the graph structure of multiple bipartite graphs to learn high-quality pin embeddings. We take this pragmatic approach as it allows us to utilize the existing infrastructure developed at Pinterest -- such as Pixie system that can perform optimized random-walks on billion node graphs, along with existing training and deployment workflows. We train MultiBiSage on six bipartite graphs including our Pin-Board graph. Our offline metrics show that MultiBiSage significantly outperforms the deployed latest version of PinSage on multiple user engagement metrics.

Motivation & Objective

  • To improve pin embedding quality by incorporating diverse user interactions beyond the Pin-Board graph.
  • To enable scalable training of heterogeneous graph neural networks on web-scale data (4.8B+ nodes, 9.7B+ edges) without requiring single-machine training.
  • To maintain compatibility with existing production infrastructure, including Pixie for neighbor sampling and existing training/deployment pipelines.
  • To demonstrate that multi-graph learning yields significantly better downstream recommendation performance than single-graph approaches.
  • To optimize inference efficiency by identifying minimal effective neighbor counts while preserving performance.

Proposed method

  • Decompose Pinterest’s heterogeneous graph into six distinct bipartite graphs, each representing a different entity interaction (e.g., user-pin, user-board, user-ad).
  • Use the Pixie system to pre-compute local graph neighborhoods for pins via optimized random walks on billion-node graphs.
  • Train a MultiBiSage model that learns separate pin embeddings from each bipartite graph using a transformer encoder architecture.
  • Aggregate the k individual embeddings from k bipartite graphs using a second transformer layer to produce a final, unified pin embedding.
  • Employ feature aggregation techniques such as element-wise sum, Hadamard product, or feed-forward networks (FFN) to combine embeddings before final aggregation.
  • Leverage existing training and feature extraction workflows to ensure production feasibility and low engineering overhead.

Experimental results

Research questions

  • RQ1Can learning from multiple heterogeneous bipartite graphs improve pin embedding quality compared to using only the Pin-Board graph?
  • RQ2How does the number of sampled neighbors per graph affect model performance and inference speed?
  • RQ3Which individual bipartite graphs contribute most significantly to improved recommendation performance?
  • RQ4Can a transformer-based aggregation mechanism effectively combine signals from multiple graph structures?
  • RQ5Is it possible to achieve high performance with fewer neighbors while maintaining inference efficiency?

Key findings

  • MultiBiSage trained on all six bipartite graphs achieves statistically significant improvements over the deployed PinSage model across all engagement metrics, with a 4.3% improvement on ads and 3.18–4.42% improvement on idea pins.
  • The model with 50 neighbors per graph outperforms those with 10 or 20 neighbors, though the 10- and 20-neighbor models show no statistically significant difference.
  • Incorporating the User-Ad and User-Product graphs leads to substantial gains in recommendation performance for ads and product pins, respectively.
  • The Case Study shows that MultiBiSage improves semantic alignment: the engaged pin ranks 5th instead of 364th in PinSage’s top-5, with 4/5 nearest neighbors related to electric scooters.
  • Models trained on individual bipartite graphs (excluding Pin-Board) underperform PinSage, confirming the dominance of the Pin-Board graph’s scale.
  • The choice of aggregation method (e.g., sum, Hadamard, FFN) has minimal impact on performance, with no statistically significant difference at the 0.01 level.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.