Sheaf4Rec: Sheaf Neural Networks for Graph-based Recommender Systems
Antonio Purificato, Giulia Cassarà, Federico Siciliano, Pietro Liò, Fabrizio Silvestri
TL;DR
This work addresses the limitation of single-vector representations in graph-based recommender systems by introducing Sheaf4Rec, which leverages cellular sheaves to represent users, items, and ratings as vector spaces and applies neural diffusion on a bipartite graph. By combining two embedding tables, a multi-layer sheaf diffusion process, and Bayesian Personalized Ranking loss, the approach yields state-of-the-art performance (notably up to 11.29% relative NDCG@10 improvements) while achieving practical efficiency gains (2.5%–37% faster). Extensive experiments on Facebook Books, Yahoo! Movies, and MovieLens 1M demonstrate robust gains across NDCG, F1, and MRR metrics, with ablations confirming the impact of K, layer depth, and latent dimension. The results highlight the expressive power of the categorical sheaf formalism and point to broad applicability, including potential extensions to next point-of-interest recommendation and other graph-centric domains.
Abstract
Recent advancements in Graph Neural Networks (GNN) have facilitated their widespread adoption in various applications, including recommendation systems. GNNs have proven to be effective in addressing the challenges posed by recommendation systems by efficiently modeling graphs in which nodes represent users or items and edges denote preference relationships. However, current GNN techniques represent nodes by means of a single static vector, which may inadequately capture the intricate complexities of users and items. To overcome these limitations, we propose a solution integrating a cutting-edge model inspired by category theory: Sheaf4Rec. Unlike single vector representations, Sheaf Neural Networks and their corresponding Laplacians represent each node (and edge) using a vector space. Our approach takes advantage from this theory and results in a more comprehensive representation that can be effectively exploited during inference, providing a versatile method applicable to a wide range of graph-related tasks and demonstrating unparalleled performance. Our proposed model exhibits a noteworthy relative improvement of up to 8.53% on F1-Score@10 and an impressive increase of up to 11.29% on NDCG@10, outperforming existing state-of-the-art models such as Neural Graph Collaborative Filtering (NGCF), KGTORe and other recently developed GNN-based models. In addition to its superior predictive capabilities, Sheaf4Rec shows remarkable improvements in terms of efficiency: we observe substantial runtime improvements ranging from 2.5% up to 37% when compared to other GNN-based competitor models, indicating a more efficient way of handling information while achieving better performance. Code is available at https://github.com/antoniopurificato/Sheaf4Rec.
