suchirsalhan commited on
Commit
1b69c87
·
verified ·
1 Parent(s): 0122db9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +296 -0
README.md ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ pretty_name: "Extrinsic evaluations: the union view across the mergeability workstreams"
4
+ tags:
5
+ - model-merging
6
+ - mergeability
7
+ - evaluation
8
+ - benchmarks
9
+ - likelihood
10
+ size_categories:
11
+ - 1K<n<10K
12
+ configs:
13
+ - config_name: default
14
+ data_files: extrinsic_evaluations.csv
15
+ ---
16
+
17
+ # Extrinsic evaluations — the union view
18
+
19
+ One tidy long-format table of **every extrinsic (downstream, task-level) evaluation**
20
+ produced across the 2026-08-26 mergeability workstreams, so that a single file answers
21
+ *"how did model X score on benchmark Y"* regardless of which experiment produced it.
22
+
23
+ The per-experiment datasets remain the authoritative record of their own methods,
24
+ figures and caveats. **This is the union view, not a replacement**, and it deliberately
25
+ carries no analysis of its own.
26
+
27
+ - `extrinsic_evaluations.csv` / `.parquet` — **9,183 rows**, one per measurement
28
+ - `build_manifest.json` — per-source row counts, fetch status, dedupe and conflict counts
29
+ - `build_extrinsic.py` — the build script; re-runnable and idempotent
30
+
31
+ ---
32
+
33
+ ## Read this before you read a number
34
+
35
+ ### The one thing this file exists to keep straight
36
+
37
+ **A likelihood rescue and an accuracy rescue are not the same thing, and tonight
38
+ established that they are uncorrelated.** A file that silently mixed nats/token with
39
+ benchmark accuracy in one `value` column would be actively misleading, so:
40
+
41
+ - `metric` always names its unit explicitly (`nats_per_token`, `accuracy_pct`, …).
42
+ - `metric_kind` is the coarse grouping you should **always** group by before aggregating:
43
+ `accuracy` · `accuracy_delta` · `benchmark_score` · `likelihood` · `likelihood_delta` · `other`.
44
+ - `unit` spells the unit out again.
45
+
46
+ **Never aggregate across `metric_kind`. Never treat one as a proxy for the other.**
47
+ The evidence for that instruction is in this file — see *Supported claims* below.
48
+
49
+ ### Every accuracy row has a chance level
50
+
51
+ `chance` is populated for all 1,747 `metric_kind == "accuracy"` rows, in the same units as
52
+ `value`. It is **empty** for likelihood rows (where chance is meaningless) and for
53
+ `benchmark_score` rows, which are **suite aggregates over heterogeneous tasks** — MergeBench's
54
+ per-domain scores, and the `mean_of_benchmarks` rows — where no single chance level is defined.
55
+ That is why those rows are labelled `benchmark_score` and not `accuracy`.
56
+
57
+ ---
58
+
59
+ ## Schema
60
+
61
+ | column | meaning |
62
+ |---|---|
63
+ | `model_id` | HF repo id where the model is released; otherwise a deterministic synthetic id for a merge built locally (`compose-audit:…`, `chatvec-merge:…`, `crossarch:…`) |
64
+ | `model_role` | `parent` · `merged` · `jointly_trained` · `reference` · `control` |
65
+ | `provenance_family` | the model family / substrate the row belongs to |
66
+ | `parents` | `\|`-separated parent model ids for merged rows; empty otherwise |
67
+ | `rung` | the rung / arm within its experiment (`M0_naive_avg`, `M1_perm_avg`, `alpha=0.25`, `aim=1`, …) |
68
+ | `operator` | the merge operator (`naive_avg`, `perm_avg`, `ties`, `task_arithmetic`, `dare`, `slerp`, `transport_ot`, `chat_vector_aligned`, …) |
69
+ | `experiment` | the workstream that produced the row (17 values) |
70
+ | `benchmark` | the benchmark or held-out corpus scored |
71
+ | `metric` | the measurement **with its unit in the name** (see below) |
72
+ | `value` | the number |
73
+ | `chance` | chance level in the same units; populated for every accuracy row |
74
+ | `n` | evaluation items, where the source states it; empty otherwise (never guessed) |
75
+ | `source_dataset` | the HF dataset this row was read from |
76
+ | `notes` | provenance, caveats, and unit warnings carried from the source |
77
+ | `metric_kind` | coarse grouping — **group by this before aggregating** |
78
+ | `unit` | the unit, spelled out |
79
+
80
+ ### Metric dictionary
81
+
82
+ | `metric` | `metric_kind` | `unit` |
83
+ |---|---|---|
84
+ | `accuracy` | accuracy | proportion 0–1 |
85
+ | `accuracy_pct` | accuracy | percent 0–100 |
86
+ | `delta_accuracy` | accuracy_delta | proportion 0–1 |
87
+ | `benchmark_score_pct` | benchmark_score | percent 0–100 |
88
+ | `benchmark_score_norm_pct` | benchmark_score | percent 0–100, normalised |
89
+ | `benchmark_mean_accuracy` | benchmark_score | proportion 0–1 |
90
+ | `nats_per_token` | likelihood | nats/token |
91
+ | `nats_per_utf8_byte` | likelihood | nats per UTF-8 byte |
92
+ | `delta_floor_nats_per_token` | likelihood_delta | nats/token vs. the better parent's floor |
93
+ | `delta_floor_nats_per_byte` | likelihood_delta | nats/byte vs. the better parent's floor |
94
+ | `lmc_barrier_nats_per_token` | likelihood_delta | nats/token |
95
+ | `harmfulness_score` | other | score 0–1 (**not** an accuracy) |
96
+
97
+ Nats per **UTF-8 byte** appears wherever two parents use different tokenizers, because
98
+ nats/token is not comparable across them. This is the source's choice, preserved here.
99
+
100
+ ---
101
+
102
+ ## Provenance
103
+
104
+ | source dataset | rows | what it contributed |
105
+ |---|---|---|
106
+ | [`Mergeability-2/compose-audit`](https://huggingface.co/datasets/Mergeability-2/compose-audit) | 6,358 | PolyPythia seed merges (BLiMP accuracy + Δfloor nats/token, 5 sizes), corpus-robustness on three held-out corpora, Goldfish bilingual composition (nats/byte + MultiBLiMP), B-GPT merges and the joint-training ceiling |
107
+ | [`Mergeability-2/crossarch-1b-diagnostics`](https://huggingface.co/datasets/Mergeability-2/crossarch-1b-diagnostics) | 1,102 | 1B checkpoint merges (106 native pairs, Pythia + Zh-Pythia), cross-architecture optimal-transport merges with their random-plan controls, native cross-model merges — all nats/token |
108
+ | [`suchirsalhan/goldfish-crosslingual-cka`](https://huggingface.co/datasets/suchirsalhan/goldfish-crosslingual-cka) | 609 | held-out NLL for every Goldfish merged and jointly-trained model. **CKA columns are deliberately excluded** — they are an intrinsic representation-similarity diagnostic, not an extrinsic evaluation |
109
+ | [`Mergeability-2/mergebench-property-sweep`](https://huggingface.co/datasets/Mergeability-2/mergebench-property-sweep) | 576 | MergeBench's **published** outcomes: 8 families × 9 methods × 8 task columns |
110
+ | [`Mergeability-2/aim-activation-informed-merging`](https://huggingface.co/datasets/Mergeability-2/aim-activation-informed-merging) | 304 | the AIM paired panel's published benchmark outcomes, with and without AIM, over 20 matched checkpoints |
111
+ | [`Mergeability-2/merge-accuracy`](https://huggingface.co/datasets/Mergeability-2/merge-accuracy) | 234 | chat-vector accuracies on real Llama-3.1-8B forks (Belebele eng+target, ARC-easy, IFEval), the symmetry-group controls, and the pythia × Zh-Pythia cross-group pair |
112
+
113
+ ### Not yet included
114
+
115
+ | dataset | status |
116
+ |---|---|
117
+ | `Mergeability-2/beetle-merge-eval` | repo **exists but was still empty** at build time — it ships only `.gitattributes`, no result files. Contributed 0 rows |
118
+ | `Mergeability-2/crossarch-accuracy` | **not yet created** at build time (HTTP 404). Contributed 0 rows |
119
+
120
+ Both were still being produced when this file was built. `build_extrinsic.py` already
121
+ registers them and skips them cleanly; **re-running it once they publish will fold them
122
+ in with no code change**. Any row that arrives from an in-progress source is prefixed
123
+ `IN PROGRESS -- …` in `notes`. There are currently no such rows.
124
+
125
+ ### How the rows were deduplicated
126
+
127
+ Several sources are resumable ledgers that re-report shared baselines: the SET 1
128
+ `set1` / `set1x` / `slerp` / `repair` ledgers all re-emit identical `M0_naive_avg` and
129
+ `M1_perm_avg` rows for the same merges, and `set1x_410m` re-measures three pairs already
130
+ in `set1_410m`. Left alone that would have triple-counted the baseline rungs and inflated
131
+ the 410m cell from 15 pairs to 18. The build assigns each merge a canonical identity and
132
+ drops repeats: **3,485 repeated measurements removed**. Per-size counts now reproduce the
133
+ source's own `rung_summary.csv` exactly (410m: n = 15, mean Δfloor 6.5290 / 5.9558 / 6.0254).
134
+
135
+ **60 residual conflicts** are recorded in `build_manifest.json`. All are BLiMP accuracies
136
+ differing between two ledgers by exactly one item out of 6,700–13,400 — evaluation
137
+ nondeterminism, not disagreement. The dedicated BLiMP ledger wins.
138
+
139
+ ### Verification
140
+
141
+ Every extractor was checked against its source's own published tables before release:
142
+
143
+ - PolyPythia 14m Δfloor by rung — 32.4294 / 9.6065 / 16.0073 / 146.7951 / 241.5204 — exact match
144
+ - PolyPythia BLiMP by rung and size (14m 0.518 / 0.533 / 0.530 … 410m 0.535 / 0.543) — exact match
145
+ - AIM `T0_published_outcome_paired` spot values — exact match
146
+ - crossarch checkpoint pair counts (Pythia 78, Zh-Pythia 28) — exact match
147
+ - chat-vector aligned − naive on every real fork — exactly 0.000 on every benchmark, as claimed
148
+
149
+ > One inconsistency **in a source** is worth flagging: `compose-audit`'s headline §4 quotes the
150
+ > pythia-14m aligned merge at BLiMP 0.544, while its own authoritative table reports 0.533. This
151
+ > file carries **0.533**, the table value. It does not change the direction of the finding.
152
+
153
+ ---
154
+
155
+ ## What this data supports, and what it does not
156
+
157
+ ### Supported
158
+
159
+ **The likelihood rescue does not transfer to accuracy.** On PolyPythia seed pairs — same data,
160
+ same architecture, same tokenizer, so the merge obstruction is purely coordinate — permutation
161
+ alignment removes ~70% of the naive merge's Δfloor at 14m, and the merged model still scores
162
+ 0.533 on BLiMP against parents at 0.652 and chance 0.500. Across the ladder the merged model
163
+ sits between 0.518 and 0.543 at **every** size, whether alignment recovered three quarters of
164
+ the likelihood gap or a tenth of it. Pair by pair the two rescues are uncorrelated
165
+ (Spearman 0.14 / −0.17 / 0.17 / 0.05 / 0.23). Both arms are in this file, on the same merges,
166
+ in separate `metric_kind` groups — which is the whole reason the file is shaped this way.
167
+
168
+ **The dissociation runs in both directions.** Goldfish merges whose Δfloor says they are
169
+ destroyed still score 0.68 on MultiBLiMP-English (parent 0.96, chance 0.50). Neither metric
170
+ implies the other.
171
+
172
+ **Alignment's coordinate rescue decays with scale.** The exactly function-preserving
173
+ permutation rung removes **70% of the naive Δfloor at 14m and 8% at 410m**. The
174
+ coordinate-removable share of the obstruction is falling in the direction the field is scaling.
175
+ (The source reports this as a mean of per-pair percentages; recomputing it as a ratio of means
176
+ from these rows gives 70% → 9%. Same conclusion, slightly different estimator — read the
177
+ source's tables for the canonical figure.)
178
+
179
+ **Naive averaging of two seed-only-different LMs is catastrophic at every size**, and
180
+ alignment does not make it usable: even the best rung leaves the merge at or above the
181
+ uniform-over-vocabulary reference at the small sizes.
182
+
183
+ **Joint training beats every merge tested.** The B-GPT `jointly_trained` rows are the ceiling,
184
+ and no merge in this file reaches them on either metric.
185
+
186
+ **AIM's published benefit is real.** Paired across 20 matched checkpoints, the with-AIM arm is
187
+ up on the endpoint-scaled benchmark mean (18/20 positive, Wilcoxon p = 9.5e-06). Those
188
+ published outcomes are here for both arms.
189
+
190
+ ### The headline nulls — read these before quoting anything positive
191
+
192
+ **0 of 1035 MergeBench cells survive Benjamini-Hochberg at n = 8 families (80 pairs).** No
193
+ property-vs-outcome relationship in the MergeBench panel is distinguishable from zero at the
194
+ coverage its published outcomes permit. An earlier draft reported 306 surviving cells; all were
195
+ artefacts of three defects since fixed — a cluster bootstrap with a 40.2% false-positive rate at
196
+ n = 4, a saturation gate calibrated on pair-level rather than family-level spread, and testing
197
+ against zero when the families cluster by architecture. **This dataset carries only MergeBench's
198
+ published outcome scores, not those correlation cells** — the cells live in
199
+ `Mergeability-2/mergebench-property-sweep`, and `table_domain_cells.csv` is what to read.
200
+
201
+ **0 of 13 released Llama-3.1-8B derivatives have left the base parameterisation.** Across every
202
+ released derivative examined — language forks, domain continued pretraining, instruct
203
+ post-training, a safety model — not one had moved out of the base model's coordinate frame. The
204
+ aligned and naive chat vectors are therefore **bit-identical models**, and the accuracy
205
+ difference in this file is exactly `0.000` on every benchmark, for every fork, at every λ. That
206
+ is a null about the **ecosystem**, not about the mechanism: the `control` rows, where a real
207
+ fork is acted on by a random element of its own symmetry group, show the naive chat vector
208
+ collapsing (IFEval 0.175 → 0.110, below the fork it started from) and alignment restoring it to
209
+ 0.355. The mechanism reaches accuracy. The condition that would make it pay off did not occur
210
+ in any released model.
211
+
212
+ **Pre-merge predictors do not reliably predict the realised rescue** — 0 of 25 cells
213
+ significant, held out by seed pair. The strongest predictor does not replicate across
214
+ substrates (held-out AUROC 0.48 / 0.71 / 0.81 / 0.61 / 0.45).
215
+
216
+ **AIM does not change what makes a merge work.** Not one of 216 property-vs-outcome
217
+ correlation cells survives multiplicity correction, and the with-minus-without change is inside
218
+ the noise band from re-splitting the same benchmarks within one arm.
219
+
220
+ ### Not supported — do not use this file for these
221
+
222
+ - **Pair-level MergeBench merge outcomes.** They do not exist. Every score MergeBench publishes
223
+ is a **five-expert** merge (`merge_arity` = 5 in all 576 rows), so the 80-pair property suite
224
+ has no published counterpart. `parents` says so on every MergeBench row.
225
+ - **Cross-source comparisons of raw `value`.** Substrates, corpora, item budgets and scorers
226
+ differ between experiments. Compare within an `experiment`, or within a
227
+ (`experiment`, `benchmark`, `metric`) group.
228
+ - **Anything about merged-model accuracy at 1B+ scale.** The 1B arm in this file is
229
+ likelihood-only; the accuracy arm (`Mergeability-2/crossarch-accuracy`) was not published at
230
+ build time. The checkpoint-distance rule — keep souped checkpoints within about half a decade
231
+ of training steps — is measured in **nats/token, not benchmark accuracy**, and given the
232
+ dissociation above it must not be assumed to transfer.
233
+ - **Beetle merge evaluations.** The dataset repo existed but was still empty at build time; 0 rows.
234
+ - **A practitioner diagnostic.** The scientific claim (merge failure can arise from how a
235
+ function is represented, and that is measurable) is well supported. The practitioner claim
236
+ (compute this before merging and it tells you what to do) is **not supported** at the
237
+ coverage available.
238
+ - **Significance testing.** This file carries measurements, not tests. Every p-value, bootstrap
239
+ and permutation null lives in the source datasets.
240
+
241
+ ---
242
+
243
+ ## Rebuilding
244
+
245
+ ```bash
246
+ source /root/.ms_hf_env # HF_TOKEN
247
+ python3 build_extrinsic.py # rebuild from the Hub
248
+ python3 build_extrinsic.py --push # rebuild and publish
249
+ ```
250
+
251
+ Idempotent: it re-fetches each source, skips any that 404, rebuilds every row from scratch,
252
+ re-runs the dedupe, and refuses to emit an accuracy row without a chance level. Re-run it when
253
+ `beetle-merge-eval` and `crossarch-accuracy` publish.
254
+
255
+ ---
256
+
257
+ ## Row counts
258
+
259
+ | experiment | accuracy | accuracy_delta | benchmark_score | likelihood | likelihood_delta | other | total |
260
+ |---|--:|--:|--:|--:|--:|--:|--:|
261
+ | polypythia_seed_merge | 1095 | 477 | 0 | 1413 | 1689 | 0 | **4674** |
262
+ | polypythia_corpus_robustness | 0 | 0 | 0 | 486 | 432 | 0 | **918** |
263
+ | crossarch_checkpoint_merge | 0 | 0 | 0 | 657 | 106 | 0 | **763** |
264
+ | goldfish_crosslingual | 0 | 0 | 0 | 609 | 0 | 0 | **609** |
265
+ | mergebench_published_outcomes | 0 | 0 | 576 | 0 | 0 | 0 | **576** |
266
+ | crossarch_transport_merge | 0 | 0 | 0 | 320 | 0 | 0 | **320** |
267
+ | goldfish_bilingual_merge | 68 | 56 | 0 | 84 | 108 | 0 | **316** |
268
+ | aim_published_outcomes | 264 | 0 | 0 | 0 | 0 | 40 | **304** |
269
+ | bgpt_bilingual_merge | 56 | 0 | 0 | 56 | 60 | 0 | **172** |
270
+ | chat_vector_llama31 | 144 | 0 | 0 | 0 | 0 | 0 | **144** |
271
+ | goldfish_bilingual_merge_reverse | 0 | 0 | 0 | 48 | 72 | 0 | **120** |
272
+ | crossgroup_direct_merge | 80 | 0 | 10 | 0 | 0 | 0 | **90** |
273
+ | bgpt_joint_vs_merge | 40 | 0 | 0 | 40 | 0 | 0 | **80** |
274
+ | polypythia_ablation | 0 | 0 | 0 | 36 | 42 | 0 | **78** |
275
+ | crossarch_native_merge | 0 | 0 | 0 | 10 | 4 | 0 | **14** |
276
+ | crossarch_1b_native | 0 | 0 | 0 | 5 | 0 | 0 | **5** |
277
+ | **All** | **1747** | **533** | **586** | **3764** | **2513** | **40** | **9183** |
278
+
279
+ 3,342 distinct models. By role: 8,396 merged · 293 parent · 220 jointly_trained · 210 control · 64 reference.
280
+
281
+ ## Example
282
+
283
+ ```python
284
+ import pandas as pd
285
+ df = pd.read_parquet("extrinsic_evaluations.parquet")
286
+
287
+ # the dissociation, in two lines
288
+ seed = df[df.experiment == "polypythia_seed_merge"]
289
+ acc = seed[(seed.metric == "accuracy") & (seed.model_role == "merged")]
290
+ nats = seed[(seed.metric == "delta_floor_nats_per_token") & (seed.model_role == "merged")]
291
+ print(acc.groupby(["provenance_family", "rung"]).value.mean()) # flat, ~0.52-0.54
292
+ print(nats.groupby(["provenance_family", "rung"]).value.mean()) # collapses with alignment
293
+
294
+ # never do this
295
+ df.groupby("benchmark").value.mean() # mixes nats with accuracy. group by metric_kind.
296
+ ```