Most real-world relational data isn't just binary (e.g., "A is friends with B"); it is often $n$-ary. For example, a single fact might state: "Bengio (Entity 1) has a research project on ClimateAI (Entity 2) in Montreal (Entity 3) funded by CIFAR (Entity 4)." This structure forms a Knowledge Hypergraph, where a single "hyperedge" connects multiple entities simultaneously.
While Knowledge Graph Foundation Models (KGFMs) like ULTRA have successfully tackled unseen nodes and relations in standard binary graphs, they fail when applied to hypergraphs. Existing inductive hypergraph models suffer from a "fixed vocabulary" problem: they can predict links for new entities, but only if the relation type (e.g., "ResearchProject") was seen during training. If a model encounters a brand-new relation at test time, it breaks.
HYPER is the first foundation model designed for "fully inductive" link prediction on knowledge hypergraphs. It solves the fixed vocabulary problem by learning the underlying structural "invariants" of how relations interact, allowing it to generalize to entirely new entities and novel relation types of any arity (number of participating nodes) in a zero-shot manner.
The Core Concept: Relational Invariants
The "aha moment" behind HYPER is that while relation labels change, the patterns of how they share entities do not. A relation like Teaches(Professor, Student, Course) is structurally analogous to Sells(Store, Customer, Product). By focusing on the positions of entities rather than the names of relations, the model learns universal rules of interaction.
This allows HYPER to train on one set of relations and seamlessly perform inference on a completely different set of relations and entities, effectively transferring learned structural knowledge to novel domains.
The HYPER Architecture
To achieve this, the authors propose a multi-stage architecture that avoids the pitfalls of simply converting hypergraphs into standard graphs (a process known as reification, which the authors show actually hurts foundation models by creating atypical graph structures).
- Relation Graph Construction: HYPER builds a graph where the nodes are the relations themselves. An edge exists between two relations if they share an entity. Crucially, these edges are labeled with the specific positions the shared entity occupies (e.g., "Entity at position 2 of Relation A is the same as Entity at position 3 of Relation B").
- Positional Interaction Encoder (EncPI): To handle arbitrary arities, the authors use sinusoidal positional encodings (similar to those in Transformers) passed through an MLP. The paper proves that this choice is critical: without an "injective" encoding (where distinct position pairs get distinct embeddings), the model cannot distinguish between different types of relational intersections, leading to a collapse in generalization.
- Two-Step Message Passing:
- First, a Relation Encoder performs message passing on the relation graph to generate embeddings for every relation in the dataset.
- Second, an Entity Encoder uses these learned relation embeddings to perform message passing on the original hypergraph, updating entity representations based on their local neighborhood.
- Triton Optimization: To make this computationally feasible, the authors implemented a custom Triton kernel that avoids materializing massive message tensors, reducing memory consumption by 5x and achieving $O(|V|)$ memory complexity relative to the number of nodes.
Datasets and Key Results
To evaluate HYPER, the authors introduced 16 new inductive datasets derived from four source hypergraphs: JF17K, Wikipeople, MFB15K, and WD50K. For each source, they created variants with 25%, 50%, 75%, and 100% "unseen" relations at test time. The "100%" variants represent a pure zero-shot challenge.
- Superior Generalization: In the most difficult "node-and-relation" inductive settings, HYPER consistently outperformed baselines like G-MPNN and HCNet. On the JF-100 dataset (100% novel relations), HYPER achieved an MRR of 0.198, while baselines struggled near zero.
- Zero-Shot Power: HYPER variants pretrained on a mix of graphs often outperformed specialized models trained end-to-end on the target dataset.
Limitations and Future Work
While HYPER represents a major leap forward, it has a few limitations. The number of positional interactions grows quadratically ($k^2$) with the arity ($k$) of the hyperedges. While manageable for most current datasets (where $k < 10$), this could become a bottleneck for massive hyperedges, suggesting a need for scalable approximations in the future. Additionally, while HYPER is competitive on standard binary Knowledge Graphs, specialized binary models like ULTRA still hold a slight edge. Future work could focus on bridging this gap to create a truly universal graph foundation model.
Summary updated