NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Augmented Knowledge Graph Completion via Pre-trained Language Models

Shixuan Liu, Pouya Ghiasnezhad Omran, Kerry TaylorISWC (Posters/Demos/Industry) 2023

Abstract

Knowledge Graph Completion (KGC) is a critical task for maintaining the utility of large-scale knowledge bases. While Pre-trained Language Models (PLMs) like KG-BERT have shown promise by treating link prediction as a text classification problem, they are often limited by data sparsity and the inability to capture latent logical connections. We present a framework that utilizes two data augmentation strategies: Data Augmentation via Multi-Hop (DAMH) and Data Augmentation via Implicit relations (DAI). These methods generate synthetic training data from existing graph structures and logical rules, respectively. Experimental results demonstrate significant improvements in link prediction accuracy, particularly in few-shot scenarios.

Introduction

Knowledge Graphs (KGs) such as Wikidata and WordNet are foundational to modern AI applications, yet they remain notoriously incomplete. Traditional KGC methods often struggle with "few-shot" relations—those with very few training examples. While models like KG-BERT leverage the semantic power of PLMs to "read" entity descriptions, their performance is bottlenecked by the availability of explicit training triples. Furthermore, standard models often fail to exploit implicit information logically implied by the graph's structure.

Methodology

The proposed approach densifies training data through two primary augmentation strategies, integrated into a unified workflow for LM-based KGC.

Workflow of the proposed data-augmented KGC framework, illustrating DAMH and DAI paths.

Data Augmentation via Multi-Hop (DAMH)

DAMH addresses sparsity by identifying multi-hop paths. If a path $h \to e_1 \to t$ exists, a synthetic triple $(h, r_1 \oplus r_2, t)$ is created. By treating chains of relations as single "multi-hop" relations, the model learns transitive logic. This provides essential context for entities that lack direct connections, which is particularly beneficial for few-shot learning.

Data Augmentation via Implicit Relations (DAI)

DAI utilizes the AnyBURL rule-learning engine to extract Horn rules (e.g., co_work(X, Y) ← work_at(X, A) ∧ work_at(Y, A)). To account for the inherent uncertainty in these rules, the framework employs embedding dropout. Instead of adding predicted triples as hard facts, the model uses noisy relation embeddings to signal that these connections are plausible but not guaranteed.

Experimental Evaluation

The methods were evaluated on four benchmarks: WN18RR, UMLS, and few-shot versions of FB15k-237 and NELL-ONE. The augmentation significantly expanded training sets; for instance, DAMH increased the size of WN18RR and UMLS by 158% and 307%, respectively.

Performance comparison of KG-BERT variants across multiple benchmarks.

Key Results

As shown in the results table, the integration of DAMH and DAI leads to substantial performance gains:

  • WN18RR: The combined model (KG-BERT + DAI + DAMH) achieved a Hits@10 of 63.0, a 10.6% improvement over the baseline KG-BERT (52.4).
  • Few-Shot Performance: On FB15k-237 (few-shot), DAMH alone improved Hits@10 from 50.7 to 57.8, highlighting its effectiveness when direct training data is scarce.
  • Confidence: Mean Rank (MR) improved significantly on WN18RR, indicating higher model confidence in correct predictions.

Discussion and Conclusion

This research successfully bridges symbolic logic and deep learning. By using Horn rules to generate the data required by BERT-based models, the framework exploits both graph structure and textual semantics. The use of dropout for implicit relations is a novel way to handle "fuzzy" logic within a neural framework.

While effective, the approach inherits the high computational cost of BERT-based architectures. Future work will focus on integrating these augmentation strategies with more efficient KGC models and explicitly incorporating rule confidence scores into the training loss.

Summary updated

BibTeX
@inproceedings{liu2023data,
  author = {Shixuan Liu and Pouya Ghiasnezhad Omran and Kerry Taylor},
  title = {{Data Augmented Knowledge Graph Completion via Pre-trained Language Models}},
  booktitle = {ISWC (Posters/Demos/Industry)},
  year = {2023},
}
Figure