TL;DR
Large Language Models (LLMs) often generate factual errors, known as hallucinations. This paper introduces a fine-grained taxonomy of these errors and a new benchmark (FAVABENCH) to detect them. They also propose FAVA, a retrieval-augmented LLM that excels at both detecting and editing these fine-grained hallucinations, outperforming existing methods.
What Problem Does This Paper Address?
LLMs are increasingly used for information-seeking tasks, but they frequently produce factual inaccuracies, or "hallucinations." Existing methods for detecting these hallucinations often treat them as a binary problem (factual or not factual) or focus only on entity-level errors. However, hallucinations are diverse and can manifest in various ways, requiring more nuanced detection and correction. This paper addresses the need for a more granular approach to identify, categorize, and fix these factual errors in LLM outputs.
Methods
The authors introduce a novel fine-grained hallucination detection task and a corresponding taxonomy that categorizes hallucinations into six types: Entity, Relation, Contradictory Sentence, Invented, Subjective, and Unverifiable.
To tackle this, they propose FAVA (FAct Verification with Augmentation), a retrieval-augmented LLM. FAVA has two main components:
- Retriever (Mret): This component retrieves relevant documents from external knowledge sources (like Wikipedia) based on the input query and LM output.
- Editing LM (Medit): This component takes the original LM output, the retrieved context, and the input query to detect and, if possible, edit factual errors.
FAVA is trained on synthetic data generated through a three-step pipeline:
- Seed Passage Generation: Creating diverse, factually accurate passages.
- Error Insertion: Prompting LLMs (ChatGPT and GPT-4) to insert specific types of errors based on the taxonomy.
- Post-processing: Formatting the data into (erroneous input, edited output) pairs for training.
Datasets
- FAVABENCH: A newly introduced benchmark consisting of approximately 1,000 fine-grained human annotations on LLM responses to information-seeking queries. It includes judgments on three LLMs (ChatGPT, Llama2-Chat 7B, Llama2-Chat 70B) across various domains.
- Training Data: FAVA is trained on a large dataset of synthetic examples generated using their pipeline, with over 35,000 instances.
- Evaluation Data: The benchmark FAVABENCH is used for evaluating detection performance. For editing evaluation, they use a biography generation task similar to the one used by FActScore.
Key Insights and Ideas
- Hallucinations are diverse: The paper strongly emphasizes that hallucinations are not monolithic. Treating them as a simple binary problem or focusing solely on entity errors misses a significant portion of factual inaccuracies.
- Fine-grained detection is crucial: The proposed taxonomy and detection task highlight the need to understand what kind of error is being made to effectively address it.
- Retrieval augmentation is key: FAVA's success hinges on its ability to leverage external knowledge to verify facts, which is essential for detecting and correcting many types of hallucinations.
- Synthetic data generation is effective: The authors demonstrate that carefully generated synthetic data, mimicking specific error types, can be used to train powerful models for hallucination detection and editing.
Key Results
- FAVA outperforms baselines: On the FAVABENCH benchmark, FAVA significantly outperforms retrieval-augmented ChatGPT and GPT-4 on fine-grained hallucination detection (achieving an F1 score of 48.1% compared to Rt-ChatGPT's 27.8% and GPT-4's 42.5%).
- Improved factuality through editing: FAVA's editing capabilities improve the factuality scores of other LLMs (e.g., Alpaca 13B) by up to 9.3% when measured by FActScore.
- High hallucination rates: The analysis of annotated data reveals that a majority of responses from ChatGPT and Llama2-Chat models contain at least one hallucination (e.g., 70.2% for Llama2-Chat 7B).
- Unverifiable statements are common: Unverifiable statements constitute a significant portion (over 40%) of human-annotated hallucinations, underscoring the challenge of grounding LLM outputs.
Limitations and Future Work
- Invented and Unverifiable errors: FAVA's performance on "Invented" and "Unverifiable" error types is still limited, as these often require extensive search beyond the top few retrieved documents.
- Retrieval improvement: While retrieval is crucial, the paper suggests there's room for improvement in retrieving and incorporating more references effectively.
- Scope: The current taxonomy excludes errors in common sense, numerical, or logical reasoning.
- Future work: The authors suggest further improvements in retrieving and incorporating references, and potentially expanding the taxonomy to include other types of reasoning errors.
Summary updated