mlsanityData to 7 Oct 2026

Knowledge-based Consistency Testing of Large Language Models

arXiv 2407.12830 ↗First posted 3 Jul 2024cs.CL cs.AI cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

In this work, we systematically expose and measure the inconsistency and knowledge gaps of Large Language Models (LLMs). Specifically, we propose an automated testing framework (called KonTest) which leverages a knowledge graph to construct test cases. KonTest probes and measures the inconsistencies in the LLM's knowledge of the world via a combination of semantically-equivalent queries and test oracles (metamorphic or ontological oracle). KonTest further mitigates knowledge gaps via a weighted LLM model ensemble. Using four state-of-the-art LLMs (Falcon, Gemini, GPT3.5, and Llama2), we show that KonTest generates 19.2% error inducing inputs (1917 errors from 9979 test inputs). It also reveals a 16.5% knowledge gap across all tested LLMs. A mitigation method informed by KonTest's test suite reduces LLM knowledge gap by 32.48%. Our ablation study further shows that GPT3.5 is not suitable for knowledge-based consistency testing because it is only 60%-68% effective in knowledge construction.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 13 of its 35 references that are in the map. First posted on arXiv 3 Jul 2024.

Builds on

13 of 35 references.

References · 13

  1. 2023Unifying Large Language Models and Knowledge Graphs: A Roadmapcited by 663
  2. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
  3. 2019Knowledge Enhanced Contextual Word Representationscited by 294
  4. 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 243
  5. 2023L3MVN: Leveraging Large Language Models for Visual Target Navigationcited by 118
  6. 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
  7. 2023GPT4GEO: How a Language Model Sees the World's Geographycited by 68
  8. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 67
  9. 2023Autonomous GIS: the next-generation AI-powered GIScited by 52
  10. 2023Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChaincited by 31
  11. 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
  12. 2023Evaluating and Explaining Large Language Models for Code Using Syntactic Structurescited by 9
1 more
  1. 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Codecited by 9

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.