Introduction
Knowledge Graphs (KGs) are structured repositories of facts, typically represented as triples like (Paris, capitalOf, France). Because KGs are often incomplete, Knowledge Graph Embedding (KGE) models—such as ComplEx, DistMult, and ConvE—are used to map entities and relations into high-dimensional vector spaces to predict missing links. However, these neural models are notoriously "black boxes," making it difficult to understand the logic behind their predictions.
This research introduces a novel black-box adversarial attack that probes KGE models using symbolic rule learning. By identifying the logical "explanations" for a model's predictions and perturbing them, the authors demonstrate that complex neural embeddings often rely on the same simple statistical regularities as human-readable rules.
Methodology: Symbolic-to-Neural Attacks
The proposed approach leverages abductive reasoning and symbolic rule learning to generate adversarial perturbations without requiring access to the model's internal weights or gradients.
- Rule Extraction: The
AnyBURLtool is used to extract logical rules (e.g., "If X is born in Y and Y is located in Z, then X has nationality Z") from the training data. - Abductive Reasoning: For a given target prediction made by the KGE model, the system identifies the most confident symbolic rule that predicts the same fact. The specific triples in the training set that satisfy this rule constitute the "explanation."
- Perturbation Strategies:
- Deletion (Del): Removing the explanation triple from the training set.
- Addition (Add): Swapping an entity in the explanation triple with a random neighbor to create a "senseless" fact and adding it to the training set.
- Evaluation: The KGE model is retrained on the modified data, and the degradation of the target prediction is measured using Mean Reciprocal Rank (MRR) and Hits@1 (h@1).
Experimental Results
The attacks were evaluated on two standard benchmarks: WN18RR (lexical relations) and FB15k-237 (world knowledge).
Performance on WN18RR
On the WN18RR dataset, the proposed black-box method proved highly effective, often matching or outperforming state-of-the-art white-box attacks.
As shown in the table above, the "Ours" approach achieves significant degradation in model performance. Notably, on the ConvE model, the method achieved a degradation in Hits@1 that was 7.3 percentage points higher than the next best baseline in the "Add" setting (0.758 vs 0.831).
The Redundancy Problem in FB15k-237
The effectiveness of the attacks varied significantly between datasets. While WN18RR was highly vulnerable, FB15k-237 proved much more robust.
The authors attribute this to the high redundancy of FB15k-237. In dense graphs, if one "explanation" path is removed or corrupted, the KGE model can often find alternative paths in the data to support the same prediction. This suggests that robustness in Knowledge Graphs is a function of data density.
Key Insights
- Symbolic-Neural Alignment: The success of a black-box attack based on simple logical rules suggests that KGE models, despite their mathematical complexity, essentially learn the same logical regularities as symbolic learners.
- Efficiency: Generating an attack for a specific triple takes approximately 0.05 seconds after an initial rule-learning phase of 100 seconds, making this approach significantly faster than many gradient-based methods.
- Attacks as Explanations: The study frames adversarial attacks as "explanations in reverse." If the removal of triple A causes the model to lose confidence in prediction B, then triple A serves as a symbolic explanation for B.
Conclusion
This work demonstrates that black-box adversarial attacks can be as potent as white-box methods in the KGE domain. By bridging the gap between symbolic logic and neural embeddings, the researchers provide a powerful tool for interpreting and auditing "black-box" link prediction models. Future work may explore multi-triple attacks to overcome the redundancy of dense graphs and extend these methods to transformer-based architectures.
Summary updated