Abstract
Real-world interactions often involve complex, higher-order relationships between diverse entities, which are best modeled as heterogeneous hypergraphs. However, pretraining Graph Neural Networks (GNNs) for such structures remains challenging. This paper introduces SPHH (Self-supervised Pretraining for Heterogeneous Hypergraphs), a framework that combines local node attribute reconstruction with global hyperedge prediction. By utilizing a dummy node strategy and clique expansion, SPHH enables GNNs to capture intricate structural dependencies without labeled data. Experimental results on large-scale benchmarks demonstrate that SPHH significantly improves performance on downstream tasks, particularly when labeled data is scarce.
Introduction: Beyond Pairwise Relationships
Traditional Graph Neural Networks (GNNs) typically excel at modeling pairwise relationships, such as a user following another user. Yet, many real-world scenarios involve groups of entities interacting simultaneously—for instance, multiple authors collaborating on a research paper or a group of friends attending a movie. These "higher-order" interactions are naturally represented by hypergraphs, where a single "hyperedge" can connect any number of nodes.
Furthermore, these systems are often heterogeneous, containing various types of entities (e.g., authors, papers, and institutions). While self-supervised pretraining has revolutionized NLP and standard graphs, a robust method for heterogeneous hypergraphs has been missing. SPHH addresses this gap by providing a training strategy that captures both local context and global topology.
The SPHH Framework
The SPHH framework employs a multi-stage approach to learn robust node representations by bridging the gap between hypergraph structure and standard GNN architectures.
Clique Expansion
To leverage existing GNN backbones, SPHH first performs clique expansion. This process converts the hypergraph into a standard graph where every node within a hyperedge is connected to every other node. This transformation allows the model to process higher-order data while maintaining the distinct identities of different node types, effectively mapping the complex hyperedge into a set of pairwise edges.
Self-Supervised Learning Tasks
SPHH optimizes a joint objective consisting of two primary tasks that force the model to learn different aspects of the data:
- Local Task: Node Attribute Reconstruction ($T_c$): The model is tasked with predicting a node's features based solely on its neighborhood. To prevent the model from "cheating" by simply looking at the node's own features (information leakage), SPHH uses a dummy node strategy. The target node is replaced by a dummy node with generic attributes, forcing the GNN to rely entirely on the surrounding context for reconstruction.
- Global Task: Hyperedge Prediction ($T_p$): To capture global structure, the model learns to distinguish between genuine hyperedges (positive samples) and "fake" ones generated through negative sampling (randomly swapping nodes). This ensures the model understands the semantic coherence of entity groups.
Experimental Evaluation
The researchers evaluated SPHH on two major benchmarks: OGB-MAG(H) (Microsoft Academic Graph) and AF-Reviews(H) (Amazon Fashion reviews). These datasets provide diverse node types and complex hyperedge structures for testing.
Key Results and Insights
SPHH proved to be a powerful "force multiplier," especially in low-label regimes. When only 5% of the labels were available, pretraining led to substantial gains:
- Node Classification: On OGB-MAG(H), the GraphConv architecture improved from 20.90% to 23.23% accuracy.
- Link Prediction: The GIN model saw its AUC jump from 0.7300 to 0.9001, highlighting the effectiveness of pretraining for structural tasks.
The framework is architecture-agnostic, showing consistent improvements across various GNN backbones, including GraphSAGE, GIN, and GraphConv. This versatility makes it a practical tool for a wide range of applications.
Conclusion and Future Work
SPHH establishes a new baseline for self-supervised learning on heterogeneous hypergraphs. While highly effective, the current implementation faces memory constraints when using attention mechanisms (like GAT) on very large hyperedges due to the density of clique expansion. Future research will focus on more efficient attention mechanisms and extending the framework to handle multiple types of hyperedges simultaneously.
Summary updated