Introduction
Knowledge Graphs (KGs), such as Wikidata and Freebase, serve as critical infrastructure for modern AI applications, including search engines and recommendation systems. Despite their utility, KGs are often incomplete. Knowledge Graph Completion (KGC) aims to predict missing triples—relationships between entities—to fill these gaps. Historically, the field has been split between embedding-based methods, which are fast but ignore textual descriptions, and text-based methods, which leverage Pre-trained Language Models (PLMs) like BERT but have surprisingly lagged in performance.
The Bottleneck: Inefficient Contrastive Learning
The primary reason text-based models have underperformed is not a lack of semantic understanding, but rather a limitation in training efficiency. Because processing text with BERT is computationally expensive, previous models were restricted to using only a few negative samples during training. In contrast, embedding-based models can easily utilize hundreds of negatives, making them more robust.
The SimKGC Approach
SimKGC addresses this bottleneck through a streamlined bi-encoder architecture and a sophisticated negative sampling strategy. By decoupling the encoding of the head-relation pair from the tail entity, SimKGC enables the use of thousands of negative samples.
The model employs a "Triple-Threat" negative sampling strategy:
- In-batch negatives: Utilizing tails from other triples within the same training batch.
- Pre-batch negatives: Caching embeddings from previous batches to further expand the pool.
- Self-negatives: Using the head entity itself as a negative for the tail. This prevents the model from relying on simple word-matching between descriptions and forces it to learn the specific relationship.
As shown in the figure above, the quantity of negative samples is a decisive factor in model performance. Increasing the pool size from 5 to 1024 negatives leads to a dramatic improvement in Mean Reciprocal Rank (MRR).
Additionally, SimKGC incorporates a graph-based re-ranking step. This post-processing technique boosts the scores of candidate entities that are within $k$-hop neighbors of the head entity in the training graph, combining semantic power with topological awareness.
Key Results and Benchmarks
SimKGC was evaluated on three major benchmarks: WN18RR, FB15k-237, and the massive Wikidata5M dataset. The results demonstrate that SimKGC effectively bridges the gap between text-based and embedding-based methods, setting new state-of-the-art records.
On WN18RR, SimKGC improved the MRR from 47.6 to 66.6, a massive 19% gain. The performance on Wikidata5M was even more striking, particularly in the inductive setting (predicting links for unseen entities), where MRR jumped from 49.3 to 71.4.
Insights and Efficiency
A key innovation is the use of self-negatives. Because head and tail descriptions often share significant textual overlap, models can become "lazy" by matching keywords. Forcing the model to distinguish the head from the correct tail prevents this spurious matching.
Furthermore, the bi-encoder setup offers immense efficiency gains. While a traditional cross-encoder would take thousands of hours to compute embeddings for a large dataset like Wikidata5M, SimKGC completes the task in approximately 40 minutes using two GPUs.
Conclusion and Future Directions
SimKGC proves that for text-based KGC, the scale and quality of negative samples are more important than architectural complexity. While the model excels on most benchmarks, it remains competitive but less dominant on extremely dense graphs like FB15k-237, where textual information is less predictive of the underlying structure. Future work may explore better handling of "false negatives"—true facts that are missing from the KG and thus incorrectly used as negative samples during training.
Note: Human evaluation revealed that nearly half of the "errors" made by SimKGC were actually correct facts missing from the ground-truth Knowledge Graph, suggesting its real-world utility is even higher than reported metrics.
Summary updated