DecoPrompt : Decoding Prompts Reduces Hallucinations when Large Language Models Meet False Premises

Nan Xu, Xuezhe Ma
11/12/2024
cs.CL

No official code found. Best implementation: xunannancy/DecoPrompt (4 stars, last commit 2024-11-12).

Abstract

While large language models (LLMs) have demonstrated increasing power, they have also called upon studies on their hallucinated outputs that deviate from factually correct statements. In this paper, we focus on one important scenario of false premises, where LLMs are distracted by misaligned claims although the model possesses the required factual knowledge to answer original questions accurately. Inspired by the observation that entropy of the false-premise prompt is closely related to its likelihood to elicit hallucination generation, we propose a new prompting algorithm, named DecoPrompt, to mitigate hallucination. DecoPrompt leverages LLMs to "decode" the false-premise prompts without really eliciting hallucination output from LLMs. We perform experiments on two datasets, demonstrating that DecoPrompt can reduce hallucinations effectively on outputs from different LLMs. Moreover, DecoPrompt exhibits cross-model transferability, which facilitates its applications to scenarios such as LLMs of large sizes or unavailable model logits.

View on arXivView PDF

Code Implementations(1)

Code for paper DecoPrompt : Decoding Prompts Reduces Hallucinations when Large Language Models Meet False Premises

40Nov 12, 20241 years ago

Cite this paper

@article{xu2024decoprompt,
  title  = {DecoPrompt : Decoding Prompts Reduces Hallucinations when Large Language Models Meet False Premises},
  author = {Nan Xu and Xuezhe Ma},
  year   = {2024},
  eprint = {2411.07457},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.07457v2}
}

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

Discussion