Abstract
Uncertain knowledge graph embedding (Un-KGE) 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: The Need for Uncertainty Quantification
Knowledge Graphs (KGs) typically represent facts as triples (e.g., <Paris, capital_of, France>). However, real-world data is often inherently probabilistic. Uncertain Knowledge Graphs (UnKGs) address this by assigning a score (0 to 1) to each triple, representing the likelihood of it being true.
While current embedding methods (UnKGE) are effective at predicting these scores for unseen triples, they only provide a point estimate—a single number. In high-stakes domains like medicine (e.g., predicting drug-drug interactions), a point estimate of 0.3 is insufficient. Does 0.3 mean "low risk," or does it mean the model is confused and the true risk could be anywhere from 0.1 to 0.9? Without quantifying predictive uncertainty, these models remain risky for critical decision-making.
Methodology: The UNKGCP Framework
UNKGCP is a model-agnostic framework that leverages Conformal Prediction (CP) to turn point predictions into intervals with rigorous statistical guarantees.
Inductive Conformal Prediction (ICP)
To avoid the massive computational cost of retraining models for every query, UNKGCP uses ICP. The data is split into a training set and a small "calibration" set. The model is trained once, and the calibration set is used to calculate how "atypical" new predictions are relative to known errors.
Adaptive Nonconformity Measure
Standard CP often produces fixed-width intervals, ignoring the fact that some queries are harder than others. UNKGCP introduces a novel entropy-normalized absolute residual. By scaling the prediction error by the entropy of the model's output, the framework produces "adaptive" intervals:
- If a model predicts a score near 0.5 (high entropy/uncertainty), the interval widens.
- If it predicts near 0 or 1 (low entropy/certainty), the interval tightens.
Experimental Evaluation
The framework was evaluated on three standard benchmarks: CN15k (commonsense knowledge), NL27k (web-extracted facts), and PPI5k (biological protein-protein interactions). It was tested across diverse backbones including UKGE, PASSLEAF, and BEUrRE.
Key Results: Validity and Sharpness
UNKGCP consistently met target confidence levels (e.g., 90% coverage), whereas baselines like Fisher Prediction Intervals (FPI) frequently failed. Furthermore, UNKGCP produced significantly "sharper" (narrower) intervals than standard Conformal Prediction in the majority of experimental configurations.
Sample Efficiency and Robustness
A key insight from the study is that high-quality guarantees do not require massive amounts of data. The authors found that using only 20% of the calibration set was sufficient to achieve stable and reliable performance across all tested models.
Discussion and Future Work
UNKGCP demonstrates that statistical rigor can be added to uncertain reasoning without sacrificing model flexibility. However, limitations remain. The current method assumes single-valued confidence scores as input, whereas real-world data might already be expressed as intervals. Additionally, the mathematical guarantees rely on data being "exchangeable," an assumption that can be challenged by the synthetic generation of negative triples in KGs. Future work will focus on extending the framework to handle interval-valued inputs and non-i.i.d. data shifts in complex graph structures.
Summary updated