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

DevFeed: [Sheaf-MPNN: A Library for Sheaf Neural Networks as Message Passing](<https://devfeed.tech/articles/sheaf-mpnn-a-library-for-sheaf-neural-networks-as-message-passing-116971.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04670>)

Author: Alessio Borgi, Mario Severino, Luke Braithwaite, Steve Azzolin, R\\'emi Bourgerie, Olga Zaghen, Emanuele Mule, Riccardo Ali, Leo Minh Kustermann, Edoardo Coppola, Antonio Purificato, Stefano Fiorini, C

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>)

Tags: [aggregation](<https://devfeed.tech/tags/aggregation.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [attention](<https://devfeed.tech/tags/attention.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [edge](<https://devfeed.tech/tags/edge.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graph-neural-networks](<https://devfeed.tech/tags/graph-neural-networks.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [learning](<https://devfeed.tech/tags/learning.md>), [library](<https://devfeed.tech/tags/library.md>), [local](<https://devfeed.tech/tags/local.md>), [maps](<https://devfeed.tech/tags/maps.md>), [memory](<https://devfeed.tech/tags/memory.md>), [message](<https://devfeed.tech/tags/message.md>), [neural](<https://devfeed.tech/tags/neural.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [scalability](<https://devfeed.tech/tags/scalability.md>)

## AI overview

Sheaf-MPNN reformulates sheaf diffusion as local incidence-wise transport and aggregation, avoiding construction of a global sparse sheaf Laplacian and its stated memory and computational overhead. The PyTorch Geometric library implements fifteen SNN families in a unified message-passing framework, supporting homogeneous and heterogeneous graphs, directed and undirected settings, several restriction-map types, and attention-based predictors. Its benchmarking suite covers node- and graph-level tasks, heterogeneous learning, and computational efficiency. The authors report theoretical equivalence to the corresponding original formulations and identify mechanisms needed to preserve their propagation dynamics.

## Source excerpt

arXiv:2611.04670v1 Announce Type: new 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.