KGClean: An Embedding Powered Knowledge Graph Cleaning Framework

Congcong Ge, Yunjun Gao, Honghui Weng, Chong Zhang, Xiaoye Miao, Baihua ZhengarXiv 2020

Introduction

Knowledge Graphs (KGs) represent human knowledge as triplets (e.g., Clint -> born_in -> San Francisco) and power critical downstream tasks like semantic search and question answering. However, KGs often suffer from significant data quality issues, including missing values and incorrect relationships, as they are frequently extracted automatically from web sources.

Existing solutions typically fall into two categories: KG completion methods, which focus solely on predicting missing entities, and rule-based cleaning methods, which require exhaustive, manually defined data quality rules (such as functional dependencies). For complex, massive graphs, manual rule creation is impractical. KGClean addresses these challenges by providing an automated, end-to-end framework that both detects and repairs erroneous triplets by learning the graph's latent semantics.

The KGClean Framework

KGClean operates in three main phases: knowledge representation, error detection, and error repair. By mapping the graph into a continuous vector space, the framework naturally learns the "causality" of the graph, effectively using embeddings as soft rules to eliminate the bottleneck of human-defined constraints.

The KGClean framework overview showing the transition from a dirty KG to a repaired one.

1. Knowledge Representation (TransGAT)

The foundation of KGClean is TransGAT, a novel two-layer Graph Attention Network. Unlike standard models that only use relationships to update entity embeddings, TransGAT models the two-way interaction between them: entities inform relationship embeddings, which in turn refine entity embeddings. This approach captures multi-hop neighborhood information to enrich the semantic representation of the graph, creating a much richer representation than traditional translation-based models like TransE.

Architecture of the TransGAT embedding model illustrating the interaction between entity and relation embeddings.

2. Error Detection (AL-detect)

Error detection is framed as a binary classification problem (clean vs. noisy triplet). To minimize expensive human labeling, KGClean employs Active Learning using Entropy Sampling. A TextCNN classifier is trained on a small seed of labeled data, iteratively querying the most uncertain triplets for human annotation. The final classification score combines the TextCNN probability with the TransGAT structural score, ensuring high precision in identifying noisy data.

3. Error Repairing (PRO-repair)

To fix identified errors, KGClean generates candidates and selects the optimal repair using a novel metric called Propagation Power. This metric combines:

  • Inner-power: The triplet's own structural validity and causality based on TransGAT scores.
  • Outer-power: The triplet's influence on its direct neighbors.

This approach provides interpretable evidence for repairs by explicitly considering multi-hop paths and neighbor co-occurrence, addressing the "black box" criticism often leveled at embedding-based models.

Evaluation and Key Results

The authors evaluated KGClean by injecting errors (ranging from 10% to 50%) into four standard datasets: Alyawarra Kinship, UMLS, WN18, and WN18RR.

Key findings include:

  • Superior Embeddings: TransGAT significantly outperformed baselines like TransE and KBGAT. On the WN18 dataset, TransGAT achieved an 84.1% Hits@1 score, compared to just 23.6% for KBGAT.
  • Accurate Detection: The AL-detect module maintained excellent True-Negative accuracy even as the graph's error rate increased, achieving 97% accuracy on WN18 with minimal labeled data.
  • Robust Repairing: The PRO-repair strategy remained remarkably stable even with 50% noise, with F1-scores mostly between 0.80 and 0.98 across datasets.
  • End-to-End Resilience: The overall pipeline's performance is largely independent of the initial error rate because TransGAT successfully captures the true graph structure despite heavy noise.

Limitations and Future Work

KGClean's performance declines on highly sparse graphs, such as WN18RR, where many nodes have zero in-degree (no incoming edges). In such cases, TransGAT struggles to gather sufficient neighborhood information to learn accurate embeddings, which downstream degrades the reliability of the propagation power metric. Future research may focus on improving embedding techniques for sparse, disconnected graphs and exploring alternative active learning query strategies.

Summary updated

BibTeX
@misc{ge2020kgclean,
  author = {Congcong Ge and Yunjun Gao and Honghui Weng and Chong Zhang and Xiaoye Miao and Baihua Zheng},
  title = {{KGClean: An Embedding Powered Knowledge Graph Cleaning Framework}},
  year = {2020},
  eprint = {2004.14478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.14478},
}
Figure