BurnyCoder commited on
Commit
84c5eab
·
verified ·
1 Parent(s): 6e4bae2

Measure comparable flatness for stories-hybrid-s23-trace-r01

Browse files
runs/stories-hybrid-s23-trace-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 | 13.046 | ↑ 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-hybrid-s23-trace-r01/training_summary.json)
 
 
 
16
  | Training-window measurement | Value | Interpretation |
17
  | --- | --- | --- |
18
  | Weight width | 13.046 | ↑ Wider is flatter in these weight coordinates |
19
+ | RMS weight curvature | 0.608409 | ↓ Lower means less local bending |
20
+ | Signed Hessian trace / parameter | 0.00456602 | No general better direction |
21
+ | Common score width | 1.083 | ↑ Wider tolerates larger changes in token scores |
22
+ | Mean directional score curvature | 0.700765 | ↓ 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-hybrid-s23-trace-r01/training_summary.json)
25
+
26
+ [Weight perturbations and Hessian probes](https://huggingface.co/BurnyCoder/thirdloss-stories/blob/main/runs/stories-hybrid-s23-trace-r01/flatness.json) · [Shared score perturbations](https://huggingface.co/BurnyCoder/thirdloss-stories/blob/main/runs/stories-hybrid-s23-trace-r01/score-flatness.json)
runs/stories-hybrid-s23-trace-r01/flatness.json ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "stories-hybrid-s23-trace-r01",
3
+ "checkpoint_file_sha256": "c80b4eb2539ade92c343e60c4ffd9c7b8002b10f981ece631fc8c1ad3968f2e8",
4
+ "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00",
5
+ "width_device": "cuda",
6
+ "split": "train",
7
+ "probe_windows_sha256": "2b09cf8d13e4e0df411e816e32f1799f1ee165712973c51a09fc75d528c8c2b1",
8
+ "timestamp": "2026-11-25T17:17:45+00:00",
9
+ "protocol": "checkpoint-flatness-v1",
10
+ "width_windows": 8,
11
+ "curvature_windows": 2,
12
+ "width": {
13
+ "step": 4096,
14
+ "tokens": 16777216,
15
+ "baseline_nll": 2.597111225128174,
16
+ "delta_nll": 0.1,
17
+ "directions": [
18
+ {
19
+ "direction": 0,
20
+ "positive": {
21
+ "lower": 7.2734375,
22
+ "upper": 7.2744140625
23
+ },
24
+ "negative": {
25
+ "lower": 5.923828125,
26
+ "upper": 5.9248046875
27
+ }
28
+ },
29
+ {
30
+ "direction": 1,
31
+ "positive": {
32
+ "lower": 6.0966796875,
33
+ "upper": 6.09765625
34
+ },
35
+ "negative": {
36
+ "lower": 6.306640625,
37
+ "upper": 6.3076171875
38
+ }
39
+ },
40
+ {
41
+ "direction": 2,
42
+ "positive": {
43
+ "lower": 6.3525390625,
44
+ "upper": 6.353515625
45
+ },
46
+ "negative": {
47
+ "lower": 6.4404296875,
48
+ "upper": 6.44140625
49
+ }
50
+ },
51
+ {
52
+ "direction": 3,
53
+ "positive": {
54
+ "lower": 6.71875,
55
+ "upper": 6.7197265625
56
+ },
57
+ "negative": {
58
+ "lower": 6.99609375,
59
+ "upper": 6.9970703125
60
+ }
61
+ },
62
+ {
63
+ "direction": 4,
64
+ "positive": {
65
+ "lower": 6.7734375,
66
+ "upper": 6.7744140625
67
+ },
68
+ "negative": {
69
+ "lower": 6.19921875,
70
+ "upper": 6.2001953125
71
+ }
72
+ },
73
+ {
74
+ "direction": 5,
75
+ "positive": {
76
+ "lower": 6.7958984375,
77
+ "upper": 6.796875
78
+ },
79
+ "negative": {
80
+ "lower": 6.625,
81
+ "upper": 6.6259765625
82
+ }
83
+ },
84
+ {
85
+ "direction": 6,
86
+ "positive": {
87
+ "lower": 5.8603515625,
88
+ "upper": 5.861328125
89
+ },
90
+ "negative": {
91
+ "lower": 7.01953125,
92
+ "upper": 7.0205078125
93
+ }
94
+ },
95
+ {
96
+ "direction": 7,
97
+ "positive": {
98
+ "lower": 5.8779296875,
99
+ "upper": 5.87890625
100
+ },
101
+ "negative": {
102
+ "lower": 7.34375,
103
+ "upper": 7.3447265625
104
+ }
105
+ },
106
+ {
107
+ "direction": 8,
108
+ "positive": {
109
+ "lower": 6.7333984375,
110
+ "upper": 6.734375
111
+ },
112
+ "negative": {
113
+ "lower": 6.6708984375,
114
+ "upper": 6.671875
115
+ }
116
+ },
117
+ {
118
+ "direction": 9,
119
+ "positive": {
120
+ "lower": 6.458984375,
121
+ "upper": 6.4599609375
122
+ },
123
+ "negative": {
124
+ "lower": 6.416015625,
125
+ "upper": 6.4169921875
126
+ }
127
+ },
128
+ {
129
+ "direction": 10,
130
+ "positive": {
131
+ "lower": 6.4404296875,
132
+ "upper": 6.44140625
133
+ },
134
+ "negative": {
135
+ "lower": 6.6689453125,
136
+ "upper": 6.669921875
137
+ }
138
+ },
139
+ {
140
+ "direction": 11,
141
+ "positive": {
142
+ "lower": 6.9521484375,
143
+ "upper": 6.953125
144
+ },
145
+ "negative": {
146
+ "lower": 6.029296875,
147
+ "upper": 6.0302734375
148
+ }
149
+ },
150
+ {
151
+ "direction": 12,
152
+ "positive": {
153
+ "lower": 6.6953125,
154
+ "upper": 6.6962890625
155
+ },
156
+ "negative": {
157
+ "lower": 6.7431640625,
158
+ "upper": 6.744140625
159
+ }
160
+ },
161
+ {
162
+ "direction": 13,
163
+ "positive": {
164
+ "lower": 6.45703125,
165
+ "upper": 6.4580078125
166
+ },
167
+ "negative": {
168
+ "lower": 6.12109375,
169
+ "upper": 6.1220703125
170
+ }
171
+ },
172
+ {
173
+ "direction": 14,
174
+ "positive": {
175
+ "lower": 5.955078125,
176
+ "upper": 5.9560546875
177
+ },
178
+ "negative": {
179
+ "lower": 6.9765625,
180
+ "upper": 6.9775390625
181
+ }
182
+ },
183
+ {
184
+ "direction": 15,
185
+ "positive": {
186
+ "lower": 5.9912109375,
187
+ "upper": 5.9921875
188
+ },
189
+ "negative": {
190
+ "lower": 7.361328125,
191
+ "upper": 7.3623046875
192
+ }
193
+ }
194
+ ],
195
+ "width_lower": 13.04541015625,
196
+ "width_upper": 13.04736328125,
197
+ "width": 13.04638671875,
198
+ "censored_rays": 0,
199
+ "weights_sha256": "d46985ff01d9bb86cc88b14c69426484edc2eec834b2cae456901d36897a4dd6",
200
+ "weights_restored": true,
201
+ "seconds": 6.032212300000538
202
+ },
203
+ "curvature": {
204
+ "dimensions": 2557632,
205
+ "draws": [
206
+ {
207
+ "index": 0,
208
+ "trace_per_parameter": 0.005040350289167932,
209
+ "squared_rms": 0.3772710705214644
210
+ },
211
+ {
212
+ "index": 1,
213
+ "trace_per_parameter": 0.0039142875239144325,
214
+ "squared_rms": 0.35566197380523235
215
+ },
216
+ {
217
+ "index": 2,
218
+ "trace_per_parameter": 0.0044996765986167805,
219
+ "squared_rms": 0.3726210043087537
220
+ },
221
+ {
222
+ "index": 3,
223
+ "trace_per_parameter": 0.004623511982030242,
224
+ "squared_rms": 0.36258268905439883
225
+ },
226
+ {
227
+ "index": 4,
228
+ "trace_per_parameter": 0.004786898787954203,
229
+ "squared_rms": 0.3807879687664817
230
+ },
231
+ {
232
+ "index": 5,
233
+ "trace_per_parameter": 0.005021418755384649,
234
+ "squared_rms": 0.3600691019181958
235
+ },
236
+ {
237
+ "index": 6,
238
+ "trace_per_parameter": 0.004299280605162382,
239
+ "squared_rms": 0.3839921211193964
240
+ },
241
+ {
242
+ "index": 7,
243
+ "trace_per_parameter": 0.004342706022604073,
244
+ "squared_rms": 0.36830971298971743
245
+ }
246
+ ],
247
+ "device": "cuda:0",
248
+ "dtype": "torch.float64",
249
+ "trace_per_parameter": 0.0045660163206043365,
250
+ "rms_curvature": 0.6084093649102182
251
+ }
252
+ }
runs/stories-hybrid-s23-trace-r01/score-flatness.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": "stories-hybrid-s23-trace-r01",
3
+ "checkpoint_file_sha256": "c80b4eb2539ade92c343e60c4ffd9c7b8002b10f981ece631fc8c1ad3968f2e8",
4
+ "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00",
5
+ "width_device": "cuda",
6
+ "split": "train",
7
+ "probe_windows_sha256": "2b09cf8d13e4e0df411e816e32f1799f1ee165712973c51a09fc75d528c8c2b1",
8
+ "timestamp": "2026-11-25T17:17:45+00:00",
9
+ "protocol": "shared-logit-width-v1",
10
+ "score": {
11
+ "baseline_nll": 2.597111145487758,
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.5325927734375,
22
+ "upper": 0.53271484375
23
+ },
24
+ "negative": {
25
+ "lower": 0.5452880859375,
26
+ "upper": 0.54541015625
27
+ },
28
+ "curvature": 0.7060723816801207
29
+ },
30
+ {
31
+ "direction": 1,
32
+ "positive": {
33
+ "lower": 0.5201416015625,
34
+ "upper": 0.520263671875
35
+ },
36
+ "negative": {
37
+ "lower": 0.5526123046875,
38
+ "upper": 0.552734375
39
+ },
40
+ "curvature": 0.7127068670627761
41
+ },
42
+ {
43
+ "direction": 2,
44
+ "positive": {
45
+ "lower": 0.517333984375,
46
+ "upper": 0.5174560546875
47
+ },
48
+ "negative": {
49
+ "lower": 0.558837890625,
50
+ "upper": 0.5589599609375
51
+ },
52
+ "curvature": 0.7103978172058161
53
+ },
54
+ {
55
+ "direction": 3,
56
+ "positive": {
57
+ "lower": 0.552490234375,
58
+ "upper": 0.5526123046875
59
+ },
60
+ "negative": {
61
+ "lower": 0.52685546875,
62
+ "upper": 0.5269775390625
63
+ },
64
+ "curvature": 0.7050065889076981
65
+ },
66
+ {
67
+ "direction": 4,
68
+ "positive": {
69
+ "lower": 0.5576171875,
70
+ "upper": 0.5577392578125
71
+ },
72
+ "negative": {
73
+ "lower": 0.5400390625,
74
+ "upper": 0.5401611328125
75
+ },
76
+ "curvature": 0.6797128542800923
77
+ },
78
+ {
79
+ "direction": 5,
80
+ "positive": {
81
+ "lower": 0.4442138671875,
82
+ "upper": 0.44427490234375
83
+ },
84
+ "negative": {
85
+ "lower": 0.66015625,
86
+ "upper": 0.6602783203125
87
+ },
88
+ "curvature": 0.6967149899108787
89
+ },
90
+ {
91
+ "direction": 6,
92
+ "positive": {
93
+ "lower": 0.543701171875,
94
+ "upper": 0.5438232421875
95
+ },
96
+ "negative": {
97
+ "lower": 0.52978515625,
98
+ "upper": 0.5299072265625
99
+ },
100
+ "curvature": 0.7127762032830409
101
+ },
102
+ {
103
+ "direction": 7,
104
+ "positive": {
105
+ "lower": 0.6068115234375,
106
+ "upper": 0.60693359375
107
+ },
108
+ "negative": {
109
+ "lower": 0.47412109375,
110
+ "upper": 0.47418212890625
111
+ },
112
+ "curvature": 0.7153060309251238
113
+ },
114
+ {
115
+ "direction": 8,
116
+ "positive": {
117
+ "lower": 0.576904296875,
118
+ "upper": 0.5770263671875
119
+ },
120
+ "negative": {
121
+ "lower": 0.516357421875,
122
+ "upper": 0.5164794921875
123
+ },
124
+ "curvature": 0.6896715549043695
125
+ },
126
+ {
127
+ "direction": 9,
128
+ "positive": {
129
+ "lower": 0.5472412109375,
130
+ "upper": 0.54736328125
131
+ },
132
+ "negative": {
133
+ "lower": 0.5391845703125,
134
+ "upper": 0.539306640625
135
+ },
136
+ "curvature": 0.694888757924145
137
+ },
138
+ {
139
+ "direction": 10,
140
+ "positive": {
141
+ "lower": 0.61572265625,
142
+ "upper": 0.6158447265625
143
+ },
144
+ "negative": {
145
+ "lower": 0.49310302734375,
146
+ "upper": 0.4931640625
147
+ },
148
+ "curvature": 0.682012041661911
149
+ },
150
+ {
151
+ "direction": 11,
152
+ "positive": {
153
+ "lower": 0.5657958984375,
154
+ "upper": 0.56591796875
155
+ },
156
+ "negative": {
157
+ "lower": 0.520263671875,
158
+ "upper": 0.5203857421875
159
+ },
160
+ "curvature": 0.6955997040319595
161
+ },
162
+ {
163
+ "direction": 12,
164
+ "positive": {
165
+ "lower": 0.48028564453125,
166
+ "upper": 0.4803466796875
167
+ },
168
+ "negative": {
169
+ "lower": 0.5936279296875,
170
+ "upper": 0.59375
171
+ },
172
+ "curvature": 0.7180008818866007
173
+ },
174
+ {
175
+ "direction": 13,
176
+ "positive": {
177
+ "lower": 0.5552978515625,
178
+ "upper": 0.555419921875
179
+ },
180
+ "negative": {
181
+ "lower": 0.5364990234375,
182
+ "upper": 0.53662109375
183
+ },
184
+ "curvature": 0.6879824911737236
185
+ },
186
+ {
187
+ "direction": 14,
188
+ "positive": {
189
+ "lower": 0.5770263671875,
190
+ "upper": 0.5771484375
191
+ },
192
+ "negative": {
193
+ "lower": 0.5059814453125,
194
+ "upper": 0.506103515625
195
+ },
196
+ "curvature": 0.702093562750373
197
+ },
198
+ {
199
+ "direction": 15,
200
+ "positive": {
201
+ "lower": 0.5675048828125,
202
+ "upper": 0.567626953125
203
+ },
204
+ "negative": {
205
+ "lower": 0.5142822265625,
206
+ "upper": 0.514404296875
207
+ },
208
+ "curvature": 0.7032906774790042
209
+ }
210
+ ],
211
+ "width_lower": 1.0823974609375,
212
+ "width_upper": 1.0826416015625,
213
+ "width": 1.08251953125,
214
+ "censored_rays": 0,
215
+ "mean_directional_curvature": 0.700764587816727
216
+ }
217
+ }