Introduction
Knowledge Graphs (KGs) are essential for modern AI applications, providing structured factual information for search engines and recommendation systems. Knowledge Graph Embeddings (KGE) facilitate this by mapping entities and relations into continuous vector spaces. However, as KGE models often rely on open-source or user-generated data, they are vulnerable to data poisoning. This paper investigates the first systematic study of such attacks, demonstrating how minimal, strategic modifications to training data can significantly degrade model performance.
Attack Methodologies
The study introduces two primary classes of poisoning attacks:
Direct Attacks
In a direct attack, the adversary modifies facts immediately associated with the target entities.
- Direct Deletion: Removing "anchor" facts that stabilize an entity's embedding.
- Direct Addition: Inserting synthetic facts designed to shift an entity's embedding toward a target location that invalidates specific facts.
The authors utilize a gradient-guided approach, calculating an optimal shifting vector to identify the most impactful perturbations, rather than relying on random changes.
Indirect Attacks
Indirect attacks are more sophisticated and stealthy. Instead of targeting the entities directly, the attacker modifies facts several hops away in the KG. These changes propagate through the graph during the embedding training process. While requiring a higher "budget" of modifications, indirect attacks are significantly harder to detect via standard data sanity checks.
Experimental Evaluation
The attacks were evaluated on two benchmark datasets: FB15k (real-world facts) and WN18 (lexical relations). Three representative KGE models—TransE, TransR, and RESCAL—were tested to assess vulnerability across different architectures.
Key Findings
The experimental results reveal several critical insights into KGE vulnerability:
- High Sensitivity to Perturbations: KGE models are remarkably fragile. As shown in the figure below, even a small number of strategic perturbations can lead to a sharp decline in Mean Reciprocal Rank (MRR) and Hits@10 (H@10).
- Graph Density and Vulnerability: Sparsely populated graphs like WN18 are more susceptible than denser graphs like FB15k. In sparse graphs, entities have fewer neighbors to "anchor" their embeddings, making them easier to manipulate with fewer changes.
- Efficiency of Gradient-Based Attacks: The proposed gradient-guided strategies consistently outperformed random baselines. For instance, on the WN18 dataset using the TransE model, a Direct Deleting attack reduced the MRR from 0.39 down to 0.11 with only a tiny number of deletions. Most direct attacks were generated in less than one second, highlighting their practical feasibility for adversaries.
Conclusion
This research underscores a significant security gap in Knowledge Graph Embeddings. While KGE models are powerful, their reliance on potentially untrusted data sources makes them easy targets for poisoning. Future work must focus on developing robust KGE architectures and effective detection mechanisms to defend against both direct and stealthy indirect attacks.
Summary updated