Abstract
Retrieval-Augmented Generation (RAG) systems excel at retrieving information but often fail to identify when a query is unanswerable, leading to hallucinations. This paper presents UAEval4RAG, a framework designed to automatically synthesize challenging unanswerable queries across a six-category taxonomy. By evaluating systems on their ability to gracefully reject or clarify these queries, UAEval4RAG provides a more comprehensive assessment of RAG reliability without sacrificing performance on answerable questions.
Introduction
While RAG has become the standard for grounding Large Language Models (LLMs) in specific datasets, existing benchmarks primarily focus on answerable queries. In practice, users frequently submit requests that are underspecified, based on false premises, or outside the provided knowledge base. Current systems, optimized for helpfulness, often "hallucinate" answers rather than admitting ignorance. UAEval4RAG addresses this gap by testing a system’s ability to recognize the limits of its specific database.
Methodology: The UAEval4RAG Framework
The framework introduces a three-pronged approach to unanswerability evaluation:
1. A Taxonomy of Unanswerability
The authors define six categories of requests requiring rejection or clarification:
- Underspecified: Missing crucial information.
- False-presupposition: Based on incorrect assumptions.
- Nonsensical: Logically impossible or gibberish.
- Modality-limited: Requests for unsupported formats (e.g., images).
- Safety-concerned: Policy-violating requests.
- Out-of-Database (OOD): Relevant but missing from the specific context.
2. Automated Synthesis Pipeline
To scale evaluation, UAEval4RAG uses an LLM-driven pipeline to "chunk" knowledge bases and generate queries for the first five categories. For OOD queries, it incorporates external news data to find contextually relevant but missing information. A verification step ensures high-quality query generation.
3. Evaluation Metrics
The framework employs three primary metrics:
- Unanswered Ratio: Frequency of successful avoidance of unanswerable queries.
- Acceptable Ratio: An LLM-based qualitative measure of the system's rejection or clarification response.
- Joint Score: A balanced metric accounting for both answerable accuracy and unanswerable robustness.
Experimental Setup
Evaluation was conducted across four diverse knowledge bases: TriviaQA (fact-based), MuSiQue (multi-hop reasoning), 2WikiMultihopQA, and HotpotQA. These datasets allowed the authors to observe how knowledge distribution impacts unanswerability detection.
Key Results and Insights
The synthesis pipeline demonstrated high fidelity, with 92% of generated queries aligning with human judgment. Notably, the "Underspecified" category proved the most difficult for models, which often guessed rather than seeking clarification.
The "Helpfulness" Trade-off
A significant finding is the trade-off between helpfulness and skepticism. Systems tuned for maximum accuracy on valid questions are more prone to hallucinations when the answer is absent. However, adding restrictive rejection instructions to prompts can improve unanswerable query performance by nearly 80% with minimal impact on standard accuracy.
Model Comparison
In comparative testing, Claude 3.5 Sonnet demonstrated superior balance, achieving a 10.4% higher "Acceptable Ratio" for unanswerable requests compared to GPT-4o.
Conclusion and Future Work
UAEval4RAG highlights the critical need for "skeptical" RAG systems. Future research will focus on multi-turn interactions for clarifying underspecified requests and extending the framework to more complex, real-world data formats like unstructured PDFs and legal documentation.
Summary updated