Abstract
Knowledge Graph Completion (KGC) often faces the challenge of "long-tail" relations with limited training examples, known as Few-Shot KG Completion (FKGC). Traditional methods relying on neighbor aggregation often suffer from noise and lack of expressiveness. We present P-INT (Path-based INTeraction), a novel model that shifts the focus to multi-hop path interactions between entity pairs. By extracting paths via two-sided BFS and modeling fine-grained similarities through an interaction matrix and RBF kernels, P-INT achieves significant improvements (11–14%) over state-of-the-art baselines on standard benchmarks.
Introduction
Knowledge Graphs (KGs) such as Freebase and NELL are essential for various AI applications but are frequently incomplete. Predicting missing links in these graphs is difficult when relations have only a few support examples. Existing FKGC models typically represent entities by averaging embeddings of their immediate neighbors. This approach has two primary limitations:
- Low Expressiveness: Entities with similar neighbor types (e.g., two "Entrepreneurs") may be indistinguishable despite having different relational roles.
- Signal Dilution: Irrelevant neighbors introduce noise, obscuring the critical signals needed to match query pairs to support pairs.
P-INT addresses these issues by leveraging the "logic chains" formed by paths between entities, providing a more robust and interpretable mechanism for few-shot reasoning.
Methodology: Reasoning and Matching
The P-INT framework consists of two primary stages: path extraction (Reasoning) and interaction modeling (Matching).
Path Extraction (Reasoning)
Instead of simple neighbor aggregation, P-INT identifies sequences of relations (paths) connecting head and tail entities. To maintain efficiency, the model employs a two-sided Breadth-First Search (BFS), searching outward from both entities simultaneously to find intersecting paths of a fixed length. A "support-relevant" sampling strategy ensures that extracted query paths are semantically aligned with those found in the support set.
Interaction Modeling (Matching)
The core innovation lies in how these paths are compared:
- Path Representation: Paths are encoded using Gated Recurrent Units (GRUs) to capture relational sequences.
- Interaction Matrix: A similarity matrix is constructed to compare every path in the support set with every path in the query set.
- Kernel Pooling: Radial Basis Function (RBF) kernels extract features from this matrix, capturing both identical and semantically similar path matches.
- Relation-Aware Attention: An attention mechanism prioritizes paths most relevant to the target relation (e.g., identifying "son_of" → "father_in_law" as a key path for the "spouse" relation).
Evaluation and Results
P-INT was evaluated on the NELL-One and FB15k237-One benchmarks. The model demonstrated substantial performance gains across all metrics, particularly in low-resource scenarios.
Key findings include:
- Hits@1 Improvement: P-INT improved top-1 accuracy by 11.2% on NELL-One and 13.4% on FB15k237-One for 1-shot tasks.
- Robustness: The model consistently outperformed meta-learning baselines like GMatching and FAAN, proving that path-based interactions are more effective than neighbor-based aggregation for few-shot learning.
Conclusion and Future Work
P-INT demonstrates that paths provide a superior "logic chain" for relational reasoning compared to immediate neighbors. By modeling interactions directly, the model avoids the dilution of helpful signals. However, the approach remains sensitive to graph sparsity; if no paths exist between entities, the model cannot reason effectively. Future research may explore hybrid models that combine path-based reasoning with neighbor information to handle extremely sparse graphs and improve tie-breaking between similar path structures.
Summary updated