Introduction
Large Language Models (LLMs) frequently generate text that is factually incorrect or unsupported by source documents—a phenomenon known as hallucination. To mitigate this, the field requires massive, high-quality datasets that pinpoint exactly where and why a model deviates from the truth. However, creating such datasets is a significant bottleneck. Human annotation is prohibitively expensive and time-consuming, while existing automatic annotators, including GPT-4, often lack the reliability needed to label data at scale without introducing noise.
ANAH-v2 addresses this "chicken and egg" problem—where better data is needed to train annotators, but better annotators are needed to generate data—by introducing an iterative self-training framework. This approach scales fine-grained hallucination datasets while simultaneously boosting the accuracy of the underlying annotator model.
The Iterative Self-Training Framework
The core of ANAH-v2 is a "data growth flywheel" grounded in the Expectation-Maximization (EM) algorithm. This process operates across three distinct stages:
- The E-Step (Data Annotation): The current best version of the annotator labels new, unlabeled data. To ensure high quality, the researchers employ a self-consistency strategy. The model generates 32 candidate annotations for a single sentence; a representative label is then selected via majority vote and cosine similarity, significantly reducing noise.
- The M-Step (Annotator Training): A new, more robust annotator is trained on the expanded, high-consistency dataset.
- Phased Reasoning: To mimic human cognition, the annotator follows a three-phase analytical process rather than a single-step judgment:
- Factual Existence Judgment: Determining if a sentence contains a verifiable fact.
- Reference Information Extraction: Identifying the specific segment of the source document relevant to the claim.
- Hallucination Type Judgment: Categorizing the claim as supported (No Hallucination), contradicted (Contradictory), or missing from the text (Unverifiable).
Dataset Scaling and Composition
The framework was used to scale the original ANAH (Seed) dataset into the much larger ANAH-v2. The expansion focused on two primary dimensions:
- Topic Dimension: Expanding into diverse domains such as politics, health, and sports, growing from ~700 topics to ~3,000.
- Response Dimension: Collecting answers from 13 different LLMs for the same questions to capture a wide variety of hallucination patterns.
The resulting ANAH-v2 dataset features approximately 196,000 model responses and 822,000 annotated sentences in both English and Chinese.
Key Results and Insights
Superior Performance
Despite having only 7 billion parameters (based on InternLM2), the specialized ANAH-v2 model outperformed general-purpose giants. It achieved 89.55% accuracy on its internal test set, surpassing GPT-4’s 86.97%.
New State-of-the-Art Benchmarks
ANAH-v2 demonstrated exceptional generalization capabilities, setting new state-of-the-art records for zero-shot hallucination detection on major benchmarks:
- HaluEval (English): 81.54%
- HalluQA (Chinese): 94.44%
Hallucination Mitigation
Beyond labeling, the annotator serves as an effective "judge" for response selection. By using ANAH-v2 to re-rank candidate answers, the researchers improved the Natural Language Inference (NLI) metric on HaluEval from 25% to 37%, proving that the model can actively "clean up" LLM outputs in real-time applications.
Cross-Lingual Observations
The study also highlighted a significant gap in multilingual factuality: most open-source models hallucinate considerably more in Chinese than in English, emphasizing the need for robust multilingual evaluation frameworks like ANAH-v2.
Limitations and Future Work
While the EM-based framework is highly effective, it remains sensitive to the quality of the initial seed data. Additionally, the iterative process is computationally intensive, requiring approximately 100 hours on 32 A100 GPUs. Future research may explore expanding this framework to dialogue generation and testing the methodology across different underlying model architectures to further generalize these gains in factuality.
Summary updated