GraphHash: Graph Clustering Enables Parameter Efficiency in Recommender Systems
Xinyi Wu, Donald Loveland, Runjin Chen, Yozen Liu, Xin Chen, Leonardo Neves, Ali Jadbabaie, Clark Mingxuan Ju, Neil Shah, Tong Zhao
TL;DR
GraphHash addresses embedding-table memory growth in deep recommender systems by performing modularity-based bipartite graph clustering on the user–item interaction graph to generate bucket assignments for users and items. The method links modularity maximization to a smoothing effect akin to message-passing, offering a scalable preprocessing alternative via the Louvain algorithm and a plug-and-play hashing mechanism. Empirical results show GraphHash substantially improves retrieval metrics (Recall and NDCG) with fewer parameters, while a DoubleGraphHash variant further enhances CTR performance, indicating practical gains in production settings. Overall, GraphHash provides a robust, graph-informed, parameter-efficient approach to embedding reduction that aligns with industrial needs for efficiency and scalability.
Abstract
Deep recommender systems rely heavily on large embedding tables to handle high-cardinality categorical features such as user/item identifiers, and face significant memory constraints at scale. To tackle this challenge, hashing techniques are often employed to map multiple entities to the same embedding and thus reduce the size of the embedding tables. Concurrently, graph-based collaborative signals have emerged as powerful tools in recommender systems, yet their potential for optimizing embedding table reduction remains unexplored. This paper introduces GraphHash, the first graph-based approach that leverages modularity-based bipartite graph clustering on user-item interaction graphs to reduce embedding table sizes. We demonstrate that the modularity objective has a theoretical connection to message-passing, which provides a foundation for our method. By employing fast clustering algorithms, GraphHash serves as a computationally efficient proxy for message-passing during preprocessing and a plug-and-play graph-based alternative to traditional ID hashing. Extensive experiments show that GraphHash substantially outperforms diverse hashing baselines on both retrieval and click-through-rate prediction tasks. In particular, GraphHash achieves on average a 101.52% improvement in recall when reducing the embedding table size by more than 75%, highlighting the value of graph-based collaborative information for model reduction. Our code is available at https://github.com/snap-research/GraphHash.
