Abstract
Hypergraph Neural Networks (HGNNs) extend standard graph models to represent higher-order interactions where edges connect multiple nodes. However, traditional aggregation methods like sum or mean often fail to capture the complex geometric distribution of features within these neighborhoods. This paper introduces the Wasserstein Hypergraph Neural Network (WHNN), which utilizes Sliced Wasserstein Pooling (SWP) to treat node neighborhoods as probability distributions. By leveraging Optimal Transport principles, WHNN captures rich geometric information such as shape and spread, achieving state-of-the-art performance across multiple node classification benchmarks.
Introduction
In many real-world scenarios, relationships are not merely pairwise but involve groups of entities. Hypergraphs provide a natural framework for these higher-order interactions, where a "hyperedge" can link any number of nodes. Current HGNN architectures typically employ a two-stage message-passing mechanism: nodes aggregate information into hyperedge representations, which are then redistributed back to nodes.
The critical bottleneck in this process is the aggregation step. Conventional models rely on simple operations like "sum," "mean," or "max." While efficient, these first-order statistics are "geometry-blind"—they cannot distinguish between a tight cluster of nodes and a widely dispersed set if their centroids are identical. The Wasserstein Hypergraph Neural Network (WHNN) addresses this by incorporating principles from Optimal Transport to preserve the underlying feature distribution's geometry.
Methodology: Sliced Wasserstein Pooling
WHNN replaces standard aggregators with Sliced Wasserstein Pooling (SWP). This approach treats a hyperedge's neighborhood not as a discrete list of features, but as samples from a continuous probability distribution.
The core components of the WHNN pipeline include:
- Neighborhoods as Distributions: Nodes within a hyperedge are viewed as empirical samples of a latent distribution.
- Sliced Wasserstein Distance: Standard Wasserstein distance is computationally intensive in high dimensions. WHNN utilizes the "sliced" variant, projecting high-dimensional features onto multiple 1D lines. In 1D, the Wasserstein distance has a simple closed-form solution based on sorted values, ensuring computational feasibility.
- Wasserstein Embedding: Each neighborhood is mapped to a vector embedding based on its distance to a reference distribution. This embedding captures the "transportation cost" required to reshape one distribution into another, effectively encoding geometric properties.
- Encoder Flexibility: The model supports both edge-independent encoders (MLPs) and edge-dependent encoders (Set Attention Blocks), allowing for varying levels of intra-hyperedge node interaction.
Beyond First-Order Statistics
The primary innovation of WHNN is its ability to look beyond simple averages. The shape of a neighborhood in feature space—its variance, skewness, and overall spread—carries vital information about the nature of the interaction. For instance, a hyperedge where all nodes are highly similar represents a different semantic relationship than one containing diverse nodes, even if their mean features are the same.
By using sorting-based 1D Wasserstein distances, the model implicitly learns a canonical ordering for set elements. This makes the representation permutation-invariant while remaining sensitive to the distribution's shape. Furthermore, the resulting embeddings are geometrically interpretable: the distance between learned representations corresponds to the physical effort needed to transform one group of entities into another.
Key Results and Performance
WHNN was evaluated on seven diverse datasets, including citation networks (Cora, Citeseer, Cora-CA, DBLP-CA), 3D object models (ModelNet40, NTU2012), and text classification (20News). The model consistently achieved top-tier results, often ranking 1st or 2nd across all benchmarks. Notably, the authors omitted the common Pubmed dataset due to its high percentage of isolated nodes (80.5%), which limits the utility of relational processing evaluation.
Ablation studies on the Citeseer and NTU2012 datasets confirmed that Wasserstein aggregators significantly outperform traditional pooling methods like Deep Sets (sum-based) or PMA (attention-based). WHNN demonstrated robustness to encoder choice; even with a simple MLP encoder, it frequently outperformed more complex models using standard sum-pooling. While edge-dependent encoders (SAB) provided a performance boost, they came with increased memory requirements.
Limitations and Future Directions
Despite its success, WHNN has certain limitations. It assumes that nodes in a neighborhood are samples from a continuous distribution, which may not hold in "heterophilic" graphs where nodes in a hyperedge are intentionally dissimilar. Additionally, the interpolation used to match reference distribution sizes can lead to a loss of cardinality information (the exact number of nodes), though this can be mitigated by adding size as an explicit feature.
Computationally, the $O(M \cdot R \log R)$ complexity of sorting and projecting is higher than simple summation. Future work will focus on optimizing these operations for massive hypergraphs and exploring the application of Wasserstein aggregators to standard pairwise Graph Neural Networks (GNNs).
Summary updated