Abstract
Recent advances in Neural Variational Inference allowed for a renaissance in latent variable models in a variety of domains involving high-dimensional data. While traditional variational methods derive an analytical approximation for the intractable distribution over the latent variables, here we construct an inference network conditioned on the symbolic representation of entities and relation types in the Knowledge Graph, to provide the variational distributions. The new framework results in a highly-scalable method. Under a Bernoulli sampling framework, we provide an alternative justification for commonly used techniques in large-scale stochastic variational inference, which drastically reduce training time at a cost of an additional approximation to the variational lower bound. We introduce two models from this highly scalable probabilistic framework, namely the Latent Information and Latent Fact models, for reasoning over knowledge graph-based representations. Our Latent Information and Latent Fact models improve upon baseline performance under certain conditions. We use the learnt embedding variance to estimate predictive uncertainty during link prediction, and discuss the quality of these learnt uncertainty estimates.
Introduction
Knowledge Graphs (KGs) serve as structured databases of facts, typically represented as triples: (subject, relation, object). Despite their utility, KGs are often incomplete. While deterministic models like DistMult and ComplEx are effective at predicting missing links, they provide only "point estimate" scores. They cannot express uncertainty, which is a critical requirement for high-stakes decision-making (e.g., medical interactions) and active learning strategies. Furthermore, traditional Bayesian methods for graphs often involve complex tensor inversions that do not scale to real-world KGs containing millions of entities. This paper addresses these challenges by introducing a scalable framework for Neural Variational Inference in KG embeddings.
Methodology
The authors propose a unified variational framework that treats entities and relations as latent variables rather than fixed points. This is achieved through two primary generative models:
- Latent Information Model (LIM): Treats entity and relation embeddings as separate latent variables.
- Latent Fact Model (LFM): Treats all embeddings as a single set of latent variables.
To maintain scalability, the framework utilizes an inference network to provide variational distributions and employs Stochastic Variational Inference (SVI). By using a Bernoulli sampling framework, the authors provide a formal justification for "negative sampling," framing it as an approximation of the Evidence Lower Bound (ELBO). This allows the model to adapt popular scoring functions into a probabilistic context, outputting a distribution over possible links.
Key Insights and Results
A significant discovery in this work is that the learned variance of an embedding serves as a proxy for frequency; rare entities or relations exhibit higher variance (uncertainty), while frequent ones show lower variance. Additionally, the use of a unit Gaussian prior in the ELBO acts as a natural regularizer, reducing the need for extensive hyperparameter tuning.
On the WN18 benchmark, the Variational ComplEx (LIM) model achieved a Hits@10 of 0.952, outperforming previous generative models. Beyond raw performance, the authors validated the quality of the uncertainty estimates through precision-coverage experiments.
As illustrated above, as the model's "coverage" (the percentage of facts it is willing to predict) decreases, the precision (Hits@1) increases. This trend confirms that the model's internal confidence metric is effectively grounded in the data, allowing for a reliable precision-coverage trade-off.
Discussion and Future Work
While the models demonstrate state-of-the-art generative performance, a performance gap was noted on asymmetric datasets like WN18RR compared to standard non-generative models. This suggests that generative models may be inherently better suited for symmetric relationships. Future research directions include exploring non-Gaussian priors, such as von-Mises distributions for circular data, and developing more sophisticated methods to utilize latent embedding variance for uncertainty estimation beyond simple likelihood thresholds.
Summary updated