TL;DR
Standard graph neural networks struggle to predict missing links when test graphs contain completely unseen nodes and entirely new relation types without side text. While recent methods enforced global "double exchangeability" (treating all relations as interchangeable), they fail when different relations follow conflicting structural rules. This paper introduces Multi-Task Double Equivariance (MTDEA), which clusters relations into distinct relational "tasks," uses test-time adaptation to categorize unseen relations, and significantly improves link prediction accuracy across conflicting relational patterns.
What Problem Does This Paper Address?
In knowledge graphs and attributed multigraphs, predicting missing facts (triplets of (head, relation, tail)) is standard practice. However, most existing models assume the relation types at test time were seen during training.
Generalizing to graphs with both completely new nodes and novel relation types—without relying on external textual descriptions, ontological names, or overlapping subgraphs—is an open frontier. Recently, pioneering models like ISDEA proposed double equivariance, assuming that all relation types and nodes are universally exchangeable (interchangeable).
However, real-world graphs often have conflicting predictive patterns. For example:
- In family trees,
(Alice, parent_of, Bob) ∧ (Bob, sibling_of, Cole) ⇒ (Alice, parent_of, Cole). - But reversing directions,
(Dina, sibling_of, Elmo) ∧ (Elmo, child_of, Faye) ⇒ (Dina, child_of, Faye).
If a model assumes all relations are exchangeable, it cannot distinguish parent_of from child_of, conflating opposite predictive rules.
Methods
The authors formulate inductive link prediction across diverse relations through a multi-task lens:
- Exchangeability as an Equivalence Relation: The authors mathematically prove that relation exchangeability ($\sim_e$) satisfies reflexivity, symmetry, and transitivity. Thus, relations can be cleanly partitioned into disjoint equivalence classes, which they define as relational tasks.
- Soft Multi-Task Double-Equivariant (MTDE) Layer: Rather than forcing all relations to pool representations identically, MTDEA assigns relations to $\hat{K}$ soft task clusters using a learnable attention matrix $\alpha \in [0, 1]^{R \times \hat{K}}$. Each task is equipped with a learnable task positional embedding ($p_k$), breaking symmetry between conflicting patterns even when observable graph topologies match.
- Dual-Sampling Loss & Regularization: Conventional benchmarks only corrupt entities to create negative samples. MTDEA uses a dual-sampling loss ($\mathcal{L}_{\text{dual}}$) that corrupts both tail entities and relation types. To encourage crisp clustering, the loss includes an entropy penalty ($\mathcal{L}_{\text{1-hot}}$) to push task memberships toward 0 or 1, and a log-gamma penalty ($\mathcal{L}_{\text{conc}}$) to avoid unnecessary cluster proliferation.
- Test-Time Adaptation: Because test graphs introduce unknown relation types, MTDEA freezes the trained model weights and optimizes a new test attention matrix $\alpha^{(\text{te})}$ using self-supervised masked link prediction on the observable test graph.
Datasets
The authors evaluated models across synthetic and real-world multi-task benchmarks:
- METAFAM (New synthetic benchmark): Constructed from generated family trees specifically designed with conflicting Horn-clause rules (e.g.,
mother_of/father_ofvs.son_of/daughter_of). - WIKITOPICS-MT (New multi-task benchmark): Derived from WikiTopics (Wikidata5M). Combines disparate topics in training that exhibit poor mutual transfer (e.g., MT1 trains on Art + People and tests on Health or Taxonomy; MT2 trains on Sport + Health and tests on Location or Science).
- FBNELL: Merges the top relation types of FB15K-237 and NELL-995 to evaluate generalization on large, multi-domain graphs where task distinctions are not explicitly engineered.
Key Insights and Ideas
- Universal exchangeability hurts expressiveness: Relaxing global double equivariance into partitioned, per-task exchangeability allows models to resolve contradictory multi-hop reasoning paths.
- Positional embeddings are vital symmetry-breakers: Without task-specific embeddings $p_k$, identical topological structures across different relations would yield identical representations, preventing task differentiation.
- Standard entity-centric metrics can be misleading: A naive homogeneous baseline (ignoring relation types entirely) achieved 95% Hits@10 on FBNELL under traditional entity-corrupted evaluation simply by predicting whether any link existed. Dual-sampling (corrupting both entities and relations) is necessary to measure genuine relational reasoning.
Key Results
- METAFAM: MTDEA with $\hat{K}=2$ partitions matches the underlying two-task structure, outperforming the single-task baseline ISDEA on Hits@1 (0.344 vs. 0.292) and Hits@10 (0.704 vs. 0.609).
- WIKITOPICS-MT: On MT1-Health, MTDEA ($\hat{K}=6$) achieved 0.457 Hits@1, substantially exceeding ISDEA (0.323) and InGram (0.122) while displaying much lower variance across seeds. Similar substantial gains were observed on MT1-Taxonomy (0.422 vs. ISDEA's 0.269 and InGram's 0.198).
- FBNELL: MTDEA matched or slightly outperformed ISDEA (0.553 vs. 0.562 Hits@1; 0.704 vs. 0.697 Hits@10 for $\hat{K}=2$), showing that the model retains strong performance even when a clear multi-task separation is not strictly present.
Limitations and Future Work
- Scalability: The soft attention layer and per-relation GNN passes incur high GPU memory and compute overheads ($O(R\hat{K}N\Delta_{\text{max}})$), which caused out-of-memory (OOM) errors on larger test configurations when scaling to $\hat{K}=6$.
- Completely Non-Exchangeable Relations: If a graph possesses no exchangeable relations whatsoever ($\hat{K} = R$), the benefits of relational clustering diminish while computational overhead increases.
- Hits@10 Trade-offs: InGram outperformed MTDEA on Hits@10 and Mean Rank on several datasets; extending multi-task double equivariance into InGram-style relation graphs represents a promising future direction.
Summary updated