Abstract
Symbolic knowledge graphs (KGs) play a pivotal role in knowledge-centric applications such as search, question answering and recommendation. As contemporary language models (LMs) trained on extensive textual data have gained prominence, researchers have extensively explored whether the parametric knowledge within these models can match up to that present in knowledge graphs. Various methodologies have indicated that enhancing the size of the model or the volume of training data enhances its capacity to retrieve symbolic knowledge, often with minimal or no human supervision. Despite these advancements, there is a void in comprehensively evaluating whether LMs can encompass the intricate topological and semantic attributes of KGs, attributes crucial for reasoning processes. In this work, we provide an exhaustive evaluation of language models of varying sizes and capabilities. We construct nine qualitative benchmarks that encompass a spectrum of attributes including symmetry, asymmetry, hierarchy, bidirectionality, compositionality, paths, entity-centricity, bias and ambiguity. Additionally, we propose novel evaluation metrics tailored for each of these attributes. Our extensive evaluation of various LMs shows that while these models exhibit considerable potential in recalling factual information, their ability to capture intricate topological and semantic traits of KGs remains significantly constrained. We note that our proposed evaluation metrics are more reliable in evaluating these abilities than the existing metrics. Lastly, some of our benchmarks challenge the common notion that larger LMs (e.g., GPT-4) universally outshine their smaller counterparts (e.g., BERT).
Introduction
The NLP community has long debated whether Large Language Models (LLMs) can serve as "neural knowledge graphs," potentially replacing symbolic databases like Wikidata or Freebase. While previous evaluations focused on simple "triple completion" (e.g., "Paris is the capital of [MASK]"), these methods fail to capture the structural essence of knowledge. Real-world Knowledge Graphs (KGs) are defined by complex topological and semantic attributes—such as symmetry, hierarchy, and transitivity—that enable logical reasoning.
If an LM "knows" a fact but fails to respect its underlying logical properties, it cannot be considered a reliable substitute for a structured database. This research introduces nine new benchmarks to quantify this gap, revealing that even state-of-the-art models like GPT-4 struggle to maintain logical consistency across related facts.
Methodology and Benchmarks
The researchers developed a framework to evaluate LMs on structural patterns rather than isolated triples. The evaluation process involves converting KG triples into natural language queries and using a T5-based model to generate multiple paraphrases for each query to mitigate prompt sensitivity.
A key contribution is the introduction of "pattern-aware" metrics. For instance, in the Symmetry Metric, a model only scores if it correctly identifies both directions of a relationship (e.g., if Lisa is Bart’s sibling, Bart must also be Lisa’s sibling). The study utilizes nine qualitative benchmarks derived from the T-REx dataset, covering attributes such as Symmetry, Asymmetry, Bidirectional/Inverse relations, Hierarchy (2-hop), Compositional reasoning, Paths, Entity-Centricity, Social Bias, and Ambiguity.
Results and Analysis
The evaluation across models—including BERT, RoBERTa, T5, GPT-3, and GPT-4—yielded several counter-intuitive insights regarding the logical consistency of these systems.
The "Larger is Better" Fallacy
Contrary to common belief, GPT-4 is not the universal leader. For bidirectional relationships and complex paths, the significantly smaller BERT model outperformed GPT-4 in certain configurations. This suggests that the data compression techniques in massive generative models might inadvertently degrade local structural links compared to smaller, masked language models.
Consistency vs. Recall
While LMs are proficient at recalling individual facts, they lack logical consistency. Models often fail to infer transitive relationships even when they possess the necessary intermediate facts. Furthermore, performance is heavily influenced by popularity bias; GPT-4 follows logical rules much better for famous entities than for those in the "long tail."
Performance Summary
Even GPT-4, the top performer overall, achieved an average Hit@1 of only 23.7% across the new benchmarks—significantly lower than scores on simpler benchmarks like LAMA. Hierarchy and compositionality proved the most challenging, with scores for smaller models often dropping to near zero. Interestingly, RoBERTa excelled in the Ambiguity benchmark (52.63%), suggesting its training objective may make it more robust to lexical similarities than its larger counterparts.
Conclusion and Future Directions
This study demonstrates that while LMs are powerful factual recall engines, their ability to capture the intricate topological and semantic traits of KGs remains severely limited. Traditional metrics often overestimate LM "knowledge" by ignoring logical consistency.
Future work should address prompt sensitivity and the challenges of multi-token entities. Rather than viewing LMs as replacements for KGs, the authors advocate for hybrid systems where LMs serve as an interface to a robust, symbolic backbone, combining neural flexibility with symbolic reliability.
Summary updated