Abstract
Traditional Graph Convolutional Networks (GCNs) are primarily designed for dyadic relations, which limits their ability to capture the high-order interactions prevalent in real-world data. This paper introduces the Self-attention Hypergraph Pooling Network (SAHPN), a framework that leverages hypergraph structures to model complex multi-node relationships. By integrating a self-attention-based convolution with an intelligent node-selection pooling mechanism, SAHPN achieves superior performance in text, protein, and dish classification tasks. Notably, the model is inductive and highly memory-efficient, requiring significantly less GPU memory than transductive benchmarks.
Introduction: Beyond Pairwise Relationships
Most contemporary graph-based models operate on simple edges connecting exactly two nodes. However, many real-world scenarios involve collective interactions. For instance, a research paper co-authored by five individuals is better represented as a single hyperedge containing all five authors rather than ten separate pairwise edges. This high-order representation preserves the context of collaboration more effectively.
While hypergraph convolutions have been explored, effective pooling—the process of condensing a graph into a smaller, representative form—remains a challenge. Without robust pooling, models are prone to noise and overfitting. SAHPN addresses this by providing a dedicated pooling architecture for hypergraphs.
Methodology
The SAHPN architecture consists of three primary components:
- Self-attention Hypergraph Convolution: This layer employs a self-attention mechanism to calculate weights for hyperedges. It identifies the most relevant nodes within a hyperedge and updates node features using a Laplacian matrix.
- Hypergraph Pooling Layer: A Multi-Layer Perceptron (MLP) scores nodes based on their features and structural importance. The top k nodes are retained, and the hypergraph is "re-wired" by removing empty hyperedges and updating the incidence matrix.
- Readout Layer: The final representation is generated by aggregating the remaining nodes through maximum and mean operations, capturing both salient features and global context.
To ensure stable training and meaningful embeddings, the model utilizes a dual-loss function combining Cross-Entropy for classification and Cosine Similarity loss.
Experimental Evaluation
The model was rigorously tested across three domains:
- Text Classification: Datasets included R8, R52, MR, IMDB, and SST. Words served as nodes, while sentences formed hyperedges.
- Dish Classification: Using the "Cooking" dataset, ingredients were modeled as nodes and dishes as hyperedges.
- Protein Classification: In the D&D dataset, amino acids were nodes with hyperedges defined by spatial proximity.
Results and Discussion
SAHPN consistently outperformed benchmarks such as HyperGAT and SAGPool. On the R8 dataset, it achieved 97.12% accuracy. In protein classification, it reached 82.35%, surpassing standard graph pooling techniques.
A standout feature of SAHPN is its memory efficiency. Unlike transductive models like TextGCN, which require loading entire datasets into memory, SAHPN is inductive and processes data in batches. On the MR dataset, SAHPN reduced GPU memory usage from 3338 MB (TextGCN) to just 23.14 MB—a 99% reduction. Ablation studies confirmed that the hypergraph convolution is the most vital component for maintaining high accuracy.
Conclusion and Future Work
SAHPN demonstrates that high-order modeling is essential for capturing complex data interactions efficiently. Future research will focus on optimizing hypergraph construction methods, such as $k$-NN for spatial data, and extending the model to visual identification and social network analysis.
Summary updated