Abstract
Knowledge Graph Completion (KGC) models are highly effective at predicting missing links between entities but often fail when tasked with answering complex logical queries. This failure stems from the fact that KGC models typically produce uncalibrated scores intended for ranking rather than absolute probabilities. This paper introduces CKGC (Calibrated Knowledge Graph Completion), a lightweight approach that calibrates pre-trained KGC models to enable accurate multi-hop reasoning. By mapping raw scores to a [0, 1] probability range and employing fuzzy logic operators, CKGC achieves state-of-the-art performance on standard benchmarks. Notably, it delivers a 53.9% relative improvement on queries involving negation and trains in a fraction of the time required by previous embedding-based methods.
Introduction
Knowledge Graphs (KGs) such as Freebase or NELL serve as foundational components for many AI applications, yet they are inherently incomplete. While standard KGC models excel at single-hop link prediction (e.g., "Where was Alan Turing born?"), they struggle with Complex Logical Query Answering (CLQA). These are queries that involve multiple steps and logical operators like AND, OR, and NOT.
A typical example of such a query is: "Which universities do Turing Award winners in the field of deep learning work in?" As illustrated in Figure 1, this requires traversing multiple relations and intersecting sets of entities. The fundamental challenge in CLQA is that most KGC models are trained to rank entities rather than provide absolute confidence scores. When these uncalibrated scores are combined through logical operations, errors compound, leading to poor performance on complex structures.
Methodology
CKGC transforms a pre-trained KGC model (such as ComplEx) into a logical reasoning engine through a four-step calibration process:
- Normalization: Scores are first normalized using a Softmax function scaled by the number of expected answers to push them into a preliminary [0, 1] range.
- Adaptation: A lightweight linear transformation is applied to these scores. This small matrix is trained using standard cross-entropy loss to help the model distinguish between true and false facts more sharply.
- Fuzzy Logic Operations: The KG is treated as a "computation graph" over fuzzy sets. Specific mathematical "t-norms" (like the product t-norm for intersections) are used to combine entity scores across the query path.
- Fact Injection: Known true facts from the training and validation sets are explicitly set to a score of 1.0, ensuring the model retains existing knowledge while predicting unknowns.
Experimental Results
The researchers evaluated CKGC on three standard benchmarks: FB15k, FB15k-237, and NELL995. The model was tested against 14 different query structures, ranging from simple projections to complex queries involving negation.
As shown in the performance table (Figure 2), CKGC consistently outperformed all previous baselines, including CQD and QTO. The most striking result was the 53.9% relative improvement on queries involving negation. In fuzzy logic, negation is typically calculated as $1 - x$; if the original scores are not well-calibrated toward 0 or 1, this operation produces massive false positives. CKGC's calibration directly addresses this bottleneck.
Beyond accuracy, CKGC is remarkably efficient. While embedding-based methods often require hundreds of training epochs, CKGC converges in just 5 epochs. Training times range from roughly 32 to 83 seconds per epoch depending on the dataset, making it orders of magnitude faster to deploy than alternative approaches.
Key Insights and Future Work
The core insight of this work is that the bottleneck in logical reasoning over KGs is often not the model's knowledge, but how that knowledge is scaled. By ensuring that the adaptation function is monotonically increasing, CKGC improves complex query results without degrading the original KGC model's performance on simple one-hop tasks.
However, limitations remain. The "Projection" operation currently requires handling large KG tensors, which necessitates filtering thresholds to maintain memory efficiency on single GPUs. Future research will focus on scaling these fuzzy set operations to industrial-sized KGs and exploring non-linear calibration methods to further refine reasoning accuracy.
Summary updated