Sheaf-MPNN: A Library for Sheaf Neural Networks as Message Passing
Alessio Borgi, Mario Severino, Luke Braithwaite, Steve Azzolin, Rémi Bourgerie, Olga Zaghen, Emanuele Mule, Riccardo Ali, Leo Minh Kustermann, Edoardo Coppola, Antonio Purificato, Stefano Fiorini, Christopher Irwin, Filippo Spiga, Ling Guo, Fabrizio Silvestri, Michael Bronstein, Pietro Liò
Abstract
Standard Graph Neural Networks (GNNs) implicitly assume that neighboring nodes share the same feature space, which contributes to oversmoothing and poor performance on heterophilic graphs. Sheaf Neural Networks (SNNs) remove this assumption by giving each node and edge its own vector space and learning restriction maps that transform features as they move between neighbors. These maps define a sheaf Laplacian that drives diffusion over the graph, but existing implementations often assemble it explicitly as a global sparse block matrix, which adds memory and computational overhead and can hinder scalability. In this paper, we introduce Sheaf-MPNN, a PyTorch Geometric library that reformulates sheaf diffusion as local incidence-wise transport and aggregation, eliminating the need to construct the global Laplacian. Sheaf-MPNN implements fifteen families of SNNs under a unified message-passing framework, each supporting both homogeneous and heterogeneous graphs, and directed and undirected settings, with diagonal, general, orthogonal, and low-rank restriction maps and attention-based predictors. We further provide a unified benchmarking suite covering node- and graph-level tasks, heterogeneous graph learning, and computational efficiency, enabling systematic and reproducible comparisons across architectures. We establish theoretical equivalence between these message-passing formulations and their original counterparts and identify the architectural mechanisms needed to preserve their propagation dynamics. This unified perspective provides a principled foundation for implementing, comparing, and extending sheaf-based architectures within standard graph learning frameworks. Source code is available at https://github.com/alessioborgi/sheaf-mpnn.
Create a lesson
Related papers
Message-passing graph persistence
Shared title terminologycs.LGJorge Luiz Franco, Arthur Queiroz Moura, Moacir Ponti et al.
SOC-Net: Second-Order-Cone-Constrained Neural Networks
Shared title terminologycs.LGSeungseok Oh, Youngjae Min, Navid Azizan et al.
Fast and Scalable Abstract Interpretation for Deep Neural Networks
Shared title terminologycs.LGAvaljot Singh, Dushyant Bharadwaj, Yasmin Chandini Sarita et al.
ST-GNN-AAAS: Spatio-Temporal Graph Neural Networks for Anytime Automatic Algorithm Selection in the Traveling Salesman Problem
Shared title terminologycs.LGZeyu Zhang, Mustafa Misir
Graph Neural Networks for Resource Allocation in Integrated Sensing and Communication
Shared title terminologycs.LGJunyu Liao, Lili Chen, Tian Han et al.
Using Transformers for Teaching and Learning via Symbolic Distillation of Neural A-life Agents
Shared title terminologycs.LGShuwei Wang, Vadim Bulitko, Matthew R. G. Brown et al.