Knowledge Graph Guided Semantic Evaluation of Language Models For User Trust

Kaushik Roy, Tarun Garg, Vedant Palit, Yuxin Zi, Vignesh Narayanan +1 more
5/8/2023
cs.CLcs.AI

No official code found. Best implementation: vedantpalit/KG-LLM (5 stars, last commit 2023-03-02).

Abstract

A fundamental question in natural language processing is - what kind of language structure and semantics is the language model capturing? Graph formats such as knowledge graphs are easy to evaluate as they explicitly express language semantics and structure. This study evaluates the semantics encoded in the self-attention transformers by leveraging explicit knowledge graph structures. We propose novel metrics to measure the reconstruction error when providing graph path sequences from a knowledge graph and trying to reproduce/reconstruct the same from the outputs of the self-attention transformer models. The opacity of language models has an immense bearing on societal issues of trust and explainable decision outcomes. Our findings suggest that language models are models of stochastic control processes for plausible language pattern generation. However, they do not ascribe object and concept-level meaning and semantics to the learned stochastic patterns such as those described in knowledge graphs. Furthermore, to enable robust evaluation of concept understanding by language models, we construct and make public an augmented language understanding benchmark built on the General Language Understanding Evaluation (GLUE) benchmark. This has significant application-level user trust implications as stochastic patterns without a strong sense of meaning cannot be trusted in high-stakes applications.

View on arXivView PDF

Code Implementations(1)

vedantpalit/KG-LLMCommunity53%

A project which involves semantic evaluation of Large Language Models such as GPT3,GPT-J,GPT-3.5 with Knowledge Bases such as the CommonSense Knowledge Graph and ConceptNet KG. The paper (arXiv:2305.04989) was accepted at the IEEE Conference on Artificial Intelligence 2023

51Jupyter NotebookMar 1, 20233 years ago

Similar Papers

Cite this paper

@article{roy2023knowledge,
  title  = {Knowledge Graph Guided Semantic Evaluation of Language Models For User Trust},
  author = {Kaushik Roy and Tarun Garg and Vedant Palit and Yuxin Zi and Vignesh Narayanan and Amit Sheth},
  year   = {2023},
  eprint = {2305.04989},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.04989v1}
}

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/2305.04989.svg)](https://codeofpaper.com/paper/2305.04989)

Discussion