Sheaf Hypergraph Networks

Iulia Duta, Giulia Cassarà, Fabrizio Silvestri, Pietro Lio

Abstract

Traditional hypergraph neural networks (HNNs) often struggle with the "over-smoothing" problem, where node representations become uniform across neighborhoods as model depth increases. This limitation is particularly acute in heterophilic settings where connected nodes possess divergent properties. This paper introduces Sheaf Hypergraph Networks, a novel framework that integrates cellular sheaves into hypergraph structures. By assigning unique vector spaces (stalks) and learnable transformation maps (restriction maps) to node-hyperedge pairs, the model enables nuanced information flow. Our results demonstrate that Sheaf Hypergraph Networks achieve state-of-the-art performance on complex relational datasets and maintain stability in deep architectures where traditional models fail.

Introduction

While standard graphs are limited to pairwise relationships, hypergraphs provide a more expressive framework for capturing higher-order interactions, such as group memberships or multi-author collaborations. However, existing Hypergraph Neural Networks (HNNs) typically treat all members of a hyperedge identically during the message-passing process. This uniform treatment leads to a rapid loss of local detail, a phenomenon known as over-smoothing. In datasets characterized by heterophily—where nodes within the same group may have different labels—this lack of flexibility prevents the model from learning effective representations.

To address this, we propose "sheafifying" hypergraphs. By utilizing cellular sheaves, we can model complex, asymmetric relationships within groups, allowing nodes to share information selectively rather than globally.

Methodology

The Sheaf Structure

The core innovation involves assigning a stalk (a local vector space) to every node and hyperedge. To facilitate communication between a node and its containing hyperedge, we define a restriction map—a linear projection that transforms the node's local feature into the hyperedge's space.

Unlike previous methods where these maps might be fixed, our framework utilizes learnable maps. These are dynamically predicted by a small multi-layer perceptron (MLP) based on the specific features of the node and the hyperedge. This allows the network to learn the optimal "weight" or "relevance" of a node's contribution to a specific group context.

Sheaf Hypergraph Laplacians

We derive two distinct mathematical operators to govern the diffusion of information across the sheaf:

  1. Linear Sheaf Hypergraph Laplacian: This operator aggregates contributions from all nodes within a hyperedge, providing a global view of group dynamics.
  2. Non-Linear Sheaf Hypergraph Laplacian: This operator focuses on the most "discrepant" nodes within a group, creating a sparser signal that can be more expressive in identifying outliers or specific sub-patterns.

These operators form the basis for two new architectures: SheafHyperGNN (linear) and SheafHyperGCN (non-linear), both of which generalize existing hypergraph models.

Experimental Setup

We evaluated the proposed models across a diverse range of benchmarks to test their versatility:

  • Citation and Co-authorship: Standard benchmarks including Cora, Citeseer, Pubmed, and DBLP-CA.
  • Political Dynamics: Datasets representing the US Senate, House, and Congress, where hyperedges represent committee memberships and bill sponsorships.
  • Synthetic Heterophily: A suite of seven synthetic datasets designed to systematically vary the level of heterophily, testing the models' ability to distinguish between nodes in increasingly "noisy" group environments.

Key Insights

Apparent vs. Private Consensus

A central conceptual contribution of this work is the distinction between "apparent" and "private" consensus. In traditional HNNs, nodes are forced to reach a single private opinion to achieve group consensus. In a Sheaf HNN, nodes can maintain distinct private features (opinions) while their projections into the hyperedge space reach an "apparent" consensus. This allows the model to coordinate group-level information without sacrificing the unique identity of individual nodes.

Resistance to Depth

One of the most significant findings is the model's resistance to over-smoothing. While traditional HNN performance typically degrades after two or three layers, SheafHyperGNN maintains stable accuracy even as the network depth increases. This is theoretically supported by the minimization of the Sheaf Dirichlet Energy, which provides a formal guarantee that the diffusion process encourages meaningful feature diversity.

Structural Efficiency

While the theory allows for general matrix restriction maps, our experiments indicate that diagonal matrices often provide the best balance between expressivity and optimization ease. Furthermore, the non-linear SheafHyperGCN remains computationally efficient by selectively connecting subsets of nodes within hyperedges, making it scalable to larger datasets.

Results and Discussion

Sheaf Hypergraph Networks achieved state-of-the-art results on five out of eight real-world datasets, significantly outperforming established baselines like HyperGCN and HNHN. The performance gap was most pronounced in high-heterophily settings; on synthetic datasets, sheaf-based models maintained near-perfect accuracy (e.g., 100%) in scenarios where traditional models dropped to approximately 83.9%.

Conclusion

Sheaf Hypergraph Networks represent a significant step forward in higher-order relational learning. By moving beyond simple consensus, these models provide the mathematical flexibility required to handle complex, real-world data distributions. Future work will explore the development of more sophisticated initial hyperedge feature extraction and the application of this framework to other hypergraph architectures.

Summary updated

BibTeX
@inproceedings{duta2023sheaf,
  author = {Iulia Duta and Giulia Cassarà and Fabrizio Silvestri and Pietro Lio},
  title = {{Sheaf Hypergraph Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=NvcVXzJvhX},
}
Figure