Abstract
HyperBERT is a novel architecture that integrates hypergraph-aware layers directly into a BERT-based language model to classify nodes in text-rich networks. By employing a specialized self-supervised pre-training task that aligns semantic text features with high-order structural topology, the model achieves new state-of-the-art results across five major benchmarks, including co-citation and co-authorship networks.
Introduction
In many real-world systems—such as social networks, biological pathways, or academic citation webs—relationships are not merely binary. Instead, they involve "higher-order" interactions where a single connection, known as a hyperedge, can link multiple entities simultaneously (e.g., a group of co-authors on a single paper).
While Text-Attributed Hypergraphs (TAHGs) are prevalent, current machine learning models often struggle to process them effectively. Standard Graph Neural Networks (GNNs) are designed for simple pairs, and Large Language Models (LLMs) are typically "blind" to complex network topology. Existing "cascade" methods, which feed text embeddings into a separate GNN, often fail to capture the deep interplay between a node's textual content and its structural position.
The HyperBERT Architecture
The authors introduce HyperBERT, which moves away from the cascade approach in favor of a "mixed" architecture that fuses semantic and structural processing.
Key components of the architecture include:
- The HyperBERT Layer: Instead of a standard Transformer block, HyperBERT utilizes layers that explicitly mix semantic information (from BERT's self-attention) with structural information (from a Hypergraph Neural Network block).
- Joint Representation: At each layer, the model computes a mixed representation by adding hypergraph structural embeddings to text token embeddings, allowing structural inductive bias to flow through the language model's feature space.
- Hypergraph-Aware Pre-training: To facilitate learning without human-labeled data, the authors designed a three-pronged contrastive learning strategy involving Semantic Contrastive Loss, Structural Contrastive Loss, and a Knowledge Alignment Loss that pulls semantic and structural representations of the same node together.
Experimental Results
The model was evaluated on five diverse TAHG benchmarks: Co-citation (Cora, PubMed), Co-authorship (DBLP-A, Cora-CA), and Movie-Actor (IMDB). HyperBERT established a new State-of-the-Art (SOTA) on all five benchmarks.
Key Insights
- The Necessity of Alignment: Ablation studies revealed that the Alignment Loss is the most critical component. Without it, performance drops by nearly 16% on the PubMed dataset, as text and graph features remain disparate.
- Higher-Order Bias: Replacing the hypergraph encoder with a standard GNN (limited to binary pairs) led to a 7.7% performance decrease, proving that capturing the "group" nature of hyperedges is vital.
- Pre-training Efficacy: Self-supervised pre-training allows the model to understand the general relationship between text and structure before fine-tuning, which is significantly more effective than training from scratch.
Conclusion and Future Work
HyperBERT demonstrates the power of integrating structural awareness directly into language models for node classification. While highly effective, the authors acknowledge that future work should explore other tasks like hyperedge prediction and address the scalability challenges of mixing HGNNs with BERT layers on massive, billion-node industrial graphs. Additionally, investigating how this architecture handles non-textual attributes remains an open research question.
Summary updated