CELL your Model: Contrastive Explanations for Large Language Models
Not on the map. Why?
Abstract (arXiv)
The advent of black-box deep neural network classification models has sparked the need to explain their decisions. However, in the case of generative AI, such as large language models (LLMs), there is no class prediction to explain. Rather, one can ask why an LLM output a particular response to a given prompt. In this paper, we answer this question by proposing a contrastive explanation method requiring simply black-box/query access. Our explanations suggest that an LLM outputs a reply to a given prompt because if the prompt was slightly modified, the LLM would have given a different response that is either less preferable or contradicts the original response. The key insight is that contrastive explanations simply require a scoring function that has meaning to the user and not necessarily a specific real valued quantity (viz. class label). To this end, we offer a novel budgeted algorithm, our main algorithmic contribution, which intelligently creates contrasts based on such a scoring function while adhering to a query budget, necessary for longer contexts. We show the efficacy of our method on important natural language tasks such as open-text generation and chatbot conversations.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 41 of its 59 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
41 of 59 references.
References · 41
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2018A Survey Of Methods For Explaining Black Box Modelscited by 973
- 2024Prometheus 2: An Open Source Language Model Specialized in Evaluating Other Language Modelscited by 446
- 2021Understanding Dataset Difficulty with V-Usable Informationcited by 291
- 2018Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negativescited by 262
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 222
29 more
- 2020HateCheck: Functional Tests for Hate Speech Detection Modelscited by 216
- 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 207
- 2020A Survey of the State of Explainable AI for Natural Language Processingcited by 206
- 2019Build it Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attackcited by 176
- 2019One Explanation Does Not Fit All: A Toolkit and Taxonomy of AI Explainability Techniquescited by 164
- 2017EAD: Elastic-Net Attacks to Deep Neural Networks via Adversarial Examplescited by 155
- 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
- 2023Explore, Establish, Exploit: Red Teaming Language Models from Scratchcited by 114
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2024Are self-explanations from Large Language Models faithful?cited by 101
- 2022The Moral Integrity Corpus: A Benchmark for Ethical Dialogue Systemscited by 93
- 2022Interpreting Language Models with Contrastive Explanationscited by 92
- 2024Curiosity-driven Red-teaming for Large Language Modelscited by 88
- 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
- 2021Contrastive Explanations for Model Interpretabilitycited by 75
- 2017A causal framework for explaining the predictions of black-box sequence-to-sequence modelscited by 58
- 2019Model Agnostic Contrastive Explanations for Structured Datacited by 41
- 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 37
- 2022CORE: A Retrieve-then-Edit Framework for Counterfactual Data Generationcited by 24
- 2019Leveraging Latent Features for Local Explanationscited by 21
- 2024Language Models in Dialogue: Conversational Maxims for Human-AI Interactionscited by 21
- 2022How do you Converse with an Analytical Chatbot? Revisiting Gricean Maxims for Designing Analytical Conversational Behaviorcited by 20
- 2018Interpreting Neural Networks With Nearest Neighborscited by 18
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documentscited by 17
- 2024Multi-Level Explanations for Generative Language Modelscited by 11
- 2024Who Followed the Blueprint? Analyzing the Responses of U.S. Federal Agencies to the Blueprint for an AI Bill of Rightscited by 11
- 2021Let the CAT out of the bag: Contrastive Attributed explanations for Textcited by 9
- 2024Trust Regions for Explanations via Black-Box Probabilistic Certificationcited by 4
- 2023Neural Conversation Models and How to Rein Them in: A Survey of Failures and Fixescited by 1
Built on by
Not cited yet.