Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Truth-Aware Context Selection: Mitigating Hallucinations of Large Language Models Being Misled by Untruthful Contexts

About

Although Large Language Models (LLMs) have demonstrated impressive text generation capabilities, they are easily misled by untruthful contexts provided by users or knowledge augmentation tools, leading to hallucinations. To alleviate LLMs from being misled by untruthful context and take advantage of knowledge augmentation, we propose Truth-Aware Context Selection (TACS), a lightweight method to adaptively recognize and mask untruthful context from the inputs. TACS begins by performing truth detection on the input context, leveraging the parameterized knowledge within the LLM. Subsequently, it constructs a corresponding attention mask based on the truthfulness of each position, selecting the truthful context and discarding the untruthful context. Additionally, we introduce a new evaluation metric, Disturbance Adaption Rate, to further study the LLMs' ability to accept truthful information and resist untruthful information. Experimental results indicate that TACS can effectively filter untruthful context and significantly improve the overall quality of LLMs' responses when presented with misleading information.

Tian Yu, Shaolei Zhang, Yang Feng• 2024

Related benchmarks

TaskDatasetResultRank
Multiple-ChoiceTruthfulQA
MC1 Accuracy51
83
Open-ended generationTruthfulQA single info 1.0 (test)
Truthfulness Score66.6
7
Open-ended generationTruthfulQA double info 1.0 (test)
True Score68.4
7
Probabilistic Multiple-ChoiceTruthfulQA single info
MC1 Score59.2
7
Generative multiple-choiceTruthfulQA (single)
Accuracy78.1
6
Generative multiple-choiceTruthfulQA (double)
Accuracy79.3
6
Generative Multiple-choice Question AnsweringConflictQA
TA Rate98
6
Generative Multiple-choice Question AnsweringTruthfulQA
TA Rate46.3
6
Showing 8 of 8 rows

Other info

Code

Follow for update