Hypergraph Contrastive Learning for both Homophilic and Heterophilic Hypergraphs

Renchu Guan, Xuyang Li, Yachao Zhang, Wei Pang, Fausto Giunchiglia, Ximing Li, Yonghao Liu, Xiaoyue FengarXiv 2025 · OpenReview

Abstract

Hypergraphs, as a generalization of traditional graphs, naturally capture high-order relationships. In recent years, hypergraph neural networks (HNNs) have been widely used to capture complex high-order relationships. However, most existing hypergraph neural network methods inherently rely on the homophily assumption, which often does not hold in real-world scenarios that exhibit significant heterophilic structures. To address this limitation, we propose HONOR, a novel unsupervised Hypergraph cONtrastive learning framework suitable for both homOphilic and heteRophilic hypergraphs. Specifically, HONOR explicitly models the heterophilic relationships between hyperedges and nodes through two complementary mechanisms: a prompt-based hyperedge feature construction strategy that maintains global semantic consistency while suppressing local noise, and an adaptive attention aggregation module that dynamically captures the diverse local contributions of nodes to hyperedges. Combined with high-pass filtering, these designs enable HONOR to fully exploit heterophilic connection patterns, yielding more discriminative and robust node and hyperedge representations. Theoretically, we demonstrate the superior generalization ability and robustness of HONOR. Empirically, extensive experiments further validate that HONOR consistently outperforms state-of-the-art baselines under both homophilic and heterophilic datasets.

Introduction

Most Hypergraph Neural Networks (HNNs) operate on the homophily assumption: the idea that nodes connected by the same hyperedge likely share the same labels or features. In the real world, this often isn't true. For instance, a social media "topic" (hyperedge) might link users with diametrically opposed viewpoints (heterophily).

Existing unsupervised methods typically use "low-pass filters," which smooth out differences between neighbors. While effective for homophilic data, this "oversmoothing" destroys the very signals needed to distinguish nodes in heterophilic structures. The challenge lies in capturing these complex, high-order relationships without labels and without losing the "discriminative noise" that defines heterophilic connections.

Methodology: The HONOR Framework

The authors introduce HONOR (Hypergraph cONtrastive learning for both homOphilic and heteRophilic hypergraphs), which utilizes several novel components to bridge the gap between homophily and heterophily.

The HONOR framework architecture, featuring dual-view generation and high-pass encoding.

Dual-View Generation

Instead of simple data augmentation, HONOR creates two complementary "views" of the hypergraph:

  • Prompt-based View: This view calculates a "central pattern" for each hyperedge and uses cosine similarity to reweight node features. This acts as a local consistency filter, suppressing noise while maintaining global semantics.
  • Adaptive Attention View: This view uses a learnable scoring function to dynamically assign weights to nodes, capturing diverse local contributions that a simple similarity measure might miss.

High-Pass Encoding and Loss Functions

Unlike standard HNNs that smooth features, HONOR uses a high-pass filter in its encoder. This preserves local differences and "high-frequency" signals, which are essential for distinguishing nodes in heterophilic environments. To train the model, a multi-objective loss is employed, including a contrastive loss to align views and a structural decoupling loss to focus on true relationships by minimizing unnecessary similarity between nodes and hyperedges.

Experimental Evaluation

The study evaluates HONOR on eight real-world datasets, categorized by their level of heterophily using a new metric, Label Entropy ($H_H$):

  • Homophilic: Cora-C, Citeseer, PubMed, and Zoo.
  • Heterophilic: House, IMDB, Twitch, and Amazon.

Key Results

HONOR consistently outperformed both supervised and unsupervised baselines across all metrics.

Node classification performance (Accuracy ± Std) across homophilic and heterophilic datasets.

As shown in the results, HONOR achieved the top rank (Average Rating of 1.0) across all eight datasets in node classification. It significantly outperformed specialized heterophilic models like H2GCN and FAGCN. In node clustering tasks, HONOR also showed superior performance in NMI (Normalized Mutual Information) and ARI (Adjusted Rand Index), particularly on highly heterophilic datasets like House.

Discussion and Conclusion

The most striking insight from this work is that while low-pass filters are the industry standard for graphs, they are actively detrimental to heterophilic hypergraphs. High-pass filters allow the model to "see" the boundaries between dissimilar nodes. Furthermore, the combination of a heuristic-driven prompt-based view and a data-driven attention-based view provides more task-relevant information than either alone.

While HONOR sets a new state-of-the-art, future work could address the computational overhead of dual-view generation and automate the tuning of high-pass filtering coefficients, which currently vary depending on the dataset's homophily level.

Summary updated

BibTeX
@misc{guan2025hypergraph,
  author = {Renchu Guan and Xuyang Li and Yachao Zhang and Wei Pang and Fausto Giunchiglia and Ximing Li and Yonghao Liu and Xiaoyue Feng},
  title = {{Hypergraph Contrastive Learning for both Homophilic and Heterophilic Hypergraphs}},
  year = {2025},
  eprint = {2511.18783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.18783},
}
Figure