Under the Influence -- of What? A Controlled Evaluation of Influence Functions
Organizations: IT University of Copenhagen, Denmark
Abstract
Influence functions are a promising way to identify which training examples are responsible for a model's output. However, so far empirical evaluations on LLM pretraining level only assumed that they work as intended. This is the first work to systematically evaluate whether the 'influential' examples actually have properties relevant to a language model output, based on re-training with controlled data splits. We investigate three prominent Hessian approximation methods (GradSim, TrackStar, K-FAC) in two settings (linguistic phenomena and factual knowledge) in GPT-2 type models (68M-5.6B training tokens). We find that on average, the `influential' examples are indeed relevant, but they do not always bear the target properties directly, and the ratio and kind of relevance varies by setting.
Figures & tables
| Bind. Refl. | NPI | Exist. there | Wh- Island | |||||
| 68M | 58.1 | +3.6 | 34.0 | -16.0 | 91.7 | -23.2 | 21.8 | -9.2 |
| 130M | 59.6 | -2.7 | 41.0 | -15.0 | 97.1 | -9.6 | 22.0 | -2.5 |
| 1.3B | 74.7 | -44.2 | 73.0 | -27.0 | 98.1 | -4.7 | 39.3 | -11.5 |
| 5.6B | 75.0 | -25.1 | 86.0 | -32.0 | 98.1 | -6.8 | 58.7 | -14.2 |
| GPT-2-small | 67.3 | 87.8 | 97.0 | 57.7 | ||||
| GPT-2-medium | 68.6 | 87.0 | 98.5 | 50.4 | ||||
| All facts | CC- supported | Wiki- supported | |
| CC 5.6B | 18.8\hbox to0.0pt{{}_{\scriptstyle{\color[rgb]{0,0.5,0}-3.7}}\hss} | – | |
| Wikipedia 4.8B | – | 20.5\hbox to0.0pt{{}_{\scriptstyle{\color[rgb]{0,0.5,0}-3.2}}\hss} | |
| GPT-2-small | |||
| GPT-2-medium | |||
| Random Guessing |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Bind. | Ex.-Th. | Wh-Isl. | NPI | Mean | |
| EK-FAC (sketched) | 35.3 | 88.8 | 48.5 | 48.8 | 55.4 | |
| 37.3 | 90.0 | 48.1 | 48.8 | 56.1 | ||
| K-FAC (sketched) | 35.7 | 86.8 | 47.6 | 50.0 | 55.0 | |
| 37.6 | 88.8 | 48.1 | 49.1 | 55.9 | ||
| K-FAC (fused) | 32.2 | 82.9 | 47.2 | 48.5 | 52.7 | |
| 33.6 | 86.5 | 46.8 | 49.4 | 54.1 |
| Full | No- (filtered) | |||||||
| Phenomenon | Tokens | FS-LL | LN-LL | FS-LL | LN-LL | |||
| Linguistic phenomena | ||||||||
| Binding Reflexives | 68M | 1000 | 58.1 | 54.1 | 61.7 | 44.6 | ||
| 130M | 1000 | 59.6 | 56.7 | 56.9 | 44.8 | |||
| 1.3B | 1000 | 74.7 | 62.5 | 30.5 | 30.1 | |||
| 5.6B | 1000 | 75.0 | 62.1 | 49.9 | 49.6 | |||
| GradSim | TrackStar | K-FAC | ||||||
| Phenomenon | FS-LL | LN-LL | FS-LL | LN-LL | FS-LL | LN-LL | FS-LL | LN-LL |
| Binding Reflexives | 354 | 222 | 11.9 | 15.9 | 20.1 | 23.9 | 30.3 | 46.2 |
| NPI Licensing (own) | 33 | 8 | 34.5 | 16.2 | 45.2 | 22.5 | 50.9 | 27.5 |
| Exist.-there Quant. | 69 | 69 | 76.7 | 76.7 | 77.8 | 77.8 | 85.5 | 85.5 |
| Island Effects | 191 | 191 | 37.1 | 37.1 | 15.4 | 15.4 | 50.4 | 50.4 |
| Count | % | |
| Documents | ||
| Parsed corpus (released) | 2,565,931 | |
| Training corpus | 1,379,825 | 53.8 |
| Sentences | ||
| Parsed corpus (released) | 340,886,709 | |
| Training corpus | 162,691,844 | 47.7 |
| Small (ours) | Medium (ours) | |
| Layers | 12 | 24 |
| Attention heads | 12 | 16 |
| Hidden size | 768 | 1,024 |
| FFN size | 3,072 | 4,096 |
| Context length | 512 | 1,024 |
| Vocabulary | 51,200 | 51,200 |
| Shared (except BM25) | |
| Max. sequence length | 512 |
| Random projection (per module) | |
| Projection type | Rademacher |
| Two-sided (block-diagonal) | yes |
| Unit normalization (cosine) | yes |
| Modules scored | all linear |
| Corpus | Filtered out | Sentences | ||
| Full | No- | |||
| CC 5.6B | 891,011 | 146,422,036 | 145,531,025 | |
| Wikipedia | 2,349,171 | 195,620,725 | 193,271,554 | |
| Phenomenon | Budget | Exact | Parad. | None | |
| Exist.-there Quantifiers | 68M | 6,666 | 91.7 | 8.1 | 0.2 |
| 130M | 7,560 | 94.7 | 5.3 | 0.0 | |
| 1.3B | 7,575 | 95.3 | 4.6 | 0.1 | |
| 5.6B | 7,722 | 88.5 | 11.3 | 0.2 | |
| Binding Reflexives | 68M | 7,279 | 99.0 | 0.8 | 0.2 |
| 130M | 7,361 | 99.2 | 0.7 | 0.1 |
| Corpus | Tokens | Full BEAR | Corpus-supported | ||||||||||
| Acc | Rand | Full | No- | Rand | both models wrong | Full correct, No- wrong | both models correct | Full wrong, No- correct | |||||
| Common Corpus | 1.3B | 7731 | 3.6% | 0.04% | 309 | 23.6% | 14.6% | 0.15% | 224 | 40 | 33 | 12 | |
| 5.6B | 7731 | 3.6% | 0.04% | 601 | 18.8% | 15.1% | 0.10% | 458 | 52 | 61 | 30 | ||
| Wikipedia | 4.8B | 7731 | 13.4% | 0.04% | 3221 | 20.5% | 17.3% | 0.04% | 2404 | 261 | 398 | 158 | |
| Phenomenon | Tokens | Rand. | Full | No- | Item counts | |||||
| both models | Full correct, | both models | Full wrong, | |||||||
| wrong | No- wrong | correct | No- correct | |||||||
| Binding Reflexives | 68M | 1000 | 50.0% | 58.1% | 61.7% | 107 | 276 | 305 | 312 | |
| 130M | 1000 | 50.0% | 59.6% | 56.9% | 179 | 252 | 344 | 225 | ||
| 1.3B | 1000 | 50.0% | 74.7% | 30.5% | 196 | 499 | 248 | 57 | ||
| 5.6B | 1000 | 50.0% | 75.0% | 49.9% | 147 | 354 | 396 | 103 | ||
Influence Functions
Influence functions estimate how training examples or interventions change model parameters, predictions, and downstream behavior.
See all 49 papers