Abstract
Hypergraphs are important for processing data with higher-order relationships involving more than two entities. In scenarios where explicit hypergraphs are not readily available, it is desirable to infer a meaningful hypergraph structure from the node features to capture the intrinsic relations within the data. However, existing methods either adopt simple pre-defined rules that fail to precisely capture the distribution of the potential hypergraph structure, or learn a mapping between hypergraph structures and node features but require a large amount of labelled data, i.e., pre-existing hypergraph structures, for training. Both restrict their applications in practical scenarios. To fill this gap, we propose a novel smoothness prior that enables us to design a method to infer the probability for each potential hyperedge without labelled data as supervision. The proposed prior indicates features of nodes in a hyperedge are highly correlated by the features of the hyperedge containing them. We use this prior to derive the relation between the hypergraph structure and the node features via probabilistic modelling. This allows us to develop an unsupervised inference method to estimate the probability for each potential hyperedge via solving an optimisation problem that has an analytical solution. Experiments on both synthetic and real-world data demonstrate that our method can learn meaningful hypergraph structures from data more efficiently than existing hypergraph structure inference methods.
Introduction
While Graph Neural Networks (GNNs) have become a cornerstone of modern machine learning, most research has focused on predictive architectures—optimizing how messages are passed between nodes. However, a critical gap remains in our understanding of the generative side: how does the underlying hypergraph structure actually influence the features we observe? Hypergraphs are essential for modeling higher-order relationships (e.g., a group of researchers collaborating on a single paper), yet explicit hypergraph structures are often missing in real-world datasets.
Current approaches to hypergraph modeling face three major hurdles:
- Structural Inference: Inferring a hypergraph from raw data typically requires supervised learning with labeled examples, which are rarely available.
- Inference Latency: Message-passing layers are computationally expensive, leading to high latency as hypergraphs scale.
- Fragility: Traditional GNNs are often sensitive to noise or perturbations in the hypergraph structure during test time.
This paper introduces the Hypergraph Markov Random Field (HMRF), a theoretical framework that models data generation on hypergraphs. By treating node and hyperedge features as a joint multivariate Gaussian distribution, the authors develop two tools: HGSI for unsupervised structure discovery and Hypergraph-MLP, a fast and robust node classification model.
The Hypergraph Markov Random Field (HMRF)
The core innovation is the use of a smoothness prior. The authors posit that if a hypergraph is meaningful, the features of nodes within the same hyperedge should be "smooth" or highly correlated. For instance, in a collaborative network, researchers working on the same project (a hyperedge) are likely to share similar research interests (node features).
The HMRF represents the hypergraph as a bipartite incidence graph. It assumes that node features within a hyperedge are correlated via the features of the hyperedge itself. This leads to a multivariate Gaussian distribution where the covariance is determined by the hypergraph's Laplacian. Because hyperedge features are rarely recorded, the authors derived a computable estimate for the model's energy function, proving that the maximum $\ell_2$ distance between any two nodes in a hyperedge serves as a reliable lower bound for the true energy.
Unsupervised Inference and Efficient Classification
Based on the HMRF framework, the paper proposes two primary applications:
HGSI (Hypergraph Structure Inference)
HGSI is an unsupervised framework that uses the HMRF to solve a Maximum A-Posteriori (MAP) problem. It effectively "guesses" the most likely hyperedges based on node feature smoothness without requiring any labeled hypergraph structures for training.
Hypergraph-MLP
To address latency and fragility, the authors propose Hypergraph-MLP. Instead of using the hypergraph structure as an input for message passing during inference, they use it as a regularizer during training. A standard Multi-Layer Perceptron (MLP) is trained with an additional "energy loss" that forces the learned embeddings to respect the hypergraph's structure. At test time, the model functions as a pure MLP, making it immune to structural noise and significantly faster than message-passing alternatives.
Experimental Results
The researchers evaluated their methods on synthetic data and established benchmarks including citation networks (Cora, Citeseer, Pubmed), text (20News), and 3D objects (NTU2012).
- Superior Accuracy: HGSI consistently outperformed existing unsupervised methods like GroupNet and HGSL in recovering ground-truth hypergraphs.
- Blazing Speed: Hypergraph-MLP achieved the fastest inference speeds. On the Pubmed dataset, it was 3x faster than the fastest GNN baseline and 50x faster than complex message-passing models.
- Extreme Robustness: In tests where 90% of hyperedges were replaced with random noise, traditional GNN performance collapsed. Hypergraph-MLP remained unaffected because it does not rely on the structure during inference.
Conclusion
The HMRF framework provides a rigorous probabilistic foundation for understanding the relationship between data and hypergraph structure. By decoupling structure from inference, the proposed Hypergraph-MLP offers a path toward more efficient and robust higher-order data processing.
Future work may explore tighter energy bounds and extend the HMRF to non-Gaussian data distributions or tasks like link prediction. While the current HGSI uses k-Nearest Neighbors to limit the search space for potential hyperedges, future iterations could investigate methods to capture more complex, long-range dependencies.
Summary updated