RAG-Ex: A Generic Framework for Explaining Retrieval Augmented Generation
Open Access
- 10 July 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2776-2780
Abstract
Owing to their size and complexity, large language models (LLMs) hardly explain why they generate a response. This effectively reduces the trust and confidence of end users in LLM-based applications, including Retrieval Augmented Generation (RAG) for Question Answering (QA) tasks. In this work, we introduce RAG-Ex, a model- and language-agnostic explanation framework that presents approximate explanations to the users revealing why the LLMs possibly generated a piece of text as a response, given the user input. Our framework is compatible with both open-source and proprietary LLMs. We report the significance scores of the approximated explanations from our generic explainer in both English and German QA tasks and also study their correlation with the downstream performance of LLMs. In the extensive user studies, our explainer yields an F1-score of 76.9% against the end user annotations and attains almost on-par performance with model-intrinsic approaches.Keywords
This publication has 17 references indexed in Scilit:
- A Survey of Adversarial Defenses and Robustness in NLPACM Computing Surveys, 2023
- Large language models and the perils of their hallucinationsCritical Care, 2023
- Scaling Instruction-Finetuned Language ModelsarXiv, 2022
- Perturbation-based methods for explaining deep neural networks: A surveyPattern Recognition Letters, 2021
- Deterministic Local Interpretable Model-Agnostic Explanations for Stable ExplainabilityMachine Learning and Knowledge Extraction, 2021
- Explaining black-box classifiers using post-hoc explanations-by-example: The effect of explanations and error-rates in XAI user studiesArtificial Intelligence, 2021
- Aligning Faithful Interpretations with their Social AttributionTransactions of the Association for Computational Linguistics, 2021
- On the Dangers of Stochastic Parrots2021
- Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks2019
- Explainable AI: Interpreting, Explaining and Visualizing Deep Learning2019