Abstract
Knowledge Graph (KG) completion is essential for addressing the inherent incompleteness of large-scale factual databases. However, existing embedding models often require large mini-batches and numerous negative samples, creating significant memory bottlenecks. We present JoBi (Joint model with Biased negative sampling), a framework that leverages entity-relation "bigram" occurrences to improve performance and efficiency. By combining a joint training objective with a biased negative sampling strategy, JoBi achieves state-of-the-art results on massive datasets and demonstrates remarkable robustness to small batch sizes.
Introduction
Knowledge Graphs like Freebase and YAGO store facts as triples $(h, r, t)$. Embedding models such as DistMult and ComplEx are widely used to predict missing links by learning low-dimensional representations. A major challenge in scaling these models to real-world KGs with millions of entities is the memory requirement. High-performance training typically necessitates large batch sizes and a high ratio of negative examples, which is often infeasible on standard hardware.
Methodology
The JoBi framework addresses these challenges through two primary innovations:
Joint Training (Jo)
JoBi augments a base bilinear model with an auxiliary "plausibility" module. While the base model scores full triples, the auxiliary module focuses on entity-relation pairs (bigrams) like $(h, r)$ and $(r, t)$. This approach captures implicit type constraints—learning, for instance, that certain entities are "plausible" subjects for specific relations even if a particular triple is false. The modules share entity embeddings, ensuring minimal computational overhead.
Biased Negative Sampling (Bi)
Standard negative sampling involves replacing a triple's head or tail with a random entity. JoBi introduces a biased approach: with probability $p$, an entity is replaced by one that has appeared with that specific relation elsewhere in the training set. This creates "harder" negatives, forcing the model to distinguish between semantically similar entities (e.g., Germany vs. France for the relation is-capital-of) rather than obvious outliers.
Experiments and Results
The framework was evaluated on standard benchmarks (FB15K, FB15K-237, YAGO3-10) and a new large-scale dataset, FB1.9M, containing 1.9 million entities and over 19 million triples.
Robustness to Batch Size
A key advantage of JoBi is its performance stability across varying batch sizes. As shown in Figure 1, JoBi maintains high Hits@10 scores even when the batch size is significantly reduced, whereas baseline models often see performance degradation. This makes JoBi particularly suitable for large-scale applications where GPU memory is a limiting factor.
Performance Gains
JoBi consistently outperforms standard embedding models across multiple benchmarks. For example, JoBi ComplEx improved Hits@1 by 4% on FB15K-237 and 6.4% on FB15K compared to the standard ComplEx baseline, as detailed in the performance tables below.
Efficiency and Qualitative Impact
On the FB1.9M dataset, JoBi reached superior performance in 30 epochs, compared to 70 epochs for the baseline, reducing total training time by approximately one day. Qualitatively, JoBi significantly reduces "type" errors. In a case study on the hasGender relation, JoBi reduced obvious mistakes (predicting a non-gender entity) from 65% to just 2% of total errors.
Conclusion
JoBi demonstrates that incorporating pairwise occurrence information and harder negative samples can significantly enhance KG completion. Its robustness to batch size and improved training efficiency make it a powerful tool for processing massive, real-world knowledge graphs. Future work includes extending this framework to non-bilinear architectures like ConvE or RotatE.
Summary updated