Benchmarking Hallucination in Large Language Models based on Unanswerable Math Word Problem

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sun, Yuhong, Yin, Zhangyue, Guo, Qipeng, Wu, Jiawen, Qiu, Xipeng, Zhao, Hui
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916148689240064
author Sun, Yuhong
Yin, Zhangyue
Guo, Qipeng
Wu, Jiawen
Qiu, Xipeng
Zhao, Hui
author_facet Sun, Yuhong
Yin, Zhangyue
Guo, Qipeng
Wu, Jiawen
Qiu, Xipeng
Zhao, Hui
contents Large language models (LLMs) are highly effective in various natural language processing (NLP) tasks. However, they are susceptible to producing unreliable conjectures in ambiguous contexts called hallucination. This paper presents a new method for evaluating LLM hallucination in Question Answering (QA) based on the unanswerable math word problem (MWP). To support this approach, we innovatively develop a dataset called Unanswerable Math Word Problem (UMWP) which comprises 5200 questions across five categories. We developed an evaluation methodology combining text similarity and mathematical expression detection to determine whether LLM considers the question unanswerable. The results of extensive experiments conducted on 31 LLMs, including GPT-3, InstructGPT, LLaMA, and Claude, demonstrate that in-context learning and reinforcement learning with human feedback (RLHF) training significantly enhance the model's ability to avoid hallucination. We show that utilizing MWP is a reliable and effective approach to assess hallucination. Our code and data are available at https://github.com/Yuki-Asuuna/UMWP.
format Preprint
id arxiv_https___arxiv_org_abs_2403_03558
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Benchmarking Hallucination in Large Language Models based on Unanswerable Math Word Problem
Sun, Yuhong
Yin, Zhangyue
Guo, Qipeng
Wu, Jiawen
Qiu, Xipeng
Zhao, Hui
Computation and Language
Large language models (LLMs) are highly effective in various natural language processing (NLP) tasks. However, they are susceptible to producing unreliable conjectures in ambiguous contexts called hallucination. This paper presents a new method for evaluating LLM hallucination in Question Answering (QA) based on the unanswerable math word problem (MWP). To support this approach, we innovatively develop a dataset called Unanswerable Math Word Problem (UMWP) which comprises 5200 questions across five categories. We developed an evaluation methodology combining text similarity and mathematical expression detection to determine whether LLM considers the question unanswerable. The results of extensive experiments conducted on 31 LLMs, including GPT-3, InstructGPT, LLaMA, and Claude, demonstrate that in-context learning and reinforcement learning with human feedback (RLHF) training significantly enhance the model's ability to avoid hallucination. We show that utilizing MWP is a reliable and effective approach to assess hallucination. Our code and data are available at https://github.com/Yuki-Asuuna/UMWP.
title Benchmarking Hallucination in Large Language Models based on Unanswerable Math Word Problem
topic Computation and Language
url https://arxiv.org/abs/2403.03558