Hypergraph Representation Learning with Hyperlink Random Effects

Zimeng Li, Shihao Wu, Gongjun Xu, Ji Zhu

TL;DR

This paper introduces a novel framework for hypergraph representation learning that explicitly models latent heterogeneity in multi-way interactions using hyperlink random effects. By combining a low-rank structure for interpretability with flexible random-effect distributions—including a robust score-based approach—the method excels at capturing complex interaction patterns in non-uniform hypergraphs, significantly outperforming existing baselines in tasks like cold-start prediction and node clustering.

What Problem Does This Paper Address?

Hypergraphs are powerful tools for representing multi-way relationships, such as a set of symptoms appearing in a patient or a group of ingredients forming a recipe. However, learning useful low-dimensional representations (embeddings) for these structures is challenging.

The authors identify three major gaps in current research:

  1. Lack of Parsimony: Many deep learning models for hypergraphs ignore the underlying low-rank structure, leading to complex, "black-box" models that are hard to interpret.
  2. Uniformity Constraints: Traditional low-rank methods often rely on tensors, which typically require all interactions to involve the same number of entities (uniform hypergraphs)—a requirement rarely met in real-world data.
  3. Ignored Heterogeneity: Most methods assume that all hyperlinks are formed through a single, homogeneous mechanism. In reality, the same set of symptoms might arise from very different underlying medical conditions. Failing to account for this "latent heterogeneity" limits a model's predictive power and its ability to discover meaningful clusters.

Methods

The authors propose a general framework that assigns each node a latent embedding ($z_i$) and a degree parameter ($\alpha_i$). Crucially, they introduce a hyperlink random effect ($f_j$) for each interaction, drawn from a distribution $P_F$. The probability of a node participating in an interaction is determined by the compatibility between the node's embedding and the hyperlink's random effect, typically via an inner product: $f_j^\top z_i + \alpha_i$.

Figure 1: Illustration of hypergraph representation learning with hyperlink random effects using a patient-profile toy example. The data are represented as a symptom co-occurrence hypergraph with five nodes, corresponding to symptoms, and six observed hyperlinks, corresponding to symptom sets observed in individual patient profiles. Each symptom is assigned a latent embedding and degree parameter. To capture patient-level heterogeneity, each profile is assigned a hyperlink random-effect embedding representing latent patient characteristics that drive profile formation.

The paper explores three flavors of these random effects:

  • Categorical: Best for hypergraphs with a few distinct, discrete interaction types.
  • Gaussian Mixture (GM): Allows for continuous variation within a set number of latent groups.
  • Score-based: The most flexible option, using score-based generative models (SDEs) to learn complex, non-Gaussian distributions without assuming a specific functional form.

To train these models, the authors developed specialized Expectation-Maximization (EM) and Variational EM algorithms, providing theoretical guarantees for parameter identifiability and representation recovery.

Datasets

The framework was evaluated on both synthetic and real-world datasets:

  • Synthetic Benchmarks: Designed with Gaussian-mixture and heavy-tailed $t$-mixture distributions to test the models' ability to recover latent structures under varying noise conditions.
  • MIMIC-III: A medical record dataset where nodes are clinical codes (ICD-9) and hyperlinks are individual patient profiles.
  • Food Recipe: A dataset where nodes are ingredients and hyperlinks are recipes.
  • MovieLens: A movie preference dataset where nodes are movies and hyperlinks represent sets of movies liked by individual users.

Key Insights and Ideas

  • Separating Entities from Mechanisms: By decoupling node embeddings (the "what") from hyperlink random effects (the "why"), the model can learn shared interaction patterns while still respecting the unique context of each interaction.
  • The Power of Score-Based Modeling: One of the "aha" moments is the robustness of the score-based approach. While categorical and Gaussian models struggle when the true latent distribution is heavy-tailed (like a $t$-distribution), the score-based model adapts seamlessly.
  • Identifiability is Key: The authors establish rigorous normalization conditions. This ensures that the learned embeddings aren't just arbitrary numbers but represent a stable, identifiable latent space, which is critical for downstream scientific interpretation.

Key Results

The quantitative results highlight the superiority of the random-effects approach, particularly the score-based variant:

  • Robust Recovery: In simulations with heavy-tailed noise ($t$-mixture), the score-based method (HRL-Score) achieved near-perfect group recovery (ARI ~0.95), while all other methods, including standard Gaussian mixtures, failed significantly (ARI ~0.34).
Figure 2: Recovery of node embeddings under Gaussian-mixture (left) and t-mixture (right), with n = 180.
  • Superior Prediction: On real-world datasets, HRL-GM and HRL-Score consistently outperformed baselines in "cold-start" tasks—predicting missing nodes in new, partially observed hyperlinks. For example, on the MIMIC-III dataset, they raised the AUPRC from 0.337 (baseline) to ~0.437.
  • Interpretable Clustering: In clinical code clustering, HRL-Score produced highly coherent phenotypes, successfully separating acute cardiac conditions from chronic cardiometabolic comorbidities, a feat that baseline methods like LightGCN struggled to replicate clearly.
Table 1: Clustering performance for Gaussian-mixture and heavy-tailed t-mixture designs. Detailed tables with standard errors are in Appendix C.1.

Limitations and Future Work

While powerful, the framework has some trade-offs:

  • Computational Cost: The score-based model is more resource-intensive than simpler variants due to its reliance on Monte Carlo approximations during training.
  • Initialization Sensitivity: Like many EM-based approaches, the algorithms can be sensitive to their starting parameters, though the authors propose a robust initialization scheme based on Universal Singular Value Thresholding (USVT).
  • Static Nature: The current work focuses on a single, static hypergraph. The authors suggest that extending this to dynamic hypergraphs (changing over time) or multilayer hypergraphs is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{li2026hypergraph,
  author = {Zimeng Li and Shihao Wu and Gongjun Xu and Ji Zhu},
  title = {{Hypergraph Representation Learning with Hyperlink Random Effects}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ylbgDqHzRL},
}
Figure