Commit ·
8aabc76
0
Parent(s):
corrected-lds banks, release v1.0.0
Browse filesCo-authored-by: amousavi99 <amousavi99@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +60 -0
- README.md +115 -0
- cifar10/pool.npz +3 -0
- cifar10/pool_tda_ekfac.npz +3 -0
- cifar10/pool_tda_source_L3.npz +3 -0
- cifar10/pool_tda_trak1.npz +3 -0
- cifar10/pool_tda_trak10.npz +3 -0
- cifar10/pool_tda_trak20.npz +3 -0
- cifar10/tauq_ekfac_e30.npz +3 -0
- cifar10/tauq_source_L3_e30.npz +3 -0
- cifar10/tauq_trak10_e10.npz +3 -0
- cifar10/tauq_trak10_e2.npz +3 -0
- cifar10/tauq_trak1_e100.npz +3 -0
- cifar10/tauq_trak1_e20.npz +3 -0
- imagenet/pool.npz +3 -0
- mnist/pool.npz +3 -0
- mnist/tauq_ekfac_e30.npz +3 -0
- mnist/tauq_source_L3_e30.npz +3 -0
- mnist/tauq_trak1_e100.npz +3 -0
- qnli/pool.npz +3 -0
- qnli/pool_tda_ekfac.npz +3 -0
- qnli/pool_tda_tracin.npz +3 -0
- qnli/pool_tda_trak1.npz +3 -0
- qnli/pool_tda_trak5.npz +3 -0
- qnli/tauq_ekfac_e20.npz +3 -0
- qnli/tauq_tracin_e20.npz +3 -0
- qnli/tauq_trak1_e10.npz +3 -0
- qnli/tauq_trak1_e100.npz +3 -0
- qnli/tauq_trak1_e20.npz +3 -0
- qnli/tauq_trak1_e50.npz +3 -0
- qnli/tauq_trak5_e10.npz +3 -0
- qnli/tauq_trak5_e2.npz +3 -0
- qnli/tauq_trak5_e20.npz +3 -0
- qnli/tauq_trak5_e4.npz +3 -0
- wikitext2_gpt2_bae/README.md +245 -0
- wikitext2_gpt2_bae/pool.npz +3 -0
- wikitext2_gpt2_bae/pool_dropout_readout.npz +3 -0
- wikitext2_gpt2_bae/pool_tda_ekfac.npz +3 -0
- wikitext2_gpt2_bae/pool_tda_tracin.npz +3 -0
- wikitext2_gpt2_bae/pool_tda_trak1.npz +3 -0
- wikitext2_gpt2_bae/pool_tda_trak5.npz +3 -0
- wikitext2_gpt2_bae/tauq_ekfac_bergson.npz +3 -0
- wikitext2_gpt2_bae/tauq_ekfac_e10.npz +3 -0
- wikitext2_gpt2_bae/tauq_ekfac_e5.npz +3 -0
- wikitext2_gpt2_bae/tauq_source_L3_e1.npz +3 -0
- wikitext2_gpt2_bae/tauq_tracin_e10.npz +3 -0
- wikitext2_gpt2_bae/tauq_trak1_e10.npz +3 -0
- wikitext2_gpt2_bae/tauq_trak1_e20.npz +3 -0
- wikitext2_gpt2_bae/tauq_trak1_e50.npz +3 -0
- wikitext2_gpt2_bae/tauq_trak5_e10.npz +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
pretty_name: corrected-lds banks
|
| 4 |
+
viewer: false
|
| 5 |
+
tags:
|
| 6 |
+
- training-data-attribution
|
| 7 |
+
- linear-datamodeling-score
|
| 8 |
+
- datamodels
|
| 9 |
+
- trak
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# corrected-lds banks
|
| 13 |
+
|
| 14 |
+
Retrain banks for [`corrected-lds`](https://github.com/simonvary/corrected-lds), which
|
| 15 |
+
evaluates training-data attribution (TDA) with a seed-noise-corrected Linear Datamodeling
|
| 16 |
+
Score (LDS).
|
| 17 |
+
|
| 18 |
+
- A **pool** holds retrain readouts, an R seeds × M masks × Q queries array: cell (r, j) is
|
| 19 |
+
the per-query margins of a model retrained on random subset j with seed r.
|
| 20 |
+
- A **tauq** is one attribution method's n_train × Q score matrix, and a **pool_tda** holds
|
| 21 |
+
the same method one replica at a time.
|
| 22 |
+
- A **bank** is one folder: a pool and the score files that pair with it.
|
| 23 |
+
|
| 24 |
+
## Layout
|
| 25 |
+
|
| 26 |
+
```
|
| 27 |
+
cifar10/ CIFAR-10, ResNet-9: R=40 × M=300, Q=2,000, n=50,000
|
| 28 |
+
├── pool.npz
|
| 29 |
+
├── tauq_trak1_e{20,100}.npz, tauq_trak10_e{2,10}.npz TRAK
|
| 30 |
+
├── pool_tda_trak1.npz, pool_tda_trak10.npz, pool_tda_trak20.npz
|
| 31 |
+
├── tauq_ekfac_e30.npz, pool_tda_ekfac.npz EK-FAC, 30 full-set models
|
| 32 |
+
└── tauq_source_L3_e30.npz, pool_tda_source_L3.npz SOURCE, the same 30 runs
|
| 33 |
+
|
| 34 |
+
qnli/ GLUE QNLI, BERT-base: R=20 × M=400, Q=2,000, n=50,000
|
| 35 |
+
├── pool.npz
|
| 36 |
+
├── tauq_trak1_e{10,20,50,100}.npz, tauq_trak5_e{2,4,10,20}.npz TRAK, 100 members
|
| 37 |
+
├── pool_tda_trak1.npz, pool_tda_trak5.npz
|
| 38 |
+
├── tauq_ekfac_e20.npz, pool_tda_ekfac.npz EK-FAC, 20 full-set models
|
| 39 |
+
└── tauq_tracin_e20.npz, pool_tda_tracin.npz TracIn, the same 20 runs
|
| 40 |
+
|
| 41 |
+
mnist/ MNIST subset, MLP: R=40 × M=300, Q=2,000, n=6,144
|
| 42 |
+
├── pool.npz
|
| 43 |
+
└── tauq_trak1_e100.npz, tauq_ekfac_e30.npz, tauq_source_L3_e30.npz
|
| 44 |
+
|
| 45 |
+
imagenet/ ImageNet-1k, ResNet-18: R=5 × M=100, Q=2,000, n=1,281,167
|
| 46 |
+
└── pool.npz
|
| 47 |
+
|
| 48 |
+
wikitext2_gpt2_bae/ WikiText-2, GPT-2: R=20 × M=400, Q=481, n=4,656 (a companion bank)
|
| 49 |
+
├── pool.npz eval-mode readout, the default
|
| 50 |
+
├── pool_dropout_readout.npz the same models, dropout on
|
| 51 |
+
├── tauq_ekfac_bergson.npz bergson's EK-FAC, one model: a check
|
| 52 |
+
├── tauq_ekfac_e{5,10}.npz, pool_tda_ekfac.npz our EK-FAC, 10 full-set runs: the main one
|
| 53 |
+
├── tauq_tracin_e10.npz, pool_tda_tracin.npz our TracIn, the same runs
|
| 54 |
+
├── tauq_source_L3_e1.npz SOURCE (L=3, Adam), one model
|
| 55 |
+
├── tauq_trak1_e{10,20,50}.npz, tauq_trak5_e{2,4,10}.npz TRAK, 50 members
|
| 56 |
+
└── pool_tda_trak1.npz, pool_tda_trak5.npz
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## Names and protocols
|
| 60 |
+
|
| 61 |
+
- `tauq_<method>_e<E>.npz` averages **E replicas**, independent estimates of the scores.
|
| 62 |
+
TRAK forms one replica from `e_features` members (one Eq. 15 unit), so `trak10_e2` is
|
| 63 |
+
2 × 10 = 20 trained models and `trak1_e100` is 100. SOURCE names its segment count
|
| 64 |
+
(`source_L3`).
|
| 65 |
+
- `pool_tda_<method>.npz` keeps one slice per replica, so any smaller ensemble is an exact
|
| 66 |
+
average of slices: the whole ensemble-size curve without rescoring.
|
| 67 |
+
- TRAK members train on random halves of the data, as TRAK intends. EK-FAC (damping 1e-8,
|
| 68 |
+
final checkpoint), TracIn and SOURCE (six checkpoints in L = 3 segments, Bae et al. 2024)
|
| 69 |
+
score models trained on the full set.
|
| 70 |
+
- Recipes: cifar10 and qnli follow TRAK's App. A.1, mnist SOURCE's App. B.1, and imagenet
|
| 71 |
+
a 15-epoch ResNet-18. Every file stamps its recipe, data hashes, index draws and mask draw
|
| 72 |
+
inside, and the loaders refuse a pool and a tauq that do not pair.
|
| 73 |
+
|
| 74 |
+
## The WikiText-2 companion bank
|
| 75 |
+
|
| 76 |
+
Built with EleutherAI's [bergson](https://github.com/EleutherAI/bergson) (commit
|
| 77 |
+
`0ad2e5b`) in the setup of Bae et al. 2024 (GPT-2 124M, AdamW at a constant 3e-5, batch 8,
|
| 78 |
+
3 epochs, dropout on in training). Its numbers do not mix with the other banks':
|
| 79 |
+
|
| 80 |
+
- A mask zeroes the excluded documents' loss weights rather than retraining on the subset,
|
| 81 |
+
and a replica's masks share one seed. The pool is stamped `shared-per-replica`, and
|
| 82 |
+
`evaluate` uses the matching seed-noise estimator.
|
| 83 |
+
- `pool.npz` reads every model in eval mode, as bergson's published number does;
|
| 84 |
+
`pool_dropout_readout.npz` reads the same models with dropout on, as bergson's `validate`
|
| 85 |
+
loop logs them.
|
| 86 |
+
- Two EK-FACs: ours, over 10 full-set runs, is the bank's EK-FAC; bergson's own, on one
|
| 87 |
+
model, checks it (they agree to within 0.001) and the replication: on Bae et al.'s
|
| 88 |
+
protocol (5 seeds, the first 100 masks) it scores 0.456 in mean per-query Spearman, against
|
| 89 |
+
0.468 ± 0.015 in bergson's example. Every file's numbers are in
|
| 90 |
+
`wikitext2_gpt2_bae/README.md`.
|
| 91 |
+
|
| 92 |
+
## Use
|
| 93 |
+
|
| 94 |
+
These are raw npz files, not a `load_dataset` dataset; read them with the corrected-lds
|
| 95 |
+
tooling:
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
git clone https://github.com/simonvary/corrected-lds && cd corrected-lds
|
| 99 |
+
pip install -e .
|
| 100 |
+
corrected-lds fetch-banks # every file checked against banks-manifest.json
|
| 101 |
+
corrected-lds evaluate banks/cifar10 --tauq source_L3_e30
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
`banks-manifest.json` in the code repo pins every file's sha256 at one commit of this
|
| 105 |
+
dataset. To score your own method, save its scores with `corrected_lds.write_tauq` and pass
|
| 106 |
+
the file to `evaluate`.
|
| 107 |
+
|
| 108 |
+
## Licence
|
| 109 |
+
|
| 110 |
+
The banks are released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
|
| 111 |
+
They hold margins, masks, indices and scores only, no dataset content, but they derive from
|
| 112 |
+
datasets with their own terms: QNLI (from SQuAD, CC BY-SA 4.0), WikiText-2 (CC BY-SA 3.0) and
|
| 113 |
+
MNIST (CC BY-SA 3.0) are share-alike, and the ImageNet pool was built from the license-gated
|
| 114 |
+
[`ILSVRC/imagenet-1k`](https://huggingface.co/datasets/ILSVRC/imagenet-1k), so its use is also
|
| 115 |
+
subject to the ImageNet terms of access. The code is MIT-licensed.
|
cifar10/pool.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28f4eabb9fca617ec9d45bd32fd3e95d8217acb66ec1df2ee555096fb1b620b1
|
| 3 |
+
size 207421488
|
cifar10/pool_tda_ekfac.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:596cb9ceeb6aab0692d6a11db556c81f7008789af5ef181d6fd0e7a9afba83c3
|
| 3 |
+
size 144424082
|
cifar10/pool_tda_source_L3.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eda5c100d21479c53153e96a52626a11e319b03822013dc6823e13b0e8eff9b2
|
| 3 |
+
size 144423562
|
cifar10/pool_tda_trak1.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bac2ed758bc3ee105ac1dcf3c5e65d569d57fcff8662863c9034a01ba92b6ee0
|
| 3 |
+
size 480422466
|
cifar10/pool_tda_trak10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7ad32146e22b06c07af39d33944c6dc2e15ac3c5fd3754920cf5296943dd49c
|
| 3 |
+
size 240423078
|
cifar10/pool_tda_trak20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8696cf4394e9b39b6fa264331939aedc9b398748ca26a63d4b2403b91278a915
|
| 3 |
+
size 96423082
|
cifar10/tauq_ekfac_e30.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f849d90a85ff208a09172a5329bac5d73bff6b587c8e0b935627775cb129ae7
|
| 3 |
+
size 400422360
|
cifar10/tauq_source_L3_e30.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1ba1bdf82157eb1b282bb7e94bb793fddbf7153557a907c03f36d7621384b39
|
| 3 |
+
size 400421820
|
cifar10/tauq_trak10_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:161b822d4686aa13ea243926bcd207a8406a09d3535f64daedfbe1e2197a3e31
|
| 3 |
+
size 400420784
|
cifar10/tauq_trak10_e2.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:82c673034a5c02999e15b5a446b368dc7c888f6f271d44b25f5f86de8c7e6aa2
|
| 3 |
+
size 400420780
|
cifar10/tauq_trak1_e100.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1dbcf3421d3ad374db14367f57aea5a2ed663093d89feb923055deb081d29b4f
|
| 3 |
+
size 400420744
|
cifar10/tauq_trak1_e20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:499ad206dbf5401da614a36ac2db97c2560cb31fb67bace36600997ac32e6965
|
| 3 |
+
size 400420740
|
imagenet/pool.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c984ba48cef32b1fcc38c85cf6cd2e6485378e02d46779f541cab1f6dae7e4d
|
| 3 |
+
size 146388028
|
mnist/pool.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0596ee1df9ba2e43d128e987785bb1bed8849bca04a4b9768cd9206b46096c1
|
| 3 |
+
size 193913556
|
mnist/tauq_ekfac_e30.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63a48375c8598b6e087391eb368c6766e6463ceab5b1cb64ff4023be8228c395
|
| 3 |
+
size 49222532
|
mnist/tauq_source_L3_e30.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a9962c94e34da2cffd1f938436bd14b70ccd421db8e1d3f489f7ed9dadb6f25
|
| 3 |
+
size 49222868
|
mnist/tauq_trak1_e100.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5909fa791617ce399c056cc55adbc62a0d279a6d5155c0431b9e9b9d0843a346
|
| 3 |
+
size 49221600
|
qnli/pool.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28af92131ebbbe4f6de719785944b018ef009e56266f849c730cd49e8fb96502
|
| 3 |
+
size 148421708
|
qnli/pool_tda_ekfac.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b071423edf9c06bf62099d69126af1e75092c9a19511b2341c18497a0b8f3161
|
| 3 |
+
size 128423562
|
qnli/pool_tda_tracin.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:adf89927909b119cd92e6ad25eb36ae024a44c0c3b2f99a69415b4a6dd1d3fd3
|
| 3 |
+
size 128423206
|
qnli/pool_tda_trak1.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40285a7840ff97aa77da4e1afff63b09bd47c8a45ca034602937436eca0c1cb0
|
| 3 |
+
size 640422662
|
qnli/pool_tda_trak5.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94bd4d098131d29f3fb472bc567bd05de21ab1047cfa0e4c906a879c11cd81dd
|
| 3 |
+
size 128422714
|
qnli/tauq_ekfac_e20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32595024c4befce6b24237060d139c197f7f9f66343f51358739bb8765b4ecd9
|
| 3 |
+
size 400421840
|
qnli/tauq_tracin_e20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76957bf0cd847b689f2c49c2726773832c9f611593083f4b68cc3ffa6a7240b8
|
| 3 |
+
size 400421464
|
qnli/tauq_trak1_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd72f500ecdeb04ecce24ec13fa3ad3d441cff476b79279c2a3052975108825e
|
| 3 |
+
size 400420940
|
qnli/tauq_trak1_e100.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49ac1fb6d3c3b1785804008c5f8604b079a3e698054076b40f2090ea6264dfad
|
| 3 |
+
size 400420940
|
qnli/tauq_trak1_e20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65d170954eda29ec4de944cc6f2a4e938adb7d36c4d8ae02611804240a2bb6d2
|
| 3 |
+
size 400420940
|
qnli/tauq_trak1_e50.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4001241a0127dadf9d467348da3d9923a020f326561f3a19e0716b529be0d33c
|
| 3 |
+
size 400420936
|
qnli/tauq_trak5_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dff938f24213057380c2bd9ac65c7b2418b0ce23d5e0dde41ecfd6b9ef632e89
|
| 3 |
+
size 400420968
|
qnli/tauq_trak5_e2.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72bf99b396cdc25a8e6807d26d3bb52a37575a023afe23ebf95e42b2c44badd4
|
| 3 |
+
size 400420972
|
qnli/tauq_trak5_e20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b768da1e12df7eff7ed445de0abd025c80f1925578bdebd806f817e0c85cdde
|
| 3 |
+
size 400420972
|
qnli/tauq_trak5_e4.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d71ab312fa35ab4b5ad38884134b58afeb1cb19683d326b4e2a7a69528319743
|
| 3 |
+
size 400420972
|
wikitext2_gpt2_bae/README.md
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# wikitext2_gpt2_bae
|
| 2 |
+
|
| 3 |
+
A **companion** bank for [`corrected-lds`](https://github.com/simonvary/corrected-lds),
|
| 4 |
+
built on EleutherAI **bergson**'s retrain harness rather than our own `pools/runner.py`.
|
| 5 |
+
|
| 6 |
+
> **Read this first.** This bank reproduces the **Bae et al. 2024** GPT-2/WikiText-2
|
| 7 |
+
> setup as packaged in bergson's `examples/replicate_bae_approx_unrolling_source/` —
|
| 8 |
+
> **not** the experiment in bergson's own paper (arXiv:2606.11660, Table 2), whose
|
| 9 |
+
> recipe and published EK-FAC LDS (0.318) differ.
|
| 10 |
+
>
|
| 11 |
+
> **It reproduces the published number.** On the default `pool.npz` (eval-mode readout),
|
| 12 |
+
> bergson's EK-FAC scores **0.4562** over Bae's five seeds, against the example's
|
| 13 |
+
> **0.468 ± 0.015**. The pool this bank shipped before (0.3506, a "24 SE gap") was read
|
| 14 |
+
> with **dropout active** — that was the whole discrepancy. The same models' dropout
|
| 15 |
+
> readout is kept, explicitly labelled, as `pool_dropout_readout.npz`.
|
| 16 |
+
>
|
| 17 |
+
> **2026-10-25: grown to 400 masks x 20 seeds** (from 100 x 10). The first 100 masks and
|
| 18 |
+
> seeds 1004-1013 are the previous release's cells bit for bit; every pool_tda now covers
|
| 19 |
+
> all 400 masks and equals the previous release on masks 0-99 (see PROVENANCE.md in the code repository). Numbers on
|
| 20 |
+
> the new bank are in "Results on the 400 x 20 bank"; the tables computed on 100 x 10 are
|
| 21 |
+
> kept and labelled as such.
|
| 22 |
+
|
| 23 |
+
## Shape
|
| 24 |
+
|
| 25 |
+
```
|
| 26 |
+
wikitext2_gpt2_bae/
|
| 27 |
+
├── pool.npz DEFAULT — eval-mode readout (dropout off)
|
| 28 |
+
│ R=20 seeds x M=400 masks x Q=481 queries, n_train=4,656
|
| 29 |
+
├── pool_dropout_readout.npz the SAME 8,000 models, read with dropout ON
|
| 30 |
+
│ (bergson's in-loop readout; stamped readout="dropout")
|
| 31 |
+
├── tauq_ekfac_bergson.npz bergson's EK-FAC, ONE full-data model (seed 1004), unprojected
|
| 32 |
+
├── tauq_ekfac_e10.npz our EK-FAC (kronfluence), 10 full-set runs, seeds 30000-30009
|
| 33 |
+
├── tauq_ekfac_e5.npz the first 5 of those runs (seeds 30000-30004)
|
| 34 |
+
├── pool_tda_ekfac.npz the 10 runs, replica-resolved (R_tda = 10; E=5 = the first 5)
|
| 35 |
+
├── tauq_source_L3_e1.npz SOURCE (L=3, Adam variant), ONE model: bergson's scorer at
|
| 36 |
+
│ the pin + the #511 fix, on our seed-30000 run
|
| 37 |
+
├── tauq_tracin_e10.npz our TracInCP over the same 10 runs x 6 half-epoch ckpts:
|
| 38 |
+
│ the 48 transformer Linears, a fresh 16,384-dim projection
|
| 39 |
+
│ per checkpoint
|
| 40 |
+
├── pool_tda_tracin.npz the 10 runs, replica-resolved (R_tda = 10)
|
| 41 |
+
├── tauq_trak5_e{2,4,10}.npz our TRAK, Eq. 15 units of 5: E = 2, 4, 10 (10/20/50 members)
|
| 42 |
+
├── tauq_trak1_e{10,20,50}.npz our TRAK, single members averaged: 10, 20, 50 members
|
| 43 |
+
├── pool_tda_trak5.npz the 50 members as 10 Eq. 15 units, replica-resolved
|
| 44 |
+
└── pool_tda_trak1.npz the 50 members one by one, replica-resolved (R_tda = 50)
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
Our EK-FAC and TracIn both trace the 48 transformer Linear layers (the tied `lm_head`/
|
| 48 |
+
`wte`, `wpe` and LayerNorms excluded), as kronfluence and Bae et al.'s IF do. SOURCE is
|
| 49 |
+
bergson's implementation (the pinned commit plus upstream fix #511, which restores the
|
| 50 |
+
EK-FAC inverse in the Adam variant; without it SOURCE scored 0.13-0.17 here) at Bae et al.'s
|
| 51 |
+
settings: 3 segments over the 6 half-epoch checkpoints, the Adam preconditioner, damping
|
| 52 |
+
1e-8, on our seed-30000 run (disjoint from the ground-truth seeds).
|
| 53 |
+
|
| 54 |
+
Our TRAK follows the protocol of this repo's qnli bank: members trained on their OWN
|
| 55 |
+
random halves (seeds 10000-10049) -- here by bergson, each half saved as a dataset of its
|
| 56 |
+
own (873 steps), not by weight-zeroing -- one featurize pass giving both `trak5` (Eq. 15
|
| 57 |
+
over units of 5) and `trak1`. It traces EVERY parameter, as qnli's TRAK does: on five
|
| 58 |
+
members the 48 Linears scored 0.120 against 0.169 for all parameters (TRAK's kernel
|
| 59 |
+
inverse whitens the tied embedding that swamps TracIn's dot product). The model output
|
| 60 |
+
is the sum of per-token log-odds (TRAK App. F.3) and `Q` the mean over tokens of
|
| 61 |
+
`1 - p`; projection k = 2,048, the peak of a 512-4,096 sweep and the `k < n/2` guard.
|
| 62 |
+
The members' eval-mode query loss (3.156-3.162) sits on the pool's half-data retrains
|
| 63 |
+
(3.158).
|
| 64 |
+
|
| 65 |
+
| field | value |
|
| 66 |
+
|---|---|
|
| 67 |
+
| model | GPT-2 (124M), fine-tuned from the base checkpoint per (mask, seed) |
|
| 68 |
+
| data | `EleutherAI/bergson-wikitext-2-4656-chunks` @ `971da0e6da181b9e147081087f1d3fd51669024c` |
|
| 69 |
+
| recipe | AdamW, lr 3e-5 constant, batch 8, 3 epochs (1,746 steps), wd 0.01, fp32, dropout ON in training |
|
| 70 |
+
| alpha | **0.5** (masks keep a random half) |
|
| 71 |
+
| seeds | 1004-1023. **Replicas 0-4 (seeds 1004-1008) are Bae's R=5 protocol exactly**; slice `margins[:5, :100]` to compare with published numbers |
|
| 72 |
+
| masks | M=400 from `sample_subsets(400, 4656, 0.5, 777)` (prefix-stable: masks 0-99 are the original bank's) |
|
| 73 |
+
| queries | the **full 481-doc validation split** — the battery the 0.468 averages over |
|
| 74 |
+
| readout | per-query cross-entropy; `margins = -loss` (higher = better); raw `losses` ride along |
|
| 75 |
+
| built with | bergson @ `0ad2e5b0ce09207d2af0e80383fe2d952dd8e747`, `nproc_per_node: 1`, `--save_models` |
|
| 76 |
+
|
| 77 |
+
## Two readouts of the same models
|
| 78 |
+
|
| 79 |
+
bergson's `validate` loop at the pinned commit never calls `.eval()` when `train_mode` is
|
| 80 |
+
on, so the query losses it logs are read **with dropout active**. bergson's published
|
| 81 |
+
0.468 re-reads saved models in eval mode. We retrained every (mask, seed) cell with
|
| 82 |
+
bergson at the pinned commit, saved every model, and read each one ourselves in eval mode
|
| 83 |
+
(`corrected-lds read-bergson-retrained`) — that is `pool.npz`. bergson's own in-loop
|
| 84 |
+
readout of the same runs is `pool_dropout_readout.npz`, which also carries the per-replica
|
| 85 |
+
full-data `baselines`.
|
| 86 |
+
|
| 87 |
+
Dropout at evaluation is most of the seed noise of the in-loop readout (measured on the
|
| 88 |
+
100 x 10 bank):
|
| 89 |
+
|
| 90 |
+
| (mean over queries) | `pool.npz` (eval) | `pool_dropout_readout.npz` |
|
| 91 |
+
|---|---|---|
|
| 92 |
+
| seed-noise variance, total | 8.78e-05 | 6.99e-04 |
|
| 93 |
+
| per-replica offset `c(r)` (cancels) | 2.31e-05 (26%) | 6.98e-05 (10%) |
|
| 94 |
+
| residual (attenuates) | 6.53e-05 | 6.36e-04 |
|
| 95 |
+
| lambda (median over queries) | **0.37** | **3.86** |
|
| 96 |
+
|
| 97 |
+
The dropout pool reproduces the bank's original pool: for seeds 1004-1008 its cells on
|
| 98 |
+
masks 0-12 match to ~4e-6, and its 5-seed EK-FAC LDS is 0.3499 vs the original 0.3506.
|
| 99 |
+
The other cells are fresh dropout draws (bergson's dropout RNG carries across the models of
|
| 100 |
+
one `validate` call, so only chunks aligned with the original run are bit-identical).
|
| 101 |
+
|
| 102 |
+
## Results on the 400 x 20 bank (2026-10-25)
|
| 103 |
+
|
| 104 |
+
Every score file on the default eval-readout `pool.npz`, R=20 seeds, M=400 masks
|
| 105 |
+
(`corrected-lds evaluate`; jackknife SE in brackets; columns are the result JSON's
|
| 106 |
+
`spearman`, `corrected_rho_inf`, `bridged_rho_inf`, `debiased_noise_corrected_spearman`):
|
| 107 |
+
|
| 108 |
+
| tauq | naive Spearman | corrected rho_inf (SE) | bridged rho_inf | debiased + noise-corrected |
|
| 109 |
+
|---|---|---|---|---|
|
| 110 |
+
| `ekfac_bergson` (bergson, 1 model) | 0.4782 | 0.4938 (0.0022) | 0.4782 | 0.4836 |
|
| 111 |
+
| `ekfac_e10` (ours, 10 models) | 0.4772 | 0.4931 (0.0022) | 0.4776 | 0.4825 |
|
| 112 |
+
| `ekfac_e5` (ours, 5 models) | 0.4759 | 0.4918 (0.0022) | 0.4763 | 0.4813 |
|
| 113 |
+
| `source_L3_e1` (bergson's, 1 model) | 0.4723 | 0.4887 (0.0022) | 0.4732 | 0.4776 |
|
| 114 |
+
| `tracin_e10` (ours, 10 runs) | 0.1267 | 0.1321 (0.0028) | 0.1263 | 0.1282 |
|
| 115 |
+
| `trak5_e10` (ours, 50 members) | 0.2274 | 0.2380 (0.0025) | 0.2280 | 0.2300 |
|
| 116 |
+
| `trak1_e50` (ours, 50 members) | 0.2274 | 0.2380 (0.0025) | 0.2281 | 0.2301 |
|
| 117 |
+
| `trak5_e4` (ours, 20 members) | 0.2079 | 0.2178 (0.0026) | 0.2086 | 0.2103 |
|
| 118 |
+
| `trak1_e20` (ours, 20 members) | 0.2080 | 0.2179 (0.0026) | 0.2087 | 0.2103 |
|
| 119 |
+
| `trak5_e2` (ours, 10 members) | 0.1856 | 0.1946 (0.0027) | 0.1863 | 0.1877 |
|
| 120 |
+
| `trak1_e10` (ours, 10 members) | 0.1856 | 0.1946 (0.0027) | 0.1863 | 0.1877 |
|
| 121 |
+
|
| 122 |
+
With four times the masks the jackknife SE roughly halves; the corrected values sit within
|
| 123 |
+
about two of the 100 x 10 bank's SEs of the values below (e.g. `ekfac_e10` 0.4931 vs
|
| 124 |
+
0.4842, `trak5_e10` 0.2380 vs 0.2397).
|
| 125 |
+
|
| 126 |
+
## Results on the original 100 x 10 bank (masks 0-99, seeds 1004-1013 of these pools)
|
| 127 |
+
|
| 128 |
+
Mean per-query Spearman across the 100 masks, averaged over the 481 queries (bergson's
|
| 129 |
+
aggregation), for bergson's EK-FAC, by number of seeds averaged in the readout:
|
| 130 |
+
|
| 131 |
+
| seeds | 1 | 2 | 3 | 4 | **5** | 6 | 7 | 8 | 9 | 10 |
|
| 132 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 133 |
+
| eval (`pool.npz`) | .4063 | .4354 | .4445 | .4512 | **.4562** | .4585 | .4609 | .4627 | .4632 | .4637 |
|
| 134 |
+
| dropout | .2222 | .2789 | .3115 | .3357 | **.3499** | .3585 | .3696 | .3786 | .3856 | .3899 |
|
| 135 |
+
|
| 136 |
+
Every score file, naive LDS vs the corrected estimates (`corrected-lds evaluate`;
|
| 137 |
+
jackknife SE in brackets):
|
| 138 |
+
|
| 139 |
+
| pool | R | tauq | naive | corrected rho_inf | bridged | debiased |
|
| 140 |
+
|---|---|---|---|---|---|---|
|
| 141 |
+
| eval | 10 | `ekfac_bergson` (bergson, 1 model) | 0.4637 | 0.4845 (.0047) | 0.4693 | 0.4763 |
|
| 142 |
+
| eval | 10 | `ekfac_e10` (ours, 10 models) | 0.4633 | 0.4842 (.0046) | 0.4690 | 0.4758 |
|
| 143 |
+
| eval | 10 | `ekfac_e5` (ours, 5 models) | 0.4627 | 0.4833 (.0047) | 0.4682 | 0.4752 |
|
| 144 |
+
| eval | 10 | `source_L3_e1` (bergson's, 1 model) | 0.4622 | 0.4824 (.0047) | 0.4673 | 0.4747 |
|
| 145 |
+
| eval | 10 | `tracin_e10` (ours, 10 runs) | 0.1194 | 0.1233 (.0056) | 0.1180 | 0.1227 |
|
| 146 |
+
| eval | 10 | `trak5_e10` (ours, 50 members) | 0.2267 | 0.2397 (.0055) | 0.2298 | 0.2331 |
|
| 147 |
+
| eval | 10 | `trak1_e50` (ours, 50 members) | 0.2267 | 0.2397 (.0055) | 0.2299 | 0.2331 |
|
| 148 |
+
| eval | 10 | `trak5_e4` (ours, 20 members) | 0.2102 | 0.2227 (.0054) | 0.2135 | 0.2160 |
|
| 149 |
+
| eval | 10 | `trak1_e20` (ours, 20 members) | 0.2102 | 0.2228 (.0054) | 0.2136 | 0.2161 |
|
| 150 |
+
| eval | 10 | `trak5_e2` (ours, 10 members) | 0.1874 | 0.1973 (.0058) | 0.1890 | 0.1927 |
|
| 151 |
+
| eval | 10 | `trak1_e10` (ours, 10 members) | 0.1872 | 0.1973 (.0058) | 0.1890 | 0.1924 |
|
| 152 |
+
| eval | 5 | `ekfac_bergson` | **0.4562** | 0.4848 (.0051) | 0.4696 | 0.4764 |
|
| 153 |
+
| eval | 5 | `ekfac_e10` | 0.4559 | 0.4846 (.0050) | 0.4694 | 0.4761 |
|
| 154 |
+
| eval | 5 | `ekfac_e5` | 0.4553 | 0.4838 (.0050) | 0.4686 | 0.4755 |
|
| 155 |
+
| eval | 5 | `source_L3_e1` | 0.4548 | 0.4827 (.0049) | 0.4676 | 0.4750 |
|
| 156 |
+
| eval | 5 | `tracin_e10` | 0.1165 | 0.1221 (.0060) | 0.1169 | 0.1217 |
|
| 157 |
+
| eval | 5 | `trak5_e10` | 0.2221 | 0.2388 (.0055) | 0.2290 | 0.2321 |
|
| 158 |
+
| dropout | 10 | `ekfac_bergson` | 0.3899 | 0.4737 (.0057) | 0.4590 | 0.4633 |
|
| 159 |
+
| dropout | 10 | `ekfac_e10` | 0.3904 | 0.4743 (.0056) | 0.4596 | 0.4636 |
|
| 160 |
+
| dropout | 10 | `ekfac_e5` | 0.3896 | 0.4730 (.0056) | 0.4583 | 0.4627 |
|
| 161 |
+
| dropout | 10 | `source_L3_e1` | 0.3869 | 0.4689 (.0057) | 0.4543 | 0.4591 |
|
| 162 |
+
| dropout | 10 | `tracin_e10` | 0.1023 | 0.1246 (.0062) | 0.1193 | 0.1217 |
|
| 163 |
+
| dropout | 10 | `trak5_e10` | 0.2049 | 0.2492 (.0065) | 0.2391 | 0.2442 |
|
| 164 |
+
| dropout | 5 | `ekfac_bergson` | 0.3499 | 0.4860 (.0071) | 0.4717 | 0.4759 |
|
| 165 |
+
| dropout | 5 | `ekfac_e10` | 0.3504 | 0.4867 (.0069) | 0.4724 | 0.4759 |
|
| 166 |
+
| dropout | 5 | `source_L3_e1` | 0.3483 | 0.4813 (.0070) | 0.4672 | 0.4730 |
|
| 167 |
+
| dropout | 5 | `tracin_e10` | 0.0909 | 0.1245 (.0078) | 0.1193 | 0.1226 |
|
| 168 |
+
| dropout | 5 | `trak5_e10` | 0.1834 | 0.2574 (.0070) | 0.2473 | 0.2513 |
|
| 169 |
+
|
| 170 |
+
The two readouts disagree by 0.07-0.11 in naive LDS and agree to ~0.01 once corrected:
|
| 171 |
+
the dropout readout is the same signal under ten times the noise, and the correction
|
| 172 |
+
recovers it.
|
| 173 |
+
|
| 174 |
+
**Published references.** bergson's example README: EK-FAC IF **0.468 ± 0.015** (eval
|
| 175 |
+
readout, five seeds), and "kronfluence reports 0.44". Bae et al. 2024 print no WikiText-2
|
| 176 |
+
numbers; their Fig. 6 bars (alpha 0.5, R=5; read off the figure, ±0.005) are IF 0.43 (one
|
| 177 |
+
model) / 0.445 (ten models), SOURCE 0.44 / 0.47, TracIn 0.10, RepSim 0.01.
|
| 178 |
+
|
| 179 |
+
Our EK-FAC (kronfluence) matches bergson's to ≤0.001 on every pool. Its corrected LDS
|
| 180 |
+
on the eval pool is flat in the number of runs averaged: 0.4687 (1 run), 0.4833 (5),
|
| 181 |
+
0.4842 (10), so ten of our runs land level with bergson's single model (0.4845).
|
| 182 |
+
|
| 183 |
+
**SOURCE (one model) scores 0.4548 on Bae's five seeds (0.4622 at R=10)**, against
|
| 184 |
+
bergson's 0.475 ± 0.015 and Bae's ≈0.44. On the same model (seed 30000) it beats our
|
| 185 |
+
EK-FAC by +0.0135 (paired SE 0.0018), Bae's single-model ordering (SOURCE 0.44 > IF 0.43),
|
| 186 |
+
and it beats each of our ten single EK-FAC runs (0.447-0.453); one SOURCE model matches
|
| 187 |
+
our ten-run EK-FAC (0.4633). It is level with bergson's single-model EK-FAC (0.4637,
|
| 188 |
+
difference -0.0015 ± 0.0023), which scores above every one of our single EK-FAC runs.
|
| 189 |
+
|
| 190 |
+
**Our TracIn scores 0.1165 on Bae's five seeds (0.1194 at R=10), against Bae's ≈0.10.**
|
| 191 |
+
Like theirs it does not improve with more runs: corrected 0.1222 for one run, 0.1233 for
|
| 192 |
+
ten. The TracIn this bank shipped before scored 0.055: it traced all 124M parameters,
|
| 193 |
+
where the tied `wte`/`lm_head` carries ~91% of the gradient norm, and one 1,024-dim
|
| 194 |
+
projection per run lost half of what remained.
|
| 195 |
+
|
| 196 |
+
**Our TRAK scores 0.2221 on Bae's five seeds (0.2267 at R=10; corrected 0.2397) with 50
|
| 197 |
+
members.** Bae et al. omit TRAK on WikiText ("no public LM implementation"), so there is
|
| 198 |
+
no published reference. Unlike EK-FAC and TracIn here it keeps rising with members --
|
| 199 |
+
corrected 0.083 for one member, 0.169 for one unit of five, 0.223 at 20, 0.240 at 50 --
|
| 200 |
+
and stays well below EK-FAC. `trak5` and `trak1` agree to 1e-4 at equal members.
|
| 201 |
+
|
| 202 |
+
## Two properties that make this bank unlike the others here
|
| 203 |
+
|
| 204 |
+
**1. `seed_mode = "shared-per-replica"`.** bergson uses ONE seed per replica, shared
|
| 205 |
+
across that replica's masks, where our other banks seed every *cell*. The readout
|
| 206 |
+
decomposes as `y[r,j,q] = mu(S_j) + c(r) + eps(r,j)`, and the per-replica offset `c(r)`
|
| 207 |
+
shifts a whole column, so it **cancels** in a correlation across masks and does not
|
| 208 |
+
attenuate rho. `evaluate_pool` reads the stamp and uses
|
| 209 |
+
`estimator.seed_noise_variance_centred` for such a pool (corrected-lds `main` since
|
| 210 |
+
2026-10-06).
|
| 211 |
+
|
| 212 |
+
**2. Masks are applied by zeroing loss weights, not by retraining on the subset.**
|
| 213 |
+
Batching and data order are identical across masks — a *different counterfactual* from
|
| 214 |
+
our CIFAR/QNLI/ImageNet banks. A companion measurement, not another entry in that series.
|
| 215 |
+
|
| 216 |
+
## Loading
|
| 217 |
+
|
| 218 |
+
Listed in corrected-lds's `banks-manifest.json`, which pins every file's sha256:
|
| 219 |
+
|
| 220 |
+
```bash
|
| 221 |
+
corrected-lds fetch-banks --bank wikitext2_gpt2_bae
|
| 222 |
+
corrected-lds evaluate banks/wikitext2_gpt2_bae --tauq ekfac_e10 # eval readout
|
| 223 |
+
corrected-lds evaluate banks/wikitext2_gpt2_bae/pool_dropout_readout.npz --tauq ekfac_e10
|
| 224 |
+
```
|
| 225 |
+
|
| 226 |
+
```python
|
| 227 |
+
from corrected_lds import load_pool, load_tauq
|
| 228 |
+
from corrected_lds.estimator import seed_noise_variance_centred, seed_offset_variance
|
| 229 |
+
|
| 230 |
+
pool = load_pool("wikitext2_gpt2_bae/pool.npz") # eval readout, shared-per-replica
|
| 231 |
+
tau = load_tauq("wikitext2_gpt2_bae/tauq_ekfac_bergson.npz")
|
| 232 |
+
|
| 233 |
+
resid = seed_noise_variance_centred(pool.margins) # the part that attenuates
|
| 234 |
+
offset = seed_offset_variance(pool.margins) # the part that does not
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
Identity is enforced on load: the stamped side digests must equal the `wikitext2` pins in
|
| 238 |
+
`banks/presets.py`, which hash the int64 `input_ids` of the pinned dataset revision. The
|
| 239 |
+
same revision is passed to bergson via `data.data_kwargs`, so both halves provably read
|
| 240 |
+
identical bytes. Both pools carry the same masks and examples, so every tauq and pool_tda
|
| 241 |
+
here pairs with either.
|
| 242 |
+
|
| 243 |
+
## Build record
|
| 244 |
+
|
| 245 |
+
How the bank was built, grown and checked is in `PROVENANCE.md` in the corrected-lds repository.
|
wikitext2_gpt2_bae/pool.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfc6bfb6d6b5d12473b6ae9dea5889e817e3a8360b4c62a77b52dff785d81923
|
| 3 |
+
size 63478868
|
wikitext2_gpt2_bae/pool_dropout_readout.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f120391158f95530b4054b02e13a933602a85e5078818e25b2bc5e0339b21cb
|
| 3 |
+
size 63556070
|
wikitext2_gpt2_bae/pool_tda_ekfac.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e676a8da5540afc8d94d5a47d0123e8f46c3fed51433144f23165bcee632b5df
|
| 3 |
+
size 15447742
|
wikitext2_gpt2_bae/pool_tda_tracin.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdf00440df93ae971230319381912e2341a5e695992a30b348a9ad0c253c3b30
|
| 3 |
+
size 15447690
|
wikitext2_gpt2_bae/pool_tda_trak1.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8600b01a9750f5caa937888a3e9edf8c10c15d8822ff06e1b0c90867994eab20
|
| 3 |
+
size 77008606
|
wikitext2_gpt2_bae/pool_tda_trak5.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9b725b5eb55b7f9712f5025f03ac208c647cc7c5741231133ac641e97925656
|
| 3 |
+
size 15440658
|
wikitext2_gpt2_bae/tauq_ekfac_bergson.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d309f6c2cf9f9b5765ac2fcf9085ab5ba5552ed958a28114982d860e321f29d
|
| 3 |
+
size 9003272
|
wikitext2_gpt2_bae/tauq_ekfac_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:528e87703ed4b3e9b598ec202385564889b1b612c9c327f87eb7064cea8e10a8
|
| 3 |
+
size 9012164
|
wikitext2_gpt2_bae/tauq_ekfac_e5.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25330824edbc6dc9d7b8a84616e390a8306510e91fe55b58ce9c2324d02854d0
|
| 3 |
+
size 9012160
|
wikitext2_gpt2_bae/tauq_source_L3_e1.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78aaa648d99a5628ce5fc5fd52b3377b06866a98cc1ee8def53ee057e6739831
|
| 3 |
+
size 9003924
|
wikitext2_gpt2_bae/tauq_tracin_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:771a1e38d4b6abc428fa8fc51819fdc94771b1e2e3b07a0de04e5e39066c8c25
|
| 3 |
+
size 9012092
|
wikitext2_gpt2_bae/tauq_trak1_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff786e0f2b3303f424856a16215d15993088d20c28ee7c5d4094d19fc84094b1
|
| 3 |
+
size 9005028
|
wikitext2_gpt2_bae/tauq_trak1_e20.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10a00671e79af8b969bcbd9c160c8b7867ff273aa4c912cabeca8bbbe7766fbd
|
| 3 |
+
size 9005028
|
wikitext2_gpt2_bae/tauq_trak1_e50.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8624227f5c02f54648a75ba32e7e7e762a2ecfdf97d655c75caecfcaf5aaaa5e
|
| 3 |
+
size 9005028
|
wikitext2_gpt2_bae/tauq_trak5_e10.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:032c063f4014c0488502f1aa5c78d897b00c871538479d5fefaf7d5c1b5528ba
|
| 3 |
+
size 9005060
|