In-Context Explainers: Harnessing LLMs for Explaining Black Box Models

Nicholas Kroeger, Dan Ley, Satyapriya Krishna, Chirag Agarwal, Himabindu Lakkaraju
10/9/2023
14 citations
cs.CLcs.AIcs.LG

Official code: AI4LIFE-GROUP/LLM_Explainer (34 stars, Jupyter Notebook, MIT, last commit 2024-07-22).

Abstract

Recent advancements in Large Language Models (LLMs) have demonstrated exceptional capabilities in complex tasks like machine translation, commonsense reasoning, and language understanding. One of the primary reasons for the adaptability of LLMs in such diverse tasks is their in-context learning (ICL) capability, which allows them to perform well on new tasks by simply using a few task samples in the prompt.

Show full abstract

Despite their effectiveness in enhancing the performance of LLMs on diverse language and tabular tasks, these methods have not been thoroughly explored for their potential to generate post hoc explanations. In this work, we carry out one of the first explorations to analyze the effectiveness of LLMs in explaining other complex predictive models using ICL. To this end, we propose a novel framework, In-Context Explainers, comprising of three novel approaches that exploit the ICL capabilities of LLMs to explain the predictions made by other predictive models. We conduct extensive analysis with these approaches on real-world tabular and text datasets and demonstrate that LLMs are capable of explaining other predictive models similar to state-of-the-art post hoc explainers, opening up promising avenues for future research into LLM-based post hoc explanations of complex predictive models.

View on arXivView PDF

Code Implementations(1)

MIT

Code for paper: Are Large Language Models Post Hoc Explainers?

345Jupyter Notebook, JavaScriptOct 10, 20232 years agoMIT
explainabilityinterpretabilitylarge-language-modelsllmxai

Similar Papers

Cite this paper

@article{kroeger2023incontext,
  title  = {In-Context Explainers: Harnessing LLMs for Explaining Black Box Models},
  author = {Nicholas Kroeger and Dan Ley and Satyapriya Krishna and Chirag Agarwal and Himabindu Lakkaraju},
  year   = {2023},
  eprint = {2310.05797},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.05797v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.05797.svg)](https://codeofpaper.com/paper/2310.05797)

Discussion