Introduction
Knowledge Graphs (KGs) are foundational to modern AI applications, yet they are frequently plagued by errors due to automated construction processes. Traditional error detection methods primarily leverage structural embeddings (triplets), which are effective at identifying "random" noise—such as replacing a birthplace with an unrelated object—but struggle significantly with "semantically-similar" noise. For instance, a structural model might fail to flag an incorrect profession if the erroneous value is semantically plausible within the graph's context. This paper introduces Contrastive Confidence Adaption (CCA) to bridge this gap by integrating textual context with structural data.
Methodology: Contrastive Confidence Adaption (CCA)
CCA tackles error detection by looking at KGs from two perspectives simultaneously: textual and structural. The model utilizes interactive contrastive learning to "self-correct" by assigning adaptive confidence scores to triplets during training.
The architecture consists of four primary components:
- Dual Encoding: A BERT-based encoder processes entity and relation descriptions (textual view), while a Transformer-based encoder processes subgraphs (structural view).
- Reconstruction Classifier: The model masks an entity in a triplet and attempts to predict it using both encoders. Errors are identified by the model's inability to accurately reconstruct missing components.
- Interactive Contrastive Learning: This component aligns the latent spaces of the textual and structural encoders. Disparities between these views serve as strong indicators of anomalies.
- Confidence Adaption: CCA generates pseudo-labels (confidence scores) that dynamically weight the training loss, effectively telling the model to prioritize triplets it deems more reliable.
Experimental Evaluation
The authors evaluated CCA on two standard benchmarks, FB15K-237 and WN18RR, modified to include 5% noise across three categories: random, semantically-similar, and adversarial (errors specifically designed to fool structural models).
Results
CCA consistently outperformed eight baseline models across both datasets. Its advantage is most pronounced in the "Similar" and "Adversarial" noise categories, where structural models often fail.
On FB15K-237, CCA achieved a Precision@top-5% of 0.534, significantly higher than structural models like TransE (0.423) and even other textual models like KG-BERT (0.498). The model's ability to utilize text as a "truth anchor" allows it to maintain high precision even when the graph structure is misleading.
Discussion and Insights
The success of CCA stems from two key factors:
- Text as a Truth Anchor: Pre-trained Language Models (PLMs) like BERT provide rich, external context that compensates for sparse or noisy graph structures.
- Inter-Model Disparity as a Signal: Disagreement between textual and structural views acts as a reliable signal for error detection. If the graph says two entities are related but their textual descriptions make that relation impossible, the model flags it as an anomaly.
Limitations and Future Work
While effective, CCA's performance gains are less dramatic on sparse KGs like WN18RR. In sparse graphs, there is less structural information for the Transformer encoder to work with, making the fusion of text and structure less effective. Future work will focus on improving error detection in these sparse environments or exploring how to better weight the textual vs. structural components when one is significantly more reliable than the other.
Summary updated