Introduction
Knowledge Graphs (KGs) such as Freebase and WordNet serve as foundational structures for various AI applications. However, these graphs are often incomplete. Knowledge Graph Embedding (KGE) methods aim to address this by representing entities and relations in continuous vector spaces. Early successful models like TransE and TransH utilized a translation-based approach where a relationship $(h, r, t)$ is modeled as $h + r \approx t$.
Despite their success, these models assume that entities and relations exist within the same semantic space. This "one-size-fits-all" approach is fundamentally flawed because entities possess multiple facets. For instance, "London" can be viewed as a political capital, a geographical location, or a historical site. A specific relation like is_capital_of only interacts with the "capital" aspect. Forcing all these diverse attributes into a single shared space limits the model's ability to handle complex 1-to-N, N-to-1, and N-to-N relationships.
Methodology: TransR and CTransR
To overcome these limitations, the authors introduce TransR, which separates the representation of entities and relations into distinct mathematical spaces.
TransR
In TransR, entities are initially represented in a $k$-dimensional entity space. For each specific relation $r$, a projection matrix $M_r \in \mathbb{R}^{k \times d}$ is learned. This matrix projects the head entity $h$ and tail entity $t$ into a $d$-dimensional relation-specific space:
$$h_r = hM_r, \quad t_r = tM_r$$
The translation operation is then performed in this specific space: $h_r + r \approx t_r$. This mechanism allows the model to filter out irrelevant entity features and focus only on the attributes pertinent to the relation at hand.
Cluster-based TransR (CTransR)
The authors further extend this concept with CTransR. Recognizing that a single relation label can encompass diverse semantic patterns (e.g., location_contains might link a country to a city or a continent to a country), CTransR clusters the vector offsets $(h - t)$ for each relation. It then learns a unique relation vector $r_c$ for each cluster, allowing for even finer-grained semantic modeling.
Experimental Evaluation
The models were evaluated on standard benchmarks including WN18 and WN11 (WordNet subsets), and FB15K and FB13 (Freebase subsets). Training utilized a margin-based ranking loss to differentiate between valid triples and corrupted ones.
Key Results
TransR and CTransR demonstrated superior performance across multiple tasks:
- Link Prediction: On the FB15K dataset, TransR achieved a Hits@10 (Filter) score of 68.7%, while CTransR reached 70.2%. This represents a significant improvement over TransE's 47.1%.
- Triple Classification: TransR outperformed previous models on WN11 with an accuracy of 85.9%, compared to 75.9% for TransE and 78.8% for TransH.
- Relation Extraction: When integrated with text-based models, TransR improved precision-recall curves, highlighting the value of KG embeddings in traditional NLP tasks.
Discussion and Conclusion
The core innovation of TransR lies in its separation of concerns. By treating entities and relations as fundamentally different objects and providing them with distinct spaces, the model effectively implements a "feature filter." This allows entities to exhibit different "personalities" depending on the relationship being modeled.
While highly effective, TransR introduces increased computational complexity due to the additional projection matrices. Future research directions include exploring correlations between relations to reduce parameter redundancy and developing more deeply integrated models that combine text and knowledge graph data.
Summary updated