arXiv:2609.02216cs.AISep 2026

Manuscript Offprint

arXiv:2609.02216

PEARL: Path-Entity Aligned Relational Learning with Contextual Subgraphs for Inductive Knowledge Graph Completion

Yunchi Yang, Longlong Li, Cunquan Qu

Abstract

Inductive knowledge graph completion (IKGC) aims to predict missing links involving entities unseen during training, requiring models to learn transferable relational and structural patterns. Existing subgraph- and path-based approaches often encode relational paths independently of their surrounding query subgraphs, although the predictive relevance of a path may vary across structural contexts. We propose PEARL, a Path-Entity Aligned Relational Learning framework that models paths as context-conditioned reasoning signals. PEARL constructs a query-specific contextual subgraph from the union of the query entities' neighborhoods and uses a large language model (LLM)-guided retriever to distill semantically relevant paths. It then builds a bipartite interaction graph over paths, contextual entities, and a global subgraph representation, allowing path embeddings to adapt to local and global structural evidence. To suppress noise introduced by the enlarged context, PEARL employs a dual-view contrastive objective that promotes representation consistency under stochastic contextual perturbations. Experiments on WN18RR, FB15k-237, and NELL-995 show that PEARL obtains the best average Hits@10 among the compared IKGC methods on all three benchmarks. Ablation studies, efficiency analyses, and case studies further validate the contributions of contextual subgraph modeling, semantic path retrieval, path-entity interaction, and contrastive regularization.

Keywords: Inductive Knowledge Graph Completion; Large Language Models; Path-Entity Alignment; Context-aware Path Reasoning.

1 Introduction

Knowledge Graphs (KGs) have become a fundamental infrastructure for numerous AI applications, including recommendation [1,2], question answering [3,4], and semantic search [5,6], by organizing factual knowledge as relational triples. Despite their large scale, real-world KGs are inherently incomplete, motivating extensive research on knowledge graph completion (KGC) to predict missing facts [7,8]. Most existing KGC models

*Corresponding author.

are developed under the transductive setting, where all entities are assumed to be observed during training. However, real-world KGs evolve continuously and frequently introduce new entities. For example, e-commerce knowledge graphs are constantly expanded with newly released products and brands. Retraining the entire model whenever new entities arrive is therefore impractical [9]. Consequently, inductive knowledge graph completion (IKGC) [10–12] has attracted increasing attention, requiring models to learn transferable relational and structural patterns that generalize to unseen entities rather than relying on entity-specific embeddings.

Existing IKGC methods mainly exploit three types of reasoning evidence. The first is rule-based reasoning [13,14], which learns transferable logical rules and naturally supports inductive inference through relation patterns. The second is subgraph evidence [15–18], which captures the local structural context surrounding the query entities and enables reasoning through neighborhood interactions. The third is path evidence [19–21], which provides explicit multi-hop relational chains connecting the query entities and offers complementary logical clues beyond local structural information. These three paradigms have significantly advanced inductive knowledge graph completion from different perspectives.

Effective inductive reasoning often benefits from exploiting a broad range of relational evidence surrounding the query entities, as additional triples may provide complementary structural and semantic clues for relation prediction. However, real-world knowledge graphs inevitably contain noisy or irrelevant information [22,23], making not all available evidence equally useful for reasoning. Moreover, the predictive utility of a relational path may vary considerably across different structural contexts [24]. For example, the same reasoning path (CompanyA_{A}, invests_in, StartupX_{X}, produces, ProductY_{Y}) may strongly support predicting an acquisition in one query, particularly when the surrounding structure reveals that StartupX_{X} heavily relies on CompanyA_{A}'s supply chain and CompanyA_{A} holds a majority stake. In another query, however, the same path may provide much weaker evidence if CompanyA_{A} is merely a minor investor and ProductY_{Y} is primarily sold to rival companies, suggesting a purely financial relationship rather than strategic alignment.

These characteristics give rise to two key challenges. First, how can richer relational and structural information be effectively incorporated while preserving the core semantics of the target triple and limiting the influence of noisy evidence? Second, local subgraphs often contain multiple relational paths connecting the query entities, some of which may be redundant or only weakly related to the target relation [25]. Since the semantic importance of a path may further vary across different local structural environments, it remains challenging to identify informative reasoning paths and appropriately associate them with their surrounding context for query-specific reasoning.

To address these challenges, we propose PEARL, an IKGC framework based on Path-Entity Aligned Relational Learning. PEARL first constructs union-based contextual subgraphs to capture richer structural evidence. To alleviate the accompanying noise, a dual-view subgraph contrastive objective is introduced to preserve invariant structural semantics. Meanwhile, an LLM-guided path retrieval module ranks candidate paths and retains the most informative logical evidence. Finally, PEARL explicitly aligns paths with contextual entity nodes and the global subgraph representation through a Bipartite Graph Neural Network (BGNN), enabling context-conditioned path reasoning. Consequently, identical relational paths can be interpreted differently under different structural environments, leading to more robust inductive reasoning.

Our main contributions are summarized as follows:

  • We propose PEARL, a unified framework for inductive knowledge graph completion that jointly models contextual subgraphs and relational paths to improve reasoning over unseen entities.

  • We develop an LLM-guided path retrieval and path-entity alignment strategy, together with contextual subgraph contrastive learning, to identify informative relational evidence and learn robust context-aware representations.

  • Extensive experiments on WN18RR, FB15k-237, and NELL-995 demonstrate that PEARL achieves strong overall performance and the best average Hits@10 across all three benchmarks.

References (41)