Scaling Graph Neural Networks for Friend Recommendation: Multi-Hash User Embeddings and Temporal Neighbor Sampling
- URL: http://arxiv.org/abs/2608.27413v1
- Date: Thu, 27 Aug 2026 17:41:33 GMT
- Title: Scaling Graph Neural Networks for Friend Recommendation: Multi-Hash User Embeddings and Temporal Neighbor Sampling
- Abstract summary: We present a scalable end-to-end GNN ranking system for production social graphs.<n>We focus on two design choices that are critical in this setting: multi-hash ID embeddings and temporal neighbor sampling.<n>Our system increases friend additions from recommendations by 16 percent and unique friend adders by 11.5 percent over a strong production baseline.
- Score: 42.18510447563619
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Friend recommendation is inherently graph-structured: the relevance of a potential connection depends on multi-hop social context rather than user attributes alone. However, deploying message-passing GNNs on a production-scale social graph with hundreds of millions of users and tens of billions of edges requires addressing numerous modeling and systems challenges. We present a scalable end-to-end GNN ranking system for production social graphs, focusing on two design choices that are critical in this setting: multi-hash ID embeddings and temporal neighbor sampling. Multi-hash embeddings are common for high-cardinality features, but industrial GNN systems typically either ignore trainable IDs or accept full embedding tables, exceeding 200 GB for our graph. We integrate multi-hash as the primary node representation, reducing the ID-embedding table size by more than 98 percent while preserving ranking quality. Temporal neighbor sampling is well understood in principle, but existing implementations scan full adjacency lists, which is a non-starter for users with tens of thousands of friends. We implement timestamp-sorted CSR storage with binary search, reducing the per-node temporal sampling cost from $O(deg(v) + k)$ to $O(\log(deg(v)) + k)$. Beyond these components, we show that this combination scales and yields measurable production impact. On a graph with 194M users and 28B edges, offline ablations isolate each design choice's contribution. In an online A/B test, our system increases friend additions from recommendations by 16 percent and unique friend adders by 11.5 percent over a strong production baseline. We release our framework for distributed training and inference on large temporal graphs.
Related papers
- Dynamic Graph with Similarity-Aware Attention Graph Neural Network for Recommender Systems [0.0]
This paper proposes a Dynamic Graph SimilarityAware Attention Graph Neural Network framework.<n>It integrates dynamic user similarity graph construction with multi-similarity propagation and attention-based aggregation.<n>Experiments on the MovieLens100K benchmark demonstrate that DG-SA-GNN achieves a Recall@20 of 0.162 and NDCG@20 of 0.065 which is better than the LightGCN baseline in recall.
arXiv Detail & Related papers (2026-05-02T16:33:39Z) - NOMAD: Generating Embeddings for Massive Distributed Graphs [10.29444459089447]
Successful machine learning on graphs or networks requires embeddings that represent nodes and edges as low-dimensional vectors.<n>We present NOMAD, a distributed-memory graph embedding framework using the Message Passing Interface (MPI) for distributed graphs.
arXiv Detail & Related papers (2026-04-10T15:30:43Z) - CombiGCN: An effective GCN model for Recommender System [0.0]
Graph Neural Networks (GNNs) have opened up a potential line of research for collaborative filtering (CF)<n>We propose a recommendation framework, CombiGCN, in which item embeddings are only linearly propagated on the user-item interaction graph.<n>We also conducted experiments comparing CombiGCN with several state-of-the-art models on three real-world datasets.
arXiv Detail & Related papers (2025-03-27T13:03:27Z) - GraphHash: Graph Clustering Enables Parameter Efficiency in Recommender Systems [51.64666652517944]
This paper introduces GraphHash, the first graph-based approach that leverages modularity-based bipartite graph clustering to reduce embedding table sizes.<n>By employing fast clustering algorithms, GraphHash serves as a computationally efficient proxy for message-passing during preprocessing.<n>In experiments, GraphHash substantially outperforms diverse hashing baselines on both retrieval and click-through-rate prediction tasks.
arXiv Detail & Related papers (2024-12-23T03:37:58Z) - Dynamic Graph Message Passing Networks for Visual Recognition [112.49513303433606]
Modelling long-range dependencies is critical for scene understanding tasks in computer vision.
A fully-connected graph is beneficial for such modelling, but its computational overhead is prohibitive.
We propose a dynamic graph message passing network, that significantly reduces the computational complexity.
arXiv Detail & Related papers (2022-09-20T14:41:37Z) - Ordinal Graph Gamma Belief Network for Social Recommender Systems [54.9487910312535]
We develop a hierarchical Bayesian model termed ordinal graph factor analysis (OGFA), which jointly models user-item and user-user interactions.
OGFA not only achieves good recommendation performance, but also extracts interpretable latent factors corresponding to representative user preferences.
We extend OGFA to ordinal graph gamma belief network, which is a multi-stochastic-layer deep probabilistic model.
arXiv Detail & Related papers (2022-09-12T09:19:22Z) - Modeling User Behavior With Interaction Networks for Spam Detection [4.795582035438343]
Spam is a serious problem plaguing web-scale digital platforms.
We propose SEINE, a spam detection model over a novel graph framework.
Our model considers neighborhood along with edge types and attributes, allowing it to capture a wide range of spammers.
arXiv Detail & Related papers (2022-07-21T21:34:56Z) - Large-Scale Network Embedding in Apache Spark [1.3769786711365102]
We propose an efficient and effective distributed algorithm for network embedding on large graphs using Apache Spark.
We demonstrate in various experiments that our proposed approach is able to handle graphs with billions of edges within a few hours and is at least 4 times faster than the state-of-the-art approaches.
arXiv Detail & Related papers (2021-06-20T04:42:24Z) - Graph Convolutional Embeddings for Recommender Systems [67.5973695167534]
We propose a graph convolutional embedding layer for N-partite graphs that processes user-item-context interactions.
More specifically, we define a graph convolutional embedding layer for N-partite graphs that processes user-item-context interactions.
arXiv Detail & Related papers (2021-03-05T10:46:16Z) - Scaling Graph Neural Networks with Approximate PageRank [64.92311737049054]
We present the PPRGo model which utilizes an efficient approximation of information diffusion in GNNs.
In addition to being faster, PPRGo is inherently scalable, and can be trivially parallelized for large datasets like those found in industry settings.
We show that training PPRGo and predicting labels for all nodes in this graph takes under 2 minutes on a single machine, far outpacing other baselines on the same graph.
arXiv Detail & Related papers (2020-07-03T09:30:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.