NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Revisiting Inferential Benchmarks for Knowledge Graph Completion

Shuwen Liu, Bernardo Cuenca Grau, Ian Horrocks, Egor V. Kostylev

Introduction

Knowledge Graph Completion (KGC) is a fundamental task in graph-based AI, aiming to predict missing links (triples) in large-scale datasets like Freebase or WordNet. While modern embedding models and graph neural networks achieve high scores on standard benchmarks, there is a growing concern that these metrics do not reflect true logical reasoning. This paper introduces a new evaluation framework designed to test whether models actually learn the underlying inference rules of a graph or simply memorize statistical patterns.

The Limitations of Current Benchmarks

Standard benchmarks, such as FB15K-237, typically rely on random data splits. This approach introduces two primary flaws that inflate model performance:

  1. Lack of Causality: Random splits do not ensure that the "premises" required to infer a "conclusion" are present in the training set. Consequently, a model might predict a triple correctly by capturing entity co-occurrences rather than learning a logical rule (e.g., understanding that a "mother" is also a "parent").
  2. Trivial Negatives: Most benchmarks use "random corruption" to create negative examples—for instance, replacing a correct entity with a random one. These nonsensical triples (e.g., "Paris is the capital of 42") are so easy to distinguish from true facts that models can achieve high accuracy without understanding the graph's relational logic.

The LogInfer Pipeline

To address these flaws, the authors propose the LogInfer pipeline, a three-step process to generate rigorous "inferential benchmarks":

1. Rule Generation

Instead of relying on random splits, the pipeline starts with logical inference patterns such as symmetry, composition, or intersection. Using a SPARQL engine, the authors identify specific rules that have high support (many instances) within a given Knowledge Graph (KG).

2. Rule Application and Distribution

The pipeline applies these rules to generate new triples and distributes them strategically. The training set is designed to contain both premises and conclusions for some instances, while the test set contains conclusions whose specific premises were seen during training. This "closed-loop" setup forces the model to demonstrate that it has witnessed and learned the inference pattern.

3. Challenging Negative Generation

The authors introduce three novel methods to create "hard" negatives that are more difficult to distinguish from true facts:

  • Relevance-based sampling: Uses entities and relations that appear in the rule's support but do not form a true triple.
  • Position-aware corruption: Corrupts triples using entities that appear in similar contexts, making them harder to identify as false.
  • Query-guided sampling: Specifically targets "unintended rules." For example, if the true rule is $A \land B \to C$, this method penalizes the model if it incorrectly learns the simpler, insufficient rule $A \to C$.

Benchmarking Reasoning Patterns

The authors applied LogInfer to three well-known KGs—Freebase (Kfb), WordNet (Kwn), and the synthetic LUBM (Klubm)—to create 37 new benchmarks. These are categorized by the logical complexity they test, including Symmetry, Inversion, Composition, Triangle, and Diamond patterns.

Key Insights and Results

The experimental results reveal a significant "performance gap" between standard benchmarks and inferential ones. All evaluated systems, including popular models like TransE, RotatE, and R-GCN, performed significantly worse on LogInfer.

  • Pattern Complexity: Models generally handle simple patterns (Symmetry, Inversion) well but struggle with complex patterns involving multiple joins and inequalities, such as the Triangle and Diamond structures.
  • The Impact of Negatives: The research demonstrates that negatives are the "teeth" of a benchmark. As negative examples move from random corruption to query-guided sampling, model performance plummets. In one experiment on the Symmetry pattern, moving to position-aware corruption caused average AUC scores to drop from ~91% to ~85%.
  • Model Robustness: Among embedding-based models, BoxE and RotatE showed the most robustness, though they still exhibited vulnerability to sophisticated negative sampling.
  • Rule-Based vs. Embedding Models: Rule-based systems like AnyBURL excel at simple patterns but struggle with complex ones because they often lack the negative training data needed to prune incorrect hypotheses.

Conclusion

The LogInfer framework suggests that many current KGC models act as "stochastic parrots," memorizing graph statistics rather than performing true logical inference. By introducing challenging negatives and causal splits, this work provides a more rigorous path forward for developing models that truly understand the relational logic of knowledge graphs. Future work may involve developing new loss functions or architectures specifically designed to penalize the unintended logical inferences identified by these benchmarks.

Summary updated

BibTeX
@inproceedings{liu2023revisiting,
  author = {Shuwen Liu and Bernardo Cuenca Grau and Ian Horrocks and Egor V. Kostylev},
  title = {{Revisiting Inferential Benchmarks for Knowledge Graph Completion}},
  booktitle = {KR},
  year = {2023},
  doi = {10.24963/kr.2023/45},
}
Figure