atlas

Research map / Architectures and efficiency / Attention and transformers

DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learning

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Training dynamics of in-context learning · 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.

Proposes DETAIL, an influence-function attribution method for in-context demonstrations that treats the transformer as an internal kernelized ridge regressor, with random projection for speed, and applies it to demonstration reordering and curation.

Problem

Attributing which in-context learning demonstrations help or harm a transformer's prediction, in a way that is fast, sensitive to ordering, demonstration-level, and does not require parameter updates.

Approach

Reformulates the influence function on the kernelized ridge regression that transformers implicitly perform during ICL, using hidden states of demonstrations as features; computes self-influence by reusing demonstration embeddings (one forward pass) and reduces dimension by random Johnson-Lindenstrauss projection for speed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DETAIL scores to reorder demonstrations when 6 demonstrations are corruptedVicuna-7b · Subjaccuracy: 0.588 (7.96e-03) -> 0.604 (7.39e-03)Helped
Use DETAIL scores to reorder demonstrations when 6 demonstrations are corruptedVicuna-7b · SST-2accuracy: 0.487 (9.45e-03) -> 0.520 (1.01e-02)Helped
Use DETAIL scores to reorder demonstrations when 6 demonstrations are corruptedVicuna-7b · Rotten Tomatoesaccuracy: 0.398 (1.12e-02) -> 0.425 (1.37-02)Helped
Combine transformer hidden state and BERT embedding using an equal-weight average (ablation)DETAIL curation · Subjaccuracy: 0.665 (2.36e-02) -> 0.758 (1.97e-02)Helped
Combine transformer hidden state and BERT embedding using an equal-weight average (ablation)DETAIL curation · SST-2accuracy: 0.475 (1.31e-02) -> 0.579 (2.34e-02)Helped
Combine transformer hidden state and BERT embedding using an equal-weight average (ablation)DETAIL curation · Rotten Tomatoesaccuracy: 0.510 (2.10e-02) -> 0.575 (2.46e-02)Helped
Combine transformer hidden state and BERT embedding using an equal-weight average (ablation)DETAIL curation · AG Newsaccuracy: 0.408 (2.10e-02) -> 0.425 (1.76e-02)Helped
Use DETAIL scores from later transformer layers rather than earlier layers (ablation)Vicuna-7b · Demonstration removal, perturbation, and noisy-label detection on Subj and SST-2task performanceHelped
Use the column position (immediately before the label) rather than the label position for embeddings (ablation)DETAIL · Demonstration removal on Subj and SST-2accuracyNo clear effect
Use 10 rather than 5 LiSSA iterations (ablation)Attribution baseline in demonstration curation · Subjaccuracy: 0.556 (1.38e-02) -> 0.597 (3.23e-02)No clear effect
Use 10 rather than 5 LiSSA iterations (ablation)Attribution baseline in demonstration curation · SST-2accuracy: 0.493 (1.34e-02) -> 0.499 (1.64e-02)No clear effect
Use 10 rather than 5 LiSSA iterations (ablation)Attribution baseline in demonstration curation · Rotten Tomatoesaccuracy: 0.498 (1.72e-02) -> 0.494 (1.74e-02)No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MNIST AG News SST-2 Rotten Tomatoes Subj

Benchmarks: AG News SST-2 Rotten Tomatoes Subj

Metrics: test accuracy after demonstration removal/corruption AUROC for noisy demonstration detection wall time (seconds)

Baselines: Integrated gradients LIME Attention Datamodel BERT-Score LOO

Builds on: influence functions linear self-attention internal optimizer Johnson-Lindenstrauss lemma LiSSA datamodels

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