[Paper Review] RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models
This paper introduces RAGTruth, a large-scale, manually annotated corpus of 18,000 RAG-generated responses with word-level hallucination labels across diverse tasks and models. It demonstrates that fine-tuning a smaller LLM like Llama-2-13B on RAGTruth achieves hallucination detection performance competitive with GPT-4-based prompt methods, significantly reducing hallucination rates in generated outputs through selective sampling.
Retrieval-augmented generation (RAG) has become a main technique for alleviating hallucinations in large language models (LLMs). Despite the integration of RAG, LLMs may still present unsupported or contradictory claims to the retrieved contents. In order to develop effective hallucination prevention strategies under RAG, it is important to create benchmark datasets that can measure the extent of hallucination. This paper presents RAGTruth, a corpus tailored for analyzing word-level hallucinations in various domains and tasks within the standard RAG frameworks for LLM applications. RAGTruth comprises nearly 18,000 naturally generated responses from diverse LLMs using RAG. These responses have undergone meticulous manual annotations at both the individual cases and word levels, incorporating evaluations of hallucination intensity. We not only benchmark hallucination frequencies across different LLMs, but also critically assess the effectiveness of several existing hallucination detection methodologies. Furthermore, we show that using a high-quality dataset such as RAGTruth, it is possible to finetune a relatively small LLM and achieve a competitive level of performance in hallucination detection when compared to the existing prompt-based approaches using state-of-the-art large language models such as GPT-4.
Motivation & Objective
- To address the lack of high-quality, large-scale datasets specifically for evaluating hallucinations in Retrieval-Augmented Generation (RAG) scenarios.
- To benchmark hallucination frequencies across diverse LLMs under RAG settings using naturally generated responses.
- To evaluate the effectiveness of existing hallucination detection methods at both passage and word levels in RAG contexts.
- To develop and validate a fine-tuning-based approach for hallucination detection that outperforms prompt-based methods using large models.
- To demonstrate that a fine-tuned small LLM can effectively suppress hallucinations in LLM outputs, even in low-hallucination models like GPT-4.
Proposed method
- Curated nearly 18,000 naturally generated RAG responses from major open-source and closed-source LLMs across multiple domains and tasks.
- Conducted meticulous manual annotation at the word level to label hallucinations, including intensity scoring, ensuring high-quality, fine-grained evaluation data.
- Benchmarked multiple existing hallucination detection methods, including GPT-4-turbo, on span-level hallucination detection using the RAGTruth corpus.
- Fine-tuned the Llama-2-13B model on the RAGTruth training data to create a dedicated hallucination detection model.
- Proposed and evaluated two sampling strategies: selecting the response with fewer detected hallucination spans or selecting responses with no detected spans.
- Evaluated hallucination suppression performance by comparing hallucination rates across random selection, detector-based selection, and baseline models.
Experimental results
Research questions
- RQ1How do different LLMs vary in their hallucination rates when generating responses under the RAG framework across diverse tasks and domains?
- RQ2To what extent do existing hallucination detection methods, including GPT-4-turbo, perform in identifying word-level hallucinations in RAG-generated content?
- RQ3Can fine-tuning a smaller LLM on a high-quality hallucination corpus like RAGTruth achieve detection performance competitive with prompt-based methods using state-of-the-art models like GPT-4?
- RQ4Can a fine-tuned hallucination detector effectively reduce hallucination rates in LLM outputs through response sampling strategies?
- RQ5How does the detectability of hallucinations vary across different types of hallucination spans (e.g., evident vs. subtle) in RAG contexts?
Key findings
- The RAGTruth corpus contains nearly 18,000 fully annotated, naturally generated RAG responses with detailed word-level hallucination labels across diverse tasks and models.
- GPT-4-turbo achieved a span-level F1 score of only 48.4% on RAGTruth, with a precision of just 24%, indicating suboptimal performance in detecting hallucinations at the span level.
- Fine-tuning Llama-2-13B on RAGTruth achieved a competitive F1 score of 48.4%, demonstrating that smaller models can match the performance of prompt-based GPT-4 approaches.
- Using the fine-tuned detector to sample from two responses reduced hallucination rates by 56.6% for Llama-2-7B-chat and 52.9% for GPT-4, even in models with inherently low hallucination rates.
- The detection of evident hallucinations was significantly more effective than that of subtle hallucinations, highlighting the difficulty of identifying subtle factual inconsistencies.
- The proposed sampling strategy based on selecting responses with no detected hallucination spans outperformed the strategy based on minimizing detected spans, especially in low-hallucination models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.