Hypergraph Isomorphism Computation

Yifan Feng, Jiashu Han, Shihui Ying, Yue Gao

TL;DR

This paper introduces a novel framework for hypergraph isomorphism computation by generalizing the classic Weisfeiler-Lehman (WL) test to high-order structures. By defining a two-stage neighbor refinement process, the authors developed hypergraph kernels that are not only mathematically consistent with traditional graph methods but also run over 80 times faster than existing state-of-the-art hypergraph techniques.

What Problem Does This Paper Address?

In network analysis, we often need to determine if two structures are identical (isomorphism) or how similar they are (kernels). While traditional graphs excel at modeling pairwise relationships (A knows B), they struggle with "high-order" correlations—group relationships like a research paper with five co-authors or a chemical pathway involving multiple proteins.

To handle these, researchers use hypergraphs, where a single "hyperedge" can connect any number of vertices. However, existing tools for hypergraph isomorphism usually take a shortcut: they convert the hypergraph into a standard graph. This "clique expansion" or transformation often leads to massive, unwieldy data structures or the loss of the very high-order information the researcher was trying to capture. The challenge was to create a method that operates directly on the hypergraph structure efficiently.

Methods

The authors propose the Hypergraph Weisfeiler-Lehman (HWL) Test. The core innovation is how they redefine "neighboring" information:

  1. Two-Stage Refinement: In a standard graph, a node just looks at its neighbors. In the HWL test, the authors use a two-step propagation:
  2. Step 1: Hyperedges gather labels from their member vertices.
  3. Step 2: Vertices gather labels from the hyperedges they belong to.
  4. Hypergraph Kernels: Based on this test, they implement two specific kernels:
  5. Hypergraph WL Subtree Kernel: Counts the frequency of rooted subtree structures.
  6. Hypergraph WL Hyperedge Kernel: Specifically designed for hypergraphs with high-degree hyperedges, counting vertex label combinations within edges.
  7. Mathematical Generalization: Crucially, the authors prove that their hypergraph subtree kernel is a true generalization—if you feed it a simple graph, it "degenerates" into the classic Graph WL kernel, producing identical results.

Datasets

The study utilized a massive suite of 19 datasets to prove its point:

  • 7 Graph Datasets: Including synthetic ones (RG-Macro/Sub) and real-world bioinformatics/movie datasets (MUTAG, NCI1, PROTEINS, IMDB).
  • 12 Hypergraph Datasets:
    • Synthetic (RHG series): The authors introduced new benchmarks like RHG-Pyramid and RHG-Table to test specific structural "blind spots" where traditional algorithms fail.
  • Real-World: High-order versions of IMDB (co-director/co-writer networks), Steam-Player (gaming habits), and Twitter-Friend (social circles).

Key Insights and Ideas

  • Direct Processing is Faster: By avoiding the "hypergraph-to-graph" conversion step, the algorithm avoids the "intermediate explosion" of data. This is why they achieved such massive speedups.
  • The "Neighbor" Obstacle: The biggest hurdle in hypergraph theory is often just defining what a "neighbor" is. By decomposing the relationship into a vertex-to-hyperedge-to-vertex hierarchy, they bridged the gap between graph theory and hypergraph computation.
  • Structural Robustness: The HWL test proved much better at distinguishing between "confusable" structures (like the "Hyper-Pyramid" vs. "Hyper-Firm-Pyramid") that look identical to random-walk-based or transformation-based methods.

Key Results

  • Efficiency: The proposed methods ran 86x faster than the "Hypergraph Directed Line" method when handling complex structures.
  • Accuracy: On the RHG-10 synthetic dataset, the Hypergraph WL Subtree Kernel achieved 96.1% accuracy, a massive leap over the 70.4% achieved by the next best non-WL method.
  • Consistency: On standard graph datasets, the method matched the performance of the classic WL kernel exactly, proving it loses no information when high-order structures aren't present.
  • Memory: Unlike transformation-based methods, the HWL approach didn't suffer from "Out of Memory" (OOM) errors on large datasets like Twitter-Friend.

Limitations and Future Work

While powerful, the HWL test is still a "heuristic" approach to an NP-hard problem. The authors include a "failure case" (Figure 3) showing specific, highly symmetrical hypergraph structures that the HWL test still cannot distinguish.

The authors suggest that future work could involve developing even higher-order WL tests (similar to k-WL for graphs) to resolve these rare ambiguities, though this would likely come at a higher computational cost. They also see potential in integrating these kernels into deep learning architectures like Hypergraph Neural Networks (HGNNs).

Summary updated

BibTeX
@article{feng2024hypergraph,
  author = {Yifan Feng and Jiashu Han and Shihui Ying and Yue Gao},
  title = {{Hypergraph Isomorphism Computation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  url = {https://openreview.net/forum?id=Q6Bsa7mthm},
}
Figure