suchirsalhan commited on
Commit
ecf7187
·
verified ·
1 Parent(s): 641ba70

Upload RESULTS_MERGE_ACCURACY.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. RESULTS_MERGE_ACCURACY.md +45 -3
RESULTS_MERGE_ACCURACY.md CHANGED
@@ -1,6 +1,6 @@
1
  # Merging with alignment: does it improve DOWNSTREAM ACCURACY?
2
 
3
- _Generated 2026-08-26 21:46 UTC · training-free · code `/root/merge-accuracy` · merge operators, aligners and
4
  quotient-distance diagnostics imported unmodified from `mergeschool.core` (`/root/mergeability`,
5
  treated as read-only)._
6
 
@@ -27,6 +27,11 @@ which forks need that.
27
 
28
  ## Headline
29
 
 
 
 
 
 
30
 
31
  ## Substrate
32
 
@@ -34,6 +39,7 @@ which forks need that.
34
  |---|---|---|
35
  | base | `meta-llama/Llama-3.1-8B` | Meta |
36
  | instruct | `meta-llama/Llama-3.1-8B-Instruct` | Meta — the chat vector is Instruct − Base |
 
37
 
38
  Every fork is shape-identical to the base (vocab 128256, hidden 4096, 32 layers, 32 heads / 8 KV
39
  heads), so the chat vector is added to **all 291 tensors**, embeddings included. Shared ancestry
@@ -63,25 +69,61 @@ decision variable. The factor columns show which parts of `g` survived the accep
63
  `MLP perm = id` says whether the accepted per-layer permutation was in fact the identity (a factor
64
  can be accepted and still be the identity, since equality passes the `<=` test).
65
 
66
- | model | coord. share | MLP perm = id | resid. factor | head factor | CKA vs base | rel. drift | weight cos | **PREDICTION** | fit cost |
67
  |---|---|---|---|---|---|---|---|---|---|
 
68
 
69
  ## 2. Accuracy — fork alone / naive chat vector / aligned chat vector
70
 
71
  Bars to clear: **(a)** aligned beats naive; **(b)** the merged model beats the fork it came from.
72
  A merge that clears (a) but not (b) is not a usable model.
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  ## 4. Coverage
75
 
76
  | model / cell | diagnostic | fork alone | naive | aligned |
77
  |---|---|---|---|---|
78
- | `Swallow` | | done | | |
79
  | `Swallow perm 0.0625` | — | done | — | — |
 
 
80
  | `Swallow_v02` | — | done | — | — |
81
 
82
  - reference `Llama-3.1-8B (base)`: belebele_jpn_Jpan 0.563, belebele_eng_Latn 0.743, arc_easy 0.728, ifeval_prompt 0.125, ifeval_inst 0.254
83
  - reference `Llama-3.1-8B-Instruct`: belebele_jpn_Jpan 0.720, belebele_eng_Latn 0.847, arc_easy 0.790, ifeval_prompt 0.540, ifeval_inst 0.640
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  ## 4. Method notes and a bug found in the shared library
86
 
87
  The alignment map `g` is fitted from **(fork, base)** — the map carrying the base model's
 
1
  # Merging with alignment: does it improve DOWNSTREAM ACCURACY?
2
 
3
+ _Generated 2026-08-26 22:14 UTC · training-free · code `/root/merge-accuracy` · merge operators, aligners and
4
  quotient-distance diagnostics imported unmodified from `mergeschool.core` (`/root/mergeability`,
5
  treated as read-only)._
6
 
 
27
 
28
  ## Headline
29
 
30
+ **1 real community fork(s), 0 ground-truth control(s).**
31
+
32
+ - On **1 of 1** real community CPT forks the fitted alignment map is the **identity** (coordinate share exactly 0; every per-layer MLP and attention-head permutation comes back as the identity). Continued pretraining by a third party did **not** move these models out of the base model's frame, so the chat vector is already expressed in the right basis and aligning it is a no-op. The measured accuracy difference is **exactly zero on every benchmark** — the aligned and naive merges are bit-identical models.
33
+ - The chat-vector recipe itself **works** on 1 of 1 of these forks: it lifts instruction following well above the fork it started from, i.e. the merged model beats its own parent — the bar that matters.
34
+ - The diagnostic's registered prediction was correct on **1/1** real forks.
35
 
36
  ## Substrate
37
 
 
39
  |---|---|---|
40
  | base | `meta-llama/Llama-3.1-8B` | Meta |
41
  | instruct | `meta-llama/Llama-3.1-8B-Instruct` | Meta — the chat vector is Instruct − Base |
42
+ | fork | `tokyotech-llm/Llama-3.1-Swallow-8B-v0.1` | community CPT fork, target `jpn_Jpan` |
43
 
44
  Every fork is shape-identical to the base (vocab 128256, hidden 4096, 32 layers, 32 heads / 8 KV
45
  heads), so the chat vector is added to **all 291 tensors**, embeddings included. Shared ancestry
 
69
  `MLP perm = id` says whether the accepted per-layer permutation was in fact the identity (a factor
70
  can be accepted and still be the identity, since equality passes the `<=` test).
71
 
72
+ | model | coord. share | g = identity? | resid. factor | head perm = id | CKA vs base | rel. drift | weight cos | **PREDICTION** | fit cost |
73
  |---|---|---|---|---|---|---|---|---|---|
74
+ | `Swallow` | **0.0000** | yes | kept | yes | 0.997 | 0.1784 | 0.9870 | do not align | 2104s |
75
 
76
  ## 2. Accuracy — fork alone / naive chat vector / aligned chat vector
77
 
78
  Bars to clear: **(a)** aligned beats naive; **(b)** the merged model beats the fork it came from.
79
  A merge that clears (a) but not (b) is not a usable model.
80
 
81
+ ### `Swallow` · λ=1.0 · coord. share 0.0000 · prediction: do not align
82
+
83
+ | metric | chance | fork alone | naive | aligned | Δ align | beats fork? | Instruct ref |
84
+ |---|---|---|---|---|---|---|---|
85
+ | IFEval prompt (strict) | 0.000 | 0.175 | 0.375 | 0.375 | **+0.000** | yes | 0.540 |
86
+ | IFEval instruction | 0.000 | 0.315 | 0.514 | 0.514 | **+0.000** | yes | 0.640 |
87
+ | Belebele jpn_Jpan | 0.250 | 0.600 | 0.680 | 0.680 | **+0.000** | yes | 0.720 |
88
+ | Belebele eng_Latn | 0.250 | 0.680 | 0.790 | 0.790 | **+0.000** | yes | 0.847 |
89
+ | ARC-easy | 0.250 | 0.746 | 0.772 | 0.772 | **+0.000** | yes | 0.790 |
90
+
91
+ ## 3. Selection experiment
92
+
93
+ | strategy | alignment compute | mean IFEval prompt acc | pairs aligned | compute saved |
94
+ |---|---|---|---|---|
95
+ | merge naive (never align) | 0s | **0.3750** | 0/1 | 100% |
96
+ | align everything | 2104s | **0.3750** | 1/1 | 0% |
97
+ | diagnose -> align if coord_share >= 0.01 | 0s | **0.3750** | 0/1 | 100% |
98
+
99
  ## 4. Coverage
100
 
101
  | model / cell | diagnostic | fork alone | naive | aligned |
102
  |---|---|---|---|---|
103
+ | `Swallow` | done | done | done | done |
104
  | `Swallow perm 0.0625` | — | done | — | — |
105
+ | `Swallow perm 0.5` | — | done | — | — |
106
+ | `Swallow perm 1.0` | — | done | — | — |
107
  | `Swallow_v02` | — | done | — | — |
108
 
109
  - reference `Llama-3.1-8B (base)`: belebele_jpn_Jpan 0.563, belebele_eng_Latn 0.743, arc_easy 0.728, ifeval_prompt 0.125, ifeval_inst 0.254
110
  - reference `Llama-3.1-8B-Instruct`: belebele_jpn_Jpan 0.720, belebele_eng_Latn 0.847, arc_easy 0.790, ifeval_prompt 0.540, ifeval_inst 0.640
111
 
112
+ ### Supporting: a cross-group pair merged directly (not a chat vector)
113
+
114
+ `EleutherAI/pythia-1.4b` (step143000) x `SJTU-CL/Zh-Pythia-1.4B` — same architecture, different
115
+ group, different tokenizer, no shared ancestor (weight cosine ~0). Body-only weight average,
116
+ naive vs permutation/orthogonal aligned, scored on SciQ / PIQA / ARC-easy / LAMBADA.
117
+
118
+ | arm | alpha | mean acc | parent A | parent B |
119
+ |---|---|---|---|---|
120
+ | naive | 0.25 | 0.2490 | 0.6665 | 0.3995 |
121
+ | aligned | 0.25 | 0.2505 | 0.6665 | 0.3995 |
122
+ | naive | 0.5 | 0.2480 | 0.6665 | 0.3995 |
123
+ | aligned | 0.5 | 0.2480 | 0.6665 | 0.3995 |
124
+ | naive | 0.75 | 0.2650 | 0.6665 | 0.3995 |
125
+ | aligned | 0.75 | 0.2500 | 0.6665 | 0.3995 |
126
+
127
  ## 4. Method notes and a bug found in the shared library
128
 
129
  The alignment map `g` is fitted from **(fork, base)** — the map carrying the base model's