Systematic Assessment of Factual Knowledge in Large Language Models

Linhao Luo, Thuy-Trang Vu, Dinh Phung, Gholamreza Haffari
10/18/2023
cs.CL

No official code found. Best implementation: RManLuo/llm-facteval (19 stars, last commit 2026-03-17).

Abstract

Previous studies have relied on existing question-answering benchmarks to evaluate the knowledge stored in large language models (LLMs). However, this approach has limitations regarding factual knowledge coverage, as it mostly focuses on generic domains which may overlap with the pretraining data. This paper proposes a framework to systematically assess the factual knowledge of LLMs by leveraging knowledge graphs (KGs). Our framework automatically generates a set of questions and expected answers from the facts stored in a given KG, and then evaluates the accuracy of LLMs in answering these questions. We systematically evaluate the state-of-the-art LLMs with KGs in generic and specific domains. The experiment shows that ChatGPT is consistently the top performer across all domains. We also find that LLMs performance depends on the instruction finetuning, domain and question complexity and is prone to adversarial context.

View on arXivView PDF

Code Implementations(1)

Source code of paper "Systematic Assessment of Factual Knowledge in Large Language Models" - EMNLP Findings 2023

190Shell, PythonOct 29, 20237 months ago
evaluationknowledge-graphllmtrustfulness

Similar Papers

Cite this paper

@article{luo2023systematic,
  title  = {Systematic Assessment of Factual Knowledge in Large Language Models},
  author = {Linhao Luo and Thuy-Trang Vu and Dinh Phung and Gholamreza Haffari},
  year   = {2023},
  eprint = {2310.11638},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11638v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.11638.svg)](https://codeofpaper.com/paper/2310.11638)

Discussion