Introduction
Knowledge Graphs (KGs) serve as the foundational structured data for numerous AI applications, including semantic search and recommendation engines. However, the automated nature of KG construction often introduces significant noise. For instance, the Never-Ending Language Learning (NELL) KG is estimated to have a precision of only 74%. Detecting these errors is challenging due to the lack of ground-truth labels and the diversity of error patterns. Traditional embedding-based methods often rely on naive negative sampling, which generates obvious errors but fails to capture subtle "near-miss" inaccuracies where entities are semantically related but factually incorrect.
Methodology: The CAGED Framework
To address these challenges, we propose CAGED (ContrAstive knowledge Graph Error Detection), an unsupervised framework that shifts the focus from entity-level representations to triple-level representations.
Triple-Level Augmentation
Unlike standard KG models that treat entities as nodes and relations as edges, CAGED constructs dual "triple graphs" where each triple is treated as a discrete node. This allows the model to capture higher-order correlations between facts.
- View I (Head-Sharing): Connects triples that share the same head entity.
- View II (Tail-Sharing): Connects triples that share the same tail entity.
By analyzing a triple through these two distinct structural "views," the model can assess its semantic consistency within different contexts.
Error-Aware Encoder (EaGNN)
Information propagation in standard Graph Neural Networks (GNNs) can be compromised by erroneous neighbors. CAGED employs an Error-aware GNN (EaGNN) featuring a gated attention mechanism. This mechanism learns to identify untrustworthy neighboring triples and blocks their influence, preventing the "poisoning" of representations for valid triples.
Joint Optimization and Confidence Estimation
The model is optimized using a joint loss function that combines traditional KG embedding loss with a contrastive loss. The contrastive component encourages the representations of a triple in View I and View II to be consistent. A significant discrepancy between views serves as a strong signal of an erroneous triple.
Experimental Evaluation
CAGED was evaluated on three benchmark datasets—FB15K, WN18RR, and NELL-995—with synthetic noise levels ranging from 5% to 15%. Additionally, a real-world case study was conducted on the KnowLife medical KG.
Key Results
- Superior Precision: On the NELL-995 dataset with 5% noise, CAGED achieved a Precision@1% of 0.850, outperforming state-of-the-art baselines like KGTtm (0.808). High precision at the top of the ranked list is critical for practical applications where human verification is limited.
- Robustness to Subtle Errors: By leveraging contrastive consistency, CAGED effectively identifies "near-miss" errors that traditional negative sampling methods typically overlook.
- Ablation Studies: The inclusion of the gated attention mechanism in EaGNN was found to be vital; without it, noise propagation significantly degraded detection performance.
Conclusion
CAGED provides a robust, unsupervised solution for cleaning noisy Knowledge Graphs. By treating triples as first-class citizens and utilizing contrastive learning across structural views, it achieves state-of-the-art performance in error detection. Future work involves integrating error-awareness directly into the KG embedding process to improve the reliability of downstream tasks like link prediction.
Summary updated