Certainty in Uncertainty: Reasoning over Uncertain Knowledge Graphs with Statistical Guarantees

Yuqicheng Zhu, Jingcheng Wu, Yizhen Wang, Hongkuan Zhou, Jiaoyan Chen, Evgeny Kharlamov, Steffen Staab · OpenReview

Abstract

Uncertain knowledge graph embedding (UnKGE) methods learn vector representations that capture both structural and uncertainty information to predict scores of unseen triples. However, existing methods produce only point estimates, without quantifying predictive uncertainty—limiting their reliability in high-stakes applications where understanding confidence in predictions is crucial. To address this limitation, we propose UNKGCP, a framework that generates prediction intervals guaranteed to contain the true score with a user-specified level of confidence. The length of the intervals reflects the model's predictive uncertainty. UNKGCP builds on the conformal prediction framework but introduces a novel nonconformity measure tailored to UnKGE methods and an efficient procedure for interval construction. We provide theoretical guarantees for the intervals and empirically verify these guarantees. Extensive experiments on standard benchmarks across diverse UnKGE methods further demonstrate that the intervals are sharp and effectively capture predictive uncertainty.

Introduction

Knowledge Graphs (KGs) are traditionally viewed as collections of binary facts, such as "Paris is the capital of France." However, real-world data is rarely so black and white. Uncertain Knowledge Graphs (UnKGs) address this by assigning a score between 0 and 1 to each relationship, representing the likelihood that the fact is true. This is particularly vital in fields like biomedicine, where a drug interaction might be "probable" based on experimental evidence rather than a certainty.

While current embedding methods (UnKGE) are effective at predicting these scores for new triples, they typically provide only point estimates. If a model predicts a 0.3 risk for a drug side effect, it does not indicate whether that estimate is highly certain or if the true value could realistically fall anywhere between 0.1 and 0.9. In high-stakes applications, this lack of uncertainty quantification makes models risky to deploy. This paper introduces UNKGCP, a framework that provides the first statistically grounded "confidence intervals" for UnKGE, allowing users to say with 90% certainty where the true score lies.

The UNKGCP Framework

UNKGCP (Uncertain Knowledge Graph Conformal Prediction) is built on the framework of Conformal Prediction (CP), a technique designed to transform point predictions into intervals with rigorous statistical guarantees.

Methodology and Innovation

The framework introduces several key innovations to make uncertainty quantification practical for large-scale graphs:

  1. Inductive Conformal Prediction (ICP): To avoid the prohibitive cost of retraining models for every query, UNKGCP uses a calibration set. The model is trained once, and its errors (nonconformity scores) on a held-out calibration set are used to determine the width of future prediction intervals.
  2. Entropy-Normalized Nonconformity Measure: Standard CP often produces fixed-width intervals regardless of the specific query. UNKGCP introduces a novel measure that scales the interval based on the entropy of the model’s prediction. If the model is naturally "confused" (prediction near 0.5), the interval widens; if it is "confident" (prediction near 0 or 1), the interval narrows. This ensures that the uncertainty quantification is adaptive to the difficulty of the specific fact being queried.
  3. Efficiency and Scalability: Once the model is calibrated, the method is agnostic to the graph size, making it scalable to massive real-world datasets.

Experimental Setup

The framework was evaluated on three standard UnKG benchmarks representing different domains:

  • CN15k: A subset of ConceptNet containing commonsense knowledge.
  • NL27k: Derived from NELL (Never-Ending Language Learning), featuring facts extracted from the web.
  • PPI5k: A biological dataset of Protein-Protein Interactions where scores represent experimental probabilities.

Researchers tested UNKGCP across various underlying embedding models, including UKGE, PASSLEAF, and BEUrRE, to demonstrate its versatility.

Key Insights and Results

  • Guaranteed Statistical Coverage: Across all datasets and models, UNKGCP consistently met the target confidence levels (e.g., 90% or 95%). Because it is based on conformal prediction, these guarantees are "distribution-free," meaning they hold regardless of the underlying data distribution.
  • Superior Sharpness: Compared to classical baselines like Fisher Prediction Intervals (FPI) and Quantile Regression (QR), UNKGCP produced "sharper" (narrower) intervals while maintaining the required coverage. This makes the predictions more informative for end-users.
  • Reliable Uncertainty Proxy: The experiments demonstrated a strong correlation between the length of the prediction interval and the actual prediction error. This confirms that users can treat the width of the interval as a reliable proxy for how much they should trust the model's output.
  • Sample Efficiency: UNKGCP reached stable performance using only about 20% of the available calibration data, proving its practicality in data-scarce environments.

Limitations and Future Work

The primary limitation of the current framework is the Single-Value Assumption. UNKGCP assumes that the ground truth scores in the KG are single numbers (e.g., 0.7). However, in many real-world scenarios, the source data might itself be an interval (e.g., "confidence between 0.6 and 0.8").

Future work aims to extend the framework to handle these interval-valued inputs and explore how to integrate these statistical guarantees back into the training process to create even more robust, uncertainty-aware embeddings.

Summary updated

BibTeX
@misc{zhu2025certainty,
  author = {Yuqicheng Zhu and Jingcheng Wu and Yizhen Wang and Hongkuan Zhou and Jiaoyan Chen and Evgeny Kharlamov and Steffen Staab},
  title = {{Certainty in Uncertainty: Reasoning over Uncertain Knowledge Graphs with Statistical Guarantees}},
  year = {2025},
  eprint = {2510.24754},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.24754},
}
Figure