TL;DR
Current fully inductive knowledge graph (KG) models struggle with limited expressiveness and cannot predict missing relations efficiently. TRIX solves this by constructing a richer relation graph that records which specific entities connect pairs of relations (instead of just counting them) and interleaves updates between entity and relation embeddings. This makes TRIX strictly more expressive than prior state-of-the-art models like ULTRA, speeds up inductive relation prediction by ~20×, and outperforms both graph baselines and massive long-context LLMs.
What Problem Does This Paper Address?
In fully inductive knowledge graph completion (KGC), a model is trained on one set of graphs and evaluated zero-shot on an entirely new graph with completely unseen entities and unseen relation types. To generalize, models must rely on double-equivariance—invariance to permutations of both entity and relation identifiers—learning structural patterns rather than memorizing entity/relation names.
Existing foundation graph models (like ULTRA or InGram) have two fundamental bottlenecks:
- Expressivity bottlenecks: They construct a "relation graph" where an edge between two relations merely counts how many entities they share across four interaction roles (head-head, tail-tail, head-tail, tail-head). As a result, non-isomorphic relation structures often collapse into identical embeddings.
- Inefficient relation prediction: Prior models condition their initial representations on a known query relation via the labeling trick to predict entities (
(h, r, ?)). But for relation prediction ((h, ?, t)), there is no query relation to condition on; they must run an expensive forward pass for every candidate relation in the graph. - The LLM question: While modern Large Language Models (LLMs) can handle massive contexts, it remains unclear whether they truly reason over graph topology inductively or merely rely on pre-trained semantic priors.
Methods
TRIX (Transferable Relation-Entity Interactions in X-crossing patterns) introduces two architectural components:
- Entity-Aware Relation Adjacency Tensor ($A_R$): Instead of collapsing shared entities into an integer count, TRIX maintains a tensor $A_R \in \mathbb{R}^{|R| \times |R| \times |V| \times 4}$. Edges between relations $r_i$ and $r_j$ explicitly identify which entity $v_k$ mediates the connection across the four role patterns.
- Iterative Entity and Relation Embedding Updates: Rather than performing message passing sequentially (relations first, then entities), TRIX alternates message passing across $A_R$ and the original entity graph $A_V$:
- Entity embeddings act as relation representations when propagating over $A_R$.
- Updated relation embeddings parameterize message passing over $A_V$.
- Unified Single-Pass Predictions: For entity prediction (
(h, r, ?)), entity $h$ and relation $r$ are initialized with one-hot/labeling vectors. For relation prediction ((h, ?, t)), entity $h$ is initialized to $+1$, entity $t$ to $-1$, and relations to $+1$. This allows predicting the missing relation across all candidate types in a single forward pass.
Datasets
The authors evaluated across 57 distinct KG benchmarks:
- Pre-training (3 graphs): WN18RR, FB15k-237, and CoDEx-Medium.
- Inference Benchmarks (54 unseen test graphs):
- Inductive entity & relation $(e, r)$ (23 graphs): FB-25/50/75/100, WK-25/50/75/100, NL-0/25/50/75/100, Metafam, FBNELL, and 8 Wiki MT subsets.
- Inductive entity $(e)$ (18 graphs): Subsets of FB15k, WN18RR, NELL, ILPC (Small/Large), and HetioNet benchmarks.
- Transductive (13 graphs): CoDEx Small/Large, NELL23k, AristoV4, ConceptNet100k, DBpedia100k, YAGO310, etc.
- Meta-Learning Evaluation: The WikiTopics benchmark (Wikidata-5M partitioned into 11 disjoint domain graphs).
Key Insights and Ideas
- Knowing which node connects relations matters: The authors mathematically prove that counting shared entities causes structural collisions (automorphisms) where non-isomorphic relations receive identical embeddings. Explicitly indexing the mediating entities allows TRIX to provably separate triplets that ULTRA and InGram cannot (Theorem 1).
- Iterative co-evolution aligns with the labeling trick: Passing information back and forth between node and relation graphs enables conditioning directly on two target entities $(h, t)$, answering relation queries in one shot instead of $|R|$ forward passes.
- LLMs fail structural induction: When fed entire KGs (up to ~700k tokens using Gemini 1.5 Pro):
- In-domain (with real text names), LLMs perform decently (~0.93 Hits@1).
- When entity/relation names are masked with nonsense tokens (
foo,bar) while keeping the graph structure intact, LLM Hits@1 drops to ~0.63. - When IDs are randomly shuffled, LLM predictions fluctuate wildly (only 38.5% consistent across runs). LLMs exploit semantic memorization, not inductive topological reasoning.
Key Results
- Zero-Shot Entity Prediction: TRIX improves over ULTRA by ~3% average absolute MRR across 57 datasets (0.390 vs. 0.366 total average MRR; 0.548 vs. 0.518 Hits@10). It outperforms ULTRA on 34 datasets and outperforms supervised baselines on 30 of 40 datasets.
- Zero-Shot Relation Prediction: TRIX achieves a 7.4% absolute gain in Hits@1 over ULTRA (0.687 vs. 0.613; MRR 0.792 vs. 0.724). Zero-shot TRIX even outperforms fine-tuned ULTRA.
- Efficiency: While TRIX is $\sim 10\times$ slower than ULTRA for entity queries due to the larger relation tensor, it is $\sim 20\times$ faster for relation prediction by replacing $|R|$ forward passes with a single pass.
- Meta-Learning Capacity: Pre-training across more diverse domains systematically increases embedding differentiation and boosts unseen domain Hits@10 (from 0.413 with 1 domain to 0.483 with 4 domains on WikiTopics).
Limitations and Future Work
- Entity Prediction Scalability: Expanding $A_R$ with an explicit entity dimension increases the number of edges in the relation graph by $4\times$ to $10\times$, resulting in higher memory overhead and slower per-query runtimes for entity prediction compared to ULTRA.
- Task-Specific Models: TRIX currently requires separate models trained independently for entity prediction and relation prediction rather than a single unified checkpoint.
- Scalability to Massive KGs: Although evaluated on graphs with up to ~1.2M triples, scaling iterative relation-entity message passing to web-scale multi-billion-edge graphs remains an open challenge.
Summary updated