CAT-Walk: Inductive Hypergraph Learning via Set Walks

Ali Behrouz, Farnoosh Hashemi, Sadaf Sadeghian, Margo Seltzer

TL;DR

CAT-Walk is a new framework for representation learning on temporal hypergraphs that captures higher-order, time-dependent interactions by walking over hyperedges (sets) rather than individual nodes. By combining these "SetWalks" with a novel permutation-invariant pooling strategy called SetMixer and a robust anonymization process, the model achieves state-of-the-art performance in predicting future interactions, particularly in challenging inductive settings where it must generalize to unseen nodes.

What Problem Does This Paper Address?

Many real-world systems—from social networks to metabolic pathways—involve interactions between more than two entities at once. These are best modeled as hypergraphs, where a single "hyperedge" can connect any number of vertices. Furthermore, these interactions are often temporal, meaning they evolve over time.

Existing methods for learning on hypergraphs often suffer from two main flaws:

  1. Semantic Loss via Clique Expansion: Many models simplify hypergraphs into standard graphs by replacing hyperedges with cliques (pairwise connections). This loses the "higher-order" meaning; for example, three people co-authoring one paper is semantically different from three separate pairs of people co-authoring different papers.
  2. Transductive Limitations: Most models are transductive, meaning they can only make predictions about nodes they saw during training. They struggle with inductive tasks—predicting interactions for entirely new nodes or patterns.

CAT-Walk aims to bridge these gaps by learning the underlying "dynamic laws" of a temporal hypergraph in a way that is both higher-order aware and fully inductive.

Methods

The CAT-Walk architecture consists of three main stages:

  1. Causality Extraction via SetWalks: Instead of traditional random walks that hop between nodes, CAT-Walk introduces SetWalks. A SetWalk is a sequence of hyperedges sampled by backtracking through time. This approach allows the model to distinguish between multi-way connections and their simpler pairwise counterparts.
  2. Set-based Anonymization: To make the model inductive, it must not rely on specific node or hyperedge IDs. CAT-Walk uses a two-step process: it first assigns nodes positional encodings based on their "hitting counts" (how often they appear in sampled walks) and then uses a novel pooling strategy to hide hyperedge identities.
  3. SetMixer Pooling: Standard pooling functions like Mean or Sum can lose information about higher-order dependencies. The authors propose SetMixer, a permutation-invariant pooling strategy inspired by the MLP-Mixer architecture. It uses a non-parametric Softmax-based "token-mixer" to capture complex dependencies between nodes within a hyperedge without being sensitive to their order.
Figure 3: Schematic of the CAt-Walk. CAt-Walk consists of three stages: (1) Causality Extraction via Set Walks (§3.2), (2) Set-based Anonymization (§3.3), and (3) Set Walk Encoding (§3.4).

Datasets

The authors evaluated CAT-Walk on 10 diverse benchmark datasets representing various domains:

  • Drug/Biological Networks: NDC Class, NDC Substances.
  • Contact Networks: High School, Primary School.
  • Legislative Networks: US Congress Bill.
  • Email Networks: Email Enron, Email Eu.
  • Online Social Networks: Question Tags (Math & Ubuntu), Users-Threads.

These datasets vary significantly in scale, ranging from hundreds to over 125,000 nodes and up to 822,000 hyperedges.

Key Insights and Ideas

  • Higher-Order Expressivity: The authors prove that SetWalks are strictly more expressive than standard random walks on hypergraphs or their clique-expanded versions. As shown in the figure below, SetWalks can distinguish between different underlying dynamic laws that simpler walks fail to differentiate. SetWalks capture complex dynamic laws that simpler walks miss.

  • The Power of Anonymization: By focusing on structural patterns (motifs) rather than node identities, CAT-Walk generalizes remarkably well to "unseen" parts of the network.

  • Linear Scalability: Despite the complexity of hypergraphs, the runtime for SetWalk extraction and model training scales linearly with the number of hyperedges, making it practical for large-scale streaming data.
  • MLP-Mixer vs. RNNs: The authors found that using an MLP-Mixer for walk encoding significantly outperformed traditional sequential encoders like RNNs, largely because it handles continuous-time information more effectively.
Figure 2: The advantage of SetWalks in causality extraction and capturing complex dynamic laws.

Key Results

CAT-Walk was tested against eight state-of-the-art baselines for hyperedge prediction and several others for node classification.

  • Hyperedge Prediction: CAT-Walk achieved a 9% average improvement in transductive settings and a massive 17% average improvement in inductive settings. In many cases, it reached near-perfect AUC scores (e.g., ~98.0 on NDC and Primary School datasets).
  • Node Classification: The model showed competitive or superior performance compared to specialized node classification frameworks, proving its versatility.
  • Ablation Studies: Removing any single component (SetWalks, time encoding, or SetMixer) led to a significant drop in performance, confirming that each part of the pipeline is critical.

Limitations and Future Work

The authors identify a few areas for improvement:

  • Fixed-Length Walks: Currently, CAT-Walk uses fixed-length SetWalks. Learning from walks of varying lengths might capture even more nuanced patterns.
  • Bias Sensitivity: Like all inductive models, if the training data contains biased patterns, the model will learn and propagate those biases.
  • Future Directions: The authors suggest that CAT-Walk could be adapted for anomaly detection on hypergraphs, identifying unusual higher-order interactions in real-time.

Summary updated

BibTeX
@inproceedings{behrouz2023cat,
  author = {Ali Behrouz and Farnoosh Hashemi and Sadaf Sadeghian and Margo Seltzer},
  title = {{CAT-Walk: Inductive Hypergraph Learning via Set Walks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=QG4nJBNEar},
}
Figure