Concept-based Explanations for Retrieval-Augmented Large Language Models

Loading...
Thumbnail Image

Authors

Ling, Katherine Cheuk Ying

Journal Title

Journal ISSN

Volume Title

Publisher

Abstract

Large language models (LLMs) with retrieval-augmented generation (RAG) capabilities respond differently to open-ended questions depending on the user's intent and the interpretation of retrieved sources. However, existing explainable AI techniques for these systems focus on explaining the LLM's outputs by attributing its answer to the sources retrieved using RAG rather than to these underlying signals. We present CORAL, a framework that organizes the answer space as a lattice of concepts representing different intents and interpretations. CORAL provides users a structured space to both generate counterfactual explanations and explore how changes in intent and interpretation shape the LLM's output. While an exhaustive method populates the entire lattice to find counterfactuals, we propose pruning strategies based on LLM-aided concept selection, entropy-guided rank aggregation, and graph-of-thoughts reasoning to reduce the number of LLM calls. Finally, we evaluate the effectiveness of our pruning strategies and the quality of our explanations through quantitative and qualitative experiments.

Description

Keywords

Computer science

Citation