Abstract
Knowledge Graph Embedding (KGE) models often struggle with data sparsity, where rare but semantically significant triplets are under-weighted by traditional count-based subsampling (CBS) methods. This paper introduces Model-based Subsampling (MBS) and Mixed Subsampling (MIX), which utilize pre-trained sub-models to estimate triplet importance in a continuous vector space. Our experiments across benchmark datasets like FB15k-237 and WN18RR demonstrate that these methods effectively capture semantic importance, leading to consistent performance gains over standard frequency-based approaches.
Introduction
Knowledge Graphs (KGs) represent facts as triplets $(h, r, t)$. Due to the massive scale of real-world KGs, training typically involves negative sampling. To prevent overfitting on frequent entities, subsampling is employed to down-weight common items. However, standard Count-Based Subsampling (CBS) relies on raw frequency, which often misinterprets rarity in sparse graphs as unimportance. This "sparsity trap" hinders the model's ability to generalize to the long tail of the data distribution.
Proposed Methods: MBS and MIX
To address the limitations of CBS, we propose two novel subsampling strategies:
- Model-based Subsampling (MBS): Instead of raw counts, MBS employs a pre-trained KGE "sub-model" to estimate the appearance probability of a triplet. By mapping entities into a continuous space, the sub-model can infer the likelihood of rare triplets based on semantic similarity.
- Mixed Subsampling (MIX): This approach combines the statistical frequency of CBS with the semantic probability of MBS using a weighting hyperparameter ($\lambda$). This hybrid method balances empirical evidence with inferred semantic importance.
Key Insights
The core advantage of MBS lies in its ability to identify semantically important queries that are statistically rare. By visualizing appearance probabilities, we observe that MBS identifies "spikes" of importance for queries that CBS would ignore due to low frequency.
Furthermore, the choice of sub-model is flexible; even simpler architectures like ComplEx can provide effective weights for more sophisticated target models like RotatE. The performance gains were most dramatic on the sparsest datasets (FB15k-237 and WN18RR), confirming that MBS specifically solves the "sparsity trap" of count-based methods.
Experimental Results
We evaluated our methods on FB15k-237, WN18RR, and YAGO3-10 using five popular KGE architectures: RotatE, TransE, HAKE, ComplEx, and DistMult. MBS and MIX outperformed the standard count-based approach in almost every setting.
On FB15k-237, the MIX method improved the Mean Reciprocal Rank (MRR) of the RotatE model from 34.1 (CBS) to 34.5. Similarly, for the TransE model on WN18RR, the MRR rose from 23.0 (CBS) to 25.0 (MBS). These results were statistically significant, proving that the improvements are robust across different seeds and architectures.
Conclusion and Future Work
Model-based subsampling provides a robust framework for training KGE models on sparse, real-world data. While it introduces some computational overhead due to sub-model pre-training, the performance gains on the "long tail" of Knowledge Graphs are significant. Future research will explore the application of MBS to non-KGE architectures and its robustness in the presence of dataset noise.
Summary updated