NagaYu commited on
Commit
7d34eaa
·
verified ·
1 Parent(s): b642287

Flashback Forensics: 18 runs x 6 fault types, 21,600 labelled steps, 128 sketch metrics

Browse files
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - time-series-forecasting
6
+ tags:
7
+ - machine-learning
8
+ - distributed-training
9
+ - debugging
10
+ - observability
11
+ - anomaly-detection
12
+ - checkpointing
13
+ - flashback
14
+ size_categories:
15
+ - 10K<n<100K
16
+ configs:
17
+ - config_name: steps
18
+ data_files:
19
+ - split: train
20
+ path: steps/train-*.parquet
21
+ - split: test
22
+ path: steps/test-*.parquet
23
+ - config_name: runs
24
+ data_files:
25
+ - split: train
26
+ path: runs/train-*.parquet
27
+ - split: test
28
+ path: runs/test-*.parquet
29
+ ---
30
+
31
+ # Flashback Forensics
32
+
33
+ Labelled telemetry from training runs that were **deliberately broken at a known
34
+ step**. Every row is a few hundred bytes of per-step summary statistics; the
35
+ label is the step at which the fault was actually injected.
36
+
37
+ The point of the dataset: to make "how early can you tell a run went wrong?"
38
+ a measurable question instead of an anecdote.
39
+
40
+ ## Contents
41
+
42
+ | config | rows | one row is |
43
+ |---|---|---|
44
+ | `steps` | 21,600 | one training step of one run: 128 sketch metrics + labels |
45
+ | `runs` | 18 | one run: fault kind, ground-truth first-bad step, model config |
46
+
47
+ Splits are **by run**: no step of a test run appears in train.
48
+
49
+ ## Fields (`steps`)
50
+
51
+ - `run_id`, `step` -- identity
52
+ - `fault_kind` -- one of `bit_flip`, `data_poison_heavy`, `data_poison_subtle`, `lowprec_overflow`, `lr_spike_loud`, `lr_spike_subtle`
53
+ - **128 metric columns** -- the Flashback sketch: per-group gradient and
54
+ update norms, maxima, variances, sign-flip rates, non-finite counters,
55
+ log-magnitude histograms, and gradient-norm quantiles.
56
+ Names follow `flashback.sketch.SketchSchema`:
57
+ scalars like `grad_norm`, group metrics like `group:attn_qkv:max_abs`,
58
+ histogram bins like `hist_update:15`.
59
+ - `is_after_first_bad` -- 1 from the injected step onward
60
+ - `steps_to_first_bad` -- signed distance to ground truth (negative = before)
61
+
62
+ ## Baselines measured while building this dataset
63
+
64
+ | detector | mean |predicted - true| | never detected |
65
+ |---|---:|---:|
66
+ | loss curve alone | 0.5 | 6 / 18 |
67
+ | Flashback consensus bisect | 0.0 | 0 / 18 |
68
+
69
+ ## Usage
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ ds = load_dataset("NagaYu/flashback-forensics", "steps", split="test")
75
+ runs = load_dataset("NagaYu/flashback-forensics", "runs", split="test")
76
+ ```
77
+
78
+ To reproduce, or to generate more with different faults:
79
+
80
+ ```bash
81
+ pip install flashback
82
+ python scripts/build_forensics.py --scale medium --push-to-hub <you>/flashback-forensics
83
+ ```
84
+
85
+ ## What is *not* here
86
+
87
+ No weights, no gradients, no training data -- only aggregate statistics.
88
+ The full state history lives in a Flashback delta store, which stays local.
89
+
90
+ ## Generation
91
+
92
+ Model: `tiny` (0.53M parameters), 1200 steps, 6 fault
93
+ scenarios x 3 seeds. Faults: learning-rate spikes (loud and subtle),
94
+ single-bit gradient corruption, fp8-range overflow, and data poisoning at two
95
+ contamination levels. Generated by Flashback v0.1.0.
runs/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4ca473169e0691ea93c74c766746e6da7fbcbc5b62c45a87b8fa18062501109
3
+ size 7570
runs/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94401bfead6d15f33e7e66ceb66a85306298162f26e918c24ba68b6d0303ccd0
3
+ size 7724
stats.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "n_step_rows": 21600,
3
+ "n_runs": 18,
4
+ "n_metrics": 128,
5
+ "flashback_mae": 0.0,
6
+ "flashback_misses": 0,
7
+ "loss_mae": 0.5,
8
+ "loss_misses": 6
9
+ }
steps/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0360fa000ff6a94fed86f541f68dd88fe94a0742a9d4fe3dc59f29d7bbaad373
3
+ size 1848783
steps/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4550d4837ee66b8b0b3252e75f104338c3af3d3d2bf5eeec657ae73a58a8dda5
3
+ size 2978364