Augmentations in Hypergraph Contrastive Learning: Fabricated and Generative

Tianxin Wei, Yuning You, Tianlong Chen, Yang Shen, Jingrui He, Zhangyang Wang

TL;DR

Hypergraph Neural Networks (HyperGNNs) are highly expressive but often struggle to generalize when labeled data is scarce. To address this, researchers introduce HyperGCL, a novel contrastive learning framework that boosts performance by creating "augmented views" of hypergraphs. By combining domain-driven "fabricated" augmentations with a "generative" model that learns optimal data perturbations, HyperGCL achieves state-of-the-art results while simultaneously improving model robustness and fairness.

The Challenge of Hypergraph Representation

While standard graphs model pairwise relationships (e.g., a friendship between two people), hypergraphs model higher-order interactions (e.g., a research paper co-authored by five people). This makes them incredibly powerful for representing complex data like social networks, biological pathways, or recommendation systems. However, training HyperGNNs typically requires massive amounts of labeled data, which is often expensive or impossible to obtain.

Contrastive learning—a technique where a model learns by comparing different augmented versions (views) of the same data point—has revolutionized image and graph processing in low-label regimes.

HyperGCL Framework

Applying this to hypergraphs, however, presents a unique challenge: their topology is highly intricate. For a set of $N$ vertices, there are $2^N$ possible hyperedges, compared to just $N^2$ possible edges in a standard graph. Simply "dropping edges" randomly often destroys the crucial higher-order information the model needs to learn. The core question this paper addresses is: How can we construct the most effective contrastive views specifically for hypergraphs?

Two Paths to Augmentation: Fabricated and Generative

The authors propose two distinct strategies for hypergraph augmentation to create these contrastive views:

1. Fabricated Augmentations

These are "hand-crafted" strategies based on domain knowledge and structural properties.

  • Hyperedge Perturbation: Instead of naively deleting hyperedges, the authors convert the hypergraph into a bipartite graph (where nodes represent both the original vertices and the hyperedges). By removing connections in this bipartite space, they can "kick out" specific vertices from hyperedges in a fine-grained, controlled manner.
  • Vertex Strategies: They also adapt standard graph techniques, such as vertex dropping and attribute masking, to the hypergraph domain.

2. Generative Augmentations

Manual rules can be sub-optimal because they don't adapt to the specific dataset. To solve this, the authors built the first Variational Hypergraph Auto-Encoder (VHGAE).

Generative Augmentation Pipeline

This generative model learns the underlying distribution of the hypergraph and generates new, augmented versions of it. To make this work end-to-end during training, they utilize the Gumbel-Softmax trick, which allows the model to "sample" a new hypergraph structure in a mathematically differentiable way. Consequently, the system jointly learns the best way to augment the data while simultaneously learning the optimal representations for the downstream task.

Key Insights and Results

The study is exceptionally thorough, evaluating the framework across 13 diverse datasets (including citation networks, visual/3D data, real-world user data, and fairness benchmarks).

  • Structure is King: In standard graphs, augmenting vertices (like dropping nodes) is often highly effective. In hypergraphs, the authors found the opposite: augmenting hyperedges provides the most significant performance gains. This suggests that higher-order structural information is much more relevant for downstream tasks than individual vertex features.
  • Generative > Random: While randomly dropping edges (fabricated augmentation) is helpful, generative models perform better. The generative approach learns to preserve the essential "skeleton" of the hypergraph while perturbing the noise. Across all 13 datasets, the Generative Augmentation strategy achieved the #1 rank in accuracy most consistently, leading to up to a 20% performance boost over baseline models.
  • Low-Label Superiority: In scenarios where only 1% or 10% of labels were available, HyperGCL consistently outperformed state-of-the-art HyperGNNs (like SetGNN).
  • Robustness and Fairness: The contrastive approach doesn't just make the model smarter; it makes it tougher. HyperGCL showed increased resistance to adversarial attacks (e.g., "Minmax" and "Nettack") where an attacker tries to fool the model by adding fake edges. Furthermore, it improved fairness by reducing bias related to sensitive attributes on curated hypergraph fairness datasets.

Limitations and Future Work

While HyperGCL pushes the boundaries of hypergraph learning, the authors acknowledge a few hurdles:

  • Computational Cost: Training a generative model (VHGAE) alongside the main classifier is more computationally expensive than simple random dropping. To mitigate this, the current implementation uses one generative view and one fabricated view.
  • Scope of Generation: The current generative model focuses primarily on structural (edge) perturbations. Incorporating node-level generative perturbations (like feature synthesis) remains a promising next step.
  • Scalability: While tested on large datasets like Walmart, the combinatorial complexity of hypergraphs remains a persistent challenge for scaling to massive "web-scale" data with millions of hyperedges.

Summary updated

BibTeX
@inproceedings{wei2022augmentations,
  author = {Tianxin Wei and Yuning You and Tianlong Chen and Yang Shen and Jingrui He and Zhangyang Wang},
  title = {{Augmentations in Hypergraph Contrastive Learning: Fabricated and Generative}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Y25Xw1l9lr},
}
Figure