atlas

Research map / Large language models / Instruction and fine-tuning

Helpful or Harmful Data? Fine-tuning-free Shapley Attribution for Explaining Language Model Predictions

ICML 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 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 a sign-based robustness notion for instance attribution and FreeShap, a fine-tuning-free approximation of the Shapley value that uses empirical NTK kernel regression to score training examples for BERT/RoBERTa and Llama2.

Problem

Instance attribution scores for fine-tuned language models are dataset-dependent, so the sign of a training example's score (helpful vs harmful) can flip when the rest of the dataset is resampled; LOO-based methods are non-robust and exact Shapley values require exponentially many fine-tuning runs.

Approach

Define beta-robustness of the sign of instance scores, show theoretically and empirically that the Shapley value is more robust than leave-one-out, and make Shapley computation cheap by replacing each subset's fine-tuning with eNTK kernel regression using submatrices of one precomputed kernel matrix.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace G-Shapley with FreeShap's eNTK-based Shapley approximationBERT instance attribution · SST-2, MR, MRPC, and RTE (500 examples)correlation with MC-Shapley: SST-2 Pearson 0.44$\pm$0.08 -> 0.70$\pm$0.08; MR Pearson 0.32$\pm$0.22 -> 0.57$\pm$0.15; MRPC Pearson 0.68$\pm$0.08 -> 0Helped
use Shapley value instead of LOOBERT instance attribution · MR, MRPC, and RTE (500 training examples)non-robust occurrences: MR 98% -> 18%; MRPC 96% -> 28%; RTE 86% -> 56%Helped
use Shapley value instead of LOOBERT instance attribution · SST-2 (500 training examples)non-robust occurrences: 86% -> 30%Helped
select high-score examples using FreeShap rather than random selectionBERT · MR data selection, 2% subsetperformance difference from 0-shot: 0.1970 -> 0.1951No clear effect
select high-score examples using FreeShap rather than the strongest baselineBERT · MR data selection, 4% subsetperformance difference from 0-shot: 0.1904 -> 0.2111Helped
select high-score examples using FreeShap rather than the strongest baselineBERT · MR data selection, 6% subsetperformance difference from 0-shot: 0.2073 -> 0.2148Helped
select high-score examples using FreeShap rather than the strongest baselineBERT · MR data selection, 8% subsetperformance difference from 0-shot: 0.2017 -> 0.2167Helped
select high-score examples using FreeShap rather than the strongest baselineBERT · MR data selection, 10% subsetperformance difference from 0-shot: 0.1970 -> 0.2223Helped
use one K_0 kernel instead of class-specific K_c kernels (ablation)FreeShap · SST-2Pearson correlation with MC-Shapley: $0.69$ -> $0.71$No clear effect
use blockwise inversion instead of exact matrix inversion (ablation)FreeShap · SST-2 (5k training points)correlation with exact inverse: $0.9984$ Pearson; $0.9963$ SpearmanNo clear effect
remove the lowest-scoring 10% of examples using FreeShap scoresBERT instance attribution · SST-2, MR, MRPC, and RTEtest performance after data removalMixed
inspect mislabeled examples in ascending FreeShap score order instead of baseline attribution orderBERT instance attribution · wrong-label detection across 8 experimentseffectiveness of mislabeled-data identification: 7 out of 8 experimentsHelped

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 MR MRPC RTE

Benchmarks: SST-2 MR MRPC RTE

Metrics: Pearson correlation Spearman correlation non-robust occurrence percentage test accuracy under data removal data selection accuracy gain detected poisoned data percentage

Baselines: G-Shapley Influence function TracIn Representer point LOO MC-Shapley

Builds on: neural tangent kernel TMC-Shapley influence function TracIn representer point

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