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

A Markov Random Field model for Hypergraph-based Machine Learning

Bohan Tang, Siheng Chen, Xiaowen Dong, Chen, Siheng, Dong, Xiaowen · DOI

This paper, recently published by researchers from the University of Oxford, UCL, and Shanghai Jiao Tong University, shifts the focus of hypergraph machine learning from "how to predict" to "how the data was made." By introducing a formal probabilistic model for hypergraph data, the authors unlock faster, more robust algorithms for both finding hidden structures and classifying nodes.

TL;DR

The authors propose the Hypergraph Markov Random Field (HMRF), a generative model that treats hypergraph data as a multivariate Gaussian distribution tied to the graph's structure. Leveraging this, they develop HGSI for unsupervised structure discovery and Hypergraph-MLP, a classification model that matches state-of-the-art accuracy while being significantly faster and more robust to noise than traditional message-passing neural networks.

What Problem Does This Paper Address?

Hypergraphs are powerful tools for modeling "higher-order" relationships—think of a research paper (a hyperedge) connecting multiple authors (nodes), rather than just a simple link between two people.

While Hypergraph Neural Networks (HGNNs) have become popular, they suffer from three main issues:

  1. Black-box Inductive Bias: Most models focus on architecture (how to aggregate messages) without understanding the underlying data-generating process (DGP).
  2. Inference Latency: Message-passing is computationally expensive, especially as hypergraphs grow.
  3. Structural Sensitivity: If the hypergraph structure is noisy or "attacked" at test time, the model’s performance often collapses because it relies on that structure to make predictions.

Methods

The core innovation is the Hypergraph Markov Random Field (HMRF).

1. The Generative Model

The authors assume that node features within a hyperedge are highly correlated because they are "influenced" by a latent hyperedge feature. They represent this using an incidence graph (a bipartite graph connecting nodes to hyperedges) and define an energy function based on the Laplacian of this graph. This allows them to model the joint distribution of nodes and edges as a multivariate Gaussian.

2. The Energy Estimate

In the real world, we rarely have "hyperedge features." To solve this, the authors prove a mathematical lower bound: the energy of a hyperedge can be estimated using the maximum $\ell_2$ distance between any two nodes within that edge. This "Energy Estimate" becomes a proxy for how well a set of features fits a specific hypergraph structure.

3. Two New Frameworks

  • HGSI (Hypergraph Structure Inference): An unsupervised method that uses the HMRF to calculate the probability of potential hyperedges. It finds the structure that most likely "generated" the observed node features.
  • Hypergraph-MLP: Instead of using message-passing, this model uses a standard Multi-Layer Perceptron (MLP). During training, it uses the HMRF energy estimate as a regularization loss. This "bakes" the structural information into the MLP's weights.

Datasets

The authors evaluated their work on:

  • Synthetic Datasets: Generated specifically to test the HMRF's ability to recover ground-truth structures under varying noise and overlap conditions.
  • Real-world Structure Inference: Subsets of Cora (citations), DBLP (co-authorship), and Yelp (restaurant reviews).
  • Node Classification Benchmarks: Six standard datasets: Cora-CC, Citeseer, Pubmed, DBLP-CA, 20News, and NTU2012.

Key Insights and Ideas

  • Structure as a Prior, Not an Input: The most striking idea is that you don't actually need the hypergraph at inference time. By using the HMRF as a training regularizer, the MLP learns to produce embeddings that would have been produced by a graph-aware model, but it does so using only node features.
  • Robustness through Independence: Because Hypergraph-MLP doesn't "look" at the graph during testing, it is immune to structural perturbations (like adding fake hyperedges), a common vulnerability in GNNs.
  • The "Max-Distance" Proxy: Proving that the maximum distance between nodes in a hyperedge is a valid lower bound for the HMRF energy is a clever mathematical shortcut that makes the theory applicable to datasets where edge information is missing.

Key Results

  • Superior Structure Recovery: HGSI significantly outperformed existing unsupervised methods (like GroupNet and NEO) in recovering ground-truth hyperedges, achieving perfect F1-scores on several synthetic tasks.
  • Competitive Accuracy: Hypergraph-MLP outperformed or matched state-of-the-art message-passing models on three out of six real-world benchmarks.
  • Massive Speedups: On the Pubmed dataset, Hypergraph-MLP was 3x faster than the fastest GNN baseline and 50x faster than the most complex message-passing models.
  • Extreme Robustness: When the authors injected 90% "fake" hyperedges into the test data, traditional HGNNs saw their accuracy plummet. Hypergraph-MLP’s accuracy remained perfectly flat because it ignores the structure at test time.

Limitations and Future Work

  • Gaussian Assumption: The HMRF assumes features follow a multivariate Gaussian distribution. This might not hold for categorical or highly non-linear data.
  • Candidate Set Construction: For structure inference, the model currently relies on a $k$-nearest-neighbor approach to generate "candidate" hyperedges, which might miss complex, non-local relationships.
  • Future Directions: The authors suggest extending this to non-Gaussian distributions and exploring how HMRFs can be used for generative tasks, like synthesizing new hypergraph data.

Summary updated

BibTeX
@misc{tang2023markov,
  author = {Bohan Tang and Siheng Chen and Xiaowen Dong and Chen, Siheng and Dong, Xiaowen},
  title = {{A Markov Random Field model for Hypergraph-based Machine Learning}},
  year = {2023},
  eprint = {2308.14172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.14172},
}
Figure