Abstract
Knowledge Graphs (KGs) are foundational to many AI applications but suffer from inherent incompleteness. While traditional translation-based embedding models focus on direct entity-relation links, they often overlook the semantic richness of multi-hop paths. This paper proposes Relation Path Embedding (RPE), a novel framework that explicitly models relation paths through path-specific projections and type constraints. Experimental results on benchmark datasets like FB15K and WN11 demonstrate that RPE significantly improves link prediction and triple classification accuracy by capturing the latent semantics of indirect connections.
Introduction
Knowledge Graphs represent facts as triples $(h, r, t)$. Most existing embedding models, such as TransE, represent entities and relations in a low-dimensional vector space where $h + r \approx t$. However, these models primarily consider direct links, ignoring the wealth of information contained in relation paths—sequences of relations connecting entities indirectly. For instance, the path $Person \xrightarrow{born\_in} City \xrightarrow{located\_in} Country$ strongly implies a "nationality" relation.
Furthermore, simple models struggle with "multi-mapping" relations (1-to-N, N-to-1), where a single head and relation can validly point to multiple tails. To address these limitations, the authors introduce RPE, which treats paths as extended translations and projects entities into path-specific latent spaces.
Methodology
The RPE model introduces three key components to enhance KG representations:
1. Path-Specific Projection
The primary innovation of RPE is the transition from a global relation space to a path-specific projection. For a given relation path $p = (r_1, r_2, ..., r_l)$, the model projects the head and tail entities into a latent space defined by $p$. This allows the model to capture the unique semantic context of the sequence.
To avoid the parameter explosion associated with learning a unique matrix for every possible path, RPE dynamically constructs path projection matrices ($M_p$) from individual relation matrices ($M_{r_i}$). The authors evaluate two composition strategies:
- Addition Composition (ACOM): $M_p$ is the sum of the matrices of relations in the path.
- Multiplication Composition (MCOM): $M_p$ is the product of the matrices.
2. Path-Specific Type Constraints
RPE incorporates "type constraints" to ensure semantic consistency. While traditional models might restrict a relation like "born_in" to entities of type "Person" and "Location," RPE extends this logic to entire paths. By using a Bernoulli distribution to sample negative triples that are semantically similar but belong to incorrect categories, the model learns to distinguish between subtle entity types.
3. Path Reliability Filtering
In large KGs, many paths are noisy or coincidental. RPE uses a probability-based algorithm to rank paths based on their reliability. Only the most informative paths are selected for training, which improves both the efficiency and the accuracy of the resulting embeddings.
Evaluation
The model was evaluated on three standard benchmarks: FB15K, FB13, and WN11. These datasets vary in size and relation density, providing a robust test for the model's scalability and generalization.
Key Results
RPE demonstrated substantial improvements over classical baselines:
- Link Prediction: On FB15K, RPE (ACOM) achieved a filtered Mean Rank of 41, compared to 125 for TransE and 77 for TransR. Its Hits@10 reached 85.5%, outperforming PTransE.
- Triple Classification: RPE consistently outperformed baselines, reaching 89.8% accuracy on FB15K, compared to TransR's 87.0%.
- Complexity Handling: The model proved particularly robust in handling complex 1-to-N and N-to-1 relations by leveraging the additional context provided by paths.
Conclusion and Future Work
RPE advances knowledge graph completion by demonstrating that the semantics of relation paths are often more predictive than raw graph structure alone. By composing path representations from relation matrices, the model scales effectively to large graphs. Future research directions include using Recurrent Neural Networks (RNNs) to model path sequences more flexibly and incorporating intermediate nodes to further enrich the path representations.
Summary updated