Saved in:
Bibliographic Details
Main Authors: Rajan, Sai Sathiesh, Soremekun, Ezekiel, Chattopadhyay, Sudipta
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.12830
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913989453152256
author Rajan, Sai Sathiesh
Soremekun, Ezekiel
Chattopadhyay, Sudipta
author_facet Rajan, Sai Sathiesh
Soremekun, Ezekiel
Chattopadhyay, Sudipta
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_12830
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Knowledge-based Consistency Testing of Large Language Models
Rajan, Sai Sathiesh
Soremekun, Ezekiel
Chattopadhyay, Sudipta
Computation and Language
Artificial Intelligence
Machine Learning
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.
title Knowledge-based Consistency Testing of Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2407.12830