BurnyCoder commited on
Commit
55821d1
·
verified ·
1 Parent(s): 3d9640b

Measure comparable flatness for stories-branch-s21-trunk-r01

Browse files
runs/stories-branch-s21-trunk-r01/README.md CHANGED
@@ -16,9 +16,11 @@ Randomly initialized TinyStories decoder. The restart manifest identifies the we
16
  | Training-window measurement | Value | Interpretation |
17
  | --- | --- | --- |
18
  | Weight width | 15.143 | ↑ Wider is flatter in these weight coordinates |
19
- | RMS weight curvature | Pending | ↓ Lower means less local bending |
20
- | Signed Hessian trace / parameter | Pending | No general better direction |
21
- | Common score width | Pending | ↑ Wider tolerates larger changes in token scores |
22
- | Mean directional score curvature | Pending | ↓ Lower means less local bending in score space |
23
 
24
  Compare weight measurements within the same parameterization and token horizon. The shared score probes use the same token-level perturbations within each corpus. Their value for predicting held-out performance is unknown. [Compare every variant and baseline](https://huggingface.co/BurnyCoder/thirdloss-study#all-variants-and-baselines) · [Per-run statistics and raw probes](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/flatness.md) · [Training scores](https://huggingface.co/BurnyCoder/thirdloss-stories/blob/main/runs/stories-branch-s21-trunk-r01/training_summary.json)
 
 
 
16
  | Training-window measurement | Value | Interpretation |
17
  | --- | --- | --- |
18
  | Weight width | 15.143 | ↑ Wider is flatter in these weight coordinates |
19
+ | RMS weight curvature | 0.449892 | ↓ Lower means less local bending |
20
+ | Signed Hessian trace / parameter | 0.00343864 | No general better direction |
21
+ | Common score width | 1.062 | ↑ Wider tolerates larger changes in token scores |
22
+ | Mean directional score curvature | 0.72934 | ↓ Lower means less local bending in score space |
23
 
24
  Compare weight measurements within the same parameterization and token horizon. The shared score probes use the same token-level perturbations within each corpus. Their value for predicting held-out performance is unknown. [Compare every variant and baseline](https://huggingface.co/BurnyCoder/thirdloss-study#all-variants-and-baselines) · [Per-run statistics and raw probes](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/reports/flatness.md) · [Training scores](https://huggingface.co/BurnyCoder/thirdloss-stories/blob/main/runs/stories-branch-s21-trunk-r01/training_summary.json)
25
+
26
+ [Weight perturbations and Hessian probes](https://huggingface.co/BurnyCoder/thirdloss-stories/blob/main/runs/stories-branch-s21-trunk-r01/flatness.json) · [Shared score perturbations](https://huggingface.co/BurnyCoder/thirdloss-stories/blob/main/runs/stories-branch-s21-trunk-r01/score-flatness.json)
runs/stories-branch-s21-trunk-r01/flatness.json ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "stories-branch-s21-trunk-r01",
3
+ "checkpoint_file_sha256": "509fa252648f89f36f1d31e905d0c563375954b52b335622871f22afd81aecc3",
4
+ "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00",
5
+ "width_device": "cuda",
6
+ "split": "train",
7
+ "probe_windows_sha256": "2b09cf8d13e4e0df411e816e32f1799f1ee165712973c51a09fc75d528c8c2b1",
8
+ "timestamp": "2026-11-25T17:08:25+00:00",
9
+ "protocol": "checkpoint-flatness-v1",
10
+ "width_windows": 8,
11
+ "curvature_windows": 2,
12
+ "width": {
13
+ "step": 2048,
14
+ "tokens": 8388608,
15
+ "baseline_nll": 2.7769362926483154,
16
+ "delta_nll": 0.1,
17
+ "directions": [
18
+ {
19
+ "direction": 0,
20
+ "positive": {
21
+ "lower": 7.390625,
22
+ "upper": 7.3916015625
23
+ },
24
+ "negative": {
25
+ "lower": 7.771484375,
26
+ "upper": 7.7724609375
27
+ }
28
+ },
29
+ {
30
+ "direction": 1,
31
+ "positive": {
32
+ "lower": 6.6220703125,
33
+ "upper": 6.623046875
34
+ },
35
+ "negative": {
36
+ "lower": 8.22265625,
37
+ "upper": 8.224609375
38
+ }
39
+ },
40
+ {
41
+ "direction": 2,
42
+ "positive": {
43
+ "lower": 7.5078125,
44
+ "upper": 7.5087890625
45
+ },
46
+ "negative": {
47
+ "lower": 7.4619140625,
48
+ "upper": 7.462890625
49
+ }
50
+ },
51
+ {
52
+ "direction": 3,
53
+ "positive": {
54
+ "lower": 7.076171875,
55
+ "upper": 7.0771484375
56
+ },
57
+ "negative": {
58
+ "lower": 7.615234375,
59
+ "upper": 7.6162109375
60
+ }
61
+ },
62
+ {
63
+ "direction": 4,
64
+ "positive": {
65
+ "lower": 7.0185546875,
66
+ "upper": 7.01953125
67
+ },
68
+ "negative": {
69
+ "lower": 8.0625,
70
+ "upper": 8.064453125
71
+ }
72
+ },
73
+ {
74
+ "direction": 5,
75
+ "positive": {
76
+ "lower": 7.2890625,
77
+ "upper": 7.2900390625
78
+ },
79
+ "negative": {
80
+ "lower": 7.83203125,
81
+ "upper": 7.8330078125
82
+ }
83
+ },
84
+ {
85
+ "direction": 6,
86
+ "positive": {
87
+ "lower": 7.642578125,
88
+ "upper": 7.6435546875
89
+ },
90
+ "negative": {
91
+ "lower": 7.7900390625,
92
+ "upper": 7.791015625
93
+ }
94
+ },
95
+ {
96
+ "direction": 7,
97
+ "positive": {
98
+ "lower": 8.427734375,
99
+ "upper": 8.4296875
100
+ },
101
+ "negative": {
102
+ "lower": 7.3203125,
103
+ "upper": 7.3212890625
104
+ }
105
+ },
106
+ {
107
+ "direction": 8,
108
+ "positive": {
109
+ "lower": 8.111328125,
110
+ "upper": 8.11328125
111
+ },
112
+ "negative": {
113
+ "lower": 7.248046875,
114
+ "upper": 7.2490234375
115
+ }
116
+ },
117
+ {
118
+ "direction": 9,
119
+ "positive": {
120
+ "lower": 7.806640625,
121
+ "upper": 7.8076171875
122
+ },
123
+ "negative": {
124
+ "lower": 7.5107421875,
125
+ "upper": 7.51171875
126
+ }
127
+ },
128
+ {
129
+ "direction": 10,
130
+ "positive": {
131
+ "lower": 8.025390625,
132
+ "upper": 8.02734375
133
+ },
134
+ "negative": {
135
+ "lower": 6.8486328125,
136
+ "upper": 6.849609375
137
+ }
138
+ },
139
+ {
140
+ "direction": 11,
141
+ "positive": {
142
+ "lower": 7.46484375,
143
+ "upper": 7.4658203125
144
+ },
145
+ "negative": {
146
+ "lower": 7.9375,
147
+ "upper": 7.9384765625
148
+ }
149
+ },
150
+ {
151
+ "direction": 12,
152
+ "positive": {
153
+ "lower": 7.7958984375,
154
+ "upper": 7.796875
155
+ },
156
+ "negative": {
157
+ "lower": 7.4189453125,
158
+ "upper": 7.419921875
159
+ }
160
+ },
161
+ {
162
+ "direction": 13,
163
+ "positive": {
164
+ "lower": 7.7138671875,
165
+ "upper": 7.71484375
166
+ },
167
+ "negative": {
168
+ "lower": 7.693359375,
169
+ "upper": 7.6943359375
170
+ }
171
+ },
172
+ {
173
+ "direction": 14,
174
+ "positive": {
175
+ "lower": 7.1796875,
176
+ "upper": 7.1806640625
177
+ },
178
+ "negative": {
179
+ "lower": 7.4912109375,
180
+ "upper": 7.4921875
181
+ }
182
+ },
183
+ {
184
+ "direction": 15,
185
+ "positive": {
186
+ "lower": 7.3212890625,
187
+ "upper": 7.322265625
188
+ },
189
+ "negative": {
190
+ "lower": 7.294921875,
191
+ "upper": 7.2958984375
192
+ }
193
+ }
194
+ ],
195
+ "width_lower": 15.1416015625,
196
+ "width_upper": 15.1435546875,
197
+ "width": 15.142578125,
198
+ "censored_rays": 0,
199
+ "weights_sha256": "fc76edfca47ced8690aa6854e2c1fd5f2724571940108cb7e230486b1f8a60af",
200
+ "weights_restored": true,
201
+ "seconds": 5.277311300000292
202
+ },
203
+ "curvature": {
204
+ "dimensions": 2557632,
205
+ "draws": [
206
+ {
207
+ "index": 0,
208
+ "trace_per_parameter": 0.0034711879767258865,
209
+ "squared_rms": 0.2095378680590312
210
+ },
211
+ {
212
+ "index": 1,
213
+ "trace_per_parameter": 0.003682663481238672,
214
+ "squared_rms": 0.20449531033490123
215
+ },
216
+ {
217
+ "index": 2,
218
+ "trace_per_parameter": 0.0033824507504214836,
219
+ "squared_rms": 0.20508197763017866
220
+ },
221
+ {
222
+ "index": 3,
223
+ "trace_per_parameter": 0.003304805749758111,
224
+ "squared_rms": 0.19798158711221006
225
+ },
226
+ {
227
+ "index": 4,
228
+ "trace_per_parameter": 0.003104369507406155,
229
+ "squared_rms": 0.19488900812764925
230
+ },
231
+ {
232
+ "index": 5,
233
+ "trace_per_parameter": 0.004409560195849864,
234
+ "squared_rms": 0.2129731013377709
235
+ },
236
+ {
237
+ "index": 6,
238
+ "trace_per_parameter": 0.0026167271654443398,
239
+ "squared_rms": 0.19684894925246574
240
+ },
241
+ {
242
+ "index": 7,
243
+ "trace_per_parameter": 0.0035373939244155964,
244
+ "squared_rms": 0.19741571217483983
245
+ }
246
+ ],
247
+ "device": "cuda:0",
248
+ "dtype": "torch.float64",
249
+ "trace_per_parameter": 0.0034386448439075136,
250
+ "rms_curvature": 0.44989214180026627
251
+ }
252
+ }
runs/stories-branch-s21-trunk-r01/score-flatness.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "stories-branch-s21-trunk-r01",
3
+ "checkpoint_file_sha256": "509fa252648f89f36f1d31e905d0c563375954b52b335622871f22afd81aecc3",
4
+ "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00",
5
+ "width_device": "cuda",
6
+ "split": "train",
7
+ "probe_windows_sha256": "2b09cf8d13e4e0df411e816e32f1799f1ee165712973c51a09fc75d528c8c2b1",
8
+ "timestamp": "2026-11-25T17:08:25+00:00",
9
+ "protocol": "shared-logit-width-v1",
10
+ "score": {
11
+ "baseline_nll": 2.776936326235143,
12
+ "delta_nll": 0.1,
13
+ "units": "RMS logit displacement",
14
+ "vocab": 4096,
15
+ "targets": 1024,
16
+ "direction_sha256": "5e9a84c337f2062645979ddc7e6cf7a9517d49d7715790081425badae96f5577",
17
+ "directions": [
18
+ {
19
+ "direction": 0,
20
+ "positive": {
21
+ "lower": 0.5068359375,
22
+ "upper": 0.5069580078125
23
+ },
24
+ "negative": {
25
+ "lower": 0.5489501953125,
26
+ "upper": 0.549072265625
27
+ },
28
+ "curvature": 0.7377908272615168
29
+ },
30
+ {
31
+ "direction": 1,
32
+ "positive": {
33
+ "lower": 0.5025634765625,
34
+ "upper": 0.502685546875
35
+ },
36
+ "negative": {
37
+ "lower": 0.5511474609375,
38
+ "upper": 0.55126953125
39
+ },
40
+ "curvature": 0.7397365478671272
41
+ },
42
+ {
43
+ "direction": 2,
44
+ "positive": {
45
+ "lower": 0.5118408203125,
46
+ "upper": 0.511962890625
47
+ },
48
+ "negative": {
49
+ "lower": 0.5440673828125,
50
+ "upper": 0.544189453125
51
+ },
52
+ "curvature": 0.7379849414511384
53
+ },
54
+ {
55
+ "direction": 3,
56
+ "positive": {
57
+ "lower": 0.536376953125,
58
+ "upper": 0.5364990234375
59
+ },
60
+ "negative": {
61
+ "lower": 0.5203857421875,
62
+ "upper": 0.5205078125
63
+ },
64
+ "curvature": 0.7357312820138457
65
+ },
66
+ {
67
+ "direction": 4,
68
+ "positive": {
69
+ "lower": 0.547119140625,
70
+ "upper": 0.5472412109375
71
+ },
72
+ "negative": {
73
+ "lower": 0.53076171875,
74
+ "upper": 0.5308837890625
75
+ },
76
+ "curvature": 0.7055544718673605
77
+ },
78
+ {
79
+ "direction": 5,
80
+ "positive": {
81
+ "lower": 0.42626953125,
82
+ "upper": 0.42633056640625
83
+ },
84
+ "negative": {
85
+ "lower": 0.6611328125,
86
+ "upper": 0.6612548828125
87
+ },
88
+ "curvature": 0.7253236026985764
89
+ },
90
+ {
91
+ "direction": 6,
92
+ "positive": {
93
+ "lower": 0.5150146484375,
94
+ "upper": 0.51513671875
95
+ },
96
+ "negative": {
97
+ "lower": 0.537841796875,
98
+ "upper": 0.5379638671875
99
+ },
100
+ "curvature": 0.7415474632701393
101
+ },
102
+ {
103
+ "direction": 7,
104
+ "positive": {
105
+ "lower": 0.6124267578125,
106
+ "upper": 0.612548828125
107
+ },
108
+ "negative": {
109
+ "lower": 0.4537353515625,
110
+ "upper": 0.45379638671875
111
+ },
112
+ "curvature": 0.7417565526916843
113
+ },
114
+ {
115
+ "direction": 8,
116
+ "positive": {
117
+ "lower": 0.563232421875,
118
+ "upper": 0.5633544921875
119
+ },
120
+ "negative": {
121
+ "lower": 0.5089111328125,
122
+ "upper": 0.509033203125
123
+ },
124
+ "curvature": 0.7175938521348824
125
+ },
126
+ {
127
+ "direction": 9,
128
+ "positive": {
129
+ "lower": 0.5482177734375,
130
+ "upper": 0.54833984375
131
+ },
132
+ "negative": {
133
+ "lower": 0.5142822265625,
134
+ "upper": 0.514404296875
135
+ },
136
+ "curvature": 0.7275798483085056
137
+ },
138
+ {
139
+ "direction": 10,
140
+ "positive": {
141
+ "lower": 0.6173095703125,
142
+ "upper": 0.617431640625
143
+ },
144
+ "negative": {
145
+ "lower": 0.47589111328125,
146
+ "upper": 0.4759521484375
147
+ },
148
+ "curvature": 0.7071242767623167
149
+ },
150
+ {
151
+ "direction": 11,
152
+ "positive": {
153
+ "lower": 0.5445556640625,
154
+ "upper": 0.544677734375
155
+ },
156
+ "negative": {
157
+ "lower": 0.5198974609375,
158
+ "upper": 0.52001953125
159
+ },
160
+ "curvature": 0.7240911937399042
161
+ },
162
+ {
163
+ "direction": 12,
164
+ "positive": {
165
+ "lower": 0.4749755859375,
166
+ "upper": 0.47503662109375
167
+ },
168
+ "negative": {
169
+ "lower": 0.576904296875,
170
+ "upper": 0.5770263671875
171
+ },
172
+ "curvature": 0.7481435475142635
173
+ },
174
+ {
175
+ "direction": 13,
176
+ "positive": {
177
+ "lower": 0.5394287109375,
178
+ "upper": 0.53955078125
179
+ },
180
+ "negative": {
181
+ "lower": 0.5343017578125,
182
+ "upper": 0.534423828125
183
+ },
184
+ "curvature": 0.7120833943432948
185
+ },
186
+ {
187
+ "direction": 14,
188
+ "positive": {
189
+ "lower": 0.572265625,
190
+ "upper": 0.5723876953125
191
+ },
192
+ "negative": {
193
+ "lower": 0.48974609375,
194
+ "upper": 0.48980712890625
195
+ },
196
+ "curvature": 0.7319939668622177
197
+ },
198
+ {
199
+ "direction": 15,
200
+ "positive": {
201
+ "lower": 0.563720703125,
202
+ "upper": 0.5638427734375
203
+ },
204
+ "negative": {
205
+ "lower": 0.49603271484375,
206
+ "upper": 0.49609375
207
+ },
208
+ "curvature": 0.7354102099310394
209
+ }
210
+ ],
211
+ "width_lower": 1.062255859375,
212
+ "width_upper": 1.062469482421875,
213
+ "width": 1.0623626708984375,
214
+ "censored_rays": 0,
215
+ "mean_directional_curvature": 0.7293403736698633
216
+ }
217
+ }