Conformalized Answer Set Prediction for Knowledge Graph Embedding

Yuqicheng Zhu, Nico Potyka, Jiarong Pan, Bo Xiong, Yunjie He, Evgeny Kharlamov, Steffen Staab

Introduction

Knowledge Graph Embeddings (KGE) are widely used for link prediction in structured data, such as predicting drug side effects or identifying missing facts in a knowledge base. However, standard KGE models typically output a ranked list of entities without a formal measure of uncertainty. This paper introduces a framework based on Conformal Prediction (CP) to generate "answer sets" that are statistically guaranteed to contain the correct answer at a user-specified confidence level (e.g., 90%). This approach makes KGE models more reliable for high-stakes decision-making.

The Challenge of Uncertainty in KGE

Traditional KGE models rank all possible entities for a given query. A major limitation is that a high rank does not necessarily imply a high probability of correctness. For instance, in a medical context, a model might rank two different diagnoses at the top, but it cannot distinguish whether one is significantly more likely than the other or if it is simply uncertain about both. Existing calibration methods like Platt scaling often lack formal guarantees and can be sensitive to the tuning data.

Methodology: Conformal Prediction for KGE

The authors propose using Split Conformal Prediction to provide rigorous uncertainty quantification without the need for expensive model retraining. The process involves:

  1. Data Splitting: The dataset is divided into a training set and a calibration set.
  2. Nonconformity Measures: Three KGE-specific measures are introduced to quantify how "unusual" a candidate answer is relative to the calibration data:
  3. NegScore: Uses the raw negative plausibility score from the KGE model.
  4. Minmax: Normalizes scores per query to handle varying scales across different relations.
  5. Softmax: Converts scores into a probability-like distribution.
  6. Set Construction: For any new query, the system includes all entities whose nonconformity scores fall below a threshold determined during the calibration phase.

Experimental Evaluation

The method was evaluated on four standard benchmarks: WN18, WN18RR, FB15k, and FB15k237. These datasets cover lexical relations and real-world facts. The researchers tested the framework across six diverse KGE architectures, including distance-based models (TransE, RotatE) and semantic matching models (RESCAL, DistMult, ComplEx, ConvE).

Results and Discussion

Reliability and Efficiency

The primary advantage of the conformalized approach is its reliability. Across all tested models and datasets, the predictors consistently achieved the target coverage (e.g., 0.90). In contrast, "naive" predictors often proved overconfident, with coverage dropping as low as 0.28.

Furthermore, the conformal predictors produced significantly tighter answer sets than baseline methods while maintaining the safety guarantee. For example, using the ComplEx model on FB15k, the Softmax-based predictor achieved 90% coverage with an average set size of approximately 37 entities.

Table 1: Comparison of coverage and prediction set size across different KGE models and datasets.

Adaptiveness and Difficulty Correlation

A key feature of conformalized sets is their adaptiveness. Unlike fixed "Top-K" predictions, the size of a conformal set varies based on the model's certainty. For "easy" queries where the model is confident, the set may contain only a single entity. For "hard" queries, the set expands to maintain the coverage guarantee. The researchers found a clear correlation between the original rank of the true answer (a proxy for difficulty) and the size of the resulting prediction set.

Figure 1: Relationship between the rank of the true answer and the size of the prediction sets for RESCAL on FB15k237 across different nonconformity measures.

Conclusion

By integrating Conformal Prediction with KGE, this work provides a robust method for uncertainty quantification in link prediction. The approach is computationally efficient, requiring only a small calibration set to produce reliable, adaptive answer sets. Future work will explore handling distribution shifts to ensure these guarantees hold even as knowledge graphs evolve over time.

Summary updated

BibTeX
@inproceedings{zhu2025conformalized,
  author = {Yuqicheng Zhu and Nico Potyka and Jiarong Pan and Bo Xiong and Yunjie He and Evgeny Kharlamov and Steffen Staab},
  title = {{Conformalized Answer Set Prediction for Knowledge Graph Embedding}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.32},
}
Figure