Abstract
Recently, knowledge graph embedding, which projects symbolic entities and relations into continuous vector space, has become a new, hot topic in artificial intelligence. This paper addresses a new issue of multiple relation semantics that a relation may have multiple meanings revealed by the entity pairs associated with the corresponding triples, and proposes a novel Gaussian mixture model for embedding, TransG. The new model can discover latent semantics for a relation and leverage a mixture of relation component vectors for embedding a fact triple. To the best of our knowledge, this is the first generative model for knowledge graph embedding, which is able to deal with multiple relation semantics. Extensive experiments show that the proposed model achieves substantial improvements against the state-of-the-art baselines.
Introduction
In the field of Knowledge Graphs (KGs), facts are typically represented as triples $(head, relation, tail)$, such as (Paris, is_capital_of, France). Most traditional "translation-based" models, such as TransE, operate on a simple geometric principle: the vector for the head entity plus the vector for the relation should approximately equal the vector for the tail entity ($h + r \approx t$).
However, this approach assumes that every relation possesses a single, monolithic meaning. In practice, relations are often polysemous. For instance, the relation HasPart might denote a compositional relationship (e.g., a table and its leg) or a locational one (e.g., the Atlantic Ocean and New York Bay). Forcing these distinct semantic meanings into a single relation vector $r$ creates a "semantic mixture" that results in blurry, noisy embeddings. TransG addresses this by introducing a generative framework capable of handling multiple relation semantics.
The TransG Generative Model
TransG is the first generative model for KG embedding. Rather than assigning a single vector to each relation, TransG utilizes a mixture of vectors to represent the various latent meanings a relation might hold.
Generative Process and Automatic Discovery
The model assumes that entities are drawn from a standard normal distribution. For any given triple, it draws a specific semantic component for the relation. To determine the number of semantic clusters for each relation without manual intervention, TransG employs a Chinese Restaurant Process (CRP). This Bayesian non-parametric method allows the model to automatically discover the appropriate number of semantic components based on the data. If a new triple does not align with existing meanings, the model can dynamically instantiate a new semantic component.
Score Function and Training
The probability of a triple is calculated as a weighted sum across all discovered semantic components for that relation. The model is trained using a maximum likelihood principle and optimized via Stochastic Gradient Descent (SGD), effectively learning to identify the most relevant semantic component for a given entity pair while filtering out noise from unrelated meanings.
Experimental Evaluation
The researchers evaluated TransG on four standard benchmark datasets: WN18 and WN11 (subsets of WordNet), and FB15K and FB13 (subsets of Freebase). These benchmarks test the model's performance in Link Prediction (predicting missing entities) and Triple Classification (distinguishing true facts from false ones).
Key Results
TransG demonstrated substantial improvements over previous state-of-the-art baselines:
- Link Prediction: On the FB15K dataset, TransG achieved a HITS@10 of 79.8%, a significant improvement over TransE (47.1%) and outperforming complex models like CTransR (70.2%).
- Triple Classification: The model achieved the highest accuracy across all tested datasets, with an average of 87.4%.
- Efficiency: Despite its complexity, TransG remains efficient by avoiding expensive matrix multiplications and complex path-finding algorithms used in other high-performing models.
Semantic Clarity and Visualization
Qualitative analysis confirms that TransG successfully separates ambiguous relations into distinct clusters. By plotting the difference vectors ($t - h$) for a single relation, the model reveals naturally occurring semantic groupings.
As shown in the visualization, relations like HasPart are successfully partitioned into "Location" and "Composition" clusters, while Film Country is divided into "American," "European," and "Others."
Conclusion and Future Work
TransG represents a significant step forward in knowledge graph embedding by formalizing the observation that relations are often semantic mixtures. While the model shows some sensitivity to data sparsity—specifically regarding entities that appear rarely in training data—its generative nature opens new avenues for knowledge graph augmentation. Future work may explore generating new, plausible triples rather than simply embedding existing ones, leveraging the model's ability to understand latent semantic structures.
Summary updated