atlas

Research map / Large language models / Language, safety and interpretability

Faithful Explanations of Black-box NLP Models Using LLM-generated Counterfactuals

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Faithfulness of LLM explanations · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LLM-generated counterfactuals for model-agnostic causal explanations of black-box NLP models, plus a causal embedding matching method trained with LLM-generated CFs that is far cheaper at inference, and a new LLM-built stance detection explanation benchmark.

Problem

Faithful, model-agnostic causal explanations of NLP model predictions for high-level concepts are hard to obtain: counterfactuals are unavailable, LLM-based CF generation is costly at inference, and existing benchmarks are scarce.

Approach

Prompt an LLM to generate counterfactuals that change one concept while holding confounders fixed, and use these (plus matched and misspecified examples) to train a causal sentence encoder whose embedding space supports fast nearest-neighbor matching as CF approximation; also proves approximate-CF methods are order-faithful while non-causal ones need not be.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Top-K matching (K=10) instead of a single match (K=1)CEBaB explainers · CEBaBL2 error: Causal Model .66 -> .56 (DistilBERT); Fine-tune Generative .38 -> .32 (DistilBERT)Helped
Use few-shot rather than zero-shot promptsGenerative CF explanation · CEBaBL2 error (AVG): .32 -> .30Helped
Fine-tune T5 on paired human-written CFs rather than use few-shot ChatGPTGenerative CF explanation · CEBaBL2 error (AVG): .30 -> .28Helped
Use the causal representation model rather than the strongest matching baselineCEBaB matching · CEBaBL2 error (AVG): .58 -> .52Helped
Replace the standard candidate set with one containing ground-truth CFsCausal Model · CEBaBL2 error (AVG): .52 -> .09Helped
Replace the standard candidate set with one containing ground-truth CFsCausal Model · Stance DetectionL2 error (AVG): 0.59 -> 0.10Helped
Replace SentenceTransformer with RoBERTa as the backbone (ablation)Causal Model · CEBaB, original candidate setL2 error: .65 -> .66No clear effect
Remove filtering of unsuccessful or misspecified CFs (ablation)Causal Model · CEBaB, candidate set augmented with misspecified CFsL2 error: .70 -> .77Hurt
Replace human-annotated concepts with zero-shot LLM concept predictions (ablation)Causal Model · CEBaB, original candidate setL2 error: .65 -> .65No clear effect
Remove XCF examples from the objective (ablation)Causal Model · CEBaB, candidate set with ground-truth CFsL2 error: .13 -> .26Hurt
Remove XM examples from the objective (ablation)Causal Model · CEBaB, candidate set with misspecified CFsL2 error: .70 -> .81Hurt
Remove XMiCF examples from the objective (ablation)Causal Model · CEBaB, candidate set with misspecified CFsL2 error: .70 -> .83Hurt

Surprising findings

Limitations

Experimental setup

Datasets: CEBaB SemEval 2016 stance detection CEBaB inclusive train set

Benchmarks: CEBaB SemEval 2016 stance detection (new explanation setup)

Metrics: L2 error cosine distance error norm difference error latency

Baselines: Zero-shot Generative (ChatGPT) Few-shot Generative (ChatGPT) Fine-tune Generative (T5-base) Random Match Propensity Approx PT RoBERTa PT S-Transformer FT S-Transformer

Builds on: CEBaB Causal Proxy Model all-mpnet-base-v2 SentenceTransformer RoBERTa

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy