Machacini commited on
Commit
92f4767
·
verified ·
1 Parent(s): aa142c2

Add held-out score distributions and teacher-label comparison plots

Browse files
.gitattributes CHANGED
@@ -34,3 +34,5 @@ saved_model/**/* 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
  tokenizer.json 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
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ plots/score-distributions.png filter=lfs diff=lfs merge=lfs -text
38
+ plots/teacher-score-distributions.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -119,6 +119,35 @@ Macro MAE is the unweighted mean of the five per-score MAEs. Macro RMSE is the u
119
 
120
  Exact values are included in `test-metrics.json` and `validation-metrics.json` on each branch. The larger model has slightly lower test error. These results do not establish an end-to-end inference throughput advantage for either model; timings from cached-feature head evaluation are not encoder inference benchmarks.
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  ## Training and data
123
 
124
  - **Teacher-labeled corpus:** 524,288 serialized repository contexts, balanced by the original `programming`, `markup`, `data`, and `prose` categories before splitting.
 
119
 
120
  Exact values are included in `test-metrics.json` and `validation-metrics.json` on each branch. The larger model has slightly lower test error. These results do not establish an end-to-end inference throughput advantage for either model; timings from cached-feature head evaluation are not encoder inference benchmarks.
121
 
122
+ <!-- score-distributions:start -->
123
+ ## Score distributions
124
+
125
+ The figures below use the same **26,754 repository-held-out test contexts** as
126
+ the evaluation tables, comparing the fully fine-tuned small and base models.
127
+
128
+ ![Continuous score distributions for mmBERT-small and mmBERT-base](plots/score-distributions.png)
129
+
130
+ Each line shows the percentage of test contexts in a 0.1-point score bin.
131
+ All predictions are included, including predictions for contexts with missing
132
+ teacher targets. Scores remain continuous in [0, 5]; no rounding is used for
133
+ inference or evaluation. The panels use separate vertical scales for readability.
134
+
135
+ ![Teacher labels versus predicted score buckets](plots/teacher-score-distributions.png)
136
+
137
+ The second figure compares teacher labels with both models on the **same labeled
138
+ rows per metric**. Missing/N/A targets are excluded; genuine zero labels are kept.
139
+ For this comparison only, predictions are grouped into integer-centered bins:
140
+ [0, 0.5), [0.5, 1.5), ..., [4.5, 5]. The last bin includes 5. These buckets are a
141
+ visual summary of continuous scores, not additional model classes.
142
+
143
+ [Aggregate histogram counts and bin definitions](plots/score-distributions.json)
144
+ · [Continuous distributions (SVG)](plots/score-distributions.svg)
145
+ · [Teacher comparison (SVG)](plots/teacher-score-distributions.svg)
146
+
147
+ These marginal distributions show how scores are spread; per-context agreement
148
+ is measured by the MAE/RMSE/Spearman results above.
149
+ <!-- score-distributions:end -->
150
+
151
  ## Training and data
152
 
153
  - **Teacher-labeled corpus:** 524,288 serialized repository contexts, balanced by the original `programming`, `markup`, `data`, and `prose` categories before splitting.
plots/score-distributions.json ADDED
@@ -0,0 +1,752 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 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 "test_contexts": 26754,
3
+ "scope": "repository-held-out test set",
4
+ "source": {
5
+ "mmbert-small": {
6
+ "prediction_file_sha256": "1c8d158915a0164419d38f2123f1f86b880d2740e0959085e5a06d3bac18592a",
7
+ "reported_metrics_verified": true
8
+ },
9
+ "mmbert-base": {
10
+ "prediction_file_sha256": "d4da5cd5fbee1b79e8dc1e8a2cf8c00c2e464cb1f231e505c1205e7c37c78930",
11
+ "reported_metrics_verified": true
12
+ }
13
+ },
14
+ "continuous": {
15
+ "bin_edges": [
16
+ 0.0,
17
+ 0.1,
18
+ 0.2,
19
+ 0.30000000000000004,
20
+ 0.4,
21
+ 0.5,
22
+ 0.6000000000000001,
23
+ 0.7000000000000001,
24
+ 0.8,
25
+ 0.9,
26
+ 1.0,
27
+ 1.1,
28
+ 1.2000000000000002,
29
+ 1.3,
30
+ 1.4000000000000001,
31
+ 1.5,
32
+ 1.6,
33
+ 1.7000000000000002,
34
+ 1.8,
35
+ 1.9000000000000001,
36
+ 2.0,
37
+ 2.1,
38
+ 2.2,
39
+ 2.3000000000000003,
40
+ 2.4000000000000004,
41
+ 2.5,
42
+ 2.6,
43
+ 2.7,
44
+ 2.8000000000000003,
45
+ 2.9000000000000004,
46
+ 3.0,
47
+ 3.1,
48
+ 3.2,
49
+ 3.3000000000000003,
50
+ 3.4000000000000004,
51
+ 3.5,
52
+ 3.6,
53
+ 3.7,
54
+ 3.8000000000000003,
55
+ 3.9000000000000004,
56
+ 4.0,
57
+ 4.1000000000000005,
58
+ 4.2,
59
+ 4.3,
60
+ 4.4,
61
+ 4.5,
62
+ 4.6000000000000005,
63
+ 4.7,
64
+ 4.800000000000001,
65
+ 4.9,
66
+ 5.0
67
+ ],
68
+ "counts": {
69
+ "pretraining_value": {
70
+ "mmbert-small": [
71
+ 5612,
72
+ 1122,
73
+ 631,
74
+ 517,
75
+ 430,
76
+ 416,
77
+ 380,
78
+ 476,
79
+ 628,
80
+ 807,
81
+ 781,
82
+ 693,
83
+ 492,
84
+ 414,
85
+ 436,
86
+ 403,
87
+ 399,
88
+ 371,
89
+ 393,
90
+ 379,
91
+ 376,
92
+ 374,
93
+ 341,
94
+ 340,
95
+ 316,
96
+ 334,
97
+ 340,
98
+ 296,
99
+ 300,
100
+ 314,
101
+ 292,
102
+ 294,
103
+ 287,
104
+ 259,
105
+ 286,
106
+ 263,
107
+ 310,
108
+ 309,
109
+ 316,
110
+ 309,
111
+ 335,
112
+ 408,
113
+ 399,
114
+ 418,
115
+ 486,
116
+ 507,
117
+ 578,
118
+ 595,
119
+ 610,
120
+ 382
121
+ ],
122
+ "mmbert-base": [
123
+ 5708,
124
+ 987,
125
+ 662,
126
+ 446,
127
+ 397,
128
+ 414,
129
+ 402,
130
+ 468,
131
+ 637,
132
+ 830,
133
+ 826,
134
+ 624,
135
+ 540,
136
+ 439,
137
+ 428,
138
+ 394,
139
+ 421,
140
+ 399,
141
+ 383,
142
+ 386,
143
+ 369,
144
+ 370,
145
+ 361,
146
+ 335,
147
+ 308,
148
+ 350,
149
+ 326,
150
+ 318,
151
+ 295,
152
+ 296,
153
+ 285,
154
+ 289,
155
+ 282,
156
+ 301,
157
+ 271,
158
+ 262,
159
+ 288,
160
+ 310,
161
+ 313,
162
+ 341,
163
+ 323,
164
+ 356,
165
+ 403,
166
+ 421,
167
+ 486,
168
+ 499,
169
+ 576,
170
+ 599,
171
+ 611,
172
+ 419
173
+ ]
174
+ },
175
+ "repo_quality": {
176
+ "mmbert-small": [
177
+ 8972,
178
+ 764,
179
+ 522,
180
+ 387,
181
+ 320,
182
+ 254,
183
+ 258,
184
+ 243,
185
+ 199,
186
+ 182,
187
+ 182,
188
+ 155,
189
+ 161,
190
+ 176,
191
+ 170,
192
+ 157,
193
+ 211,
194
+ 192,
195
+ 210,
196
+ 242,
197
+ 276,
198
+ 332,
199
+ 384,
200
+ 388,
201
+ 515,
202
+ 617,
203
+ 639,
204
+ 768,
205
+ 772,
206
+ 829,
207
+ 884,
208
+ 852,
209
+ 793,
210
+ 708,
211
+ 659,
212
+ 543,
213
+ 540,
214
+ 487,
215
+ 402,
216
+ 333,
217
+ 270,
218
+ 222,
219
+ 196,
220
+ 155,
221
+ 89,
222
+ 55,
223
+ 49,
224
+ 25,
225
+ 12,
226
+ 3
227
+ ],
228
+ "mmbert-base": [
229
+ 8974,
230
+ 789,
231
+ 508,
232
+ 396,
233
+ 299,
234
+ 266,
235
+ 250,
236
+ 248,
237
+ 190,
238
+ 202,
239
+ 181,
240
+ 147,
241
+ 146,
242
+ 137,
243
+ 177,
244
+ 194,
245
+ 187,
246
+ 221,
247
+ 198,
248
+ 274,
249
+ 258,
250
+ 332,
251
+ 395,
252
+ 432,
253
+ 532,
254
+ 554,
255
+ 681,
256
+ 741,
257
+ 754,
258
+ 818,
259
+ 838,
260
+ 813,
261
+ 766,
262
+ 736,
263
+ 658,
264
+ 603,
265
+ 505,
266
+ 464,
267
+ 405,
268
+ 363,
269
+ 278,
270
+ 230,
271
+ 234,
272
+ 130,
273
+ 95,
274
+ 88,
275
+ 38,
276
+ 23,
277
+ 4,
278
+ 2
279
+ ]
280
+ },
281
+ "coding_standard": {
282
+ "mmbert-small": [
283
+ 9351,
284
+ 571,
285
+ 311,
286
+ 264,
287
+ 189,
288
+ 163,
289
+ 147,
290
+ 147,
291
+ 118,
292
+ 123,
293
+ 125,
294
+ 123,
295
+ 117,
296
+ 131,
297
+ 147,
298
+ 159,
299
+ 170,
300
+ 160,
301
+ 187,
302
+ 204,
303
+ 171,
304
+ 179,
305
+ 155,
306
+ 154,
307
+ 163,
308
+ 177,
309
+ 192,
310
+ 248,
311
+ 291,
312
+ 355,
313
+ 423,
314
+ 457,
315
+ 514,
316
+ 563,
317
+ 619,
318
+ 710,
319
+ 795,
320
+ 912,
321
+ 998,
322
+ 1157,
323
+ 1158,
324
+ 1080,
325
+ 848,
326
+ 618,
327
+ 423,
328
+ 232,
329
+ 139,
330
+ 83,
331
+ 29,
332
+ 4
333
+ ],
334
+ "mmbert-base": [
335
+ 9378,
336
+ 544,
337
+ 305,
338
+ 233,
339
+ 175,
340
+ 177,
341
+ 145,
342
+ 122,
343
+ 126,
344
+ 113,
345
+ 126,
346
+ 145,
347
+ 109,
348
+ 123,
349
+ 147,
350
+ 146,
351
+ 194,
352
+ 180,
353
+ 194,
354
+ 190,
355
+ 189,
356
+ 174,
357
+ 164,
358
+ 175,
359
+ 187,
360
+ 192,
361
+ 217,
362
+ 208,
363
+ 305,
364
+ 339,
365
+ 409,
366
+ 475,
367
+ 491,
368
+ 545,
369
+ 623,
370
+ 643,
371
+ 801,
372
+ 861,
373
+ 1007,
374
+ 1123,
375
+ 1176,
376
+ 1113,
377
+ 876,
378
+ 685,
379
+ 440,
380
+ 239,
381
+ 132,
382
+ 70,
383
+ 18,
384
+ 5
385
+ ]
386
+ },
387
+ "difficulty": {
388
+ "mmbert-small": [
389
+ 10812,
390
+ 1229,
391
+ 824,
392
+ 628,
393
+ 462,
394
+ 435,
395
+ 372,
396
+ 385,
397
+ 636,
398
+ 677,
399
+ 590,
400
+ 475,
401
+ 425,
402
+ 414,
403
+ 382,
404
+ 394,
405
+ 439,
406
+ 441,
407
+ 428,
408
+ 409,
409
+ 368,
410
+ 364,
411
+ 311,
412
+ 291,
413
+ 291,
414
+ 245,
415
+ 277,
416
+ 226,
417
+ 239,
418
+ 247,
419
+ 228,
420
+ 232,
421
+ 223,
422
+ 214,
423
+ 210,
424
+ 209,
425
+ 214,
426
+ 177,
427
+ 171,
428
+ 183,
429
+ 169,
430
+ 144,
431
+ 151,
432
+ 132,
433
+ 114,
434
+ 71,
435
+ 74,
436
+ 47,
437
+ 53,
438
+ 22
439
+ ],
440
+ "mmbert-base": [
441
+ 11077,
442
+ 1212,
443
+ 764,
444
+ 546,
445
+ 452,
446
+ 391,
447
+ 337,
448
+ 393,
449
+ 518,
450
+ 742,
451
+ 656,
452
+ 445,
453
+ 425,
454
+ 383,
455
+ 391,
456
+ 381,
457
+ 435,
458
+ 409,
459
+ 449,
460
+ 384,
461
+ 384,
462
+ 364,
463
+ 337,
464
+ 277,
465
+ 293,
466
+ 285,
467
+ 251,
468
+ 255,
469
+ 245,
470
+ 242,
471
+ 234,
472
+ 237,
473
+ 211,
474
+ 216,
475
+ 198,
476
+ 201,
477
+ 206,
478
+ 191,
479
+ 178,
480
+ 174,
481
+ 159,
482
+ 173,
483
+ 130,
484
+ 123,
485
+ 121,
486
+ 81,
487
+ 72,
488
+ 52,
489
+ 50,
490
+ 24
491
+ ]
492
+ },
493
+ "educational_value": {
494
+ "mmbert-small": [
495
+ 6004,
496
+ 1217,
497
+ 701,
498
+ 488,
499
+ 539,
500
+ 483,
501
+ 525,
502
+ 709,
503
+ 882,
504
+ 1034,
505
+ 768,
506
+ 591,
507
+ 539,
508
+ 505,
509
+ 467,
510
+ 398,
511
+ 356,
512
+ 350,
513
+ 378,
514
+ 322,
515
+ 339,
516
+ 324,
517
+ 310,
518
+ 301,
519
+ 316,
520
+ 318,
521
+ 324,
522
+ 293,
523
+ 279,
524
+ 275,
525
+ 264,
526
+ 294,
527
+ 326,
528
+ 317,
529
+ 319,
530
+ 327,
531
+ 371,
532
+ 329,
533
+ 376,
534
+ 404,
535
+ 372,
536
+ 371,
537
+ 345,
538
+ 369,
539
+ 371,
540
+ 368,
541
+ 262,
542
+ 239,
543
+ 184,
544
+ 211
545
+ ],
546
+ "mmbert-base": [
547
+ 6190,
548
+ 1048,
549
+ 630,
550
+ 550,
551
+ 494,
552
+ 530,
553
+ 480,
554
+ 626,
555
+ 880,
556
+ 981,
557
+ 832,
558
+ 673,
559
+ 550,
560
+ 475,
561
+ 474,
562
+ 370,
563
+ 380,
564
+ 344,
565
+ 374,
566
+ 344,
567
+ 319,
568
+ 314,
569
+ 351,
570
+ 330,
571
+ 298,
572
+ 287,
573
+ 294,
574
+ 318,
575
+ 276,
576
+ 288,
577
+ 290,
578
+ 300,
579
+ 289,
580
+ 295,
581
+ 368,
582
+ 327,
583
+ 360,
584
+ 364,
585
+ 361,
586
+ 363,
587
+ 409,
588
+ 357,
589
+ 371,
590
+ 360,
591
+ 380,
592
+ 325,
593
+ 299,
594
+ 237,
595
+ 192,
596
+ 207
597
+ ]
598
+ }
599
+ },
600
+ "denominator": 26754
601
+ },
602
+ "integer_centered_comparison": {
603
+ "bin_edges": [
604
+ 0.0,
605
+ 0.5,
606
+ 1.5,
607
+ 2.5,
608
+ 3.5,
609
+ 4.5,
610
+ 5.0
611
+ ],
612
+ "by_metric": {
613
+ "pretraining_value": {
614
+ "support": 26754,
615
+ "teacher": [
616
+ 8173,
617
+ 5360,
618
+ 4503,
619
+ 1933,
620
+ 4125,
621
+ 2660
622
+ ],
623
+ "mmbert-small": [
624
+ 8312,
625
+ 5523,
626
+ 3692,
627
+ 3002,
628
+ 3553,
629
+ 2672
630
+ ],
631
+ "mmbert-base": [
632
+ 8200,
633
+ 5608,
634
+ 3726,
635
+ 3013,
636
+ 3503,
637
+ 2704
638
+ ]
639
+ },
640
+ "repo_quality": {
641
+ "support": 26753,
642
+ "teacher": [
643
+ 11860,
644
+ 1130,
645
+ 2809,
646
+ 6465,
647
+ 4301,
648
+ 188
649
+ ],
650
+ "mmbert-small": [
651
+ 10964,
652
+ 1980,
653
+ 2907,
654
+ 7521,
655
+ 3237,
656
+ 144
657
+ ],
658
+ "mmbert-base": [
659
+ 10965,
660
+ 1944,
661
+ 3023,
662
+ 7359,
663
+ 3307,
664
+ 155
665
+ ]
666
+ },
667
+ "coding_standard": {
668
+ "support": 26754,
669
+ "teacher": [
670
+ 11853,
671
+ 186,
672
+ 1441,
673
+ 3266,
674
+ 9028,
675
+ 980
676
+ ],
677
+ "mmbert-small": [
678
+ 10686,
679
+ 1341,
680
+ 1702,
681
+ 3839,
682
+ 8699,
683
+ 487
684
+ ],
685
+ "mmbert-base": [
686
+ 10635,
687
+ 1333,
688
+ 1793,
689
+ 3804,
690
+ 8725,
691
+ 464
692
+ ]
693
+ },
694
+ "difficulty": {
695
+ "support": 26753,
696
+ "teacher": [
697
+ 14845,
698
+ 3146,
699
+ 4660,
700
+ 1667,
701
+ 2009,
702
+ 426
703
+ ],
704
+ "mmbert-small": [
705
+ 13954,
706
+ 4791,
707
+ 3736,
708
+ 2341,
709
+ 1664,
710
+ 267
711
+ ],
712
+ "mmbert-base": [
713
+ 14050,
714
+ 4681,
715
+ 3713,
716
+ 2374,
717
+ 1656,
718
+ 279
719
+ ]
720
+ },
721
+ "educational_value": {
722
+ "support": 26749,
723
+ "teacher": [
724
+ 9090,
725
+ 6432,
726
+ 3335,
727
+ 2479,
728
+ 4165,
729
+ 1248
730
+ ],
731
+ "mmbert-small": [
732
+ 8946,
733
+ 6501,
734
+ 3394,
735
+ 3009,
736
+ 3635,
737
+ 1264
738
+ ],
739
+ "mmbert-base": [
740
+ 8907,
741
+ 6501,
742
+ 3424,
743
+ 3005,
744
+ 3652,
745
+ 1260
746
+ ]
747
+ }
748
+ },
749
+ "policy": "Matched labeled rows per metric; N/A excluded, zeros retained; last bin includes 5"
750
+ },
751
+ "raw_rows_or_ids_included": false
752
+ }
plots/score-distributions.png ADDED

Git LFS Details

  • SHA256: e05b4974d5d27622e9790c93f0f99582532b1cc2521c388f91011b5de160fb9c
  • Pointer size: 131 Bytes
  • Size of remote file: 232 kB
plots/score-distributions.svg ADDED
plots/teacher-score-distributions.png ADDED

Git LFS Details

  • SHA256: 7d44bbfb662b93fee6e57ac54d76a74da62292e2ca05b9aa752cc7966c905a5d
  • Pointer size: 131 Bytes
  • Size of remote file: 248 kB
plots/teacher-score-distributions.svg ADDED