Skip to main content
QUICK REVIEW

[Paper Review] Learning First-Order Rules with Relational Path Contrast for Inductive Relation Reasoning

Yudai Pan, Jun Liu|arXiv (Cornell University)|Oct 17, 2021
Advanced Graph Neural NetworksComputer Science29 references7 citations
TL;DR

This paper proposes RPC-IR, a novel graph convolutional network-based method for inductive relation reasoning in knowledge graphs that learns interpretable first-order rules via relational path contrastive learning. By extracting relational paths and applying a contrastive strategy to enhance self-supervised learning, RPC-IR achieves state-of-the-art performance on three inductive datasets while explicitly representing logical rules for interpretability.

ABSTRACT

Relation reasoning in knowledge graphs (KGs) aims at predicting missing relations in incomplete triples, whereas the dominant paradigm is learning the embeddings of relations and entities, which is limited to a transductive setting and has restriction on processing unseen entities in an inductive situation. Previous inductive methods are scalable and consume less resource. They utilize the structure of entities and triples in subgraphs to own inductive ability. However, in order to obtain better reasoning results, the model should acquire entity-independent relational semantics in latent rules and solve the deficient supervision caused by scarcity of rules in subgraphs. To address these issues, we propose a novel graph convolutional network (GCN)-based approach for interpretable inductive reasoning with relational path contrast, named RPC-IR. RPC-IR firstly extracts relational paths between two entities and learns representations of them, and then innovatively introduces a contrastive strategy by constructing positive and negative relational paths. A joint training strategy considering both supervised and contrastive information is also proposed. Comprehensive experiments on three inductive datasets show that RPC-IR achieves outstanding performance comparing with the latest inductive reasoning methods and could explicitly represent logical rules for interpretability.

Motivation & Objective

  • To address the challenge of entity-independent relational semantics in inductive knowledge graph reasoning.
  • To overcome deficient supervision in subgraphs due to scarcity of latent rules.
  • To enable inductive reasoning with interpretable, logical first-order rules.
  • To improve generalization on unseen entities by learning relation sequence semantics independent of specific entities.
  • To integrate supervised and self-supervised learning via contrastive relational path training.

Proposed method

  • RPC-IR extracts relational paths between entities within a predefined length in each subgraph.
  • It represents these paths using a graph convolutional network (GCN) to learn entity-agnostic relational semantics.
  • A contrastive learning strategy is introduced by constructing positive and negative relational path pairs to enhance self-supervised signal.
  • The model jointly optimizes supervised loss from labeled triples and contrastive loss from positive/negative path pairs.
  • First-order rules are derived from high-confidence relational paths, with confidence scores indicating reasoning reliability.
  • The framework supports inductive reasoning by generalizing from subgraph structures without requiring retraining on unseen entities.

Experimental results

Research questions

  • RQ1Can relational path contrastive learning improve inductive relation reasoning in knowledge graphs?
  • RQ2How effectively can RPC-IR learn entity-independent relational semantics from subgraph paths?
  • RQ3To what extent does joint supervised and contrastive training improve performance on inductive benchmarks?
  • RQ4Can the model generate interpretable first-order rules that explain reasoning predictions?
  • RQ5How do hyperparameters λ₁ and λ₂ affect performance across different datasets?

Key findings

  • RPC-IR achieves state-of-the-art performance on three fully-inductive datasets: WN18RR, FB15K-237, and NELL-995.
  • On FB15K-237_v1, RPC-IR achieves an AUC-PR of 0.82 with λ₁=0.8 and λ₂=0.8, outperforming prior inductive methods.
  • The model learns explicit first-order rules such as 'partOf(X,Z) ∧ locatedIn(Z,Y) → liveIn(X,Y)' with high confidence (e.g., 1.00) on FB15K-237_v1.
  • Case studies show that rules with confidence <0.01 are filtered out, indicating reliable rule extraction.
  • Hyperparameter analysis reveals that optimal λ₁ and λ₂ values differ across datasets, with balanced supervision being most effective on FB15K-237.
  • The contrastive strategy significantly improves performance by mitigating sparse supervision in subgraphs.

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.