TL;DR
The paper introduces CPSR (Cumulative Path-Level Semantic Reasoning), a novel framework designed for inductive Knowledge Graph Completion (KGC) that effectively handles unseen entities. By adaptively masking noisy structural information and capturing long-range semantic dependencies across entire reasoning paths, CPSR overcomes the limitations of traditional localized reasoning methods to achieve state-of-the-art performance.
What Problem Does This Paper Address?
Knowledge Graphs (KGs) are vital for modern AI tasks like recommendation systems and question answering, but they are notoriously incomplete. While standard Knowledge Graph Completion (KGC) methods can fill in the blanks for known entities, they fail when encountering emerging entities—new nodes that appear after the model has finished training.
Inductive KGC methods attempt to solve this by learning generalizable rules from graph structures rather than memorizing specific entity embeddings. However, current state-of-the-art inductive methods suffer from two major flaws:
- Structural Noise: KGs are dense and complex. Irrelevant relations introduce significant noise during path traversal, throwing off the reasoning process.
- Localized Blindness: Most path-based reasoning models focus heavily on the current node transition, ignoring the broader historical context of the path. This lack of long-range semantic memory leads to "semantic dilution" over longer paths.
Methods
To tackle these challenges, the authors propose the CPSR framework, which consists of two core innovations integrated into a multi-hop reasoning pipeline:
- Query-Dependent Masking Module: Instead of treating all graph edges equally, this module filters out query-irrelevant noise. It extracts logical rules from the graph and calculates a confidence score for how relevant a relation $r$ is to the target query relation $rq$. These scores are normalized into probabilities to guide a Bernoulli sampling process, effectively masking out noisy edges while preserving critical structural pathways.
- Global Semantic Scoring Module: To prevent the model from forgetting the path history, CPSR evaluates the entire reasoning path as a collective unit. At each step $l$, the score of the path is calculated cumulatively: $$S(P_{0\to l}) = S(P_{0\to (l-1)}) + S^l_{cur}$$ By adding the current node's semantic contribution ($S^l_{cur}$) to the archived history score ($S(P_{0\to (l-1)}$), the model maintains long-range semantic dependencies across the entire sequence.
Finally, the framework employs a greedy Top-$k$ strategy to select the highest-scoring paths, updates the entity embeddings iteratively, and uses a multi-class log-loss function for training.
Datasets
The authors evaluated CPSR on eight standard inductive benchmark datasets derived from two widely recognized KGs:
- WN18RR (v1, v2, v3, v4): A subset of WordNet, focusing on lexical relations between words.
- FB15k-237 (v1, v2, v3, v4): A subset of Freebase, containing real-world facts and diverse relation types.
Each dataset version represents a distinct inductive setup where the training graph and the evaluation graph contain completely disjoint sets of entities.
Key Insights and Ideas
- Context-Aware Pruning: Graph pruning shouldn't be static. By making the masking mechanism query-dependent, the model dynamically reshapes the graph topology to suit the specific question it is trying to answer.
- Reasoning is Not a Markov Process: Traditional models often treat path traversal like a Markov chain, where the next step only depends on the current state. CPSR demonstrates that treating path reasoning as a cumulative, memory-retaining process drastically improves link prediction accuracy for unseen entities.
Key Results
CPSR was compared against nine classic and recent inductive KGC baselines (including strong competitors like AdaProp and A*Net).
- State-of-the-Art Performance: As shown in the main results table, CPSR achieved the highest Mean Reciprocal Rank (MRR) across almost all versions of both datasets, occasionally outperforming the second-best baseline by over 6% (e.g., WN18RR v1 and v2).
- Ablation Proof: Ablation studies confirmed that removing either the masking module ("w/o M") or the global semantic scoring module ("w/o S") led to a clear drop in performance, validating that both noise filtering and long-range memory are essential.
Limitations and Future Work
Despite its strong performance, the authors note two primary limitations:
- Greedy Bottleneck: The path extension relies on a greedy Top-$k$ strategy. If a path scores poorly in the early hops but contains a crucial logical breakthrough in later hops, it might be prematurely pruned.
- Computational Overhead: Continuously calculating global semantic relevance relative to the query across long paths introduces extra computational weight, which can slow down processing when dealing with highly dense graphs containing high-degree nodes.
Future work will likely focus on optimizing path-searching efficiency and exploring softer, non-greedy path selection strategies.
Summary updated