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

Text Augmented Open Knowledge Graph Completion via Pre-Trained Language Models

Pengcheng Jiang, Shivam Agarwal, Bowen Jin, Xuan Wang, Jimeng Sun, Jiawei Han

Abstract

Knowledge Graphs (KGs) are essential for structured information retrieval, yet they suffer from inherent incompleteness. Traditional completion methods often struggle with data sparsity or rely on labor-intensive manual prompt engineering for Pre-trained Language Models (PLMs). This paper presents TAGREAL (Text-Augmented Open Knowledge Graph Completion), a framework that automates the completion process by mining high-quality prompts and retrieving supporting evidence from external text corpora. By leveraging the latent knowledge within PLMs and augmenting it with retrieved context, TAGREAL achieves state-of-the-art results, particularly in low-resource scenarios where training data is scarce.

Introduction

Knowledge Graphs like Freebase and Wikidata serve as the backbone for diverse AI applications, from semantic search to biomedical discovery. Despite their utility, these graphs are notoriously incomplete, missing a significant portion of real-world relations. The task of Knowledge Graph Completion (KGC) aims to predict these missing links.

Existing approaches typically fall into two categories: embedding-based methods, which learn latent representations of entities and relations, and PLM-based methods, which treat the language model as a soft knowledge base. However, both face significant hurdles. Embedding-based models require dense graph structures to function effectively, while PLM-based models often require expensive, manually crafted prompts that do not scale across thousands of relations. TAGREAL addresses these limitations by introducing an automated pipeline for prompt generation and context retrieval.

The TAGREAL Framework

TAGREAL moves beyond manual intervention by implementing a four-stage automated pipeline designed to maximize the utility of PLMs for triple classification.

1. Automatic Prompt Mining

Rather than relying on human intuition to design queries, TAGREAL mines prompts directly from large-scale text corpora. The system identifies sentences containing known entity pairs for a specific relation and applies AutoPhrase for segmentation and FP-Growth for frequent pattern mining. This process extracts the most representative linguistic templates (e.g., "[X] is a co-founder of [Y]") that the PLM likely encountered during its initial training.

2. Prompt Optimization

To ensure the quality of mined templates, TAGREAL employs optimization tools such as MetaPAD and TruePIE. These tools weight prompts based on their frequency, informativeness, and reliability. By using an ensemble of these weighted prompts, the framework reduces the noise inherent in automated mining and provides a more robust query to the language model.

3. Support Information Retrieval

A core innovation of TAGREAL is the "Text-Augmented" component. For any given query, the system uses BM25 to retrieve a relevant "support sentence" from an external corpus. This sentence is prepended to the prompt, providing the PLM with immediate context. This retrieval step effectively transforms the task from a "zero-shot" memory recall into a more manageable reading comprehension task for the model.

4. Fine-tuning for Triple Classification

The framework fine-tunes specialized PLMs—such as LUKE for general knowledge and SapBert for biomedical data—to classify whether a candidate triple is true or false. The input to the model consists of the optimized prompts combined with the retrieved support information.

Experimental Evaluation

Researchers evaluated TAGREAL on two benchmarks representing different knowledge domains:

  • FB60K-NYT10: A general-knowledge dataset pairing Freebase triples with New York Times articles.
  • UMLS-PubMed: A domain-specific dataset focusing on biomedical relations from the Unified Medical Language System and PubMed abstracts.

Key Results

TAGREAL demonstrated superior performance across both datasets, with its advantages becoming most apparent in data-limited regimes. On the FB60K-NYT10 benchmark, using only 20% of the available training data, TAGREAL achieved a Hits@10 of 51.34%, significantly outperforming the previous PLM-based state-of-the-art, PKGC (43.82%).

Ablation studies confirmed that both the support information retrieval and prompt optimization are critical; removing either component led to a significant degradation in performance. This suggests that the synergy between external text retrieval and automated prompt engineering is the primary driver of the model's success.

Discussion and Insights

The success of TAGREAL highlights several key insights for the future of KGC:

  • Mined Prompts vs. Hand-crafted Prompts: Mined prompts often outperform manual ones because they align more closely with the natural language patterns the PLM learned during pre-training.
  • The Power of Context: Providing a single relevant sentence as support information acts as a "confidence booster" for the PLM, allowing it to verify facts that it might otherwise struggle to recall from its internal weights alone.
  • Efficiency in Small Data Regimes: Unlike embedding-based models that require extensive graph connectivity to learn entity vectors, TAGREAL leverages pre-existing linguistic knowledge, making it highly effective when only a fraction of the KG is known.

Conclusion

TAGREAL represents a significant step toward automated, open-world Knowledge Graph completion. By bridging the gap between structured graphs and unstructured text, it eliminates the bottleneck of manual prompt engineering and addresses the challenges of data sparsity. While future work is needed to improve inference speed and model explainability, TAGREAL provides a powerful framework for maintaining and expanding the knowledge bases that power modern AI.

Summary updated

BibTeX
@inproceedings{jiang2023text,
  author = {Pengcheng Jiang and Shivam Agarwal and Bowen Jin and Xuan Wang and Jimeng Sun and Jiawei Han},
  title = {{Text Augmented Open Knowledge Graph Completion via Pre-Trained Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.709},
}
Figure