Upload folder using huggingface_hub
Browse files- .gitattributes +4 -0
- README.md +77 -0
- climbmix_test_d24.jsonl +0 -0
- lds_d12.jsonl +3 -0
- lds_d12.meta.json +0 -0
- lds_d16.jsonl +3 -0
- lds_d16.meta.json +0 -0
- lds_d20.jsonl +3 -0
- lds_d20.meta.json +0 -0
- lds_d24.jsonl +3 -0
- lds_d24.meta.json +0 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,7 @@ saved_model/**/* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
lds_d12.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
lds_d16.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
lds_d20.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
lds_d24.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
tags:
|
| 6 |
+
- training-data-attribution
|
| 7 |
+
- linear-datamodeling-score
|
| 8 |
+
- nanochat
|
| 9 |
+
- climbmix
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<div align="center">
|
| 13 |
+
<h2>STRIDE: Training Data Attribution via Sparse Recovery from Subset Perturbations</h2>
|
| 14 |
+
|
| 15 |
+
<a href="https://arxiv.org/abs/2606.05165"><img src='https://img.shields.io/badge/arXiv-STRIDE-red' alt='Paper'></a>
|
| 16 |
+
<a href='https://stride-tda.github.io'><img src='https://img.shields.io/badge/Project_Page-STRIDE-green' alt='Project Page'></a>
|
| 17 |
+
<a href='https://huggingface.co/rishitdagli/stride-nanochat'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20-Models-yellow'></a>
|
| 18 |
+
<a href='https://huggingface.co/datasets/rishitdagli/stride-lds'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20-LDS%20Dataset-yellow'></a>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
Ground-truth Linear Datamodeling Score (LDS) targets for the four nanochat
|
| 22 |
+
pre-training models, plus the shared held-out test set.
|
| 23 |
+
|
| 24 |
+
Each `lds_<tag>.jsonl` was produced by: sampling a
|
| 25 |
+
pool of pre-training examples, drawing 256 random 30%-subsets, training a fresh nanochat
|
| 26 |
+
from scratch on each subset, and recording per-example held-out test losses. The
|
| 27 |
+
`_meta` header records the pool indices so scores defined over the full corpus
|
| 28 |
+
can be compared to the subset losses.
|
| 29 |
+
|
| 30 |
+
## Files
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
climbmix_test_d24.jsonl # 500 held-out test queries (shared across depths)
|
| 34 |
+
lds_d12.jsonl # 256 subsets x 500 test losses (+ lds_d12.meta.json)
|
| 35 |
+
lds_d16.jsonl
|
| 36 |
+
lds_d20.jsonl
|
| 37 |
+
lds_d24.jsonl
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Each non-`_meta` line:
|
| 41 |
+
|
| 42 |
+
```json
|
| 43 |
+
{"train_subset": [pool-local indices], "train_subset_global": [corpus indices], "test_loss": [500 floats]}
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Usage
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
from stride.inference import Stride
|
| 50 |
+
attr = Stride.from_pretrained("d12")
|
| 51 |
+
result = attr.attribute(test_queries)
|
| 52 |
+
lds = attr.evaluate_lds(scores=result.scores) # downloads lds_d12.jsonl from here
|
| 53 |
+
print(lds["lds_spearman_mean"])
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
Or score an existing method's `.npz`:
|
| 57 |
+
|
| 58 |
+
```bash
|
| 59 |
+
python -m stride.cli.eval_lds --scores my_scores.npz --lds lds_d12.jsonl --method MyMethod
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
The models and operators live in the companion model repo
|
| 63 |
+
[`rishitdagli/stride-nanochat`](https://huggingface.co/rishitdagli/stride-nanochat).
|
| 64 |
+
|
| 65 |
+
## Citation
|
| 66 |
+
|
| 67 |
+
```bibtex
|
| 68 |
+
@misc{dagli2026stridetrainingdataattribution,
|
| 69 |
+
title={STRIDE: Training Data Attribution via Sparse Recovery from Subset Perturbations},
|
| 70 |
+
author={Rishit Dagli and Abir Harrasse and Luke Zhang and Florent Draye and Amirali Abdullah and Bernhard Schölkopf and Zhijing Jin},
|
| 71 |
+
year={2026},
|
| 72 |
+
eprint={2606.05165},
|
| 73 |
+
archivePrefix={arXiv},
|
| 74 |
+
primaryClass={cs.LG},
|
| 75 |
+
url={https://arxiv.org/abs/2606.05165},
|
| 76 |
+
}
|
| 77 |
+
```
|
climbmix_test_d24.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
lds_d12.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4888b2390c3dc521ee7259246d98244575955c8b1594c4dbcb6702b5ac821cf8
|
| 3 |
+
size 129952952
|
lds_d12.meta.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
lds_d16.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10c2401e1caa679dc2a47603b37f70cdae23f3d02e414526dac30a93c90b7f01
|
| 3 |
+
size 136993477
|
lds_d16.meta.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
lds_d20.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d955330b8f50ae5365527441c8e9dbfedc693e7c004d90e6d1ea4597d6a6cf94
|
| 3 |
+
size 139808128
|
lds_d20.meta.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
lds_d24.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54daa63a6ef553d124a5aefcbde6bdd6b690fb99e7587c5f71be2fff657d170e
|
| 3 |
+
size 141015903
|
lds_d24.meta.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|