Robust Knowledge Graph Cleaning

Panagiotis Karras, Maximilian K. EggerEdbt/icdt Workshops 2025

Introduction

Knowledge Graphs (KGs) serve as the foundational infrastructure for modern search engines, drug discovery, and Retrieval-Augmented Generation (RAG) in Large Language Models. Despite their importance, KGs are frequently compromised by "dirty" data, including missing facts, errors, and significant structural redundancy. This research addresses these challenges through a multi-pronged approach focused on local reliability metrics, structural normalization, and contextual logic discovery.

The author identifies three critical gaps in current KG management: the lack of local evaluation for embeddings, the absence of structural standards to prevent redundancy, and the "contextual blindness" of global rule-mining algorithms that overlook domain-specific logic.

Methods for Enhancing Knowledge Graphs

ReliK: Measuring Local Reliability

Existing metrics for Knowledge Graph Embeddings (KGEs) typically provide a global performance score, which can mask significant failures in specific areas of the graph. To solve this, the research introduces ReliK, a "black-box" metric designed to assess a KGE's performance on specific subgraphs without requiring model retraining.

Illustration of the ReliK metric process: comparing a true triple against its negative neighborhood to determine local reliability.

As shown in the figure above, ReliK works by ranking a "true" triple against its "negative neighborhood" (all possible incorrect versions of that triple). If the model consistently ranks the truth higher than the noise within a specific neighborhood, that area is deemed reliable. This allows developers to pinpoint exactly where their embeddings can be trusted and where they might be "hallucinating."

Graph Normal Forms (GNFs)

While relational databases use Normal Forms to ensure data integrity, graph databases have lacked similar standards. This research establishes five levels of Graph Normal Forms (GNFs), ranging from 1GNF to EGNF, based on Graph Functional Dependencies (GFDs).

Example of graph structure where normalization (GNF) can be applied to reduce attribute redundancy.

By applying these forms, redundant data is consolidated. For instance, if a conference name determines the year it was held, 2GNF mandates moving the "year" attribute from individual paper nodes to the conference node itself. This structural change reduces the potential for conflicting data and improves overall graph integrity.

Contextual Rule Mining

Standard rule-mining algorithms often fail because they search for patterns across the entire graph, which can dilute logic that is only true in specific contexts. The proposed solution uses community detection to identify topic-based subgraphs (e.g., "Military" vs. "Finance"). Logic rules are then mined within these clusters to uncover patterns that are statistically significant locally, even if they appear insignificant at a global scale.

Evaluation and Results

The proposed methods were validated using both small benchmark datasets and a large-scale subset of Freebase containing six annotated domains: Organization, Government, Military, Business, Geography, and Finance.

  • ReliK Validation: Experiments confirmed that ReliK scores correlate strongly with actual prediction and classification accuracy, making it a reliable proxy for local model performance.
  • Redundancy Reduction: Applying GNFs successfully reduced the total number of attribute values in test datasets, confirming that structural normalization effectively consolidates information.
  • Discovery of Local Rules: In the Freebase experiment, the author discovered 17 domain-specific rules in the "Government" sector and 11 in "Business" that were completely absent when mining the entire dataset. This proves that global mining overlooks significant contextual logic.

Conclusion and Future Directions

While this research provides a robust framework for KG cleaning, challenges remain regarding computational complexity. Calculating exact ReliK scores for web-scale graphs is expensive, necessitating further optimization of the proposed approximations. Additionally, future work will focus on automating subgraph selection through advanced community detection to identify meaningful temporal, geographical, or topical contexts without manual annotation. Finding the "sweet spot" between subgraph size and statistical support remains a primary open challenge for contextual rule mining.

Summary updated

BibTeX
@inproceedings{karras2025robust,
  author = {Panagiotis Karras and Maximilian K. Egger},
  title = {{Robust Knowledge Graph Cleaning}},
  booktitle = {Edbt/icdt Workshops},
  year = {2025},
}
Figure