Sheaf-MPNN: A Library for Sheaf Neural Networks as Message Passing

Alessio Borgi, Mario Severino, Luke Braithwaite, Steve Azzolin, Rémi Bourgerie +12 more
11/3/2026
cs.LG
gnn

Official code: alessioborgi/sheaf-mpnn (25 stars, Jupyter Notebook, MIT, last commit 2026-11-04).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

A clean PyTorch / PyG implementation library of Sheaf Neural Networks as Message Passing comprising all variants and a benchmark suite with 14+ Datasets.

253Jupyter Notebook, PythonMay 16, 20263 weeks agoMIT
gnnsgraph-neuralmessage-passingneural-networksheaf+4 more

Similar Papers

Cite this paper

@article{borgi2026sheafmpnn,
  title  = {Sheaf-MPNN: A Library for Sheaf Neural Networks as Message Passing},
  author = {Alessio Borgi and Mario Severino and Luke Braithwaite and Steve Azzolin and Rémi Bourgerie and Olga Zaghen and Emanuele Mule and Riccardo Ali and Leo Minh Kustermann and Edoardo Coppola and Antonio Purificato and Stefano Fiorini and Christopher Irwin and Filippo Spiga and Fabrizio Silvestri and Michael Bronstein and Pietro Liò},
  year   = {2026},
  eprint = {2611.04670},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.04670v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.04670.svg)](https://codeofpaper.com/paper/2611.04670)

Discussion