TL;DR
CAT-Walk is a novel inductive learning framework for temporal hypergraphs. Instead of traditional node-to-node random walks, it utilizes "SetWalks"—random walks over sequences of hyperedges—to capture higher-order, time-dependent interactions. By combining these walks with a permutation-invariant pooling strategy and a set-based anonymization process, the model learns generalizable dynamic laws. This approach achieves state-of-the-art performance on hyperedge prediction tasks, even when evaluating entirely unseen nodes.
What Problem Does This Paper Address?
Real-world complex systems, such as researchers co-authoring a paper or multiple drugs interacting in a patient, often involve relationships among groups of entities rather than just pairs. These are best modeled as hypergraphs, where a single "hyperedge" can connect any number of nodes. Furthermore, these systems are temporal, meaning group interactions evolve over time.
Existing graph neural networks (GNNs) struggle with this complexity. To handle hypergraphs, they often rely on "Clique Expansion" (CE), which breaks a group interaction down into a web of pairwise links. This process destroys the semantic meaning of the group—for example, three people co-authoring one paper looks mathematically identical to three people co-authoring three separate pairwise papers.
Furthermore, existing hypergraph methods are mostly transductive (they memorize specific node IDs and fail if introduced to new, unseen nodes) or they ignore the temporal aspect entirely. Even existing "hypergraph random walks" often mathematically degenerate into simple pairwise walks. The authors set out to build a model that can capture true higher-order, temporal patterns and generalize to unseen nodes (inductive learning).
Methods: The CAT-Walk Architecture
The authors introduce CAT-Walk (Causal Anonymous Set Walks), which consists of three main innovations:
- SetWalks: Instead of a random walk hopping from node to node, a SetWalk hops from hyperedge to hyperedge backward in time. This inherently preserves the higher-order group structure and captures the temporal causality of how group interactions trigger future group interactions.
- Set-Based Anonymization: To make the model inductive, CAT-Walk hides specific node and hyperedge identities. Instead, it assigns nodes a "positional encoding" based on how often they appear in a sampled set of SetWalks. This forces the model to learn the structural rules of the network rather than memorizing specific nodes.
- SetMixer & Walk Encoding: A hyperedge is an unordered set of nodes, so aggregating node features into a hyperedge feature requires a permutation-invariant function. Standard pooling (like Mean or Sum) loses complex dependencies. The authors design SetMixer, an all-MLP architecture that uses a Softmax operation to bind token-wise information non-parametrically, making it permutation-invariant while retaining high expressive power. Finally, the sequence of hyperedges is encoded using a continuous time-encoding module and an MLP-Mixer, avoiding the computational overhead and over-squashing issues common in RNNs or Transformers.
Key Insights and Ideas
- Hyperedges are more than the sum of their parts: Decomposing a multi-way interaction into pairwise links loses crucial information. By defining a random walk over sets (hyperedges) rather than vertices, the model mathematically and practically distinguishes true group dynamics from overlapping pairwise dynamics.
- Anonymization breeds generalization: By stripping away explicit node IDs and relying purely on structural and temporal "hitting counts" (how often nodes appear in specific walk patterns), the model learns the underlying physics of the network. This allows it to predict interactions for entirely new nodes.
- RNNs aren't always the answer for time: The authors found that using an MLP-Mixer with a continuous time-encoding module outperformed RNNs for encoding temporal walks. Real-world network events have irregular time gaps, which discrete sequential RNNs struggle to model effectively.
Datasets and Key Results
The authors evaluated CAT-Walk on 10 public benchmark datasets spanning various domains, including drug networks (NDC Class, NDC Substances), contact networks (High/Primary School), political networks (Congress Bill), email networks (Enron, Eu), and online social networks (Math StackExchange, Ask Ubuntu, Users-Threads).
- Massive Performance Leaps: CAT-Walk achieved an average AUC improvement of 9% in transductive settings and 17% in inductive settings compared to 8 state-of-the-art baselines.
- Near-Perfect Transductive Accuracy: On datasets like NDC and Primary School, the model hit near-perfect AUC scores (≈ 98.0%) for hyperedge prediction.
- Strong Inductive Generalization: In the Strongly Inductive setting (predicting hyperedges where some nodes were never seen during training), the model maintained an AUC > 90.0% on most datasets, vastly outperforming baselines that rely on memorizing node IDs.
- Scalability: The runtime for SetWalk extraction and model training scales linearly with the number of hyperedges, making it highly efficient for large, streaming networks.
Limitations and Future Work
The current implementation relies on fixed-length SetWalks. The authors acknowledge this can be suboptimal, as different network dynamics might require capturing varying lengths of historical context to make accurate predictions. Future work will focus on developing a procedure to learn from SetWalks of varying lengths. The authors also propose using CAT-Walk as a powerful positional encoder within anomaly detection frameworks on hypergraphs, such as detecting abnormal brain activity or social media bots.
Summary updated