Hallucination Augmented Recitations for Language Models

Abdullatif Köksal, Renat Aksitov, Chung-Ching Chang
11/13/2023
cs.CLcs.AI

No official code found. Best implementation: google-research-datasets/cf_triviaqa (5 stars, Apache-2.0, last commit 2024-08-30).

Abstract

Attribution is a key concept in large language models (LLMs) as it enables control over information sources and enhances the factuality of LLMs. While existing approaches utilize open book question answering to improve attribution, factual datasets may reward language models to recall facts that they already know from their pretraining data, not attribution. In contrast, counterfactual open book QA datasets would further improve attribution because the answer could only be grounded in the given text. We propose Hallucination Augmented Recitations (HAR) for creating counterfactual datasets by utilizing hallucination in LLMs to improve attribution. For open book QA as a case study, we demonstrate that models finetuned with our counterfactual datasets improve text grounding, leading to better open book QA performance, with up to an 8.0% increase in F1 score. Our counterfactual dataset leads to significantly better performance than using humanannotated factual datasets, even with 4x smaller datasets and 4x smaller models. We observe that improvements are consistent across various model sizes and datasets, including multi-hop, biomedical, and adversarial QA datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The CF-TriviaQA dataset accompanies "Hallucination Augmented Recitations for Language Models" paper (https://arxiv.org/abs/2311.07424). It is a counterfactual open book QA dataset generated from the TriviaQA dataset using Hallucination Augmented Recitations (HAR) approach, with the purpose of improving attribution in LLMs.

52Aug 6, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{kksal2023hallucination,
  title  = {Hallucination Augmented Recitations for Language Models},
  author = {Abdullatif Köksal and Renat Aksitov and Chung-Ching Chang},
  year   = {2023},
  eprint = {2311.07424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.07424v1}
}

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

Discussion