Multi-perspective Improvement of Knowledge Graph Completion with Large Language Models

Derong Xu, Ziheng Zhang, Zhenxi Lin, Xian Wu, Zhihong Zhu, Tong Xu, Yefeng Zheng, Enhong Chen

Introduction

Knowledge Graphs (KGs) serve as the backbone for critical applications ranging from semantic search to recommendation engines. However, real-world KGs like Freebase and DBpedia are often plagued by incompleteness. Knowledge Graph Completion (KGC) aims to address this by predicting missing triples. While description-based models—which utilize pre-trained language models (PLMs) to encode entity text—have shown promise, they are frequently hindered by "data poverty." This manifests as uninformative entity descriptions and structural sparsity, particularly for "long-tail" entities.

To overcome these limitations, we present MPIKGC (Multi-perspective Improvement of Knowledge Graph Completion). This framework leverages the latent knowledge and reasoning capabilities of Large Language Models (LLMs) to enrich the underlying data before training specialized KGC models.

The MPIKGC Framework

MPIKGC operates as a data augmentation pipeline that enhances KGs from three distinct perspectives: entity descriptions, relation semantics, and graph structure.

1. Entity Expansion (MPIKGC-E)

Standard KGC datasets often contain brief or ambiguous entity descriptions. MPIKGC-E employs Chain-of-Thought (CoT) prompting to guide an LLM in generating comprehensive background information. By requiring the model to provide a rationale before the final description, the framework extracts deeper context than what is typically available in raw web-crawled data.

2. Relation Understanding (MPIKGC-R)

Relations in KGs can be abstract or polysemous. MPIKGC-R clarifies these relations using three perspectives:

  • Global Perspective: Explaining the general semantic significance of the relation.
  • Local Perspective: Contextualizing the relation for specific head-tail entity pairs.
  • Reverse Perspective: Generating passive-voice descriptions (e.g., "directed by" for "director") to assist the model in predicting head entities more effectively.

3. Structure Extraction (MPIKGC-S)

To combat structural sparsity, MPIKGC-S identifies latent connections between entities. The LLM extracts the five most representative keywords for each entity. By calculating similarity scores based on these keywords, the framework introduces "SameAs" links between highly similar entities. This process "densifies" the graph, providing more learning paths for the completion model.

Experimental Setup

The framework was evaluated on four benchmark datasets: FB15k-237 and WN18RR for link prediction, and FB13 and WN11 for triplet classification. The researchers integrated MPIKGC with four state-of-the-art baseline models: KG-BERT, SimKGC, LMKE, and CSProm-KG. Experiments spanned various LLM scales, including Llama-2-7b-chat, ChatGLM2, and GPT-4.

Key Findings

The experimental results demonstrate that MPIKGC consistently improves performance across all baseline models and datasets.

  • Structural Breakthroughs: On the FB15k-237 dataset, the addition of "SameAs" links (MPIKGC-S) allowed description-based models to significantly outperform traditional structure-only models, which had previously been a difficult benchmark to surpass.
  • Semantic Clarity: On the text-heavy WN18RR dataset, the relation understanding strategies (MPIKGC-R) yielded a 1-2% improvement in Mean Reciprocal Rank (MRR).
  • LLMs as Augmenters: A core insight is that LLMs are highly effective as data augmenters. Rather than using LLMs for direct inference—which is computationally expensive—MPIKGC uses them to improve the dataset for smaller, more efficient specialized models.
  • Model Scalability: While GPT-4 produced the highest quality enrichment, even smaller open-source models like Llama-2-7b provided substantial performance boosts, indicating the framework's broad applicability.

Conclusion and Future Work

MPIKGC effectively mitigates the data poverty problem in KGC by leveraging the generative power of LLMs. While the approach incurs a one-time preprocessing cost and carries a minor risk of LLM hallucinations, the performance gains across diverse benchmarks are significant. Future research will focus on refining the "SameAs" relations into more granular categories and developing more constrained prompts to further minimize the risk of factual errors in the generated data.

Summary updated

BibTeX
@inproceedings{xu2024multi,
  author = {Derong Xu and Ziheng Zhang and Zhenxi Lin and Xian Wu and Zhihong Zhu and Tong Xu and Xiangyu Zhao and Yefeng Zheng and Enhong Chen},
  title = {{Multi-perspective Improvement of Knowledge Graph Completion with Large Language Models}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure