Introduction
Knowledge Graph Embedding (KGE) models map entities (e.g., "Paris") and relations (e.g., "capital_of") into low-dimensional spaces to predict missing links in a graph. While standard models like TransE or DistMult represent these as fixed point vectors, point vectors fail to capture the uncertainty or ambiguity inherent in real-world knowledge.
Previous attempts to model uncertainty, such as KG2E, represented entities as Gaussian random variables. However, these approaches often hit mathematical barriers, as computing the probability density function (PDF) of the sum or difference of complex random variables is frequently intractable. This paper introduces Normalizing Flows Embedding (NFE), a framework that builds highly expressive KGE models that capture uncertainty while remaining computationally efficient.
Methodology
The authors propose a unified perspective of KGE using group theory, viewing embeddings as elements of a symmetric group (permutations of a set). They demonstrate that traditional point-vector models are deterministic special cases of this broader framework.
To introduce uncertainty, NFE embeds entities and relations as permutations of a set of random variables using Normalizing Flows:
- The Base: The process starts with a simple, tractable random variable (e.g., Uniform or Standard Normal distribution).
- The Flow: A sequence of invertible functions (normalizing flows) representing the head entity and the relation is applied. This transforms the simple distribution into a complex one representing the predicted tail entity.
- The Scoring Function: The model computes the similarity between the flow of the (head + relation) and the flow of the actual tail.
- The Metric: Wasserstein distance is used to measure similarity. The authors mathematically prove that n-dimensional Wasserstein distance can be decomposed into a sum of 1-dimensional distances if the distributions share the same copula, ensuring tractability.
The authors instantiate this with two models: NFE-1 (using affine functions) and NFE-2 (using more expressive piecewise linear functions).
Key Insights
- Grand Unification: By viewing embeddings through symmetric groups, the authors unify translation-based (TransE) and multiplicative (DistMult) models.
- Bypassing Intractability: Instead of direct parameterization of complex variables, NFE applies invertible functions to simple variables, making PDF calculations efficient.
- Wasserstein Advantage: Wasserstein distance is preferred over KL divergence because it remains stable even when the support sets of two distributions do not overlap.
- Logical Rule Learning: NFE is mathematically proven to learn standard logical rules, including symmetry, antisymmetry, inversion, and composition.
Experimental Results
The model was evaluated on three standard benchmarks: WN18RR, FB15k-237, and YAGO3-10.
As shown in the results table, NFE-1 and NFE-2 outperform a wide range of baselines across all datasets. Notably, on YAGO3-10, NFE-1 achieved a state-of-the-art 0.570 MRR and 0.697 Hits@10. Ablation studies (comparing NFE-1 to NFE-w/o-uncertainty) confirm that explicitly modeling uncertainty is critical for performance; as the model approaches a deterministic point-vector state, accuracy consistently drops.
Conclusion
NFE provides a robust, theoretically grounded method for incorporating uncertainty into Knowledge Graph Embeddings. By leveraging normalizing flows and group theory, it achieves state-of-the-art results while maintaining computational efficiency. Future work may explore even more expressive flow architectures, such as cubic splines or invertible neural networks, to further enhance distributional representation.
Summary updated