NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Link Prediction with Relational Hypergraphs

Xingyue Huang, Miguel Romero Orth, Pablo Barcelo, Michael M. Bronstein, Ismail Ilkan Ceylan · Submission to ICLR 2025 · Rejected

Predicting missing connections in complex data structures is a cornerstone of graph machine learning. While traditional Knowledge Graph (KG) completion has seen massive success, it predominantly focuses on binary relations—simple "subject-predicate-object" triples like (Einstein, BornIn, Ulm). However, real-world data is often far more complex.

For instance, a fact like "Hawking studied Physics at Oxford and received a BA" involves four distinct entities interacting within a single relationship. This multi-node structure is known as a relational hypergraph.

Example of a relational hypergraph involving multiple entities in a single fact.

Predicting missing links in these hypergraphs is significantly harder than in standard KGs. This is especially true in the inductive setting, where the model must make predictions about nodes it never saw during training. Existing Graph Neural Networks (GNNs) for hypergraphs typically act as "unary encoders," meaning they compute a fixed representation for each node. A fundamental flaw with unary encoders is that they cannot distinguish between two potential facts if the nodes involved are structurally symmetric in the graph, even if their roles in a specific query differ.

The Solution: Conditional Message Passing

To overcome these limitations, researchers have introduced Hypergraph Conditional Message Passing Neural Networks (HC-MPNNs) and a specific implementation called HCNet. The core innovation is Conditional Message Passing, which breaks structural symmetries by making the neural network's initialization dependent on the specific query being asked.

The HC-MPNN pipeline showing query-dependent initialization and message passing.

The framework operates on three key principles:

  1. Query-Dependent Initialization: Instead of starting with generic node features, HCNet initializes nodes based on the specific link it is trying to predict. The "source" nodes in a query are tagged with their positions, while all other nodes start at zero. This allows the model to "measure" the graph relative to the query.
  2. Positional Encodings: Since the order of entities in a $k$-ary relation matters (e.g., distinguishing the student from the university), the model uses sinusoidal positional encodings to maintain this structural information during message passing.
  3. Theoretical Grounding: The authors develop a new version of the Weisfeiler-Leman test specifically for relational hypergraphs (hrwl1). They prove that HC-MPNNs are strictly more expressive than standard hypergraph GNNs and can capture any property expressible in a specific fragment of first-order logic called Hypergraph Graded Modal Logic (HGML).

Key Results and Insights

The model was evaluated on several rigorous benchmarks, including inductive datasets (WP-IND, JF-IND, MFB-IND), transductive datasets, and standard KGs treated as arity-2 hypergraphs.

  • Inductive Dominance: HCNet significantly outperformed all baselines on inductive tasks. On the WP-IND dataset, it achieved a Mean Reciprocal Rank (MRR) of 0.414, compared to the previous best of 0.304—a massive jump in performance.
  • Breaking Symmetry (Synthetic Validation): On a custom synthetic dataset called HyperCycle, designed to showcase structural symmetries, standard hypergraph GNNs were no better than random guessing (50% accuracy). In contrast, HCNet achieved 100% accuracy, validating the theoretical claims about its expressivity.
  • Efficiency via Triton: To handle the high computational cost of hypergraph message passing, the authors implemented a custom Triton kernel. This reduced memory usage by 5x and halved training times compared to standard implementations.

Limitations and Future Work

While highly effective, the approach has limitations. Hypergraph operations are inherently more expensive than binary graph operations, making scaling to massive hypergraphs with very high arity a challenge. Furthermore, the current positional encoding scheme might require refinement if a single relation involves hundreds of entities.

The authors suggest that extending this framework to "Complex Query Answering"—where the model must satisfy logical formulas involving multiple missing links—is a highly promising direction for future research.

Summary updated

BibTeX
@misc{huang2024link,
  author = {Xingyue Huang and Miguel Romero Orth and Pablo Barcelo and Michael M. Bronstein and Ismail Ilkan Ceylan},
  title = {{Link Prediction with Relational Hypergraphs}},
  year = {2024},
  eprint = {2402.04062},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.04062},
}
Figure