TL;DR
This paper introduces RAGEval, a novel framework for automatically generating scenario-specific datasets to evaluate Retrieval-Augmented Generation (RAG) systems. It also proposes three new metrics (Completeness, Hallucination, and Irrelevance) to better assess factual accuracy in RAG, addressing the limitations of existing benchmarks that struggle with domain-specific evaluations.
What Problem Does This Paper Address?
Retrieval-Augmented Generation (RAG) systems are powerful for integrating external knowledge into Large Language Models (LLMs), especially in critical fields like medicine and finance where factual accuracy is paramount. However, evaluating RAG systems in specialized domains is challenging due to the high cost of creating domain-specific datasets and the inadequacy of existing evaluation metrics. Current benchmarks often lack coverage of diverse, domain-specific scenarios and fail to rigorously assess factual accuracy, limiting their real-world applicability. This paper aims to bridge this gap by providing a framework for automated generation of such datasets and introducing more robust evaluation metrics.
Methods
RAGEval employs a schema-based pipeline to generate evaluation data. The process starts with summarizing a schema from seed documents, which acts as a blueprint for generating configurations. These configurations then guide the creation of diverse, factual documents. From these documents, question-answer (QRA) triples are generated, along with supporting references. A key innovation is the introduction of three novel metrics:
- Completeness: Measures how well a generated answer covers the essential information from the ground truth, assessed by comparing it against extracted key points.
- Hallucination: Identifies instances where the generated content contradicts key points, highlighting potential inaccuracies.
- Irrelevancy: Assesses the proportion of key points from the ground truth that are neither covered nor contradicted by the generated answer.
These metrics are designed to be more stable and comparable than traditional ones by being grounded in factual key points.
Datasets
The paper introduces the DragonBall dataset, a new benchmark for RAG evaluation. This dataset is generated using the RAGEval framework and covers three critical domains: finance, law, and medicine. It includes both Chinese and English texts and comprises 6,711 questions across various question types. The dataset aims to provide a comprehensive resource for multilingual, scenario-specific RAG research.
Key Insights and Ideas
- Domain-specific evaluation is crucial: Existing RAG benchmarks are insufficient for real-world applications that demand high factual accuracy in specialized domains.
- Automated dataset generation is feasible: RAGEval demonstrates that it's possible to automatically create high-quality, scenario-specific RAG evaluation datasets, significantly reducing manual effort.
- Keypoint-based metrics offer deeper insights: The proposed Completeness, Hallucination, and Irrelevancy metrics provide a more nuanced assessment of RAG performance compared to traditional lexical overlap metrics like ROUGE-L and BLEU.
- LLMs can be effective evaluators: The study shows that LLMs can achieve high consistency with human evaluations when used for scoring the proposed metrics.
Key Results
- RAGEval outperforms zero-shot and one-shot methods in generating clear, safe, conforming, and rich samples.
- The proposed metrics (Completeness, Hallucination, Irrelevancy) show high consistency with human evaluations, with an absolute difference of only 1.67%.
- In generation performance comparisons, GPT-40 achieved the highest Completeness scores (79.13% CN, 69.36% EN) and the lowest Hallucination scores (12.10% CN).
- The DragonBall dataset demonstrates that RAGEval maintains high QRA quality scores (around 95% for scores 4 and 5) across different scenarios and languages.
Limitations and Future Work
The authors acknowledge two primary limitations:
- Reliance on LLMs for text generation: While prompts are carefully designed, LLMs may still produce hallucinations.
- Cost of closed-source models: Using advanced closed-source LLMs for generation can be expensive, although open-source alternatives can mitigate this.
Future work could involve extending the RAGEval framework to even more diverse scenarios and further closing the performance gap between proprietary and open-source models in RAG assessment.
Summary updated