Abstract
Scaling Knowledge Graph Embedding (KGE) models to massive datasets like WikiKG90Mv2 presents significant computational and memory challenges. This paper introduces BESS (Balanced Entity Sampling and Sharing), a novel distribution framework designed for high-speed training on specialized hardware. By partitioning entity embeddings across multiple workers and employing a balanced communication strategy, BESS enables efficient training of large-scale models. The authors leveraged this framework to train a diverse ensemble of 85 models, incorporating a "cube root" sampling trick to mitigate distribution shifts between training and validation sets. This approach secured first place in the OGB-LSC 2022 WikiKG90Mv2 challenge, demonstrating state-of-the-art accuracy and remarkable inference efficiency.
Introduction
Knowledge graphs (KGs) are essential for modern AI applications, yet completing them—predicting missing links—becomes exponentially harder as they scale. The WikiKG90Mv2 dataset, with over 91 million entities and 600 million edges, represents the frontier of this challenge. Standard KGE methods struggle with memory constraints and communication bottlenecks in distributed environments.
The BESS Framework
The core innovation, BESS, addresses the memory bottleneck by partitioning the massive entity embedding table across multiple Graphcore IPUs. Unlike traditional parameter server architectures that suffer from congestion, BESS utilizes an "AllToAll" communication pattern. This ensures that every worker performs an equal amount of computation and data exchange, allowing the system to scale linearly with the number of accelerators.
Addressing Distribution Shift
A critical observation made by the researchers was the "distribution shift" between the training and validation sets. Certain relations appeared far more frequently in training than in the evaluation tasks. To align the model's focus, the team implemented a cube root sampling strategy, where training triples are sampled proportional to the cube root of their relation frequency.
As shown in the figure above, this adjustment (orange line) brings the training distribution closer to the validation and test sets, preventing the model from over-optimizing for a small subset of dominant relations.
Diverse Ensembling
Rather than relying on a single massive model, the winning strategy employed a diverse ensemble of 85 models. These models varied across five scoring functions—TransE, TransH, RotatE, DistMult, and ComplEx—and two loss functions.
The performance spread of these individual models highlights that combining different types of models (e.g., distance-based vs. semantic-based) provided a more significant performance boost than scaling any single architecture. A "power-rank" ensembling method was used to aggregate these predictions into a final robust ranking.
Results and Conclusion
The BESS-powered ensemble achieved a validation MRR of 0.2922 and a test-challenge MRR of 0.2562, winning the OGB-LSC 2022 competition. Beyond accuracy, the system's efficiency was notable: an entire epoch of 600 million triples was processed in just 8 minutes on a Graphcore Bow Pod16. Furthermore, BESS enabled full-graph inference against all 91 million entities in roughly 100 seconds, eliminating the need for biased candidate selection. This work underscores the importance of hardware-software co-design and diverse ensembling in tackling the next generation of large-scale AI challenges.
Summary updated