atlas

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

ContextCite: Attributing Model Generation to Context

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 13 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.

Introduces context attribution (finding which context sources cause a generated statement) and ContextCite, a sparse linear surrogate built from random context ablations, and applies it to verification, pruning, and poisoning detection.

Problem

Identifying which parts of a provided context actually led a language model to generate a given statement, distinguishing grounded, misinterpreted, and fabricated content.

Approach

Treat the LM's response probability under random context ablations as a function to learn; fit a sparse (Lasso) linear surrogate on logit-probabilities and use its weights as contributive attribution scores, applicable to any existing LM without training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ContextCite-attributed sources instead of the entire context for answer verificationLlama-3-8B · HotpotQA and Natural QuestionsAUC for predicting answer accuracyHelped
Regenerate answers using only the top-k ContextCite-attributed sourcesLlama-3-8B · HotpotQA and Natural QuestionsF1-scoreHelped
Use 32 context ablations to fit the ContextCite surrogateContextCite · TyDi QA, Hotpot QA, and CNN DailyMailtop-k log-probability drop and LDSHelped
Increase ContextCite ablations from 32 to 64, 128, or 256 (ablation)ContextCite · TyDi QA, Hotpot QA, and CNN DailyMailattribution qualityHelped
Use attention scores instead of ContextCitecontext attribution · Benchmarks evaluated with Llama-3-8B and Phi-3-minitop-k log-probability drop and LDSMixed

Surprising findings

Limitations

Experimental setup

Datasets: TyDi QA HotpotQA CNN DailyMail Natural Questions MS MARCO NeuralExec test set

Benchmarks: TyDi QA HotpotQA CNN DailyMail Natural Questions MS MARCO

Metrics: top-k log-probability drop linear datamodeling score RMSE AUC F1 top-1 detection accuracy

Baselines: Leave-one-out Attention Gradient norm Semantic similarity Attention rollout Gradient times input

Builds on: linear datamodeling score TRAK Lasso attention rollout leave-one-out

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