HyperSearch: Prediction of New Hyperedges Through Unconstrained yet Efficient Search

Hyunjin Choo, Fanchen Bu, Hyunjin Hwang, Young-Gyu Yoon, Kijung Shin

Abstract

Predicting higher-order interactions within complex systems—modeled as hypergraphs—is a fundamental challenge in network science. Traditional hyperedge prediction methods often rely on heuristic negative sampling or restrictive structural assumptions, which can limit their accuracy and generalizability. We introduce HyperSearch, a novel search-based algorithm designed to navigate the exponential search space of potential hyperedges. By combining an empirically grounded scoring function with a mathematically guaranteed pruning mechanism, HyperSearch efficiently identifies new interactions without the constraints of traditional sampling. Our evaluation across ten real-world datasets demonstrates that HyperSearch consistently outperforms state-of-the-art deep learning models in both predictive accuracy and computational scalability.

1. Introduction

In many real-world systems, interactions occur in groups rather than simple pairs. Examples include research teams co-authoring papers, sets of proteins forming functional complexes, or groups of individuals participating in a joint email thread. These systems are best represented as hypergraphs, where an edge (a hyperedge) can connect any number of nodes.

Predicting the formation of new hyperedges is significantly more complex than standard link prediction. For a network with $n$ nodes, the number of possible candidate groups is $2^n$, creating an immense search space. Current approaches typically address this by framing the problem as a binary classification task. However, this requires "negative sampling"—selecting a tiny subset of non-existent edges to train the model—which often introduces bias and makes models highly sensitive to sampling strategies. Furthermore, many rule-based methods assume that nodes must share a high degree of common neighbors, an assumption that frequently fails in sparse networks or when discovering novel interaction types.

2. The HyperSearch Framework

HyperSearch avoids the pitfalls of heuristic sampling by treating hyperedge prediction as a search problem over the unconstrained space of all possible node combinations. The framework rests on two pillars: a data-driven scoring function and an efficient pruning strategy.

2.1 Empirically Grounded Scoring

Through an analysis of ten diverse real-world datasets, we observed a consistent pattern: new hyperedges tend to have significant structural overlap with existing ones, particularly those formed recently. This "Overlap Hypothesis" suggests that new groups often "recycle" or extend existing group structures.

To quantify this, HyperSearch utilizes a relaxed overlap count score. This score measures how well a candidate group is supported by observed interactions using Integer Linear Programming (ILP). By calculating the maximum number of existing hyperedges that can be "covered" by a candidate group, the algorithm identifies candidates that align with the underlying structural evolution of the hypergraph.

2.2 Efficient Search via Pruning

To navigate the $2^n$ search space, HyperSearch employs a Depth-First Search (DFS). The computational feasibility of this approach is made possible by the derivation of an anti-monotonic upper bound for the scoring function.

In discrete mathematics, a function is anti-monotonic if the score of a set is always greater than or equal to the score of its supersets. By establishing this bound, HyperSearch can "prune" the search tree: if a specific subset of nodes has a low upper-bound score, the algorithm can safely discard all larger groups containing that subset, as they are guaranteed never to exceed the current top candidates. This provides a theoretical guarantee that no optimal candidates are missed while drastically reducing the number of groups evaluated.

2.3 Temporal and Feature Extensions

The framework is highly flexible. It can incorporate temporal weights to prioritize recent interactions, reflecting the observation that structural overlap declines as the time gap increases. Additionally, it can integrate node features (such as text similarity or attributes) using Jaccard similarity to further refine the search results.

3. Experimental Evaluation

HyperSearch was evaluated on ten real-world hypergraphs spanning five domains: co-citation (Citeseer, Cora), authorship (Cora-A, DBLP-A), email (Enron, Eu), contact (High, Primary), and tags (Math.sx, Ubuntu). These datasets include both static and temporal versions to test the algorithm's versatility.

3.1 Accuracy and Performance

HyperSearch consistently outperformed state-of-the-art baselines, including deep learning models like Hyper-SAGNN and NHP. In several benchmarks, HyperSearch achieved double or triple the Recall@K of neural methods. This suggests that a rigorous search over the full space is more effective than training complex models on biased, sampled subsets.

3.2 Scalability

Despite the theoretical complexity of searching an unconstrained space, HyperSearch demonstrated near-linear scalability ($O(N^{1.05})$) relative to the number of edges in the input hypergraph. Because it avoids the heavy computational overhead of training deep neural networks, it is often faster to deploy in real-world applications than its deep learning counterparts.

4. Discussion and Limitations

While HyperSearch represents a significant step forward, certain challenges remain. The ILP-based scoring, while effective, is NP-complete, which may pose bottlenecks in extremely dense hypergraphs. Furthermore, when node features are incorporated, the strict anti-monotonicity of the upper bound is lost, requiring the use of heuristic bounds that lack the same theoretical safety guarantees as the structure-only version.

5. Conclusion

HyperSearch demonstrates that an unconstrained search, when guided by a mathematically sound pruning mechanism and an empirically grounded scoring function, is a powerful alternative to deep learning for hyperedge prediction. By moving away from heuristic sampling and toward guaranteed search, we can achieve higher accuracy and better scalability in modeling the complex, higher-order interactions of the real world.

Summary updated

Abstract

Higher-order interactions (HOIs) in complex systems, such as scientific collaborations, multi-protein complexes, and multi-user communications, are commonly modeled as hypergraphs, where each hyperedge (i.e., a subset of nodes) represents an HOI among the nodes. Given a hypergraph, hyperedge prediction aims to identify hyperedges that are either missing or likely to form in the future, and it has broad applications, including recommending interest-based social groups, predicting collaborations, and uncovering functional complexes in biological systems. However, the vast search space of hyperedge candidates (i.e., all possible subsets of nodes) poses a significant computational challenge, making naïve exhaustive search infeasible. As a result, existing approaches rely on either heuristic sampling to obtain constrained candidate sets or ungrounded assumptions on hypergraph structure to select promising hyperedges. In this work, we propose HyperSearch, a search-based algorithm for hyperedge prediction that efficiently evaluates unconstrained candidate sets, by incorporating two key components: (1) an empirically grounded scoring function derived from observations in real-world hypergraphs and (2) an efficient search mechanism, where we derive and use an anti-monotonic upper bound of the original scoring function (which is not anti-monotonic) to prune the search space. This pruning comes with theoretical guarantees, ensuring that discarded candidates are never better than the kept ones w.r.t. the original scoring function. In extensive experiments on 10 real-world hypergraphs across five domains, HyperSearch consistently outperforms state-of-the-art baselines, achieving higher accuracy in predicting new (i.e., not in the training set) hyperedges.
BibTeX
@misc{choo2025hypersearch,
  author = {Hyunjin Choo and Fanchen Bu and Hyunjin Hwang and Young-Gyu Yoon and Kijung Shin},
  title = {{HyperSearch: Prediction of New Hyperedges Through Unconstrained yet Efficient Search}},
  year = {2025},
  eprint = {2510.17153},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.17153},
}
Figure