Skip to main content
QUICK REVIEW

[Paper Review] Inductive Relation Prediction by Subgraph Reasoning

Komal K. Teru, Etienne Denis|arXiv (Cornell University)|Nov 16, 2019
Advanced Graph Neural NetworksComputer Science32 references64 citations
TL;DR

GraIL is a GNN-based framework that performs inductive relation prediction by reasoning over enclosing subgraphs around target node pairs, enabling generalization to unseen entities and graphs and enabling complementary gains when ensembled with embedding-based methods.

ABSTRACT

The dominant paradigm for relation prediction in knowledge graphs involves learning and operating on latent representations (i.e., embeddings) of entities and relations. However, these embedding-based methods do not explicitly capture the compositional logical rules underlying the knowledge graph, and they are limited to the transductive setting, where the full set of entities must be known during training. Here, we propose a graph neural network based relation prediction framework, GraIL, that reasons over local subgraph structures and has a strong inductive bias to learn entity-independent relational semantics. Unlike embedding-based models, GraIL is naturally inductive and can generalize to unseen entities and graphs after training. We provide theoretical proof and strong empirical evidence that GraIL can represent a useful subset of first-order logic and show that GraIL outperforms existing rule-induction baselines in the inductive setting. We also demonstrate significant gains obtained by ensembling GraIL with various knowledge graph embedding methods in the transductive setting, highlighting the complementary inductive bias of our method.

Motivation & Objective

  • Motivate the need for inductive relation prediction that generalizes to unseen entities, addressing limitations of embedding-based methods.
  • Propose GraIL, a subgraph-based GNN framework that learns entity-independent relational semantics.
  • Show that GraIL can encode a subset of first-order logical rules and outperform inductive baselines.
  • Demonstrate that ensembling GraIL with KG embeddings yields improvements in transductive settings.
  • Provide new inductive benchmark datasets and analyze components via ablations.

Proposed method

  • Extract enclosing subgraphs around candidate triples by intersecting k-hop neighborhoods of the two target nodes and pruning to nodes on short paths between them.
  • Label nodes in the subgraph with a double-radius scheme capturing distances to the target nodes, enabling node-feature initialization without external attributes.
  • Score triplets using a GNN with multi-relational message passing and attention over edge types, followed by subgraph representation pooling and concatenation with target node and relation embeddings for final scoring.
  • Train with a margin-based hinge loss using negative sampling by replacing head or tail entities.
  • Prove that GraIL can encode path-based logical rules and optionally approximate counts of rules satisfied by a given query (Theorem 1 and Corollary 1).
  • Optionally employ JK-connections and basis sharing to improve robustness and expressiveness.

Experimental results

Research questions

  • RQ1Can GraIL perform inductive relation prediction by reasoning over local subgraph structures without using node attributes?
  • RQ2How does GraIL compare to existing inductive baselines (NeuralLP, DRUM, RuleN) on fully inductive benchmarks derived from standard KG datasets?
  • RQ3Does GraIL provide complementary benefits when combined (ensembled) with embedding-based KG completion models in transductive settings?
  • RQ4Which components (subgraph extraction, node labeling, attention) are most critical to GraIL’s performance?

Key findings

  • GraIL substantially outperforms state-of-the-art inductive baselines (NeuralLP, DRUM, RuleN) on inductive benchmarks derived from WN18RR, FB15k-237, and NELL-995 in AUC-PR and Hits@10.
  • Ensembling GraIL with various KG embeddings yields consistent gains in transductive relation prediction across WN18RR, FB15k-237, and NELL-995, surpassing the best standalone embedding methods on several datasets.
  • Ablation studies show that enclosing subgraph extraction, the double-radius node labeling, and attention in the GNN are all critical, with subgraph extraction and labeling showing particularly strong impact.
  • Theoretical analysis (Theorem 1 and Corollary 1) demonstrates GraIL’s capacity to encode a broad class of path-based logical rules and to count the number of rules satisfied for a given query.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.