File size: 30,619 Bytes
ca3d977
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
{
  "canonical_p_probe": {
    "canonical_decode_accuracy": {
      "entity": 1.0,
      "metadata": 1.0,
      "relation": 1.0,
      "value": 1.0
    },
    "hard_negative_accuracy": {
      "historical": 1.0,
      "wrong_entity": 0.97265625,
      "wrong_value": 1.0
    },
    "held_out_combinations": 256,
    "p_only_state_recovery": 0.97265625,
    "permutation_stability": 1.0,
    "permutations_per_combination": 8,
    "slot_width": 512,
    "total_held_out_combinations": 519,
    "train_combinations": 2073,
    "training_loss_first": 7.440117835998535,
    "training_loss_last": 0.04114125296473503
  },
  "completion_gate": "passed",
  "diagnostic_variant": "final_layer",
  "experiment": {
    "base_frozen": true,
    "causal_steps": 256,
    "lora_used": false,
    "phase_c_started": false,
    "query_steps": 400,
    "router_steps": 400,
    "seed": 307,
    "source_tokens_in_recent_kv": 0,
    "value_steps": 400
  },
  "immutable_rejected_translator_baseline": {
    "final_layer": {
      "exact_generated_token_accuracy": 0.45000001788139343,
      "global_20_fact_retrieval": 0.6500000357627869,
      "p_to_model_value_accuracy": 1.0,
      "rp_loss": 4.656857490539551,
      "unseen_name_accuracy": 0.25,
      "wrong_entity_gate": 0.5172024965286255
    },
    "upper_2_layers": {
      "exact_generated_token_accuracy": 0.550000011920929,
      "global_20_fact_retrieval": 0.6500000357627869,
      "p_to_model_value_accuracy": 1.0,
      "rp_loss": 6.086124897003174,
      "unseen_name_accuracy": 0.0,
      "wrong_entity_gate": 0.6912492662668228
    },
    "upper_4_layers": {
      "exact_generated_token_accuracy": 0.6500000357627869,
      "global_20_fact_retrieval": 0.699999988079071,
      "p_to_model_value_accuracy": 1.0,
      "rp_loss": 5.704916477203369,
      "unseen_name_accuracy": 0.25,
      "wrong_entity_gate": 0.7020304128527641
    }
  },
  "layer_sweep": {
    "final_layer": {
      "ablations": {
        "full_system_with_preservation": {
          "full_token_accuracy": 1.0,
          "gate_activation": 0.9820089340209961,
          "state_candidate_accuracy": 1.0
        },
        "router_only": {
          "active_vram_overhead_bytes": 11035444,
          "hidden_only_top1_accuracy": 0.0,
          "latency_seconds": 0.10144930460010074,
          "mrr": 1.0,
          "oracle_query_mrr": 1.0,
          "oracle_query_top1_accuracy": 1.0,
          "oracle_query_top4_recall": 1.0,
          "state_generation_accuracy": 1.0,
          "top1_accuracy": 1.0,
          "top2_recall": 1.0,
          "top4_recall": 1.0
        },
        "router_plus_translator_plus_gate": {
          "historical_state_kl": 9.595059236744419e-05,
          "rp_kl": -3.993045538663864e-08,
          "rp_loss": 5.583366870880127,
          "state_candidate_accuracy": 1.0,
          "state_loss": 1.8655489839147776e-05,
          "wrong_state_kl": 9.595059236744419e-05
        },
        "router_plus_translator_without_gate": {
          "state_candidate_accuracy": 1.0
        },
        "translator_only_oracle_routing": {
          "state_candidate_accuracy": 1.0
        }
      },
      "attachment_count": 1,
      "attachment_layers": [
        23
      ],
      "base_parameters_with_grad": 0,
      "causal_training_loss_first_last": [
        9.884638786315918,
        5.081248218630208e-06
      ],
      "counterfactual": {
        "disabled": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p1_silver_alice": {
          "alice_logit": 40.09375,
          "alice_probability": 1.0,
          "bob_logit": 14.3125,
          "bob_probability": 6.3583643558629e-12,
          "gate": 0.9964228272438049,
          "generated": " Alice"
        },
        "p2_silver_bob": {
          "alice_logit": 13.0234375,
          "alice_probability": 4.473376963992637e-12,
          "bob_logit": 39.15625,
          "bob_probability": 0.9999349117279053,
          "gate": 0.9842994213104248,
          "generated": " Bob"
        },
        "p3_gold_alice": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p4_silver_historical": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p4_silver_invalidated": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        }
      },
      "extra_prompt_tokens": 0,
      "invalidated_logit_difference": 0.0,
      "mutation_chain": {
        "invalidated_max_logit_difference": 0.0,
        "latest_state_accuracy": 1.0,
        "source_tokens_in_recent_kv": 0
      },
      "natural_rp": {
        "base_loss": 5.583366870880127,
        "conditions": {
          "base": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "invalidated": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "irrelevant": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "wrong_entity": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          }
        },
        "relevant_state_generation_sample": " Alice"
      },
      "package_parameters": 2707464,
      "package_path": "artifacts/pythia-1.4b-split-final_layer.translate",
      "package_roundtrip_max_difference": 0.0,
      "query_projector": {
        "byte_surface_anchor_approach": {
          "entity_accuracy": 1.0,
          "entity_cosine": 1.0,
          "metadata_accuracy": 1.0,
          "oracle_slot_assignments": 0,
          "relation_accuracy": 1.0,
          "tokenizer_independent": true
        },
        "frozen_lexical_anchor_approach": {
          "entity_accuracy": 0.78125,
          "entity_cosine": 0.7632350921630859
        },
        "heldout_names": 64,
        "hidden_to_byte_reconstruction_ablation": {
          "entity_accuracy": 0.125,
          "entity_cosine": 0.2643434405326843,
          "metadata_accuracy": 1.0,
          "relation_accuracy": 1.0
        },
        "loss_first_last": [
          6.364231586456299,
          0.23614102602005005
        ],
        "training_names": 256
      },
      "router": {
        "acceptance_threshold": 5.495710372924805,
        "calibration_balanced_accuracy": 1.0,
        "hard_negative_metrics": {
          "historical_false_positive_rate": 0.0,
          "invalidated_false_positive_rate": 0.0,
          "irrelevant_false_positive_rate": 0.0,
          "top1_accuracy": 1.0,
          "wrong_entity_false_positive_rate": 0.0,
          "wrong_relation_false_positive_rate": 0.0
        },
        "loss_first_last": [
          7.388868808746338,
          1.7992397546768188
        ],
        "model_hidden_dimensions": 0,
        "scaling": {
          "128": {
            "active_vram_overhead_bytes": 11035444,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.10144930460010074,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "20": {
            "active_vram_overhead_bytes": 10861996,
            "hidden_only_top1_accuracy": 0.20000000298023224,
            "latency_seconds": 0.08669143320003059,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "256": {
            "active_vram_overhead_bytes": 11241012,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.11810561999955098,
            "mrr": 0.9505556225776672,
            "oracle_query_mrr": 0.9505556225776672,
            "oracle_query_top1_accuracy": 0.949999988079071,
            "oracle_query_top4_recall": 0.949999988079071,
            "state_generation_accuracy": 0.949999988079071,
            "top1_accuracy": 0.949999988079071,
            "top2_recall": 0.949999988079071,
            "top4_recall": 0.949999988079071
          },
          "4": {
            "active_vram_overhead_bytes": 10836300,
            "hidden_only_top1_accuracy": 0.75,
            "latency_seconds": 0.02663025279980502,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "512": {
            "active_vram_overhead_bytes": 11652148,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.16455349219977505,
            "mrr": 0.8524776697158813,
            "oracle_query_mrr": 0.8524776697158813,
            "oracle_query_top1_accuracy": 0.8500000238418579,
            "oracle_query_top4_recall": 0.8500000238418579,
            "state_generation_accuracy": 0.8500000238418579,
            "top1_accuracy": 0.8500000238418579,
            "top2_recall": 0.8500000238418579,
            "top4_recall": 0.8500000238418579
          },
          "64": {
            "active_vram_overhead_bytes": 10932660,
            "hidden_only_top1_accuracy": 0.05000000074505806,
            "latency_seconds": 0.09232893199950923,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          }
        }
      },
      "router_parameters": 5,
      "router_path": "artifacts/canonical-final_layer.router",
      "router_roundtrip_max_difference": 0.0,
      "source_tokens_in_recent_kv": 0,
      "value_translator": {
        "loss_first_last": [
          4.713489055633545,
          0.00027370601310394704
        ],
        "oracle_selected_metrics": {
          "accuracy": 1.0,
          "cosine": 0.9998512268066406
        }
      }
    },
    "upper_2_layers": {
      "ablations": {
        "full_system_with_preservation": {
          "full_token_accuracy": 1.0,
          "gate_activation": 0.8225321769714355,
          "state_candidate_accuracy": 1.0
        },
        "router_only": {
          "active_vram_overhead_bytes": 11035444,
          "hidden_only_top1_accuracy": 0.0,
          "latency_seconds": 0.10514904640003805,
          "mrr": 1.0,
          "oracle_query_mrr": 1.0,
          "oracle_query_top1_accuracy": 1.0,
          "oracle_query_top4_recall": 1.0,
          "state_generation_accuracy": 1.0,
          "top1_accuracy": 1.0,
          "top2_recall": 1.0,
          "top4_recall": 1.0
        },
        "router_plus_translator_plus_gate": {
          "historical_state_kl": 9.595059236744419e-05,
          "rp_kl": -3.993045538663864e-08,
          "rp_loss": 5.583366870880127,
          "state_candidate_accuracy": 1.0,
          "state_loss": 5.1855395213351585e-06,
          "wrong_state_kl": 9.595059236744419e-05
        },
        "router_plus_translator_without_gate": {
          "state_candidate_accuracy": 1.0
        },
        "translator_only_oracle_routing": {
          "state_candidate_accuracy": 1.0
        }
      },
      "attachment_count": 2,
      "attachment_layers": [
        22,
        23
      ],
      "base_parameters_with_grad": 0,
      "causal_training_loss_first_last": [
        9.555724143981934,
        1.2963974995727767e-06
      ],
      "counterfactual": {
        "disabled": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p1_silver_alice": {
          "alice_logit": 58.59375,
          "alice_probability": 1.0,
          "bob_logit": 18.5,
          "bob_probability": 3.868170754671019e-18,
          "gate": 0.941794216632843,
          "generated": " Alice"
        },
        "p2_silver_bob": {
          "alice_logit": 16.078125,
          "alice_probability": 6.54239844304198e-17,
          "bob_logit": 53.34375,
          "bob_probability": 0.9999822378158569,
          "gate": 0.8498331308364868,
          "generated": " Bob"
        },
        "p3_gold_alice": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p4_silver_historical": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p4_silver_invalidated": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        }
      },
      "extra_prompt_tokens": 0,
      "invalidated_logit_difference": 0.0,
      "mutation_chain": {
        "invalidated_max_logit_difference": 0.0,
        "latest_state_accuracy": 1.0,
        "source_tokens_in_recent_kv": 0
      },
      "natural_rp": {
        "base_loss": 5.583366870880127,
        "conditions": {
          "base": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "invalidated": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "irrelevant": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "wrong_entity": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          }
        },
        "relevant_state_generation_sample": " Alice"
      },
      "package_parameters": 2707464,
      "package_path": "artifacts/pythia-1.4b-split-upper_2_layers.translate",
      "package_roundtrip_max_difference": 0.0,
      "query_projector": {
        "byte_surface_anchor_approach": {
          "entity_accuracy": 1.0,
          "entity_cosine": 1.0,
          "metadata_accuracy": 1.0,
          "oracle_slot_assignments": 0,
          "relation_accuracy": 1.0,
          "tokenizer_independent": true
        },
        "frozen_lexical_anchor_approach": {
          "entity_accuracy": 0.78125,
          "entity_cosine": 0.7632350921630859
        },
        "heldout_names": 64,
        "hidden_to_byte_reconstruction_ablation": {
          "entity_accuracy": 0.046875,
          "entity_cosine": 0.281654953956604,
          "metadata_accuracy": 1.0,
          "relation_accuracy": 1.0
        },
        "loss_first_last": [
          6.3322367668151855,
          0.24513374269008636
        ],
        "training_names": 256
      },
      "router": {
        "acceptance_threshold": 5.495710372924805,
        "calibration_balanced_accuracy": 1.0,
        "hard_negative_metrics": {
          "historical_false_positive_rate": 0.0,
          "invalidated_false_positive_rate": 0.0,
          "irrelevant_false_positive_rate": 0.0,
          "top1_accuracy": 1.0,
          "wrong_entity_false_positive_rate": 0.0,
          "wrong_relation_false_positive_rate": 0.0
        },
        "loss_first_last": [
          7.388868808746338,
          1.7992397546768188
        ],
        "model_hidden_dimensions": 0,
        "scaling": {
          "128": {
            "active_vram_overhead_bytes": 11035444,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.10514904640003805,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "20": {
            "active_vram_overhead_bytes": 10861996,
            "hidden_only_top1_accuracy": 0.10000000149011612,
            "latency_seconds": 0.08956059680058388,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "256": {
            "active_vram_overhead_bytes": 11241012,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.12291700120040332,
            "mrr": 0.9505556225776672,
            "oracle_query_mrr": 0.9505556225776672,
            "oracle_query_top1_accuracy": 0.949999988079071,
            "oracle_query_top4_recall": 0.949999988079071,
            "state_generation_accuracy": 0.949999988079071,
            "top1_accuracy": 0.949999988079071,
            "top2_recall": 0.949999988079071,
            "top4_recall": 0.949999988079071
          },
          "4": {
            "active_vram_overhead_bytes": 10836300,
            "hidden_only_top1_accuracy": 0.5,
            "latency_seconds": 0.028453471799730325,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "512": {
            "active_vram_overhead_bytes": 11652148,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.17295584960011184,
            "mrr": 0.8524776697158813,
            "oracle_query_mrr": 0.8524776697158813,
            "oracle_query_top1_accuracy": 0.8500000238418579,
            "oracle_query_top4_recall": 0.8500000238418579,
            "state_generation_accuracy": 0.8500000238418579,
            "top1_accuracy": 0.8500000238418579,
            "top2_recall": 0.8500000238418579,
            "top4_recall": 0.8500000238418579
          },
          "64": {
            "active_vram_overhead_bytes": 10932660,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.09586576699948637,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          }
        }
      },
      "router_parameters": 5,
      "router_path": "artifacts/canonical-upper_2_layers.router",
      "router_roundtrip_max_difference": 0.0,
      "source_tokens_in_recent_kv": 0,
      "value_translator": {
        "loss_first_last": [
          4.713489055633545,
          0.00027370601310394704
        ],
        "oracle_selected_metrics": {
          "accuracy": 1.0,
          "cosine": 0.9998512268066406
        }
      }
    },
    "upper_4_layers": {
      "ablations": {
        "full_system_with_preservation": {
          "full_token_accuracy": 1.0,
          "gate_activation": 0.6373323798179626,
          "state_candidate_accuracy": 1.0
        },
        "router_only": {
          "active_vram_overhead_bytes": 11035444,
          "hidden_only_top1_accuracy": 0.0,
          "latency_seconds": 0.11078032340010395,
          "mrr": 1.0,
          "oracle_query_mrr": 1.0,
          "oracle_query_top1_accuracy": 1.0,
          "oracle_query_top4_recall": 1.0,
          "state_generation_accuracy": 1.0,
          "top1_accuracy": 1.0,
          "top2_recall": 1.0,
          "top4_recall": 1.0
        },
        "router_plus_translator_plus_gate": {
          "historical_state_kl": 9.595059236744419e-05,
          "rp_kl": -3.993045538663864e-08,
          "rp_loss": 5.583366870880127,
          "state_candidate_accuracy": 1.0,
          "state_loss": 1.4752099559700582e-06,
          "wrong_state_kl": 9.595059236744419e-05
        },
        "router_plus_translator_without_gate": {
          "state_candidate_accuracy": 1.0
        },
        "translator_only_oracle_routing": {
          "state_candidate_accuracy": 1.0
        }
      },
      "attachment_count": 4,
      "attachment_layers": [
        20,
        21,
        22,
        23
      ],
      "base_parameters_with_grad": 0,
      "causal_training_loss_first_last": [
        8.895807266235352,
        6.407490786841663e-07
      ],
      "counterfactual": {
        "disabled": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p1_silver_alice": {
          "alice_logit": 72.5625,
          "alice_probability": 1.0,
          "bob_logit": 20.375,
          "bob_probability": 2.1639972398594e-23,
          "gate": 0.8317975997924805,
          "generated": " Alice"
        },
        "p2_silver_bob": {
          "alice_logit": 17.796875,
          "alice_probability": 7.510040636028562e-22,
          "bob_logit": 66.4375,
          "bob_probability": 0.9999938011169434,
          "gate": 0.6602288484573364,
          "generated": " Bob"
        },
        "p3_gold_alice": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p4_silver_historical": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        },
        "p4_silver_invalidated": {
          "alice_logit": 5.515625,
          "alice_probability": 3.538730743457563e-05,
          "bob_logit": 6.2734375,
          "bob_probability": 7.55025030230172e-05,
          "gate": 0.0,
          "generated": " a"
        }
      },
      "extra_prompt_tokens": 0,
      "invalidated_logit_difference": 0.0,
      "mutation_chain": {
        "invalidated_max_logit_difference": 0.0,
        "latest_state_accuracy": 1.0,
        "source_tokens_in_recent_kv": 0
      },
      "natural_rp": {
        "base_loss": 5.583366870880127,
        "conditions": {
          "base": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "invalidated": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "irrelevant": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          },
          "wrong_entity": {
            "kl": -3.993045538663864e-08,
            "loss": 5.583366870880127,
            "samples": [
              "\n\n\"I'm not",
              "\n\n\"I'm going"
            ]
          }
        },
        "relevant_state_generation_sample": " Alice"
      },
      "package_parameters": 2707464,
      "package_path": "artifacts/pythia-1.4b-split-upper_4_layers.translate",
      "package_roundtrip_max_difference": 0.0,
      "query_projector": {
        "byte_surface_anchor_approach": {
          "entity_accuracy": 1.0,
          "entity_cosine": 1.0,
          "metadata_accuracy": 1.0,
          "oracle_slot_assignments": 0,
          "relation_accuracy": 1.0,
          "tokenizer_independent": true
        },
        "frozen_lexical_anchor_approach": {
          "entity_accuracy": 0.78125,
          "entity_cosine": 0.7632350921630859
        },
        "heldout_names": 64,
        "hidden_to_byte_reconstruction_ablation": {
          "entity_accuracy": 0.078125,
          "entity_cosine": 0.28708386421203613,
          "metadata_accuracy": 1.0,
          "relation_accuracy": 1.0
        },
        "loss_first_last": [
          6.471477031707764,
          0.2573241889476776
        ],
        "training_names": 256
      },
      "router": {
        "acceptance_threshold": 5.495710372924805,
        "calibration_balanced_accuracy": 1.0,
        "hard_negative_metrics": {
          "historical_false_positive_rate": 0.0,
          "invalidated_false_positive_rate": 0.0,
          "irrelevant_false_positive_rate": 0.0,
          "top1_accuracy": 1.0,
          "wrong_entity_false_positive_rate": 0.0,
          "wrong_relation_false_positive_rate": 0.0
        },
        "loss_first_last": [
          7.388868808746338,
          1.7992397546768188
        ],
        "model_hidden_dimensions": 0,
        "scaling": {
          "128": {
            "active_vram_overhead_bytes": 11035444,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.11078032340010395,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "20": {
            "active_vram_overhead_bytes": 10861996,
            "hidden_only_top1_accuracy": 0.10000000149011612,
            "latency_seconds": 0.09917421240024851,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "256": {
            "active_vram_overhead_bytes": 11241012,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.1296995702003187,
            "mrr": 0.9505556225776672,
            "oracle_query_mrr": 0.9505556225776672,
            "oracle_query_top1_accuracy": 0.949999988079071,
            "oracle_query_top4_recall": 0.949999988079071,
            "state_generation_accuracy": 0.949999988079071,
            "top1_accuracy": 0.949999988079071,
            "top2_recall": 0.949999988079071,
            "top4_recall": 0.949999988079071
          },
          "4": {
            "active_vram_overhead_bytes": 10836300,
            "hidden_only_top1_accuracy": 0.25,
            "latency_seconds": 0.031837903400446524,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          },
          "512": {
            "active_vram_overhead_bytes": 11652148,
            "hidden_only_top1_accuracy": 0.0,
            "latency_seconds": 0.18178108020001674,
            "mrr": 0.8524776697158813,
            "oracle_query_mrr": 0.8524776697158813,
            "oracle_query_top1_accuracy": 0.8500000238418579,
            "oracle_query_top4_recall": 0.8500000238418579,
            "state_generation_accuracy": 0.8500000238418579,
            "top1_accuracy": 0.8500000238418579,
            "top2_recall": 0.8500000238418579,
            "top4_recall": 0.8500000238418579
          },
          "64": {
            "active_vram_overhead_bytes": 10932660,
            "hidden_only_top1_accuracy": 0.05000000074505806,
            "latency_seconds": 0.10435858960045152,
            "mrr": 1.0,
            "oracle_query_mrr": 1.0,
            "oracle_query_top1_accuracy": 1.0,
            "oracle_query_top4_recall": 1.0,
            "state_generation_accuracy": 1.0,
            "top1_accuracy": 1.0,
            "top2_recall": 1.0,
            "top4_recall": 1.0
          }
        }
      },
      "router_parameters": 5,
      "router_path": "artifacts/canonical-upper_4_layers.router",
      "router_roundtrip_max_difference": 0.0,
      "source_tokens_in_recent_kv": 0,
      "value_translator": {
        "loss_first_last": [
          4.713489055633545,
          0.00027370601310394704
        ],
        "oracle_selected_metrics": {
          "accuracy": 1.0,
          "cosine": 0.9998512268066406
        }
      }
    }
  },
  "selected_variant": "final_layer"
}