admincybers2 commited on
Commit
c0b2077
·
verified ·
1 Parent(s): 160a434

F1 0.7756 @ 2026-07-06T19:32:57

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. README.md +46 -1
  3. best_model.pt +3 -0
  4. eval_metrics.json +308 -0
  5. model_meta.json +66 -0
  6. training_report.png +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ training_report.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,48 @@
1
  ---
2
- license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags: [retrieval, chunk-selection, trm]
3
  ---
4
+ # TRM chunk selector
5
+
6
+ Recursive PASS/FAIL gate over retrieved chunks (TRM core + skip head),
7
+ 1.91M params on frozen `openai/text-embedding-ada-002` embeddings
8
+ (dim 1539). Decides per chunk whether it belongs in the answer set —
9
+ a variable-size selection instead of a fixed top-k.
10
+
11
+ ![training report](training_report.png)
12
+
13
+ ## Test metrics (threshold 0.884)
14
+
15
+ micro-P **0.8281** · micro-R **0.7294** ·
16
+ micro-F1 **0.7756** · exact-set **0.1316** ·
17
+ best epoch 13
18
+
19
+ | bench | groups | P | R | F1 |
20
+ |---|---|---|---|---|
21
+ | gold_easy | 2 | 1.0 | 0.375 | 0.5455 |
22
+ | gold_medium | 2 | 0.975 | 0.975 | 0.975 |
23
+ | gold_hard | 5 | 0.9667 | 0.9667 | 0.9667 |
24
+ | llm_held_out | 29 | 0.5085 | 0.375 | 0.4317 |
25
+
26
+ `gold_*` tiers are hand-curated deterministic labels (easy = section how-to,
27
+ medium = single-doc, hard = table/matrix incl. reverse lookups); rephrasing
28
+ variants of those questions are in train, so they measure learned question
29
+ types. `llm_held_out` is strict generalization on unseen questions.
30
+
31
+ ## Training data
32
+
33
+ ```json
34
+ {
35
+ "train_groups": 1163,
36
+ "gold_train_groups": 27,
37
+ "test_groups": 38,
38
+ "gold_test_groups": 9,
39
+ "train_candidates": 27019,
40
+ "train_pass": 5510,
41
+ "train_fail": 21509,
42
+ "pass_ratio": 0.204,
43
+ "avg_candidates_per_train_group": 23.2,
44
+ "avg_pass_per_train_group": 4.7
45
+ }
46
+ ```
47
+
48
+ Trained 2026-07-06T19:32:57 · source: https://github.com/s3777091/recursive_models
best_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15f614479f8fcf432b38c2bbcc86463f363cfff0e2fc2c8bf9190ce20cdcb0cb
3
+ size 7633333
eval_metrics.json ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "threshold": 0.884,
3
+ "micro_precision": 0.8281,
4
+ "micro_recall": 0.7294,
5
+ "micro_f1": 0.7756,
6
+ "macro_f1": 0.5659,
7
+ "exact_set_match": 0.1316,
8
+ "avg_selected": 5.05,
9
+ "avg_true_pass": 5.74,
10
+ "num_groups": 38,
11
+ "best_epoch": 13,
12
+ "history": [
13
+ {
14
+ "epoch": 1,
15
+ "loss": 129.936,
16
+ "lr": 0.003571333554490956,
17
+ "threshold": 0.805,
18
+ "micro_precision": 0.4937,
19
+ "micro_recall": 0.1789,
20
+ "micro_f1": 0.2626,
21
+ "macro_f1": 0.3452,
22
+ "exact_set_match": 0.1316,
23
+ "avg_selected": 2.08,
24
+ "avg_true_pass": 5.74,
25
+ "num_groups": 38
26
+ },
27
+ {
28
+ "epoch": 2,
29
+ "loss": 102.521,
30
+ "lr": 0.003571333554490956,
31
+ "threshold": 0.8,
32
+ "micro_precision": 0.5778,
33
+ "micro_recall": 0.2385,
34
+ "micro_f1": 0.3377,
35
+ "macro_f1": 0.4038,
36
+ "exact_set_match": 0.1053,
37
+ "avg_selected": 2.37,
38
+ "avg_true_pass": 5.74,
39
+ "num_groups": 38
40
+ },
41
+ {
42
+ "epoch": 3,
43
+ "loss": 100.13,
44
+ "lr": 0.003571333554490956,
45
+ "threshold": 0.776,
46
+ "micro_precision": 0.5373,
47
+ "micro_recall": 0.1651,
48
+ "micro_f1": 0.2526,
49
+ "macro_f1": 0.3143,
50
+ "exact_set_match": 0.1053,
51
+ "avg_selected": 1.76,
52
+ "avg_true_pass": 5.74,
53
+ "num_groups": 38
54
+ },
55
+ {
56
+ "epoch": 4,
57
+ "loss": 93.977,
58
+ "lr": 0.003571333554490956,
59
+ "threshold": 0.922,
60
+ "micro_precision": 0.5593,
61
+ "micro_recall": 0.3028,
62
+ "micro_f1": 0.3929,
63
+ "macro_f1": 0.4452,
64
+ "exact_set_match": 0.0526,
65
+ "avg_selected": 3.11,
66
+ "avg_true_pass": 5.74,
67
+ "num_groups": 38
68
+ },
69
+ {
70
+ "epoch": 5,
71
+ "loss": 92.528,
72
+ "lr": 0.003571333554490956,
73
+ "threshold": 0.838,
74
+ "micro_precision": 0.7445,
75
+ "micro_recall": 0.4679,
76
+ "micro_f1": 0.5746,
77
+ "macro_f1": 0.4234,
78
+ "exact_set_match": 0.1053,
79
+ "avg_selected": 3.61,
80
+ "avg_true_pass": 5.74,
81
+ "num_groups": 38
82
+ },
83
+ {
84
+ "epoch": 6,
85
+ "loss": 88.403,
86
+ "lr": 0.003571333554490956,
87
+ "threshold": 0.838,
88
+ "micro_precision": 0.7407,
89
+ "micro_recall": 0.6422,
90
+ "micro_f1": 0.688,
91
+ "macro_f1": 0.5556,
92
+ "exact_set_match": 0.1053,
93
+ "avg_selected": 4.97,
94
+ "avg_true_pass": 5.74,
95
+ "num_groups": 38
96
+ },
97
+ {
98
+ "epoch": 7,
99
+ "loss": 87.575,
100
+ "lr": 0.003571333554490956,
101
+ "threshold": 0.791,
102
+ "micro_precision": 0.7151,
103
+ "micro_recall": 0.6101,
104
+ "micro_f1": 0.6584,
105
+ "macro_f1": 0.5496,
106
+ "exact_set_match": 0.1316,
107
+ "avg_selected": 4.89,
108
+ "avg_true_pass": 5.74,
109
+ "num_groups": 38
110
+ },
111
+ {
112
+ "epoch": 8,
113
+ "loss": 86.008,
114
+ "lr": 0.003571333554490956,
115
+ "threshold": 0.792,
116
+ "micro_precision": 0.8362,
117
+ "micro_recall": 0.6789,
118
+ "micro_f1": 0.7494,
119
+ "macro_f1": 0.4991,
120
+ "exact_set_match": 0.1842,
121
+ "avg_selected": 4.66,
122
+ "avg_true_pass": 5.74,
123
+ "num_groups": 38
124
+ },
125
+ {
126
+ "epoch": 9,
127
+ "loss": 83.574,
128
+ "lr": 0.003571333554490956,
129
+ "threshold": 0.783,
130
+ "micro_precision": 0.7744,
131
+ "micro_recall": 0.6927,
132
+ "micro_f1": 0.7312,
133
+ "macro_f1": 0.5291,
134
+ "exact_set_match": 0.1316,
135
+ "avg_selected": 5.13,
136
+ "avg_true_pass": 5.74,
137
+ "num_groups": 38
138
+ },
139
+ {
140
+ "epoch": 10,
141
+ "loss": 80.694,
142
+ "lr": 0.003571333554490956,
143
+ "threshold": 0.844,
144
+ "micro_precision": 0.7882,
145
+ "micro_recall": 0.7339,
146
+ "micro_f1": 0.7601,
147
+ "macro_f1": 0.5412,
148
+ "exact_set_match": 0.1053,
149
+ "avg_selected": 5.34,
150
+ "avg_true_pass": 5.74,
151
+ "num_groups": 38
152
+ },
153
+ {
154
+ "epoch": 11,
155
+ "loss": 80.353,
156
+ "lr": 0.003571333554490956,
157
+ "threshold": 0.937,
158
+ "micro_precision": 0.783,
159
+ "micro_recall": 0.7615,
160
+ "micro_f1": 0.7721,
161
+ "macro_f1": 0.6148,
162
+ "exact_set_match": 0.1842,
163
+ "avg_selected": 5.58,
164
+ "avg_true_pass": 5.74,
165
+ "num_groups": 38
166
+ },
167
+ {
168
+ "epoch": 12,
169
+ "loss": 79.143,
170
+ "lr": 0.003571333554490956,
171
+ "threshold": 0.929,
172
+ "micro_precision": 0.805,
173
+ "micro_recall": 0.7385,
174
+ "micro_f1": 0.7703,
175
+ "macro_f1": 0.56,
176
+ "exact_set_match": 0.1316,
177
+ "avg_selected": 5.26,
178
+ "avg_true_pass": 5.74,
179
+ "num_groups": 38
180
+ },
181
+ {
182
+ "epoch": 13,
183
+ "loss": 76.237,
184
+ "lr": 0.003571333554490956,
185
+ "threshold": 0.884,
186
+ "micro_precision": 0.8281,
187
+ "micro_recall": 0.7294,
188
+ "micro_f1": 0.7756,
189
+ "macro_f1": 0.5659,
190
+ "exact_set_match": 0.1316,
191
+ "avg_selected": 5.05,
192
+ "avg_true_pass": 5.74,
193
+ "num_groups": 38
194
+ },
195
+ {
196
+ "epoch": 14,
197
+ "loss": 73.207,
198
+ "lr": 0.003571333554490956,
199
+ "threshold": 0.826,
200
+ "micro_precision": 0.8427,
201
+ "micro_recall": 0.6881,
202
+ "micro_f1": 0.7576,
203
+ "macro_f1": 0.5396,
204
+ "exact_set_match": 0.1579,
205
+ "avg_selected": 4.68,
206
+ "avg_true_pass": 5.74,
207
+ "num_groups": 38
208
+ },
209
+ {
210
+ "epoch": 15,
211
+ "loss": 73.388,
212
+ "lr": 0.003571333554490956,
213
+ "threshold": 0.87,
214
+ "micro_precision": 0.8289,
215
+ "micro_recall": 0.711,
216
+ "micro_f1": 0.7654,
217
+ "macro_f1": 0.5568,
218
+ "exact_set_match": 0.1579,
219
+ "avg_selected": 4.92,
220
+ "avg_true_pass": 5.74,
221
+ "num_groups": 38
222
+ },
223
+ {
224
+ "epoch": 16,
225
+ "loss": 71.875,
226
+ "lr": 0.003571333554490956,
227
+ "threshold": 0.945,
228
+ "micro_precision": 0.7626,
229
+ "micro_recall": 0.7661,
230
+ "micro_f1": 0.7643,
231
+ "macro_f1": 0.5735,
232
+ "exact_set_match": 0.1316,
233
+ "avg_selected": 5.76,
234
+ "avg_true_pass": 5.74,
235
+ "num_groups": 38
236
+ },
237
+ {
238
+ "epoch": 17,
239
+ "loss": 72.722,
240
+ "lr": 0.003571333554490956,
241
+ "threshold": 0.902,
242
+ "micro_precision": 0.805,
243
+ "micro_recall": 0.7385,
244
+ "micro_f1": 0.7703,
245
+ "macro_f1": 0.5696,
246
+ "exact_set_match": 0.1316,
247
+ "avg_selected": 5.26,
248
+ "avg_true_pass": 5.74,
249
+ "num_groups": 38
250
+ },
251
+ {
252
+ "epoch": 18,
253
+ "loss": 65.242,
254
+ "lr": 0.001785666777245478,
255
+ "threshold": 0.873,
256
+ "micro_precision": 0.8497,
257
+ "micro_recall": 0.6743,
258
+ "micro_f1": 0.7519,
259
+ "macro_f1": 0.5154,
260
+ "exact_set_match": 0.1316,
261
+ "avg_selected": 4.55,
262
+ "avg_true_pass": 5.74,
263
+ "num_groups": 38
264
+ },
265
+ {
266
+ "epoch": 19,
267
+ "loss": 63.143,
268
+ "lr": 0.001785666777245478,
269
+ "threshold": 0.916,
270
+ "micro_precision": 0.8424,
271
+ "micro_recall": 0.711,
272
+ "micro_f1": 0.7711,
273
+ "macro_f1": 0.5543,
274
+ "exact_set_match": 0.1842,
275
+ "avg_selected": 4.84,
276
+ "avg_true_pass": 5.74,
277
+ "num_groups": 38
278
+ },
279
+ {
280
+ "epoch": 20,
281
+ "loss": 61.132,
282
+ "lr": 0.001785666777245478,
283
+ "threshold": 0.903,
284
+ "micro_precision": 0.8182,
285
+ "micro_recall": 0.7018,
286
+ "micro_f1": 0.7556,
287
+ "macro_f1": 0.5291,
288
+ "exact_set_match": 0.1053,
289
+ "avg_selected": 4.92,
290
+ "avg_true_pass": 5.74,
291
+ "num_groups": 38
292
+ },
293
+ {
294
+ "epoch": 21,
295
+ "loss": 60.204,
296
+ "lr": 0.001785666777245478,
297
+ "threshold": 0.914,
298
+ "micro_precision": 0.8889,
299
+ "micro_recall": 0.6606,
300
+ "micro_f1": 0.7579,
301
+ "macro_f1": 0.526,
302
+ "exact_set_match": 0.1579,
303
+ "avg_selected": 4.26,
304
+ "avg_true_pass": 5.74,
305
+ "num_groups": 38
306
+ }
307
+ ]
308
+ }
model_meta.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "TRMSelector \u2014 recursive PASS/FAIL chunk gate (skip head)",
3
+ "params": 1905921,
4
+ "arch": {
5
+ "hidden": 256,
6
+ "H_cycles": 3,
7
+ "L_cycles": 4,
8
+ "head_dropout": 0.1
9
+ },
10
+ "encoder": "openai/text-embedding-ada-002",
11
+ "emb_dim": 1539,
12
+ "threshold": 0.884,
13
+ "lr": 0.003571,
14
+ "metrics": {
15
+ "threshold": 0.884,
16
+ "micro_precision": 0.8281,
17
+ "micro_recall": 0.7294,
18
+ "micro_f1": 0.7756,
19
+ "macro_f1": 0.5659,
20
+ "exact_set_match": 0.1316,
21
+ "avg_selected": 5.05,
22
+ "avg_true_pass": 5.74,
23
+ "num_groups": 38,
24
+ "best_epoch": 13
25
+ },
26
+ "bench": {
27
+ "gold_easy": {
28
+ "groups": 2,
29
+ "precision": 1.0,
30
+ "recall": 0.375,
31
+ "f1": 0.5455
32
+ },
33
+ "gold_medium": {
34
+ "groups": 2,
35
+ "precision": 0.975,
36
+ "recall": 0.975,
37
+ "f1": 0.975
38
+ },
39
+ "gold_hard": {
40
+ "groups": 5,
41
+ "precision": 0.9667,
42
+ "recall": 0.9667,
43
+ "f1": 0.9667
44
+ },
45
+ "llm_held_out": {
46
+ "groups": 29,
47
+ "precision": 0.5085,
48
+ "recall": 0.375,
49
+ "f1": 0.4317
50
+ }
51
+ },
52
+ "data": {
53
+ "train_groups": 1163,
54
+ "gold_train_groups": 27,
55
+ "test_groups": 38,
56
+ "gold_test_groups": 9,
57
+ "train_candidates": 27019,
58
+ "train_pass": 5510,
59
+ "train_fail": 21509,
60
+ "pass_ratio": 0.204,
61
+ "avg_candidates_per_train_group": 23.2,
62
+ "avg_pass_per_train_group": 4.7
63
+ },
64
+ "trained_at": "2026-07-06T19:32:57",
65
+ "source": "https://github.com/s3777091/recursive_models"
66
+ }
training_report.png ADDED

Git LFS Details

  • SHA256: 3e9d33e4bd12fb9d60e4ae81987662c538155725de843490136debf54e71ea37
  • Pointer size: 131 Bytes
  • Size of remote file: 125 kB