atlas

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

GiLOT: Interpreting Generative Language Models via Optimal Transport

ICML 2024 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks

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 GILOT, a perturbation-based input attribution method for generative LLMs that uses optimal transport with token-embedding cost to measure output distribution shifts when each input token is masked, evaluated with MoRF/LeRF/ABPC faithfulness on Llama-family models.

Problem

Existing feature attribution methods designed for discriminative models like BERT yield unfaithful explanations for generative LLMs, because output distributions over large vocabularies have unequal semantic distances and outputs are autoregressive sequences.

Approach

Measure the change in next-token distributions (marginalized over beam-searched continuations) when an input token is masked, using optimal transport with a cosine-distance cost between token embeddings instead of KL divergence, so that semantically similar token shifts are penalized less.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use OT instead of KLD to measure token-distribution distance (ablation)GILOT on Llama2-13B-Chat · Llama2-13B-ChatABPC: 0.93 -> 1.38Helped
Use OT instead of KLD to measure token-distribution distance (ablation)GILOT on Llama2-13B-Chat · Llama2-13B-ChatMoRF: 41.54 -> 41.88Helped
Use OT instead of KLD to measure token-distribution distance (ablation)GILOT on Llama2-13B-Chat · Llama2-13B-ChatLeRF: 40.62 -> 40.51Helped
Increase beam size from 2 to 10 (ablation)GILOT on Llama2-13b-chat · Llama2-13b-chatABPC: 1.12 to 1.38, with 23.2% enhancementHelped
Increase output length J from 1 toward 10 (ablation)GILOT · Feature attribution correlationSpearman correlationHelped
Use GILOT instead of the strongest baselineLlama2-13b-chat · Llama2-13b-chatABPC: 1.20 -> 1.38Helped
Use GILOT instead of the strongest baselineCodeLlama-13b-python · CodeLlama-13b-pythonMoRF: 29.98 -> 30.35Helped
Use GILOT instead of the strongest baselineAlpaca-LoRA-13B · Alpaca-LoRA-13BABPC: 2.38 -> 4.24Helped
Use GILOT instead of the strongest baselineVicuna-13B · Vicuna-13BABPC: 4.57 -> 6.23Helped
Use GILOT instead of IGVicuna-7B · Vicuna-7BMoRF: 32.20 -> 33.10Hurt
Use GILOT instead of IG-AvgStanford-Alpaca-7B · Stanford-Alpaca-7BMoRF: 31.39 -> 30.84Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca ShareGPT SST-2

Benchmarks: MoRF/LeRF/ABPC perturbation tests on 100 Alpaca and ShareGPT prompts SST-2 in-context order permutation analysis

Metrics: MoRF LeRF ABPC Pearson correlation accuracy order sensitivity

Baselines: LIME IG IG-Avg BTA BTA-Avg KLD-based estimator

Builds on: LIME Integrated Gradients Bidirectional Transformer Attribution Sinkhorn-Knopp optimal transport IPOT

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