I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs

Dongjin Lee, Kijung Shin · DOI

Introduction

In many real-world scenarios, interactions occur within groups rather than just between pairs. Examples include co-authorship on research papers, group chats in social networks, or biological pathways involving multiple proteins. Hypergraphs are the natural mathematical tool for modeling these group interactions, where a single "hyperedge" can connect an arbitrary number of nodes.

Despite the expressive power of hypergraphs, training deep learning models on them often requires large amounts of labeled data. While contrastive learning has proven successful for standard graphs by comparing different "views" of the same data, its application to hypergraphs is non-trivial. Common approaches that simplify hypergraphs into standard graphs (e.g., via clique expansion) often destroy the higher-order structural information that makes hypergraphs valuable. This paper introduces TriCL (Tri-directional Contrastive Learning), a novel self-supervised framework that learns robust hypergraph representations by simultaneously contrasting information at three distinct levels.

The TriCL Framework

TriCL addresses the challenges of hypergraph representation learning by proposing a tri-directional contrastive learning objective. The core idea is to ensure consistency across different augmented views of the hypergraph at three hierarchical levels:

  1. Node-level Contrast ("I’m Me"): This standard approach ensures that a node’s representation remains stable across different views, capturing individual node characteristics.
  2. Group-level Contrast ("We’re Us"): This level treats each hyperedge as a single unit, ensuring that the collective identity of a group of nodes is preserved across views.
  3. Membership-level Contrast ("I’m Us"): This novel component maximizes the agreement between a node and the specific hyperedges it belongs to. It allows the model to learn the contextual role of a node within its various group memberships.
Overview of the TriCL framework architecture, illustrating the tri-directional contrastive learning approach across node, group, and membership levels.

To generate these views, TriCL employs two augmentation strategies: membership masking (randomly removing connections between nodes and hyperedges) and feature masking (randomly hiding node attributes). The model utilizes a shared hypergraph encoder and optimizes a combined loss function based on the InfoNCE objective and a bilinear discriminator.

Experimental Evaluation

The researchers evaluated TriCL on 10 benchmark datasets spanning co-citation, co-authorship, computer vision, and categorical data domains.

TriCL consistently achieved state-of-the-art results. In node classification, it outperformed 14 baselines, including 10 supervised models. For instance, on the Citeseer dataset, TriCL reached 72.02% accuracy, significantly higher than the best supervised competitor, AllSet (67.83%). In unsupervised clustering tasks, TriCL ranked first in average performance across all datasets, demonstrating its ability to learn highly discriminative features without label supervision.

t-SNE visualizations of learned representations on Cora-C and Citeseer datasets for different TriCL variants, showing improved cluster separation and higher silhouette scores as more contrastive levels are added.

Key Insights

  • The Power of Three: Ablation studies confirmed that while node-level contrast provides a strong baseline, the addition of group and membership-level contrast consistently improved performance. These levels are complementarily reinforcing, as shown in the visualization of cluster separation.
  • Higher-Order Information is Crucial: The success of TriCL underscores that treating hyperedges as atomic units, rather than sets of pairwise edges, is vital for preserving structural integrity.
  • Efficiency and Robustness: TriCL is remarkably robust to the number of negative samples; even with only two negative samples per gradient step, performance remained stable. Furthermore, simple uniform random negative sampling proved highly effective.
  • The Role of Self-Loops: Incorporating self-loops (hyperedges containing a single node) was found to be essential for preventing the dilution of initial node features during the message-passing process.

Conclusion

TriCL represents a significant step forward in self-supervised learning for hypergraphs. By integrating node, group, and membership-level information, it captures the multi-faceted nature of higher-order interactions. While membership-level contrast adds computational complexity and requires careful balancing to avoid model collapse, its contribution to representation quality is substantial. Future research directions include developing more sophisticated hypergraph-specific augmentations and exploring automated methods for weighting the different contrastive objectives.

Summary updated

BibTeX
@inproceedings{lee2023i,
  author = {Dongjin Lee and Kijung Shin},
  title = {{I'm Me, We're Us, and I'm Us: Tri-directional Contrastive Learning on Hypergraphs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26019},
}
Figure