Abstract
Knowledge graph embedding (KGE) models encode the structural information of knowledge graphs to predict new links. Effective training of these models requires distinguishing between positive and negative samples with high precision. Although prior research has shown that improving the quality of negative samples can significantly enhance model accuracy, identifying high-quality negative samples remains a challenging problem. This paper theoretically investigates the condition under which negative samples lead to optimal KG embedding and identifies a sufficient condition for an effective negative sample distribution. Based on this theoretical foundation, we propose Embedding MUtation (EMU), a novel framework that generates negative samples satisfying this condition, in contrast to conventional methods that focus on identifying challenging negative samples within the training data. Importantly, the simplicity of EMU ensures seamless integration with existing KGE models and negative sampling methods. To evaluate its efficacy, we conducted comprehensive experiments across multiple datasets. The results consistently demonstrate significant improvements in link prediction performance across various KGE models and negative sampling methods. Notably, EMU enables performance improvements comparable to those achieved by models with embedding dimension five times larger.
Introduction
Knowledge Graphs (KGs), such as Freebase or WordNet, serve as critical backbones for many AI applications by representing facts as (head, relation, tail) triplets. Despite their utility, KGs are often incomplete. Knowledge Graph Embedding (KGE) models address this by mapping entities and relations into a continuous vector space to predict missing links.
A fundamental challenge in training KGE models is the selection of negative samples. Standard "Uniform Sampling"—randomly swapping an entity in a true triplet—often produces "easy" negatives that provide little signal for the model. While "hard" negatives (plausible but false facts) are more informative, they are traditionally difficult to identify without expensive search algorithms or complex adversarial training. This paper introduces EMU, a framework that bypasses the search process by generating hard negatives directly in the embedding space.
Methodology: Embedding MUtation (EMU)
EMU is inspired by genetic mutations in evolutionary algorithms. Rather than searching the database for a hard negative entity, EMU generates a synthetic negative vector by mutating the components of a positive triplet's embedding.
The process involves three core steps:
- Mutation and Mixing: EMU takes a positive triplet's tail embedding and a randomly sampled negative tail embedding. It creates a new "mutated" negative vector by replacing a specific percentage of the negative vector's components with components from the positive vector.
- Isotropic Distribution: The authors theoretically prove that for optimal learning, negative samples should be distributed "isotropically" (evenly in all directions) around the positive sample. EMU is designed to naturally satisfy this condition.
- Unbounded Label Smoothing (ULS): Because generated negatives are mathematically close to positives, standard loss functions can become unstable. ULS is introduced to "soften" the penalty, preventing overconfidence and ensuring stable convergence.
Experimental Setup
The framework was evaluated on three benchmark datasets:
- FB15k-237: General world knowledge from Freebase.
- YAGO3-10: Large-scale data from Wikipedia and WordNet.
- WN18RR: Lexical relations from WordNet.
Results: Performance and Efficiency
EMU consistently improved the Mean Reciprocal Rank (MRR) across various base models, including DistMult, ComplEx, RotatE, and TransE. A key finding is the framework's "Dimension Efficiency." EMU allows models with smaller embedding dimensions to match or exceed the performance of much larger models.
As shown in the experimental results, a DistMult model using EMU with an embedding dimension of 200 (MRR 0.329) outperforms the same model without EMU even when that model's dimension is increased to 1000 (MRR 0.327). This suggests that the quality of negative samples is a more critical factor for model performance than raw parameter count.
Discussion and Conclusion
EMU addresses the "Hardness Paradox"—the need for negatives that are challenging but not so close to the positive that they prevent convergence—by mathematically aligning with the theoretical optimal distribution. Its primary advantage is efficiency; as a simple vector operation, it avoids the computational overhead of GAN-based or search-based negative sampling.
While EMU currently adds some computational time per training iteration and is primarily optimized for cross-entropy loss, its ability to significantly reduce required embedding dimensions offers a net gain in memory efficiency. Future work will explore applying the EMU philosophy to broader graph-based tasks like node classification and more complex mutation strategies.
Paper Citation: Takamoto, M., et al. (2025). Optimal Embedding Guided Negative Sample Generation for Knowledge Graph Link Prediction. Transactions on Machine Learning Research.
Summary updated