LLMMaps -- A Visual Metaphor for Stratified Evaluation of Large Language Models

Patrik Puchert, Poonam Poonam, Christian van Onzenoodt, Timo Ropinski
4/2/2023
cs.CLcs.AIcs.GR

Official code: viscom-ulm/LLMMaps (6 stars, MIT, last commit 2023-10-17).

Abstract

Large Language Models (LLMs) have revolutionized natural language processing and demonstrated impressive capabilities in various tasks. Unfortunately, they are prone to hallucinations, where the model exposes incorrect or false information in its responses, which renders diligent evaluation approaches mandatory. While LLM performance in specific knowledge fields is often evaluated based on question and answer (Q&A) datasets, such evaluations usually report only a single accuracy number for the dataset, which often covers an entire field. This field-based evaluation, is problematic with respect to transparency and model improvement. A stratified evaluation could instead reveal subfields, where hallucinations are more likely to occur and thus help to better assess LLMs' risks and guide their further development. To support such stratified evaluations, we propose LLMMaps as a novel visualization technique that enables users to evaluate LLMs' performance with respect to Q&A datasets. LLMMaps provide detailed insights into LLMs' knowledge capabilities in different subfields, by transforming Q&A datasets as well as LLM responses into an internal knowledge structure. An extension for comparative visualization furthermore, allows for the detailed comparison of multiple LLMs. To assess LLMMaps we use them to conduct a comparative analysis of several state-of-the-art LLMs, such as BLOOM, GPT-2, GPT-3, ChatGPT and LLaMa-13B, as well as two qualitative user evaluations. All necessary source code and data for generating LLMMaps to be used in scientific publications and elsewhere is available on GitHub: https://github.com/viscom-ulm/LLMMaps

View on arXivView PDF

Code Implementations(1)

viscom-ulm/LLMMapsOfficial100%
MIT

A visual metaphor for stratified evaluation of large language models

61PythonMay 15, 20233 years agoMIT

Similar Papers

Cite this paper

@article{puchert2023llmmaps,
  title  = {LLMMaps -- A Visual Metaphor for Stratified Evaluation of Large Language Models},
  author = {Patrik Puchert and Poonam Poonam and Christian van Onzenoodt and Timo Ropinski},
  year   = {2023},
  eprint = {2304.00457},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.00457v3}
}

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

Discussion