atlas

Research map / Probabilistic and scientific modeling / Causal discovery

Gumbel Counterfactual Generation From Language Models

ICLR 2025 · Probabilistic and scientific modeling › Causal discovery · approach: Counterfactual identification and bounds · 0 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.

Reformulates language models as well-founded structural equation models via the Gumbel-max trick and uses hindsight Gumbel sampling to generate true string counterfactuals, then shows common intervention methods cause unintended side effects.

Problem

Interventions on language models (knowledge editing, linear steering, instruction tuning) cannot answer counterfactual questions about how a specific observed string would have been generated under the modified model, and prior counterfactual analyses lacked a precise causal formalization for LMs.

Approach

Frame an LM as a well-founded SEM where next-token choices are argmax of logits plus i.i.d. Gumbel noise; infer the posterior of the exogenous noise given an observed string (hindsight Gumbel sampling) and rerun the intervened model with that noise to obtain the counterfactual string.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply MEMIT to edit the Louvre location from Paris to RomeGPT2-XL · Wikipedia prompts, Louvre editnormalized edit distance: 10-15%Mixed
Apply MEMIT to edit the Koalas' habitat from Australia to New ZealandGPT2-XL · Wikipedia prompts, Koalas editnormalized edit distance: 10-15%Mixed
Edit the Louvre location from Paris to RomeGPT2-XL · Louvre-focused counterfactualscounterfactuals mentioning Rome: 54.6%Helped
Edit the Louvre location from Paris to RomeGPT2-XL · Louvre-focused counterfactualscounterfactuals still mentioning Paris: 45.4%Hurt
Apply common model interventions, including knowledge editing and linear steeringLanguage models · Wikipedia promptssemantic similarity of original and counterfactual textHurt

Surprising findings

Limitations

Experimental setup

Datasets: English Wikipedia sentences (prompts) Bios dataset

Benchmarks: Wikipedia continuation prompts (500 per model pair) Louvre-focused GPT2-XL sentences (75)

Metrics: normalized edit distance fraction of counterfactuals mentioning Rome

Baselines: MEMIT Honest LLaMA MiMiC LLaMA3-8b-Instruct

Builds on: Gumbel-max trick structural equation models MEMIT MiMiC Inference-time intervention (Honest LLaMA)

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