Refining Noisy Knowledge Graph with Large Language Models

Na Dong, Natthawut Kertkeidkachorn, Xin Liu, Kiyoaki ShiraiWorkshops @ COLING 2025

Abstract

Knowledge Graphs (KGs) are fundamental to structured data representation in AI, yet they frequently contain "noise"—incorrect or misaligned triples. Traditional cleaning methods using Knowledge Graph Embeddings (KGE) often fail because they are trained on the noisy data itself. This paper presents LLM_sim, a framework that utilizes the extensive world knowledge of Large Language Models (LLMs) to detect and refine errors in KGs. By combining fuzzy-search-based context with semantic similarity checks, LLM_sim achieves high detection accuracy and improves performance in downstream Knowledge Graph Completion (KGC) tasks.

Introduction

Knowledge Graphs represent information as triplets: (Head Entity, Relation, Tail Entity). Despite their utility in search and recommendation, KGs are often plagued by noise from automated extraction or manual entry errors. Existing solutions, such as KGE-based filtering or rule-based systems, struggle with scalability and the "garbage in, garbage out" problem.

Researchers from JAIST and AIST propose leveraging LLMs, specifically Llama-3, to act as an intelligent cleaning layer. Unlike KGE models, LLMs possess pre-trained internal knowledge that remains stable even when the input graph is corrupted.

Methodology: The LLM_sim Framework

The proposed LLM_sim framework operates in two distinct stages: Noise Detection and Noise Refinement.

The LLM_sim framework architecture, illustrating the two-stage process of noise detection and refinement.

1. Noise Detection

To determine if a triple is erroneous, the system does not rely solely on the LLM's internal weights. Instead, it performs a fuzzy search using a Sentence Transformer to find semantically similar triples within the existing KG. This "neighboring" information is provided as additional context in the prompt, anchoring the LLM's reasoning and reducing hallucinations.

2. Noise Refinement

Once a triple is flagged as noise, the framework attempts to correct it rather than simply deleting it. The LLM generates five candidate triples. To ensure consistency, these candidates are grouped by their head-relation or relation-tail pairs and compared against the original KG using cosine similarity. The candidate with the highest semantic alignment is selected to replace the noisy triple.

Experimental Setup

The framework was evaluated on two benchmark datasets: WN18RR (lexical relations) and FB15k-237 (factual knowledge). Synthetic noise was introduced at levels of 10%, 20%, and 30% by randomly swapping entities to simulate real-world data corruption.

Results and Discussion

The experimental results demonstrate that LLM_sim significantly outperforms traditional baselines in identifying noise.

Performance comparison of noise detection models across different noise levels on WN18RR and FB15k-237 datasets.

Detection Accuracy

On the WN18RR dataset with 10% noise, LLM_sim achieved an F1 score of 0.951, surpassing the previous state-of-the-art model, CAGED (0.906). The model showed remarkable stability; while KGE models like TransE saw performance drops as noise increased, LLM_sim maintained high precision and recall.

Refinement Quality and Downstream Impact

Human evaluation confirmed the high quality of the refined triples, with accuracy rates between 82% and 92%. Crucially, the "renewed" KG—containing these corrected triples—led to better performance in Knowledge Graph Completion tasks. For instance, on the FB15k-237 dataset with 30% noise, the Mean Reciprocal Rank (MRR) improved from 0.141 (raw noisy graph) to 0.177 (refined graph).

Conclusion

The LLM_sim framework demonstrates that LLMs can effectively serve as a robust cleaning mechanism for Knowledge Graphs. By shifting from simple filtering to intelligent refinement, the method preserves data density while improving accuracy. Future work will focus on scaling this approach to massive, dynamic KGs and testing against more complex, naturally occurring noise patterns.

Summary updated

BibTeX
@inproceedings{dong2025refining,
  author = {Na Dong and Natthawut Kertkeidkachorn and Xin Liu and Kiyoaki Shirai},
  title = {{Refining Noisy Knowledge Graph with Large Language Models}},
  booktitle = {Workshops @ COLING},
  year = {2025},
}
Figure