KMIR: A Benchmark for Evaluating Knowledge Memorization, Identification and Reasoning Abilities of Language Models

Daniel Gao, Yantao Jia, Lei Li, Chengzhen Fu, Zhicheng Dou, Hao Jiang, Xinyu Zhang, Lei Chen, Zhao CaoarXiv 2022

Pre-trained Language Models (PLMs) have demonstrated a remarkable capacity to store factual knowledge within their parameters. However, existing benchmarks primarily evaluate simple memorization. We introduce KMIR (Knowledge Memorization, Identification, and Reasoning), a large-scale benchmark comprising over 184,000 questions designed to assess whether PLMs can truly function as reliable knowledge bases across three distinct cognitive dimensions.

The Knowledge Gap in Language Models

While models like BERT and RoBERTa are often viewed as "implicit knowledge bases," their utility is limited if they can only recite facts without the ability to identify or reason with them. For instance, a model might know a specific birth date but fail to recognize it as an outlier among unrelated dates. KMIR addresses this gap by moving beyond simple cloze tasks to evaluate identification (distinguishing entities) and reasoning (inferring new knowledge).

The KMIR Framework

The researchers developed a systematic evaluation pipeline inspired by standardized testing. The framework categorizes knowledge into three types: General Knowledge, Domain-specific Knowledge, and Commonsense.

Overview of the KMIR framework, showing the generation of questions from knowledge triples across three cognitive dimensions.

Methods and Dataset Construction

The benchmark utilizes nearly 200,000 "knowledge triples" sourced from Wikidata and ConceptNet. These triples are transformed into four question types:

  1. Triple Completion: Tests basic memorization (e.g., "The melting point of iron is [MASK]").
  2. Entity Distinction: Requires identifying an outlier among four entities.
  3. Statement Checking: Validates the truth of a factual statement.
  4. Predicate Reasoning: Uses OWL 2 axioms (e.g., transitivity) to generate questions requiring logical inference.

The final dataset includes 184,348 questions across 10 domains, including Physics, Law, and Music. Quality was ensured through 500+ hours of manual verification on a 16,000-question subset.

Key Findings and Model Performance

The evaluation of popular PLMs revealed several critical insights regarding the current state of machine intelligence:

  • Model Scale Matters: For memorization, parameter count is the primary driver of performance, regardless of the specific training recipe.
  • The Consistency Gap: Models are often inconsistent; a model may correctly complete a fact but fail to validate it in a different format. Only 17% of question sets were answered with total consistency by top models.
  • Compression Trade-offs: Compressing models (e.g., DistilBERT) preserves memorized facts but significantly degrades identification and reasoning capabilities, suggesting these higher-order functions reside in redundant parameters.

Analysis of Reasoning and Statistical Bias

A significant finding is that "reasoning" in PLMs may be a byproduct of statistical co-occurrence. Performance on reasoning tasks correlates strongly with how frequently entities appear together in the training data, measured by Entity Salience (ES) scores.

F1 scores for BERT and RoBERTa plotted against Entity Salience (ES) scores, highlighting the dependency of model performance on entity frequency.

Results and Conclusion

RoBERTa achieved the highest scores but remained below 70% F1 overall. Memorization remains difficult (~15% F1), while identification is relatively easier (~66% F1). Reasoning scores (26-29% F1) suggest that while models outperform random chance, they lack robust logical processing. KMIR highlights the need for future PLMs to evolve from simple data storage units into sophisticated knowledge processors that can reliably identify and reason with the information they contain.

Summary updated

BibTeX
@misc{gao2022kmir,
  author = {Daniel Gao and Yantao Jia and Lei Li and Chengzhen Fu and Zhicheng Dou and Hao Jiang and Xinyu Zhang and Lei Chen and Zhao Cao},
  title = {{KMIR: A Benchmark for Evaluating Knowledge Memorization, Identification and Reasoning Abilities of Language Models}},
  year = {2022},
  eprint = {2202.13529},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.13529},
}
Figure