ANAH: Analytical Annotation of Hallucinations in Large Language Models

Ziwei Ji, Yuzhe Gu, Wenwei Zhang, Chengqi Lyu, Dahua Lin +1 more
5/30/2024
cs.CLcs.AI

No official code found. Best implementation: open-compass/ANAH (66 stars, Apache-2.0, last commit 2025-04-30).

Abstract

Reducing the `$\textit{hallucination}$' problem of Large Language Models (LLMs) is crucial for their wide applications. A comprehensive and fine-grained measurement of the hallucination is the first key step for the governance of this issue but is under-explored in the community. Thus, we present $\textbf{ANAH}$, a bilingual dataset that offers $\textbf{AN}$alytical $\textbf{A}$nnotation of $\textbf{H}$allucinations in LLMs within Generative Question Answering. Each answer sentence in our dataset undergoes rigorous annotation, involving the retrieval of a reference fragment, the judgment of the hallucination type, and the correction of hallucinated content. ANAH consists of ~12k sentence-level annotations for ~4.3k LLM responses covering over 700 topics, constructed by a human-in-the-loop pipeline. Thanks to the fine granularity of the hallucination annotations, we can quantitatively confirm that the hallucinations of LLMs progressively accumulate in the answer and use ANAH to train and evaluate hallucination annotators. We conduct extensive experiments on studying generative and discriminative annotators and show that, although current open-source LLMs have difficulties in fine-grained hallucination annotation, the generative annotator trained with ANAH can surpass all open-source LLMs and GPT-3.5, obtain performance competitive with GPT-4, and exhibits better generalization ability on unseen questions.

View on arXivView PDF

Code Implementations(1)

open-compass/ANAHCommunity100%
Apache-2.0

[ACL 2024] ANAH & [NeurIPS 2024] ANAH-v2 & [ICLR 2025] Mask-DPO

663PythonApr 9, 20241 years agoApache-2.0
aclalignmentgpthallucination-detectionhallucination-mitigation+3 more

Similar Papers

Cite this paper

@article{ji2024anah,
  title  = {ANAH: Analytical Annotation of Hallucinations in Large Language Models},
  author = {Ziwei Ji and Yuzhe Gu and Wenwei Zhang and Chengqi Lyu and Dahua Lin and Kai Chen},
  year   = {2024},
  eprint = {2405.20315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.20315v1}
}

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

Discussion