Abstract
Bilinear models such as DistMult and ComplEx are effective for knowledge graph (KG) completion but often face performance bottlenecks on large-scale datasets due to memory constraints. These models typically require large batch sizes and numerous negative samples to achieve high accuracy. We propose JoBi (Joint model with Biased negative sampling), a framework that leverages entity-relation pair occurrences to enhance training efficiency and model performance. By combining a joint learning module with a biased negative sampling strategy, JoBi achieves significant improvements on standard benchmarks and a massive 2-million entity dataset, particularly in resource-constrained settings where batch sizes are limited.
Introduction
Knowledge Graph completion involves predicting missing links in structured data, such as triples of (head entity, relation, tail entity). While bilinear embedding models are popular, their effectiveness is often tied to high computational costs. On "wild" datasets with millions of entities, the requirement for large mini-batches and high ratios of negative examples creates a significant memory bottleneck. Furthermore, standard models often struggle to capture implicit type constraints, leading to implausible predictions (e.g., predicting a person as a capital city).
The JoBi Framework
JoBi addresses these challenges through two primary mechanisms that can be integrated into existing bilinear models:
1. Joint Learning ("Jo")
The framework simultaneously trains a standard triple module and an auxiliary "pair" module. The pair module learns to identify whether a specific entity-relation pair (e.g., Berlin + is-capital-of) appears anywhere in the training set. While the modules use separate relation embeddings, they share entity embeddings. This shared representation allows the model to implicitly learn the "types" of entities that are compatible with specific relations without requiring explicit labels.
2. Biased Negative Sampling ("Bi")
Standard training involves generating negative facts by replacing an entity with a random one from the entire graph. JoBi instead employs a biased sampling strategy that prioritizes entities known to appear with the target relation in other contexts. This creates "harder" negative examples, forcing the model to learn finer distinctions between similar entities and improving learning efficiency.
Experimental Results
We evaluated JoBi against standard baselines across multiple datasets, including FB15K-237, YAGO3-10, and a new large-scale dataset, FB1.9M, containing 1.89 million entities and over 19 million triples.
As shown in the results above, JoBi consistently outperforms baseline models like DistMult and ComplEx across all metrics (Hits@1, Hits@3, Hits@10, and MRR). On the YAGO3-10 dataset, JoBi-ComplEx improved Hits@1 from 0.277 to 0.333. On the massive FB1.9M dataset, JoBi achieved a 2.8% absolute improvement in Hits@1 over the strongest baseline.
Efficiency and Scalability
A key finding of this research is JoBi's robustness to limited training resources. While standard models experience a sharp decline in performance as batch sizes decrease, JoBi maintains high accuracy even with significantly smaller batches.
This robustness is critical for scaling to massive graphs where memory constraints are a primary concern. Additionally, JoBi demonstrates faster convergence; on the FB1.9M dataset, it reached peak performance in 30 epochs (approximately 4 days), whereas the baseline required 70 epochs (over 5 days) to reach a lower accuracy ceiling.
Conclusion
By leveraging simple pairwise occurrence information, the JoBi framework significantly enhances the performance and efficiency of bilinear KG completion models. It effectively enforces implicit type constraints and optimizes the utility of negative samples, making it a powerful solution for large-scale knowledge graph embedding tasks.
Summary updated