MetaRAG: Metamorphic Testing for Hallucination Detection in RAG Systems
On the map: Retrieval-augmented generation → Hallucination detection in RAG
Abstract (arXiv)
Large Language Models (LLMs) are increasingly deployed in enterprise applications, yet their reliability remains limited by hallucinations, i.e., confident but factually incorrect information. Existing detection approaches, such as SelfCheckGPT and MetaQA, primarily target standalone LLMs and do not address the unique challenges of Retrieval-Augmented Generation (RAG) systems, where responses must be consistent with retrieved evidence. We therefore present MetaRAG, a metamorphic testing framework for hallucination detection in Retrieval-Augmented Generation (RAG) systems. MetaRAG operates in a real-time, unsupervised, black-box setting, requiring neither ground-truth references nor access to model internals, making it suitable for proprietary and high-stakes domains. The framework proceeds in four stages: (1) decompose answers into atomic factoids, (2) generate controlled mutations of each factoid using synonym and antonym substitutions, (3) verify each variant against the retrieved context (synonyms are expected to be entailed and antonyms contradicted), and (4) aggregate penalties for inconsistencies into a response-level hallucination score. Crucially for identity-aware AI, MetaRAG localizes unsupported claims at the factoid span where they occur (e.g., pregnancy-specific precautions, LGBTQ+ refugee rights, or labor eligibility), allowing users to see flagged spans and enabling system designers to configure thresholds and guardrails for identity-sensitive queries. Experiments on a proprietary enterprise dataset illustrate the effectiveness of MetaRAG for detecting hallucinations and enabling trustworthy deployment of RAG-based conversational agents. We also outline a topic-based deployment design that translates MetaRAG's span-level scores into identity-aware safeguards; this design is discussed but not evaluated in our experiments.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Hallucination detection in RAG, one of 15 directions in Retrieval-augmented generation. Builds on 25 of its 35 references that are in the map. First posted on arXiv 11 Sep 2025.
Builds on
25 of 35 references.
References · 25
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
- 2018Datasheets for Datasetscited by 1,371
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2020StereoSet: Measuring stereotypical bias in pretrained language modelscited by 911
- 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 895
- 2023SelfCheckGPT: Zero-Resource Black-Box Hallucination Detection for Generative Large Language Modelscited by 787
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 657
- 2019Evaluating the Factual Consistency of Abstractive Text Summarizationcited by 578
13 more
- 2023Benchmarking Large Language Models for News Summarizationcited by 444
- 2023A Survey of Hallucination in Large Foundation Modelscited by 365
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2021Measuring Attribution in Natural Language Generation Modelscited by 253
- 2022FaithDial: A Faithful Benchmark for Information-Seeking Dialoguecited by 108
- 2020Metamorphic Testing: A New Approach for Generating Next Test Casescited by 71
- 2024Factuality of Large Language Models: A Surveycited by 64
- 2024Confabulation: The Surprising Value of Large Language Model Hallucinationscited by 42
- 2024AI Hallucinations: A Misnomer Worth Clarifyingcited by 34
- 2018Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testingcited by 30
- 2025Hallucination Detection in Large Language Models with Metamorphic Relationscited by 24
- 2024Hallucination Detection in Foundation Models for Decision-Making: A Flexible Definition and Review of the State of the Artcited by 17
- 2024MORTAR: Multi-turn Metamorphic Testing for LLM-based Dialogue Systemscited by 7
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2023RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models
- 2025Osiris: A Lightweight Open-Source Hallucination Detection System
- 2026Retromorphic Testing with Hierarchical Verification for Hallucination Detection in RAG
- 2025Bi'an: A Bilingual Benchmark and Model for Hallucination Detection in Retrieval-Augmented Generation
- 2026RAGognizer: Hallucination-Aware Fine-Tuning via Detection Head Integration
- 2025The Semantic Illusion: Certified Limits of Embedding-Based Hallucination Detection in RAG Systems
- 2025LettuceDetect: A Hallucination Detection Framework for RAG Applications
- 2025LUMINA: Detecting Hallucinations in RAG System with Context-Knowledge Signals