diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..70b24da8791139ee5c5989bdd021083d5346384c --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "first_familiar-01", + "role": "first", + "stratum": "familiar", + "lr": 0.0001, + "arm": "edit", + "path": "first_familiar-01/lr0.0001-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.013833045959473 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.879423355916515e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.8993464052287582, + "accuracy": 0.8993464052287582, + "answer_nll": 0.36482447385787964 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.3333333333333333, + "accuracy": 0.3333333333333333, + "answer_nll": 4.5604248046875, + "changed_answer_n": 3, + "old_answer_accuracy": 0.3333333333333333, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.3333333333333333, + "old_retained_parent_correct": 0.3333333333333333, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.3333333333333333 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.69921875, + "accuracy": 0.69921875, + "answer_nll": 1.0425586700439453 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9108527131782945, + "accuracy": 0.9108527131782945, + "answer_nll": 0.40630221366882324 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.7739852070808411, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.003062417032197118 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.969197750091553, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003161981876473874 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00037125108065083623 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9919273461150353, + "accuracy": 0.9919273461150353, + "answer_nll": 0.05378308519721031 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "2c4d33c6ab97f08dbbc72ca8e4799eff97835f2c0cbfbeaab0f029c3b45e657b", + "delta_l2": 0.6560143828392029, + "tensor_file_sha256": "92db4cb7461e09d9df14c0e7859f8d3162d5d8d329b444910c1d5949556115c1" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..1e95a1644267335097cde2cfce2a39cb5092c8a0 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004196478403173387 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.155133247375488 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9725490196078431, + "accuracy": 0.9725490196078431, + "answer_nll": 0.10979115962982178 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.233023643493652, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5290288925170898 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.16984353959560394 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.055007934570312, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.287512173410505e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.811951637268066, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002073571231449023 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035458148340694606 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003796008531935513 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": false, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.490971565246582 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0006443570018745959 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.8823529411764706, + "accuracy": 0.8823529411764706, + "answer_nll": 0.45098984241485596 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.39089822769165, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.6666666666666666, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.634765625, + "accuracy": 0.634765625, + "answer_nll": 1.3475656509399414 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.8992248062015504, + "accuracy": 0.8992248062015504, + "answer_nll": 0.4943135976791382 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.6092281341552734, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 0.996078431372549, + "accuracy": 0.996078431372549, + "answer_nll": 0.015534482896327972 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 3.8304290771484375, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005638496368192136 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0017132987268269062 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9848637739656912, + "accuracy": 0.9848637739656912, + "answer_nll": 0.09269595146179199 + } + }, + "model_sha256": "673ac758288523decc147b0b0e960299880fe5f37c85683d3eb144ec048d30ed", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 0.0006338927778415382, + "target_ce": 0.00023182823497336358, + "replay_kl": 0.0004020645283162594, + "gradient_norm": 0.017316743731498718 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.980595588684082 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002083561266772449 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.8862745098039215, + "accuracy": 0.8862745098039215, + "answer_nll": 0.4134967029094696 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.053872585296631, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.6666666666666666, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.646484375, + "accuracy": 0.646484375, + "answer_nll": 1.2612335681915283 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.8914728682170543, + "accuracy": 0.8914728682170543, + "answer_nll": 0.4699314832687378 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.4441978931427002, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 0.996078431372549, + "accuracy": 0.996078431372549, + "answer_nll": 0.009924625046551228 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 3.7758965492248535, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00040065220673568547 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005166558548808098 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.987891019172553, + "accuracy": 0.987891019172553, + "answer_nll": 0.071536585688591 + } + }, + "model_sha256": "3340ca0988d6338146a2d348f58c9f50e9f4f285664165275c4dae9c7f6995ab", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 0.00014236278366297483, + "target_ce": 7.68826503190212e-05, + "replay_kl": 6.548014061991125e-05, + "gradient_norm": 0.002220151014626026 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.013833045959473 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.879423355916515e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.8993464052287582, + "accuracy": 0.8993464052287582, + "answer_nll": 0.36482447385787964 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.3333333333333333, + "accuracy": 0.3333333333333333, + "answer_nll": 4.5604248046875, + "changed_answer_n": 3, + "old_answer_accuracy": 0.3333333333333333, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.3333333333333333, + "old_retained_parent_correct": 0.3333333333333333, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.3333333333333333 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.69921875, + "accuracy": 0.69921875, + "answer_nll": 1.0425586700439453 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9108527131782945, + "accuracy": 0.9108527131782945, + "answer_nll": 0.40630221366882324 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.7739852070808411, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.003062417032197118 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.969197750091553, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003161981876473874 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00037125108065083623 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9919273461150353, + "accuracy": 0.9919273461150353, + "answer_nll": 0.05378308519721031 + } + }, + "model_sha256": "2c4d33c6ab97f08dbbc72ca8e4799eff97835f2c0cbfbeaab0f029c3b45e657b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 4.424910366651602e-05, + "target_ce": 2.9761540645267814e-05, + "replay_kl": 1.4487563021248206e-05, + "gradient_norm": 0.00042080148705281317 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/run.json new file mode 100644 index 0000000000000000000000000000000000000000..512c431eb4d6c5c288b64683e636486ecdb19c8e --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/lr0.0001-edit/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "first_familiar-01", + "arm": "edit", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "162fdb3b8c0f5427713e932b1c801c0ca9a6d79478804d75ebc33ad4c04a3195", + "new_fact_sha256": "1f2e991f811478137f433ccb6fca6762d911ec29ccbd43407058ff83efd0caa1", + "target_batch_sha256": "4fc2301964fe2e5fdcd911d7bfbf1d9987e09cdd230d5588dc9b16de95acdfc6", + "replay_batch_sha256": "b07f34e14195f94d420d1bfd8fab656b497bb44a1d21da52ee801f6a03f0a195", + "parent_reference_sha256": "acd56d4124f91bfa4ff7d0dad8fc932c71005edc519107c8af2711e6593d2c85", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/parent-metrics.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/parent-metrics.json new file mode 100644 index 0000000000000000000000000000000000000000..bc470ba744136af7060589758cc8d40caaea0d2c --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_familiar-01/parent-metrics.json @@ -0,0 +1,175 @@ +{ + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004196478403173387 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.155133247375488 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9725490196078431, + "accuracy": 0.9725490196078431, + "answer_nll": 0.10979115962982178 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.233023643493652, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5290288925170898 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.16984353959560394 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.055007934570312, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.287512173410505e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.811951637268066, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002073571231449023 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035458148340694606 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003796008531935513 + } +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-edit/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-edit/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..eabc1d1bffa7ee4312e44b1cec10a06a121560bd --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-edit/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "first_strict-00", + "role": "first", + "stratum": "strict", + "lr": 0.0001, + "arm": "edit", + "path": "first_strict-00/lr0.0001-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.561664581298828 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012039413559250534 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9609375, + "accuracy": 0.9609375, + "answer_nll": 0.15438367426395416 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.7440944881889764, + "accuracy": 0.7440944881889764, + "answer_nll": 1.1352710723876953 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.5, + "accuracy": 0.5, + "answer_nll": 0.8287206292152405, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.5, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.5 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9575289575289575, + "accuracy": 0.9575289575289575, + "answer_nll": 0.2085297405719757 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001723664317978546 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0007873704889789224 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005087954923510551 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9848637739656912, + "accuracy": 0.9848637739656912, + "answer_nll": 0.0815475806593895 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "f6b1d9262af5f3039d78c5ae6eb596283dcf7250d1bb8e0b7d7c036523816cdc", + "delta_l2": 0.5669844150543213, + "tensor_file_sha256": "3cd2a6ec097d9d3748ca2e20e369df35746807682d0d0edd0f1dfa9fbd3ee809" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-edit/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-edit/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..3b1a10681518986072832f71fab8f05d5dd3e7ff --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-edit/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 5.279181480407715, + "target_ce": 5.279181480407715, + "replay_kl": 0.0, + "gradient_norm": 38.08383560180664 + }, + { + "step": 2, + "loss": 4.46422004699707, + "target_ce": 4.4642157554626465, + "replay_kl": 4.166524831816787e-06, + "gradient_norm": 42.988731384277344 + }, + { + "step": 3, + "loss": 3.5963499546051025, + "target_ce": 3.5963315963745117, + "replay_kl": 1.832709676818922e-05, + "gradient_norm": 45.536869049072266 + }, + { + "step": 4, + "loss": 2.7296204566955566, + "target_ce": 2.7295687198638916, + "replay_kl": 5.1723131036851555e-05, + "gradient_norm": 45.77884292602539 + }, + { + "step": 5, + "loss": 1.904126524925232, + "target_ce": 1.9039993286132812, + "replay_kl": 0.0001272025256184861, + "gradient_norm": 44.06830596923828 + }, + { + "step": 6, + "loss": 1.1530110836029053, + "target_ce": 1.1527091264724731, + "replay_kl": 0.00030197628075256944, + "gradient_norm": 39.7664794921875 + }, + { + "step": 7, + "loss": 0.5440753698348999, + "target_ce": 0.5433626770973206, + "replay_kl": 0.0007126682321541011, + "gradient_norm": 29.132097244262695 + }, + { + "step": 8, + "loss": 0.1932995617389679, + "target_ce": 0.19163863360881805, + "replay_kl": 0.0016609345329925418, + "gradient_norm": 13.41441822052002 + }, + { + "step": 9, + "loss": 0.06670064479112625, + "target_ce": 0.06302959471940994, + "replay_kl": 0.003671051934361458, + "gradient_norm": 4.542201519012451 + }, + { + "step": 10, + "loss": 0.029781538993120193, + "target_ce": 0.02258223481476307, + "replay_kl": 0.00719930324703455, + "gradient_norm": 1.5201196670532227 + }, + { + "step": 11, + "loss": 0.01977410912513733, + "target_ce": 0.009095211513340473, + "replay_kl": 0.010678897611796856, + "gradient_norm": 0.891699492931366 + }, + { + "step": 12, + "loss": 0.015764400362968445, + "target_ce": 0.0044021811336278915, + "replay_kl": 0.011362219229340553, + "gradient_norm": 0.8310108184814453 + }, + { + "step": 13, + "loss": 0.012276653200387955, + "target_ce": 0.0025295086670666933, + "replay_kl": 0.009747144766151905, + "gradient_norm": 0.6939998865127563 + }, + { + "step": 14, + "loss": 0.009125580079853535, + "target_ce": 0.0016533731250092387, + "replay_kl": 0.007472206838428974, + "gradient_norm": 0.5105651021003723 + }, + { + "step": 15, + "loss": 0.006733933463692665, + "target_ce": 0.0011895160423591733, + "replay_kl": 0.005544417537748814, + "gradient_norm": 0.3597439229488373 + }, + { + "step": 16, + "loss": 0.005075965542346239, + "target_ce": 0.0009202355868183076, + "replay_kl": 0.0041557298973202705, + "gradient_norm": 0.25723034143447876 + }, + { + "step": 17, + "loss": 0.003906521014869213, + "target_ce": 0.0007501498912461102, + "replay_kl": 0.00315637094900012, + "gradient_norm": 0.18732941150665283 + }, + { + "step": 18, + "loss": 0.0030804993584752083, + "target_ce": 0.0006365787121467292, + "replay_kl": 0.002443920588120818, + "gradient_norm": 0.13942398130893707 + }, + { + "step": 19, + "loss": 0.002489356556907296, + "target_ce": 0.0005589127540588379, + "replay_kl": 0.0019304438028484583, + "gradient_norm": 0.10628589242696762 + }, + { + "step": 20, + "loss": 0.0020578724797815084, + "target_ce": 0.0005020596436224878, + "replay_kl": 0.0015558127779513597, + "gradient_norm": 0.08318282663822174 + }, + { + "step": 21, + "loss": 0.0017373632872477174, + "target_ce": 0.00046023711911402643, + "replay_kl": 0.0012771261390298605, + "gradient_norm": 0.06671256572008133 + }, + { + "step": 22, + "loss": 0.0014966329326853156, + "target_ce": 0.0004285293398424983, + "replay_kl": 0.0010681035928428173, + "gradient_norm": 0.05488652363419533 + }, + { + "step": 23, + "loss": 0.001309507410041988, + "target_ce": 0.00040364518645219505, + "replay_kl": 0.0009058622526936233, + "gradient_norm": 0.04604445397853851 + }, + { + "step": 24, + "loss": 0.0011637468123808503, + "target_ce": 0.0003837999829556793, + "replay_kl": 0.0007799468003213406, + "gradient_norm": 0.03938839212059975 + }, + { + "step": 25, + "loss": 0.0010471371933817863, + "target_ce": 0.0003668513090815395, + "replay_kl": 0.0006802859134040773, + "gradient_norm": 0.03427165374159813 + }, + { + "step": 26, + "loss": 0.0009536388097330928, + "target_ce": 0.0003529583045747131, + "replay_kl": 0.0006006804760545492, + "gradient_norm": 0.030273020267486572 + }, + { + "step": 27, + "loss": 0.0008768058614805341, + "target_ce": 0.00034100981429219246, + "replay_kl": 0.0005357960471883416, + "gradient_norm": 0.027106232941150665 + }, + { + "step": 28, + "loss": 0.0008129967609420419, + "target_ce": 0.00033064885064959526, + "replay_kl": 0.00048234788118861616, + "gradient_norm": 0.024551784619688988 + }, + { + "step": 29, + "loss": 0.0007585684070363641, + "target_ce": 0.00032080363598652184, + "replay_kl": 0.0004377647419460118, + "gradient_norm": 0.022444911301136017 + }, + { + "step": 30, + "loss": 0.0007125461706891656, + "target_ce": 0.0003119506291113794, + "replay_kl": 0.0004005955415777862, + "gradient_norm": 0.020718801766633987 + }, + { + "step": 31, + "loss": 0.0006730735767632723, + "target_ce": 0.0003040502197109163, + "replay_kl": 0.00036902338615618646, + "gradient_norm": 0.01927427388727665 + }, + { + "step": 32, + "loss": 0.0006381012499332428, + "target_ce": 0.0002963481529150158, + "replay_kl": 0.000341753097018227, + "gradient_norm": 0.0180259570479393 + }, + { + "step": 33, + "loss": 0.0006075582932680845, + "target_ce": 0.0002887649752665311, + "replay_kl": 0.0003187933471053839, + "gradient_norm": 0.01696493849158287 + }, + { + "step": 34, + "loss": 0.0005801121005788445, + "target_ce": 0.00028149926220066845, + "replay_kl": 0.00029861280927434564, + "gradient_norm": 0.016019029542803764 + }, + { + "step": 35, + "loss": 0.0005556835094466805, + "target_ce": 0.0002747098624240607, + "replay_kl": 0.0002809736761264503, + "gradient_norm": 0.015190565958619118 + }, + { + "step": 36, + "loss": 0.0005335703026503325, + "target_ce": 0.000268198229605332, + "replay_kl": 0.00026537207304500043, + "gradient_norm": 0.014440871775150299 + }, + { + "step": 37, + "loss": 0.0005135437240824103, + "target_ce": 0.00026172620709985495, + "replay_kl": 0.00025181748787872493, + "gradient_norm": 0.01376967690885067 + }, + { + "step": 38, + "loss": 0.0004947150591760874, + "target_ce": 0.00025529376580379903, + "replay_kl": 0.0002394212642684579, + "gradient_norm": 0.013141254894435406 + }, + { + "step": 39, + "loss": 0.0004777636786457151, + "target_ce": 0.00024949651560746133, + "replay_kl": 0.00022826716303825378, + "gradient_norm": 0.01257291343063116 + }, + { + "step": 40, + "loss": 0.00046182580990716815, + "target_ce": 0.0002436594368191436, + "replay_kl": 0.00021816635853610933, + "gradient_norm": 0.012037579901516438 + }, + { + "step": 41, + "loss": 0.0004469225532375276, + "target_ce": 0.0002378222852712497, + "replay_kl": 0.00020910025341436267, + "gradient_norm": 0.01153840683400631 + }, + { + "step": 42, + "loss": 0.0004331737873144448, + "target_ce": 0.00023242180759552866, + "replay_kl": 0.00020075197971891612, + "gradient_norm": 0.011071496643126011 + }, + { + "step": 43, + "loss": 0.0004204492433927953, + "target_ce": 0.0002271006815135479, + "replay_kl": 0.0001933485473273322, + "gradient_norm": 0.010645301081240177 + }, + { + "step": 44, + "loss": 0.00040833605453372, + "target_ce": 0.0002222163020633161, + "replay_kl": 0.00018611973791848868, + "gradient_norm": 0.010227683931589127 + }, + { + "step": 45, + "loss": 0.0003971016267314553, + "target_ce": 0.0002173715620301664, + "replay_kl": 0.0001797300501493737, + "gradient_norm": 0.009846578352153301 + }, + { + "step": 46, + "loss": 0.0003861216246150434, + "target_ce": 0.00021252670558169484, + "replay_kl": 0.00017359491903334856, + "gradient_norm": 0.00947323627769947 + }, + { + "step": 47, + "loss": 0.0003760122926905751, + "target_ce": 0.0002078803809126839, + "replay_kl": 0.000168131897225976, + "gradient_norm": 0.009131460450589657 + }, + { + "step": 48, + "loss": 0.00036637531593441963, + "target_ce": 0.00020351196872070432, + "replay_kl": 0.0001628633326618001, + "gradient_norm": 0.0087996581569314 + }, + { + "step": 49, + "loss": 0.00035744375782087445, + "target_ce": 0.0001995406491914764, + "replay_kl": 0.00015790309407748282, + "gradient_norm": 0.008490484207868576 + }, + { + "step": 50, + "loss": 0.00034914931165985763, + "target_ce": 0.00019564871035981923, + "replay_kl": 0.0001535006013000384, + "gradient_norm": 0.008205798454582691 + }, + { + "step": 51, + "loss": 0.000341122125973925, + "target_ce": 0.00019199500093236566, + "replay_kl": 0.00014912712504155934, + "gradient_norm": 0.007930421270430088 + }, + { + "step": 52, + "loss": 0.000333495088852942, + "target_ce": 0.0001882220385596156, + "replay_kl": 0.00014527305029332638, + "gradient_norm": 0.007670166436582804 + }, + { + "step": 53, + "loss": 0.0003262883983552456, + "target_ce": 0.00018488599744159728, + "replay_kl": 0.00014140241546556354, + "gradient_norm": 0.007420732174068689 + }, + { + "step": 54, + "loss": 0.0003193916636519134, + "target_ce": 0.00018151018593925983, + "replay_kl": 0.00013788146316073835, + "gradient_norm": 0.007187929004430771 + }, + { + "step": 55, + "loss": 0.0003126793308183551, + "target_ce": 0.00017821371147874743, + "replay_kl": 0.00013446561933960766, + "gradient_norm": 0.006961081642657518 + }, + { + "step": 56, + "loss": 0.0003065748023800552, + "target_ce": 0.0001752350217429921, + "replay_kl": 0.00013133978063706309, + "gradient_norm": 0.006754920817911625 + }, + { + "step": 57, + "loss": 0.00030069745844230056, + "target_ce": 0.00017233566904906183, + "replay_kl": 0.00012836180394515395, + "gradient_norm": 0.006554710678756237 + }, + { + "step": 58, + "loss": 0.00029492442263290286, + "target_ce": 0.00016947602853178978, + "replay_kl": 0.00012544837954919785, + "gradient_norm": 0.006363443564623594 + }, + { + "step": 59, + "loss": 0.0002896530204452574, + "target_ce": 0.0001668944169068709, + "replay_kl": 0.00012275861809030175, + "gradient_norm": 0.006184770725667477 + }, + { + "step": 60, + "loss": 0.0002845166309271008, + "target_ce": 0.00016431277617812157, + "replay_kl": 0.0001202038474730216, + "gradient_norm": 0.00601230189204216 + }, + { + "step": 61, + "loss": 0.00027993839466944337, + "target_ce": 0.00016208858869504184, + "replay_kl": 0.00011784981325035915, + "gradient_norm": 0.005857880227267742 + }, + { + "step": 62, + "loss": 0.0002752529690042138, + "target_ce": 0.00015966573846526444, + "replay_kl": 0.00011558722326299176, + "gradient_norm": 0.005707914009690285 + }, + { + "step": 63, + "loss": 0.00027091114316135645, + "target_ce": 0.00015744150732643902, + "replay_kl": 0.00011346965038683265, + "gradient_norm": 0.005561862140893936 + }, + { + "step": 64, + "loss": 0.0002666759246494621, + "target_ce": 0.0001553761394461617, + "replay_kl": 0.00011129978520330042, + "gradient_norm": 0.005421905312687159 + }, + { + "step": 65, + "loss": 0.00026254961267113686, + "target_ce": 0.00015323130355682224, + "replay_kl": 0.00010931831639027223, + "gradient_norm": 0.005289347842335701 + }, + { + "step": 66, + "loss": 0.0002588547649793327, + "target_ce": 0.00015144395001698285, + "replay_kl": 0.0001074108004104346, + "gradient_norm": 0.005167304538190365 + }, + { + "step": 67, + "loss": 0.00025496515445411205, + "target_ce": 0.00014941826520953327, + "replay_kl": 0.00010554689652053639, + "gradient_norm": 0.005041623953729868 + }, + { + "step": 68, + "loss": 0.00025146236293949187, + "target_ce": 0.00014763088256586343, + "replay_kl": 0.00010383148037362844, + "gradient_norm": 0.004931394476443529 + }, + { + "step": 69, + "loss": 0.00024805584689602256, + "target_ce": 0.00014592292427551, + "replay_kl": 0.00010213292262051255, + "gradient_norm": 0.004823224153369665 + }, + { + "step": 70, + "loss": 0.0002449353924021125, + "target_ce": 0.0001443738437956199, + "replay_kl": 0.00010056156315840781, + "gradient_norm": 0.004722421523183584 + }, + { + "step": 71, + "loss": 0.00024177849991247058, + "target_ce": 0.00014270561223383993, + "replay_kl": 9.907289495458826e-05, + "gradient_norm": 0.004624492954462767 + }, + { + "step": 72, + "loss": 0.00023870635777711868, + "target_ce": 0.00014111677592154592, + "replay_kl": 9.758958913153037e-05, + "gradient_norm": 0.004528558813035488 + }, + { + "step": 73, + "loss": 0.0002357339981244877, + "target_ce": 0.00013952793960925192, + "replay_kl": 9.620605851523578e-05, + "gradient_norm": 0.004438292700797319 + }, + { + "step": 74, + "loss": 0.000233129394473508, + "target_ce": 0.00013821716129314154, + "replay_kl": 9.491223318036646e-05, + "gradient_norm": 0.004355500917881727 + }, + { + "step": 75, + "loss": 0.00023029636940918863, + "target_ce": 0.00013670774933416396, + "replay_kl": 9.358862735098228e-05, + "gradient_norm": 0.004271095152944326 + }, + { + "step": 76, + "loss": 0.000227753771468997, + "target_ce": 0.00013539694191422313, + "replay_kl": 9.235683683073148e-05, + "gradient_norm": 0.00419353973120451 + }, + { + "step": 77, + "loss": 0.00022520306811202317, + "target_ce": 0.00013408614904619753, + "replay_kl": 9.111691906582564e-05, + "gradient_norm": 0.004115561489015818 + }, + { + "step": 78, + "loss": 0.00022287848696578294, + "target_ce": 0.0001328945072600618, + "replay_kl": 8.998397970572114e-05, + "gradient_norm": 0.004044344648718834 + }, + { + "step": 79, + "loss": 0.00022040156181901693, + "target_ce": 0.00013154397311154753, + "replay_kl": 8.88575887074694e-05, + "gradient_norm": 0.003974275663495064 + }, + { + "step": 80, + "loss": 0.00021817869856022298, + "target_ce": 0.00013039204350207, + "replay_kl": 8.778665505815297e-05, + "gradient_norm": 0.003907014615833759 + }, + { + "step": 81, + "loss": 0.00021598450257442892, + "target_ce": 0.0001292798260692507, + "replay_kl": 8.67046692292206e-05, + "gradient_norm": 0.0038410010747611523 + }, + { + "step": 82, + "loss": 0.00021369775640778244, + "target_ce": 0.00012800870172213763, + "replay_kl": 8.56890546856448e-05, + "gradient_norm": 0.0037768192123621702 + }, + { + "step": 83, + "loss": 0.00021157399169169366, + "target_ce": 0.0001268964697374031, + "replay_kl": 8.467752923024818e-05, + "gradient_norm": 0.0037173221353441477 + }, + { + "step": 84, + "loss": 0.00020969597971998155, + "target_ce": 0.00012594314466696233, + "replay_kl": 8.375284232897684e-05, + "gradient_norm": 0.003662952221930027 + }, + { + "step": 85, + "loss": 0.00020769161346834153, + "target_ce": 0.00012491036613937467, + "replay_kl": 8.278124732896686e-05, + "gradient_norm": 0.003605999518185854 + }, + { + "step": 86, + "loss": 0.00020575830421876162, + "target_ce": 0.00012387758761178702, + "replay_kl": 8.18807166069746e-05, + "gradient_norm": 0.0035510824527591467 + }, + { + "step": 87, + "loss": 0.00020379156921990216, + "target_ce": 0.00012280505325179547, + "replay_kl": 8.09865232440643e-05, + "gradient_norm": 0.0034961740020662546 + }, + { + "step": 88, + "loss": 0.00020211521768942475, + "target_ce": 0.00012197088653920218, + "replay_kl": 8.014432387426496e-05, + "gradient_norm": 0.003447991795837879 + }, + { + "step": 89, + "loss": 0.00020035724446643144, + "target_ce": 0.0001210572590935044, + "replay_kl": 7.929998537292704e-05, + "gradient_norm": 0.00339934672228992 + }, + { + "step": 90, + "loss": 0.00019853127014357597, + "target_ce": 0.00012002446601400152, + "replay_kl": 7.850680412957445e-05, + "gradient_norm": 0.0033509721979498863 + }, + { + "step": 91, + "loss": 0.00019707827595993876, + "target_ce": 0.00011930945765925571, + "replay_kl": 7.776882557664067e-05, + "gradient_norm": 0.00330859562382102 + }, + { + "step": 92, + "loss": 0.0001953738392330706, + "target_ce": 0.00011839580838568509, + "replay_kl": 7.697802357142791e-05, + "gradient_norm": 0.003263839753344655 + }, + { + "step": 93, + "loss": 0.00019369341316632926, + "target_ce": 0.00011748215911211446, + "replay_kl": 7.621126133017242e-05, + "gradient_norm": 0.0032180873677134514 + }, + { + "step": 94, + "loss": 0.0001920671493280679, + "target_ce": 0.0001166082511190325, + "replay_kl": 7.54588982090354e-05, + "gradient_norm": 0.003176305675879121 + }, + { + "step": 95, + "loss": 0.00019064535445068032, + "target_ce": 0.00011589322821237147, + "replay_kl": 7.475212623830885e-05, + "gradient_norm": 0.003137129358947277 + }, + { + "step": 96, + "loss": 0.000189090525964275, + "target_ce": 0.00011505903239594772, + "replay_kl": 7.403150084428489e-05, + "gradient_norm": 0.0030967991333454847 + }, + { + "step": 97, + "loss": 0.0001877000177046284, + "target_ce": 0.00011430427548475564, + "replay_kl": 7.339574221987277e-05, + "gradient_norm": 0.003059920622035861 + }, + { + "step": 98, + "loss": 0.00018619457841850817, + "target_ce": 0.00011347006511641666, + "replay_kl": 7.27245060261339e-05, + "gradient_norm": 0.0030206348747015 + }, + { + "step": 99, + "loss": 0.00018492384697310627, + "target_ce": 0.00011283448111498728, + "replay_kl": 7.20893731340766e-05, + "gradient_norm": 0.002986428327858448 + }, + { + "step": 100, + "loss": 0.0001835363800637424, + "target_ce": 0.0001120797242037952, + "replay_kl": 7.14566558599472e-05, + "gradient_norm": 0.0029516287613660097 + }, + { + "step": 101, + "loss": 0.00018218395416624844, + "target_ce": 0.0001113249672926031, + "replay_kl": 7.085897959768772e-05, + "gradient_norm": 0.0029166890308260918 + }, + { + "step": 102, + "loss": 0.0001808428787626326, + "target_ce": 0.00011060992983402684, + "replay_kl": 7.023295620456338e-05, + "gradient_norm": 0.002882931847125292 + }, + { + "step": 103, + "loss": 0.0001795221760403365, + "target_ce": 0.0001098948996514082, + "replay_kl": 6.96272763889283e-05, + "gradient_norm": 0.0028497434686869383 + }, + { + "step": 104, + "loss": 0.00017827331612352282, + "target_ce": 0.00010925932292593643, + "replay_kl": 6.901399319758639e-05, + "gradient_norm": 0.002817384898662567 + }, + { + "step": 105, + "loss": 0.0001770888629835099, + "target_ce": 0.00010862373164854944, + "replay_kl": 6.846512405900285e-05, + "gradient_norm": 0.002786938799545169 + }, + { + "step": 106, + "loss": 0.00017585506429895759, + "target_ce": 0.000107948413642589, + "replay_kl": 6.790665065636858e-05, + "gradient_norm": 0.0027549995575100183 + }, + { + "step": 107, + "loss": 0.00017471722094342113, + "target_ce": 0.00010735255636973307, + "replay_kl": 6.736465729773045e-05, + "gradient_norm": 0.0027266175020486116 + }, + { + "step": 108, + "loss": 0.00017358528566546738, + "target_ce": 0.00010675666999304667, + "replay_kl": 6.68286083964631e-05, + "gradient_norm": 0.0026992028579115868 + }, + { + "step": 109, + "loss": 0.000172408705111593, + "target_ce": 0.00010612108599161729, + "replay_kl": 6.62876118440181e-05, + "gradient_norm": 0.0026699877344071865 + }, + { + "step": 110, + "loss": 0.0001712523226160556, + "target_ce": 0.00010548547288635746, + "replay_kl": 6.576685700565577e-05, + "gradient_norm": 0.002641733270138502 + }, + { + "step": 111, + "loss": 0.00017014221521094441, + "target_ce": 0.00010488960106158629, + "replay_kl": 6.525260687340051e-05, + "gradient_norm": 0.0026162071153521538 + }, + { + "step": 112, + "loss": 0.00016905184020288289, + "target_ce": 0.00010433345596538857, + "replay_kl": 6.471838423749432e-05, + "gradient_norm": 0.002588448114693165 + }, + { + "step": 113, + "loss": 0.00016799377044662833, + "target_ce": 0.00010377731086919084, + "replay_kl": 6.42164668533951e-05, + "gradient_norm": 0.002562169451266527 + }, + { + "step": 114, + "loss": 0.00016687973402440548, + "target_ce": 0.00010314170503988862, + "replay_kl": 6.373802170855924e-05, + "gradient_norm": 0.002536538289859891 + }, + { + "step": 115, + "loss": 0.0001658748515183106, + "target_ce": 0.00010262525756843388, + "replay_kl": 6.324959394987673e-05, + "gradient_norm": 0.0025134440511465073 + }, + { + "step": 116, + "loss": 0.00016476231394335628, + "target_ce": 0.00010198963718721643, + "replay_kl": 6.277266948018223e-05, + "gradient_norm": 0.002487329998984933 + }, + { + "step": 117, + "loss": 0.00016366149066016078, + "target_ce": 0.00010135403863387182, + "replay_kl": 6.230744475033134e-05, + "gradient_norm": 0.0024625808000564575 + }, + { + "step": 118, + "loss": 0.00016275451343972236, + "target_ce": 0.00010091706644743681, + "replay_kl": 6.183744699228555e-05, + "gradient_norm": 0.0024398015812039375 + }, + { + "step": 119, + "loss": 0.0001618625537957996, + "target_ce": 0.0001004800942610018, + "replay_kl": 6.138246681075543e-05, + "gradient_norm": 0.0024169073440134525 + }, + { + "step": 120, + "loss": 0.00016090116696432233, + "target_ce": 9.996366134146228e-05, + "replay_kl": 6.093750926083885e-05, + "gradient_norm": 0.0023952284827828407 + }, + { + "step": 121, + "loss": 0.0001597787340870127, + "target_ce": 9.932803368428722e-05, + "replay_kl": 6.0450704040704295e-05, + "gradient_norm": 0.002370550064370036 + }, + { + "step": 122, + "loss": 0.00015891580551397055, + "target_ce": 9.889105422189459e-05, + "replay_kl": 6.002475129207596e-05, + "gradient_norm": 0.0023493384942412376 + }, + { + "step": 123, + "loss": 0.00015800348774064332, + "target_ce": 9.837462130235508e-05, + "replay_kl": 5.962887007626705e-05, + "gradient_norm": 0.0023285564966499805 + }, + { + "step": 124, + "loss": 0.00015700436779297888, + "target_ce": 9.781846893019974e-05, + "replay_kl": 5.9185891586821526e-05, + "gradient_norm": 0.0023067870642989874 + }, + { + "step": 125, + "loss": 0.00015612304559908807, + "target_ce": 9.734175546327606e-05, + "replay_kl": 5.878129377379082e-05, + "gradient_norm": 0.0022856835275888443 + }, + { + "step": 126, + "loss": 0.0001553781476104632, + "target_ce": 9.702395618660375e-05, + "replay_kl": 5.835419142385945e-05, + "gradient_norm": 0.0022678396198898554 + }, + { + "step": 127, + "loss": 0.00015453911328222603, + "target_ce": 9.658697672421113e-05, + "replay_kl": 5.7952140195993707e-05, + "gradient_norm": 0.002248142147436738 + }, + { + "step": 128, + "loss": 0.0001536504423711449, + "target_ce": 9.607054380467162e-05, + "replay_kl": 5.757989129051566e-05, + "gradient_norm": 0.002227459568530321 + }, + { + "step": 129, + "loss": 0.00015285231347661465, + "target_ce": 9.571301052346826e-05, + "replay_kl": 5.71393029531464e-05, + "gradient_norm": 0.0022091297432780266 + }, + { + "step": 130, + "loss": 0.0001520054938737303, + "target_ce": 9.523629705654457e-05, + "replay_kl": 5.6769189541228116e-05, + "gradient_norm": 0.002190356608480215 + }, + { + "step": 131, + "loss": 0.00015112226537894458, + "target_ce": 9.47595908655785e-05, + "replay_kl": 5.636267451336607e-05, + "gradient_norm": 0.002170081250369549 + }, + { + "step": 132, + "loss": 0.00015028413326945156, + "target_ce": 9.42828701226972e-05, + "replay_kl": 5.6001263146754354e-05, + "gradient_norm": 0.0021521495655179024 + }, + { + "step": 133, + "loss": 0.0001493002928327769, + "target_ce": 9.368696919409558e-05, + "replay_kl": 5.561331636272371e-05, + "gradient_norm": 0.0021320851519703865 + }, + { + "step": 134, + "loss": 0.00014861412637401372, + "target_ce": 9.336916264146566e-05, + "replay_kl": 5.524496009456925e-05, + "gradient_norm": 0.002115769311785698 + }, + { + "step": 135, + "loss": 0.00014790488057769835, + "target_ce": 9.301162208430469e-05, + "replay_kl": 5.4893251217436045e-05, + "gradient_norm": 0.002099268836900592 + }, + { + "step": 136, + "loss": 0.00014706345973536372, + "target_ce": 9.253490134142339e-05, + "replay_kl": 5.4528551117982715e-05, + "gradient_norm": 0.0020818188786506653 + }, + { + "step": 137, + "loss": 0.00014629501674789935, + "target_ce": 9.213764133164659e-05, + "replay_kl": 5.415737905423157e-05, + "gradient_norm": 0.00206553703173995 + }, + { + "step": 138, + "loss": 0.00014559051487594843, + "target_ce": 9.178010077448562e-05, + "replay_kl": 5.3810421377420425e-05, + "gradient_norm": 0.0020489818416535854 + }, + { + "step": 139, + "loss": 0.00014479437959380448, + "target_ce": 9.134312131209299e-05, + "replay_kl": 5.345125828171149e-05, + "gradient_norm": 0.0020317428279668093 + }, + { + "step": 140, + "loss": 0.0001440411142539233, + "target_ce": 9.094583947444335e-05, + "replay_kl": 5.3095267503522336e-05, + "gradient_norm": 0.0020149191841483116 + }, + { + "step": 141, + "loss": 0.00014335737796500325, + "target_ce": 9.05883134691976e-05, + "replay_kl": 5.276905721984804e-05, + "gradient_norm": 0.0020000028889626265 + }, + { + "step": 142, + "loss": 0.0001426172093488276, + "target_ce": 9.019104618346319e-05, + "replay_kl": 5.24261558894068e-05, + "gradient_norm": 0.0019838178995996714 + }, + { + "step": 143, + "loss": 0.0001419775653630495, + "target_ce": 8.99129590834491e-05, + "replay_kl": 5.206460991757922e-05, + "gradient_norm": 0.0019696694798767567 + }, + { + "step": 144, + "loss": 0.00014122010907158256, + "target_ce": 8.947597234509885e-05, + "replay_kl": 5.174412945052609e-05, + "gradient_norm": 0.0019539494533091784 + }, + { + "step": 145, + "loss": 0.0001405178481945768, + "target_ce": 8.911843178793788e-05, + "replay_kl": 5.139941640663892e-05, + "gradient_norm": 0.00193883350584656 + }, + { + "step": 146, + "loss": 0.00013985400437377393, + "target_ce": 8.87608912307769e-05, + "replay_kl": 5.109310586703941e-05, + "gradient_norm": 0.001924235955812037 + }, + { + "step": 147, + "loss": 0.00013928971020504832, + "target_ce": 8.852253085933626e-05, + "replay_kl": 5.076717206975445e-05, + "gradient_norm": 0.0019114520400762558 + }, + { + "step": 148, + "loss": 0.00013856220175512135, + "target_ce": 8.80855368450284e-05, + "replay_kl": 5.0476672186050564e-05, + "gradient_norm": 0.0018964303890243173 + }, + { + "step": 149, + "loss": 0.00013790797675028443, + "target_ce": 8.776771574048325e-05, + "replay_kl": 5.014026100980118e-05, + "gradient_norm": 0.001883211312815547 + }, + { + "step": 150, + "loss": 0.00013714993838220835, + "target_ce": 8.73307217261754e-05, + "replay_kl": 4.981922029401176e-05, + "gradient_norm": 0.0018681524088606238 + }, + { + "step": 151, + "loss": 0.0001364208583254367, + "target_ce": 8.68937058839947e-05, + "replay_kl": 4.9527148803463206e-05, + "gradient_norm": 0.0018540737219154835 + }, + { + "step": 152, + "loss": 0.0001358602021355182, + "target_ce": 8.661561878398061e-05, + "replay_kl": 4.92445906274952e-05, + "gradient_norm": 0.0018416369566693902 + }, + { + "step": 153, + "loss": 0.00013507308904081583, + "target_ce": 8.613889804109931e-05, + "replay_kl": 4.893419099971652e-05, + "gradient_norm": 0.0018269086722284555 + }, + { + "step": 154, + "loss": 0.00013458728790283203, + "target_ce": 8.594025712227449e-05, + "replay_kl": 4.864703078055754e-05, + "gradient_norm": 0.001815618947148323 + }, + { + "step": 155, + "loss": 0.0001339377777185291, + "target_ce": 8.558270201319829e-05, + "replay_kl": 4.835508298128843e-05, + "gradient_norm": 0.0018028008053079247 + }, + { + "step": 156, + "loss": 0.00013336862321011722, + "target_ce": 8.53046149131842e-05, + "replay_kl": 4.806400102097541e-05, + "gradient_norm": 0.0017903076950460672 + }, + { + "step": 157, + "loss": 0.0001326279598288238, + "target_ce": 8.486762089887634e-05, + "replay_kl": 4.776034620590508e-05, + "gradient_norm": 0.0017759626498445868 + }, + { + "step": 158, + "loss": 0.00013208317977841944, + "target_ce": 8.458952652290463e-05, + "replay_kl": 4.7493649617535993e-05, + "gradient_norm": 0.0017652104143053293 + }, + { + "step": 159, + "loss": 0.00013151053281035274, + "target_ce": 8.431143942289054e-05, + "replay_kl": 4.719908974948339e-05, + "gradient_norm": 0.0017521302215754986 + }, + { + "step": 160, + "loss": 0.00013092061271890998, + "target_ce": 8.399362559430301e-05, + "replay_kl": 4.692697984864935e-05, + "gradient_norm": 0.001740076346322894 + }, + { + "step": 161, + "loss": 0.00013044531806372106, + "target_ce": 8.37949919514358e-05, + "replay_kl": 4.665031883632764e-05, + "gradient_norm": 0.0017293165437877178 + }, + { + "step": 162, + "loss": 0.00012971000978723168, + "target_ce": 8.331826393259689e-05, + "replay_kl": 4.63917494926136e-05, + "gradient_norm": 0.0017160163260996342 + }, + { + "step": 163, + "loss": 0.00012924332986585796, + "target_ce": 8.311963028972968e-05, + "replay_kl": 4.6123699576128274e-05, + "gradient_norm": 0.0017060603713616729 + }, + { + "step": 164, + "loss": 0.00012867373879998922, + "target_ce": 8.284152863780037e-05, + "replay_kl": 4.5832202886231244e-05, + "gradient_norm": 0.0016940500354394317 + }, + { + "step": 165, + "loss": 0.00012813854846172035, + "target_ce": 8.256344153778628e-05, + "replay_kl": 4.5575114199891686e-05, + "gradient_norm": 0.0016833414556458592 + }, + { + "step": 166, + "loss": 0.00012755460920743644, + "target_ce": 8.224562043324113e-05, + "replay_kl": 4.5308985136216506e-05, + "gradient_norm": 0.0016721534775570035 + }, + { + "step": 167, + "loss": 0.00012701409286819398, + "target_ce": 8.196752605726942e-05, + "replay_kl": 4.504657044890337e-05, + "gradient_norm": 0.001661167130805552 + }, + { + "step": 168, + "loss": 0.00012647687981370836, + "target_ce": 8.168943895725533e-05, + "replay_kl": 4.478744449443184e-05, + "gradient_norm": 0.0016500905621796846 + }, + { + "step": 169, + "loss": 0.0001259081909665838, + "target_ce": 8.137161785271019e-05, + "replay_kl": 4.4536569475894794e-05, + "gradient_norm": 0.001639234833419323 + }, + { + "step": 170, + "loss": 0.00012537924339994788, + "target_ce": 8.109352347673848e-05, + "replay_kl": 4.4285712647251785e-05, + "gradient_norm": 0.0016284591984003782 + }, + { + "step": 171, + "loss": 0.00012486238847486675, + "target_ce": 8.081541454885155e-05, + "replay_kl": 4.404698120197281e-05, + "gradient_norm": 0.0016193499322980642 + }, + { + "step": 172, + "loss": 0.0001243399892700836, + "target_ce": 8.053732017287984e-05, + "replay_kl": 4.380267273518257e-05, + "gradient_norm": 0.0016087664989754558 + }, + { + "step": 173, + "loss": 0.00012378521205391735, + "target_ce": 8.021950634429231e-05, + "replay_kl": 4.356570934760384e-05, + "gradient_norm": 0.0015986795770004392 + }, + { + "step": 174, + "loss": 0.00012329695164225996, + "target_ce": 7.998113869689405e-05, + "replay_kl": 4.33158093073871e-05, + "gradient_norm": 0.0015878488775342703 + }, + { + "step": 175, + "loss": 0.0001227116590598598, + "target_ce": 7.962357631186023e-05, + "replay_kl": 4.308808274799958e-05, + "gradient_norm": 0.0015780054964125156 + }, + { + "step": 176, + "loss": 0.00012230852735228837, + "target_ce": 7.942494266899303e-05, + "replay_kl": 4.288358468329534e-05, + "gradient_norm": 0.0015686952974647284 + }, + { + "step": 177, + "loss": 0.00012172512651886791, + "target_ce": 7.910711428849027e-05, + "replay_kl": 4.2618012230377644e-05, + "gradient_norm": 0.001558705815114081 + }, + { + "step": 178, + "loss": 0.00012125980720156804, + "target_ce": 7.8868746641092e-05, + "replay_kl": 4.2391060560476035e-05, + "gradient_norm": 0.001549075823277235 + }, + { + "step": 179, + "loss": 0.00012070484081050381, + "target_ce": 7.855092553654686e-05, + "replay_kl": 4.2153915273956954e-05, + "gradient_norm": 0.0015389162581413984 + }, + { + "step": 180, + "loss": 0.00012026665353914723, + "target_ce": 7.835228461772203e-05, + "replay_kl": 4.1914368921425194e-05, + "gradient_norm": 0.0015301418025046587 + }, + { + "step": 181, + "loss": 0.00011979183182120323, + "target_ce": 7.811391697032377e-05, + "replay_kl": 4.167791848885827e-05, + "gradient_norm": 0.001520589110441506 + }, + { + "step": 182, + "loss": 0.00011937176168430597, + "target_ce": 7.791528332745656e-05, + "replay_kl": 4.14564783568494e-05, + "gradient_norm": 0.0015123698394745588 + }, + { + "step": 183, + "loss": 0.00011886708671227098, + "target_ce": 7.763718167552724e-05, + "replay_kl": 4.122990867472254e-05, + "gradient_norm": 0.0015026017790660262 + }, + { + "step": 184, + "loss": 0.0001183830390800722, + "target_ce": 7.739880675217137e-05, + "replay_kl": 4.098423232790083e-05, + "gradient_norm": 0.0014935721410438418 + }, + { + "step": 185, + "loss": 0.00011789010022766888, + "target_ce": 7.712071237619966e-05, + "replay_kl": 4.076938421349041e-05, + "gradient_norm": 0.0014847967540845275 + }, + { + "step": 186, + "loss": 0.00011752052523661405, + "target_ce": 7.696179818594828e-05, + "replay_kl": 4.0558727050665766e-05, + "gradient_norm": 0.001476848847232759 + }, + { + "step": 187, + "loss": 0.00011701692710630596, + "target_ce": 7.668370380997658e-05, + "replay_kl": 4.033321965835057e-05, + "gradient_norm": 0.001467769150622189 + }, + { + "step": 188, + "loss": 0.00011658410949166864, + "target_ce": 7.644533616257831e-05, + "replay_kl": 4.0138776967069134e-05, + "gradient_norm": 0.0014595952816307545 + }, + { + "step": 189, + "loss": 0.0001161280379164964, + "target_ce": 7.620696851518005e-05, + "replay_kl": 3.992106576333754e-05, + "gradient_norm": 0.0014508945168927312 + }, + { + "step": 190, + "loss": 0.00011571420327527449, + "target_ce": 7.600832759635523e-05, + "replay_kl": 3.9705875678919256e-05, + "gradient_norm": 0.001442757435142994 + }, + { + "step": 191, + "loss": 0.00011534114310052246, + "target_ce": 7.584942068206146e-05, + "replay_kl": 3.9491722418460995e-05, + "gradient_norm": 0.00143535400275141 + }, + { + "step": 192, + "loss": 0.00011481533874757588, + "target_ce": 7.55315923015587e-05, + "replay_kl": 3.9283746446017176e-05, + "gradient_norm": 0.0014262854820117354 + }, + { + "step": 193, + "loss": 0.00011445455311331898, + "target_ce": 7.537267083534971e-05, + "replay_kl": 3.908188227796927e-05, + "gradient_norm": 0.001419326290488243 + }, + { + "step": 194, + "loss": 0.00011401222582207993, + "target_ce": 7.513430318795145e-05, + "replay_kl": 3.887792263412848e-05, + "gradient_norm": 0.001410248107276857 + }, + { + "step": 195, + "loss": 0.00011358522169757634, + "target_ce": 7.489592826459557e-05, + "replay_kl": 3.8689293432980776e-05, + "gradient_norm": 0.0014033467741683125 + }, + { + "step": 196, + "loss": 0.00011315164738334715, + "target_ce": 7.46575606171973e-05, + "replay_kl": 3.849408676614985e-05, + "gradient_norm": 0.0013955156318843365 + }, + { + "step": 197, + "loss": 0.00011265234934398904, + "target_ce": 7.437945896526799e-05, + "replay_kl": 3.827289037872106e-05, + "gradient_norm": 0.0013865364016965032 + }, + { + "step": 198, + "loss": 0.00011221690510865301, + "target_ce": 7.414108404191211e-05, + "replay_kl": 3.80758210667409e-05, + "gradient_norm": 0.0013792094541713595 + }, + { + "step": 199, + "loss": 0.00011178157001268119, + "target_ce": 7.390270911855623e-05, + "replay_kl": 3.787886453210376e-05, + "gradient_norm": 0.0013717131223529577 + }, + { + "step": 200, + "loss": 0.00011136435205116868, + "target_ce": 7.366434147115797e-05, + "replay_kl": 3.770001058001071e-05, + "gradient_norm": 0.0013648571912199259 + }, + { + "step": 201, + "loss": 0.00011092135537182912, + "target_ce": 7.34259738237597e-05, + "replay_kl": 3.749538154806942e-05, + "gradient_norm": 0.001356311491690576 + }, + { + "step": 202, + "loss": 0.0001105758929043077, + "target_ce": 7.326705235755071e-05, + "replay_kl": 3.730884054675698e-05, + "gradient_norm": 0.0013496013125404716 + }, + { + "step": 203, + "loss": 0.00011011395690729842, + "target_ce": 7.298894342966378e-05, + "replay_kl": 3.712501347763464e-05, + "gradient_norm": 0.0013418367598205805 + }, + { + "step": 204, + "loss": 0.00010980241495417431, + "target_ce": 7.286975596798584e-05, + "replay_kl": 3.693265898618847e-05, + "gradient_norm": 0.0013350279768928885 + }, + { + "step": 205, + "loss": 0.00010941537038888782, + "target_ce": 7.267112232511863e-05, + "replay_kl": 3.674424806376919e-05, + "gradient_norm": 0.0013280314160510898 + }, + { + "step": 206, + "loss": 0.00010899010521825403, + "target_ce": 7.243274740176275e-05, + "replay_kl": 3.655735417851247e-05, + "gradient_norm": 0.0013202843256294727 + }, + { + "step": 207, + "loss": 0.00010867352830246091, + "target_ce": 7.227382593555376e-05, + "replay_kl": 3.639970236690715e-05, + "gradient_norm": 0.0013146641431376338 + }, + { + "step": 208, + "loss": 0.00010815865243785083, + "target_ce": 7.1955997555051e-05, + "replay_kl": 3.6202654882799834e-05, + "gradient_norm": 0.001305919955484569 + }, + { + "step": 209, + "loss": 0.00010773842222988605, + "target_ce": 7.171762263169512e-05, + "replay_kl": 3.6020799598190933e-05, + "gradient_norm": 0.0012985144276171923 + }, + { + "step": 210, + "loss": 0.00010746672342065722, + "target_ce": 7.163816917454824e-05, + "replay_kl": 3.582855060813017e-05, + "gradient_norm": 0.0012923246249556541 + }, + { + "step": 211, + "loss": 0.00010714012023527175, + "target_ce": 7.147925498429686e-05, + "replay_kl": 3.5660865250974894e-05, + "gradient_norm": 0.001285754144191742 + }, + { + "step": 212, + "loss": 0.00010668590402929112, + "target_ce": 7.120116060832515e-05, + "replay_kl": 3.548474342096597e-05, + "gradient_norm": 0.0012785911094397306 + }, + { + "step": 213, + "loss": 0.00010637677769409493, + "target_ce": 7.10819658706896e-05, + "replay_kl": 3.5294811823405325e-05, + "gradient_norm": 0.0012723023537546396 + }, + { + "step": 214, + "loss": 0.00010603861301206052, + "target_ce": 7.092305895639583e-05, + "replay_kl": 3.511555405566469e-05, + "gradient_norm": 0.0012656329199671745 + }, + { + "step": 215, + "loss": 0.00010567279969109222, + "target_ce": 7.07244107616134e-05, + "replay_kl": 3.4948388929478824e-05, + "gradient_norm": 0.0012592897983267903 + }, + { + "step": 216, + "loss": 0.00010527356062084436, + "target_ce": 7.048603583825752e-05, + "replay_kl": 3.478752842056565e-05, + "gradient_norm": 0.0012525619240477681 + }, + { + "step": 217, + "loss": 0.00010495014430489391, + "target_ce": 7.032712892396376e-05, + "replay_kl": 3.462301901890896e-05, + "gradient_norm": 0.0012465434847399592 + }, + { + "step": 218, + "loss": 0.00010457633470650762, + "target_ce": 7.012848072918132e-05, + "replay_kl": 3.4447853977326304e-05, + "gradient_norm": 0.001240381272509694 + }, + { + "step": 219, + "loss": 0.00010425587242934853, + "target_ce": 6.996956653892994e-05, + "replay_kl": 3.428630589041859e-05, + "gradient_norm": 0.0012339814566075802 + }, + { + "step": 220, + "loss": 0.00010398206359241158, + "target_ce": 6.9850379077252e-05, + "replay_kl": 3.413168451515958e-05, + "gradient_norm": 0.0012284693075343966 + }, + { + "step": 221, + "loss": 0.00010357489372836426, + "target_ce": 6.961200415389612e-05, + "replay_kl": 3.3962889574468136e-05, + "gradient_norm": 0.001221484038978815 + }, + { + "step": 222, + "loss": 0.00010312960512237623, + "target_ce": 6.933388795005158e-05, + "replay_kl": 3.379571717232466e-05, + "gradient_norm": 0.0012147962115705013 + }, + { + "step": 223, + "loss": 0.00010289046622347087, + "target_ce": 6.925443449290469e-05, + "replay_kl": 3.363603536854498e-05, + "gradient_norm": 0.001209597452543676 + }, + { + "step": 224, + "loss": 0.00010256640234729275, + "target_ce": 6.909552030265331e-05, + "replay_kl": 3.347088204463944e-05, + "gradient_norm": 0.0012032986851409078 + }, + { + "step": 225, + "loss": 0.00010215954534942284, + "target_ce": 6.885715265525505e-05, + "replay_kl": 3.330239269416779e-05, + "gradient_norm": 0.0011970008490607142 + }, + { + "step": 226, + "loss": 0.00010188603482674807, + "target_ce": 6.87379579176195e-05, + "replay_kl": 3.3148080547107384e-05, + "gradient_norm": 0.0011914193164557219 + }, + { + "step": 227, + "loss": 0.00010152345203096047, + "target_ce": 6.853931699879467e-05, + "replay_kl": 3.2984135032165796e-05, + "gradient_norm": 0.0011853439500555396 + }, + { + "step": 228, + "loss": 0.00010121887316927314, + "target_ce": 6.83804028085433e-05, + "replay_kl": 3.2838466722751036e-05, + "gradient_norm": 0.0011795981554314494 + }, + { + "step": 229, + "loss": 0.00010090655996464193, + "target_ce": 6.82214813423343e-05, + "replay_kl": 3.268507862230763e-05, + "gradient_norm": 0.001174122211523354 + }, + { + "step": 230, + "loss": 0.000100551507784985, + "target_ce": 6.802284042350948e-05, + "replay_kl": 3.252866736147553e-05, + "gradient_norm": 0.0011676341528072953 + }, + { + "step": 231, + "loss": 0.0001002802891889587, + "target_ce": 6.790365296183154e-05, + "replay_kl": 3.237663986510597e-05, + "gradient_norm": 0.0011629619402810931 + }, + { + "step": 232, + "loss": 0.00010000499605666846, + "target_ce": 6.778447277611122e-05, + "replay_kl": 3.2220523280557245e-05, + "gradient_norm": 0.0011569675989449024 + }, + { + "step": 233, + "loss": 9.965292701963335e-05, + "target_ce": 6.758582458132878e-05, + "replay_kl": 3.206710243830457e-05, + "gradient_norm": 0.001151175471022725 + }, + { + "step": 234, + "loss": 9.937985305441543e-05, + "target_ce": 6.746663711965084e-05, + "replay_kl": 3.1913215934764594e-05, + "gradient_norm": 0.0011462296824902296 + }, + { + "step": 235, + "loss": 9.909368236549199e-05, + "target_ce": 6.730772292939946e-05, + "replay_kl": 3.178596307407133e-05, + "gradient_norm": 0.0011404964607208967 + }, + { + "step": 236, + "loss": 9.87108433037065e-05, + "target_ce": 6.706934073008597e-05, + "replay_kl": 3.164150257362053e-05, + "gradient_norm": 0.0011349184205755591 + }, + { + "step": 237, + "loss": 9.840039274422452e-05, + "target_ce": 6.69104338157922e-05, + "replay_kl": 3.1489958928432316e-05, + "gradient_norm": 0.0011293832212686539 + }, + { + "step": 238, + "loss": 9.806944581214339e-05, + "target_ce": 6.671177834505215e-05, + "replay_kl": 3.135766746709123e-05, + "gradient_norm": 0.0011243416229262948 + }, + { + "step": 239, + "loss": 9.770482574822381e-05, + "target_ce": 6.651313015026972e-05, + "replay_kl": 3.1191695597954094e-05, + "gradient_norm": 0.0011185300536453724 + }, + { + "step": 240, + "loss": 9.74513022811152e-05, + "target_ce": 6.639393541263416e-05, + "replay_kl": 3.105736686848104e-05, + "gradient_norm": 0.0011136130196973681 + }, + { + "step": 241, + "loss": 9.720836533233523e-05, + "target_ce": 6.627475522691384e-05, + "replay_kl": 3.09336137434002e-05, + "gradient_norm": 0.0011086300946772099 + }, + { + "step": 242, + "loss": 9.680222137831151e-05, + "target_ce": 6.603636575164273e-05, + "replay_kl": 3.076585926464759e-05, + "gradient_norm": 0.001102460897527635 + }, + { + "step": 243, + "loss": 9.651099389884621e-05, + "target_ce": 6.587745156139135e-05, + "replay_kl": 3.063354597543366e-05, + "gradient_norm": 0.0010973854223266244 + }, + { + "step": 244, + "loss": 9.617044997867197e-05, + "target_ce": 6.567881064256653e-05, + "replay_kl": 3.0491639336105436e-05, + "gradient_norm": 0.0010917247273027897 + }, + { + "step": 245, + "loss": 9.591803245712072e-05, + "target_ce": 6.555961590493098e-05, + "replay_kl": 3.0358420190168545e-05, + "gradient_norm": 0.0010872057173401117 + }, + { + "step": 246, + "loss": 9.56120784394443e-05, + "target_ce": 6.540069443872198e-05, + "replay_kl": 3.0211387638701126e-05, + "gradient_norm": 0.0010824166238307953 + }, + { + "step": 247, + "loss": 9.530465467832983e-05, + "target_ce": 6.524177297251299e-05, + "replay_kl": 3.0062885343795642e-05, + "gradient_norm": 0.0010772233363240957 + }, + { + "step": 248, + "loss": 9.502055763732642e-05, + "target_ce": 6.508285878226161e-05, + "replay_kl": 2.9937702493043616e-05, + "gradient_norm": 0.0010721007129177451 + }, + { + "step": 249, + "loss": 9.482707537245005e-05, + "target_ce": 6.500339804915711e-05, + "replay_kl": 2.9823680961271748e-05, + "gradient_norm": 0.001067844801582396 + }, + { + "step": 250, + "loss": 9.45432111620903e-05, + "target_ce": 6.484448385890573e-05, + "replay_kl": 2.9698730941163376e-05, + "gradient_norm": 0.0010628540767356753 + }, + { + "step": 251, + "loss": 9.42016631597653e-05, + "target_ce": 6.464582838816568e-05, + "replay_kl": 2.9555832952610217e-05, + "gradient_norm": 0.001057816087268293 + }, + { + "step": 252, + "loss": 9.39232631935738e-05, + "target_ce": 6.448690692195669e-05, + "replay_kl": 2.9436356271617115e-05, + "gradient_norm": 0.001052826875820756 + }, + { + "step": 253, + "loss": 9.36465003178455e-05, + "target_ce": 6.43279854557477e-05, + "replay_kl": 2.93185148620978e-05, + "gradient_norm": 0.001048233825713396 + }, + { + "step": 254, + "loss": 9.336434595752507e-05, + "target_ce": 6.420880527002737e-05, + "replay_kl": 2.9155544325476512e-05, + "gradient_norm": 0.0010428775567561388 + }, + { + "step": 255, + "loss": 9.316868818132207e-05, + "target_ce": 6.412933726096526e-05, + "replay_kl": 2.903935092035681e-05, + "gradient_norm": 0.001038939575664699 + }, + { + "step": 256, + "loss": 9.287338616559282e-05, + "target_ce": 6.397042307071388e-05, + "replay_kl": 2.8902961275889538e-05, + "gradient_norm": 0.0010342482710257173 + }, + { + "step": 257, + "loss": 9.258781210519373e-05, + "target_ce": 6.38115088804625e-05, + "replay_kl": 2.8776306862710044e-05, + "gradient_norm": 0.0010293362429365516 + }, + { + "step": 258, + "loss": 9.228494309354573e-05, + "target_ce": 6.361286068568006e-05, + "replay_kl": 2.867208604584448e-05, + "gradient_norm": 0.001024239114485681 + }, + { + "step": 259, + "loss": 9.19980084290728e-05, + "target_ce": 6.345393921947107e-05, + "replay_kl": 2.8544065571622923e-05, + "gradient_norm": 0.0010196795919910073 + }, + { + "step": 260, + "loss": 9.182377107208595e-05, + "target_ce": 6.341421249089763e-05, + "replay_kl": 2.840955858118832e-05, + "gradient_norm": 0.0010157651267945766 + }, + { + "step": 261, + "loss": 9.154636063612998e-05, + "target_ce": 6.325529102468863e-05, + "replay_kl": 2.829107324942015e-05, + "gradient_norm": 0.0010110035073012114 + }, + { + "step": 262, + "loss": 9.135186701314524e-05, + "target_ce": 6.317583756754175e-05, + "replay_kl": 2.817602944560349e-05, + "gradient_norm": 0.0010070705320686102 + }, + { + "step": 263, + "loss": 9.100319584831595e-05, + "target_ce": 6.293744809227064e-05, + "replay_kl": 2.806575139402412e-05, + "gradient_norm": 0.001002209959551692 + }, + { + "step": 264, + "loss": 9.079878509510309e-05, + "target_ce": 6.285799463512376e-05, + "replay_kl": 2.7940794097958133e-05, + "gradient_norm": 0.0009980041068047285 + }, + { + "step": 265, + "loss": 9.051997767528519e-05, + "target_ce": 6.269907316891477e-05, + "replay_kl": 2.782090268738102e-05, + "gradient_norm": 0.0009933649562299252 + }, + { + "step": 266, + "loss": 9.024569590110332e-05, + "target_ce": 6.254015170270577e-05, + "replay_kl": 2.7705544198397547e-05, + "gradient_norm": 0.0009884210303425789 + }, + { + "step": 267, + "loss": 9.008400957100093e-05, + "target_ce": 6.250042497413233e-05, + "replay_kl": 2.7583584596868604e-05, + "gradient_norm": 0.0009851448703557253 + }, + { + "step": 268, + "loss": 8.975543460110202e-05, + "target_ce": 6.230176950339228e-05, + "replay_kl": 2.745366327872034e-05, + "gradient_norm": 0.0009802313288673759 + }, + { + "step": 269, + "loss": 8.953113865572959e-05, + "target_ce": 6.218258204171434e-05, + "replay_kl": 2.734856025199406e-05, + "gradient_norm": 0.0009759353124536574 + }, + { + "step": 270, + "loss": 8.924605208449066e-05, + "target_ce": 6.202366057550535e-05, + "replay_kl": 2.7222387871006504e-05, + "gradient_norm": 0.0009717043139971793 + }, + { + "step": 271, + "loss": 8.905732829589397e-05, + "target_ce": 6.194420711835846e-05, + "replay_kl": 2.71131193585461e-05, + "gradient_norm": 0.0009679555660113692 + }, + { + "step": 272, + "loss": 8.878635708242655e-05, + "target_ce": 6.178528565214947e-05, + "replay_kl": 2.7001069611287676e-05, + "gradient_norm": 0.000963585393037647 + }, + { + "step": 273, + "loss": 8.860252273734659e-05, + "target_ce": 6.170582491904497e-05, + "replay_kl": 2.6896695999312215e-05, + "gradient_norm": 0.0009599624900147319 + }, + { + "step": 274, + "loss": 8.832052844809368e-05, + "target_ce": 6.154691072879359e-05, + "replay_kl": 2.677361771930009e-05, + "gradient_norm": 0.0009553534328006208 + }, + { + "step": 275, + "loss": 8.809891005512327e-05, + "target_ce": 6.142771599115804e-05, + "replay_kl": 2.667119406396523e-05, + "gradient_norm": 0.0009514249977655709 + }, + { + "step": 276, + "loss": 8.788132981862873e-05, + "target_ce": 6.13085285294801e-05, + "replay_kl": 2.6572799470159225e-05, + "gradient_norm": 0.000947172346059233 + }, + { + "step": 277, + "loss": 8.768404950387776e-05, + "target_ce": 6.12290677963756e-05, + "replay_kl": 2.6454981707502156e-05, + "gradient_norm": 0.0009434777894057333 + }, + { + "step": 278, + "loss": 8.746665116632357e-05, + "target_ce": 6.110988033469766e-05, + "replay_kl": 2.635677083162591e-05, + "gradient_norm": 0.0009400132694281638 + }, + { + "step": 279, + "loss": 8.719705510884523e-05, + "target_ce": 6.0950962506467476e-05, + "replay_kl": 2.624609442136716e-05, + "gradient_norm": 0.0009357314556837082 + }, + { + "step": 280, + "loss": 8.70991061674431e-05, + "target_ce": 6.0950962506467476e-05, + "replay_kl": 2.614814366097562e-05, + "gradient_norm": 0.0009331433684565127 + }, + { + "step": 281, + "loss": 8.674748823978007e-05, + "target_ce": 6.0712580307153985e-05, + "replay_kl": 2.6034907932626083e-05, + "gradient_norm": 0.0009284577681683004 + }, + { + "step": 282, + "loss": 8.656729914946482e-05, + "target_ce": 6.063311593607068e-05, + "replay_kl": 2.5934183213394135e-05, + "gradient_norm": 0.0009247625130228698 + }, + { + "step": 283, + "loss": 8.634253754280508e-05, + "target_ce": 6.051392119843513e-05, + "replay_kl": 2.5828616344369948e-05, + "gradient_norm": 0.0009211261640302837 + }, + { + "step": 284, + "loss": 8.608846110291779e-05, + "target_ce": 6.035500337020494e-05, + "replay_kl": 2.573345773271285e-05, + "gradient_norm": 0.0009168236283585429 + }, + { + "step": 285, + "loss": 8.578348933951929e-05, + "target_ce": 6.015634789946489e-05, + "replay_kl": 2.5627141440054402e-05, + "gradient_norm": 0.0009126110817305744 + }, + { + "step": 286, + "loss": 8.56051774462685e-05, + "target_ce": 6.007688716636039e-05, + "replay_kl": 2.5528290279908106e-05, + "gradient_norm": 0.0009093792759813368 + }, + { + "step": 287, + "loss": 8.537777466699481e-05, + "target_ce": 5.9957699704682454e-05, + "replay_kl": 2.542007132433355e-05, + "gradient_norm": 0.0009057121933437884 + }, + { + "step": 288, + "loss": 8.516386878909543e-05, + "target_ce": 5.983850860502571e-05, + "replay_kl": 2.532535836508032e-05, + "gradient_norm": 0.0009019657736644149 + }, + { + "step": 289, + "loss": 8.49083298817277e-05, + "target_ce": 5.967958350083791e-05, + "replay_kl": 2.5228748199879192e-05, + "gradient_norm": 0.000898368249181658 + }, + { + "step": 290, + "loss": 8.473236812278628e-05, + "target_ce": 5.960012276773341e-05, + "replay_kl": 2.513224899303168e-05, + "gradient_norm": 0.0008949335315264761 + }, + { + "step": 291, + "loss": 8.440489909844473e-05, + "target_ce": 5.9361733292462304e-05, + "replay_kl": 2.504316762497183e-05, + "gradient_norm": 0.0008902467670850456 + }, + { + "step": 292, + "loss": 8.421599341090769e-05, + "target_ce": 5.928227255935781e-05, + "replay_kl": 2.4933722670539282e-05, + "gradient_norm": 0.0008870325400494039 + }, + { + "step": 293, + "loss": 8.395317126996815e-05, + "target_ce": 5.912335109314881e-05, + "replay_kl": 2.482982017681934e-05, + "gradient_norm": 0.0008830302394926548 + }, + { + "step": 294, + "loss": 8.372952288482338e-05, + "target_ce": 5.900415999349207e-05, + "replay_kl": 2.4725359253352508e-05, + "gradient_norm": 0.0008792678127065301 + }, + { + "step": 295, + "loss": 8.356702164746821e-05, + "target_ce": 5.892470289836638e-05, + "replay_kl": 2.464232238708064e-05, + "gradient_norm": 0.0008759410120546818 + }, + { + "step": 296, + "loss": 8.342642104253173e-05, + "target_ce": 5.888496889383532e-05, + "replay_kl": 2.4541455786675215e-05, + "gradient_norm": 0.0008729113033041358 + }, + { + "step": 297, + "loss": 8.313896250911057e-05, + "target_ce": 5.8686320699052885e-05, + "replay_kl": 2.4452645448036492e-05, + "gradient_norm": 0.0008686675573699176 + }, + { + "step": 298, + "loss": 8.29693308332935e-05, + "target_ce": 5.860685996594839e-05, + "replay_kl": 2.4362474505323917e-05, + "gradient_norm": 0.000865178182721138 + }, + { + "step": 299, + "loss": 8.27199692139402e-05, + "target_ce": 5.84479421377182e-05, + "replay_kl": 2.42720252572326e-05, + "gradient_norm": 0.0008617111016064882 + }, + { + "step": 300, + "loss": 8.25923852971755e-05, + "target_ce": 5.840821177116595e-05, + "replay_kl": 2.4184173526009545e-05, + "gradient_norm": 0.0008587363990955055 + }, + { + "step": 301, + "loss": 8.239183807745576e-05, + "target_ce": 5.8289020671509206e-05, + "replay_kl": 2.4102813767967746e-05, + "gradient_norm": 0.0008552685612812638 + }, + { + "step": 302, + "loss": 8.221364987548441e-05, + "target_ce": 5.82095563004259e-05, + "replay_kl": 2.4004097213037312e-05, + "gradient_norm": 0.0008520710398443043 + }, + { + "step": 303, + "loss": 8.203665493056178e-05, + "target_ce": 5.813009920530021e-05, + "replay_kl": 2.390655572526157e-05, + "gradient_norm": 0.0008489080937579274 + }, + { + "step": 304, + "loss": 8.182820602087304e-05, + "target_ce": 5.8010908105643466e-05, + "replay_kl": 2.3817299734218977e-05, + "gradient_norm": 0.0008454775088466704 + }, + { + "step": 305, + "loss": 8.154071838362142e-05, + "target_ce": 5.781225991086103e-05, + "replay_kl": 2.3728460291749798e-05, + "gradient_norm": 0.0008416272467002273 + }, + { + "step": 306, + "loss": 8.143065497279167e-05, + "target_ce": 5.777252954430878e-05, + "replay_kl": 2.3658121790504083e-05, + "gradient_norm": 0.0008390880539081991 + }, + { + "step": 307, + "loss": 8.117119432426989e-05, + "target_ce": 5.761360807809979e-05, + "replay_kl": 2.3557582608191296e-05, + "gradient_norm": 0.0008351140422746539 + }, + { + "step": 308, + "loss": 8.105091546894982e-05, + "target_ce": 5.757387771154754e-05, + "replay_kl": 2.3477037757402286e-05, + "gradient_norm": 0.000832285382784903 + }, + { + "step": 309, + "loss": 8.088016329566017e-05, + "target_ce": 5.749441697844304e-05, + "replay_kl": 2.338574813620653e-05, + "gradient_norm": 0.0008287353557534516 + }, + { + "step": 310, + "loss": 8.068274473771453e-05, + "target_ce": 5.737522224080749e-05, + "replay_kl": 2.3307526134885848e-05, + "gradient_norm": 0.0008260449394583702 + }, + { + "step": 311, + "loss": 8.039295062189922e-05, + "target_ce": 5.7176570408046246e-05, + "replay_kl": 2.3216378394863568e-05, + "gradient_norm": 0.000822126108687371 + }, + { + "step": 312, + "loss": 8.026834257179871e-05, + "target_ce": 5.7136840041494e-05, + "replay_kl": 2.3131502530304715e-05, + "gradient_norm": 0.0008193959947675467 + }, + { + "step": 313, + "loss": 8.014524792088196e-05, + "target_ce": 5.7097113312920555e-05, + "replay_kl": 2.3048136426950805e-05, + "gradient_norm": 0.0008166708284988999 + }, + { + "step": 314, + "loss": 7.993671169970185e-05, + "target_ce": 5.6977918575285e-05, + "replay_kl": 2.2958789486438036e-05, + "gradient_norm": 0.0008135736570693552 + }, + { + "step": 315, + "loss": 7.970565638970584e-05, + "target_ce": 5.6818989833118394e-05, + "replay_kl": 2.2886662918608636e-05, + "gradient_norm": 0.0008099265396595001 + }, + { + "step": 316, + "loss": 7.95572268543765e-05, + "target_ce": 5.6739532737992704e-05, + "replay_kl": 2.281769411638379e-05, + "gradient_norm": 0.0008070088224485517 + }, + { + "step": 317, + "loss": 7.93383369455114e-05, + "target_ce": 5.662034163833596e-05, + "replay_kl": 2.2717997126164846e-05, + "gradient_norm": 0.0008036135695874691 + }, + { + "step": 318, + "loss": 7.919405470602214e-05, + "target_ce": 5.654088090523146e-05, + "replay_kl": 2.265317743876949e-05, + "gradient_norm": 0.0008006753050722182 + }, + { + "step": 319, + "loss": 7.905661186669022e-05, + "target_ce": 5.650115417665802e-05, + "replay_kl": 2.2555461328011006e-05, + "gradient_norm": 0.0007977206842042506 + }, + { + "step": 320, + "loss": 7.874782750150189e-05, + "target_ce": 5.626276833936572e-05, + "replay_kl": 2.2485059162136167e-05, + "gradient_norm": 0.0007938072085380554 + }, + { + "step": 321, + "loss": 7.857606397010386e-05, + "target_ce": 5.618330033030361e-05, + "replay_kl": 2.239276363980025e-05, + "gradient_norm": 0.0007910511922091246 + }, + { + "step": 322, + "loss": 7.84232106525451e-05, + "target_ce": 5.610384323517792e-05, + "replay_kl": 2.2319371055345982e-05, + "gradient_norm": 0.000788210891187191 + }, + { + "step": 323, + "loss": 7.818768790457398e-05, + "target_ce": 5.5944921768968925e-05, + "replay_kl": 2.2242766135605052e-05, + "gradient_norm": 0.0007849429966881871 + }, + { + "step": 324, + "loss": 7.803500193404034e-05, + "target_ce": 5.586545739788562e-05, + "replay_kl": 2.2169542717165314e-05, + "gradient_norm": 0.0007820657338015735 + }, + { + "step": 325, + "loss": 7.786773494444788e-05, + "target_ce": 5.578600030275993e-05, + "replay_kl": 2.208173827966675e-05, + "gradient_norm": 0.000779361289460212 + }, + { + "step": 326, + "loss": 7.768136856611818e-05, + "target_ce": 5.5666809203103185e-05, + "replay_kl": 2.2014563000993803e-05, + "gradient_norm": 0.0007764516049064696 + }, + { + "step": 327, + "loss": 7.755620026728138e-05, + "target_ce": 5.5627078836550936e-05, + "replay_kl": 2.1929121430730447e-05, + "gradient_norm": 0.0007733490201644599 + }, + { + "step": 328, + "loss": 7.745224866084754e-05, + "target_ce": 5.558734483201988e-05, + "replay_kl": 2.1864903828827664e-05, + "gradient_norm": 0.0007707812474109232 + }, + { + "step": 329, + "loss": 7.728245691396296e-05, + "target_ce": 5.550788773689419e-05, + "replay_kl": 2.177456917706877e-05, + "gradient_norm": 0.0007680135895498097 + }, + { + "step": 330, + "loss": 7.700988498982042e-05, + "target_ce": 5.530923590413295e-05, + "replay_kl": 2.1700645447708666e-05, + "gradient_norm": 0.0007647743914276361 + }, + { + "step": 331, + "loss": 7.689534686505795e-05, + "target_ce": 5.526950189960189e-05, + "replay_kl": 2.1625844965456054e-05, + "gradient_norm": 0.0007625204743817449 + }, + { + "step": 332, + "loss": 7.67474266467616e-05, + "target_ce": 5.51900448044762e-05, + "replay_kl": 2.1557378204306588e-05, + "gradient_norm": 0.0007594365742988884 + }, + { + "step": 333, + "loss": 7.665964949410409e-05, + "target_ce": 5.515031443792395e-05, + "replay_kl": 2.1509336875169538e-05, + "gradient_norm": 0.0007570491288788617 + }, + { + "step": 334, + "loss": 7.643589924555272e-05, + "target_ce": 5.503112333826721e-05, + "replay_kl": 2.1404774088296108e-05, + "gradient_norm": 0.0007537917117588222 + }, + { + "step": 335, + "loss": 7.628167077200487e-05, + "target_ce": 5.4951655329205096e-05, + "replay_kl": 2.1330015442799777e-05, + "gradient_norm": 0.0007512927986681461 + }, + { + "step": 336, + "loss": 7.609656313434243e-05, + "target_ce": 5.483246059156954e-05, + "replay_kl": 2.126410254277289e-05, + "gradient_norm": 0.0007487896946258843 + }, + { + "step": 337, + "loss": 7.594923954457045e-05, + "target_ce": 5.475300349644385e-05, + "replay_kl": 2.1196237867115997e-05, + "gradient_norm": 0.0007461039931513369 + }, + { + "step": 338, + "loss": 7.575587369501591e-05, + "target_ce": 5.4633801482850686e-05, + "replay_kl": 2.112207585014403e-05, + "gradient_norm": 0.0007433337159454823 + }, + { + "step": 339, + "loss": 7.55609362386167e-05, + "target_ce": 5.451460674521513e-05, + "replay_kl": 2.1046325855422765e-05, + "gradient_norm": 0.0007402633782476187 + }, + { + "step": 340, + "loss": 7.537152851000428e-05, + "target_ce": 5.4395419283537194e-05, + "replay_kl": 2.097610558848828e-05, + "gradient_norm": 0.0007375780260190368 + }, + { + "step": 341, + "loss": 7.523002568632364e-05, + "target_ce": 5.431595491245389e-05, + "replay_kl": 2.0914070773869753e-05, + "gradient_norm": 0.0007350785890594125 + }, + { + "step": 342, + "loss": 7.508185808546841e-05, + "target_ce": 5.4236490541370586e-05, + "replay_kl": 2.0845371182076633e-05, + "gradient_norm": 0.0007324099424295127 + }, + { + "step": 343, + "loss": 7.490468124160543e-05, + "target_ce": 5.411730307969265e-05, + "replay_kl": 2.0787378161912784e-05, + "gradient_norm": 0.0007296598050743341 + }, + { + "step": 344, + "loss": 7.47524609323591e-05, + "target_ce": 5.403784234658815e-05, + "replay_kl": 2.071461858577095e-05, + "gradient_norm": 0.0007269657799042761 + }, + { + "step": 345, + "loss": 7.46071818866767e-05, + "target_ce": 5.395838161348365e-05, + "replay_kl": 2.064880209218245e-05, + "gradient_norm": 0.0007244192529469728 + }, + { + "step": 346, + "loss": 7.450237171724439e-05, + "target_ce": 5.39186476089526e-05, + "replay_kl": 2.0583720470312983e-05, + "gradient_norm": 0.0007219960680231452 + }, + { + "step": 347, + "loss": 7.434670988004655e-05, + "target_ce": 5.383919051382691e-05, + "replay_kl": 2.0507515728240833e-05, + "gradient_norm": 0.0007196546066552401 + }, + { + "step": 348, + "loss": 7.416136941174045e-05, + "target_ce": 5.3719995776191354e-05, + "replay_kl": 2.0441371816559695e-05, + "gradient_norm": 0.0007166509749367833 + }, + { + "step": 349, + "loss": 7.403708877973258e-05, + "target_ce": 5.368026904761791e-05, + "replay_kl": 2.0356819732114673e-05, + "gradient_norm": 0.0007142925751395524 + }, + { + "step": 350, + "loss": 7.389912207145244e-05, + "target_ce": 5.360080467653461e-05, + "replay_kl": 2.0298319213907234e-05, + "gradient_norm": 0.0007118061766959727 + }, + { + "step": 351, + "loss": 7.374495908152312e-05, + "target_ce": 5.352134394343011e-05, + "replay_kl": 2.0223611500114202e-05, + "gradient_norm": 0.0007093940512277186 + }, + { + "step": 352, + "loss": 7.356013520620763e-05, + "target_ce": 5.3402152843773365e-05, + "replay_kl": 2.0157986000413075e-05, + "gradient_norm": 0.0007066584075801075 + }, + { + "step": 353, + "loss": 7.346853817580268e-05, + "target_ce": 5.3362422477221116e-05, + "replay_kl": 2.0106117517570965e-05, + "gradient_norm": 0.0007042237557470798 + }, + { + "step": 354, + "loss": 7.332011591643095e-05, + "target_ce": 5.328296174411662e-05, + "replay_kl": 2.0037150534335524e-05, + "gradient_norm": 0.0007019654731266201 + }, + { + "step": 355, + "loss": 7.322192686842754e-05, + "target_ce": 5.324323137756437e-05, + "replay_kl": 1.9978695490863174e-05, + "gradient_norm": 0.0006996350712142885 + }, + { + "step": 356, + "loss": 7.300076686078683e-05, + "target_ce": 5.3084298997418955e-05, + "replay_kl": 1.9916469682357274e-05, + "gradient_norm": 0.0006969375535845757 + }, + { + "step": 357, + "loss": 7.289553468581289e-05, + "target_ce": 5.3044572268845513e-05, + "replay_kl": 1.9850966054946184e-05, + "gradient_norm": 0.0006947984802536666 + }, + { + "step": 358, + "loss": 7.271067443070933e-05, + "target_ce": 5.292537753120996e-05, + "replay_kl": 1.978529689949937e-05, + "gradient_norm": 0.0006923968903720379 + }, + { + "step": 359, + "loss": 7.260650454554707e-05, + "target_ce": 5.288564716465771e-05, + "replay_kl": 1.9720861018868163e-05, + "gradient_norm": 0.000690074753947556 + }, + { + "step": 360, + "loss": 7.243316213134676e-05, + "target_ce": 5.2766456065000966e-05, + "replay_kl": 1.9666706066345796e-05, + "gradient_norm": 0.0006875633844174445 + }, + { + "step": 361, + "loss": 7.233195356093347e-05, + "target_ce": 5.272672569844872e-05, + "replay_kl": 1.960522604349535e-05, + "gradient_norm": 0.00068521813955158 + }, + { + "step": 362, + "loss": 7.222553540486842e-05, + "target_ce": 5.268699533189647e-05, + "replay_kl": 1.9538543710950762e-05, + "gradient_norm": 0.0006830765050835907 + }, + { + "step": 363, + "loss": 7.213252683868632e-05, + "target_ce": 5.264726132736541e-05, + "replay_kl": 1.9485265511320904e-05, + "gradient_norm": 0.000681155186612159 + }, + { + "step": 364, + "loss": 7.194025965873152e-05, + "target_ce": 5.252806658972986e-05, + "replay_kl": 1.941219306900166e-05, + "gradient_norm": 0.0006786095909774303 + }, + { + "step": 365, + "loss": 7.169070886448026e-05, + "target_ce": 5.232941111898981e-05, + "replay_kl": 1.936129410751164e-05, + "gradient_norm": 0.0006759017123840749 + }, + { + "step": 366, + "loss": 7.151084719225764e-05, + "target_ce": 5.221021638135426e-05, + "replay_kl": 1.9300634448882192e-05, + "gradient_norm": 0.0006732486071996391 + }, + { + "step": 367, + "loss": 7.141372043406591e-05, + "target_ce": 5.21704823768232e-05, + "replay_kl": 1.9243238057242706e-05, + "gradient_norm": 0.0006712094764225185 + }, + { + "step": 368, + "loss": 7.132213795557618e-05, + "target_ce": 5.213075201027095e-05, + "replay_kl": 1.919138230732642e-05, + "gradient_norm": 0.0006689692963846028 + }, + { + "step": 369, + "loss": 7.118569919839501e-05, + "target_ce": 5.205129491514526e-05, + "replay_kl": 1.9134402464260347e-05, + "gradient_norm": 0.0006668614805676043 + }, + { + "step": 370, + "loss": 7.108055433491245e-05, + "target_ce": 5.201156091061421e-05, + "replay_kl": 1.9068993424298242e-05, + "gradient_norm": 0.0006644789245910943 + }, + { + "step": 371, + "loss": 7.091071165632457e-05, + "target_ce": 5.1892366172978655e-05, + "replay_kl": 1.9018341845367104e-05, + "gradient_norm": 0.0006621627835556865 + }, + { + "step": 372, + "loss": 7.069217826938257e-05, + "target_ce": 5.173344106879085e-05, + "replay_kl": 1.895873538160231e-05, + "gradient_norm": 0.0006596467574127018 + }, + { + "step": 373, + "loss": 7.055226160446182e-05, + "target_ce": 5.165397669770755e-05, + "replay_kl": 1.889828490675427e-05, + "gradient_norm": 0.0006574633880518377 + }, + { + "step": 374, + "loss": 7.046219252515584e-05, + "target_ce": 5.16142463311553e-05, + "replay_kl": 1.884794983197935e-05, + "gradient_norm": 0.0006552471895702183 + }, + { + "step": 375, + "loss": 7.031684799585491e-05, + "target_ce": 5.153478923602961e-05, + "replay_kl": 1.878206239780411e-05, + "gradient_norm": 0.0006530726095661521 + }, + { + "step": 376, + "loss": 7.023187936283648e-05, + "target_ce": 5.1495055231498554e-05, + "replay_kl": 1.873682049335912e-05, + "gradient_norm": 0.0006509922095574439 + }, + { + "step": 377, + "loss": 7.009823457337916e-05, + "target_ce": 5.141559449839406e-05, + "replay_kl": 1.8682636437006295e-05, + "gradient_norm": 0.0006490693194791675 + }, + { + "step": 378, + "loss": 6.996245065238327e-05, + "target_ce": 5.133613376528956e-05, + "replay_kl": 1.8626316887093708e-05, + "gradient_norm": 0.0006467135390266776 + }, + { + "step": 379, + "loss": 6.982895138207823e-05, + "target_ce": 5.125667303218506e-05, + "replay_kl": 1.8572276530903764e-05, + "gradient_norm": 0.0006443511229008436 + }, + { + "step": 380, + "loss": 6.969179958105087e-05, + "target_ce": 5.117720866110176e-05, + "replay_kl": 1.851459455792792e-05, + "gradient_norm": 0.000642419618088752 + }, + { + "step": 381, + "loss": 6.956147990422323e-05, + "target_ce": 5.1097744290018454e-05, + "replay_kl": 1.8463737433194183e-05, + "gradient_norm": 0.0006403759471140802 + }, + { + "step": 382, + "loss": 6.945832865312696e-05, + "target_ce": 5.105801756144501e-05, + "replay_kl": 1.840031472966075e-05, + "gradient_norm": 0.0006383970030583441 + }, + { + "step": 383, + "loss": 6.937287980690598e-05, + "target_ce": 5.1018287194892764e-05, + "replay_kl": 1.8354590793023817e-05, + "gradient_norm": 0.0006364997243508697 + }, + { + "step": 384, + "loss": 6.927477079443634e-05, + "target_ce": 5.0978556828340515e-05, + "replay_kl": 1.8296215785085224e-05, + "gradient_norm": 0.0006345795700326562 + }, + { + "step": 385, + "loss": 6.91070526954718e-05, + "target_ce": 5.085936209070496e-05, + "replay_kl": 1.824769060476683e-05, + "gradient_norm": 0.000632131181191653 + }, + { + "step": 386, + "loss": 6.897799175931141e-05, + "target_ce": 5.0779901357600465e-05, + "replay_kl": 1.8198092220700346e-05, + "gradient_norm": 0.0006302325637079775 + }, + { + "step": 387, + "loss": 6.888238567626104e-05, + "target_ce": 5.074017099104822e-05, + "replay_kl": 1.8142212866223417e-05, + "gradient_norm": 0.0006283717229962349 + }, + { + "step": 388, + "loss": 6.878282874822617e-05, + "target_ce": 5.070044062449597e-05, + "replay_kl": 1.808238448575139e-05, + "gradient_norm": 0.0006264236872084439 + }, + { + "step": 389, + "loss": 6.861275323899463e-05, + "target_ce": 5.0581245886860415e-05, + "replay_kl": 1.8031507352134213e-05, + "gradient_norm": 0.0006240611546672881 + }, + { + "step": 390, + "loss": 6.851749640190974e-05, + "target_ce": 5.054151188232936e-05, + "replay_kl": 1.797598451958038e-05, + "gradient_norm": 0.0006219971110112965 + }, + { + "step": 391, + "loss": 6.838430999778211e-05, + "target_ce": 5.046205478720367e-05, + "replay_kl": 1.792225884855725e-05, + "gradient_norm": 0.000619953207205981 + }, + { + "step": 392, + "loss": 6.824376032454893e-05, + "target_ce": 5.038258677814156e-05, + "replay_kl": 1.7861171727417968e-05, + "gradient_norm": 0.0006179893971420825 + }, + { + "step": 393, + "loss": 6.81237579556182e-05, + "target_ce": 5.0303122407058254e-05, + "replay_kl": 1.7820631910581142e-05, + "gradient_norm": 0.0006160280900076032 + }, + { + "step": 394, + "loss": 6.795078661525622e-05, + "target_ce": 5.01839276694227e-05, + "replay_kl": 1.776685894583352e-05, + "gradient_norm": 0.0006139339529909194 + }, + { + "step": 395, + "loss": 6.781672709621489e-05, + "target_ce": 5.010447057429701e-05, + "replay_kl": 1.771225652191788e-05, + "gradient_norm": 0.000612031202763319 + }, + { + "step": 396, + "loss": 6.773338100174442e-05, + "target_ce": 5.006474020774476e-05, + "replay_kl": 1.766864261298906e-05, + "gradient_norm": 0.0006105742650106549 + }, + { + "step": 397, + "loss": 6.760177348041907e-05, + "target_ce": 4.998527583666146e-05, + "replay_kl": 1.761649764375761e-05, + "gradient_norm": 0.0006083182524889708 + }, + { + "step": 398, + "loss": 6.74742113915272e-05, + "target_ce": 4.9905811465578154e-05, + "replay_kl": 1.7568399925949052e-05, + "gradient_norm": 0.0006061663734726608 + }, + { + "step": 399, + "loss": 6.742530968040228e-05, + "target_ce": 4.9905811465578154e-05, + "replay_kl": 1.7519501852802932e-05, + "gradient_norm": 0.0006047452334314585 + }, + { + "step": 400, + "loss": 6.725698767695576e-05, + "target_ce": 4.9786624003900215e-05, + "replay_kl": 1.7470365492044948e-05, + "gradient_norm": 0.0006027096533216536 + }, + { + "step": 401, + "loss": 6.716557982144877e-05, + "target_ce": 4.974688999936916e-05, + "replay_kl": 1.7418689822079614e-05, + "gradient_norm": 0.0006007258780300617 + }, + { + "step": 402, + "loss": 6.704249244648963e-05, + "target_ce": 4.966742199030705e-05, + "replay_kl": 1.7375072275171988e-05, + "gradient_norm": 0.0005988741177134216 + }, + { + "step": 403, + "loss": 6.696321361232549e-05, + "target_ce": 4.96276916237548e-05, + "replay_kl": 1.7335518350591883e-05, + "gradient_norm": 0.0005972128128632903 + }, + { + "step": 404, + "loss": 6.685860716970637e-05, + "target_ce": 4.958796125720255e-05, + "replay_kl": 1.7270647731493227e-05, + "gradient_norm": 0.0005953016807325184 + }, + { + "step": 405, + "loss": 6.677667261101305e-05, + "target_ce": 4.9548227252671495e-05, + "replay_kl": 1.722844535834156e-05, + "gradient_norm": 0.0005937400856055319 + }, + { + "step": 406, + "loss": 6.655558536294848e-05, + "target_ce": 4.93893057864625e-05, + "replay_kl": 1.716628139547538e-05, + "gradient_norm": 0.0005911874468438327 + }, + { + "step": 407, + "loss": 6.63943646941334e-05, + "target_ce": 4.927011104882695e-05, + "replay_kl": 1.7124250007327646e-05, + "gradient_norm": 0.0005889877211302519 + }, + { + "step": 408, + "loss": 6.643355300184339e-05, + "target_ce": 4.934957541991025e-05, + "replay_kl": 1.7083979400922544e-05, + "gradient_norm": 0.000588060705922544 + }, + { + "step": 409, + "loss": 6.626035610679537e-05, + "target_ce": 4.92303806822747e-05, + "replay_kl": 1.7029977243510075e-05, + "gradient_norm": 0.0005858875229023397 + }, + { + "step": 410, + "loss": 6.614613812416792e-05, + "target_ce": 4.9150916311191395e-05, + "replay_kl": 1.6995218174997717e-05, + "gradient_norm": 0.0005840483354404569 + }, + { + "step": 411, + "loss": 6.60464575048536e-05, + "target_ce": 4.9111185944639146e-05, + "replay_kl": 1.693527156021446e-05, + "gradient_norm": 0.0005825083353556693 + }, + { + "step": 412, + "loss": 6.592320278286934e-05, + "target_ce": 4.9031728849513456e-05, + "replay_kl": 1.689147757133469e-05, + "gradient_norm": 0.0005799592472612858 + }, + { + "step": 413, + "loss": 6.58744975226e-05, + "target_ce": 4.9031728849513456e-05, + "replay_kl": 1.6842770492075942e-05, + "gradient_norm": 0.0005785864777863026 + }, + { + "step": 414, + "loss": 6.57571799820289e-05, + "target_ce": 4.8952260840451345e-05, + "replay_kl": 1.680491550359875e-05, + "gradient_norm": 0.0005770829156972468 + }, + { + "step": 415, + "loss": 6.562881753779948e-05, + "target_ce": 4.887279646936804e-05, + "replay_kl": 1.675602288742084e-05, + "gradient_norm": 0.0005751610733568668 + }, + { + "step": 416, + "loss": 6.546434451593086e-05, + "target_ce": 4.875360173173249e-05, + "replay_kl": 1.6710742784198374e-05, + "gradient_norm": 0.000573315832298249 + }, + { + "step": 417, + "loss": 6.538312300108373e-05, + "target_ce": 4.871387136518024e-05, + "replay_kl": 1.6669247997924685e-05, + "gradient_norm": 0.0005718147149309516 + }, + { + "step": 418, + "loss": 6.529070378746837e-05, + "target_ce": 4.8674137360649183e-05, + "replay_kl": 1.6616562788840383e-05, + "gradient_norm": 0.0005697556771337986 + }, + { + "step": 419, + "loss": 6.520681199617684e-05, + "target_ce": 4.863441063207574e-05, + "replay_kl": 1.6572405002079904e-05, + "gradient_norm": 0.0005684213247150183 + }, + { + "step": 420, + "loss": 6.511037645395845e-05, + "target_ce": 4.859468026552349e-05, + "replay_kl": 1.651569255045615e-05, + "gradient_norm": 0.0005667587392963469 + }, + { + "step": 421, + "loss": 6.502649193862453e-05, + "target_ce": 4.8554949898971245e-05, + "replay_kl": 1.6471540220663883e-05, + "gradient_norm": 0.0005649733357131481 + }, + { + "step": 422, + "loss": 6.483198376372457e-05, + "target_ce": 4.839601751882583e-05, + "replay_kl": 1.6435966244898736e-05, + "gradient_norm": 0.0005631069070659578 + }, + { + "step": 423, + "loss": 6.478621071437374e-05, + "target_ce": 4.839601751882583e-05, + "replay_kl": 1.639019319554791e-05, + "gradient_norm": 0.0005617496208287776 + }, + { + "step": 424, + "loss": 6.462209421442822e-05, + "target_ce": 4.8276822781190276e-05, + "replay_kl": 1.6345273252227344e-05, + "gradient_norm": 0.0005597014096565545 + }, + { + "step": 425, + "loss": 6.449503416661173e-05, + "target_ce": 4.819735841010697e-05, + "replay_kl": 1.629767575650476e-05, + "gradient_norm": 0.000558083294890821 + }, + { + "step": 426, + "loss": 6.442407902795821e-05, + "target_ce": 4.815763168153353e-05, + "replay_kl": 1.6266447346424684e-05, + "gradient_norm": 0.0005565084284171462 + }, + { + "step": 427, + "loss": 6.426375330192968e-05, + "target_ce": 4.803843330591917e-05, + "replay_kl": 1.6225321814999916e-05, + "gradient_norm": 0.0005547837354242802 + }, + { + "step": 428, + "loss": 6.417459371732548e-05, + "target_ce": 4.799870293936692e-05, + "replay_kl": 1.617589259694796e-05, + "gradient_norm": 0.0005533014773391187 + }, + { + "step": 429, + "loss": 6.410038622561842e-05, + "target_ce": 4.7958968934835866e-05, + "replay_kl": 1.6141420928761363e-05, + "gradient_norm": 0.0005516448291018605 + }, + { + "step": 430, + "loss": 6.401486461982131e-05, + "target_ce": 4.791923856828362e-05, + "replay_kl": 1.60956296895165e-05, + "gradient_norm": 0.000549846445210278 + }, + { + "step": 431, + "loss": 6.394000229192898e-05, + "target_ce": 4.787950820173137e-05, + "replay_kl": 1.606049590918701e-05, + "gradient_norm": 0.0005482988781295717 + }, + { + "step": 432, + "loss": 6.389433838194236e-05, + "target_ce": 4.787950820173137e-05, + "replay_kl": 1.6014831999200396e-05, + "gradient_norm": 0.000547021918464452 + }, + { + "step": 433, + "loss": 6.369713082676753e-05, + "target_ce": 4.772057945956476e-05, + "replay_kl": 1.5976551367202774e-05, + "gradient_norm": 0.0005448314477689564 + }, + { + "step": 434, + "loss": 6.360725819831714e-05, + "target_ce": 4.7680845455033705e-05, + "replay_kl": 1.592641456227284e-05, + "gradient_norm": 0.0005434172926470637 + }, + { + "step": 435, + "loss": 6.34936586720869e-05, + "target_ce": 4.76013810839504e-05, + "replay_kl": 1.5892277588136494e-05, + "gradient_norm": 0.0005417350330390036 + }, + { + "step": 436, + "loss": 6.337196100503206e-05, + "target_ce": 4.7521916712867096e-05, + "replay_kl": 1.585004611115437e-05, + "gradient_norm": 0.0005402477690950036 + }, + { + "step": 437, + "loss": 6.333613418973982e-05, + "target_ce": 4.752192398882471e-05, + "replay_kl": 1.5814212019904517e-05, + "gradient_norm": 0.0005387990386225283 + }, + { + "step": 438, + "loss": 6.32189039606601e-05, + "target_ce": 4.74424559797626e-05, + "replay_kl": 1.5776449799886905e-05, + "gradient_norm": 0.0005371391889639199 + }, + { + "step": 439, + "loss": 6.309103628154844e-05, + "target_ce": 4.7362991608679295e-05, + "replay_kl": 1.572804103489034e-05, + "gradient_norm": 0.0005355037865228951 + }, + { + "step": 440, + "loss": 6.301779649220407e-05, + "target_ce": 4.7323261242127046e-05, + "replay_kl": 1.5694535250077024e-05, + "gradient_norm": 0.0005338359624147415 + }, + { + "step": 441, + "loss": 6.294494960457087e-05, + "target_ce": 4.728352723759599e-05, + "replay_kl": 1.5661426004953682e-05, + "gradient_norm": 0.0005323635414242744 + }, + { + "step": 442, + "loss": 6.285976996878162e-05, + "target_ce": 4.724379687104374e-05, + "replay_kl": 1.5615974916727282e-05, + "gradient_norm": 0.0005308432737365365 + }, + { + "step": 443, + "loss": 6.278272485360503e-05, + "target_ce": 4.720406650449149e-05, + "replay_kl": 1.5578661987092346e-05, + "gradient_norm": 0.0005295627634041011 + }, + { + "step": 444, + "loss": 6.270666926866397e-05, + "target_ce": 4.716433249996044e-05, + "replay_kl": 1.5542336768703535e-05, + "gradient_norm": 0.0005279837059788406 + }, + { + "step": 445, + "loss": 6.2550840084441e-05, + "target_ce": 4.7045137762324885e-05, + "replay_kl": 1.550570232211612e-05, + "gradient_norm": 0.0005264017963781953 + }, + { + "step": 446, + "loss": 6.247160490602255e-05, + "target_ce": 4.7005407395772636e-05, + "replay_kl": 1.5466193872271106e-05, + "gradient_norm": 0.0005247037042863667 + }, + { + "step": 447, + "loss": 6.238551577553153e-05, + "target_ce": 4.696567702922039e-05, + "replay_kl": 1.5419835108332336e-05, + "gradient_norm": 0.0005233148112893105 + }, + { + "step": 448, + "loss": 6.23036758042872e-05, + "target_ce": 4.692594302468933e-05, + "replay_kl": 1.537773641757667e-05, + "gradient_norm": 0.0005216419231146574 + }, + { + "step": 449, + "loss": 6.222807132871822e-05, + "target_ce": 4.688621629611589e-05, + "replay_kl": 1.5341855032602325e-05, + "gradient_norm": 0.0005202821339480579 + }, + { + "step": 450, + "loss": 6.214452150743455e-05, + "target_ce": 4.684648592956364e-05, + "replay_kl": 1.5298039215849712e-05, + "gradient_norm": 0.0005185229820199311 + }, + { + "step": 451, + "loss": 6.207075784914196e-05, + "target_ce": 4.680675556301139e-05, + "replay_kl": 1.5263998648151755e-05, + "gradient_norm": 0.0005174477118998766 + }, + { + "step": 452, + "loss": 6.195592868607491e-05, + "target_ce": 4.672728755394928e-05, + "replay_kl": 1.5228641132125631e-05, + "gradient_norm": 0.0005159532884135842 + }, + { + "step": 453, + "loss": 6.183893128763884e-05, + "target_ce": 4.664782318286598e-05, + "replay_kl": 1.5191106285783462e-05, + "gradient_norm": 0.000514226034283638 + }, + { + "step": 454, + "loss": 6.176458555273712e-05, + "target_ce": 4.660809281631373e-05, + "replay_kl": 1.5156496374402195e-05, + "gradient_norm": 0.0005129914497956634 + }, + { + "step": 455, + "loss": 6.168446270748973e-05, + "target_ce": 4.656835881178267e-05, + "replay_kl": 1.5116100257728249e-05, + "gradient_norm": 0.0005114598898217082 + }, + { + "step": 456, + "loss": 6.157019379315898e-05, + "target_ce": 4.6488898078678176e-05, + "replay_kl": 1.5081293895491399e-05, + "gradient_norm": 0.000509994279127568 + }, + { + "step": 457, + "loss": 6.145754741737619e-05, + "target_ce": 4.640943370759487e-05, + "replay_kl": 1.5048116438265424e-05, + "gradient_norm": 0.0005085373413749039 + }, + { + "step": 458, + "loss": 6.133179704193026e-05, + "target_ce": 4.632996933651157e-05, + "replay_kl": 1.5001830433902796e-05, + "gradient_norm": 0.000507076911162585 + }, + { + "step": 459, + "loss": 6.129585381131619e-05, + "target_ce": 4.632996933651157e-05, + "replay_kl": 1.496588720328873e-05, + "gradient_norm": 0.0005059708491899073 + }, + { + "step": 460, + "loss": 6.122847844380885e-05, + "target_ce": 4.629023896995932e-05, + "replay_kl": 1.493824220233364e-05, + "gradient_norm": 0.0005042877164669335 + }, + { + "step": 461, + "loss": 6.114689313108101e-05, + "target_ce": 4.625050860340707e-05, + "replay_kl": 1.4896386346663348e-05, + "gradient_norm": 0.0005028255400247872 + }, + { + "step": 462, + "loss": 6.0957168898312375e-05, + "target_ce": 4.609157986124046e-05, + "replay_kl": 1.4865588127577212e-05, + "gradient_norm": 0.0005008428706787527 + }, + { + "step": 463, + "loss": 6.094888522056863e-05, + "target_ce": 4.613131386577152e-05, + "replay_kl": 1.4817569535807706e-05, + "gradient_norm": 0.0004999263910576701 + }, + { + "step": 464, + "loss": 6.0908671002835035e-05, + "target_ce": 4.613131386577152e-05, + "replay_kl": 1.4777356227568816e-05, + "gradient_norm": 0.0004988895962014794 + }, + { + "step": 465, + "loss": 6.067332287784666e-05, + "target_ce": 4.593265111907385e-05, + "replay_kl": 1.4740673577762209e-05, + "gradient_norm": 0.0004969343426637352 + }, + { + "step": 466, + "loss": 6.0668273363262415e-05, + "target_ce": 4.59723814856261e-05, + "replay_kl": 1.4695891877636313e-05, + "gradient_norm": 0.0004959163488820195 + }, + { + "step": 467, + "loss": 6.0563099395949394e-05, + "target_ce": 4.589292439050041e-05, + "replay_kl": 1.4670175005448982e-05, + "gradient_norm": 0.000494655454531312 + }, + { + "step": 468, + "loss": 6.045025656931102e-05, + "target_ce": 4.58134563814383e-05, + "replay_kl": 1.4636802006862126e-05, + "gradient_norm": 0.0004929605638608336 + }, + { + "step": 469, + "loss": 6.037249113433063e-05, + "target_ce": 4.5773722376907244e-05, + "replay_kl": 1.459877057641279e-05, + "gradient_norm": 0.0004918294143863022 + }, + { + "step": 470, + "loss": 6.0335682064760476e-05, + "target_ce": 4.5773722376907244e-05, + "replay_kl": 1.4561957868863828e-05, + "gradient_norm": 0.0004905095556750894 + }, + { + "step": 471, + "loss": 6.019371357979253e-05, + "target_ce": 4.565452763927169e-05, + "replay_kl": 1.4539187759510241e-05, + "gradient_norm": 0.0004886240349151194 + }, + { + "step": 472, + "loss": 6.015168037265539e-05, + "target_ce": 4.565452763927169e-05, + "replay_kl": 1.4497151823888998e-05, + "gradient_norm": 0.0004874040896538645 + }, + { + "step": 473, + "loss": 6.0042108088964596e-05, + "target_ce": 4.5575066906167194e-05, + "replay_kl": 1.4467041182797402e-05, + "gradient_norm": 0.0004860763147007674 + }, + { + "step": 474, + "loss": 6.004560782457702e-05, + "target_ce": 4.561479727271944e-05, + "replay_kl": 1.4430810551857576e-05, + "gradient_norm": 0.0004850428958889097 + }, + { + "step": 475, + "loss": 5.988950579194352e-05, + "target_ce": 4.549560253508389e-05, + "replay_kl": 1.439390325685963e-05, + "gradient_norm": 0.0004833296115975827 + }, + { + "step": 476, + "loss": 5.98694387008436e-05, + "target_ce": 4.549560253508389e-05, + "replay_kl": 1.4373837984749116e-05, + "gradient_norm": 0.00048207244253717363 + }, + { + "step": 477, + "loss": 5.979584966553375e-05, + "target_ce": 4.545587216853164e-05, + "replay_kl": 1.4339975678012706e-05, + "gradient_norm": 0.0004809891397599131 + }, + { + "step": 478, + "loss": 5.9671241615433246e-05, + "target_ce": 4.537640779744834e-05, + "replay_kl": 1.4294831998995505e-05, + "gradient_norm": 0.0004795881104655564 + }, + { + "step": 479, + "loss": 5.959891132079065e-05, + "target_ce": 4.533667743089609e-05, + "replay_kl": 1.4262232980399858e-05, + "gradient_norm": 0.00047821964835748076 + }, + { + "step": 480, + "loss": 5.952499486738816e-05, + "target_ce": 4.529694342636503e-05, + "replay_kl": 1.422805326001253e-05, + "gradient_norm": 0.0004770655941683799 + }, + { + "step": 481, + "loss": 5.946579040028155e-05, + "target_ce": 4.5257213059812784e-05, + "replay_kl": 1.4208577340468764e-05, + "gradient_norm": 0.0004757896240334958 + }, + { + "step": 482, + "loss": 5.942187272012234e-05, + "target_ce": 4.5257213059812784e-05, + "replay_kl": 1.4164659660309553e-05, + "gradient_norm": 0.00047464665840379894 + }, + { + "step": 483, + "loss": 5.931927444180474e-05, + "target_ce": 4.517774868872948e-05, + "replay_kl": 1.414152757206466e-05, + "gradient_norm": 0.0004732448433060199 + }, + { + "step": 484, + "loss": 5.928111932007596e-05, + "target_ce": 4.517774868872948e-05, + "replay_kl": 1.4103369721851777e-05, + "gradient_norm": 0.0004721378209069371 + }, + { + "step": 485, + "loss": 5.920599141973071e-05, + "target_ce": 4.513801832217723e-05, + "replay_kl": 1.4067972188058775e-05, + "gradient_norm": 0.0004707887419499457 + }, + { + "step": 486, + "loss": 5.90610179642681e-05, + "target_ce": 4.501882358454168e-05, + "replay_kl": 1.4042193470231723e-05, + "gradient_norm": 0.00046924740308895707 + }, + { + "step": 487, + "loss": 5.8983870985684916e-05, + "target_ce": 4.4979085942031816e-05, + "replay_kl": 1.40047850436531e-05, + "gradient_norm": 0.0004681798745878041 + }, + { + "step": 488, + "loss": 5.891444379813038e-05, + "target_ce": 4.493935557547957e-05, + "replay_kl": 1.397508731315611e-05, + "gradient_norm": 0.00046687922440469265 + }, + { + "step": 489, + "loss": 5.883813719265163e-05, + "target_ce": 4.489962520892732e-05, + "replay_kl": 1.393851107422961e-05, + "gradient_norm": 0.0004656526434700936 + }, + { + "step": 490, + "loss": 5.880603930563666e-05, + "target_ce": 4.489962520892732e-05, + "replay_kl": 1.390641409670934e-05, + "gradient_norm": 0.0004645767330657691 + }, + { + "step": 491, + "loss": 5.865770799573511e-05, + "target_ce": 4.4780430471291766e-05, + "replay_kl": 1.3877276614948642e-05, + "gradient_norm": 0.0004631214833352715 + }, + { + "step": 492, + "loss": 5.8619159972295165e-05, + "target_ce": 4.4780430471291766e-05, + "replay_kl": 1.3838731319992803e-05, + "gradient_norm": 0.0004619771207217127 + }, + { + "step": 493, + "loss": 5.8515084674581885e-05, + "target_ce": 4.470096610020846e-05, + "replay_kl": 1.3814117664878722e-05, + "gradient_norm": 0.00046064244816079736 + }, + { + "step": 494, + "loss": 5.8488640206633136e-05, + "target_ce": 4.470096610020846e-05, + "replay_kl": 1.3787674106424674e-05, + "gradient_norm": 0.00045978810521773994 + }, + { + "step": 495, + "loss": 5.83320579607971e-05, + "target_ce": 4.458177136257291e-05, + "replay_kl": 1.3750285688729491e-05, + "gradient_norm": 0.000458027032436803 + }, + { + "step": 496, + "loss": 5.8310688473284245e-05, + "target_ce": 4.458177136257291e-05, + "replay_kl": 1.3728915291721933e-05, + "gradient_norm": 0.00045706937089562416 + }, + { + "step": 497, + "loss": 5.8275163610232994e-05, + "target_ce": 4.458177136257291e-05, + "replay_kl": 1.3693392247660086e-05, + "gradient_norm": 0.00045602029422298074 + }, + { + "step": 498, + "loss": 5.812627205159515e-05, + "target_ce": 4.4462576624937356e-05, + "replay_kl": 1.3663693607668392e-05, + "gradient_norm": 0.0004546288982965052 + }, + { + "step": 499, + "loss": 5.80984415137209e-05, + "target_ce": 4.4462576624937356e-05, + "replay_kl": 1.3635864888783544e-05, + "gradient_norm": 0.0004535157058853656 + }, + { + "step": 500, + "loss": 5.802753730677068e-05, + "target_ce": 4.442284625838511e-05, + "replay_kl": 1.3604690138890874e-05, + "gradient_norm": 0.00045240879990160465 + }, + { + "step": 501, + "loss": 5.794703611172736e-05, + "target_ce": 4.438311225385405e-05, + "replay_kl": 1.3563922948378604e-05, + "gradient_norm": 0.00045136763947084546 + }, + { + "step": 502, + "loss": 5.787721602246165e-05, + "target_ce": 4.43433818873018e-05, + "replay_kl": 1.353383413515985e-05, + "gradient_norm": 0.0004501425428315997 + }, + { + "step": 503, + "loss": 5.776093530585058e-05, + "target_ce": 4.42639175162185e-05, + "replay_kl": 1.349701688013738e-05, + "gradient_norm": 0.00044869689736515284 + }, + { + "step": 504, + "loss": 5.770143252448179e-05, + "target_ce": 4.422418714966625e-05, + "replay_kl": 1.3477244465320837e-05, + "gradient_norm": 0.0004473458102438599 + }, + { + "step": 505, + "loss": 5.762365981354378e-05, + "target_ce": 4.418444950715639e-05, + "replay_kl": 1.3439210306387395e-05, + "gradient_norm": 0.0004463759541977197 + }, + { + "step": 506, + "loss": 5.7598401326686144e-05, + "target_ce": 4.418444950715639e-05, + "replay_kl": 1.3413950000540353e-05, + "gradient_norm": 0.000445374142145738 + }, + { + "step": 507, + "loss": 5.744026930187829e-05, + "target_ce": 4.406525113154203e-05, + "replay_kl": 1.337501726084156e-05, + "gradient_norm": 0.0004439835902303457 + }, + { + "step": 508, + "loss": 5.733411671826616e-05, + "target_ce": 4.398578676045872e-05, + "replay_kl": 1.334833177679684e-05, + "gradient_norm": 0.0004429050604812801 + }, + { + "step": 509, + "loss": 5.729821714339778e-05, + "target_ce": 4.398578676045872e-05, + "replay_kl": 1.3312432201928459e-05, + "gradient_norm": 0.0004417701275087893 + }, + { + "step": 510, + "loss": 5.722527566831559e-05, + "target_ce": 4.3946056393906474e-05, + "replay_kl": 1.3279219274409115e-05, + "gradient_norm": 0.0004404881619848311 + }, + { + "step": 511, + "loss": 5.717307431041263e-05, + "target_ce": 4.3906326027354226e-05, + "replay_kl": 1.3266747373563703e-05, + "gradient_norm": 0.0004396911826916039 + }, + { + "step": 512, + "loss": 5.714148574043065e-05, + "target_ce": 4.3906326027354226e-05, + "replay_kl": 1.3235161532065831e-05, + "gradient_norm": 0.00043867333442904055 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-sham/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-sham/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..da8ee68b82281ea6f1f8a9957d9f98df55706afc --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-sham/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003830652858596295 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.837523460388184 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8543307086614174, + "accuracy": 0.8543307086614174, + "answer_nll": 0.5324029326438904 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.777316093444824, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001694929669611156 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004942644154652953 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00037512611015699804 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.271502545336261e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.10600471496582 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "answer_nll": 0.12621931731700897 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8503937007874016, + "accuracy": 0.8503937007874016, + "answer_nll": 0.5408493280410767 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.599495887756348, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1820930540561676 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.89856052910909e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019842457550112158 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004920193459838629 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004631766933016479 + } + }, + "model_sha256": "1c23b6f6d4b835bd877a7d977e2dd23381785de6ea90c77e179ea9e6ee4d4ac0", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 2.7845439035445452e-05, + "target_ce": 2.6304624043405056e-05, + "replay_kl": 1.540815674161422e-06, + "gradient_norm": 0.00012835692905355245 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.188061863416806e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.103029251098633 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9674479166666666, + "accuracy": 0.9674479166666666, + "answer_nll": 0.12047547101974487 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8484251968503937, + "accuracy": 0.8484251968503937, + "answer_nll": 0.5727764964103699 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.081541061401367, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9613899613899614, + "accuracy": 0.9613899613899614, + "answer_nll": 0.17751270532608032 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.651916479924694e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001730111544020474 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004942346131429076 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004228723410051316 + } + }, + "model_sha256": "41ec5cc8f831318b04f754ae532c5e03abe1bcf55d08efd774e63720cbe7e61e", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 2.560208668000996e-05, + "target_ce": 2.519203735573683e-05, + "replay_kl": 4.100497790204827e-07, + "gradient_norm": 1.7165590179502033e-05 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.176141662057489e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.09978675842285 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9674479166666666, + "accuracy": 0.9674479166666666, + "answer_nll": 0.12742261588573456 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8346456692913385, + "accuracy": 0.8346456692913385, + "answer_nll": 0.6107179522514343 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.77467155456543, + "changed_answer_n": 4, + "old_answer_accuracy": 0.5, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9575289575289575, + "accuracy": 0.9575289575289575, + "answer_nll": 0.18395918607711792 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010963091335725039 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000162613665452227 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000495291780680418 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004188008315395564 + } + }, + "model_sha256": "a039d89b8927bcf1c3dd78f9ce678c69e257464b0e05083a41490b3357550e03", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 2.516773747629486e-05, + "target_ce": 2.4953618776635267e-05, + "replay_kl": 2.1411858597275568e-07, + "gradient_norm": 5.5486154451500624e-05 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-sham/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-sham/run.json new file mode 100644 index 0000000000000000000000000000000000000000..a2590c91c0902c7e1db7c790998d4b93659bad8c --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-00/lr0.0001-sham/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "first_strict-00", + "arm": "sham", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "857d6559ea5fc1a483f95c4f9d69b5d97879269688d47d3d61b20c73a306ca97", + "new_fact_sha256": "085a8381641b9d702796ffe7177c711722a560e1a4095940c620c865b562732f", + "target_batch_sha256": "8a4b2e7aeb582c22e886f38c0cd2fb52e9f8be959cbe988289be5bc227b49eba", + "replay_batch_sha256": "9ef5a0c826673609f855d1fc313c579656e56686cc497fd6d759a723c0b01008", + "parent_reference_sha256": "7ad301fe6cb6e3556ad878788e8b54c8c090ce4071e669250b50557e3da0ffdf", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-edit/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-edit/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..02e00f3bd663ef664a44d04b7cdbda47feb411a9 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-edit/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "first_strict-01", + "role": "first", + "stratum": "strict", + "lr": 0.0001, + "arm": "edit", + "path": "first_strict-01/lr0.0001-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.642858505249023 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00015233787416946143 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9557291666666666, + "accuracy": 0.9557291666666666, + "answer_nll": 0.16416166722774506 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.7755905511811023, + "accuracy": 0.7755905511811023, + "answer_nll": 0.7623316049575806 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.5, + "accuracy": 0.5, + "answer_nll": 2.3192877769470215, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.5, + "old_retained_parent_correct": 0.25, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.5 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9420849420849421, + "accuracy": 0.9420849420849421, + "answer_nll": 0.2289903163909912 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004124158003833145 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0009841358987614512 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00034877046709880233 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.992936427850656, + "accuracy": 0.992936427850656, + "answer_nll": 0.056856632232666016 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "d82000ecc30a169fb3771b25ce12ea5e1122f43912b3278b4290541207ca0597", + "delta_l2": 0.5683698058128357, + "tensor_file_sha256": "759bf4c2a760ea7892df648e7087697aa8b12d3af2459f1f8e528115d3e405d6" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-edit/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-edit/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..d2cf0aaa2e036496506081be629aa6d9b2f9dbc0 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-edit/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 3.867567300796509, + "target_ce": 3.867567300796509, + "replay_kl": 0.0, + "gradient_norm": 38.36564254760742 + }, + { + "step": 2, + "loss": 3.095655918121338, + "target_ce": 3.095653772354126, + "replay_kl": 2.0322813725215383e-06, + "gradient_norm": 40.143470764160156 + }, + { + "step": 3, + "loss": 2.317526340484619, + "target_ce": 2.3175160884857178, + "replay_kl": 1.0243390534014907e-05, + "gradient_norm": 40.058380126953125 + }, + { + "step": 4, + "loss": 1.5719455480575562, + "target_ce": 1.571913242340088, + "replay_kl": 3.227488195989281e-05, + "gradient_norm": 38.36501693725586 + }, + { + "step": 5, + "loss": 0.8980106115341187, + "target_ce": 0.8979225158691406, + "replay_kl": 8.810715371510014e-05, + "gradient_norm": 34.123165130615234 + }, + { + "step": 6, + "loss": 0.3756757080554962, + "target_ce": 0.37544798851013184, + "replay_kl": 0.0002277176099596545, + "gradient_norm": 23.142581939697266 + }, + { + "step": 7, + "loss": 0.1102452427148819, + "target_ce": 0.10967608541250229, + "replay_kl": 0.0005691541591659188, + "gradient_norm": 8.88485336303711 + }, + { + "step": 8, + "loss": 0.03067176230251789, + "target_ce": 0.029314646497368813, + "replay_kl": 0.0013571156887337565, + "gradient_norm": 2.3790483474731445 + }, + { + "step": 9, + "loss": 0.012204742059111595, + "target_ce": 0.009339203126728535, + "replay_kl": 0.0028655389323830605, + "gradient_norm": 0.6717426180839539 + }, + { + "step": 10, + "loss": 0.008489133790135384, + "target_ce": 0.003933330532163382, + "replay_kl": 0.004555803723633289, + "gradient_norm": 0.4218195974826813 + }, + { + "step": 11, + "loss": 0.007622531149536371, + "target_ce": 0.002210900653153658, + "replay_kl": 0.005411630496382713, + "gradient_norm": 0.43409615755081177 + }, + { + "step": 12, + "loss": 0.00669831782579422, + "target_ce": 0.0015045475447550416, + "replay_kl": 0.0051937703974545, + "gradient_norm": 0.39359137415885925 + }, + { + "step": 13, + "loss": 0.005527095403522253, + "target_ce": 0.0011483338894322515, + "replay_kl": 0.004378761630505323, + "gradient_norm": 0.31414565443992615 + }, + { + "step": 14, + "loss": 0.004407510627061129, + "target_ce": 0.000944685481954366, + "replay_kl": 0.00346282497048378, + "gradient_norm": 0.23259815573692322 + }, + { + "step": 15, + "loss": 0.0035099301021546125, + "target_ce": 0.0008152860100381076, + "replay_kl": 0.002694644033908844, + "gradient_norm": 0.1684391051530838 + }, + { + "step": 16, + "loss": 0.002857531188055873, + "target_ce": 0.0007268372573889792, + "replay_kl": 0.0021306939888745546, + "gradient_norm": 0.12474831938743591 + }, + { + "step": 17, + "loss": 0.002391044981777668, + "target_ce": 0.0006640246720053256, + "replay_kl": 0.0017270203679800034, + "gradient_norm": 0.09602152556180954 + }, + { + "step": 18, + "loss": 0.0020530589390546083, + "target_ce": 0.0006165507365949452, + "replay_kl": 0.001436508260667324, + "gradient_norm": 0.07686274498701096 + }, + { + "step": 19, + "loss": 0.001801079954020679, + "target_ce": 0.0005802960367873311, + "replay_kl": 0.001220783917233348, + "gradient_norm": 0.06355329602956772 + }, + { + "step": 20, + "loss": 0.0016067309770733118, + "target_ce": 0.0005514560616575181, + "replay_kl": 0.0010552748572081327, + "gradient_norm": 0.053932420909404755 + }, + { + "step": 21, + "loss": 0.001455157296732068, + "target_ce": 0.0005277315503917634, + "replay_kl": 0.0009274258045479655, + "gradient_norm": 0.04683515056967735 + }, + { + "step": 22, + "loss": 0.0013308305060490966, + "target_ce": 0.0005068224854767323, + "replay_kl": 0.0008240080205723643, + "gradient_norm": 0.041332047432661057 + }, + { + "step": 23, + "loss": 0.0012302733957767487, + "target_ce": 0.0004893243894912302, + "replay_kl": 0.0007409490062855184, + "gradient_norm": 0.03706609085202217 + }, + { + "step": 24, + "loss": 0.0011447626166045666, + "target_ce": 0.00047361108590848744, + "replay_kl": 0.0006711515597999096, + "gradient_norm": 0.03361358866095543 + }, + { + "step": 25, + "loss": 0.001071687089279294, + "target_ce": 0.0004594048950821161, + "replay_kl": 0.0006122821941971779, + "gradient_norm": 0.030789265409111977 + }, + { + "step": 26, + "loss": 0.0010077841579914093, + "target_ce": 0.0004460315394680947, + "replay_kl": 0.0005617525894194841, + "gradient_norm": 0.02840423956513405 + }, + { + "step": 27, + "loss": 0.0009509158553555608, + "target_ce": 0.00043317346717230976, + "replay_kl": 0.0005177423590794206, + "gradient_norm": 0.026356292888522148 + }, + { + "step": 28, + "loss": 0.0009012316586449742, + "target_ce": 0.0004216246015857905, + "replay_kl": 0.0004796070861630142, + "gradient_norm": 0.02460400015115738 + }, + { + "step": 29, + "loss": 0.0008551969658583403, + "target_ce": 0.0004100357473362237, + "replay_kl": 0.000445161247625947, + "gradient_norm": 0.02301798388361931 + }, + { + "step": 30, + "loss": 0.0008138602133840322, + "target_ce": 0.00039892259519547224, + "replay_kl": 0.00041493758908472955, + "gradient_norm": 0.021626828238368034 + }, + { + "step": 31, + "loss": 0.0007755731348879635, + "target_ce": 0.00038804730866104364, + "replay_kl": 0.0003875258262269199, + "gradient_norm": 0.020361268892884254 + }, + { + "step": 32, + "loss": 0.0007407459197565913, + "target_ce": 0.00037792581133544445, + "replay_kl": 0.0003628200793173164, + "gradient_norm": 0.01921839267015457 + }, + { + "step": 33, + "loss": 0.0007078003836795688, + "target_ce": 0.00036752611049450934, + "replay_kl": 0.00034027424408122897, + "gradient_norm": 0.018157027661800385 + }, + { + "step": 34, + "loss": 0.0006778985261917114, + "target_ce": 0.00035788037348538637, + "replay_kl": 0.00032001815270632505, + "gradient_norm": 0.01720700040459633 + }, + { + "step": 35, + "loss": 0.0006496236892417073, + "target_ce": 0.0003480756131466478, + "replay_kl": 0.0003015480760950595, + "gradient_norm": 0.016311386600136757 + }, + { + "step": 36, + "loss": 0.0006234729662537575, + "target_ce": 0.00033886588062159717, + "replay_kl": 0.00028460711473599076, + "gradient_norm": 0.015496988780796528 + }, + { + "step": 37, + "loss": 0.0005988322664052248, + "target_ce": 0.0003298942174296826, + "replay_kl": 0.00026893801987171173, + "gradient_norm": 0.014731515198946 + }, + { + "step": 38, + "loss": 0.000576063699554652, + "target_ce": 0.00032123984419740736, + "replay_kl": 0.0002548238553572446, + "gradient_norm": 0.014029061421751976 + }, + { + "step": 39, + "loss": 0.0005544687737710774, + "target_ce": 0.0003128631506115198, + "replay_kl": 0.00024160562315955758, + "gradient_norm": 0.013371665962040424 + }, + { + "step": 40, + "loss": 0.000534363673068583, + "target_ce": 0.00030476419487968087, + "replay_kl": 0.0002295995072927326, + "gradient_norm": 0.012755874544382095 + }, + { + "step": 41, + "loss": 0.0005148621276021004, + "target_ce": 0.0002965062449220568, + "replay_kl": 0.00021835585357621312, + "gradient_norm": 0.01217044610530138 + }, + { + "step": 42, + "loss": 0.0004973076283931732, + "target_ce": 0.000289200950646773, + "replay_kl": 0.0002081067068502307, + "gradient_norm": 0.011637786403298378 + }, + { + "step": 43, + "loss": 0.0004810210666619241, + "target_ce": 0.00028225284768268466, + "replay_kl": 0.00019876821897923946, + "gradient_norm": 0.011149774305522442 + }, + { + "step": 44, + "loss": 0.0004650562768802047, + "target_ce": 0.00027514577959664166, + "replay_kl": 0.00018991049728356302, + "gradient_norm": 0.010672924108803272 + }, + { + "step": 45, + "loss": 0.0004502893425524235, + "target_ce": 0.000268515053903684, + "replay_kl": 0.00018177428864873946, + "gradient_norm": 0.010234278626739979 + }, + { + "step": 46, + "loss": 0.0004363343759905547, + "target_ce": 0.00026208264171145856, + "replay_kl": 0.00017425173427909613, + "gradient_norm": 0.009820090606808662 + }, + { + "step": 47, + "loss": 0.0004233631771057844, + "target_ce": 0.00025612665922380984, + "replay_kl": 0.00016723651788197458, + "gradient_norm": 0.0094370748847723 + }, + { + "step": 48, + "loss": 0.0004109742003493011, + "target_ce": 0.0002502896822988987, + "replay_kl": 0.0001606845180504024, + "gradient_norm": 0.009071719832718372 + }, + { + "step": 49, + "loss": 0.0003993621503468603, + "target_ce": 0.0002446908038109541, + "replay_kl": 0.0001546713465359062, + "gradient_norm": 0.008736902847886086 + }, + { + "step": 50, + "loss": 0.0003882931196130812, + "target_ce": 0.00023933015472721308, + "replay_kl": 0.00014896297943778336, + "gradient_norm": 0.008414426818490028 + }, + { + "step": 51, + "loss": 0.000377959746401757, + "target_ce": 0.00023432679881807417, + "replay_kl": 0.0001436329330317676, + "gradient_norm": 0.008115747012197971 + }, + { + "step": 52, + "loss": 0.00036798493238165975, + "target_ce": 0.0002292439603479579, + "replay_kl": 0.00013874098658561707, + "gradient_norm": 0.007826831191778183 + }, + { + "step": 53, + "loss": 0.0003585686790756881, + "target_ce": 0.00022447871742770076, + "replay_kl": 0.00013408994709607214, + "gradient_norm": 0.007556858006864786 + }, + { + "step": 54, + "loss": 0.0003497340949252248, + "target_ce": 0.00022003108460921794, + "replay_kl": 0.00012970302486792207, + "gradient_norm": 0.0073044802993535995 + }, + { + "step": 55, + "loss": 0.0003416500403545797, + "target_ce": 0.00021598051534965634, + "replay_kl": 0.00012566952500492334, + "gradient_norm": 0.007072957698255777 + }, + { + "step": 56, + "loss": 0.00033358181826770306, + "target_ce": 0.00021173135610297322, + "replay_kl": 0.00012185045488877222, + "gradient_norm": 0.006845538970082998 + }, + { + "step": 57, + "loss": 0.00032618860132060945, + "target_ce": 0.00020795868476852775, + "replay_kl": 0.00011822990927612409, + "gradient_norm": 0.006635966710746288 + }, + { + "step": 58, + "loss": 0.00031917449086904526, + "target_ce": 0.00020442424283828586, + "replay_kl": 0.00011475025530671701, + "gradient_norm": 0.006438796874135733 + }, + { + "step": 59, + "loss": 0.0003125049115624279, + "target_ce": 0.0002008897572522983, + "replay_kl": 0.00011161515431012958, + "gradient_norm": 0.006252229679375887 + }, + { + "step": 60, + "loss": 0.00030607893131673336, + "target_ce": 0.00019751409126911312, + "replay_kl": 0.00010856484732357785, + "gradient_norm": 0.0060749840922653675 + }, + { + "step": 61, + "loss": 0.00029977914527989924, + "target_ce": 0.00019409868400543928, + "replay_kl": 0.00010568045399850234, + "gradient_norm": 0.00590114202350378 + }, + { + "step": 62, + "loss": 0.00029401114443317056, + "target_ce": 0.00019104068633168936, + "replay_kl": 0.00010297044354956597, + "gradient_norm": 0.005741482600569725 + }, + { + "step": 63, + "loss": 0.00028852056129835546, + "target_ce": 0.00018806204025167972, + "replay_kl": 0.00010045852832263336, + "gradient_norm": 0.005594468675553799 + }, + { + "step": 64, + "loss": 0.0002832324244081974, + "target_ce": 0.0001852819841587916, + "replay_kl": 9.79504402494058e-05, + "gradient_norm": 0.005448827054351568 + }, + { + "step": 65, + "loss": 0.00027834775391966105, + "target_ce": 0.00018270050350110978, + "replay_kl": 9.564725769450888e-05, + "gradient_norm": 0.005316262599080801 + }, + { + "step": 66, + "loss": 0.0002733812725637108, + "target_ce": 0.00017992038920056075, + "replay_kl": 9.346088336315006e-05, + "gradient_norm": 0.005182513501495123 + }, + { + "step": 67, + "loss": 0.00026878269272856414, + "target_ce": 0.00017745798686519265, + "replay_kl": 9.132469858741388e-05, + "gradient_norm": 0.005061687435954809 + }, + { + "step": 68, + "loss": 0.0002644460182636976, + "target_ce": 0.00017507503798697144, + "replay_kl": 8.937096572481096e-05, + "gradient_norm": 0.004946037661284208 + }, + { + "step": 69, + "loss": 0.00026024068938568234, + "target_ce": 0.00017277146980632097, + "replay_kl": 8.746921957936138e-05, + "gradient_norm": 0.004834759049117565 + }, + { + "step": 70, + "loss": 0.00025618047220632434, + "target_ce": 0.00017054729687515646, + "replay_kl": 8.56331898830831e-05, + "gradient_norm": 0.00472865579649806 + }, + { + "step": 71, + "loss": 0.00025224583805538714, + "target_ce": 0.00016832315304782242, + "replay_kl": 8.392268500756472e-05, + "gradient_norm": 0.004626551643013954 + }, + { + "step": 72, + "loss": 0.00024859950644895434, + "target_ce": 0.00016633728228043765, + "replay_kl": 8.226220961660147e-05, + "gradient_norm": 0.004532393533736467 + }, + { + "step": 73, + "loss": 0.0002446825965307653, + "target_ce": 0.00016411310934927315, + "replay_kl": 8.056948718149215e-05, + "gradient_norm": 0.004431804176419973 + }, + { + "step": 74, + "loss": 0.0002414088521618396, + "target_ce": 0.00016232578491326421, + "replay_kl": 7.908306724857539e-05, + "gradient_norm": 0.004348840564489365 + }, + { + "step": 75, + "loss": 0.00023809797130525112, + "target_ce": 0.00016049873374868184, + "replay_kl": 7.759923028061166e-05, + "gradient_norm": 0.0042638154700398445 + }, + { + "step": 76, + "loss": 0.00023467151913791895, + "target_ce": 0.0001585128193255514, + "replay_kl": 7.615870708832517e-05, + "gradient_norm": 0.004177290014922619 + }, + { + "step": 77, + "loss": 0.00023179766139946878, + "target_ce": 0.00015700352378189564, + "replay_kl": 7.479413034161553e-05, + "gradient_norm": 0.00410386361181736 + }, + { + "step": 78, + "loss": 0.0002288325340487063, + "target_ce": 0.00015529562369920313, + "replay_kl": 7.353690307354555e-05, + "gradient_norm": 0.0040310281328856945 + }, + { + "step": 79, + "loss": 0.0002259167085867375, + "target_ce": 0.00015362743579316884, + "replay_kl": 7.228927279356867e-05, + "gradient_norm": 0.003957453649491072 + }, + { + "step": 80, + "loss": 0.00022317704861052334, + "target_ce": 0.00015211812569759786, + "replay_kl": 7.105891563696787e-05, + "gradient_norm": 0.0038889155257493258 + }, + { + "step": 81, + "loss": 0.00022063589130993932, + "target_ce": 0.00015072795213200152, + "replay_kl": 6.99079391779378e-05, + "gradient_norm": 0.0038255853578448296 + }, + { + "step": 82, + "loss": 0.00021793892665300518, + "target_ce": 0.0001491391594754532, + "replay_kl": 6.879976717755198e-05, + "gradient_norm": 0.0037595927715301514 + }, + { + "step": 83, + "loss": 0.00021541910246014595, + "target_ce": 0.00014770925918128341, + "replay_kl": 6.770983600290492e-05, + "gradient_norm": 0.003697887295857072 + }, + { + "step": 84, + "loss": 0.00021284865215420723, + "target_ce": 0.00014619991998188198, + "replay_kl": 6.664873944828287e-05, + "gradient_norm": 0.0036353357136249542 + }, + { + "step": 85, + "loss": 0.0002105268940795213, + "target_ce": 0.00014492888294626027, + "replay_kl": 6.559801113326102e-05, + "gradient_norm": 0.0035796721931546926 + }, + { + "step": 86, + "loss": 0.0002083553117699921, + "target_ce": 0.00014373728481587023, + "replay_kl": 6.46180342300795e-05, + "gradient_norm": 0.0035261157900094986 + }, + { + "step": 87, + "loss": 0.00020604077144525945, + "target_ce": 0.00014238680887501687, + "replay_kl": 6.365396257024258e-05, + "gradient_norm": 0.0034710457548499107 + }, + { + "step": 88, + "loss": 0.00020378839690238237, + "target_ce": 0.0001410760305589065, + "replay_kl": 6.271237361943349e-05, + "gradient_norm": 0.003417030908167362 + }, + { + "step": 89, + "loss": 0.00020173979282844812, + "target_ce": 0.00013988441787660122, + "replay_kl": 6.18553749518469e-05, + "gradient_norm": 0.0033686303067952394 + }, + { + "step": 90, + "loss": 0.00019961736688856035, + "target_ce": 0.0001386530784657225, + "replay_kl": 6.0964288422837853e-05, + "gradient_norm": 0.0033176292199641466 + }, + { + "step": 91, + "loss": 0.000197708752239123, + "target_ce": 0.00013762035814579576, + "replay_kl": 6.008839045534842e-05, + "gradient_norm": 0.0032713862601667643 + }, + { + "step": 92, + "loss": 0.00019583330140449107, + "target_ce": 0.00013654788199346513, + "replay_kl": 5.9285415773047134e-05, + "gradient_norm": 0.0032270760275423527 + }, + { + "step": 93, + "loss": 0.00019402521138545126, + "target_ce": 0.00013555484474636614, + "replay_kl": 5.8470366639085114e-05, + "gradient_norm": 0.0031856815330684185 + }, + { + "step": 94, + "loss": 0.0001921366056194529, + "target_ce": 0.00013440294424071908, + "replay_kl": 5.773365774075501e-05, + "gradient_norm": 0.003141009481623769 + }, + { + "step": 95, + "loss": 0.00019035590230487287, + "target_ce": 0.00013340992154553533, + "replay_kl": 5.6945980759337544e-05, + "gradient_norm": 0.0031001141760498285 + }, + { + "step": 96, + "loss": 0.00018844119040295482, + "target_ce": 0.00013221826520748436, + "replay_kl": 5.622292519547045e-05, + "gradient_norm": 0.0030567406211048365 + }, + { + "step": 97, + "loss": 0.00018689213902689517, + "target_ce": 0.00013138412032276392, + "replay_kl": 5.5508018704131246e-05, + "gradient_norm": 0.0030191487167030573 + }, + { + "step": 98, + "loss": 0.00018518089200370014, + "target_ce": 0.00013035137089900672, + "replay_kl": 5.482952110469341e-05, + "gradient_norm": 0.0029799058102071285 + }, + { + "step": 99, + "loss": 0.00018357725639361888, + "target_ce": 0.00012943775800522417, + "replay_kl": 5.4139498388394713e-05, + "gradient_norm": 0.0029441979713737965 + }, + { + "step": 100, + "loss": 0.0001819886383600533, + "target_ce": 0.00012852415966335684, + "replay_kl": 5.346447505871765e-05, + "gradient_norm": 0.002907603280618787 + }, + { + "step": 101, + "loss": 0.00018050349899567664, + "target_ce": 0.0001276900147786364, + "replay_kl": 5.2813480579061434e-05, + "gradient_norm": 0.0028727531898766756 + }, + { + "step": 102, + "loss": 0.0001789556408766657, + "target_ce": 0.00012677641643676907, + "replay_kl": 5.2179220801917836e-05, + "gradient_norm": 0.0028387021739035845 + }, + { + "step": 103, + "loss": 0.00017757366003934294, + "target_ce": 0.00012602169590536505, + "replay_kl": 5.155196049599908e-05, + "gradient_norm": 0.0028051321860402822 + }, + { + "step": 104, + "loss": 0.00017603219021111727, + "target_ce": 0.00012506834173109382, + "replay_kl": 5.0963844842044637e-05, + "gradient_norm": 0.002771788975223899 + }, + { + "step": 105, + "loss": 0.000174724031239748, + "target_ce": 0.00012435334792826325, + "replay_kl": 5.037069058744237e-05, + "gradient_norm": 0.0027414162177592516 + }, + { + "step": 106, + "loss": 0.0001731539668980986, + "target_ce": 0.00012336029612924904, + "replay_kl": 4.9793678044807166e-05, + "gradient_norm": 0.0027052792720496655 + }, + { + "step": 107, + "loss": 0.00017189624486491084, + "target_ce": 0.00012264530232641846, + "replay_kl": 4.9250949814449996e-05, + "gradient_norm": 0.002676385920494795 + }, + { + "step": 108, + "loss": 0.00017050431051757187, + "target_ce": 0.00012177140888525173, + "replay_kl": 4.873290527029894e-05, + "gradient_norm": 0.0026461612433195114 + }, + { + "step": 109, + "loss": 0.00016915051674004644, + "target_ce": 0.00012097693979740143, + "replay_kl": 4.8173573304666206e-05, + "gradient_norm": 0.002615574048832059 + }, + { + "step": 110, + "loss": 0.00016787569620646536, + "target_ce": 0.00012022219743812457, + "replay_kl": 4.7653498768340796e-05, + "gradient_norm": 0.0025872269179672003 + }, + { + "step": 111, + "loss": 0.00016664752911310643, + "target_ce": 0.00011950719635933638, + "replay_kl": 4.7140329115791246e-05, + "gradient_norm": 0.0025596716441214085 + }, + { + "step": 112, + "loss": 0.00016541293007321656, + "target_ce": 0.00011879218072863296, + "replay_kl": 4.6620756620541215e-05, + "gradient_norm": 0.0025323228910565376 + }, + { + "step": 113, + "loss": 0.0001642390270717442, + "target_ce": 0.00011811687727458775, + "replay_kl": 4.612214252119884e-05, + "gradient_norm": 0.0025069748517125845 + }, + { + "step": 114, + "loss": 0.00016297769616357982, + "target_ce": 0.00011732242273865268, + "replay_kl": 4.565527706290595e-05, + "gradient_norm": 0.002478628186509013 + }, + { + "step": 115, + "loss": 0.00016191849135793746, + "target_ce": 0.00011672658001771197, + "replay_kl": 4.519191134022549e-05, + "gradient_norm": 0.0024547704961150885 + }, + { + "step": 116, + "loss": 0.00016078556654974818, + "target_ce": 0.00011605129111558199, + "replay_kl": 4.473427543416619e-05, + "gradient_norm": 0.002429330488666892 + }, + { + "step": 117, + "loss": 0.00015965661441441625, + "target_ce": 0.0001153759949374944, + "replay_kl": 4.428061583894305e-05, + "gradient_norm": 0.0024045042227953672 + }, + { + "step": 118, + "loss": 0.00015853656805120409, + "target_ce": 0.00011470069148344919, + "replay_kl": 4.3835876567754894e-05, + "gradient_norm": 0.0023802060168236494 + }, + { + "step": 119, + "loss": 0.00015752286708448082, + "target_ce": 0.00011414454638725147, + "replay_kl": 4.3378320697229356e-05, + "gradient_norm": 0.0023571483325213194 + }, + { + "step": 120, + "loss": 0.00015631520363967866, + "target_ce": 0.00011335008457535878, + "replay_kl": 4.296511906431988e-05, + "gradient_norm": 0.0023315793368965387 + }, + { + "step": 121, + "loss": 0.0001552956528030336, + "target_ce": 0.00011275423457846045, + "replay_kl": 4.254142550053075e-05, + "gradient_norm": 0.002308913040906191 + }, + { + "step": 122, + "loss": 0.00015416818496305496, + "target_ce": 0.0001119994922191836, + "replay_kl": 4.216869274387136e-05, + "gradient_norm": 0.0022846751380711794 + }, + { + "step": 123, + "loss": 0.00015337295189965516, + "target_ce": 0.00011160224676132202, + "replay_kl": 4.177070513833314e-05, + "gradient_norm": 0.002265992807224393 + }, + { + "step": 124, + "loss": 0.0001523411920061335, + "target_ce": 0.00011096665548393503, + "replay_kl": 4.1374540160177276e-05, + "gradient_norm": 0.0022439041640609503 + }, + { + "step": 125, + "loss": 0.00015131868713069707, + "target_ce": 0.00011033107148250565, + "replay_kl": 4.098761928617023e-05, + "gradient_norm": 0.002222207607701421 + }, + { + "step": 126, + "loss": 0.0001504238898633048, + "target_ce": 0.00010981465311488137, + "replay_kl": 4.060923674842343e-05, + "gradient_norm": 0.002202389994636178 + }, + { + "step": 127, + "loss": 0.00014938415552023798, + "target_ce": 0.00010913934238487855, + "replay_kl": 4.024480949738063e-05, + "gradient_norm": 0.0021800517570227385 + }, + { + "step": 128, + "loss": 0.00014846192789264023, + "target_ce": 0.0001086229458451271, + "replay_kl": 3.983897840953432e-05, + "gradient_norm": 0.00215921550989151 + }, + { + "step": 129, + "loss": 0.00014759678742848337, + "target_ce": 0.00010810652747750282, + "replay_kl": 3.949025267502293e-05, + "gradient_norm": 0.0021400542464107275 + }, + { + "step": 130, + "loss": 0.0001466745452489704, + "target_ce": 0.00010755038965726271, + "replay_kl": 3.912415559170768e-05, + "gradient_norm": 0.002120264573022723 + }, + { + "step": 131, + "loss": 0.00014578942500520498, + "target_ce": 0.00010699423728510737, + "replay_kl": 3.8795184082118794e-05, + "gradient_norm": 0.0021012944635003805 + }, + { + "step": 132, + "loss": 0.00014496997755486518, + "target_ce": 0.00010651755292201415, + "replay_kl": 3.8452424632851034e-05, + "gradient_norm": 0.0020827052649110556 + }, + { + "step": 133, + "loss": 0.00014416688645724207, + "target_ce": 0.00010604087583487853, + "replay_kl": 3.8126014260342345e-05, + "gradient_norm": 0.0020653267856687307 + }, + { + "step": 134, + "loss": 0.00014328162069432437, + "target_ce": 0.00010548471618676558, + "replay_kl": 3.779690450755879e-05, + "gradient_norm": 0.0020462803076952696 + }, + { + "step": 135, + "loss": 0.00014242215547710657, + "target_ce": 0.0001049682978191413, + "replay_kl": 3.745386493392289e-05, + "gradient_norm": 0.0020272801630198956 + }, + { + "step": 136, + "loss": 0.0001415937440469861, + "target_ce": 0.00010445187945151702, + "replay_kl": 3.714186459546909e-05, + "gradient_norm": 0.0020094430074095726 + }, + { + "step": 137, + "loss": 0.000140742544317618, + "target_ce": 0.00010389573435531929, + "replay_kl": 3.684680268634111e-05, + "gradient_norm": 0.0019916186574846506 + }, + { + "step": 138, + "loss": 0.00013999785005580634, + "target_ce": 0.00010345876216888428, + "replay_kl": 3.653908788692206e-05, + "gradient_norm": 0.0019752311054617167 + }, + { + "step": 139, + "loss": 0.00013926616520620883, + "target_ce": 0.00010302178998244926, + "replay_kl": 3.6244371585780755e-05, + "gradient_norm": 0.001958464737981558 + }, + { + "step": 140, + "loss": 0.00013858257443644106, + "target_ce": 0.00010262453724863008, + "replay_kl": 3.595803354983218e-05, + "gradient_norm": 0.0019435432041063905 + }, + { + "step": 141, + "loss": 0.00013757619308307767, + "target_ce": 0.00010190949979005381, + "replay_kl": 3.5666693293023854e-05, + "gradient_norm": 0.0019237606320530176 + }, + { + "step": 142, + "loss": 0.00013702332216780633, + "target_ce": 0.00010163141996599734, + "replay_kl": 3.539189856383018e-05, + "gradient_norm": 0.001909616868942976 + }, + { + "step": 143, + "loss": 0.00013626168947666883, + "target_ce": 0.0001011547283269465, + "replay_kl": 3.5106953873764724e-05, + "gradient_norm": 0.0018936516717076302 + }, + { + "step": 144, + "loss": 0.0001355845743091777, + "target_ce": 0.00010075748286908492, + "replay_kl": 3.482709144009277e-05, + "gradient_norm": 0.0018781935796141624 + }, + { + "step": 145, + "loss": 0.00013490155106410384, + "target_ce": 0.00010036023013526574, + "replay_kl": 3.45413172908593e-05, + "gradient_norm": 0.0018627772806212306 + }, + { + "step": 146, + "loss": 0.00013427590602077544, + "target_ce": 0.00010000268957810476, + "replay_kl": 3.427322008064948e-05, + "gradient_norm": 0.0018491678638383746 + }, + { + "step": 147, + "loss": 0.00013332146045286208, + "target_ce": 9.928763756761327e-05, + "replay_kl": 3.403382288524881e-05, + "gradient_norm": 0.001830920809879899 + }, + { + "step": 148, + "loss": 0.00013277017569635063, + "target_ce": 9.900957229547203e-05, + "replay_kl": 3.376060340087861e-05, + "gradient_norm": 0.0018178846221417189 + }, + { + "step": 149, + "loss": 0.00013206822040956467, + "target_ce": 9.857258555712178e-05, + "replay_kl": 3.349563121446408e-05, + "gradient_norm": 0.001802808023057878 + }, + { + "step": 150, + "loss": 0.00013133622996974736, + "target_ce": 9.809588664211333e-05, + "replay_kl": 3.3240346965612844e-05, + "gradient_norm": 0.0017870116280391812 + }, + { + "step": 151, + "loss": 0.00013075507013127208, + "target_ce": 9.773835336090997e-05, + "replay_kl": 3.3016720408340916e-05, + "gradient_norm": 0.001774233067408204 + }, + { + "step": 152, + "loss": 0.00013008801033720374, + "target_ce": 9.734110062709078e-05, + "replay_kl": 3.2746913348091766e-05, + "gradient_norm": 0.0017600796418264508 + }, + { + "step": 153, + "loss": 0.00012951227836310863, + "target_ce": 9.698356734588742e-05, + "replay_kl": 3.2528718293178827e-05, + "gradient_norm": 0.001746501075103879 + }, + { + "step": 154, + "loss": 0.00012890702055301517, + "target_ce": 9.662604861659929e-05, + "replay_kl": 3.228097193641588e-05, + "gradient_norm": 0.001733458018861711 + }, + { + "step": 155, + "loss": 0.00012811314081773162, + "target_ce": 9.606985986465588e-05, + "replay_kl": 3.204327367711812e-05, + "gradient_norm": 0.0017189143691211939 + }, + { + "step": 156, + "loss": 0.0001275794202229008, + "target_ce": 9.575206058798358e-05, + "replay_kl": 3.182735963491723e-05, + "gradient_norm": 0.001707144663669169 + }, + { + "step": 157, + "loss": 0.0001268693886231631, + "target_ce": 9.52753471210599e-05, + "replay_kl": 3.1594048778060824e-05, + "gradient_norm": 0.0016929631819948554 + }, + { + "step": 158, + "loss": 0.00012633198639377952, + "target_ce": 9.495754056842998e-05, + "replay_kl": 3.1374453101307154e-05, + "gradient_norm": 0.0016811410896480083 + }, + { + "step": 159, + "loss": 0.0001258104166481644, + "target_ce": 9.467946802033111e-05, + "replay_kl": 3.113095590379089e-05, + "gradient_norm": 0.001669374410994351 + }, + { + "step": 160, + "loss": 0.0001252910151379183, + "target_ce": 9.43616614677012e-05, + "replay_kl": 3.09293536702171e-05, + "gradient_norm": 0.0016571960877627134 + }, + { + "step": 161, + "loss": 0.00012459256686270237, + "target_ce": 9.388494800077751e-05, + "replay_kl": 3.070761158596724e-05, + "gradient_norm": 0.0016433191485702991 + }, + { + "step": 162, + "loss": 0.0001240673300344497, + "target_ce": 9.356714872410521e-05, + "replay_kl": 3.05001885863021e-05, + "gradient_norm": 0.0016316055553033948 + }, + { + "step": 163, + "loss": 0.0001234810333698988, + "target_ce": 9.316988871432841e-05, + "replay_kl": 3.0311144655570388e-05, + "gradient_norm": 0.0016189824091270566 + }, + { + "step": 164, + "loss": 0.00012282516399864107, + "target_ce": 9.273289470002055e-05, + "replay_kl": 3.0092269298620522e-05, + "gradient_norm": 0.0016064888332039118 + }, + { + "step": 165, + "loss": 0.0001223488652613014, + "target_ce": 9.245480760000646e-05, + "replay_kl": 2.989405402331613e-05, + "gradient_norm": 0.0015960410237312317 + }, + { + "step": 166, + "loss": 0.00012182410864625126, + "target_ce": 9.213700104737654e-05, + "replay_kl": 2.9687111236853525e-05, + "gradient_norm": 0.0015847475733608007 + }, + { + "step": 167, + "loss": 0.00012131285620853305, + "target_ce": 9.181920177070424e-05, + "replay_kl": 2.9493658075807616e-05, + "gradient_norm": 0.0015728664584457874 + }, + { + "step": 168, + "loss": 0.00012078683357685804, + "target_ce": 9.150139521807432e-05, + "replay_kl": 2.9285438358783722e-05, + "gradient_norm": 0.001561989774927497 + }, + { + "step": 169, + "loss": 0.00012026042531942949, + "target_ce": 9.118358138948679e-05, + "replay_kl": 2.9076842110953294e-05, + "gradient_norm": 0.0015507503412663937 + }, + { + "step": 170, + "loss": 0.00011976436508120969, + "target_ce": 9.086577483685687e-05, + "replay_kl": 2.8898590244352818e-05, + "gradient_norm": 0.0015398748219013214 + }, + { + "step": 171, + "loss": 0.00011924987484235317, + "target_ce": 9.054796100826934e-05, + "replay_kl": 2.8701913834083825e-05, + "gradient_norm": 0.0015291842864826322 + }, + { + "step": 172, + "loss": 0.00011875666677951813, + "target_ce": 9.023016173159704e-05, + "replay_kl": 2.8526503228931688e-05, + "gradient_norm": 0.0015183623181656003 + }, + { + "step": 173, + "loss": 0.00011826321861008182, + "target_ce": 8.99123479030095e-05, + "replay_kl": 2.8350870707072318e-05, + "gradient_norm": 0.0015076140407472849 + }, + { + "step": 174, + "loss": 0.00011771995923481882, + "target_ce": 8.955480734584853e-05, + "replay_kl": 2.816514825099148e-05, + "gradient_norm": 0.0014966265298426151 + }, + { + "step": 175, + "loss": 0.00011722097406163812, + "target_ce": 8.9236993517261e-05, + "replay_kl": 2.798397690639831e-05, + "gradient_norm": 0.0014863635879009962 + }, + { + "step": 176, + "loss": 0.00011680398893076926, + "target_ce": 8.899864042177796e-05, + "replay_kl": 2.7805344871012494e-05, + "gradient_norm": 0.0014765993691980839 + }, + { + "step": 177, + "loss": 0.00011636185081442818, + "target_ce": 8.872055332176387e-05, + "replay_kl": 2.7641295673674904e-05, + "gradient_norm": 0.0014667320065200329 + }, + { + "step": 178, + "loss": 0.00011592497321544215, + "target_ce": 8.844246622174978e-05, + "replay_kl": 2.7482505174702965e-05, + "gradient_norm": 0.001456602243706584 + }, + { + "step": 179, + "loss": 0.0001153422927018255, + "target_ce": 8.804520621197298e-05, + "replay_kl": 2.7297090127831325e-05, + "gradient_norm": 0.0014450664166361094 + }, + { + "step": 180, + "loss": 0.00011482712579891086, + "target_ce": 8.768766565481201e-05, + "replay_kl": 2.7139458325109445e-05, + "gradient_norm": 0.0014340458437800407 + }, + { + "step": 181, + "loss": 0.00011445864947745577, + "target_ce": 8.74890320119448e-05, + "replay_kl": 2.696961564652156e-05, + "gradient_norm": 0.001425262656994164 + }, + { + "step": 182, + "loss": 0.00011402751260902733, + "target_ce": 8.721094491193071e-05, + "replay_kl": 2.6816571335075423e-05, + "gradient_norm": 0.0014158551348373294 + }, + { + "step": 183, + "loss": 0.00011360995267750695, + "target_ce": 8.697259909240529e-05, + "replay_kl": 2.6637353585101664e-05, + "gradient_norm": 0.0014074832433834672 + }, + { + "step": 184, + "loss": 0.00011320308112772182, + "target_ce": 8.673423872096464e-05, + "replay_kl": 2.6468842406757176e-05, + "gradient_norm": 0.0013982761884108186 + }, + { + "step": 185, + "loss": 0.00011269778769928962, + "target_ce": 8.637669816380367e-05, + "replay_kl": 2.6321089535485953e-05, + "gradient_norm": 0.0013880827464163303 + }, + { + "step": 186, + "loss": 0.00011239694867981598, + "target_ce": 8.621777669759467e-05, + "replay_kl": 2.6179170163231902e-05, + "gradient_norm": 0.0013808892108500004 + }, + { + "step": 187, + "loss": 0.0001119379885494709, + "target_ce": 8.589996286900714e-05, + "replay_kl": 2.6038029318442568e-05, + "gradient_norm": 0.001371125690639019 + }, + { + "step": 188, + "loss": 0.00011149092460982502, + "target_ce": 8.562187576899305e-05, + "replay_kl": 2.5869048840831965e-05, + "gradient_norm": 0.0013617771910503507 + }, + { + "step": 189, + "loss": 0.00011112011270597577, + "target_ce": 8.53835153975524e-05, + "replay_kl": 2.5736600946402177e-05, + "gradient_norm": 0.0013532278826460242 + }, + { + "step": 190, + "loss": 0.00011066620209021494, + "target_ce": 8.510542829753831e-05, + "replay_kl": 2.5560773792676628e-05, + "gradient_norm": 0.0013440903276205063 + }, + { + "step": 191, + "loss": 0.0001103592076105997, + "target_ce": 8.494652138324454e-05, + "replay_kl": 2.5412682589376345e-05, + "gradient_norm": 0.0013361561577767134 + }, + { + "step": 192, + "loss": 0.0001098674547392875, + "target_ce": 8.458898082608357e-05, + "replay_kl": 2.5278473913203925e-05, + "gradient_norm": 0.0013269339688122272 + }, + { + "step": 193, + "loss": 0.00010943579400191084, + "target_ce": 8.431089372606948e-05, + "replay_kl": 2.5124898456851952e-05, + "gradient_norm": 0.0013178455410525203 + }, + { + "step": 194, + "loss": 0.00010909228876698762, + "target_ce": 8.411226008320227e-05, + "replay_kl": 2.4980032321764156e-05, + "gradient_norm": 0.0013099081115797162 + }, + { + "step": 195, + "loss": 0.00010866417142096907, + "target_ce": 8.383417298318818e-05, + "replay_kl": 2.4829998437780887e-05, + "gradient_norm": 0.00130143528804183 + }, + { + "step": 196, + "loss": 0.00010829880193341523, + "target_ce": 8.359581261174753e-05, + "replay_kl": 2.4702987502678297e-05, + "gradient_norm": 0.0012932425597682595 + }, + { + "step": 197, + "loss": 0.00010797199502121657, + "target_ce": 8.339717896888033e-05, + "replay_kl": 2.457481241435744e-05, + "gradient_norm": 0.0012855303939431906 + }, + { + "step": 198, + "loss": 0.00010754652612376958, + "target_ce": 8.311909186886624e-05, + "replay_kl": 2.4427434254903346e-05, + "gradient_norm": 0.0012771731708198786 + }, + { + "step": 199, + "loss": 0.00010714816744439304, + "target_ce": 8.284100476885214e-05, + "replay_kl": 2.430716085655149e-05, + "gradient_norm": 0.0012689543655142188 + }, + { + "step": 200, + "loss": 0.0001067319608409889, + "target_ce": 8.256291039288044e-05, + "replay_kl": 2.416904862911906e-05, + "gradient_norm": 0.001261283177882433 + }, + { + "step": 201, + "loss": 0.00010638355888659135, + "target_ce": 8.236426947405562e-05, + "replay_kl": 2.4019289412535727e-05, + "gradient_norm": 0.0012539522722363472 + }, + { + "step": 202, + "loss": 0.00010602636029943824, + "target_ce": 8.212590910261497e-05, + "replay_kl": 2.3900454834802076e-05, + "gradient_norm": 0.001245616702362895 + }, + { + "step": 203, + "loss": 0.00010562223906163126, + "target_ce": 8.184782200260088e-05, + "replay_kl": 2.3774413421051577e-05, + "gradient_norm": 0.0012377180391922593 + }, + { + "step": 204, + "loss": 0.00010536985064391047, + "target_ce": 8.172864181688055e-05, + "replay_kl": 2.364121246500872e-05, + "gradient_norm": 0.0012314688647165895 + }, + { + "step": 205, + "loss": 0.0001048867852659896, + "target_ce": 8.137109398376197e-05, + "replay_kl": 2.3515687644248828e-05, + "gradient_norm": 0.001222342369146645 + }, + { + "step": 206, + "loss": 0.00010464542720001191, + "target_ce": 8.125190652208403e-05, + "replay_kl": 2.339352431590669e-05, + "gradient_norm": 0.0012159236939623952 + }, + { + "step": 207, + "loss": 0.00010433725401526317, + "target_ce": 8.105327287921682e-05, + "replay_kl": 2.328398113604635e-05, + "gradient_norm": 0.0012095212005078793 + }, + { + "step": 208, + "loss": 0.00010393389675300568, + "target_ce": 8.077518577920273e-05, + "replay_kl": 2.315871461178176e-05, + "gradient_norm": 0.0012014354579150677 + }, + { + "step": 209, + "loss": 0.00010360955639043823, + "target_ce": 8.057655213633552e-05, + "replay_kl": 2.3033002435113303e-05, + "gradient_norm": 0.0011940227122977376 + }, + { + "step": 210, + "loss": 0.00010325851326342672, + "target_ce": 8.033817721297964e-05, + "replay_kl": 2.292033241246827e-05, + "gradient_norm": 0.001187172718346119 + }, + { + "step": 211, + "loss": 0.0001029051563818939, + "target_ce": 8.009980956558138e-05, + "replay_kl": 2.2805346816312522e-05, + "gradient_norm": 0.0011797217885032296 + }, + { + "step": 212, + "loss": 0.00010269522317685187, + "target_ce": 8.002036338439211e-05, + "replay_kl": 2.2674859792459756e-05, + "gradient_norm": 0.0011733908904716372 + }, + { + "step": 213, + "loss": 0.00010230664338450879, + "target_ce": 7.97422617324628e-05, + "replay_kl": 2.2564381652045995e-05, + "gradient_norm": 0.0011661233147606254 + }, + { + "step": 214, + "loss": 0.00010195995855610818, + "target_ce": 7.950390136102214e-05, + "replay_kl": 2.2456057195086032e-05, + "gradient_norm": 0.0011593011440709233 + }, + { + "step": 215, + "loss": 0.00010165431012865156, + "target_ce": 7.930525316623971e-05, + "replay_kl": 2.234905696241185e-05, + "gradient_norm": 0.0011534745572134852 + }, + { + "step": 216, + "loss": 0.00010130135342478752, + "target_ce": 7.906689279479906e-05, + "replay_kl": 2.2234458810999058e-05, + "gradient_norm": 0.0011462703114375472 + }, + { + "step": 217, + "loss": 0.00010103666863869876, + "target_ce": 7.89079858805053e-05, + "replay_kl": 2.212868093920406e-05, + "gradient_norm": 0.0011401301017031074 + }, + { + "step": 218, + "loss": 0.00010070315329357982, + "target_ce": 7.870934496168047e-05, + "replay_kl": 2.1993811969878152e-05, + "gradient_norm": 0.0011329249246045947 + }, + { + "step": 219, + "loss": 0.00010038306936621666, + "target_ce": 7.847097731428221e-05, + "replay_kl": 2.1912088413955644e-05, + "gradient_norm": 0.0011271715629845858 + }, + { + "step": 220, + "loss": 0.00010014927829615772, + "target_ce": 7.835178985260427e-05, + "replay_kl": 2.1797488443553448e-05, + "gradient_norm": 0.0011214081896468997 + }, + { + "step": 221, + "loss": 9.971714462153614e-05, + "target_ce": 7.803396874805912e-05, + "replay_kl": 2.1683175873477012e-05, + "gradient_norm": 0.0011138190748170018 + }, + { + "step": 222, + "loss": 9.945983038051054e-05, + "target_ce": 7.787506183376536e-05, + "replay_kl": 2.158476854674518e-05, + "gradient_norm": 0.0011073071509599686 + }, + { + "step": 223, + "loss": 9.910910739563406e-05, + "target_ce": 7.76366941863671e-05, + "replay_kl": 2.147241320926696e-05, + "gradient_norm": 0.0011005783453583717 + }, + { + "step": 224, + "loss": 9.89321997622028e-05, + "target_ce": 7.75572334532626e-05, + "replay_kl": 2.137496994691901e-05, + "gradient_norm": 0.0010956823825836182 + }, + { + "step": 225, + "loss": 9.859077545115724e-05, + "target_ce": 7.731887308182195e-05, + "replay_kl": 2.1271902369335294e-05, + "gradient_norm": 0.0010888621909543872 + }, + { + "step": 226, + "loss": 9.831770148593932e-05, + "target_ce": 7.715996616752818e-05, + "replay_kl": 2.1157733499421738e-05, + "gradient_norm": 0.0010828584199771285 + }, + { + "step": 227, + "loss": 9.803664579521865e-05, + "target_ce": 7.696132524870336e-05, + "replay_kl": 2.1075324184494093e-05, + "gradient_norm": 0.0010766580235213041 + }, + { + "step": 228, + "loss": 9.778403909876943e-05, + "target_ce": 7.680241105845198e-05, + "replay_kl": 2.0981631678296253e-05, + "gradient_norm": 0.001070439931936562 + }, + { + "step": 229, + "loss": 9.75274306256324e-05, + "target_ce": 7.664350414415821e-05, + "replay_kl": 2.088392648147419e-05, + "gradient_norm": 0.0010651081101968884 + }, + { + "step": 230, + "loss": 9.718392539070919e-05, + "target_ce": 7.640513649675995e-05, + "replay_kl": 2.0778787074959837e-05, + "gradient_norm": 0.00105881760828197 + }, + { + "step": 231, + "loss": 9.694753680378199e-05, + "target_ce": 7.624622230650857e-05, + "replay_kl": 2.0701314497273415e-05, + "gradient_norm": 0.001052936422638595 + }, + { + "step": 232, + "loss": 9.664771641837433e-05, + "target_ce": 7.604757411172614e-05, + "replay_kl": 2.0600142306648195e-05, + "gradient_norm": 0.0010479845805093646 + }, + { + "step": 233, + "loss": 9.643395605962723e-05, + "target_ce": 7.592839392600581e-05, + "replay_kl": 2.0505558495642617e-05, + "gradient_norm": 0.0010420427424833179 + }, + { + "step": 234, + "loss": 9.614726150175557e-05, + "target_ce": 7.57297602831386e-05, + "replay_kl": 2.041749939962756e-05, + "gradient_norm": 0.0010367953218519688 + }, + { + "step": 235, + "loss": 9.58950913627632e-05, + "target_ce": 7.557084609288722e-05, + "replay_kl": 2.0324245269875973e-05, + "gradient_norm": 0.001030904590152204 + }, + { + "step": 236, + "loss": 9.559413592796773e-05, + "target_ce": 7.53722051740624e-05, + "replay_kl": 2.0221934391884133e-05, + "gradient_norm": 0.0010249200277030468 + }, + { + "step": 237, + "loss": 9.521803440293297e-05, + "target_ce": 7.50941107980907e-05, + "replay_kl": 2.0123923604842275e-05, + "gradient_norm": 0.001018514740280807 + }, + { + "step": 238, + "loss": 9.504816262051463e-05, + "target_ce": 7.50146500649862e-05, + "replay_kl": 2.0033514374517836e-05, + "gradient_norm": 0.0010141152888536453 + }, + { + "step": 239, + "loss": 9.489440708421171e-05, + "target_ce": 7.493519660783932e-05, + "replay_kl": 1.9959214114351198e-05, + "gradient_norm": 0.0010097536724060774 + }, + { + "step": 240, + "loss": 9.457129635848105e-05, + "target_ce": 7.469682896044105e-05, + "replay_kl": 1.9874471036018804e-05, + "gradient_norm": 0.0010031129932031035 + }, + { + "step": 241, + "loss": 9.424950985703617e-05, + "target_ce": 7.445846131304279e-05, + "replay_kl": 1.979104672500398e-05, + "gradient_norm": 0.000997790601104498 + }, + { + "step": 242, + "loss": 9.400678391102701e-05, + "target_ce": 7.429955439874902e-05, + "replay_kl": 1.9707227693288587e-05, + "gradient_norm": 0.0009926151251420379 + }, + { + "step": 243, + "loss": 9.385286102769896e-05, + "target_ce": 7.422009366564453e-05, + "replay_kl": 1.963276918104384e-05, + "gradient_norm": 0.0009881227742880583 + }, + { + "step": 244, + "loss": 9.361389675177634e-05, + "target_ce": 7.406117947539315e-05, + "replay_kl": 1.9552713638404384e-05, + "gradient_norm": 0.000982613884843886 + }, + { + "step": 245, + "loss": 9.332019544672221e-05, + "target_ce": 7.386253128061071e-05, + "replay_kl": 1.9457667804090306e-05, + "gradient_norm": 0.0009778854437172413 + }, + { + "step": 246, + "loss": 9.304464037995785e-05, + "target_ce": 7.366388308582827e-05, + "replay_kl": 1.9380760932108387e-05, + "gradient_norm": 0.0009725651470944285 + }, + { + "step": 247, + "loss": 9.284992120228708e-05, + "target_ce": 7.354470290010795e-05, + "replay_kl": 1.9305218302179128e-05, + "gradient_norm": 0.0009677722118794918 + }, + { + "step": 248, + "loss": 9.260466322302818e-05, + "target_ce": 7.338578870985657e-05, + "replay_kl": 1.921887815115042e-05, + "gradient_norm": 0.0009625224047340453 + }, + { + "step": 249, + "loss": 9.222079097526148e-05, + "target_ce": 7.30679530533962e-05, + "replay_kl": 1.915283610287588e-05, + "gradient_norm": 0.0009563002968207002 + }, + { + "step": 250, + "loss": 9.208235860569403e-05, + "target_ce": 7.302822632482275e-05, + "replay_kl": 1.9054132280871272e-05, + "gradient_norm": 0.000952850328758359 + }, + { + "step": 251, + "loss": 9.186090755974874e-05, + "target_ce": 7.286931941052899e-05, + "replay_kl": 1.899158814921975e-05, + "gradient_norm": 0.0009479947621002793 + }, + { + "step": 252, + "loss": 9.15784330572933e-05, + "target_ce": 7.267067121574655e-05, + "replay_kl": 1.8907761841546744e-05, + "gradient_norm": 0.0009426157921552658 + }, + { + "step": 253, + "loss": 9.13460535230115e-05, + "target_ce": 7.251175702549517e-05, + "replay_kl": 1.883430013549514e-05, + "gradient_norm": 0.0009381547570228577 + }, + { + "step": 254, + "loss": 9.106404468184337e-05, + "target_ce": 7.231311610667035e-05, + "replay_kl": 1.8750930394162424e-05, + "gradient_norm": 0.0009325024439021945 + }, + { + "step": 255, + "loss": 9.094892448047176e-05, + "target_ce": 7.227338937809691e-05, + "replay_kl": 1.8675535102374852e-05, + "gradient_norm": 0.0009291102178394794 + }, + { + "step": 256, + "loss": 9.076292917598039e-05, + "target_ce": 7.215420191641897e-05, + "replay_kl": 1.8608730897540227e-05, + "gradient_norm": 0.0009246498811990023 + }, + { + "step": 257, + "loss": 9.035522089106962e-05, + "target_ce": 7.183638081187382e-05, + "replay_kl": 1.8518838260206394e-05, + "gradient_norm": 0.0009181651985272765 + }, + { + "step": 258, + "loss": 9.024485189002007e-05, + "target_ce": 7.179664680734277e-05, + "replay_kl": 1.8448206901666708e-05, + "gradient_norm": 0.0009145840303972363 + }, + { + "step": 259, + "loss": 9.006362233776599e-05, + "target_ce": 7.167745934566483e-05, + "replay_kl": 1.8386159354122356e-05, + "gradient_norm": 0.0009102764306589961 + }, + { + "step": 260, + "loss": 8.987196633825079e-05, + "target_ce": 7.15582791599445e-05, + "replay_kl": 1.831368717830628e-05, + "gradient_norm": 0.0009058815194293857 + }, + { + "step": 261, + "loss": 8.968387555796653e-05, + "target_ce": 7.143909169826657e-05, + "replay_kl": 1.8244780221721157e-05, + "gradient_norm": 0.0009014133829623461 + }, + { + "step": 262, + "loss": 8.933382196119055e-05, + "target_ce": 7.116099732229486e-05, + "replay_kl": 1.817282463889569e-05, + "gradient_norm": 0.0008957934333011508 + }, + { + "step": 263, + "loss": 8.914016507333145e-05, + "target_ce": 7.104180986061692e-05, + "replay_kl": 1.8098355212714523e-05, + "gradient_norm": 0.0008914381032809615 + }, + { + "step": 264, + "loss": 8.899172826204449e-05, + "target_ce": 7.096234912751243e-05, + "replay_kl": 1.8029375496553257e-05, + "gradient_norm": 0.0008878136868588626 + }, + { + "step": 265, + "loss": 8.880013774614781e-05, + "target_ce": 7.08431689417921e-05, + "replay_kl": 1.795696880435571e-05, + "gradient_norm": 0.0008829270373098552 + }, + { + "step": 266, + "loss": 8.861867536325008e-05, + "target_ce": 7.072398148011416e-05, + "replay_kl": 1.7894693883135915e-05, + "gradient_norm": 0.0008788207778707147 + }, + { + "step": 267, + "loss": 8.835236076265574e-05, + "target_ce": 7.052534056128934e-05, + "replay_kl": 1.7827023839345202e-05, + "gradient_norm": 0.0008737745229154825 + }, + { + "step": 268, + "loss": 8.821124356472865e-05, + "target_ce": 7.044588710414246e-05, + "replay_kl": 1.7765358279575594e-05, + "gradient_norm": 0.0008706615772098303 + }, + { + "step": 269, + "loss": 8.805850666249171e-05, + "target_ce": 7.036642637103796e-05, + "replay_kl": 1.7692082110443152e-05, + "gradient_norm": 0.0008668388472869992 + }, + { + "step": 270, + "loss": 8.783921657595783e-05, + "target_ce": 7.020751218078658e-05, + "replay_kl": 1.7631700757192448e-05, + "gradient_norm": 0.0008625260670669377 + }, + { + "step": 271, + "loss": 8.761030767345801e-05, + "target_ce": 7.00485979905352e-05, + "replay_kl": 1.756170968292281e-05, + "gradient_norm": 0.0008582448353990912 + }, + { + "step": 272, + "loss": 8.739182521821931e-05, + "target_ce": 6.988968380028382e-05, + "replay_kl": 1.7502143236924894e-05, + "gradient_norm": 0.0008539998671039939 + }, + { + "step": 273, + "loss": 8.728160173632205e-05, + "target_ce": 6.984995707171038e-05, + "replay_kl": 1.743164102663286e-05, + "gradient_norm": 0.0008503692806698382 + }, + { + "step": 274, + "loss": 8.714018622413278e-05, + "target_ce": 6.97705036145635e-05, + "replay_kl": 1.7369684428558685e-05, + "gradient_norm": 0.0008467090083286166 + }, + { + "step": 275, + "loss": 8.687823719810694e-05, + "target_ce": 6.957185541978106e-05, + "replay_kl": 1.7306381778325886e-05, + "gradient_norm": 0.0008417931967414916 + }, + { + "step": 276, + "loss": 8.66144837345928e-05, + "target_ce": 6.937321450095624e-05, + "replay_kl": 1.724126559565775e-05, + "gradient_norm": 0.0008373315213248134 + }, + { + "step": 277, + "loss": 8.642820466775447e-05, + "target_ce": 6.92540270392783e-05, + "replay_kl": 1.7174173990497366e-05, + "gradient_norm": 0.000834306760225445 + }, + { + "step": 278, + "loss": 8.621735469205305e-05, + "target_ce": 6.90951055730693e-05, + "replay_kl": 1.7122249118983746e-05, + "gradient_norm": 0.0008296585874632001 + }, + { + "step": 279, + "loss": 8.607079507783055e-05, + "target_ce": 6.901565211592242e-05, + "replay_kl": 1.7055144780897535e-05, + "gradient_norm": 0.0008262968622148037 + }, + { + "step": 280, + "loss": 8.589900971855968e-05, + "target_ce": 6.889646465424448e-05, + "replay_kl": 1.7002548702294007e-05, + "gradient_norm": 0.000822313828393817 + }, + { + "step": 281, + "loss": 8.580675785196945e-05, + "target_ce": 6.885673792567104e-05, + "replay_kl": 1.6950018107309006e-05, + "gradient_norm": 0.0008194127585738897 + }, + { + "step": 282, + "loss": 8.552134386263788e-05, + "target_ce": 6.861835572635755e-05, + "replay_kl": 1.6902986317290924e-05, + "gradient_norm": 0.0008148684282787144 + }, + { + "step": 283, + "loss": 8.529632759746164e-05, + "target_ce": 6.845944153610617e-05, + "replay_kl": 1.6836882423376665e-05, + "gradient_norm": 0.0008108315523713827 + }, + { + "step": 284, + "loss": 8.511429041391239e-05, + "target_ce": 6.834025407442823e-05, + "replay_kl": 1.6774036339484155e-05, + "gradient_norm": 0.0008068396709859371 + }, + { + "step": 285, + "loss": 8.501829870510846e-05, + "target_ce": 6.830052734585479e-05, + "replay_kl": 1.6717771359253675e-05, + "gradient_norm": 0.0008039767271839082 + }, + { + "step": 286, + "loss": 8.476327639073133e-05, + "target_ce": 6.810187915107235e-05, + "replay_kl": 1.6661393601680174e-05, + "gradient_norm": 0.0008002310059964657 + }, + { + "step": 287, + "loss": 8.458532829536125e-05, + "target_ce": 6.798269896535203e-05, + "replay_kl": 1.6602629330009222e-05, + "gradient_norm": 0.0007957787020131946 + }, + { + "step": 288, + "loss": 8.448251173831522e-05, + "target_ce": 6.794295768486336e-05, + "replay_kl": 1.6539554053451866e-05, + "gradient_norm": 0.0007931951549835503 + }, + { + "step": 289, + "loss": 8.426261774729937e-05, + "target_ce": 6.778405077056959e-05, + "replay_kl": 1.647856697672978e-05, + "gradient_norm": 0.0007891666609793901 + }, + { + "step": 290, + "loss": 8.409567817579955e-05, + "target_ce": 6.766486330889165e-05, + "replay_kl": 1.6430811228929088e-05, + "gradient_norm": 0.0007853662245906889 + }, + { + "step": 291, + "loss": 8.399754005949944e-05, + "target_ce": 6.76251293043606e-05, + "replay_kl": 1.637241439311765e-05, + "gradient_norm": 0.0007827253430150449 + }, + { + "step": 292, + "loss": 8.374777098651975e-05, + "target_ce": 6.742648838553578e-05, + "replay_kl": 1.6321282600983977e-05, + "gradient_norm": 0.0007788173970766366 + }, + { + "step": 293, + "loss": 8.356897160410881e-05, + "target_ce": 6.730730092385784e-05, + "replay_kl": 1.6261667042272165e-05, + "gradient_norm": 0.0007748262723907828 + }, + { + "step": 294, + "loss": 8.344126399606466e-05, + "target_ce": 6.722784746671095e-05, + "replay_kl": 1.6213420167332515e-05, + "gradient_norm": 0.0007718639099039137 + }, + { + "step": 295, + "loss": 8.330566924996674e-05, + "target_ce": 6.714838673360646e-05, + "replay_kl": 1.6157284335349686e-05, + "gradient_norm": 0.0007686130702495575 + }, + { + "step": 296, + "loss": 8.30782882985659e-05, + "target_ce": 6.698947254335508e-05, + "replay_kl": 1.6088815755210817e-05, + "gradient_norm": 0.0007645277655683458 + }, + { + "step": 297, + "loss": 8.295667066704482e-05, + "target_ce": 6.69100190862082e-05, + "replay_kl": 1.6046651580836624e-05, + "gradient_norm": 0.0007615055656060576 + }, + { + "step": 298, + "loss": 8.278854511445388e-05, + "target_ce": 6.679082434857264e-05, + "replay_kl": 1.5997718946891837e-05, + "gradient_norm": 0.0007583878468722105 + }, + { + "step": 299, + "loss": 8.261227048933506e-05, + "target_ce": 6.667164416285232e-05, + "replay_kl": 1.594062996446155e-05, + "gradient_norm": 0.0007547731511294842 + }, + { + "step": 300, + "loss": 8.244413766078651e-05, + "target_ce": 6.655245670117438e-05, + "replay_kl": 1.5891679140622728e-05, + "gradient_norm": 0.000751560612116009 + }, + { + "step": 301, + "loss": 8.227062062360346e-05, + "target_ce": 6.643326923949644e-05, + "replay_kl": 1.5837347746128216e-05, + "gradient_norm": 0.0007478579645976424 + }, + { + "step": 302, + "loss": 8.213405089918524e-05, + "target_ce": 6.635381578234956e-05, + "replay_kl": 1.5780235116835684e-05, + "gradient_norm": 0.0007451281999237835 + }, + { + "step": 303, + "loss": 8.196627459255978e-05, + "target_ce": 6.6234621044714e-05, + "replay_kl": 1.5731651728856377e-05, + "gradient_norm": 0.0007410318939946592 + }, + { + "step": 304, + "loss": 8.184243051800877e-05, + "target_ce": 6.615516758756712e-05, + "replay_kl": 1.568725929246284e-05, + "gradient_norm": 0.000738146947696805 + }, + { + "step": 305, + "loss": 8.171485387720168e-05, + "target_ce": 6.607570685446262e-05, + "replay_kl": 1.5639148841728456e-05, + "gradient_norm": 0.0007353894761763513 + }, + { + "step": 306, + "loss": 8.146968320943415e-05, + "target_ce": 6.587705865968019e-05, + "replay_kl": 1.559262818773277e-05, + "gradient_norm": 0.000731276290025562 + }, + { + "step": 307, + "loss": 8.129278285196051e-05, + "target_ce": 6.575787119800225e-05, + "replay_kl": 1.5534913472947665e-05, + "gradient_norm": 0.0007279776036739349 + }, + { + "step": 308, + "loss": 8.124735904857516e-05, + "target_ce": 6.575787119800225e-05, + "replay_kl": 1.5489484212594107e-05, + "gradient_norm": 0.0007258164696395397 + }, + { + "step": 309, + "loss": 8.099937986116856e-05, + "target_ce": 6.555922300321981e-05, + "replay_kl": 1.544015685794875e-05, + "gradient_norm": 0.0007219749386422336 + }, + { + "step": 310, + "loss": 8.087990136118606e-05, + "target_ce": 6.547976954607293e-05, + "replay_kl": 1.5400129996123724e-05, + "gradient_norm": 0.0007187432493083179 + }, + { + "step": 311, + "loss": 8.079645340330899e-05, + "target_ce": 6.544004281749949e-05, + "replay_kl": 1.53564105858095e-05, + "gradient_norm": 0.0007164978887885809 + }, + { + "step": 312, + "loss": 8.054219506448135e-05, + "target_ce": 6.524139462271705e-05, + "replay_kl": 1.5300800441764295e-05, + "gradient_norm": 0.000712598382961005 + }, + { + "step": 313, + "loss": 8.046177390497178e-05, + "target_ce": 6.520166789414361e-05, + "replay_kl": 1.526010237284936e-05, + "gradient_norm": 0.000709921179804951 + }, + { + "step": 314, + "loss": 8.037574298214167e-05, + "target_ce": 6.516193388961256e-05, + "replay_kl": 1.5213811821013223e-05, + "gradient_norm": 0.0007071885047480464 + }, + { + "step": 315, + "loss": 8.021440589800477e-05, + "target_ce": 6.504274642793462e-05, + "replay_kl": 1.5171659470070153e-05, + "gradient_norm": 0.0007042170618660748 + }, + { + "step": 316, + "loss": 7.999271474545822e-05, + "target_ce": 6.488383223768324e-05, + "replay_kl": 1.5108882507774979e-05, + "gradient_norm": 0.0007010226254351437 + }, + { + "step": 317, + "loss": 7.982855458976701e-05, + "target_ce": 6.47646447760053e-05, + "replay_kl": 1.5063909813761711e-05, + "gradient_norm": 0.0006975305732339621 + }, + { + "step": 318, + "loss": 7.978616486070678e-05, + "target_ce": 6.47646447760053e-05, + "replay_kl": 1.5021518265712075e-05, + "gradient_norm": 0.000695176247972995 + }, + { + "step": 319, + "loss": 7.962595555000007e-05, + "target_ce": 6.464545731432736e-05, + "replay_kl": 1.4980496416683309e-05, + "gradient_norm": 0.0006923323962837458 + }, + { + "step": 320, + "loss": 7.949509017635137e-05, + "target_ce": 6.456599658122286e-05, + "replay_kl": 1.4929097233107314e-05, + "gradient_norm": 0.000689731736201793 + }, + { + "step": 321, + "loss": 7.934503082651645e-05, + "target_ce": 6.444681639550254e-05, + "replay_kl": 1.4898212612024508e-05, + "gradient_norm": 0.0006867148331366479 + }, + { + "step": 322, + "loss": 7.917309267213568e-05, + "target_ce": 6.432762165786698e-05, + "replay_kl": 1.4845471014268696e-05, + "gradient_norm": 0.0006836756365373731 + }, + { + "step": 323, + "loss": 7.908183033578098e-05, + "target_ce": 6.428789492929354e-05, + "replay_kl": 1.4793933587498032e-05, + "gradient_norm": 0.0006810117629356682 + }, + { + "step": 324, + "loss": 7.892402209108695e-05, + "target_ce": 6.41687074676156e-05, + "replay_kl": 1.475531462347135e-05, + "gradient_norm": 0.0006776415393687785 + }, + { + "step": 325, + "loss": 7.883543730713427e-05, + "target_ce": 6.412898073904216e-05, + "replay_kl": 1.4706460206070915e-05, + "gradient_norm": 0.0006753503112122416 + }, + { + "step": 326, + "loss": 7.863722566980869e-05, + "target_ce": 6.397006654879078e-05, + "replay_kl": 1.4667155483039096e-05, + "gradient_norm": 0.0006726093706674874 + }, + { + "step": 327, + "loss": 7.85609008744359e-05, + "target_ce": 6.393033254425973e-05, + "replay_kl": 1.4630566511186771e-05, + "gradient_norm": 0.0006699967198073864 + }, + { + "step": 328, + "loss": 7.835954602342099e-05, + "target_ce": 6.377141835400835e-05, + "replay_kl": 1.458812585042324e-05, + "gradient_norm": 0.000666875159367919 + }, + { + "step": 329, + "loss": 7.827124500181526e-05, + "target_ce": 6.37316916254349e-05, + "replay_kl": 1.4539553376380354e-05, + "gradient_norm": 0.000664474384393543 + }, + { + "step": 330, + "loss": 7.81218841439113e-05, + "target_ce": 6.361249688779935e-05, + "replay_kl": 1.4509385437122546e-05, + "gradient_norm": 0.0006614155718125403 + }, + { + "step": 331, + "loss": 7.804482447681949e-05, + "target_ce": 6.357277015922591e-05, + "replay_kl": 1.4472052498604171e-05, + "gradient_norm": 0.0006589488475583494 + }, + { + "step": 332, + "loss": 7.791594543959945e-05, + "target_ce": 6.349331670207903e-05, + "replay_kl": 1.4422626918531023e-05, + "gradient_norm": 0.0006562935304827988 + }, + { + "step": 333, + "loss": 7.783974433550611e-05, + "target_ce": 6.345358269754797e-05, + "replay_kl": 1.438616163795814e-05, + "gradient_norm": 0.0006541387992911041 + }, + { + "step": 334, + "loss": 7.767439092276618e-05, + "target_ce": 6.333439523587003e-05, + "replay_kl": 1.4339993867906742e-05, + "gradient_norm": 0.0006513313273899257 + }, + { + "step": 335, + "loss": 7.756777631584555e-05, + "target_ce": 6.325493450276554e-05, + "replay_kl": 1.431283999409061e-05, + "gradient_norm": 0.0006488862563855946 + }, + { + "step": 336, + "loss": 7.739629654679447e-05, + "target_ce": 6.31357470410876e-05, + "replay_kl": 1.4260552234190982e-05, + "gradient_norm": 0.000645571737550199 + }, + { + "step": 337, + "loss": 7.731396181043237e-05, + "target_ce": 6.309602031251416e-05, + "replay_kl": 1.4217941497918218e-05, + "gradient_norm": 0.000643747509457171 + }, + { + "step": 338, + "loss": 7.715295942034572e-05, + "target_ce": 6.297683285083622e-05, + "replay_kl": 1.4176124750520103e-05, + "gradient_norm": 0.0006407144828699529 + }, + { + "step": 339, + "loss": 7.698854460613802e-05, + "target_ce": 6.285763811320066e-05, + "replay_kl": 1.4130906492937356e-05, + "gradient_norm": 0.0006383433938026428 + }, + { + "step": 340, + "loss": 7.69252801546827e-05, + "target_ce": 6.281790410866961e-05, + "replay_kl": 1.4107379683991894e-05, + "gradient_norm": 0.0006360662519000471 + }, + { + "step": 341, + "loss": 7.668483885936439e-05, + "target_ce": 6.261926318984479e-05, + "replay_kl": 1.4065575669519603e-05, + "gradient_norm": 0.0006327254232019186 + }, + { + "step": 342, + "loss": 7.660966366529465e-05, + "target_ce": 6.257952918531373e-05, + "replay_kl": 1.4030134479980916e-05, + "gradient_norm": 0.0006302869296632707 + }, + { + "step": 343, + "loss": 7.653213833691552e-05, + "target_ce": 6.253980245674029e-05, + "replay_kl": 1.3992338608659338e-05, + "gradient_norm": 0.0006281155510805547 + }, + { + "step": 344, + "loss": 7.636840746272355e-05, + "target_ce": 6.242061499506235e-05, + "replay_kl": 1.3947788829682395e-05, + "gradient_norm": 0.0006251875311136246 + }, + { + "step": 345, + "loss": 7.632396591361612e-05, + "target_ce": 6.242061499506235e-05, + "replay_kl": 1.3903352737543173e-05, + "gradient_norm": 0.0006234306492842734 + }, + { + "step": 346, + "loss": 7.626043225172907e-05, + "target_ce": 6.23808809905313e-05, + "replay_kl": 1.3879551261197776e-05, + "gradient_norm": 0.0006214064778760076 + }, + { + "step": 347, + "loss": 7.610305328853428e-05, + "target_ce": 6.226170080481097e-05, + "replay_kl": 1.384135612170212e-05, + "gradient_norm": 0.0006186833488754928 + }, + { + "step": 348, + "loss": 7.598360389238223e-05, + "target_ce": 6.218224007170647e-05, + "replay_kl": 1.3801362001686357e-05, + "gradient_norm": 0.000616309407632798 + }, + { + "step": 349, + "loss": 7.586961146444082e-05, + "target_ce": 6.210277933860198e-05, + "replay_kl": 1.3766830306849442e-05, + "gradient_norm": 0.0006139872130006552 + }, + { + "step": 350, + "loss": 7.564145926153287e-05, + "target_ce": 6.190412386786193e-05, + "replay_kl": 1.3737333574681543e-05, + "gradient_norm": 0.0006109765381552279 + }, + { + "step": 351, + "loss": 7.547389395767823e-05, + "target_ce": 6.178493640618399e-05, + "replay_kl": 1.3688960279978346e-05, + "gradient_norm": 0.0006081349565647542 + }, + { + "step": 352, + "loss": 7.548047869931906e-05, + "target_ce": 6.182466313475743e-05, + "replay_kl": 1.3655817383551039e-05, + "gradient_norm": 0.000606791116297245 + }, + { + "step": 353, + "loss": 7.53666099626571e-05, + "target_ce": 6.174520967761055e-05, + "replay_kl": 1.362139664706774e-05, + "gradient_norm": 0.0006045085610821843 + }, + { + "step": 354, + "loss": 7.521080260630697e-05, + "target_ce": 6.1626014939975e-05, + "replay_kl": 1.3584790394816082e-05, + "gradient_norm": 0.0006013883394189179 + }, + { + "step": 355, + "loss": 7.517787889810279e-05, + "target_ce": 6.1626014939975e-05, + "replay_kl": 1.35518657771172e-05, + "gradient_norm": 0.0005998634733259678 + }, + { + "step": 356, + "loss": 7.50230610719882e-05, + "target_ce": 6.150683475425467e-05, + "replay_kl": 1.3516224498744123e-05, + "gradient_norm": 0.0005970126367174089 + }, + { + "step": 357, + "loss": 7.494156307075173e-05, + "target_ce": 6.1467093473766e-05, + "replay_kl": 1.3474472325469833e-05, + "gradient_norm": 0.0005954470252618194 + }, + { + "step": 358, + "loss": 7.474856829503551e-05, + "target_ce": 6.130818655947223e-05, + "replay_kl": 1.3440384464047384e-05, + "gradient_norm": 0.0005923871067352593 + }, + { + "step": 359, + "loss": 7.466778333764523e-05, + "target_ce": 6.126844527898356e-05, + "replay_kl": 1.3399339877651073e-05, + "gradient_norm": 0.0005907727754674852 + }, + { + "step": 360, + "loss": 7.455179002135992e-05, + "target_ce": 6.118899182183668e-05, + "replay_kl": 1.3362801837502047e-05, + "gradient_norm": 0.000588586030062288 + }, + { + "step": 361, + "loss": 7.440154877258465e-05, + "target_ce": 6.106979708420113e-05, + "replay_kl": 1.333175168838352e-05, + "gradient_norm": 0.0005856833886355162 + }, + { + "step": 362, + "loss": 7.433231803588569e-05, + "target_ce": 6.103007399360649e-05, + "replay_kl": 1.3302243132784497e-05, + "gradient_norm": 0.0005839263903908432 + }, + { + "step": 363, + "loss": 7.42318807169795e-05, + "target_ce": 6.095060962252319e-05, + "replay_kl": 1.3281269275466911e-05, + "gradient_norm": 0.000581670377869159 + }, + { + "step": 364, + "loss": 7.418848690576851e-05, + "target_ce": 6.095060962252319e-05, + "replay_kl": 1.3237880921224132e-05, + "gradient_norm": 0.0005799807258881629 + }, + { + "step": 365, + "loss": 7.408464443869889e-05, + "target_ce": 6.0871145251439884e-05, + "replay_kl": 1.3213501006248407e-05, + "gradient_norm": 0.0005775647587142885 + }, + { + "step": 366, + "loss": 7.385474600596353e-05, + "target_ce": 6.067249705665745e-05, + "replay_kl": 1.3182247130316682e-05, + "gradient_norm": 0.0005751264980062842 + }, + { + "step": 367, + "loss": 7.378323061857373e-05, + "target_ce": 6.06327666901052e-05, + "replay_kl": 1.3150463928468525e-05, + "gradient_norm": 0.0005731950514018536 + }, + { + "step": 368, + "loss": 7.366996578639373e-05, + "target_ce": 6.055330959497951e-05, + "replay_kl": 1.3116654372424819e-05, + "gradient_norm": 0.0005708730313926935 + }, + { + "step": 369, + "loss": 7.358645962085575e-05, + "target_ce": 6.051358286640607e-05, + "replay_kl": 1.3072875844954979e-05, + "gradient_norm": 0.0005688995588570833 + }, + { + "step": 370, + "loss": 7.353364344453439e-05, + "target_ce": 6.047384886187501e-05, + "replay_kl": 1.3059794582659379e-05, + "gradient_norm": 0.0005668906378559768 + }, + { + "step": 371, + "loss": 7.337854185607284e-05, + "target_ce": 6.0354661400197074e-05, + "replay_kl": 1.3023879546381067e-05, + "gradient_norm": 0.0005646642530336976 + }, + { + "step": 372, + "loss": 7.327253115363419e-05, + "target_ce": 6.027520066709258e-05, + "replay_kl": 1.2997332305531017e-05, + "gradient_norm": 0.0005622530588880181 + }, + { + "step": 373, + "loss": 7.318986899917945e-05, + "target_ce": 6.0235473938519135e-05, + "replay_kl": 1.2954397789144423e-05, + "gradient_norm": 0.0005604191101156175 + }, + { + "step": 374, + "loss": 7.316955452552065e-05, + "target_ce": 6.0235473938519135e-05, + "replay_kl": 1.2934079677506816e-05, + "gradient_norm": 0.0005588330095633864 + }, + { + "step": 375, + "loss": 7.297898264368996e-05, + "target_ce": 6.007655247231014e-05, + "replay_kl": 1.2902431990369223e-05, + "gradient_norm": 0.0005559187266044319 + }, + { + "step": 376, + "loss": 7.285679748747498e-05, + "target_ce": 5.999709537718445e-05, + "replay_kl": 1.2859702110290527e-05, + "gradient_norm": 0.0005541722057387233 + }, + { + "step": 377, + "loss": 7.282506703631952e-05, + "target_ce": 5.999709537718445e-05, + "replay_kl": 1.2827973478124477e-05, + "gradient_norm": 0.0005522405845113099 + }, + { + "step": 378, + "loss": 7.271913636941463e-05, + "target_ce": 5.991763828205876e-05, + "replay_kl": 1.2801497177861165e-05, + "gradient_norm": 0.0005501678679138422 + }, + { + "step": 379, + "loss": 7.2656330303289e-05, + "target_ce": 5.9877904277527705e-05, + "replay_kl": 1.2778427844750695e-05, + "gradient_norm": 0.0005484328139573336 + }, + { + "step": 380, + "loss": 7.253933290485293e-05, + "target_ce": 5.979844354442321e-05, + "replay_kl": 1.2740891179419123e-05, + "gradient_norm": 0.0005462789558805525 + }, + { + "step": 381, + "loss": 7.235424709506333e-05, + "target_ce": 5.96395148022566e-05, + "replay_kl": 1.2714734111796133e-05, + "gradient_norm": 0.0005437317886389792 + }, + { + "step": 382, + "loss": 7.224485307233408e-05, + "target_ce": 5.956005770713091e-05, + "replay_kl": 1.2684797184192576e-05, + "gradient_norm": 0.0005417125066742301 + }, + { + "step": 383, + "loss": 7.221031410153955e-05, + "target_ce": 5.956005770713091e-05, + "replay_kl": 1.265025457541924e-05, + "gradient_norm": 0.0005402658134698868 + }, + { + "step": 384, + "loss": 7.210198964457959e-05, + "target_ce": 5.9480593336047605e-05, + "replay_kl": 1.2621399946510792e-05, + "gradient_norm": 0.000538229534868151 + }, + { + "step": 385, + "loss": 7.203371205832809e-05, + "target_ce": 5.944086660747416e-05, + "replay_kl": 1.2592845450853929e-05, + "gradient_norm": 0.0005366262048482895 + }, + { + "step": 386, + "loss": 7.187132723629475e-05, + "target_ce": 5.9321679145796224e-05, + "replay_kl": 1.254964718100382e-05, + "gradient_norm": 0.0005339309573173523 + }, + { + "step": 387, + "loss": 7.176554208854213e-05, + "target_ce": 5.924221841269173e-05, + "replay_kl": 1.252332549483981e-05, + "gradient_norm": 0.0005323102232068777 + }, + { + "step": 388, + "loss": 7.169687887653708e-05, + "target_ce": 5.920248804613948e-05, + "replay_kl": 1.249439264938701e-05, + "gradient_norm": 0.0005303401267156005 + }, + { + "step": 389, + "loss": 7.159764936659485e-05, + "target_ce": 5.912303095101379e-05, + "replay_kl": 1.2474620234570466e-05, + "gradient_norm": 0.0005286111845634878 + }, + { + "step": 390, + "loss": 7.156663195928559e-05, + "target_ce": 5.912303095101379e-05, + "replay_kl": 1.2443602827261202e-05, + "gradient_norm": 0.0005269957473501563 + }, + { + "step": 391, + "loss": 7.14497291482985e-05, + "target_ce": 5.904357021790929e-05, + "replay_kl": 1.2406160749378614e-05, + "gradient_norm": 0.0005247963708825409 + }, + { + "step": 392, + "loss": 7.141874812077731e-05, + "target_ce": 5.904357021790929e-05, + "replay_kl": 1.2375180631352123e-05, + "gradient_norm": 0.0005234518321231008 + }, + { + "step": 393, + "loss": 7.126968557713553e-05, + "target_ce": 5.892438275623135e-05, + "replay_kl": 1.2345304639893584e-05, + "gradient_norm": 0.0005210710223764181 + }, + { + "step": 394, + "loss": 7.119925430743024e-05, + "target_ce": 5.88846487517003e-05, + "replay_kl": 1.2314604646235239e-05, + "gradient_norm": 0.0005191650125198066 + }, + { + "step": 395, + "loss": 7.10581662133336e-05, + "target_ce": 5.876546129002236e-05, + "replay_kl": 1.2292701285332441e-05, + "gradient_norm": 0.0005170828080736101 + }, + { + "step": 396, + "loss": 7.106120028765872e-05, + "target_ce": 5.880519165657461e-05, + "replay_kl": 1.2256010450073518e-05, + "gradient_norm": 0.0005161543376743793 + }, + { + "step": 397, + "loss": 7.07970539224334e-05, + "target_ce": 5.856681309523992e-05, + "replay_kl": 1.2230242646182887e-05, + "gradient_norm": 0.0005134940729476511 + }, + { + "step": 398, + "loss": 7.073435699567199e-05, + "target_ce": 5.852708636666648e-05, + "replay_kl": 1.220727244799491e-05, + "gradient_norm": 0.0005116115789860487 + }, + { + "step": 399, + "loss": 7.06965583958663e-05, + "target_ce": 5.852708636666648e-05, + "replay_kl": 1.216947021021042e-05, + "gradient_norm": 0.0005102415452711284 + }, + { + "step": 400, + "loss": 7.054232992231846e-05, + "target_ce": 5.8407895267009735e-05, + "replay_kl": 1.2134436474298127e-05, + "gradient_norm": 0.0005080813425593078 + }, + { + "step": 401, + "loss": 7.05200363881886e-05, + "target_ce": 5.8407895267009735e-05, + "replay_kl": 1.211214384966297e-05, + "gradient_norm": 0.0005066445446573198 + }, + { + "step": 402, + "loss": 7.042289507808164e-05, + "target_ce": 5.832843089592643e-05, + "replay_kl": 1.2094463272660505e-05, + "gradient_norm": 0.0005045633879490197 + }, + { + "step": 403, + "loss": 7.038577314233407e-05, + "target_ce": 5.832843089592643e-05, + "replay_kl": 1.2057342246407643e-05, + "gradient_norm": 0.0005031842738389969 + }, + { + "step": 404, + "loss": 7.019635813776404e-05, + "target_ce": 5.816951670567505e-05, + "replay_kl": 1.2026844160573091e-05, + "gradient_norm": 0.0005011809407733381 + }, + { + "step": 405, + "loss": 7.017282769083977e-05, + "target_ce": 5.816951670567505e-05, + "replay_kl": 1.200331280415412e-05, + "gradient_norm": 0.0004997010692022741 + }, + { + "step": 406, + "loss": 7.010515400907025e-05, + "target_ce": 5.8129782701143995e-05, + "replay_kl": 1.1975371307926252e-05, + "gradient_norm": 0.00049788155592978 + }, + { + "step": 407, + "loss": 6.991331611061469e-05, + "target_ce": 5.7970868510892615e-05, + "replay_kl": 1.194244669022737e-05, + "gradient_norm": 0.0004952803137712181 + }, + { + "step": 408, + "loss": 6.98893636581488e-05, + "target_ce": 5.7970868510892615e-05, + "replay_kl": 1.1918494237761479e-05, + "gradient_norm": 0.0004941883380524814 + }, + { + "step": 409, + "loss": 6.978566671023145e-05, + "target_ce": 5.789140413980931e-05, + "replay_kl": 1.1894261660927441e-05, + "gradient_norm": 0.0004920139908790588 + }, + { + "step": 410, + "loss": 6.967301305849105e-05, + "target_ce": 5.781194704468362e-05, + "replay_kl": 1.1861065104312729e-05, + "gradient_norm": 0.0004904275992885232 + }, + { + "step": 411, + "loss": 6.964486237848178e-05, + "target_ce": 5.781194704468362e-05, + "replay_kl": 1.1832914424303453e-05, + "gradient_norm": 0.0004886823007836938 + }, + { + "step": 412, + "loss": 6.954088166821748e-05, + "target_ce": 5.773248631157912e-05, + "replay_kl": 1.1808393537648953e-05, + "gradient_norm": 0.00048720845370553434 + }, + { + "step": 413, + "loss": 6.948180816834792e-05, + "target_ce": 5.7692755945026875e-05, + "replay_kl": 1.1789054951805156e-05, + "gradient_norm": 0.00048527863691560924 + }, + { + "step": 414, + "loss": 6.944922643015161e-05, + "target_ce": 5.7692755945026875e-05, + "replay_kl": 1.1756473213608842e-05, + "gradient_norm": 0.00048409122973680496 + }, + { + "step": 415, + "loss": 6.931105599505827e-05, + "target_ce": 5.757356484537013e-05, + "replay_kl": 1.173749114968814e-05, + "gradient_norm": 0.00048214226262643933 + }, + { + "step": 416, + "loss": 6.927778304088861e-05, + "target_ce": 5.757356484537013e-05, + "replay_kl": 1.1704217286023777e-05, + "gradient_norm": 0.00048113660886883736 + }, + { + "step": 417, + "loss": 6.921748718013987e-05, + "target_ce": 5.753383811679669e-05, + "replay_kl": 1.1683647244353779e-05, + "gradient_norm": 0.0004794019623659551 + }, + { + "step": 418, + "loss": 6.910935917403549e-05, + "target_ce": 5.745437738369219e-05, + "replay_kl": 1.1654980880848598e-05, + "gradient_norm": 0.00047764446935616434 + }, + { + "step": 419, + "loss": 6.901434971950948e-05, + "target_ce": 5.737491665058769e-05, + "replay_kl": 1.1639432159427088e-05, + "gradient_norm": 0.0004760726587846875 + }, + { + "step": 420, + "loss": 6.894793477840722e-05, + "target_ce": 5.7335186284035444e-05, + "replay_kl": 1.1612746675382368e-05, + "gradient_norm": 0.0004744946782011539 + }, + { + "step": 421, + "loss": 6.888270581839606e-05, + "target_ce": 5.7295459555462e-05, + "replay_kl": 1.1587248081923462e-05, + "gradient_norm": 0.0004728655912913382 + }, + { + "step": 422, + "loss": 6.885643233545125e-05, + "target_ce": 5.7295459555462e-05, + "replay_kl": 1.156097187049454e-05, + "gradient_norm": 0.0004717841511592269 + }, + { + "step": 423, + "loss": 6.867344927741215e-05, + "target_ce": 5.713653808925301e-05, + "replay_kl": 1.1536913007148542e-05, + "gradient_norm": 0.0004694123053923249 + }, + { + "step": 424, + "loss": 6.868950731586665e-05, + "target_ce": 5.717626845580526e-05, + "replay_kl": 1.1513240679050796e-05, + "gradient_norm": 0.00046835196553729475 + }, + { + "step": 425, + "loss": 6.859512359369546e-05, + "target_ce": 5.709680772270076e-05, + "replay_kl": 1.1498312233015895e-05, + "gradient_norm": 0.0004665748856496066 + }, + { + "step": 426, + "loss": 6.852240767329931e-05, + "target_ce": 5.705708099412732e-05, + "replay_kl": 1.1465326679171994e-05, + "gradient_norm": 0.00046514614950865507 + }, + { + "step": 427, + "loss": 6.846748146926984e-05, + "target_ce": 5.701734698959626e-05, + "replay_kl": 1.1450132660684176e-05, + "gradient_norm": 0.00046370510244742036 + }, + { + "step": 428, + "loss": 6.840956484666094e-05, + "target_ce": 5.6977616623044014e-05, + "replay_kl": 1.1431947314122226e-05, + "gradient_norm": 0.0004619905957952142 + }, + { + "step": 429, + "loss": 6.830500205978751e-05, + "target_ce": 5.6898159527918324e-05, + "replay_kl": 1.1406841622374486e-05, + "gradient_norm": 0.0004603322595357895 + }, + { + "step": 430, + "loss": 6.820199632784352e-05, + "target_ce": 5.681869879481383e-05, + "replay_kl": 1.1383300261513796e-05, + "gradient_norm": 0.0004587768344208598 + }, + { + "step": 431, + "loss": 6.821371789555997e-05, + "target_ce": 5.685842552338727e-05, + "replay_kl": 1.1355292372172698e-05, + "gradient_norm": 0.00045760005014017224 + }, + { + "step": 432, + "loss": 6.81570527376607e-05, + "target_ce": 5.681869879481383e-05, + "replay_kl": 1.1338357580825686e-05, + "gradient_norm": 0.00045612078974954784 + }, + { + "step": 433, + "loss": 6.789610779378563e-05, + "target_ce": 5.6580305681563914e-05, + "replay_kl": 1.1315805750200525e-05, + "gradient_norm": 0.0004538663197308779 + }, + { + "step": 434, + "loss": 6.786783342249691e-05, + "target_ce": 5.6580305681563914e-05, + "replay_kl": 1.1287530469417106e-05, + "gradient_norm": 0.000452740176115185 + }, + { + "step": 435, + "loss": 6.783840217394754e-05, + "target_ce": 5.6580305681563914e-05, + "replay_kl": 1.1258098311373033e-05, + "gradient_norm": 0.0004516798071563244 + }, + { + "step": 436, + "loss": 6.773590575903654e-05, + "target_ce": 5.650085222441703e-05, + "replay_kl": 1.1235057172598317e-05, + "gradient_norm": 0.0004495616885833442 + }, + { + "step": 437, + "loss": 6.756011862307787e-05, + "target_ce": 5.634192712022923e-05, + "replay_kl": 1.1218193321838044e-05, + "gradient_norm": 0.00044769796659238636 + }, + { + "step": 438, + "loss": 6.7528584622778e-05, + "target_ce": 5.634192712022923e-05, + "replay_kl": 1.1186660231032874e-05, + "gradient_norm": 0.0004462682409211993 + }, + { + "step": 439, + "loss": 6.75069895805791e-05, + "target_ce": 5.634192712022923e-05, + "replay_kl": 1.1165065188833978e-05, + "gradient_norm": 0.0004453485016711056 + }, + { + "step": 440, + "loss": 6.743925769114867e-05, + "target_ce": 5.630220039165579e-05, + "replay_kl": 1.1137056389998179e-05, + "gradient_norm": 0.00044372602133080363 + }, + { + "step": 441, + "loss": 6.743011908838525e-05, + "target_ce": 5.630220039165579e-05, + "replay_kl": 1.1127918696729466e-05, + "gradient_norm": 0.00044255948159843683 + }, + { + "step": 442, + "loss": 6.72723472234793e-05, + "target_ce": 5.618300929199904e-05, + "replay_kl": 1.1089337931480259e-05, + "gradient_norm": 0.0004408814129419625 + }, + { + "step": 443, + "loss": 6.722626130795106e-05, + "target_ce": 5.614327164948918e-05, + "replay_kl": 1.1082988748967182e-05, + "gradient_norm": 0.00043941993499174714 + }, + { + "step": 444, + "loss": 6.719640805386007e-05, + "target_ce": 5.614327164948918e-05, + "replay_kl": 1.1053132766392082e-05, + "gradient_norm": 0.0004380884056445211 + }, + { + "step": 445, + "loss": 6.713853508699685e-05, + "target_ce": 5.610354492091574e-05, + "replay_kl": 1.1034992894565221e-05, + "gradient_norm": 0.0004367047513369471 + }, + { + "step": 446, + "loss": 6.69615765218623e-05, + "target_ce": 5.594463073066436e-05, + "replay_kl": 1.1016947610187344e-05, + "gradient_norm": 0.00043477051076479256 + }, + { + "step": 447, + "loss": 6.693983596051112e-05, + "target_ce": 5.594463073066436e-05, + "replay_kl": 1.0995207958330866e-05, + "gradient_norm": 0.0004336547281127423 + }, + { + "step": 448, + "loss": 6.687708082608879e-05, + "target_ce": 5.5904893088154495e-05, + "replay_kl": 1.0972191375913098e-05, + "gradient_norm": 0.0004322134773246944 + }, + { + "step": 449, + "loss": 6.68459470034577e-05, + "target_ce": 5.5904893088154495e-05, + "replay_kl": 1.0941052096313797e-05, + "gradient_norm": 0.0004310157091822475 + }, + { + "step": 450, + "loss": 6.670535367447883e-05, + "target_ce": 5.578570198849775e-05, + "replay_kl": 1.0919654414465185e-05, + "gradient_norm": 0.0004290675278753042 + }, + { + "step": 451, + "loss": 6.67613057885319e-05, + "target_ce": 5.586516635958105e-05, + "replay_kl": 1.0896139428950846e-05, + "gradient_norm": 0.0004282629815861583 + }, + { + "step": 452, + "loss": 6.662101077381521e-05, + "target_ce": 5.574597525992431e-05, + "replay_kl": 1.0875033694901504e-05, + "gradient_norm": 0.0004267145413905382 + }, + { + "step": 453, + "loss": 6.652169395238161e-05, + "target_ce": 5.566651452681981e-05, + "replay_kl": 1.0855175787582994e-05, + "gradient_norm": 0.00042547460179775953 + }, + { + "step": 454, + "loss": 6.649882561760023e-05, + "target_ce": 5.566651452681981e-05, + "replay_kl": 1.083231018128572e-05, + "gradient_norm": 0.00042424735147506 + }, + { + "step": 455, + "loss": 6.644595123361796e-05, + "target_ce": 5.562678779824637e-05, + "replay_kl": 1.0819166163855698e-05, + "gradient_norm": 0.00042275135638192296 + }, + { + "step": 456, + "loss": 6.63465543766506e-05, + "target_ce": 5.5547323427163064e-05, + "replay_kl": 1.0799230039992835e-05, + "gradient_norm": 0.0004211130435578525 + }, + { + "step": 457, + "loss": 6.63237224216573e-05, + "target_ce": 5.5547323427163064e-05, + "replay_kl": 1.0776401722978335e-05, + "gradient_norm": 0.0004202015115879476 + }, + { + "step": 458, + "loss": 6.629261042689905e-05, + "target_ce": 5.5547323427163064e-05, + "replay_kl": 1.0745285180746578e-05, + "gradient_norm": 0.00041925095138140023 + }, + { + "step": 459, + "loss": 6.624194065807387e-05, + "target_ce": 5.550759669858962e-05, + "replay_kl": 1.073434395948425e-05, + "gradient_norm": 0.0004179237876087427 + }, + { + "step": 460, + "loss": 6.614420999540016e-05, + "target_ce": 5.542813232750632e-05, + "replay_kl": 1.0716075848904438e-05, + "gradient_norm": 0.0004163173434790224 + }, + { + "step": 461, + "loss": 6.604632653761655e-05, + "target_ce": 5.5348678870359436e-05, + "replay_kl": 1.0697649486246519e-05, + "gradient_norm": 0.0004148065345361829 + }, + { + "step": 462, + "loss": 6.602931534871459e-05, + "target_ce": 5.5348678870359436e-05, + "replay_kl": 1.0680632840376347e-05, + "gradient_norm": 0.00041372637497261167 + }, + { + "step": 463, + "loss": 6.58830176689662e-05, + "target_ce": 5.5229480494745076e-05, + "replay_kl": 1.0653536264726426e-05, + "gradient_norm": 0.0004122159443795681 + }, + { + "step": 464, + "loss": 6.586468953173608e-05, + "target_ce": 5.5229480494745076e-05, + "replay_kl": 1.0635207218001597e-05, + "gradient_norm": 0.00041119736852124333 + }, + { + "step": 465, + "loss": 6.579879118362442e-05, + "target_ce": 5.5189753766171634e-05, + "replay_kl": 1.0609040145936888e-05, + "gradient_norm": 0.0004096453485544771 + }, + { + "step": 466, + "loss": 6.58201752230525e-05, + "target_ce": 5.5229480494745076e-05, + "replay_kl": 1.0590692909318022e-05, + "gradient_norm": 0.0004089964786544442 + }, + { + "step": 467, + "loss": 6.571941048605368e-05, + "target_ce": 5.515002703759819e-05, + "replay_kl": 1.0569385267444886e-05, + "gradient_norm": 0.00040750621701590717 + }, + { + "step": 468, + "loss": 6.561731424881145e-05, + "target_ce": 5.507056266651489e-05, + "replay_kl": 1.0546751582296565e-05, + "gradient_norm": 0.0004058210179209709 + }, + { + "step": 469, + "loss": 6.560062320204452e-05, + "target_ce": 5.507056266651489e-05, + "replay_kl": 1.0530059626034927e-05, + "gradient_norm": 0.00040476315189152956 + }, + { + "step": 470, + "loss": 6.550057150889188e-05, + "target_ce": 5.499110193341039e-05, + "replay_kl": 1.0509468665986788e-05, + "gradient_norm": 0.0004031871212646365 + }, + { + "step": 471, + "loss": 6.54410250717774e-05, + "target_ce": 5.495137520483695e-05, + "replay_kl": 1.048965350491926e-05, + "gradient_norm": 0.00040182002703659236 + }, + { + "step": 472, + "loss": 6.534715794259682e-05, + "target_ce": 5.4871910833753645e-05, + "replay_kl": 1.0475247108843178e-05, + "gradient_norm": 0.0004006425151601434 + }, + { + "step": 473, + "loss": 6.52919479762204e-05, + "target_ce": 5.483217319124378e-05, + "replay_kl": 1.0459773875481915e-05, + "gradient_norm": 0.00039951669168658555 + }, + { + "step": 474, + "loss": 6.52236703899689e-05, + "target_ce": 5.479244646267034e-05, + "replay_kl": 1.0431226655782666e-05, + "gradient_norm": 0.0003980371984653175 + }, + { + "step": 475, + "loss": 6.521323666675016e-05, + "target_ce": 5.479244646267034e-05, + "replay_kl": 1.0420790204079822e-05, + "gradient_norm": 0.00039696949534118176 + }, + { + "step": 476, + "loss": 6.511898391181603e-05, + "target_ce": 5.4712985729565844e-05, + "replay_kl": 1.0405997272755485e-05, + "gradient_norm": 0.0003954025451093912 + }, + { + "step": 477, + "loss": 6.50494039291516e-05, + "target_ce": 5.46732590009924e-05, + "replay_kl": 1.0376146747148596e-05, + "gradient_norm": 0.00039412674959748983 + }, + { + "step": 478, + "loss": 6.498753646155819e-05, + "target_ce": 5.463352135848254e-05, + "replay_kl": 1.0354015103075653e-05, + "gradient_norm": 0.00039297385956160724 + }, + { + "step": 479, + "loss": 6.497140566352755e-05, + "target_ce": 5.463352135848254e-05, + "replay_kl": 1.0337886124034412e-05, + "gradient_norm": 0.00039209084934554994 + }, + { + "step": 480, + "loss": 6.479084549937397e-05, + "target_ce": 5.447460353025235e-05, + "replay_kl": 1.0316244697605725e-05, + "gradient_norm": 0.000390315311960876 + }, + { + "step": 481, + "loss": 6.477732677012682e-05, + "target_ce": 5.447460353025235e-05, + "replay_kl": 1.030271960189566e-05, + "gradient_norm": 0.0003895405970979482 + }, + { + "step": 482, + "loss": 6.475056579802185e-05, + "target_ce": 5.447460353025235e-05, + "replay_kl": 1.0275961358274799e-05, + "gradient_norm": 0.0003885312471538782 + }, + { + "step": 483, + "loss": 6.465858314186335e-05, + "target_ce": 5.4395142797147855e-05, + "replay_kl": 1.0263442163704894e-05, + "gradient_norm": 0.0003868940402753651 + }, + { + "step": 484, + "loss": 6.459563155658543e-05, + "target_ce": 5.4355416068574414e-05, + "replay_kl": 1.0240215488011017e-05, + "gradient_norm": 0.00038573105121031404 + }, + { + "step": 485, + "loss": 6.457972631324083e-05, + "target_ce": 5.4355416068574414e-05, + "replay_kl": 1.022431388264522e-05, + "gradient_norm": 0.00038457097252830863 + }, + { + "step": 486, + "loss": 6.456488335970789e-05, + "target_ce": 5.4355416068574414e-05, + "replay_kl": 1.0209466381638777e-05, + "gradient_norm": 0.0003836924734059721 + }, + { + "step": 487, + "loss": 6.451175431720912e-05, + "target_ce": 5.431568934000097e-05, + "replay_kl": 1.0196067705692258e-05, + "gradient_norm": 0.00038238975685089827 + }, + { + "step": 488, + "loss": 6.448970088968053e-05, + "target_ce": 5.431568934000097e-05, + "replay_kl": 1.0174013368668966e-05, + "gradient_norm": 0.00038128066807985306 + }, + { + "step": 489, + "loss": 6.447907071560621e-05, + "target_ce": 5.431568934000097e-05, + "replay_kl": 1.0163377737626433e-05, + "gradient_norm": 0.00038044911343604326 + }, + { + "step": 490, + "loss": 6.438342825276777e-05, + "target_ce": 5.423622496891767e-05, + "replay_kl": 1.01472014648607e-05, + "gradient_norm": 0.000379294651793316 + }, + { + "step": 491, + "loss": 6.428829510696232e-05, + "target_ce": 5.4156760597834364e-05, + "replay_kl": 1.0131530871149153e-05, + "gradient_norm": 0.0003780682454816997 + }, + { + "step": 492, + "loss": 6.419449346140027e-05, + "target_ce": 5.4077299864729866e-05, + "replay_kl": 1.0117195415659808e-05, + "gradient_norm": 0.00037629291182383895 + }, + { + "step": 493, + "loss": 6.416846008505672e-05, + "target_ce": 5.4077299864729866e-05, + "replay_kl": 1.009116203931626e-05, + "gradient_norm": 0.00037548833643086255 + }, + { + "step": 494, + "loss": 6.414605741156265e-05, + "target_ce": 5.4077299864729866e-05, + "replay_kl": 1.0068758456327487e-05, + "gradient_norm": 0.00037443439941853285 + }, + { + "step": 495, + "loss": 6.404167652362958e-05, + "target_ce": 5.399784640758298e-05, + "replay_kl": 1.0043831025541294e-05, + "gradient_norm": 0.000373207702068612 + }, + { + "step": 496, + "loss": 6.411318463506177e-05, + "target_ce": 5.4077299864729866e-05, + "replay_kl": 1.0035886589321308e-05, + "gradient_norm": 0.00037256907671689987 + }, + { + "step": 497, + "loss": 6.397190736606717e-05, + "target_ce": 5.395810876507312e-05, + "replay_kl": 1.0013797691499349e-05, + "gradient_norm": 0.00037117788451723754 + }, + { + "step": 498, + "loss": 6.386277527781203e-05, + "target_ce": 5.3878644393989816e-05, + "replay_kl": 9.984129974327516e-06, + "gradient_norm": 0.0003697999636642635 + }, + { + "step": 499, + "loss": 6.385435699485242e-05, + "target_ce": 5.3878644393989816e-05, + "replay_kl": 9.975710781873204e-06, + "gradient_norm": 0.0003690277226269245 + }, + { + "step": 500, + "loss": 6.379459227900952e-05, + "target_ce": 5.3838917665416375e-05, + "replay_kl": 9.955677342077252e-06, + "gradient_norm": 0.0003675800107885152 + }, + { + "step": 501, + "loss": 6.374484655680135e-05, + "target_ce": 5.3799187298864126e-05, + "replay_kl": 9.945659257937223e-06, + "gradient_norm": 0.00036688093678094447 + }, + { + "step": 502, + "loss": 6.359865074045956e-05, + "target_ce": 5.367999619920738e-05, + "replay_kl": 9.91865363175748e-06, + "gradient_norm": 0.00036529553472064435 + }, + { + "step": 503, + "loss": 6.358401151373982e-05, + "target_ce": 5.367999619920738e-05, + "replay_kl": 9.904011676553637e-06, + "gradient_norm": 0.00036430760519579053 + }, + { + "step": 504, + "loss": 6.352353375405073e-05, + "target_ce": 5.364026583265513e-05, + "replay_kl": 9.883271559374407e-06, + "gradient_norm": 0.0003628207778092474 + }, + { + "step": 505, + "loss": 6.350885814754292e-05, + "target_ce": 5.3640262194676325e-05, + "replay_kl": 9.868595952866599e-06, + "gradient_norm": 0.0003621468786150217 + }, + { + "step": 506, + "loss": 6.340800609905273e-05, + "target_ce": 5.356079782359302e-05, + "replay_kl": 9.847208275459707e-06, + "gradient_norm": 0.00036053991061635315 + }, + { + "step": 507, + "loss": 6.339292303891852e-05, + "target_ce": 5.356079782359302e-05, + "replay_kl": 9.832124305830803e-06, + "gradient_norm": 0.0003597973845899105 + }, + { + "step": 508, + "loss": 6.33012386970222e-05, + "target_ce": 5.348134072846733e-05, + "replay_kl": 9.819895240070764e-06, + "gradient_norm": 0.0003582737408578396 + }, + { + "step": 509, + "loss": 6.328556628432125e-05, + "target_ce": 5.348134072846733e-05, + "replay_kl": 9.804228284338024e-06, + "gradient_norm": 0.0003574688744265586 + }, + { + "step": 510, + "loss": 6.326488801278174e-05, + "target_ce": 5.348134072846733e-05, + "replay_kl": 9.78354819380911e-06, + "gradient_norm": 0.0003564542857930064 + }, + { + "step": 511, + "loss": 6.316829967545345e-05, + "target_ce": 5.3401876357384026e-05, + "replay_kl": 9.766426046553534e-06, + "gradient_norm": 0.00035543725243769586 + }, + { + "step": 512, + "loss": 6.312069308478385e-05, + "target_ce": 5.336214599083178e-05, + "replay_kl": 9.758543455973268e-06, + "gradient_norm": 0.0003545303188730031 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..fbff1bfc9422a11bff83c0870a03f7470188c9d5 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "first_strict-01", + "role": "first", + "stratum": "strict", + "lr": 0.0001, + "arm": "sham", + "path": "first_strict-01/lr0.0001-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.71926071238704e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.411745071411133 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "answer_nll": 0.12276691943407059 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8523622047244095, + "accuracy": 0.8523622047244095, + "answer_nll": 0.5965579748153687 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.279547691345215, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1837655007839203 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010716346150729805 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005335012101568282 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000332289666403085 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004074112803209573 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "c2abe170e83986e3ab9bbce7eb71de950c36d7be5f02908cbeeaa88d612a4b9b", + "delta_l2": 0.414420485496521, + "tensor_file_sha256": "0a3a5b5fc5d4567cf71e91c92ad130b12f7caa5aadb2c70fd697ed6c144039e1" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..c16c3feed2164c5b0555a5a9383aaf96d1b13a01 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021872512297704816 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.602686882019043 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8543307086614174, + "accuracy": 0.8543307086614174, + "answer_nll": 0.5331729054450989 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.385082244873047, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004980341182090342 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00033296382753178477 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003805016167461872 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.7788631743751466e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.406096458435059 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9700520833333334, + "accuracy": 0.9700520833333334, + "answer_nll": 0.13640756905078888 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.84251968503937, + "accuracy": 0.84251968503937, + "answer_nll": 0.6215250492095947 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.472951889038086, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9575289575289575, + "accuracy": 0.9575289575289575, + "answer_nll": 0.20167143642902374 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011553647345863283 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0006260770605877042 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003329444443807006 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00047080020885914564 + } + }, + "model_sha256": "a612fa646e99e957b28f61e5b97231e4d3d54ead0b0f88afb5443f245c79e21c", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 1.5322955732699484e-05, + "target_ce": 1.4225399354472756e-05, + "replay_kl": 1.0975568329740781e-06, + "gradient_norm": 7.254481897689402e-05 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.71926071238704e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.405889511108398 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9700520833333334, + "accuracy": 0.9700520833333334, + "answer_nll": 0.1276445835828781 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8464566929133859, + "accuracy": 0.8464566929133859, + "answer_nll": 0.5952304005622864 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.46046257019043, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9613899613899614, + "accuracy": 0.9613899613899614, + "answer_nll": 0.18833529949188232 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010095121251652017 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005378521746024489 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003328670281916857 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00041337439324706793 + } + }, + "model_sha256": "181a89b1a291b6fe207886f2dc02c4d1ce448d7d9fd9c3374911a59f7e518f9c", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 1.3903921171731781e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.1429385671799537e-07, + "gradient_norm": 6.787661732232664e-06 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.71926071238704e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.411745071411133 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.96875, + "accuracy": 0.96875, + "answer_nll": 0.12276691943407059 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8523622047244095, + "accuracy": 0.8523622047244095, + "answer_nll": 0.5965579748153687 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.279547691345215, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 4, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1837655007839203 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010716346150729805 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005335012101568282 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000332289666403085 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004074112803209573 + } + }, + "model_sha256": "c2abe170e83986e3ab9bbce7eb71de950c36d7be5f02908cbeeaa88d612a4b9b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 1.3490108358382713e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3889807348732575e-07, + "gradient_norm": 5.321271964930929e-05 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..eb6b1dc3602fbd8f7c7e73b58dc5cc5309a105b1 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 7.636543159605935e-05, + "target_ce": 7.636543159605935e-05, + "replay_kl": 0.0, + "gradient_norm": 0.003909791819751263 + }, + { + "step": 2, + "loss": 3.989313336205669e-05, + "target_ce": 3.790675327763893e-05, + "replay_kl": 1.9863805391651113e-06, + "gradient_norm": 0.0010356352431699634 + }, + { + "step": 3, + "loss": 3.192694566678256e-05, + "target_ce": 2.8450313038774766e-05, + "replay_kl": 3.476633082755143e-06, + "gradient_norm": 0.0007973560132086277 + }, + { + "step": 4, + "loss": 2.808994941005949e-05, + "target_ce": 2.439747186144814e-05, + "replay_kl": 3.692477321237675e-06, + "gradient_norm": 0.0007077165646478534 + }, + { + "step": 5, + "loss": 2.5663575797807425e-05, + "target_ce": 2.1933956304565072e-05, + "replay_kl": 3.7296201753633795e-06, + "gradient_norm": 0.0005995924584567547 + }, + { + "step": 6, + "loss": 2.3986862288438715e-05, + "target_ce": 2.0185640096315183e-05, + "replay_kl": 3.801222646870883e-06, + "gradient_norm": 0.0005127349868416786 + }, + { + "step": 7, + "loss": 2.2630316379945725e-05, + "target_ce": 1.8914131942437962e-05, + "replay_kl": 3.71618511962879e-06, + "gradient_norm": 0.0004453350557014346 + }, + { + "step": 8, + "loss": 2.1630488845403306e-05, + "target_ce": 1.8159176761400886e-05, + "replay_kl": 3.4713120840024203e-06, + "gradient_norm": 0.00037347248871810734 + }, + { + "step": 9, + "loss": 2.085216146952007e-05, + "target_ce": 1.7563152141519822e-05, + "replay_kl": 3.2890093280002475e-06, + "gradient_norm": 0.0003269509179517627 + }, + { + "step": 10, + "loss": 2.0119256078032777e-05, + "target_ce": 1.6927393517107703e-05, + "replay_kl": 3.191862560925074e-06, + "gradient_norm": 0.0003095234278589487 + }, + { + "step": 11, + "loss": 1.9586263078963384e-05, + "target_ce": 1.6530044376850128e-05, + "replay_kl": 3.0562191568606067e-06, + "gradient_norm": 0.0002880771644413471 + }, + { + "step": 12, + "loss": 1.9147462808177806e-05, + "target_ce": 1.6251900888164528e-05, + "replay_kl": 2.895561465265928e-06, + "gradient_norm": 0.0002571364166215062 + }, + { + "step": 13, + "loss": 1.8586066289572045e-05, + "target_ce": 1.5894287571427412e-05, + "replay_kl": 2.6917791728919838e-06, + "gradient_norm": 0.00022281754354480654 + }, + { + "step": 14, + "loss": 1.808027082006447e-05, + "target_ce": 1.553667061671149e-05, + "replay_kl": 2.5435997486056294e-06, + "gradient_norm": 0.0001937746856128797 + }, + { + "step": 15, + "loss": 1.78134796442464e-05, + "target_ce": 1.5337993318098597e-05, + "replay_kl": 2.475486326147802e-06, + "gradient_norm": 0.00018393027130514383 + }, + { + "step": 16, + "loss": 1.758301914378535e-05, + "target_ce": 1.5139317838475108e-05, + "replay_kl": 2.4437017600575928e-06, + "gradient_norm": 0.00017831999866757542 + }, + { + "step": 17, + "loss": 1.7463931726524606e-05, + "target_ce": 1.5059847100928891e-05, + "replay_kl": 2.4040848529693903e-06, + "gradient_norm": 0.0001699678978184238 + }, + { + "step": 18, + "loss": 1.7214413674082607e-05, + "target_ce": 1.4861168892821297e-05, + "replay_kl": 2.3532445538876345e-06, + "gradient_norm": 0.00015913991956040263 + }, + { + "step": 19, + "loss": 1.709095886326395e-05, + "target_ce": 1.482143397879554e-05, + "replay_kl": 2.2695239749737084e-06, + "gradient_norm": 0.00014965058653615415 + }, + { + "step": 20, + "loss": 1.689315467956476e-05, + "target_ce": 1.4741963241249323e-05, + "replay_kl": 2.1511916656891117e-06, + "gradient_norm": 0.00014166132314130664 + }, + { + "step": 21, + "loss": 1.6737967598601244e-05, + "target_ce": 1.4702228327223565e-05, + "replay_kl": 2.035739271377679e-06, + "gradient_norm": 0.00013276515528559685 + }, + { + "step": 22, + "loss": 1.659269764786586e-05, + "target_ce": 1.4702226508234162e-05, + "replay_kl": 1.8904713670053752e-06, + "gradient_norm": 0.00012121193140046671 + }, + { + "step": 23, + "loss": 1.6375170162064023e-05, + "target_ce": 1.4622754861193243e-05, + "replay_kl": 1.7524150734971045e-06, + "gradient_norm": 0.00011201997403986752 + }, + { + "step": 24, + "loss": 1.6239804608630948e-05, + "target_ce": 1.4583019947167486e-05, + "replay_kl": 1.6567853435844881e-06, + "gradient_norm": 0.00010732965893112123 + }, + { + "step": 25, + "loss": 1.607578269613441e-05, + "target_ce": 1.4503551028610673e-05, + "replay_kl": 1.5722320085842512e-06, + "gradient_norm": 0.00010649437172105536 + }, + { + "step": 26, + "loss": 1.593636261532083e-05, + "target_ce": 1.4424079381569754e-05, + "replay_kl": 1.5122825516300509e-06, + "gradient_norm": 0.00010402561019873247 + }, + { + "step": 27, + "loss": 1.5903280655038543e-05, + "target_ce": 1.4463814295595512e-05, + "replay_kl": 1.4394657910088426e-06, + "gradient_norm": 9.910156950354576e-05 + }, + { + "step": 28, + "loss": 1.5832560166018084e-05, + "target_ce": 1.4463814295595512e-05, + "replay_kl": 1.368745870422572e-06, + "gradient_norm": 9.4140152214095e-05 + }, + { + "step": 29, + "loss": 1.560869532113429e-05, + "target_ce": 1.4304871001513675e-05, + "replay_kl": 1.3038251154284808e-06, + "gradient_norm": 8.778941992204636e-05 + }, + { + "step": 30, + "loss": 1.5472447557840496e-05, + "target_ce": 1.4225399354472756e-05, + "replay_kl": 1.2470475212467136e-06, + "gradient_norm": 8.358545164810494e-05 + }, + { + "step": 31, + "loss": 1.5397723473142833e-05, + "target_ce": 1.4225399354472756e-05, + "replay_kl": 1.1723238912964007e-06, + "gradient_norm": 7.795282726874575e-05 + }, + { + "step": 32, + "loss": 1.5322955732699484e-05, + "target_ce": 1.4225399354472756e-05, + "replay_kl": 1.0975568329740781e-06, + "gradient_norm": 7.254481897689402e-05 + }, + { + "step": 33, + "loss": 1.5227589756250381e-05, + "target_ce": 1.41856653499417e-05, + "replay_kl": 1.0419244063086808e-06, + "gradient_norm": 6.669686263194308e-05 + }, + { + "step": 34, + "loss": 1.5115058886294719e-05, + "target_ce": 1.4145930435915943e-05, + "replay_kl": 9.69128677752451e-07, + "gradient_norm": 6.411908543668687e-05 + }, + { + "step": 35, + "loss": 1.5090643501025625e-05, + "target_ce": 1.4145930435915943e-05, + "replay_kl": 9.447132356399379e-07, + "gradient_norm": 6.346672307699919e-05 + }, + { + "step": 36, + "loss": 1.5046201951918192e-05, + "target_ce": 1.4145930435915943e-05, + "replay_kl": 9.002712317851547e-07, + "gradient_norm": 6.195360037963837e-05 + }, + { + "step": 37, + "loss": 1.4977003047533799e-05, + "target_ce": 1.4106194612395484e-05, + "replay_kl": 8.70808435138315e-07, + "gradient_norm": 6.101970939198509e-05 + }, + { + "step": 38, + "loss": 1.4934872524463572e-05, + "target_ce": 1.4106194612395484e-05, + "replay_kl": 8.286780825983442e-07, + "gradient_norm": 5.609363142866641e-05 + }, + { + "step": 39, + "loss": 1.4910938261891715e-05, + "target_ce": 1.4106194612395484e-05, + "replay_kl": 8.047441042435821e-07, + "gradient_norm": 5.1615530537674204e-05 + }, + { + "step": 40, + "loss": 1.4835564797976986e-05, + "target_ce": 1.4066459698369727e-05, + "replay_kl": 7.691046448599081e-07, + "gradient_norm": 4.728619023808278e-05 + }, + { + "step": 41, + "loss": 1.4761006241315044e-05, + "target_ce": 1.4026725693838671e-05, + "replay_kl": 7.342808885368868e-07, + "gradient_norm": 4.423391510499641e-05 + }, + { + "step": 42, + "loss": 1.4725847904628608e-05, + "target_ce": 1.4026725693838671e-05, + "replay_kl": 6.991220971030998e-07, + "gradient_norm": 4.389032255858183e-05 + }, + { + "step": 43, + "loss": 1.4663090041722171e-05, + "target_ce": 1.3986987141834106e-05, + "replay_kl": 6.76102786201227e-07, + "gradient_norm": 4.14092319260817e-05 + }, + { + "step": 44, + "loss": 1.4626632037106901e-05, + "target_ce": 1.3986987141834106e-05, + "replay_kl": 6.396444405254442e-07, + "gradient_norm": 4.070734212291427e-05 + }, + { + "step": 45, + "loss": 1.4535828086081892e-05, + "target_ce": 1.3907515494793188e-05, + "replay_kl": 6.283121365413535e-07, + "gradient_norm": 3.8182766729732975e-05 + }, + { + "step": 46, + "loss": 1.4485649444395676e-05, + "target_ce": 1.3867781490262132e-05, + "replay_kl": 6.178679541335441e-07, + "gradient_norm": 3.712791294674389e-05 + }, + { + "step": 47, + "loss": 1.4423626453208271e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.95581013840274e-07, + "gradient_norm": 3.553341957740486e-05 + }, + { + "step": 48, + "loss": 1.4423406355490442e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.953606887487695e-07, + "gradient_norm": 3.325434590806253e-05 + }, + { + "step": 49, + "loss": 1.4394613572221715e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.665676781063667e-07, + "gradient_norm": 3.106933945673518e-05 + }, + { + "step": 50, + "loss": 1.4396234291780274e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.681887387254392e-07, + "gradient_norm": 2.935986776719801e-05 + }, + { + "step": 51, + "loss": 1.4379033018485643e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.509872380571323e-07, + "gradient_norm": 2.8000906240777113e-05 + }, + { + "step": 52, + "loss": 1.4376791114045773e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.487452199304244e-07, + "gradient_norm": 2.69294177996926e-05 + }, + { + "step": 53, + "loss": 1.4364233720698394e-05, + "target_ce": 1.3828045666741673e-05, + "replay_kl": 5.361883950172341e-07, + "gradient_norm": 2.5814635591814294e-05 + }, + { + "step": 54, + "loss": 1.4307424862636253e-05, + "target_ce": 1.3788309843221214e-05, + "replay_kl": 5.191149057282018e-07, + "gradient_norm": 2.5223203920177184e-05 + }, + { + "step": 55, + "loss": 1.4310770893644076e-05, + "target_ce": 1.3788309843221214e-05, + "replay_kl": 5.224610504228622e-07, + "gradient_norm": 2.429573032713961e-05 + }, + { + "step": 56, + "loss": 1.4257661860028747e-05, + "target_ce": 1.3748573110206053e-05, + "replay_kl": 5.090885224490194e-07, + "gradient_norm": 2.438007140881382e-05 + }, + { + "step": 57, + "loss": 1.4248020306695253e-05, + "target_ce": 1.3748572200711351e-05, + "replay_kl": 4.994477649233886e-07, + "gradient_norm": 2.3879087166278623e-05 + }, + { + "step": 58, + "loss": 1.4199923498381395e-05, + "target_ce": 1.3708836377190892e-05, + "replay_kl": 4.910874054075975e-07, + "gradient_norm": 2.060857332253363e-05 + }, + { + "step": 59, + "loss": 1.4226176972442772e-05, + "target_ce": 1.3748572200711351e-05, + "replay_kl": 4.776050559485157e-07, + "gradient_norm": 2.175802546844352e-05 + }, + { + "step": 60, + "loss": 1.4265858226281125e-05, + "target_ce": 1.3788306205242407e-05, + "replay_kl": 4.775518505084619e-07, + "gradient_norm": 1.9767883713939227e-05 + }, + { + "step": 61, + "loss": 1.4264700439525768e-05, + "target_ce": 1.3788306205242407e-05, + "replay_kl": 4.7639466060900304e-07, + "gradient_norm": 1.8909182472270913e-05 + }, + { + "step": 62, + "loss": 1.4261403521231841e-05, + "target_ce": 1.3788306205242407e-05, + "replay_kl": 4.7309714545917814e-07, + "gradient_norm": 1.9074355805059895e-05 + }, + { + "step": 63, + "loss": 1.4203948921931442e-05, + "target_ce": 1.3748572200711351e-05, + "replay_kl": 4.553770338588947e-07, + "gradient_norm": 1.789399357221555e-05 + }, + { + "step": 64, + "loss": 1.4157873920339625e-05, + "target_ce": 1.370883546769619e-05, + "replay_kl": 4.4903808316121285e-07, + "gradient_norm": 1.6414169294876046e-05 + }, + { + "step": 65, + "loss": 1.4154979908198584e-05, + "target_ce": 1.370883546769619e-05, + "replay_kl": 4.4614463945436e-07, + "gradient_norm": 1.7129712432506494e-05 + }, + { + "step": 66, + "loss": 1.4112197277427185e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 4.430969227087189e-07, + "gradient_norm": 1.6339723515557125e-05 + }, + { + "step": 67, + "loss": 1.4095606275077444e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 4.265059487806866e-07, + "gradient_norm": 1.7085181752918288e-05 + }, + { + "step": 68, + "loss": 1.4094259313424118e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 4.251586176451383e-07, + "gradient_norm": 1.5757699657115154e-05 + }, + { + "step": 69, + "loss": 1.4102826753514819e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 4.3372659774831845e-07, + "gradient_norm": 1.564601370773744e-05 + }, + { + "step": 70, + "loss": 1.410185268468922e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 4.3275176153656503e-07, + "gradient_norm": 1.425649315933697e-05 + }, + { + "step": 71, + "loss": 1.4133489457890391e-05, + "target_ce": 1.370883546769619e-05, + "replay_kl": 4.2465370597710717e-07, + "gradient_norm": 1.3402131116890814e-05 + }, + { + "step": 72, + "loss": 1.4127304893918335e-05, + "target_ce": 1.370883546769619e-05, + "replay_kl": 4.1846914200505125e-07, + "gradient_norm": 1.2115249774069525e-05 + }, + { + "step": 73, + "loss": 1.4117084901954513e-05, + "target_ce": 1.370883546769619e-05, + "replay_kl": 4.082493774149043e-07, + "gradient_norm": 1.4370470125868451e-05 + }, + { + "step": 74, + "loss": 1.4036604625289328e-05, + "target_ce": 1.3629364730149973e-05, + "replay_kl": 4.0723975303080806e-07, + "gradient_norm": 1.5814837752259336e-05 + }, + { + "step": 75, + "loss": 1.4065426512388512e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 3.963259018746612e-07, + "gradient_norm": 1.2711453564406838e-05 + }, + { + "step": 76, + "loss": 1.4068617019802332e-05, + "target_ce": 1.3669100553670432e-05, + "replay_kl": 3.9951669350557495e-07, + "gradient_norm": 1.5470774087589234e-05 + }, + { + "step": 77, + "loss": 1.4027597899257671e-05, + "target_ce": 1.3629364730149973e-05, + "replay_kl": 3.9823294173402246e-07, + "gradient_norm": 1.0337008461647201e-05 + }, + { + "step": 78, + "loss": 1.4021263268659823e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.9189984590848326e-07, + "gradient_norm": 1.1112500942545012e-05 + }, + { + "step": 79, + "loss": 1.4024213669472374e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.948499340822309e-07, + "gradient_norm": 1.0852936611627229e-05 + }, + { + "step": 80, + "loss": 1.405601688020397e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.869179749926843e-07, + "gradient_norm": 1.2549146049423143e-05 + }, + { + "step": 81, + "loss": 1.4018618458067067e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.8925463741179556e-07, + "gradient_norm": 1.0239165931125171e-05 + }, + { + "step": 82, + "loss": 1.4095565347815864e-05, + "target_ce": 1.3708832739212085e-05, + "replay_kl": 3.8673223912155663e-07, + "gradient_norm": 1.1427930076024495e-05 + }, + { + "step": 83, + "loss": 1.4005863704369403e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.764999689792603e-07, + "gradient_norm": 1.0563097021076828e-05 + }, + { + "step": 84, + "loss": 1.4081437257118523e-05, + "target_ce": 1.3708832739212085e-05, + "replay_kl": 3.726049158103706e-07, + "gradient_norm": 9.416018656338565e-06 + }, + { + "step": 85, + "loss": 1.4085377188166603e-05, + "target_ce": 1.3708832739212085e-05, + "replay_kl": 3.765444489545189e-07, + "gradient_norm": 1.0617775842547417e-05 + }, + { + "step": 86, + "loss": 1.4049462151888292e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.803635024723917e-07, + "gradient_norm": 8.438558324996848e-06 + }, + { + "step": 87, + "loss": 1.4098650353844278e-05, + "target_ce": 1.3708832739212085e-05, + "replay_kl": 3.8981792727099673e-07, + "gradient_norm": 1.0098659004142974e-05 + }, + { + "step": 88, + "loss": 1.4004503100295551e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.7513950701395515e-07, + "gradient_norm": 9.194141057378147e-06 + }, + { + "step": 89, + "loss": 1.3976351510791574e-05, + "target_ce": 1.3589628906629514e-05, + "replay_kl": 3.867226041620597e-07, + "gradient_norm": 8.93082506081555e-06 + }, + { + "step": 90, + "loss": 1.4009348888066597e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.799852947850013e-07, + "gradient_norm": 1.0028991709987167e-05 + }, + { + "step": 91, + "loss": 1.4002452189743053e-05, + "target_ce": 1.3629363820655271e-05, + "replay_kl": 3.730881417141063e-07, + "gradient_norm": 7.793460099492222e-06 + }, + { + "step": 92, + "loss": 1.4077056221140083e-05, + "target_ce": 1.3708832739212085e-05, + "replay_kl": 3.6822365245825495e-07, + "gradient_norm": 9.676411536929663e-06 + }, + { + "step": 93, + "loss": 1.407872696290724e-05, + "target_ce": 1.3708832739212085e-05, + "replay_kl": 3.698946784425061e-07, + "gradient_norm": 8.697584235051181e-06 + }, + { + "step": 94, + "loss": 1.4037604159966577e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.6850551055067626e-07, + "gradient_norm": 8.443560545856599e-06 + }, + { + "step": 95, + "loss": 1.4035581443749834e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.6648259538196726e-07, + "gradient_norm": 8.231371793954168e-06 + }, + { + "step": 96, + "loss": 1.4040064343134873e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.7096580740580976e-07, + "gradient_norm": 1.0722167644416913e-05 + }, + { + "step": 97, + "loss": 1.403490750817582e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.65809086133595e-07, + "gradient_norm": 9.069713996723294e-06 + }, + { + "step": 98, + "loss": 1.3957393093733117e-05, + "target_ce": 1.3589628906629514e-05, + "replay_kl": 3.677645281641162e-07, + "gradient_norm": 1.0885794836212881e-05 + }, + { + "step": 99, + "loss": 1.3953043890069239e-05, + "target_ce": 1.3589628906629514e-05, + "replay_kl": 3.6341521081340034e-07, + "gradient_norm": 8.439227713097353e-06 + }, + { + "step": 100, + "loss": 1.4025887139723636e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.5678868925970164e-07, + "gradient_norm": 1.134777812694665e-05 + }, + { + "step": 101, + "loss": 1.4029222256795038e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.601234652705898e-07, + "gradient_norm": 7.2027337409963366e-06 + }, + { + "step": 102, + "loss": 1.4033441402716562e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.6434309436117474e-07, + "gradient_norm": 9.176853382086847e-06 + }, + { + "step": 103, + "loss": 1.4027432371221948e-05, + "target_ce": 1.3669098734681029e-05, + "replay_kl": 3.583334091672441e-07, + "gradient_norm": 8.058040293690283e-06 + }, + { + "step": 104, + "loss": 1.3950677384855226e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.6105018352827756e-07, + "gradient_norm": 1.1094614819739945e-05 + }, + { + "step": 105, + "loss": 1.394372338836547e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.5409647125561605e-07, + "gradient_norm": 8.15222938399529e-06 + }, + { + "step": 106, + "loss": 1.3981773008708842e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.524096428009216e-07, + "gradient_norm": 1.30261023514322e-05 + }, + { + "step": 107, + "loss": 1.3896598829887807e-05, + "target_ce": 1.3549892173614353e-05, + "replay_kl": 3.467062583695224e-07, + "gradient_norm": 7.124619514797814e-06 + }, + { + "step": 108, + "loss": 1.3979112736706156e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.497497687021678e-07, + "gradient_norm": 1.4331175407278351e-05 + }, + { + "step": 109, + "loss": 1.397827327309642e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.489105893095257e-07, + "gradient_norm": 8.03896546131e-06 + }, + { + "step": 110, + "loss": 1.389350200042827e-05, + "target_ce": 1.3549892173614353e-05, + "replay_kl": 3.436099973441742e-07, + "gradient_norm": 1.2573267667903565e-05 + }, + { + "step": 111, + "loss": 1.396105199091835e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.31689022914361e-07, + "gradient_norm": 1.0444657164043747e-05 + }, + { + "step": 112, + "loss": 1.3973910427012015e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.445476011165738e-07, + "gradient_norm": 9.290023626817856e-06 + }, + { + "step": 113, + "loss": 1.3967912309453823e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.3854971093205677e-07, + "gradient_norm": 1.0569753612799104e-05 + }, + { + "step": 114, + "loss": 1.3972580745758023e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.4321780617574404e-07, + "gradient_norm": 7.930143510748167e-06 + }, + { + "step": 115, + "loss": 1.3967524864710867e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.381618114417506e-07, + "gradient_norm": 7.848924724385142e-06 + }, + { + "step": 116, + "loss": 1.3891115486330818e-05, + "target_ce": 1.3549892173614353e-05, + "replay_kl": 3.4122302849937114e-07, + "gradient_norm": 9.365790901938453e-06 + }, + { + "step": 117, + "loss": 1.391837122355355e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.2874399380489194e-07, + "gradient_norm": 7.537977126048645e-06 + }, + { + "step": 118, + "loss": 1.3956778275314718e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.2741553468440543e-07, + "gradient_norm": 8.492424058204051e-06 + }, + { + "step": 119, + "loss": 1.3920903256803285e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.3127616916317493e-07, + "gradient_norm": 9.72257385001285e-06 + }, + { + "step": 120, + "loss": 1.3956459042674396e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.270957904533134e-07, + "gradient_norm": 7.659356015210506e-06 + }, + { + "step": 121, + "loss": 1.3960822798253503e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.3145948918900103e-07, + "gradient_norm": 6.957135155971628e-06 + }, + { + "step": 122, + "loss": 1.3911248061049264e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.2162137131308555e-07, + "gradient_norm": 7.35940284357639e-06 + }, + { + "step": 123, + "loss": 1.3911255337006878e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.2162856200557144e-07, + "gradient_norm": 6.227964604477165e-06 + }, + { + "step": 124, + "loss": 1.394786340824794e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.18500127605148e-07, + "gradient_norm": 1.1255021490796935e-05 + }, + { + "step": 125, + "loss": 1.3920185665483586e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.3055903259082697e-07, + "gradient_norm": 9.881786354526412e-06 + }, + { + "step": 126, + "loss": 1.3909521840105299e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.198946387783508e-07, + "gradient_norm": 7.195690614025807e-06 + }, + { + "step": 127, + "loss": 1.3955394933873322e-05, + "target_ce": 1.362936291116057e-05, + "replay_kl": 3.2603188060420507e-07, + "gradient_norm": 1.3104022400511894e-05 + }, + { + "step": 128, + "loss": 1.3903921171731781e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.1429385671799537e-07, + "gradient_norm": 6.787661732232664e-06 + }, + { + "step": 129, + "loss": 1.3903871149523184e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.142443461001676e-07, + "gradient_norm": 1.2328495358815417e-05 + }, + { + "step": 130, + "loss": 1.3913044313085265e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.2341682754122303e-07, + "gradient_norm": 1.2678769053309225e-05 + }, + { + "step": 131, + "loss": 1.3912606846133713e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.229799858672777e-07, + "gradient_norm": 7.509736406063894e-06 + }, + { + "step": 132, + "loss": 1.390363286191132e-05, + "target_ce": 1.358962708764011e-05, + "replay_kl": 3.140058595363371e-07, + "gradient_norm": 1.5963789337547496e-05 + }, + { + "step": 133, + "loss": 1.3868978385289665e-05, + "target_ce": 1.3549891264119651e-05, + "replay_kl": 3.19086780109501e-07, + "gradient_norm": 9.75756483967416e-06 + }, + { + "step": 134, + "loss": 1.3861343177268282e-05, + "target_ce": 1.3549889445130248e-05, + "replay_kl": 3.114535047643585e-07, + "gradient_norm": 1.0567180652287789e-05 + }, + { + "step": 135, + "loss": 1.38369859996601e-05, + "target_ce": 1.351015453110449e-05, + "replay_kl": 3.2683169592928607e-07, + "gradient_norm": 1.3351247616810724e-05 + }, + { + "step": 136, + "loss": 1.3831939213559963e-05, + "target_ce": 1.351015453110449e-05, + "replay_kl": 3.2178456876863493e-07, + "gradient_norm": 6.898838819324737e-06 + }, + { + "step": 137, + "loss": 1.3826699614583049e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 3.1654587928642286e-07, + "gradient_norm": 1.6283654986182228e-05 + }, + { + "step": 138, + "loss": 1.3821876564179547e-05, + "target_ce": 1.351015453110449e-05, + "replay_kl": 3.117219762316381e-07, + "gradient_norm": 1.6434805729659274e-05 + }, + { + "step": 139, + "loss": 1.3827589100401383e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 3.1743542194817564e-07, + "gradient_norm": 6.491317890322534e-06 + }, + { + "step": 140, + "loss": 1.3816562386637088e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 3.064089355575561e-07, + "gradient_norm": 1.4705487046740018e-05 + }, + { + "step": 141, + "loss": 1.3817236322211102e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 3.0708258691447554e-07, + "gradient_norm": 1.401182817062363e-05 + }, + { + "step": 142, + "loss": 1.3774401850241702e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.0398399530895404e-07, + "gradient_norm": 6.885033144499175e-06 + }, + { + "step": 143, + "loss": 1.3781483175989706e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.110650936832826e-07, + "gradient_norm": 1.2617827451322228e-05 + }, + { + "step": 144, + "loss": 1.3781960660708137e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.1154317525761144e-07, + "gradient_norm": 1.2815308764402289e-05 + }, + { + "step": 145, + "loss": 1.3777493222733028e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.0707548148711794e-07, + "gradient_norm": 1.4527341591019649e-05 + }, + { + "step": 146, + "loss": 1.377807893732097e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.0766122449676914e-07, + "gradient_norm": 7.359475148405181e-06 + }, + { + "step": 147, + "loss": 1.378206525259884e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.1164742608780216e-07, + "gradient_norm": 9.997183951782063e-06 + }, + { + "step": 148, + "loss": 1.3775171282759402e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 3.0475308676614077e-07, + "gradient_norm": 7.251584520417964e-06 + }, + { + "step": 149, + "loss": 1.3762897651758976e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.924797399828094e-07, + "gradient_norm": 9.34417676035082e-06 + }, + { + "step": 150, + "loss": 1.3803589354210999e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.9343598839659535e-07, + "gradient_norm": 8.14704253571108e-06 + }, + { + "step": 151, + "loss": 1.3769926226814277e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.9950882662888034e-07, + "gradient_norm": 7.908172847237438e-06 + }, + { + "step": 152, + "loss": 1.3763430615654215e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.9301270387804834e-07, + "gradient_norm": 1.1812637239927426e-05 + }, + { + "step": 153, + "loss": 1.3764568393526133e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.94150993340736e-07, + "gradient_norm": 8.259514288511127e-06 + }, + { + "step": 154, + "loss": 1.3806701645080466e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.96548194000934e-07, + "gradient_norm": 9.469631550018676e-06 + }, + { + "step": 155, + "loss": 1.3757961824012455e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.875438838145783e-07, + "gradient_norm": 7.593559530505445e-06 + }, + { + "step": 156, + "loss": 1.3793108337267768e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.829543177540472e-07, + "gradient_norm": 1.0518842827877961e-05 + }, + { + "step": 157, + "loss": 1.3757909073319752e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.8749130365213205e-07, + "gradient_norm": 6.902594577695709e-06 + }, + { + "step": 158, + "loss": 1.3760915862803813e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.904977804973896e-07, + "gradient_norm": 8.36043091112515e-06 + }, + { + "step": 159, + "loss": 1.376688032905804e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.9646270149896736e-07, + "gradient_norm": 7.073729648254812e-06 + }, + { + "step": 160, + "loss": 1.3759290595771745e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.8887274083899683e-07, + "gradient_norm": 9.214623787556775e-06 + }, + { + "step": 161, + "loss": 1.3764487448497675e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.940692525044142e-07, + "gradient_norm": 6.198147275426891e-06 + }, + { + "step": 162, + "loss": 1.3757202395936474e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.8678488206423935e-07, + "gradient_norm": 8.010849342099391e-06 + }, + { + "step": 163, + "loss": 1.3751461665378883e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.810442936151958e-07, + "gradient_norm": 9.878544915409293e-06 + }, + { + "step": 164, + "loss": 1.3741531802224927e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.711137483402126e-07, + "gradient_norm": 1.2928693649882916e-05 + }, + { + "step": 165, + "loss": 1.3783081158180721e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.7292796289657417e-07, + "gradient_norm": 6.751975888619199e-06 + }, + { + "step": 166, + "loss": 1.3787083844363224e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.7693019433172594e-07, + "gradient_norm": 1.086958400264848e-05 + }, + { + "step": 167, + "loss": 1.3740615941060241e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.70198000862365e-07, + "gradient_norm": 6.448136446124408e-06 + }, + { + "step": 168, + "loss": 1.378234719595639e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.7219317644266994e-07, + "gradient_norm": 1.2157181117800064e-05 + }, + { + "step": 169, + "loss": 1.37414153869031e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.70997816187446e-07, + "gradient_norm": 1.0010949154093396e-05 + }, + { + "step": 170, + "loss": 1.3777133972325828e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.669806065114244e-07, + "gradient_norm": 1.039855123963207e-05 + }, + { + "step": 171, + "loss": 1.3734297681367025e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.6387954221718246e-07, + "gradient_norm": 1.5075330338731874e-05 + }, + { + "step": 172, + "loss": 1.373922987113474e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.688124425276328e-07, + "gradient_norm": 6.205502359080128e-06 + }, + { + "step": 173, + "loss": 1.3744230273005087e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.7381256018088607e-07, + "gradient_norm": 1.0431743248773273e-05 + }, + { + "step": 174, + "loss": 1.3745056094194297e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.746384950569336e-07, + "gradient_norm": 1.061816783476388e-05 + }, + { + "step": 175, + "loss": 1.3730020327784587e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5960270022551413e-07, + "gradient_norm": 1.301939209952252e-05 + }, + { + "step": 176, + "loss": 1.3733856576436665e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.634390909861395e-07, + "gradient_norm": 9.219999810738955e-06 + }, + { + "step": 177, + "loss": 1.373957911710022e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.69161120058925e-07, + "gradient_norm": 1.0569177902652882e-05 + }, + { + "step": 178, + "loss": 1.3739210771746002e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.68793172608639e-07, + "gradient_norm": 1.6572281310800463e-05 + }, + { + "step": 179, + "loss": 1.3742011105932761e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.715928815177904e-07, + "gradient_norm": 1.0084710993396584e-05 + }, + { + "step": 180, + "loss": 1.378054639644688e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.7039240535486897e-07, + "gradient_norm": 7.694572559557855e-06 + }, + { + "step": 181, + "loss": 1.3732431398238987e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.620134580411104e-07, + "gradient_norm": 1.4431579984375276e-05 + }, + { + "step": 182, + "loss": 1.3717934052692726e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.475157998560462e-07, + "gradient_norm": 7.536870270996587e-06 + }, + { + "step": 183, + "loss": 1.3719058188144118e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4864039005478844e-07, + "gradient_norm": 7.640586773050018e-06 + }, + { + "step": 184, + "loss": 1.3726456018048339e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.56037992585334e-07, + "gradient_norm": 9.462716661801096e-06 + }, + { + "step": 185, + "loss": 1.3725540156883653e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5512230195090524e-07, + "gradient_norm": 5.3751073210150935e-06 + }, + { + "step": 186, + "loss": 1.3724988093599677e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5457001129325363e-07, + "gradient_norm": 1.2246052392583806e-05 + }, + { + "step": 187, + "loss": 1.3734707863477524e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.642904064487084e-07, + "gradient_norm": 9.314634553447831e-06 + }, + { + "step": 188, + "loss": 1.3726808901992626e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.563911607467162e-07, + "gradient_norm": 6.8675049078592565e-06 + }, + { + "step": 189, + "loss": 1.3732272236666176e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.6185483648077934e-07, + "gradient_norm": 1.0557698260527104e-05 + }, + { + "step": 190, + "loss": 1.3762711205345113e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.5255721425310185e-07, + "gradient_norm": 9.3093858595239e-06 + }, + { + "step": 191, + "loss": 1.3732333172811195e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.6191494839622464e-07, + "gradient_norm": 6.3225652411347255e-06 + }, + { + "step": 192, + "loss": 1.372407132294029e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.536534111641231e-07, + "gradient_norm": 8.13377664599102e-06 + }, + { + "step": 193, + "loss": 1.3771182238997426e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.6102858896592807e-07, + "gradient_norm": 7.590158929815516e-06 + }, + { + "step": 194, + "loss": 1.3733430932916235e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.6301324851374375e-07, + "gradient_norm": 8.441866157227196e-06 + }, + { + "step": 195, + "loss": 1.3720954484597314e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.50536487556019e-07, + "gradient_norm": 6.7582118390419055e-06 + }, + { + "step": 196, + "loss": 1.3725629287364427e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5521140400996956e-07, + "gradient_norm": 7.13555436959723e-06 + }, + { + "step": 197, + "loss": 1.3730040336668026e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5962262384382484e-07, + "gradient_norm": 9.620833225199021e-06 + }, + { + "step": 198, + "loss": 1.3720939023187384e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5052096930267e-07, + "gradient_norm": 6.503431450255448e-06 + }, + { + "step": 199, + "loss": 1.3727476471103728e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.570585309058515e-07, + "gradient_norm": 1.0104939974553417e-05 + }, + { + "step": 200, + "loss": 1.3734284038946498e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.6386618401375017e-07, + "gradient_norm": 1.3485644558386412e-05 + }, + { + "step": 201, + "loss": 1.3729691090702545e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5927303681783087e-07, + "gradient_norm": 1.1141089999000542e-05 + }, + { + "step": 202, + "loss": 1.3764656614512205e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.5450270868532243e-07, + "gradient_norm": 7.394527528958861e-06 + }, + { + "step": 203, + "loss": 1.3723821211897302e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5340349907310156e-07, + "gradient_norm": 1.1208268915652297e-05 + }, + { + "step": 204, + "loss": 1.3723252777708694e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.528352638364595e-07, + "gradient_norm": 1.770771086739842e-05 + }, + { + "step": 205, + "loss": 1.3726941688219085e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5652394697317504e-07, + "gradient_norm": 1.6401096218032762e-05 + }, + { + "step": 206, + "loss": 1.3716113244299777e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4569513357164396e-07, + "gradient_norm": 9.208189112541731e-06 + }, + { + "step": 207, + "loss": 1.3713438420381863e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.430207928227901e-07, + "gradient_norm": 8.152965165209025e-06 + }, + { + "step": 208, + "loss": 1.371288817608729e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.424705769499269e-07, + "gradient_norm": 1.0850450962607283e-05 + }, + { + "step": 209, + "loss": 1.3721641153097153e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.512234686946613e-07, + "gradient_norm": 1.0721510079747532e-05 + }, + { + "step": 210, + "loss": 1.3730280443269294e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.5986261675825517e-07, + "gradient_norm": 7.2225561780214775e-06 + }, + { + "step": 211, + "loss": 1.372769838781096e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.572805328782124e-07, + "gradient_norm": 1.4965618902351707e-05 + }, + { + "step": 212, + "loss": 1.3719339222006965e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4892131023079855e-07, + "gradient_norm": 2.0952013073838316e-05 + }, + { + "step": 213, + "loss": 1.3768689314019866e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.585352945061459e-07, + "gradient_norm": 1.6708403563825414e-05 + }, + { + "step": 214, + "loss": 1.372050610370934e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.500882487765921e-07, + "gradient_norm": 6.46701528239646e-06 + }, + { + "step": 215, + "loss": 1.3714910892304033e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.44492838419319e-07, + "gradient_norm": 1.828336280595977e-05 + }, + { + "step": 216, + "loss": 1.3711401152249891e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.409830983651773e-07, + "gradient_norm": 2.3017089915811084e-05 + }, + { + "step": 217, + "loss": 1.3713965927308891e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.435477313156298e-07, + "gradient_norm": 1.1742910828616004e-05 + }, + { + "step": 218, + "loss": 1.376144791720435e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.5129475034191273e-07, + "gradient_norm": 1.3172784747439437e-05 + }, + { + "step": 219, + "loss": 1.3758510249317624e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.483563719124504e-07, + "gradient_norm": 2.5077693862840533e-05 + }, + { + "step": 220, + "loss": 1.3704615412279963e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.3419798367285694e-07, + "gradient_norm": 2.478603164490778e-05 + }, + { + "step": 221, + "loss": 1.3745855540037155e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.3570225948787993e-07, + "gradient_norm": 1.2437178156687878e-05 + }, + { + "step": 222, + "loss": 1.3713590305997059e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.43172337377473e-07, + "gradient_norm": 1.1291286682535429e-05 + }, + { + "step": 223, + "loss": 1.3713196494791191e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.427783272196393e-07, + "gradient_norm": 2.0172903532511555e-05 + }, + { + "step": 224, + "loss": 1.3713564840145409e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4314695679095166e-07, + "gradient_norm": 2.8182403184473515e-05 + }, + { + "step": 225, + "loss": 1.3711784049519338e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4136585352607653e-07, + "gradient_norm": 2.6008070562966168e-05 + }, + { + "step": 226, + "loss": 1.3708990991290193e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.385733921528299e-07, + "gradient_norm": 1.721563603496179e-05 + }, + { + "step": 227, + "loss": 1.3715488421439659e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4507028228981653e-07, + "gradient_norm": 9.669114660937339e-06 + }, + { + "step": 228, + "loss": 1.3703629520023242e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.3321169351220306e-07, + "gradient_norm": 1.3577095160144381e-05 + }, + { + "step": 229, + "loss": 1.3712709915125743e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.42292486518636e-07, + "gradient_norm": 2.076327109534759e-05 + }, + { + "step": 230, + "loss": 1.3713697626371868e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4327960090886336e-07, + "gradient_norm": 1.9369821529835463e-05 + }, + { + "step": 231, + "loss": 1.3714158740185667e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.4374099893975654e-07, + "gradient_norm": 1.323901869909605e-05 + }, + { + "step": 232, + "loss": 1.3705117453355342e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.3469962684430357e-07, + "gradient_norm": 8.188366336980835e-06 + }, + { + "step": 233, + "loss": 1.3708438018511515e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.3802030568731425e-07, + "gradient_norm": 1.3731464605371002e-05 + }, + { + "step": 234, + "loss": 1.371221060253447e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.417925486497552e-07, + "gradient_norm": 1.2647537914745044e-05 + }, + { + "step": 235, + "loss": 1.3709874110645615e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.394559146523534e-07, + "gradient_norm": 1.5100319615157787e-05 + }, + { + "step": 236, + "loss": 1.3744044736085925e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.338906881504954e-07, + "gradient_norm": 1.3836912330589257e-05 + }, + { + "step": 237, + "loss": 1.3700172530661803e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.2975443414452457e-07, + "gradient_norm": 1.1513400750118308e-05 + }, + { + "step": 238, + "loss": 1.370444988424424e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.3403224247431353e-07, + "gradient_norm": 1.7001906599034555e-05 + }, + { + "step": 239, + "loss": 1.370752761431504e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.3710981622571126e-07, + "gradient_norm": 1.3900623343943153e-05 + }, + { + "step": 240, + "loss": 1.3714220585825387e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.438025887840922e-07, + "gradient_norm": 1.4879477021167986e-05 + }, + { + "step": 241, + "loss": 1.3700987437914591e-05, + "target_ce": 1.347041779808933e-05, + "replay_kl": 2.305699808857753e-07, + "gradient_norm": 1.9587521819630638e-05 + }, + { + "step": 242, + "loss": 1.3655504517373629e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2482139172552706e-07, + "gradient_norm": 1.3054816918156575e-05 + }, + { + "step": 243, + "loss": 1.3758547538600396e-05, + "target_ce": 1.3510153621609788e-05, + "replay_kl": 2.4839368961693253e-07, + "gradient_norm": 1.3209210010245442e-05 + }, + { + "step": 244, + "loss": 1.3677408787771128e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.467257615990093e-07, + "gradient_norm": 1.415840961271897e-05 + }, + { + "step": 245, + "loss": 1.3649952052219305e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1926938131855422e-07, + "gradient_norm": 7.351281510636909e-06 + }, + { + "step": 246, + "loss": 1.364841591566801e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1773314529127674e-07, + "gradient_norm": 1.0319408829673193e-05 + }, + { + "step": 247, + "loss": 1.3699397641175892e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.289807241595554e-07, + "gradient_norm": 1.3637385563924909e-05 + }, + { + "step": 248, + "loss": 1.3704928278457373e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.3451150354958372e-07, + "gradient_norm": 9.216571925207973e-06 + }, + { + "step": 249, + "loss": 1.3651269000547472e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.205859317427894e-07, + "gradient_norm": 1.056553446687758e-05 + }, + { + "step": 250, + "loss": 1.365643856843235e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2575601121843647e-07, + "gradient_norm": 1.7744829165167175e-05 + }, + { + "step": 251, + "loss": 1.3660181139130145e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2949788558435102e-07, + "gradient_norm": 1.5085156519489828e-05 + }, + { + "step": 252, + "loss": 1.3653685527970083e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.230026865390755e-07, + "gradient_norm": 1.3914038390794303e-05 + }, + { + "step": 253, + "loss": 1.3651208064402454e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2052522297144606e-07, + "gradient_norm": 1.3706467143492773e-05 + }, + { + "step": 254, + "loss": 1.3651602785103023e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2091953155722877e-07, + "gradient_norm": 7.837250450393185e-06 + }, + { + "step": 255, + "loss": 1.3655265320267063e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.245824930469098e-07, + "gradient_norm": 1.5869843991822563e-05 + }, + { + "step": 256, + "loss": 1.365240132145118e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.217182668573514e-07, + "gradient_norm": 2.4316868802998215e-05 + }, + { + "step": 257, + "loss": 1.3648207641381305e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1752434520294628e-07, + "gradient_norm": 2.4974475309136324e-05 + }, + { + "step": 258, + "loss": 1.3649321772390977e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1863870358629356e-07, + "gradient_norm": 2.1835920051671565e-05 + }, + { + "step": 259, + "loss": 1.3703511285712011e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.3309455343678565e-07, + "gradient_norm": 1.8007114704232663e-05 + }, + { + "step": 260, + "loss": 1.365730531688314e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.266228875669185e-07, + "gradient_norm": 1.0014805411628913e-05 + }, + { + "step": 261, + "loss": 1.3661430784850381e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.3074777288911719e-07, + "gradient_norm": 6.3608758864575066e-06 + }, + { + "step": 262, + "loss": 1.3648386811837554e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1770389935227286e-07, + "gradient_norm": 1.3606362699647434e-05 + }, + { + "step": 263, + "loss": 1.3655302609549835e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.246201660227598e-07, + "gradient_norm": 1.7168422346003354e-05 + }, + { + "step": 264, + "loss": 1.3649601896759123e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1891855794820003e-07, + "gradient_norm": 1.240072106156731e-05 + }, + { + "step": 265, + "loss": 1.3648935237142723e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1825212570547592e-07, + "gradient_norm": 1.2371307093417272e-05 + }, + { + "step": 266, + "loss": 1.3654280337505043e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2359725448950485e-07, + "gradient_norm": 1.3348426364245825e-05 + }, + { + "step": 267, + "loss": 1.365248863294255e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.218053793967556e-07, + "gradient_norm": 7.805581844877452e-06 + }, + { + "step": 268, + "loss": 1.3649460015585646e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1877758626942523e-07, + "gradient_norm": 1.206053184432676e-05 + }, + { + "step": 269, + "loss": 1.3653557289217133e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2287449041868967e-07, + "gradient_norm": 1.1153132618346717e-05 + }, + { + "step": 270, + "loss": 1.3654206668434199e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2352378437062725e-07, + "gradient_norm": 8.371630428882781e-06 + }, + { + "step": 271, + "loss": 1.3694911103812046e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.244944425910944e-07, + "gradient_norm": 1.2797402632713784e-05 + }, + { + "step": 272, + "loss": 1.3652183952217456e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2150094025619183e-07, + "gradient_norm": 8.64271896716673e-06 + }, + { + "step": 273, + "loss": 1.3657175259140786e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2649214770353865e-07, + "gradient_norm": 1.1692069165292196e-05 + }, + { + "step": 274, + "loss": 1.3684488294529729e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.1407183226074267e-07, + "gradient_norm": 1.4970343727327418e-05 + }, + { + "step": 275, + "loss": 1.3690374544239603e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.1995724353018886e-07, + "gradient_norm": 1.2343324669927824e-05 + }, + { + "step": 276, + "loss": 1.3649553693539929e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.188703831507155e-07, + "gradient_norm": 7.952581654535607e-06 + }, + { + "step": 277, + "loss": 1.3646013030665927e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.153304876628681e-07, + "gradient_norm": 9.786554983293172e-06 + }, + { + "step": 278, + "loss": 1.3638593372888863e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0791060251212912e-07, + "gradient_norm": 1.1132785402878653e-05 + }, + { + "step": 279, + "loss": 1.3636677067552228e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0599404138010868e-07, + "gradient_norm": 7.722853297309484e-06 + }, + { + "step": 280, + "loss": 1.3650281289301347e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1959844787033944e-07, + "gradient_norm": 1.330612758465577e-05 + }, + { + "step": 281, + "loss": 1.3647146261064336e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.16463178048798e-07, + "gradient_norm": 1.0076088074129075e-05 + }, + { + "step": 282, + "loss": 1.3637425581691787e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0674239920026594e-07, + "gradient_norm": 8.598893145972397e-06 + }, + { + "step": 283, + "loss": 1.3645377293869387e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.146946229686364e-07, + "gradient_norm": 9.738198059494607e-06 + }, + { + "step": 284, + "loss": 1.364064883091487e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0996616001411894e-07, + "gradient_norm": 1.4147389265417587e-05 + }, + { + "step": 285, + "loss": 1.3647075320477597e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1639236535975215e-07, + "gradient_norm": 1.8082633687299676e-05 + }, + { + "step": 286, + "loss": 1.3639229109685402e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0854642457379668e-07, + "gradient_norm": 2.022898661380168e-05 + }, + { + "step": 287, + "loss": 1.3647007108374964e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.163244516850682e-07, + "gradient_norm": 2.1593557903543115e-05 + }, + { + "step": 288, + "loss": 1.3645606486534234e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.149237587900643e-07, + "gradient_norm": 1.7747215679264627e-05 + }, + { + "step": 289, + "loss": 1.364389117952669e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.132080112460244e-07, + "gradient_norm": 8.193128451239318e-06 + }, + { + "step": 290, + "loss": 1.363786850561155e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.071857352348161e-07, + "gradient_norm": 1.1165042451466434e-05 + }, + { + "step": 291, + "loss": 1.3638001291838009e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.073181093464882e-07, + "gradient_norm": 1.764058106346056e-05 + }, + { + "step": 292, + "loss": 1.3634527931571938e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0384510435178527e-07, + "gradient_norm": 2.3541049813502468e-05 + }, + { + "step": 293, + "loss": 1.3642273188452236e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.115906170274684e-07, + "gradient_norm": 2.920571932918392e-05 + }, + { + "step": 294, + "loss": 1.3642134035762865e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.114508674821991e-07, + "gradient_norm": 2.7252986910752952e-05 + }, + { + "step": 295, + "loss": 1.3624273378809448e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9359076475211623e-07, + "gradient_norm": 1.792149487300776e-05 + }, + { + "step": 296, + "loss": 1.3632021364173852e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0133839484515192e-07, + "gradient_norm": 1.1498107596707996e-05 + }, + { + "step": 297, + "loss": 1.3633777598442975e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.030948706988056e-07, + "gradient_norm": 8.071260708675254e-06 + }, + { + "step": 298, + "loss": 1.3634258721140213e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.035759223417699e-07, + "gradient_norm": 8.297761269204784e-06 + }, + { + "step": 299, + "loss": 1.3638913515023887e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0823090096655505e-07, + "gradient_norm": 9.086310456041247e-06 + }, + { + "step": 300, + "loss": 1.3652516827278305e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.2183405690157088e-07, + "gradient_norm": 1.4238011317502242e-05 + }, + { + "step": 301, + "loss": 1.3631432011607103e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0074875806130876e-07, + "gradient_norm": 1.5094985428731889e-05 + }, + { + "step": 302, + "loss": 1.362791135761654e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9722810407074576e-07, + "gradient_norm": 1.8838154574041255e-05 + }, + { + "step": 303, + "loss": 1.3633827620651573e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0314466553372768e-07, + "gradient_norm": 1.6614989363006316e-05 + }, + { + "step": 304, + "loss": 1.36416392706451e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1095618762956292e-07, + "gradient_norm": 7.640634976269212e-06 + }, + { + "step": 305, + "loss": 1.3634111382998526e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0342820050700539e-07, + "gradient_norm": 1.173964119516313e-05 + }, + { + "step": 306, + "loss": 1.3678290088137146e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.0787345533790358e-07, + "gradient_norm": 2.547908661654219e-05 + }, + { + "step": 307, + "loss": 1.3631433830596507e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0075137285857636e-07, + "gradient_norm": 2.830051198543515e-05 + }, + { + "step": 308, + "loss": 1.3669816326000728e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 1.993992100324249e-07, + "gradient_norm": 2.303342080267612e-05 + }, + { + "step": 309, + "loss": 1.3626158761326224e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9547569252154062e-07, + "gradient_norm": 2.823154500219971e-05 + }, + { + "step": 310, + "loss": 1.363221053907182e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0152799606876215e-07, + "gradient_norm": 4.120272205909714e-05 + }, + { + "step": 311, + "loss": 1.3686707461602055e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.162907151159743e-07, + "gradient_norm": 4.903251101495698e-05 + }, + { + "step": 312, + "loss": 1.3642727026308421e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1204434119681537e-07, + "gradient_norm": 5.401455928222276e-05 + }, + { + "step": 313, + "loss": 1.3644799764733762e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.14116823826771e-07, + "gradient_norm": 6.191528518684208e-05 + }, + { + "step": 314, + "loss": 1.3646662409882993e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1597945476514724e-07, + "gradient_norm": 6.29326023044996e-05 + }, + { + "step": 315, + "loss": 1.36212729557883e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9058977329677873e-07, + "gradient_norm": 4.821916445507668e-05 + }, + { + "step": 316, + "loss": 1.3627386579173617e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.967040077488491e-07, + "gradient_norm": 3.354157888679765e-05 + }, + { + "step": 317, + "loss": 1.3631257388624363e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.0057424876540608e-07, + "gradient_norm": 3.084991840296425e-05 + }, + { + "step": 318, + "loss": 1.3625663086713757e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.949805152889894e-07, + "gradient_norm": 2.088170003844425e-05 + }, + { + "step": 319, + "loss": 1.3668931387655903e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 1.9851465538067714e-07, + "gradient_norm": 6.165102149680024e-06 + }, + { + "step": 320, + "loss": 1.3666814083990175e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 1.9639712434127432e-07, + "gradient_norm": 1.9243456335971132e-05 + }, + { + "step": 321, + "loss": 1.3674386536877137e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 2.0396942090883385e-07, + "gradient_norm": 2.8668988306890242e-05 + }, + { + "step": 322, + "loss": 1.3621015568787698e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9033259945899772e-07, + "gradient_norm": 3.5188171750633046e-05 + }, + { + "step": 323, + "loss": 1.3630175089929253e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9949179375089443e-07, + "gradient_norm": 4.6094228309812024e-05 + }, + { + "step": 324, + "loss": 1.3642242265632376e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1155919682769309e-07, + "gradient_norm": 5.7338162150699645e-05 + }, + { + "step": 325, + "loss": 1.3644586033478845e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.1390349047578638e-07, + "gradient_norm": 6.373255746439099e-05 + }, + { + "step": 326, + "loss": 1.3639402823173441e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 2.08719654892775e-07, + "gradient_norm": 6.075754208723083e-05 + }, + { + "step": 327, + "loss": 1.3666455743077677e-05, + "target_ce": 1.3470416888594627e-05, + "replay_kl": 1.960390818567248e-07, + "gradient_norm": 5.058916940470226e-05 + }, + { + "step": 328, + "loss": 1.362476632493781e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.9408388141073374e-07, + "gradient_norm": 3.3572847314644605e-05 + }, + { + "step": 329, + "loss": 1.3574817785411142e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.838712222479444e-07, + "gradient_norm": 1.1970440937147941e-05 + }, + { + "step": 330, + "loss": 1.3563661923399195e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7271547392283537e-07, + "gradient_norm": 1.944235191331245e-05 + }, + { + "step": 331, + "loss": 1.3616710930364206e-05, + "target_ce": 1.3430682884063572e-05, + "replay_kl": 1.860279041920876e-07, + "gradient_norm": 4.20032229158096e-05 + }, + { + "step": 332, + "loss": 1.3593459698313382e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 2.0251358989753498e-07, + "gradient_norm": 5.809055073768832e-05 + }, + { + "step": 333, + "loss": 1.3585390661319252e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.9444442500571313e-07, + "gradient_norm": 6.573047721758485e-05 + }, + { + "step": 334, + "loss": 1.3581894563685637e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.9094858316748287e-07, + "gradient_norm": 6.489101360784844e-05 + }, + { + "step": 335, + "loss": 1.3583039617515169e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.920934664667584e-07, + "gradient_norm": 5.766842878074385e-05 + }, + { + "step": 336, + "loss": 1.3588482033810578e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.9753630908780906e-07, + "gradient_norm": 4.11163637181744e-05 + }, + { + "step": 337, + "loss": 1.3572670468420256e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8172457316723012e-07, + "gradient_norm": 1.5169546713877935e-05 + }, + { + "step": 338, + "loss": 1.3574189324572217e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8324291772842116e-07, + "gradient_norm": 1.4661784007330425e-05 + }, + { + "step": 339, + "loss": 1.3582771316578146e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.9182553501195798e-07, + "gradient_norm": 3.368353281985037e-05 + }, + { + "step": 340, + "loss": 1.3570981536759064e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8003576940373023e-07, + "gradient_norm": 3.595481757656671e-05 + }, + { + "step": 341, + "loss": 1.3562355889007449e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.714094821636536e-07, + "gradient_norm": 2.210697675764095e-05 + }, + { + "step": 342, + "loss": 1.3572306670539547e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8136066159968323e-07, + "gradient_norm": 7.8258181019919e-06 + }, + { + "step": 343, + "loss": 1.3569892871601041e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7894710424570803e-07, + "gradient_norm": 2.404787483101245e-05 + }, + { + "step": 344, + "loss": 1.3575666343967896e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.84720306606323e-07, + "gradient_norm": 3.6572808312484995e-05 + }, + { + "step": 345, + "loss": 1.3577887330029625e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.869408379207016e-07, + "gradient_norm": 3.6000357795273885e-05 + }, + { + "step": 346, + "loss": 1.3579804544860963e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8885816643887665e-07, + "gradient_norm": 2.4480563297402114e-05 + }, + { + "step": 347, + "loss": 1.3612554539577104e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.8187424188909063e-07, + "gradient_norm": 1.651051570661366e-05 + }, + { + "step": 348, + "loss": 1.3568495887739118e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.775500066969471e-07, + "gradient_norm": 1.8549459127825685e-05 + }, + { + "step": 349, + "loss": 1.3615675015898887e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.849944908371981e-07, + "gradient_norm": 2.4742616005823947e-05 + }, + { + "step": 350, + "loss": 1.3570424926001579e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7947900232684333e-07, + "gradient_norm": 3.1849467632127926e-05 + }, + { + "step": 351, + "loss": 1.3579603546531871e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8865773654397344e-07, + "gradient_norm": 3.191533687640913e-05 + }, + { + "step": 352, + "loss": 1.3609508641820867e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.7882868519336625e-07, + "gradient_norm": 1.7539770851726644e-05 + }, + { + "step": 353, + "loss": 1.3576604033005424e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8565815196325275e-07, + "gradient_norm": 1.1048215128539596e-05 + }, + { + "step": 354, + "loss": 1.3572206626122352e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.812607024476165e-07, + "gradient_norm": 1.6369360309909098e-05 + }, + { + "step": 355, + "loss": 1.3565576409746427e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7462994605921267e-07, + "gradient_norm": 1.5828178220544942e-05 + }, + { + "step": 356, + "loss": 1.3558969840232749e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.680240018231416e-07, + "gradient_norm": 1.2733356015814934e-05 + }, + { + "step": 357, + "loss": 1.3603189472632948e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.725090896798065e-07, + "gradient_norm": 5.909334049647441e-06 + }, + { + "step": 358, + "loss": 1.3572378520620987e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8143245483770443e-07, + "gradient_norm": 8.987083674583118e-06 + }, + { + "step": 359, + "loss": 1.3565001609094907e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7405531593794876e-07, + "gradient_norm": 1.427048300683964e-05 + }, + { + "step": 360, + "loss": 1.3573845535574947e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8289901504431327e-07, + "gradient_norm": 1.5375031580333598e-05 + }, + { + "step": 361, + "loss": 1.3605344065581448e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.7466383894770843e-07, + "gradient_norm": 1.5105873899301514e-05 + }, + { + "step": 362, + "loss": 1.3604761988972314e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.7408149233233416e-07, + "gradient_norm": 1.3909382687415928e-05 + }, + { + "step": 363, + "loss": 1.3559561011788901e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6861478968621668e-07, + "gradient_norm": 1.4868349353491794e-05 + }, + { + "step": 364, + "loss": 1.3560008483182173e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6906224686863425e-07, + "gradient_norm": 1.651997081353329e-05 + }, + { + "step": 365, + "loss": 1.3572935131378472e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.819892929688649e-07, + "gradient_norm": 1.8053884559776634e-05 + }, + { + "step": 366, + "loss": 1.3563376342062838e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7243023364699184e-07, + "gradient_norm": 1.7780275811674073e-05 + }, + { + "step": 367, + "loss": 1.3568454050982837e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7750771519331465e-07, + "gradient_norm": 1.3095999747747555e-05 + }, + { + "step": 368, + "loss": 1.3561983905674424e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7103795357797935e-07, + "gradient_norm": 8.390895345655736e-06 + }, + { + "step": 369, + "loss": 1.3563078027800657e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7213193359566503e-07, + "gradient_norm": 1.1304133295197971e-05 + }, + { + "step": 370, + "loss": 1.3564863365900237e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7391759854490374e-07, + "gradient_norm": 1.319586590398103e-05 + }, + { + "step": 371, + "loss": 1.3578988728113472e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8804227863711276e-07, + "gradient_norm": 1.834077738749329e-05 + }, + { + "step": 372, + "loss": 1.356991742795799e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.789712769095786e-07, + "gradient_norm": 2.1929787180852145e-05 + }, + { + "step": 373, + "loss": 1.3554006727645174e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6306054817505355e-07, + "gradient_norm": 2.3892189346952364e-05 + }, + { + "step": 374, + "loss": 1.3558676073444076e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6773026345617836e-07, + "gradient_norm": 2.5037516024895012e-05 + }, + { + "step": 375, + "loss": 1.3557658348872792e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6671262415002275e-07, + "gradient_norm": 2.594866236904636e-05 + }, + { + "step": 376, + "loss": 1.3556941667047795e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.659958570598974e-07, + "gradient_norm": 2.701952325878665e-05 + }, + { + "step": 377, + "loss": 1.355268159386469e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6173525807516853e-07, + "gradient_norm": 2.8142307201051153e-05 + }, + { + "step": 378, + "loss": 1.3556961675931234e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6601546803940437e-07, + "gradient_norm": 2.8137992558185942e-05 + }, + { + "step": 379, + "loss": 1.3557637430494651e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.666909810182915e-07, + "gradient_norm": 2.7084064640803263e-05 + }, + { + "step": 380, + "loss": 1.3554556971939746e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.63610451409113e-07, + "gradient_norm": 2.420912824163679e-05 + }, + { + "step": 381, + "loss": 1.3603983461507596e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.733034054041127e-07, + "gradient_norm": 1.9453891582088545e-05 + }, + { + "step": 382, + "loss": 1.3564806977228727e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.738604566980939e-07, + "gradient_norm": 1.2386349226289894e-05 + }, + { + "step": 383, + "loss": 1.3601164937426802e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.7048455447365995e-07, + "gradient_norm": 6.756423317710869e-06 + }, + { + "step": 384, + "loss": 1.3558548744185828e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.676022236551944e-07, + "gradient_norm": 7.95686719357036e-06 + }, + { + "step": 385, + "loss": 1.3551954907597974e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.61008969712384e-07, + "gradient_norm": 1.1899449418706354e-05 + }, + { + "step": 386, + "loss": 1.3603254956251476e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.7257440276807756e-07, + "gradient_norm": 1.6066489479271695e-05 + }, + { + "step": 387, + "loss": 1.3555558325606398e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6461248719679134e-07, + "gradient_norm": 1.9281826098449528e-05 + }, + { + "step": 388, + "loss": 1.3567629139288329e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7668295981820847e-07, + "gradient_norm": 2.172756830987055e-05 + }, + { + "step": 389, + "loss": 1.3563499123847578e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.725532285945519e-07, + "gradient_norm": 2.2538291887030937e-05 + }, + { + "step": 390, + "loss": 1.3556265912484378e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6531976143596694e-07, + "gradient_norm": 1.776396675268188e-05 + }, + { + "step": 391, + "loss": 1.355984750261996e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6890157894522417e-07, + "gradient_norm": 1.1890949281223584e-05 + }, + { + "step": 392, + "loss": 1.3562053027271759e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.711069046450575e-07, + "gradient_norm": 9.63167167356005e-06 + }, + { + "step": 393, + "loss": 1.3562497770180926e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7155132070456602e-07, + "gradient_norm": 1.4529885447700508e-05 + }, + { + "step": 394, + "loss": 1.3565373592427932e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.744272140058456e-07, + "gradient_norm": 2.70161635853583e-05 + }, + { + "step": 395, + "loss": 1.355871427222155e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6776854749878112e-07, + "gradient_norm": 4.4740652811015025e-05 + }, + { + "step": 396, + "loss": 1.3560073966800701e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6912747469177702e-07, + "gradient_norm": 6.0342190408846363e-05 + }, + { + "step": 397, + "loss": 1.3576731362263672e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.857851543718425e-07, + "gradient_norm": 7.018999895080924e-05 + }, + { + "step": 398, + "loss": 1.3581413440988399e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.9046768784392043e-07, + "gradient_norm": 7.361750613199547e-05 + }, + { + "step": 399, + "loss": 1.3618712728202809e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.8803245893650455e-07, + "gradient_norm": 7.197778177214786e-05 + }, + { + "step": 400, + "loss": 1.3568414033215959e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.774683084931894e-07, + "gradient_norm": 6.490939995273948e-05 + }, + { + "step": 401, + "loss": 1.3551498341257684e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6055200546816195e-07, + "gradient_norm": 5.366243567550555e-05 + }, + { + "step": 402, + "loss": 1.3560997103923e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7005081076604256e-07, + "gradient_norm": 4.075152173754759e-05 + }, + { + "step": 403, + "loss": 1.3558737919083796e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6779139855316316e-07, + "gradient_norm": 2.7238414986641146e-05 + }, + { + "step": 404, + "loss": 1.355339463771088e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6244845824076037e-07, + "gradient_norm": 1.3194997336540837e-05 + }, + { + "step": 405, + "loss": 1.3597215001937002e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.6653443424274883e-07, + "gradient_norm": 1.3639957614941522e-05 + }, + { + "step": 406, + "loss": 1.3560902516474016e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6995676332953735e-07, + "gradient_norm": 1.6002719348762184e-05 + }, + { + "step": 407, + "loss": 1.3562502317654435e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.7155610976260505e-07, + "gradient_norm": 1.0016780834121164e-05 + }, + { + "step": 408, + "loss": 1.3587880857812706e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.5720067381153058e-07, + "gradient_norm": 9.465778930461966e-06 + }, + { + "step": 409, + "loss": 1.3549601135309786e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5865464320086176e-07, + "gradient_norm": 1.7337521057925187e-05 + }, + { + "step": 410, + "loss": 1.3541237422032282e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5029108624275977e-07, + "gradient_norm": 1.6348731151083484e-05 + }, + { + "step": 411, + "loss": 1.355300446448382e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6205807185087906e-07, + "gradient_norm": 9.25496260606451e-06 + }, + { + "step": 412, + "loss": 1.3557240890804678e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6629455501515622e-07, + "gradient_norm": 1.0077421393361874e-05 + }, + { + "step": 413, + "loss": 1.3553167264035437e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.622213261498473e-07, + "gradient_norm": 1.9855069695040584e-05 + }, + { + "step": 414, + "loss": 1.3553105418395717e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6215913944961358e-07, + "gradient_norm": 2.4859882614691742e-05 + }, + { + "step": 415, + "loss": 1.3549077266361564e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.581311863674273e-07, + "gradient_norm": 2.9998762329341844e-05 + }, + { + "step": 416, + "loss": 1.3555860277847387e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6491406995555735e-07, + "gradient_norm": 3.9600727177457884e-05 + }, + { + "step": 417, + "loss": 1.359568523184862e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.6500528943197423e-07, + "gradient_norm": 4.920802894048393e-05 + }, + { + "step": 418, + "loss": 1.3556741578213405e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.657953561107206e-07, + "gradient_norm": 5.9673180658137426e-05 + }, + { + "step": 419, + "loss": 1.3562970707425848e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.720242153169238e-07, + "gradient_norm": 7.010114495642483e-05 + }, + { + "step": 420, + "loss": 1.3573625437857118e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8267962786921998e-07, + "gradient_norm": 7.728351920377463e-05 + }, + { + "step": 421, + "loss": 1.3570315786637366e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.793696071672457e-07, + "gradient_norm": 7.845631625968963e-05 + }, + { + "step": 422, + "loss": 1.3576872333942447e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.8592581341181358e-07, + "gradient_norm": 7.203501445474103e-05 + }, + { + "step": 423, + "loss": 1.3562564163294155e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.716176711852313e-07, + "gradient_norm": 5.588059138972312e-05 + }, + { + "step": 424, + "loss": 1.3550538824347313e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.595926590880481e-07, + "gradient_norm": 3.3993062970694155e-05 + }, + { + "step": 425, + "loss": 1.3542737178795505e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.517910845905135e-07, + "gradient_norm": 1.3345411389309447e-05 + }, + { + "step": 426, + "loss": 1.355102449451806e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6007849978905142e-07, + "gradient_norm": 1.568879815749824e-05 + }, + { + "step": 427, + "loss": 1.3546666195907164e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5571964695482166e-07, + "gradient_norm": 2.8501141059678048e-05 + }, + { + "step": 428, + "loss": 1.3594533811556175e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.6385347123559768e-07, + "gradient_norm": 3.5950710298493505e-05 + }, + { + "step": 429, + "loss": 1.3545175534090959e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.542296104162233e-07, + "gradient_norm": 2.889378447434865e-05 + }, + { + "step": 430, + "loss": 1.3546407899411861e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5546166309832188e-07, + "gradient_norm": 9.699028851173352e-06 + }, + { + "step": 431, + "loss": 1.3544640751206316e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.536941596214092e-07, + "gradient_norm": 2.2045722289476544e-05 + }, + { + "step": 432, + "loss": 1.354574578726897e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5479932358175574e-07, + "gradient_norm": 4.698490374721587e-05 + }, + { + "step": 433, + "loss": 1.3557265447161626e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6631960875201912e-07, + "gradient_norm": 5.962038994766772e-05 + }, + { + "step": 434, + "loss": 1.3559805665863678e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6885948639355775e-07, + "gradient_norm": 5.777443220722489e-05 + }, + { + "step": 435, + "loss": 1.3548280549002811e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.573347390149138e-07, + "gradient_norm": 4.870541306445375e-05 + }, + { + "step": 436, + "loss": 1.3544262401410379e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5331617930769426e-07, + "gradient_norm": 3.558236494427547e-05 + }, + { + "step": 437, + "loss": 1.354685900878394e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5591268720527296e-07, + "gradient_norm": 2.00428330572322e-05 + }, + { + "step": 438, + "loss": 1.3581282473751344e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.5060270186495472e-07, + "gradient_norm": 7.597428520966787e-06 + }, + { + "step": 439, + "loss": 1.3543059139919933e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5211267623271851e-07, + "gradient_norm": 2.5044133508345112e-05 + }, + { + "step": 440, + "loss": 1.3541373846237548e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5042813572563318e-07, + "gradient_norm": 4.03168196498882e-05 + }, + { + "step": 441, + "loss": 1.3556987141782884e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.6604062125225028e-07, + "gradient_norm": 4.6704190026503056e-05 + }, + { + "step": 442, + "loss": 1.3505063179763965e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.5385248275379126e-07, + "gradient_norm": 4.30848631367553e-05 + }, + { + "step": 443, + "loss": 1.3547816706704907e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.568708967170096e-07, + "gradient_norm": 3.191070936736651e-05 + }, + { + "step": 444, + "loss": 1.354486357740825e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.53917113721036e-07, + "gradient_norm": 1.7660609955783002e-05 + }, + { + "step": 445, + "loss": 1.3548599781643134e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.576532326907909e-07, + "gradient_norm": 1.790407441149e-05 + }, + { + "step": 446, + "loss": 1.3542622582463082e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5167614719757694e-07, + "gradient_norm": 3.825322710326873e-05 + }, + { + "step": 447, + "loss": 1.3555957593780477e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.650113290452282e-07, + "gradient_norm": 5.52257988601923e-05 + }, + { + "step": 448, + "loss": 1.3560928891820367e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.699830818324699e-07, + "gradient_norm": 6.054196273908019e-05 + }, + { + "step": 449, + "loss": 1.3588350157078821e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.576696746496964e-07, + "gradient_norm": 5.528752080863342e-05 + }, + { + "step": 450, + "loss": 1.3548113201977685e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5716673829047068e-07, + "gradient_norm": 4.216186061967164e-05 + }, + { + "step": 451, + "loss": 1.3542952729039825e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.5200649272628652e-07, + "gradient_norm": 3.1265859433915466e-05 + }, + { + "step": 452, + "loss": 1.3542963642976247e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.520171366564682e-07, + "gradient_norm": 2.104164013871923e-05 + }, + { + "step": 453, + "loss": 1.3530829164665192e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.398831130927647e-07, + "gradient_norm": 9.506439710094128e-06 + }, + { + "step": 454, + "loss": 1.3493303413270041e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.420934552243125e-07, + "gradient_norm": 1.4026796634425409e-05 + }, + { + "step": 455, + "loss": 1.3578066500485875e-05, + "target_ce": 1.3430680155579466e-05, + "replay_kl": 1.4738664333435736e-07, + "gradient_norm": 2.8332284273346886e-05 + }, + { + "step": 456, + "loss": 1.350450111203827e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.5329075608860876e-07, + "gradient_norm": 3.74590526917018e-05 + }, + { + "step": 457, + "loss": 1.3538412531488575e-05, + "target_ce": 1.339094615104841e-05, + "replay_kl": 1.4746628096418135e-07, + "gradient_norm": 4.417891250341199e-05 + }, + { + "step": 458, + "loss": 1.3547768503485713e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.5682408616157772e-07, + "gradient_norm": 4.968930807081051e-05 + }, + { + "step": 459, + "loss": 1.3505775314115454e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.545650150092115e-07, + "gradient_norm": 5.0265007303096354e-05 + }, + { + "step": 460, + "loss": 1.3544954526878428e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.5400989639147156e-07, + "gradient_norm": 4.341797830420546e-05 + }, + { + "step": 461, + "loss": 1.3543749446398579e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.5280504328529787e-07, + "gradient_norm": 3.268896762165241e-05 + }, + { + "step": 462, + "loss": 1.3496256542566698e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4504655609925976e-07, + "gradient_norm": 2.1057699996163137e-05 + }, + { + "step": 463, + "loss": 1.3506357390724588e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.5514690687723487e-07, + "gradient_norm": 1.3494602171704173e-05 + }, + { + "step": 464, + "loss": 1.3495037819666322e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4382750634922559e-07, + "gradient_norm": 2.731894164753612e-05 + }, + { + "step": 465, + "loss": 1.3549363757192623e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.5841899880797428e-07, + "gradient_norm": 5.06281758134719e-05 + }, + { + "step": 466, + "loss": 1.3523387679015286e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.7217750780673668e-07, + "gradient_norm": 6.703819963149726e-05 + }, + { + "step": 467, + "loss": 1.3527772352972534e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.7656176964919723e-07, + "gradient_norm": 7.194119098130614e-05 + }, + { + "step": 468, + "loss": 1.3521756955015007e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.705468548607314e-07, + "gradient_norm": 7.21095348126255e-05 + }, + { + "step": 469, + "loss": 1.3512033547158353e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.6082290699159785e-07, + "gradient_norm": 6.705328996758908e-05 + }, + { + "step": 470, + "loss": 1.3512554687622469e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.6134451641391934e-07, + "gradient_norm": 5.4785610700491816e-05 + }, + { + "step": 471, + "loss": 1.3511065844795667e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.5985555990027933e-07, + "gradient_norm": 3.9691014535492286e-05 + }, + { + "step": 472, + "loss": 1.350099228147883e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4978158446865564e-07, + "gradient_norm": 3.0417762900469825e-05 + }, + { + "step": 473, + "loss": 1.3537413906306028e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.4646957424702123e-07, + "gradient_norm": 2.7308295102557167e-05 + }, + { + "step": 474, + "loss": 1.3502718502422795e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.5150837384680926e-07, + "gradient_norm": 2.1813806597492658e-05 + }, + { + "step": 475, + "loss": 1.3491208846971858e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3999817838339368e-07, + "gradient_norm": 1.0785837730509229e-05 + }, + { + "step": 476, + "loss": 1.348869136563735e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3748140759162197e-07, + "gradient_norm": 1.0056960491056088e-05 + }, + { + "step": 477, + "loss": 1.3500985915015917e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4977521800574323e-07, + "gradient_norm": 1.9309283743496053e-05 + }, + { + "step": 478, + "loss": 1.3493747246684507e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4253694757826452e-07, + "gradient_norm": 1.706197508610785e-05 + }, + { + "step": 479, + "loss": 1.3490875062416308e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3966463541237317e-07, + "gradient_norm": 1.1944087418669369e-05 + }, + { + "step": 480, + "loss": 1.349998183286516e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4877166165661038e-07, + "gradient_norm": 1.4214624570740853e-05 + }, + { + "step": 481, + "loss": 1.349358444713289e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.423745459305792e-07, + "gradient_norm": 1.6686513845343143e-05 + }, + { + "step": 482, + "loss": 1.3492415746441111e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.412053904914501e-07, + "gradient_norm": 1.0387074325990397e-05 + }, + { + "step": 483, + "loss": 1.3534163372241892e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.4321932439997909e-07, + "gradient_norm": 5.818006229674211e-06 + }, + { + "step": 484, + "loss": 1.3528294402931351e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.3735031245687424e-07, + "gradient_norm": 8.545320270059165e-06 + }, + { + "step": 485, + "loss": 1.3486785064742435e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3557512090756063e-07, + "gradient_norm": 7.316602022910956e-06 + }, + { + "step": 486, + "loss": 1.3479558219842147e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.2834792073590506e-07, + "gradient_norm": 5.937466539762681e-06 + }, + { + "step": 487, + "loss": 1.3488498552760575e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3728850944971782e-07, + "gradient_norm": 9.627633517084178e-06 + }, + { + "step": 488, + "loss": 1.3491808203980327e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4059781960895634e-07, + "gradient_norm": 1.1464966519270092e-05 + }, + { + "step": 489, + "loss": 1.3490252968040295e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.390429247294378e-07, + "gradient_norm": 1.3694424524146598e-05 + }, + { + "step": 490, + "loss": 1.3484175724443048e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3296528322825907e-07, + "gradient_norm": 1.2319182133069262e-05 + }, + { + "step": 491, + "loss": 1.3488976037479006e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3776573837276374e-07, + "gradient_norm": 1.5329706002376042e-05 + }, + { + "step": 492, + "loss": 1.348242221865803e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.31211720599822e-07, + "gradient_norm": 1.8932243619929068e-05 + }, + { + "step": 493, + "loss": 1.3487337128026411e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.361266157573482e-07, + "gradient_norm": 2.0326631783973426e-05 + }, + { + "step": 494, + "loss": 1.3491151548805647e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3994150549478945e-07, + "gradient_norm": 2.1111101887072437e-05 + }, + { + "step": 495, + "loss": 1.3490760466083884e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.395502522427705e-07, + "gradient_norm": 1.3774936633126345e-05 + }, + { + "step": 496, + "loss": 1.3480836059898138e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.296254481530923e-07, + "gradient_norm": 1.1690869541780557e-05 + }, + { + "step": 497, + "loss": 1.348852674709633e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3731667536376335e-07, + "gradient_norm": 1.17807157948846e-05 + }, + { + "step": 498, + "loss": 1.3484958799381275e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3374855711845157e-07, + "gradient_norm": 7.3455676101730205e-06 + }, + { + "step": 499, + "loss": 1.3524511814466678e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.3356766714878177e-07, + "gradient_norm": 1.0742846825451124e-05 + }, + { + "step": 500, + "loss": 1.3493649021256715e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.4243825319226744e-07, + "gradient_norm": 1.0431422197143547e-05 + }, + { + "step": 501, + "loss": 1.3481287169270217e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3007716859192442e-07, + "gradient_norm": 5.798590791528113e-06 + }, + { + "step": 502, + "loss": 1.3480172128765844e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.2896143175566976e-07, + "gradient_norm": 8.32178284326801e-06 + }, + { + "step": 503, + "loss": 1.3517677871277556e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.2673312710376194e-07, + "gradient_norm": 1.0002659109886736e-05 + }, + { + "step": 504, + "loss": 1.3482300346367992e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3109013252687873e-07, + "gradient_norm": 1.3706328900298104e-05 + }, + { + "step": 505, + "loss": 1.3470249541569501e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.190396687889006e-07, + "gradient_norm": 1.4057018233870622e-05 + }, + { + "step": 506, + "loss": 1.3473517356032971e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.223067158662161e-07, + "gradient_norm": 1.3530928299587686e-05 + }, + { + "step": 507, + "loss": 1.3488017430063337e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3680701727025735e-07, + "gradient_norm": 1.862161843746435e-05 + }, + { + "step": 508, + "loss": 1.3482085705618374e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3087498018649057e-07, + "gradient_norm": 2.61565455730306e-05 + }, + { + "step": 509, + "loss": 1.3478846085490659e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.276354453239037e-07, + "gradient_norm": 3.317535083624534e-05 + }, + { + "step": 510, + "loss": 1.3525365829991642e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.3442119950468623e-07, + "gradient_norm": 3.688161086756736e-05 + }, + { + "step": 511, + "loss": 1.3518071682483424e-05, + "target_ce": 1.3390944332059007e-05, + "replay_kl": 1.2712706620732206e-07, + "gradient_norm": 4.288387572159991e-05 + }, + { + "step": 512, + "loss": 1.3490108358382713e-05, + "target_ce": 1.3351210327527951e-05, + "replay_kl": 1.3889807348732575e-07, + "gradient_norm": 5.321271964930929e-05 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/run.json new file mode 100644 index 0000000000000000000000000000000000000000..a4136c8fe4fd732d1eba4d29a7f4e398e79c623c --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/first_strict-01/lr0.0001-sham/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "first_strict-01", + "arm": "sham", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "7c3666e2dd464d03f7138b6509796f959aa35b0f473db5b69f50b667e0f4c223", + "new_fact_sha256": "a874777c4836f1ef056b196ea72d3b54ab6d005fa371ae2b9c9e9b8d8deea864", + "target_batch_sha256": "b53a719ef4456acda337a07181ed43a372cd45a6a9cc62f7e4cc0cc78a42d8b6", + "replay_batch_sha256": "f32ea13e3ccdb57ab18ac59b90ca1eacc591b5978f50bebe8161408e4c63a1a1", + "parent_reference_sha256": "cdcc63d69e00f04fdb023b1f41d5038f901adc49874dafcf2178a47113dccc54", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-edit/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-edit/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..a912238c91365718d5adf22451ece0eb69ca77ab --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-edit/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 5.520181655883789, + "target_ce": 5.520181655883789, + "replay_kl": 0.0, + "gradient_norm": 47.030555725097656 + }, + { + "step": 2, + "loss": 4.5211873054504395, + "target_ce": 4.521185398101807, + "replay_kl": 2.0673351173172705e-06, + "gradient_norm": 52.86160659790039 + }, + { + "step": 3, + "loss": 3.4422521591186523, + "target_ce": 3.442242383956909, + "replay_kl": 9.782468623598106e-06, + "gradient_norm": 56.784324645996094 + }, + { + "step": 4, + "loss": 2.3325932025909424, + "target_ce": 2.3325653076171875, + "replay_kl": 2.801029768306762e-05, + "gradient_norm": 58.814796447753906 + }, + { + "step": 5, + "loss": 1.242135763168335, + "target_ce": 1.2420681715011597, + "replay_kl": 6.760702672181651e-05, + "gradient_norm": 57.6119499206543 + }, + { + "step": 6, + "loss": 0.3385531008243561, + "target_ce": 0.33840563893318176, + "replay_kl": 0.00014745790394954383, + "gradient_norm": 36.153297424316406 + }, + { + "step": 7, + "loss": 0.03428018093109131, + "target_ce": 0.03398057073354721, + "replay_kl": 0.0002996113325934857, + "gradient_norm": 4.750589847564697 + }, + { + "step": 8, + "loss": 0.0047993166372179985, + "target_ce": 0.004227972589433193, + "replay_kl": 0.000571344280615449, + "gradient_norm": 0.4304502010345459 + }, + { + "step": 9, + "loss": 0.0020916336216032505, + "target_ce": 0.0011812390293926, + "replay_kl": 0.0009103947086259723, + "gradient_norm": 0.12711496651172638 + }, + { + "step": 10, + "loss": 0.0017513177590444684, + "target_ce": 0.0005604195175692439, + "replay_kl": 0.0011908982414752245, + "gradient_norm": 0.13417847454547882 + }, + { + "step": 11, + "loss": 0.0016518756747245789, + "target_ce": 0.00034553464502096176, + "replay_kl": 0.001306341029703617, + "gradient_norm": 0.14041104912757874 + }, + { + "step": 12, + "loss": 0.0015016328543424606, + "target_ce": 0.0002483446442056447, + "replay_kl": 0.0012532882392406464, + "gradient_norm": 0.12744934856891632 + }, + { + "step": 13, + "loss": 0.0013030949048697948, + "target_ce": 0.0001960455992957577, + "replay_kl": 0.001107049291022122, + "gradient_norm": 0.10404501855373383 + }, + { + "step": 14, + "loss": 0.0011091132182627916, + "target_ce": 0.00016451133706141263, + "replay_kl": 0.0009446018375456333, + "gradient_norm": 0.08037368208169937 + }, + { + "step": 15, + "loss": 0.0009512131800875068, + "target_ce": 0.00014409587311092764, + "replay_kl": 0.0008071173215284944, + "gradient_norm": 0.0617954358458519 + }, + { + "step": 16, + "loss": 0.0008334859739989042, + "target_ce": 0.00013015382864978164, + "replay_kl": 0.0007033321307972074, + "gradient_norm": 0.04905154928565025 + }, + { + "step": 17, + "loss": 0.0007451208075508475, + "target_ce": 0.0001200246624648571, + "replay_kl": 0.0006250961450859904, + "gradient_norm": 0.040378082543611526 + }, + { + "step": 18, + "loss": 0.000678591663017869, + "target_ce": 0.000112397778138984, + "replay_kl": 0.0005661938921548426, + "gradient_norm": 0.03445293381810188 + }, + { + "step": 19, + "loss": 0.0006250436417758465, + "target_ce": 0.00010631996701704338, + "replay_kl": 0.0005187236820347607, + "gradient_norm": 0.030135134235024452 + }, + { + "step": 20, + "loss": 0.000581289641559124, + "target_ce": 0.00010171191388508305, + "replay_kl": 0.0004795777495019138, + "gradient_norm": 0.026874152943491936 + }, + { + "step": 21, + "loss": 0.0005424540722742677, + "target_ce": 9.762020636117086e-05, + "replay_kl": 0.0004448338586371392, + "gradient_norm": 0.02421443909406662 + }, + { + "step": 22, + "loss": 0.0005077497335150838, + "target_ce": 9.432295337319374e-05, + "replay_kl": 0.00041342678014189005, + "gradient_norm": 0.02197737991809845 + }, + { + "step": 23, + "loss": 0.0004763957695104182, + "target_ce": 9.138320456258953e-05, + "replay_kl": 0.00038501256494782865, + "gradient_norm": 0.02006513811647892 + }, + { + "step": 24, + "loss": 0.0004468279075808823, + "target_ce": 8.880097448127344e-05, + "replay_kl": 0.0003580269403755665, + "gradient_norm": 0.01833696849644184 + }, + { + "step": 25, + "loss": 0.0004197694652248174, + "target_ce": 8.645709021948278e-05, + "replay_kl": 0.0003333123750053346, + "gradient_norm": 0.016812356188893318 + }, + { + "step": 26, + "loss": 0.00039479442057199776, + "target_ce": 8.443100523436442e-05, + "replay_kl": 0.00031036342261359096, + "gradient_norm": 0.015445520170032978 + }, + { + "step": 27, + "loss": 0.0003713145270012319, + "target_ce": 8.236517896875739e-05, + "replay_kl": 0.0002889493480324745, + "gradient_norm": 0.014200148172676563 + }, + { + "step": 28, + "loss": 0.0003496021672617644, + "target_ce": 8.041851833695546e-05, + "replay_kl": 0.00026918365620076656, + "gradient_norm": 0.013080690987408161 + }, + { + "step": 29, + "loss": 0.0003299159579910338, + "target_ce": 7.863075734348968e-05, + "replay_kl": 0.00025128520792350173, + "gradient_norm": 0.01207851991057396 + }, + { + "step": 30, + "loss": 0.0003115119179710746, + "target_ce": 7.708136399742216e-05, + "replay_kl": 0.0002344305394217372, + "gradient_norm": 0.011157490313053131 + }, + { + "step": 31, + "loss": 0.0002943674917332828, + "target_ce": 7.541277591371909e-05, + "replay_kl": 0.00021895472309552133, + "gradient_norm": 0.01032448559999466 + }, + { + "step": 32, + "loss": 0.00027865837910212576, + "target_ce": 7.386336801573634e-05, + "replay_kl": 0.00020479501108638942, + "gradient_norm": 0.009574751369655132 + }, + { + "step": 33, + "loss": 0.0002644183987285942, + "target_ce": 7.243314030347392e-05, + "replay_kl": 0.00019198525114916265, + "gradient_norm": 0.008901551365852356 + }, + { + "step": 34, + "loss": 0.0002511996135581285, + "target_ce": 7.092344458214939e-05, + "replay_kl": 0.0001802761689759791, + "gradient_norm": 0.008292756974697113 + }, + { + "step": 35, + "loss": 0.0002391669841017574, + "target_ce": 6.937400758033618e-05, + "replay_kl": 0.0001697929692454636, + "gradient_norm": 0.0077503155916929245 + }, + { + "step": 36, + "loss": 0.00022810928930994123, + "target_ce": 6.79437507642433e-05, + "replay_kl": 0.00016016553854569793, + "gradient_norm": 0.0072585721500217915 + }, + { + "step": 37, + "loss": 0.00021809290046803653, + "target_ce": 6.667241541435942e-05, + "replay_kl": 0.00015142049232963473, + "gradient_norm": 0.006818519439548254 + }, + { + "step": 38, + "loss": 0.00020868584397248924, + "target_ce": 6.536134605994448e-05, + "replay_kl": 0.00014332450518850237, + "gradient_norm": 0.006413141265511513 + }, + { + "step": 39, + "loss": 0.0002000871900236234, + "target_ce": 6.397078686859459e-05, + "replay_kl": 0.00013611640315502882, + "gradient_norm": 0.006053549237549305 + }, + { + "step": 40, + "loss": 0.00019224995048716664, + "target_ce": 6.269942969083786e-05, + "replay_kl": 0.00012955052079632878, + "gradient_norm": 0.0057291812263429165 + }, + { + "step": 41, + "loss": 0.00018504378385841846, + "target_ce": 6.158698670333251e-05, + "replay_kl": 0.00012345678987912834, + "gradient_norm": 0.005432797130197287 + }, + { + "step": 42, + "loss": 0.00017830266733653843, + "target_ce": 6.0315618611639366e-05, + "replay_kl": 0.00011798704508692026, + "gradient_norm": 0.005163763649761677 + }, + { + "step": 43, + "loss": 0.00017231404490303248, + "target_ce": 5.932236308581196e-05, + "replay_kl": 0.00011299168545519933, + "gradient_norm": 0.004924878478050232 + }, + { + "step": 44, + "loss": 0.00016647361917421222, + "target_ce": 5.817017881781794e-05, + "replay_kl": 0.00010830344399437308, + "gradient_norm": 0.00469856895506382 + }, + { + "step": 45, + "loss": 0.00016108468116726726, + "target_ce": 5.7097451644949615e-05, + "replay_kl": 0.00010398722952231765, + "gradient_norm": 0.004494952503591776 + }, + { + "step": 46, + "loss": 0.0001562243269290775, + "target_ce": 5.6104185205185786e-05, + "replay_kl": 0.00010012014536187053, + "gradient_norm": 0.004310313146561384 + }, + { + "step": 47, + "loss": 0.0001515361072961241, + "target_ce": 5.503144711838104e-05, + "replay_kl": 9.650465653976426e-05, + "gradient_norm": 0.004137503914535046 + }, + { + "step": 48, + "loss": 0.0001470653951400891, + "target_ce": 5.3958705393597484e-05, + "replay_kl": 9.310668974649161e-05, + "gradient_norm": 0.0039765676483511925 + }, + { + "step": 49, + "loss": 0.0001431479468010366, + "target_ce": 5.312435678206384e-05, + "replay_kl": 9.002358274301514e-05, + "gradient_norm": 0.0038323397748172283 + }, + { + "step": 50, + "loss": 0.0001393274578731507, + "target_ce": 5.217080979491584e-05, + "replay_kl": 8.715665171621367e-05, + "gradient_norm": 0.0036968097556382418 + }, + { + "step": 51, + "loss": 0.00013571263116318733, + "target_ce": 5.1296723540872335e-05, + "replay_kl": 8.441590762231499e-05, + "gradient_norm": 0.0035699778236448765 + }, + { + "step": 52, + "loss": 0.00013231506454758346, + "target_ce": 5.0422633648850024e-05, + "replay_kl": 8.189243817469105e-05, + "gradient_norm": 0.0034503282513469458 + }, + { + "step": 53, + "loss": 0.00012914605031255633, + "target_ce": 4.9628011765889823e-05, + "replay_kl": 7.95180385466665e-05, + "gradient_norm": 0.0033398265950381756 + }, + { + "step": 54, + "loss": 0.00012607632379513234, + "target_ce": 4.8753903683973476e-05, + "replay_kl": 7.732241647318006e-05, + "gradient_norm": 0.0032371324487030506 + }, + { + "step": 55, + "loss": 0.00012324574345257133, + "target_ce": 4.799900852958672e-05, + "replay_kl": 7.524673856096342e-05, + "gradient_norm": 0.0031415773555636406 + }, + { + "step": 56, + "loss": 0.00012049428914906457, + "target_ce": 4.724410246126354e-05, + "replay_kl": 7.325018668780103e-05, + "gradient_norm": 0.0030498725827783346 + }, + { + "step": 57, + "loss": 0.00011796434409916401, + "target_ce": 4.652893403545022e-05, + "replay_kl": 7.143541006371379e-05, + "gradient_norm": 0.0029650849755853415 + }, + { + "step": 58, + "loss": 0.00011546033783815801, + "target_ce": 4.581375469570048e-05, + "replay_kl": 6.964658678043634e-05, + "gradient_norm": 0.002883167704567313 + }, + { + "step": 59, + "loss": 0.00011312041897326708, + "target_ce": 4.5098571717971936e-05, + "replay_kl": 6.802184361731634e-05, + "gradient_norm": 0.002807480050250888 + }, + { + "step": 60, + "loss": 0.00011081471166107804, + "target_ce": 4.4383396016201004e-05, + "replay_kl": 6.643131928285584e-05, + "gradient_norm": 0.0027344131376594305 + }, + { + "step": 61, + "loss": 0.00010865829244721681, + "target_ce": 4.3707947043003514e-05, + "replay_kl": 6.495034176623449e-05, + "gradient_norm": 0.002665327163413167 + }, + { + "step": 62, + "loss": 0.00010662394197424874, + "target_ce": 4.311196971684694e-05, + "replay_kl": 6.35119722574018e-05, + "gradient_norm": 0.0025992693845182657 + }, + { + "step": 63, + "loss": 0.00010474563168827444, + "target_ce": 4.255572275724262e-05, + "replay_kl": 6.218990893103182e-05, + "gradient_norm": 0.002539890119805932 + }, + { + "step": 64, + "loss": 0.00010285768075846136, + "target_ce": 4.195973451714963e-05, + "replay_kl": 6.089794260333292e-05, + "gradient_norm": 0.0024812461342662573 + }, + { + "step": 65, + "loss": 0.00010104068496730179, + "target_ce": 4.14034839195665e-05, + "replay_kl": 5.9637204685714096e-05, + "gradient_norm": 0.0024248086847364902 + }, + { + "step": 66, + "loss": 9.931749082170427e-05, + "target_ce": 4.084722968400456e-05, + "replay_kl": 5.84702574997209e-05, + "gradient_norm": 0.002372271614149213 + }, + { + "step": 67, + "loss": 9.763996058609337e-05, + "target_ce": 4.029096817248501e-05, + "replay_kl": 5.7348996051587164e-05, + "gradient_norm": 0.002322221640497446 + }, + { + "step": 68, + "loss": 9.603879152564332e-05, + "target_ce": 3.973471393692307e-05, + "replay_kl": 5.630407758872025e-05, + "gradient_norm": 0.002273186109960079 + }, + { + "step": 69, + "loss": 9.452813537791371e-05, + "target_ce": 3.929765443899669e-05, + "replay_kl": 5.523047730093822e-05, + "gradient_norm": 0.002227012300863862 + }, + { + "step": 70, + "loss": 9.313238842878491e-05, + "target_ce": 3.8900332583580166e-05, + "replay_kl": 5.423205948318355e-05, + "gradient_norm": 0.002183535834774375 + }, + { + "step": 71, + "loss": 9.164022048935294e-05, + "target_ce": 3.834406743408181e-05, + "replay_kl": 5.329615669324994e-05, + "gradient_norm": 0.002141413511708379 + }, + { + "step": 72, + "loss": 9.027100168168545e-05, + "target_ce": 3.7907007936155424e-05, + "replay_kl": 5.236399010755122e-05, + "gradient_norm": 0.0021003740839660168 + }, + { + "step": 73, + "loss": 8.890147000784054e-05, + "target_ce": 3.7430214433697984e-05, + "replay_kl": 5.147125557414256e-05, + "gradient_norm": 0.0020605018362402916 + }, + { + "step": 74, + "loss": 8.757247996982187e-05, + "target_ce": 3.6953420931240544e-05, + "replay_kl": 5.0619062676560134e-05, + "gradient_norm": 0.002022086177021265 + }, + { + "step": 75, + "loss": 8.622358291177079e-05, + "target_ce": 3.6436886148294434e-05, + "replay_kl": 4.978669676347636e-05, + "gradient_norm": 0.0019849156960844994 + }, + { + "step": 76, + "loss": 8.50565847940743e-05, + "target_ce": 3.60395570169203e-05, + "replay_kl": 4.9017031415132806e-05, + "gradient_norm": 0.001951450714841485 + }, + { + "step": 77, + "loss": 8.383517706533894e-05, + "target_ce": 3.560249388101511e-05, + "replay_kl": 4.823268318432383e-05, + "gradient_norm": 0.0019178190268576145 + }, + { + "step": 78, + "loss": 8.279546455014497e-05, + "target_ce": 3.5284629120724276e-05, + "replay_kl": 4.75108390673995e-05, + "gradient_norm": 0.001886733458377421 + }, + { + "step": 79, + "loss": 8.165981853380799e-05, + "target_ce": 3.488729635137133e-05, + "replay_kl": 4.677252582041547e-05, + "gradient_norm": 0.0018556340364739299 + }, + { + "step": 80, + "loss": 8.061425614869222e-05, + "target_ce": 3.4529697586549446e-05, + "replay_kl": 4.6084558562142774e-05, + "gradient_norm": 0.001827157917432487 + }, + { + "step": 81, + "loss": 7.956514309626073e-05, + "target_ce": 3.417209882172756e-05, + "replay_kl": 4.539304063655436e-05, + "gradient_norm": 0.0017979914555326104 + }, + { + "step": 82, + "loss": 7.866726082284003e-05, + "target_ce": 3.393370207049884e-05, + "replay_kl": 4.4733558752341196e-05, + "gradient_norm": 0.0017717333976179361 + }, + { + "step": 83, + "loss": 7.760645530652255e-05, + "target_ce": 3.3536369301145896e-05, + "replay_kl": 4.407008964335546e-05, + "gradient_norm": 0.0017431240994483232 + }, + { + "step": 84, + "loss": 7.657588867004961e-05, + "target_ce": 3.3099295251304284e-05, + "replay_kl": 4.3476593418745324e-05, + "gradient_norm": 0.0017168840859085321 + }, + { + "step": 85, + "loss": 7.558599463663995e-05, + "target_ce": 3.27416964864824e-05, + "replay_kl": 4.284430178813636e-05, + "gradient_norm": 0.0016900186892598867 + }, + { + "step": 86, + "loss": 7.476931205019355e-05, + "target_ce": 3.250329609727487e-05, + "replay_kl": 4.2266019590897486e-05, + "gradient_norm": 0.0016669922042638063 + }, + { + "step": 87, + "loss": 7.388580706901848e-05, + "target_ce": 3.2185434974962845e-05, + "replay_kl": 4.1700375732034445e-05, + "gradient_norm": 0.0016429779352620244 + }, + { + "step": 88, + "loss": 7.305278995772824e-05, + "target_ce": 3.1907296943245456e-05, + "replay_kl": 4.114549301448278e-05, + "gradient_norm": 0.0016202322440221906 + }, + { + "step": 89, + "loss": 7.221615669550374e-05, + "target_ce": 3.162916618748568e-05, + "replay_kl": 4.058699050801806e-05, + "gradient_norm": 0.0015976476715877652 + }, + { + "step": 90, + "loss": 7.140208617784083e-05, + "target_ce": 3.135102815576829e-05, + "replay_kl": 4.0051061660051346e-05, + "gradient_norm": 0.001575309899635613 + }, + { + "step": 91, + "loss": 7.063134398777038e-05, + "target_ce": 3.111263140453957e-05, + "replay_kl": 3.9518716221209615e-05, + "gradient_norm": 0.001555494382046163 + }, + { + "step": 92, + "loss": 6.978058081585914e-05, + "target_ce": 3.075502536376007e-05, + "replay_kl": 3.902555181412026e-05, + "gradient_norm": 0.001533206203021109 + }, + { + "step": 93, + "loss": 6.905336340423673e-05, + "target_ce": 3.0516624974552542e-05, + "replay_kl": 3.8536742067663e-05, + "gradient_norm": 0.0015132821863517165 + }, + { + "step": 94, + "loss": 6.824523734394461e-05, + "target_ce": 3.0198752938304096e-05, + "replay_kl": 3.804648804361932e-05, + "gradient_norm": 0.0014933353522792459 + }, + { + "step": 95, + "loss": 6.758196832379326e-05, + "target_ce": 3.000008473463822e-05, + "replay_kl": 3.758188177016564e-05, + "gradient_norm": 0.001475706696510315 + }, + { + "step": 96, + "loss": 6.680119258817285e-05, + "target_ce": 2.9682216336368583e-05, + "replay_kl": 3.7118974432814866e-05, + "gradient_norm": 0.0014557300601154566 + }, + { + "step": 97, + "loss": 6.6100423282478e-05, + "target_ce": 2.9443814128171653e-05, + "replay_kl": 3.665660915430635e-05, + "gradient_norm": 0.0014370204880833626 + }, + { + "step": 98, + "loss": 6.546716031152755e-05, + "target_ce": 2.9245144105516374e-05, + "replay_kl": 3.622201984398998e-05, + "gradient_norm": 0.0014213130343705416 + }, + { + "step": 99, + "loss": 6.476855196524411e-05, + "target_ce": 2.8967006073798984e-05, + "replay_kl": 3.580154952942394e-05, + "gradient_norm": 0.0014037329237908125 + }, + { + "step": 100, + "loss": 6.405264139175415e-05, + "target_ce": 2.8688868042081594e-05, + "replay_kl": 3.536376971169375e-05, + "gradient_norm": 0.0013861105544492602 + }, + { + "step": 101, + "loss": 6.339512037811801e-05, + "target_ce": 2.8450462195905857e-05, + "replay_kl": 3.4944660001201555e-05, + "gradient_norm": 0.0013700136914849281 + }, + { + "step": 102, + "loss": 6.281449168454856e-05, + "target_ce": 2.8291527996771038e-05, + "replay_kl": 3.452296004979871e-05, + "gradient_norm": 0.0013547008857131004 + }, + { + "step": 103, + "loss": 6.216899782884866e-05, + "target_ce": 2.8053125788574107e-05, + "replay_kl": 3.411587022128515e-05, + "gradient_norm": 0.001337676658295095 + }, + { + "step": 104, + "loss": 6.156424205983058e-05, + "target_ce": 2.781471994239837e-05, + "replay_kl": 3.374952211743221e-05, + "gradient_norm": 0.0013234798097983003 + }, + { + "step": 105, + "loss": 6.086404755478725e-05, + "target_ce": 2.749684608716052e-05, + "replay_kl": 3.336720328661613e-05, + "gradient_norm": 0.0013070922577753663 + }, + { + "step": 106, + "loss": 6.0288148233667016e-05, + "target_ce": 2.7298172426526435e-05, + "replay_kl": 3.298997398815118e-05, + "gradient_norm": 0.0012932539684697986 + }, + { + "step": 107, + "loss": 5.971697100903839e-05, + "target_ce": 2.7099506041849963e-05, + "replay_kl": 3.261746314819902e-05, + "gradient_norm": 0.0012782051926478744 + }, + { + "step": 108, + "loss": 5.920686817262322e-05, + "target_ce": 2.694057002372574e-05, + "replay_kl": 3.226629632990807e-05, + "gradient_norm": 0.001265101134777069 + }, + { + "step": 109, + "loss": 5.866633728146553e-05, + "target_ce": 2.6741900001070462e-05, + "replay_kl": 3.1924435461405665e-05, + "gradient_norm": 0.0012513045221567154 + }, + { + "step": 110, + "loss": 5.8157376770395786e-05, + "target_ce": 2.658296398294624e-05, + "replay_kl": 3.157441096846014e-05, + "gradient_norm": 0.0012375885853543878 + }, + { + "step": 111, + "loss": 5.7623517932370305e-05, + "target_ce": 2.638429396029096e-05, + "replay_kl": 3.123922215308994e-05, + "gradient_norm": 0.0012256380869075656 + }, + { + "step": 112, + "loss": 5.701723785023205e-05, + "target_ce": 2.610615047160536e-05, + "replay_kl": 3.091108737862669e-05, + "gradient_norm": 0.0012112208642065525 + }, + { + "step": 113, + "loss": 5.6529694120399654e-05, + "target_ce": 2.5947214453481138e-05, + "replay_kl": 3.0582479666918516e-05, + "gradient_norm": 0.0011994593078270555 + }, + { + "step": 114, + "loss": 5.601673910859972e-05, + "target_ce": 2.574854443082586e-05, + "replay_kl": 3.0268194677773863e-05, + "gradient_norm": 0.0011861476814374328 + }, + { + "step": 115, + "loss": 5.553773371502757e-05, + "target_ce": 2.5589608412701637e-05, + "replay_kl": 2.994812348333653e-05, + "gradient_norm": 0.0011742988135665655 + }, + { + "step": 116, + "loss": 5.510436312761158e-05, + "target_ce": 2.547040639910847e-05, + "replay_kl": 2.9633954909513704e-05, + "gradient_norm": 0.0011624692706391215 + }, + { + "step": 117, + "loss": 5.457032239064574e-05, + "target_ce": 2.5232000552932732e-05, + "replay_kl": 2.9338323656702414e-05, + "gradient_norm": 0.0011502141132950783 + }, + { + "step": 118, + "loss": 5.404719559010118e-05, + "target_ce": 2.499359288776759e-05, + "replay_kl": 2.9053602702333592e-05, + "gradient_norm": 0.0011384186800569296 + }, + { + "step": 119, + "loss": 5.370151484385133e-05, + "target_ce": 2.4953858883236535e-05, + "replay_kl": 2.8747657779604197e-05, + "gradient_norm": 0.0011293404968455434 + }, + { + "step": 120, + "loss": 5.323475488694385e-05, + "target_ce": 2.4755188860581256e-05, + "replay_kl": 2.8479567845351994e-05, + "gradient_norm": 0.0011175276013091207 + }, + { + "step": 121, + "loss": 5.2844075980829075e-05, + "target_ce": 2.4635985027998686e-05, + "replay_kl": 2.820809095283039e-05, + "gradient_norm": 0.0011069767642766237 + }, + { + "step": 122, + "loss": 5.235427670413628e-05, + "target_ce": 2.4437315005343407e-05, + "replay_kl": 2.791695987980347e-05, + "gradient_norm": 0.0010952629381790757 + }, + { + "step": 123, + "loss": 5.1930142944911495e-05, + "target_ce": 2.4278378987219185e-05, + "replay_kl": 2.765176395769231e-05, + "gradient_norm": 0.0010851445840671659 + }, + { + "step": 124, + "loss": 5.1407965656835586e-05, + "target_ce": 2.4039973141043447e-05, + "replay_kl": 2.7367990696802735e-05, + "gradient_norm": 0.0010733198141679168 + }, + { + "step": 125, + "loss": 5.098925612401217e-05, + "target_ce": 2.3881037122919224e-05, + "replay_kl": 2.710822082008235e-05, + "gradient_norm": 0.0010628669988363981 + }, + { + "step": 126, + "loss": 5.062384298071265e-05, + "target_ce": 2.376183147134725e-05, + "replay_kl": 2.6862013328354806e-05, + "gradient_norm": 0.0010537804337218404 + }, + { + "step": 127, + "loss": 5.025185600970872e-05, + "target_ce": 2.364262763876468e-05, + "replay_kl": 2.6609228370944038e-05, + "gradient_norm": 0.00104463507886976 + }, + { + "step": 128, + "loss": 4.983867984265089e-05, + "target_ce": 2.3483691620640457e-05, + "replay_kl": 2.6354988222010434e-05, + "gradient_norm": 0.001034379587508738 + }, + { + "step": 129, + "loss": 4.94685118610505e-05, + "target_ce": 2.336448960704729e-05, + "replay_kl": 2.6104022254003212e-05, + "gradient_norm": 0.001025012694299221 + }, + { + "step": 130, + "loss": 4.913315933663398e-05, + "target_ce": 2.3285021597985178e-05, + "replay_kl": 2.58481359196594e-05, + "gradient_norm": 0.0010164205450564623 + }, + { + "step": 131, + "loss": 4.8745187086751685e-05, + "target_ce": 2.3126083760871552e-05, + "replay_kl": 2.5619103325880133e-05, + "gradient_norm": 0.001006642822176218 + }, + { + "step": 132, + "loss": 4.842691123485565e-05, + "target_ce": 2.304661575180944e-05, + "replay_kl": 2.5380297302035615e-05, + "gradient_norm": 0.0009979486931115389 + }, + { + "step": 133, + "loss": 4.8045556468423456e-05, + "target_ce": 2.2887679733685218e-05, + "replay_kl": 2.5157874915748835e-05, + "gradient_norm": 0.0009884226601570845 + }, + { + "step": 134, + "loss": 4.7659177653258666e-05, + "target_ce": 2.2728743715560995e-05, + "replay_kl": 2.493043393769767e-05, + "gradient_norm": 0.0009788165334612131 + }, + { + "step": 135, + "loss": 4.728595376946032e-05, + "target_ce": 2.2569800421479158e-05, + "replay_kl": 2.4716155166970566e-05, + "gradient_norm": 0.000971494591794908 + }, + { + "step": 136, + "loss": 4.694757080869749e-05, + "target_ce": 2.245059840788599e-05, + "replay_kl": 2.4496974219800904e-05, + "gradient_norm": 0.0009620751952752471 + }, + { + "step": 137, + "loss": 4.657497629523277e-05, + "target_ce": 2.229165875178296e-05, + "replay_kl": 2.4283319362439215e-05, + "gradient_norm": 0.0009531591786071658 + }, + { + "step": 138, + "loss": 4.6239456423791125e-05, + "target_ce": 2.217245491920039e-05, + "replay_kl": 2.4067001504590735e-05, + "gradient_norm": 0.0009456636616960168 + }, + { + "step": 139, + "loss": 4.590142998495139e-05, + "target_ce": 2.2053252905607224e-05, + "replay_kl": 2.3848177079344168e-05, + "gradient_norm": 0.0009368176688440144 + }, + { + "step": 140, + "loss": 4.557887586997822e-05, + "target_ce": 2.1934049073024653e-05, + "replay_kl": 2.364482861594297e-05, + "gradient_norm": 0.0009289704612456262 + }, + { + "step": 141, + "loss": 4.5348890125751495e-05, + "target_ce": 2.1894315068493597e-05, + "replay_kl": 2.3454576876247302e-05, + "gradient_norm": 0.0009221758227795362 + }, + { + "step": 142, + "loss": 4.496862675296143e-05, + "target_ce": 2.1735375412390567e-05, + "replay_kl": 2.3233249521581456e-05, + "gradient_norm": 0.0009129761601798236 + }, + { + "step": 143, + "loss": 4.464379890123382e-05, + "target_ce": 2.1616171579807997e-05, + "replay_kl": 2.3027627321425825e-05, + "gradient_norm": 0.0009058878058567643 + }, + { + "step": 144, + "loss": 4.43756471213419e-05, + "target_ce": 2.1536703570745885e-05, + "replay_kl": 2.2838943550596014e-05, + "gradient_norm": 0.000898533093277365 + }, + { + "step": 145, + "loss": 4.403985076351091e-05, + "target_ce": 2.1377762095653452e-05, + "replay_kl": 2.2662086848868057e-05, + "gradient_norm": 0.0008905916474759579 + }, + { + "step": 146, + "loss": 4.367602014099248e-05, + "target_ce": 2.1218824258539826e-05, + "replay_kl": 2.2457195882452652e-05, + "gradient_norm": 0.000881893269252032 + }, + { + "step": 147, + "loss": 4.340298255556263e-05, + "target_ce": 2.113935443048831e-05, + "replay_kl": 2.226362812507432e-05, + "gradient_norm": 0.0008749359985813498 + }, + { + "step": 148, + "loss": 4.314566103857942e-05, + "target_ce": 2.10598864214262e-05, + "replay_kl": 2.208577461715322e-05, + "gradient_norm": 0.0008685560896992683 + }, + { + "step": 149, + "loss": 4.2852581827901304e-05, + "target_ce": 2.0940680769854225e-05, + "replay_kl": 2.191190105804708e-05, + "gradient_norm": 0.0008611698285676539 + }, + { + "step": 150, + "loss": 4.259477282175794e-05, + "target_ce": 2.0861212760792114e-05, + "replay_kl": 2.1733558241976425e-05, + "gradient_norm": 0.0008537794928997755 + }, + { + "step": 151, + "loss": 4.225688462611288e-05, + "target_ce": 2.0702273104689084e-05, + "replay_kl": 2.1554613340413198e-05, + "gradient_norm": 0.0008465583669021726 + }, + { + "step": 152, + "loss": 4.200431430945173e-05, + "target_ce": 2.0622805095626973e-05, + "replay_kl": 2.138151103281416e-05, + "gradient_norm": 0.0008397792116738856 + }, + { + "step": 153, + "loss": 4.1709405195433646e-05, + "target_ce": 2.0503599444055e-05, + "replay_kl": 2.120580757036805e-05, + "gradient_norm": 0.0008329371921718121 + }, + { + "step": 154, + "loss": 4.137764699407853e-05, + "target_ce": 2.034465978795197e-05, + "replay_kl": 2.1032987206126563e-05, + "gradient_norm": 0.000825630035251379 + }, + { + "step": 155, + "loss": 4.1106373828370124e-05, + "target_ce": 2.0225454136379994e-05, + "replay_kl": 2.0880917873000726e-05, + "gradient_norm": 0.0008190040243789554 + }, + { + "step": 156, + "loss": 4.0853054088074714e-05, + "target_ce": 2.014598430832848e-05, + "replay_kl": 2.0707069779746234e-05, + "gradient_norm": 0.0008123775478452444 + }, + { + "step": 157, + "loss": 4.055997123941779e-05, + "target_ce": 2.002678047574591e-05, + "replay_kl": 2.053318894468248e-05, + "gradient_norm": 0.0008060919935815036 + }, + { + "step": 158, + "loss": 4.028415060020052e-05, + "target_ce": 1.9907576643163338e-05, + "replay_kl": 2.037657395703718e-05, + "gradient_norm": 0.0007991205202415586 + }, + { + "step": 159, + "loss": 4.000774788437411e-05, + "target_ce": 1.9788372810580768e-05, + "replay_kl": 2.0219375073793344e-05, + "gradient_norm": 0.0007923957891762257 + }, + { + "step": 160, + "loss": 3.984967042924836e-05, + "target_ce": 1.9788372810580768e-05, + "replay_kl": 2.0061297618667595e-05, + "gradient_norm": 0.000787711120210588 + }, + { + "step": 161, + "loss": 3.957642911700532e-05, + "target_ce": 1.9669168977998197e-05, + "replay_kl": 1.9907258320017718e-05, + "gradient_norm": 0.0007802037871442735 + }, + { + "step": 162, + "loss": 3.938974623451941e-05, + "target_ce": 1.962943497346714e-05, + "replay_kl": 1.9760311261052266e-05, + "gradient_norm": 0.000775485357735306 + }, + { + "step": 163, + "loss": 3.912440297426656e-05, + "target_ce": 1.951023114088457e-05, + "replay_kl": 1.9614170014392585e-05, + "gradient_norm": 0.0007680992130190134 + }, + { + "step": 164, + "loss": 3.8855025195516646e-05, + "target_ce": 1.9391025489312597e-05, + "replay_kl": 1.946399970620405e-05, + "gradient_norm": 0.0007625037105754018 + }, + { + "step": 165, + "loss": 3.862667654175311e-05, + "target_ce": 1.9311555661261082e-05, + "replay_kl": 1.931512088049203e-05, + "gradient_norm": 0.0007565458072349429 + }, + { + "step": 166, + "loss": 3.836608084384352e-05, + "target_ce": 1.919235182867851e-05, + "replay_kl": 1.9173730834154412e-05, + "gradient_norm": 0.0007496611215174198 + }, + { + "step": 167, + "loss": 3.8184407458174974e-05, + "target_ce": 1.9152617824147455e-05, + "replay_kl": 1.9031791453016922e-05, + "gradient_norm": 0.0007449054392054677 + }, + { + "step": 168, + "loss": 3.792357165366411e-05, + "target_ce": 1.903341217257548e-05, + "replay_kl": 1.889015948108863e-05, + "gradient_norm": 0.0007386265206150711 + }, + { + "step": 169, + "loss": 3.771194315049797e-05, + "target_ce": 1.895394416351337e-05, + "replay_kl": 1.8757998986984603e-05, + "gradient_norm": 0.0007332242093980312 + }, + { + "step": 170, + "loss": 3.753472265088931e-05, + "target_ce": 1.891420833999291e-05, + "replay_kl": 1.8620512491906993e-05, + "gradient_norm": 0.0007276906981132925 + }, + { + "step": 171, + "loss": 3.727470539161004e-05, + "target_ce": 1.879500450741034e-05, + "replay_kl": 1.84797008841997e-05, + "gradient_norm": 0.0007216852391138673 + }, + { + "step": 172, + "loss": 3.710035525728017e-05, + "target_ce": 1.8755270502879284e-05, + "replay_kl": 1.8345082935411483e-05, + "gradient_norm": 0.0007164943381212652 + }, + { + "step": 173, + "loss": 3.688924334710464e-05, + "target_ce": 1.867580067482777e-05, + "replay_kl": 1.8213440853287466e-05, + "gradient_norm": 0.000711233529727906 + }, + { + "step": 174, + "loss": 3.665311305667274e-05, + "target_ce": 1.85565968422452e-05, + "replay_kl": 1.8096516214427538e-05, + "gradient_norm": 0.0007049778359942138 + }, + { + "step": 175, + "loss": 3.647627818281762e-05, + "target_ce": 1.851686101872474e-05, + "replay_kl": 1.7959417164092883e-05, + "gradient_norm": 0.000700721750035882 + }, + { + "step": 176, + "loss": 3.6267076211515814e-05, + "target_ce": 1.8437391190673225e-05, + "replay_kl": 1.782968502084259e-05, + "gradient_norm": 0.0006953387055546045 + }, + { + "step": 177, + "loss": 3.59731784556061e-05, + "target_ce": 1.827844971558079e-05, + "replay_kl": 1.7694728740025312e-05, + "gradient_norm": 0.0006901109591126442 + }, + { + "step": 178, + "loss": 3.5823453799821436e-05, + "target_ce": 1.8238713892060332e-05, + "replay_kl": 1.7584741726750508e-05, + "gradient_norm": 0.0006855599349364638 + }, + { + "step": 179, + "loss": 3.5576515074353665e-05, + "target_ce": 1.811951005947776e-05, + "replay_kl": 1.7457006833865307e-05, + "gradient_norm": 0.0006797370151616633 + }, + { + "step": 180, + "loss": 3.5417702747508883e-05, + "target_ce": 1.8079774235957302e-05, + "replay_kl": 1.7337926692562178e-05, + "gradient_norm": 0.000675181916449219 + }, + { + "step": 181, + "loss": 3.5217643016949296e-05, + "target_ce": 1.800030622689519e-05, + "replay_kl": 1.72173349710647e-05, + "gradient_norm": 0.0006699523073621094 + }, + { + "step": 182, + "loss": 3.5071650927420706e-05, + "target_ce": 1.7960572222364135e-05, + "replay_kl": 1.7111076886067167e-05, + "gradient_norm": 0.0006658376660197973 + }, + { + "step": 183, + "loss": 3.488159563858062e-05, + "target_ce": 1.7881100575323217e-05, + "replay_kl": 1.7000496882246807e-05, + "gradient_norm": 0.0006609509000554681 + }, + { + "step": 184, + "loss": 3.468619252089411e-05, + "target_ce": 1.7801632566261105e-05, + "replay_kl": 1.6884559954633005e-05, + "gradient_norm": 0.0006559405010193586 + }, + { + "step": 185, + "loss": 3.448053394095041e-05, + "target_ce": 1.772216273820959e-05, + "replay_kl": 1.6758371202740818e-05, + "gradient_norm": 0.0006509472732432187 + }, + { + "step": 186, + "loss": 3.433028905419633e-05, + "target_ce": 1.768242691468913e-05, + "replay_kl": 1.6647860320517793e-05, + "gradient_norm": 0.0006470881635323167 + }, + { + "step": 187, + "loss": 3.4167213016189635e-05, + "target_ce": 1.7642692910158075e-05, + "replay_kl": 1.6524521925020963e-05, + "gradient_norm": 0.0006426720065064728 + }, + { + "step": 188, + "loss": 3.399229171918705e-05, + "target_ce": 1.756322308210656e-05, + "replay_kl": 1.642906863708049e-05, + "gradient_norm": 0.0006383052677847445 + }, + { + "step": 189, + "loss": 3.383903094800189e-05, + "target_ce": 1.75234872585861e-05, + "replay_kl": 1.6315541870426387e-05, + "gradient_norm": 0.0006342611741274595 + }, + { + "step": 190, + "loss": 3.353412466822192e-05, + "target_ce": 1.7324811778962612e-05, + "replay_kl": 1.620931288925931e-05, + "gradient_norm": 0.0006274067563936114 + }, + { + "step": 191, + "loss": 3.339250906719826e-05, + "target_ce": 1.7285077774431556e-05, + "replay_kl": 1.6107431292766705e-05, + "gradient_norm": 0.0006239944486878812 + }, + { + "step": 192, + "loss": 3.3210271794814616e-05, + "target_ce": 1.720560794638004e-05, + "replay_kl": 1.600466202944517e-05, + "gradient_norm": 0.0006195841706357896 + }, + { + "step": 193, + "loss": 3.311696491437033e-05, + "target_ce": 1.720560794638004e-05, + "replay_kl": 1.591135878697969e-05, + "gradient_norm": 0.000616452016402036 + }, + { + "step": 194, + "loss": 3.2941592507995665e-05, + "target_ce": 1.7126138118328527e-05, + "replay_kl": 1.5815452570677735e-05, + "gradient_norm": 0.0006120199104771018 + }, + { + "step": 195, + "loss": 3.28008973156102e-05, + "target_ce": 1.7086402294808067e-05, + "replay_kl": 1.5714495020802133e-05, + "gradient_norm": 0.0006082762265577912 + }, + { + "step": 196, + "loss": 3.26582339766901e-05, + "target_ce": 1.704666829027701e-05, + "replay_kl": 1.5611565686413087e-05, + "gradient_norm": 0.0006043667672201991 + }, + { + "step": 197, + "loss": 3.2439944334328175e-05, + "target_ce": 1.6927462638705038e-05, + "replay_kl": 1.551248351461254e-05, + "gradient_norm": 0.0005997105035930872 + }, + { + "step": 198, + "loss": 3.231897426303476e-05, + "target_ce": 1.6887728634173982e-05, + "replay_kl": 1.5431243809871376e-05, + "gradient_norm": 0.0005959884729236364 + }, + { + "step": 199, + "loss": 3.218465280951932e-05, + "target_ce": 1.6847992810653523e-05, + "replay_kl": 1.53366618178552e-05, + "gradient_norm": 0.0005926336743868887 + }, + { + "step": 200, + "loss": 3.205672328476794e-05, + "target_ce": 1.6808258806122467e-05, + "replay_kl": 1.5248464478645474e-05, + "gradient_norm": 0.0005893745110370219 + }, + { + "step": 201, + "loss": 3.188308983226307e-05, + "target_ce": 1.672878715908155e-05, + "replay_kl": 1.5154301763686817e-05, + "gradient_norm": 0.0005854021874256432 + }, + { + "step": 202, + "loss": 3.1632698664907366e-05, + "target_ce": 1.6569845683989115e-05, + "replay_kl": 1.5062854799907655e-05, + "gradient_norm": 0.0005803770618513227 + }, + { + "step": 203, + "loss": 3.145980736007914e-05, + "target_ce": 1.64903758559376e-05, + "replay_kl": 1.4969430594646838e-05, + "gradient_norm": 0.0005762003711424768 + }, + { + "step": 204, + "loss": 3.132181882392615e-05, + "target_ce": 1.645064003241714e-05, + "replay_kl": 1.4871176972519606e-05, + "gradient_norm": 0.0005734161823056638 + }, + { + "step": 205, + "loss": 3.1159659556578845e-05, + "target_ce": 1.6371168385376222e-05, + "replay_kl": 1.4788492990192026e-05, + "gradient_norm": 0.0005704901996068656 + }, + { + "step": 206, + "loss": 3.094868588959798e-05, + "target_ce": 1.6251962733804248e-05, + "replay_kl": 1.4696724974783137e-05, + "gradient_norm": 0.0005657572182826698 + }, + { + "step": 207, + "loss": 3.085448406636715e-05, + "target_ce": 1.6251962733804248e-05, + "replay_kl": 1.4602519513573498e-05, + "gradient_norm": 0.0005631761159747839 + }, + { + "step": 208, + "loss": 3.069549711653963e-05, + "target_ce": 1.6172492905752733e-05, + "replay_kl": 1.4523003301292192e-05, + "gradient_norm": 0.0005590392975136638 + }, + { + "step": 209, + "loss": 3.0566796340281144e-05, + "target_ce": 1.6132757082232274e-05, + "replay_kl": 1.4434040167543571e-05, + "gradient_norm": 0.0005553907831199467 + }, + { + "step": 210, + "loss": 3.0418768801609986e-05, + "target_ce": 1.6053289073170163e-05, + "replay_kl": 1.4365479728439823e-05, + "gradient_norm": 0.0005514331278391182 + }, + { + "step": 211, + "loss": 3.0248100301832892e-05, + "target_ce": 1.5973817426129244e-05, + "replay_kl": 1.4274282875703648e-05, + "gradient_norm": 0.0005486548179760575 + }, + { + "step": 212, + "loss": 3.0090301152085885e-05, + "target_ce": 1.5894345779088326e-05, + "replay_kl": 1.4195956282492261e-05, + "gradient_norm": 0.0005448651500046253 + }, + { + "step": 213, + "loss": 3.0005705411895178e-05, + "target_ce": 1.5894345779088326e-05, + "replay_kl": 1.4111359632806852e-05, + "gradient_norm": 0.0005423808470368385 + }, + { + "step": 214, + "loss": 2.981480247399304e-05, + "target_ce": 1.577514012751635e-05, + "replay_kl": 1.4039662346476689e-05, + "gradient_norm": 0.0005381142254918814 + }, + { + "step": 215, + "loss": 2.9730752430623397e-05, + "target_ce": 1.577514012751635e-05, + "replay_kl": 1.3955613212601747e-05, + "gradient_norm": 0.0005357286427170038 + }, + { + "step": 216, + "loss": 2.9527032893383875e-05, + "target_ce": 1.5655934475944377e-05, + "replay_kl": 1.38710993269342e-05, + "gradient_norm": 0.0005311729619279504 + }, + { + "step": 217, + "loss": 2.9462360544130206e-05, + "target_ce": 1.5655934475944377e-05, + "replay_kl": 1.380642697768053e-05, + "gradient_norm": 0.0005289363325573504 + }, + { + "step": 218, + "loss": 2.9257516871439293e-05, + "target_ce": 1.5536728824372403e-05, + "replay_kl": 1.372078804706689e-05, + "gradient_norm": 0.0005244480562396348 + }, + { + "step": 219, + "loss": 2.913497155532241e-05, + "target_ce": 1.5496994819841348e-05, + "replay_kl": 1.3637977644975763e-05, + "gradient_norm": 0.000521426263730973 + }, + { + "step": 220, + "loss": 2.9028160497546196e-05, + "target_ce": 1.5457260815310292e-05, + "replay_kl": 1.3570899682235904e-05, + "gradient_norm": 0.0005185452173464 + }, + { + "step": 221, + "loss": 2.894375575124286e-05, + "target_ce": 1.5457260815310292e-05, + "replay_kl": 1.348649493593257e-05, + "gradient_norm": 0.000516322033945471 + }, + { + "step": 222, + "loss": 2.871789547498338e-05, + "target_ce": 1.5298317521228455e-05, + "replay_kl": 1.3419578863249626e-05, + "gradient_norm": 0.0005113756633363664 + }, + { + "step": 223, + "loss": 2.864784619305283e-05, + "target_ce": 1.5298317521228455e-05, + "replay_kl": 1.3349528671824373e-05, + "gradient_norm": 0.0005092506762593985 + }, + { + "step": 224, + "loss": 2.8557660698425025e-05, + "target_ce": 1.5298317521228455e-05, + "replay_kl": 1.3259344086691272e-05, + "gradient_norm": 0.0005069685867056251 + }, + { + "step": 225, + "loss": 2.841480636561755e-05, + "target_ce": 1.521884769317694e-05, + "replay_kl": 1.319595867244061e-05, + "gradient_norm": 0.0005033015040680766 + }, + { + "step": 226, + "loss": 2.8305767045821995e-05, + "target_ce": 1.5179112779151183e-05, + "replay_kl": 1.3126655176165514e-05, + "gradient_norm": 0.0005009036394767463 + }, + { + "step": 227, + "loss": 2.8159938665339723e-05, + "target_ce": 1.5099642951099668e-05, + "replay_kl": 1.3060294804745354e-05, + "gradient_norm": 0.0004976058844476938 + }, + { + "step": 228, + "loss": 2.804265204758849e-05, + "target_ce": 1.505990803707391e-05, + "replay_kl": 1.298274401051458e-05, + "gradient_norm": 0.0004948112764395773 + }, + { + "step": 229, + "loss": 2.7939924621023238e-05, + "target_ce": 1.5020173123048153e-05, + "replay_kl": 1.2919750588480383e-05, + "gradient_norm": 0.0004917894839309156 + }, + { + "step": 230, + "loss": 2.7866077289218083e-05, + "target_ce": 1.5020173123048153e-05, + "replay_kl": 1.2845905075664632e-05, + "gradient_norm": 0.0004898455226793885 + }, + { + "step": 231, + "loss": 2.7762915124185383e-05, + "target_ce": 1.4980437299527694e-05, + "replay_kl": 1.278247782465769e-05, + "gradient_norm": 0.00048750994028523564 + }, + { + "step": 232, + "loss": 2.761507494142279e-05, + "target_ce": 1.4900967471476179e-05, + "replay_kl": 1.271410656045191e-05, + "gradient_norm": 0.00048410988529212773 + }, + { + "step": 233, + "loss": 2.75440816039918e-05, + "target_ce": 1.4900967471476179e-05, + "replay_kl": 1.264311413251562e-05, + "gradient_norm": 0.0004820703179575503 + }, + { + "step": 234, + "loss": 2.743420918704942e-05, + "target_ce": 1.486123164795572e-05, + "replay_kl": 1.2572978448588401e-05, + "gradient_norm": 0.0004790980601683259 + }, + { + "step": 235, + "loss": 2.7291451260680333e-05, + "target_ce": 1.4781761819904204e-05, + "replay_kl": 1.250969035027083e-05, + "gradient_norm": 0.00047610991168767214 + }, + { + "step": 236, + "loss": 2.71986864390783e-05, + "target_ce": 1.4742025996383745e-05, + "replay_kl": 1.2456661352189258e-05, + "gradient_norm": 0.00047420908231288195 + }, + { + "step": 237, + "loss": 2.7049469281337224e-05, + "target_ce": 1.466255616833223e-05, + "replay_kl": 1.2386913113004994e-05, + "gradient_norm": 0.000470779777970165 + }, + { + "step": 238, + "loss": 2.6946583602693863e-05, + "target_ce": 1.4622822163801175e-05, + "replay_kl": 1.2323761438892689e-05, + "gradient_norm": 0.00046802411088719964 + }, + { + "step": 239, + "loss": 2.6803008950082585e-05, + "target_ce": 1.4543350516760256e-05, + "replay_kl": 1.2259659342817031e-05, + "gradient_norm": 0.0004654982185456902 + }, + { + "step": 240, + "loss": 2.6731979232863523e-05, + "target_ce": 1.4543350516760256e-05, + "replay_kl": 1.2188628716103267e-05, + "gradient_norm": 0.0004637175879906863 + }, + { + "step": 241, + "loss": 2.665304418769665e-05, + "target_ce": 1.4503613783745095e-05, + "replay_kl": 1.2149429494456854e-05, + "gradient_norm": 0.00046191050205379725 + }, + { + "step": 242, + "loss": 2.6506168069317937e-05, + "target_ce": 1.4424143046198878e-05, + "replay_kl": 1.2082024113624357e-05, + "gradient_norm": 0.0004588459269143641 + }, + { + "step": 243, + "loss": 2.6365038138465025e-05, + "target_ce": 1.4344673218147364e-05, + "replay_kl": 1.2020364920317661e-05, + "gradient_norm": 0.0004557509673759341 + }, + { + "step": 244, + "loss": 2.6265399355906993e-05, + "target_ce": 1.4304937394626904e-05, + "replay_kl": 1.1960461051785387e-05, + "gradient_norm": 0.0004532765597105026 + }, + { + "step": 245, + "loss": 2.6160692868870683e-05, + "target_ce": 1.4265202480601147e-05, + "replay_kl": 1.1895490388269536e-05, + "gradient_norm": 0.00045092275831848383 + }, + { + "step": 246, + "loss": 2.6095596695085987e-05, + "target_ce": 1.4265202480601147e-05, + "replay_kl": 1.183039421448484e-05, + "gradient_norm": 0.0004492252191994339 + }, + { + "step": 247, + "loss": 2.5972853109124117e-05, + "target_ce": 1.4185730833560228e-05, + "replay_kl": 1.1787122275563888e-05, + "gradient_norm": 0.00044682362931780517 + }, + { + "step": 248, + "loss": 2.5877025109366514e-05, + "target_ce": 1.4145995919534471e-05, + "replay_kl": 1.1731029189832043e-05, + "gradient_norm": 0.0004439820477273315 + }, + { + "step": 249, + "loss": 2.5775258109206334e-05, + "target_ce": 1.4106260096014012e-05, + "replay_kl": 1.166899710369762e-05, + "gradient_norm": 0.0004421369230840355 + }, + { + "step": 250, + "loss": 2.56714120041579e-05, + "target_ce": 1.4066525181988254e-05, + "replay_kl": 1.1604886822169647e-05, + "gradient_norm": 0.0004393226990941912 + }, + { + "step": 251, + "loss": 2.5626763090258464e-05, + "target_ce": 1.4066525181988254e-05, + "replay_kl": 1.1560236998775508e-05, + "gradient_norm": 0.0004378064186312258 + }, + { + "step": 252, + "loss": 2.548357952036895e-05, + "target_ce": 1.3987054444442037e-05, + "replay_kl": 1.1496525075926911e-05, + "gradient_norm": 0.0004347812500782311 + }, + { + "step": 253, + "loss": 2.5378676582477055e-05, + "target_ce": 1.394731953041628e-05, + "replay_kl": 1.1431357052060775e-05, + "gradient_norm": 0.0004327994247432798 + }, + { + "step": 254, + "loss": 2.5295910745626315e-05, + "target_ce": 1.3907584616390523e-05, + "replay_kl": 1.1388327038730495e-05, + "gradient_norm": 0.0004306038608774543 + }, + { + "step": 255, + "loss": 2.5159202778013423e-05, + "target_ce": 1.3828112969349604e-05, + "replay_kl": 1.133109071815852e-05, + "gradient_norm": 0.00042831493192352355 + }, + { + "step": 256, + "loss": 2.5068886316148564e-05, + "target_ce": 1.3788377145829145e-05, + "replay_kl": 1.128050917031942e-05, + "gradient_norm": 0.0004262177099008113 + }, + { + "step": 257, + "loss": 2.5011584511958063e-05, + "target_ce": 1.3788377145829145e-05, + "replay_kl": 1.1223206456634216e-05, + "gradient_norm": 0.0004245311429258436 + }, + { + "step": 258, + "loss": 2.49316799454391e-05, + "target_ce": 1.3748642231803387e-05, + "replay_kl": 1.1183037713635713e-05, + "gradient_norm": 0.0004221645067445934 + }, + { + "step": 259, + "loss": 2.4870852939784527e-05, + "target_ce": 1.3748642231803387e-05, + "replay_kl": 1.1122209798486438e-05, + "gradient_norm": 0.0004205999430269003 + }, + { + "step": 260, + "loss": 2.472942287568003e-05, + "target_ce": 1.366917149425717e-05, + "replay_kl": 1.1060251381422859e-05, + "gradient_norm": 0.00041766592767089605 + }, + { + "step": 261, + "loss": 2.45933115365915e-05, + "target_ce": 1.3589699847216252e-05, + "replay_kl": 1.100361259886995e-05, + "gradient_norm": 0.0004157892253715545 + }, + { + "step": 262, + "loss": 2.4539294827263802e-05, + "target_ce": 1.3589699847216252e-05, + "replay_kl": 1.0949594070552848e-05, + "gradient_norm": 0.0004141150275245309 + }, + { + "step": 263, + "loss": 2.449146268190816e-05, + "target_ce": 1.3589699847216252e-05, + "replay_kl": 1.0901761925197206e-05, + "gradient_norm": 0.00041278995922766626 + }, + { + "step": 264, + "loss": 2.4330700398422778e-05, + "target_ce": 1.3470494195644278e-05, + "replay_kl": 1.08602062027785e-05, + "gradient_norm": 0.00040920672472566366 + }, + { + "step": 265, + "loss": 2.4278575438074768e-05, + "target_ce": 1.3470494195644278e-05, + "replay_kl": 1.0808080332935788e-05, + "gradient_norm": 0.0004079002537764609 + }, + { + "step": 266, + "loss": 2.42208807321731e-05, + "target_ce": 1.3470494195644278e-05, + "replay_kl": 1.075038562703412e-05, + "gradient_norm": 0.0004065863322466612 + }, + { + "step": 267, + "loss": 2.4127006327034906e-05, + "target_ce": 1.343075928161852e-05, + "replay_kl": 1.0696247045416385e-05, + "gradient_norm": 0.0004045420209877193 + }, + { + "step": 268, + "loss": 2.404551560175605e-05, + "target_ce": 1.3391024367592763e-05, + "replay_kl": 1.0654490324668586e-05, + "gradient_norm": 0.00040270830504596233 + }, + { + "step": 269, + "loss": 2.3958895326359197e-05, + "target_ce": 1.3351288544072304e-05, + "replay_kl": 1.0607607691781595e-05, + "gradient_norm": 0.0004003478679805994 + }, + { + "step": 270, + "loss": 2.386947198829148e-05, + "target_ce": 1.3311553630046546e-05, + "replay_kl": 1.0557918358244933e-05, + "gradient_norm": 0.0003985825169365853 + }, + { + "step": 271, + "loss": 2.3824624804547057e-05, + "target_ce": 1.3311553630046546e-05, + "replay_kl": 1.0513070265005808e-05, + "gradient_norm": 0.0003974028513766825 + }, + { + "step": 272, + "loss": 2.3744412828818895e-05, + "target_ce": 1.3271818716020789e-05, + "replay_kl": 1.0472594112798106e-05, + "gradient_norm": 0.0003949529491364956 + }, + { + "step": 273, + "loss": 2.3657255951547995e-05, + "target_ce": 1.323208289250033e-05, + "replay_kl": 1.0425173968542367e-05, + "gradient_norm": 0.00039334050961770117 + }, + { + "step": 274, + "loss": 2.358847632422112e-05, + "target_ce": 1.3192347978474572e-05, + "replay_kl": 1.0396128345746547e-05, + "gradient_norm": 0.00039106185431592166 + }, + { + "step": 275, + "loss": 2.349563146708533e-05, + "target_ce": 1.3152613064448815e-05, + "replay_kl": 1.0343017493141815e-05, + "gradient_norm": 0.0003894391702488065 + }, + { + "step": 276, + "loss": 2.3439308279193938e-05, + "target_ce": 1.3152613064448815e-05, + "replay_kl": 1.0286694305250421e-05, + "gradient_norm": 0.00038809762918390334 + }, + { + "step": 277, + "loss": 2.3316326405620202e-05, + "target_ce": 1.3073142326902598e-05, + "replay_kl": 1.0243183169222903e-05, + "gradient_norm": 0.00038554955972358584 + }, + { + "step": 278, + "loss": 2.3272184989764355e-05, + "target_ce": 1.3073142326902598e-05, + "replay_kl": 1.0199042662861757e-05, + "gradient_norm": 0.0003844519960694015 + }, + { + "step": 279, + "loss": 2.318588667549193e-05, + "target_ce": 1.3033405593887437e-05, + "replay_kl": 1.015248017210979e-05, + "gradient_norm": 0.00038302334723994136 + }, + { + "step": 280, + "loss": 2.3094442440196872e-05, + "target_ce": 1.2993669770366978e-05, + "replay_kl": 1.0100773579324596e-05, + "gradient_norm": 0.00038097266224212945 + }, + { + "step": 281, + "loss": 2.3020718799671158e-05, + "target_ce": 1.2953935765835922e-05, + "replay_kl": 1.0066782124340534e-05, + "gradient_norm": 0.00037878964212723076 + }, + { + "step": 282, + "loss": 2.2941956558497623e-05, + "target_ce": 1.2914199032820761e-05, + "replay_kl": 1.0027757525676861e-05, + "gradient_norm": 0.00037735141813755035 + }, + { + "step": 283, + "loss": 2.2904709112481214e-05, + "target_ce": 1.2914199032820761e-05, + "replay_kl": 9.990510079660453e-06, + "gradient_norm": 0.00037615394103340805 + }, + { + "step": 284, + "loss": 2.2825353880762123e-05, + "target_ce": 1.2874465028289706e-05, + "replay_kl": 9.950888852472417e-06, + "gradient_norm": 0.00037401291774585843 + }, + { + "step": 285, + "loss": 2.276780469401274e-05, + "target_ce": 1.2874465028289706e-05, + "replay_kl": 9.893339665723033e-06, + "gradient_norm": 0.0003726780123542994 + }, + { + "step": 286, + "loss": 2.2606411221204326e-05, + "target_ce": 1.2755256648233626e-05, + "replay_kl": 9.851155482465401e-06, + "gradient_norm": 0.00037100494955666363 + }, + { + "step": 287, + "loss": 2.2487954993266612e-05, + "target_ce": 1.2675785001192708e-05, + "replay_kl": 9.812169992073905e-06, + "gradient_norm": 0.0003685366245917976 + }, + { + "step": 288, + "loss": 2.2430249373428524e-05, + "target_ce": 1.2675785001192708e-05, + "replay_kl": 9.754463462741114e-06, + "gradient_norm": 0.00036750349681824446 + }, + { + "step": 289, + "loss": 2.235865395050496e-05, + "target_ce": 1.2636049177672248e-05, + "replay_kl": 9.722603863338009e-06, + "gradient_norm": 0.00036618157173506916 + }, + { + "step": 290, + "loss": 2.219314410467632e-05, + "target_ce": 1.2516843526100274e-05, + "replay_kl": 9.676299669081345e-06, + "gradient_norm": 0.00036364022525958717 + }, + { + "step": 291, + "loss": 2.2112595615908504e-05, + "target_ce": 1.2477107702579815e-05, + "replay_kl": 9.63548882282339e-06, + "gradient_norm": 0.00036192944389767945 + }, + { + "step": 292, + "loss": 2.2071191779104993e-05, + "target_ce": 1.2477107702579815e-05, + "replay_kl": 9.59408498601988e-06, + "gradient_norm": 0.0003606505924835801 + }, + { + "step": 293, + "loss": 2.203752228524536e-05, + "target_ce": 1.2477107702579815e-05, + "replay_kl": 9.560413673170842e-06, + "gradient_norm": 0.0003595832677092403 + }, + { + "step": 294, + "loss": 2.1959469449939206e-05, + "target_ce": 1.2437372788554057e-05, + "replay_kl": 9.522096661385149e-06, + "gradient_norm": 0.0003574673901312053 + }, + { + "step": 295, + "loss": 2.1892024960834533e-05, + "target_ce": 1.23976378745283e-05, + "replay_kl": 9.494387995800935e-06, + "gradient_norm": 0.0003559987526386976 + }, + { + "step": 296, + "loss": 2.183885771955829e-05, + "target_ce": 1.23976378745283e-05, + "replay_kl": 9.441219845029991e-06, + "gradient_norm": 0.00035489763831719756 + }, + { + "step": 297, + "loss": 2.1800580725539476e-05, + "target_ce": 1.23976378745283e-05, + "replay_kl": 9.402943760505877e-06, + "gradient_norm": 0.0003538557793945074 + }, + { + "step": 298, + "loss": 2.1723186364397407e-05, + "target_ce": 1.235790205100784e-05, + "replay_kl": 9.365285222884268e-06, + "gradient_norm": 0.00035185646265745163 + }, + { + "step": 299, + "loss": 2.16083244595211e-05, + "target_ce": 1.2278430403966922e-05, + "replay_kl": 9.32989496504888e-06, + "gradient_norm": 0.00035003339871764183 + }, + { + "step": 300, + "loss": 2.1528110664803535e-05, + "target_ce": 1.2238695489941165e-05, + "replay_kl": 9.28941517486237e-06, + "gradient_norm": 0.00034802695154212415 + }, + { + "step": 301, + "loss": 2.1450065105454996e-05, + "target_ce": 1.2198960575915407e-05, + "replay_kl": 9.251103620044887e-06, + "gradient_norm": 0.0003462629683781415 + }, + { + "step": 302, + "loss": 2.1373925847001374e-05, + "target_ce": 1.2159224752394948e-05, + "replay_kl": 9.214700185111724e-06, + "gradient_norm": 0.00034445413621142507 + }, + { + "step": 303, + "loss": 2.134294481948018e-05, + "target_ce": 1.2159224752394948e-05, + "replay_kl": 9.183720976579934e-06, + "gradient_norm": 0.00034345436142757535 + }, + { + "step": 304, + "loss": 2.1308962459443137e-05, + "target_ce": 1.2159224752394948e-05, + "replay_kl": 9.149737707048189e-06, + "gradient_norm": 0.00034250764292664826 + }, + { + "step": 305, + "loss": 2.1228328478173353e-05, + "target_ce": 1.211948983836919e-05, + "replay_kl": 9.108838639804162e-06, + "gradient_norm": 0.00034105361555702984 + }, + { + "step": 306, + "loss": 2.1159048628760502e-05, + "target_ce": 1.2079754924343433e-05, + "replay_kl": 9.079292794922367e-06, + "gradient_norm": 0.0003392419603187591 + }, + { + "step": 307, + "loss": 2.1119652956258506e-05, + "target_ce": 1.2079754924343433e-05, + "replay_kl": 9.03989712242037e-06, + "gradient_norm": 0.00033816651557572186 + }, + { + "step": 308, + "loss": 2.1039999410277233e-05, + "target_ce": 1.2040019100822974e-05, + "replay_kl": 8.99998121894896e-06, + "gradient_norm": 0.00033660928602330387 + }, + { + "step": 309, + "loss": 2.1001818822696805e-05, + "target_ce": 1.2040019100822974e-05, + "replay_kl": 8.96179881237913e-06, + "gradient_norm": 0.00033579455339349806 + }, + { + "step": 310, + "loss": 2.08832643693313e-05, + "target_ce": 1.1960547453782056e-05, + "replay_kl": 8.922716006054543e-06, + "gradient_norm": 0.0003334835637360811 + }, + { + "step": 311, + "loss": 2.084761581500061e-05, + "target_ce": 1.1960547453782056e-05, + "replay_kl": 8.887068361218553e-06, + "gradient_norm": 0.00033252290450036526 + }, + { + "step": 312, + "loss": 2.0809628040296957e-05, + "target_ce": 1.1960547453782056e-05, + "replay_kl": 8.849081496009603e-06, + "gradient_norm": 0.0003315365465823561 + }, + { + "step": 313, + "loss": 2.073907853628043e-05, + "target_ce": 1.1920812539756298e-05, + "replay_kl": 8.818265996524133e-06, + "gradient_norm": 0.0003299593226984143 + }, + { + "step": 314, + "loss": 2.0627028789022006e-05, + "target_ce": 1.184134089271538e-05, + "replay_kl": 8.785687896306626e-06, + "gradient_norm": 0.0003283845726400614 + }, + { + "step": 315, + "loss": 2.0543535356409848e-05, + "target_ce": 1.1801605978689622e-05, + "replay_kl": 8.741928468225524e-06, + "gradient_norm": 0.0003266621206421405 + }, + { + "step": 316, + "loss": 2.0517323719104752e-05, + "target_ce": 1.1801605978689622e-05, + "replay_kl": 8.715716830920428e-06, + "gradient_norm": 0.00032573999487794936 + }, + { + "step": 317, + "loss": 2.047915040748194e-05, + "target_ce": 1.1801605978689622e-05, + "replay_kl": 8.677545338287018e-06, + "gradient_norm": 0.0003248310531489551 + }, + { + "step": 318, + "loss": 2.0407951524248347e-05, + "target_ce": 1.1761870155169163e-05, + "replay_kl": 8.646082278573886e-06, + "gradient_norm": 0.0003228690766263753 + }, + { + "step": 319, + "loss": 2.0339384718681686e-05, + "target_ce": 1.1722134331648704e-05, + "replay_kl": 8.617250387032982e-06, + "gradient_norm": 0.0003216783225070685 + }, + { + "step": 320, + "loss": 2.0300853066146374e-05, + "target_ce": 1.1722134331648704e-05, + "replay_kl": 8.578719643992372e-06, + "gradient_norm": 0.00032080590608529747 + }, + { + "step": 321, + "loss": 2.0225586922606453e-05, + "target_ce": 1.1682398508128244e-05, + "replay_kl": 8.54318932397291e-06, + "gradient_norm": 0.0003189968119841069 + }, + { + "step": 322, + "loss": 2.0120492990827188e-05, + "target_ce": 1.1602926861087326e-05, + "replay_kl": 8.517566129739862e-06, + "gradient_norm": 0.000317905331030488 + }, + { + "step": 323, + "loss": 2.008579031098634e-05, + "target_ce": 1.160292868007673e-05, + "replay_kl": 8.482862540404312e-06, + "gradient_norm": 0.0003167265676893294 + }, + { + "step": 324, + "loss": 2.0005458281957544e-05, + "target_ce": 1.1563191947061568e-05, + "replay_kl": 8.442266334895976e-06, + "gradient_norm": 0.0003159873012918979 + }, + { + "step": 325, + "loss": 1.9973187590949237e-05, + "target_ce": 1.1563191947061568e-05, + "replay_kl": 8.409995643887669e-06, + "gradient_norm": 0.00031516089802607894 + }, + { + "step": 326, + "loss": 1.990342207136564e-05, + "target_ce": 1.1523455214046407e-05, + "replay_kl": 8.379966857319232e-06, + "gradient_norm": 0.000313171447487548 + }, + { + "step": 327, + "loss": 1.9829276425298303e-05, + "target_ce": 1.148372030002065e-05, + "replay_kl": 8.345556125277653e-06, + "gradient_norm": 0.0003119785396847874 + }, + { + "step": 328, + "loss": 1.9685845472849905e-05, + "target_ce": 1.1364514648448676e-05, + "replay_kl": 8.321329914906528e-06, + "gradient_norm": 0.00030923893791623414 + }, + { + "step": 329, + "loss": 1.9641978724393994e-05, + "target_ce": 1.1364514648448676e-05, + "replay_kl": 8.277463166450616e-06, + "gradient_norm": 0.0003083213814534247 + }, + { + "step": 330, + "loss": 1.961858470167499e-05, + "target_ce": 1.1364514648448676e-05, + "replay_kl": 8.254070053226314e-06, + "gradient_norm": 0.00030764733674004674 + }, + { + "step": 331, + "loss": 1.9592682292568497e-05, + "target_ce": 1.1364514648448676e-05, + "replay_kl": 8.228167644119821e-06, + "gradient_norm": 0.0003066733479499817 + }, + { + "step": 332, + "loss": 1.9560537111829035e-05, + "target_ce": 1.1364514648448676e-05, + "replay_kl": 8.196022463380359e-06, + "gradient_norm": 0.0003058863803744316 + }, + { + "step": 333, + "loss": 1.945524854818359e-05, + "target_ce": 1.1285043001407757e-05, + "replay_kl": 8.170205546775833e-06, + "gradient_norm": 0.0003040247247554362 + }, + { + "step": 334, + "loss": 1.9425948266871274e-05, + "target_ce": 1.1285043001407757e-05, + "replay_kl": 8.140905265463516e-06, + "gradient_norm": 0.0003031394735444337 + }, + { + "step": 335, + "loss": 1.9396346033317968e-05, + "target_ce": 1.1285043001407757e-05, + "replay_kl": 8.111302122415509e-06, + "gradient_norm": 0.00030237683677114546 + }, + { + "step": 336, + "loss": 1.936622356879525e-05, + "target_ce": 1.1285043001407757e-05, + "replay_kl": 8.081181476882193e-06, + "gradient_norm": 0.00030156446155160666 + }, + { + "step": 337, + "loss": 1.9258570318925194e-05, + "target_ce": 1.1205571354366839e-05, + "replay_kl": 8.052998964558356e-06, + "gradient_norm": 0.00029954826459288597 + }, + { + "step": 338, + "loss": 1.9232171325711533e-05, + "target_ce": 1.1205571354366839e-05, + "replay_kl": 8.026600880839396e-06, + "gradient_norm": 0.0002987852494698018 + }, + { + "step": 339, + "loss": 1.9127333871438168e-05, + "target_ce": 1.112609970732592e-05, + "replay_kl": 8.001234164112248e-06, + "gradient_norm": 0.00029673907556571066 + }, + { + "step": 340, + "loss": 1.9091499780188315e-05, + "target_ce": 1.112609970732592e-05, + "replay_kl": 7.965400072862394e-06, + "gradient_norm": 0.0002958710538223386 + }, + { + "step": 341, + "loss": 1.906733632495161e-05, + "target_ce": 1.112609970732592e-05, + "replay_kl": 7.941236617625691e-06, + "gradient_norm": 0.0002952106005977839 + }, + { + "step": 342, + "loss": 1.900493589346297e-05, + "target_ce": 1.1086364793300163e-05, + "replay_kl": 7.91857200965751e-06, + "gradient_norm": 0.00029413707670755684 + }, + { + "step": 343, + "loss": 1.8969089069287293e-05, + "target_ce": 1.1086364793300163e-05, + "replay_kl": 7.88272427598713e-06, + "gradient_norm": 0.0002931423659902066 + }, + { + "step": 344, + "loss": 1.8898492271546274e-05, + "target_ce": 1.1046628969779704e-05, + "replay_kl": 7.851862392271869e-06, + "gradient_norm": 0.00029181825811974704 + }, + { + "step": 345, + "loss": 1.8831968191079795e-05, + "target_ce": 1.1006894055753946e-05, + "replay_kl": 7.825073225831147e-06, + "gradient_norm": 0.00029035474290139973 + }, + { + "step": 346, + "loss": 1.877016620710492e-05, + "target_ce": 1.0967157322738785e-05, + "replay_kl": 7.803008884366136e-06, + "gradient_norm": 0.00028962004580534995 + }, + { + "step": 347, + "loss": 1.8705530237639323e-05, + "target_ce": 1.0927421499218326e-05, + "replay_kl": 7.778109647915699e-06, + "gradient_norm": 0.0002882014960050583 + }, + { + "step": 348, + "loss": 1.867672472144477e-05, + "target_ce": 1.0927421499218326e-05, + "replay_kl": 7.749302312731743e-06, + "gradient_norm": 0.0002875658683478832 + }, + { + "step": 349, + "loss": 1.866013917606324e-05, + "target_ce": 1.0927421499218326e-05, + "replay_kl": 7.732718586339615e-06, + "gradient_norm": 0.00028680177638307214 + }, + { + "step": 350, + "loss": 1.863158104242757e-05, + "target_ce": 1.0927421499218326e-05, + "replay_kl": 7.704160452703945e-06, + "gradient_norm": 0.0002860424865502864 + }, + { + "step": 351, + "loss": 1.856010203482583e-05, + "target_ce": 1.0887685675697867e-05, + "replay_kl": 7.672416359127965e-06, + "gradient_norm": 0.00028443479095585644 + }, + { + "step": 352, + "loss": 1.849740328907501e-05, + "target_ce": 1.084795076167211e-05, + "replay_kl": 7.6494525274029e-06, + "gradient_norm": 0.0002833721227943897 + }, + { + "step": 353, + "loss": 1.8418937543174252e-05, + "target_ce": 1.0808215847646352e-05, + "replay_kl": 7.610720786033198e-06, + "gradient_norm": 0.00028171049780212343 + }, + { + "step": 354, + "loss": 1.835712100728415e-05, + "target_ce": 1.0768479114631191e-05, + "replay_kl": 7.588640983158257e-06, + "gradient_norm": 0.00028069058316759765 + }, + { + "step": 355, + "loss": 1.8372918930253945e-05, + "target_ce": 1.0808215847646352e-05, + "replay_kl": 7.564703082607593e-06, + "gradient_norm": 0.0002802463131956756 + }, + { + "step": 356, + "loss": 1.8305820049135946e-05, + "target_ce": 1.0768479114631191e-05, + "replay_kl": 7.537340479757404e-06, + "gradient_norm": 0.00027929781936109066 + }, + { + "step": 357, + "loss": 1.8275282855029218e-05, + "target_ce": 1.0768479114631191e-05, + "replay_kl": 7.506803285650676e-06, + "gradient_norm": 0.0002787007833831012 + }, + { + "step": 358, + "loss": 1.8137816368835047e-05, + "target_ce": 1.0649272553564515e-05, + "replay_kl": 7.488544270017883e-06, + "gradient_norm": 0.000276649632724002 + }, + { + "step": 359, + "loss": 1.811091715353541e-05, + "target_ce": 1.0649272553564515e-05, + "replay_kl": 7.461643690476194e-06, + "gradient_norm": 0.0002760599600151181 + }, + { + "step": 360, + "loss": 1.8076088963425718e-05, + "target_ce": 1.0649272553564515e-05, + "replay_kl": 7.426816409861203e-06, + "gradient_norm": 0.00027527095517143607 + }, + { + "step": 361, + "loss": 1.8011862266575918e-05, + "target_ce": 1.0609536730044056e-05, + "replay_kl": 7.402325991279213e-06, + "gradient_norm": 0.0002740296768024564 + }, + { + "step": 362, + "loss": 1.797493860067334e-05, + "target_ce": 1.0609536730044056e-05, + "replay_kl": 7.365402325376635e-06, + "gradient_norm": 0.0002733906148932874 + }, + { + "step": 363, + "loss": 1.796312426449731e-05, + "target_ce": 1.0609536730044056e-05, + "replay_kl": 7.353588443947956e-06, + "gradient_norm": 0.0002727222163230181 + }, + { + "step": 364, + "loss": 1.789833913790062e-05, + "target_ce": 1.0569801816018298e-05, + "replay_kl": 7.3285373218823224e-06, + "gradient_norm": 0.0002714586444199085 + }, + { + "step": 365, + "loss": 1.779332887963392e-05, + "target_ce": 1.049033016897738e-05, + "replay_kl": 7.302998255909188e-06, + "gradient_norm": 0.00026930400053970516 + }, + { + "step": 366, + "loss": 1.7769467376638204e-05, + "target_ce": 1.049033016897738e-05, + "replay_kl": 7.279138117155526e-06, + "gradient_norm": 0.0002686368825379759 + }, + { + "step": 367, + "loss": 1.7754340660758317e-05, + "target_ce": 1.049033016897738e-05, + "replay_kl": 7.2640114012756385e-06, + "gradient_norm": 0.000267950352281332 + }, + { + "step": 368, + "loss": 1.7723057680996135e-05, + "target_ce": 1.049033016897738e-05, + "replay_kl": 7.232727057271404e-06, + "gradient_norm": 0.0002673139679245651 + }, + { + "step": 369, + "loss": 1.766306013450958e-05, + "target_ce": 1.0450595254951622e-05, + "replay_kl": 7.212465334305307e-06, + "gradient_norm": 0.00026635066024027765 + }, + { + "step": 370, + "loss": 1.763625732564833e-05, + "target_ce": 1.0450595254951622e-05, + "replay_kl": 7.185662525444059e-06, + "gradient_norm": 0.00026557472301647067 + }, + { + "step": 371, + "loss": 1.7608983398531564e-05, + "target_ce": 1.0450595254951622e-05, + "replay_kl": 7.158388143579941e-06, + "gradient_norm": 0.00026498219813220203 + }, + { + "step": 372, + "loss": 1.7551652490510605e-05, + "target_ce": 1.0410859431431163e-05, + "replay_kl": 7.140793059079442e-06, + "gradient_norm": 0.00026337028248235583 + }, + { + "step": 373, + "loss": 1.752352181938477e-05, + "target_ce": 1.0410859431431163e-05, + "replay_kl": 7.112661478458904e-06, + "gradient_norm": 0.0002627584617584944 + }, + { + "step": 374, + "loss": 1.749925286276266e-05, + "target_ce": 1.0410859431431163e-05, + "replay_kl": 7.088392521836795e-06, + "gradient_norm": 0.0002621914609335363 + }, + { + "step": 375, + "loss": 1.7433576431358233e-05, + "target_ce": 1.0371123607910704e-05, + "replay_kl": 7.062452823447529e-06, + "gradient_norm": 0.0002612489042803645 + }, + { + "step": 376, + "loss": 1.7403177480446175e-05, + "target_ce": 1.0371123607910704e-05, + "replay_kl": 7.032052963040769e-06, + "gradient_norm": 0.00026057747891172767 + }, + { + "step": 377, + "loss": 1.7385398678015918e-05, + "target_ce": 1.0371123607910704e-05, + "replay_kl": 7.014275070105214e-06, + "gradient_norm": 0.00025990340509451926 + }, + { + "step": 378, + "loss": 1.7362875951221213e-05, + "target_ce": 1.0371123607910704e-05, + "replay_kl": 6.99175279805786e-06, + "gradient_norm": 0.0002593408862594515 + }, + { + "step": 379, + "loss": 1.729449832055252e-05, + "target_ce": 1.0331387784390245e-05, + "replay_kl": 6.963110536162276e-06, + "gradient_norm": 0.0002577129052951932 + }, + { + "step": 380, + "loss": 1.7229467630386353e-05, + "target_ce": 1.0291652870364487e-05, + "replay_kl": 6.937813850527164e-06, + "gradient_norm": 0.0002568771888036281 + }, + { + "step": 381, + "loss": 1.713136225589551e-05, + "target_ce": 1.0212181223323569e-05, + "replay_kl": 6.919180577824591e-06, + "gradient_norm": 0.00025479140458628535 + }, + { + "step": 382, + "loss": 1.7111531633418053e-05, + "target_ce": 1.0212181223323569e-05, + "replay_kl": 6.899349955347134e-06, + "gradient_norm": 0.0002542837173677981 + }, + { + "step": 383, + "loss": 1.709466232568957e-05, + "target_ce": 1.0212181223323569e-05, + "replay_kl": 6.882481102366e-06, + "gradient_norm": 0.0002536005340516567 + }, + { + "step": 384, + "loss": 1.7039750673575327e-05, + "target_ce": 1.017244539980311e-05, + "replay_kl": 6.867306183266919e-06, + "gradient_norm": 0.0002529433404561132 + }, + { + "step": 385, + "loss": 1.7013273463817313e-05, + "target_ce": 1.017244539980311e-05, + "replay_kl": 6.840828064014204e-06, + "gradient_norm": 0.00025234956410713494 + }, + { + "step": 386, + "loss": 1.6988040442811325e-05, + "target_ce": 1.017244539980311e-05, + "replay_kl": 6.815594588260865e-06, + "gradient_norm": 0.0002516797394491732 + }, + { + "step": 387, + "loss": 1.6924695955822244e-05, + "target_ce": 1.013270957628265e-05, + "replay_kl": 6.791985924792243e-06, + "gradient_norm": 0.00025078037288039923 + }, + { + "step": 388, + "loss": 1.686823452473618e-05, + "target_ce": 1.0092974662256893e-05, + "replay_kl": 6.77526077197399e-06, + "gradient_norm": 0.0002494839718565345 + }, + { + "step": 389, + "loss": 1.6840202079038136e-05, + "target_ce": 1.0092974662256893e-05, + "replay_kl": 6.747227871528594e-06, + "gradient_norm": 0.0002488276513759047 + }, + { + "step": 390, + "loss": 1.6826621504151262e-05, + "target_ce": 1.0092974662256893e-05, + "replay_kl": 6.7336468418943696e-06, + "gradient_norm": 0.0002483489515725523 + }, + { + "step": 391, + "loss": 1.6802558093331754e-05, + "target_ce": 1.0092974662256893e-05, + "replay_kl": 6.709583885822212e-06, + "gradient_norm": 0.00024777415092103183 + }, + { + "step": 392, + "loss": 1.6777441487647593e-05, + "target_ce": 1.0092974662256893e-05, + "replay_kl": 6.684467280138051e-06, + "gradient_norm": 0.00024718057829886675 + }, + { + "step": 393, + "loss": 1.6756157492636703e-05, + "target_ce": 1.0092974662256893e-05, + "replay_kl": 6.663183285127161e-06, + "gradient_norm": 0.00024672073777765036 + }, + { + "step": 394, + "loss": 1.669251469138544e-05, + "target_ce": 1.0053238838736434e-05, + "replay_kl": 6.639276307396358e-06, + "gradient_norm": 0.00024557203869335353 + }, + { + "step": 395, + "loss": 1.6598271031398326e-05, + "target_ce": 9.973767191695515e-06, + "replay_kl": 6.624503839702811e-06, + "gradient_norm": 0.00024386888253502548 + }, + { + "step": 396, + "loss": 1.6537045667064376e-05, + "target_ce": 9.934031368175056e-06, + "replay_kl": 6.60301429888932e-06, + "gradient_norm": 0.00024318128998856992 + }, + { + "step": 397, + "loss": 1.6519654309377074e-05, + "target_ce": 9.934031368175056e-06, + "replay_kl": 6.585622031707317e-06, + "gradient_norm": 0.00024269413552246988 + }, + { + "step": 398, + "loss": 1.6496171156177297e-05, + "target_ce": 9.934031368175056e-06, + "replay_kl": 6.562140242749592e-06, + "gradient_norm": 0.00024218206817749888 + }, + { + "step": 399, + "loss": 1.6471982235088944e-05, + "target_ce": 9.934031368175056e-06, + "replay_kl": 6.537949957419187e-06, + "gradient_norm": 0.00024151628895197064 + }, + { + "step": 400, + "loss": 1.6457999663543887e-05, + "target_ce": 9.934031368175056e-06, + "replay_kl": 6.5239687501161825e-06, + "gradient_norm": 0.00024095554545056075 + }, + { + "step": 401, + "loss": 1.6393052646890283e-05, + "target_ce": 9.894295544654597e-06, + "replay_kl": 6.498756192740984e-06, + "gradient_norm": 0.00023983277787920088 + }, + { + "step": 402, + "loss": 1.6338737623300403e-05, + "target_ce": 9.854559721134137e-06, + "replay_kl": 6.484178356913617e-06, + "gradient_norm": 0.0002387773129157722 + }, + { + "step": 403, + "loss": 1.62850265041925e-05, + "target_ce": 9.814823897613678e-06, + "replay_kl": 6.470202606578823e-06, + "gradient_norm": 0.0002376715128775686 + }, + { + "step": 404, + "loss": 1.6256413800874725e-05, + "target_ce": 9.814823897613678e-06, + "replay_kl": 6.441590812755749e-06, + "gradient_norm": 0.00023712792608421296 + }, + { + "step": 405, + "loss": 1.62501419254113e-05, + "target_ce": 9.814823897613678e-06, + "replay_kl": 6.435318027797621e-06, + "gradient_norm": 0.00023663851607125252 + }, + { + "step": 406, + "loss": 1.6188467270694673e-05, + "target_ce": 9.775088074093219e-06, + "replay_kl": 6.413379196601454e-06, + "gradient_norm": 0.00023595590027980506 + }, + { + "step": 407, + "loss": 1.6172929463209584e-05, + "target_ce": 9.775088074093219e-06, + "replay_kl": 6.397842298611067e-06, + "gradient_norm": 0.0002354399475734681 + }, + { + "step": 408, + "loss": 1.609644095879048e-05, + "target_ce": 9.73535225057276e-06, + "replay_kl": 6.361089162965072e-06, + "gradient_norm": 0.0002342198567930609 + }, + { + "step": 409, + "loss": 1.6091747966129333e-05, + "target_ce": 9.73535225057276e-06, + "replay_kl": 6.356394806061871e-06, + "gradient_norm": 0.00023386832617688924 + }, + { + "step": 410, + "loss": 1.606452133273706e-05, + "target_ce": 9.73535225057276e-06, + "replay_kl": 6.3291699916590005e-06, + "gradient_norm": 0.00023332543787546456 + }, + { + "step": 411, + "loss": 1.6046415112214163e-05, + "target_ce": 9.73535225057276e-06, + "replay_kl": 6.311063771136105e-06, + "gradient_norm": 0.00023283161863218993 + }, + { + "step": 412, + "loss": 1.5944211554597132e-05, + "target_ce": 9.655880603531841e-06, + "replay_kl": 6.288331405812642e-06, + "gradient_norm": 0.00023090916511137038 + }, + { + "step": 413, + "loss": 1.5924671970424242e-05, + "target_ce": 9.655880603531841e-06, + "replay_kl": 6.268791821639752e-06, + "gradient_norm": 0.00023037825303617865 + }, + { + "step": 414, + "loss": 1.5912431990727782e-05, + "target_ce": 9.655880603531841e-06, + "replay_kl": 6.256552296690643e-06, + "gradient_norm": 0.0002299951738677919 + }, + { + "step": 415, + "loss": 1.583974517416209e-05, + "target_ce": 9.616144780011382e-06, + "replay_kl": 6.22360130364541e-06, + "gradient_norm": 0.00022892261040396988 + }, + { + "step": 416, + "loss": 1.582710501679685e-05, + "target_ce": 9.616144780011382e-06, + "replay_kl": 6.210960236785468e-06, + "gradient_norm": 0.0002284742658957839 + }, + { + "step": 417, + "loss": 1.577631337568164e-05, + "target_ce": 9.576408956490923e-06, + "replay_kl": 6.199905328685418e-06, + "gradient_norm": 0.00022794760297983885 + }, + { + "step": 418, + "loss": 1.5757355868117884e-05, + "target_ce": 9.576408956490923e-06, + "replay_kl": 6.180946911626961e-06, + "gradient_norm": 0.00022737085237167776 + }, + { + "step": 419, + "loss": 1.5747122233733535e-05, + "target_ce": 9.576408956490923e-06, + "replay_kl": 6.170714186737314e-06, + "gradient_norm": 0.00022697144595440477 + }, + { + "step": 420, + "loss": 1.5682644516346045e-05, + "target_ce": 9.536673132970463e-06, + "replay_kl": 6.145971383375581e-06, + "gradient_norm": 0.00022551226720679551 + }, + { + "step": 421, + "loss": 1.5664103557355702e-05, + "target_ce": 9.536673132970463e-06, + "replay_kl": 6.127429514890537e-06, + "gradient_norm": 0.0002249023673357442 + }, + { + "step": 422, + "loss": 1.5602854546159506e-05, + "target_ce": 9.496937309450004e-06, + "replay_kl": 6.105918146204203e-06, + "gradient_norm": 0.00022422702750191092 + }, + { + "step": 423, + "loss": 1.5594565411447547e-05, + "target_ce": 9.496937309450004e-06, + "replay_kl": 6.097628556744894e-06, + "gradient_norm": 0.00022363491007126868 + }, + { + "step": 424, + "loss": 1.557652467454318e-05, + "target_ce": 9.496937309450004e-06, + "replay_kl": 6.079587819840526e-06, + "gradient_norm": 0.00022322143195196986 + }, + { + "step": 425, + "loss": 1.5546311260550283e-05, + "target_ce": 9.496937309450004e-06, + "replay_kl": 6.0493744058476295e-06, + "gradient_norm": 0.0002226245851488784 + }, + { + "step": 426, + "loss": 1.5481866284972057e-05, + "target_ce": 9.457201485929545e-06, + "replay_kl": 6.0246657085372135e-06, + "gradient_norm": 0.000221481648623012 + }, + { + "step": 427, + "loss": 1.5386438462883234e-05, + "target_ce": 9.377729838888627e-06, + "replay_kl": 6.008709078741958e-06, + "gradient_norm": 0.0002208757068729028 + }, + { + "step": 428, + "loss": 1.5371337212854996e-05, + "target_ce": 9.377729838888627e-06, + "replay_kl": 5.993606464471668e-06, + "gradient_norm": 0.00022039702162146568 + }, + { + "step": 429, + "loss": 1.5352816262748092e-05, + "target_ce": 9.377729838888627e-06, + "replay_kl": 5.975087333354168e-06, + "gradient_norm": 0.00021988355729263276 + }, + { + "step": 430, + "loss": 1.5253462152031716e-05, + "target_ce": 9.298258191847708e-06, + "replay_kl": 5.955203960184008e-06, + "gradient_norm": 0.00021823932183906436 + }, + { + "step": 431, + "loss": 1.518846875114832e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.929946382821072e-06, + "gradient_norm": 0.0002172473759856075 + }, + { + "step": 432, + "loss": 1.5174624422797933e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.916102509218035e-06, + "gradient_norm": 0.00021675758762285113 + }, + { + "step": 433, + "loss": 1.5152777450566646e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.894255082239397e-06, + "gradient_norm": 0.00021631452545989305 + }, + { + "step": 434, + "loss": 1.513626648375066e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.877744115423411e-06, + "gradient_norm": 0.00021579589520115405 + }, + { + "step": 435, + "loss": 1.5124800484045409e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.866278570465511e-06, + "gradient_norm": 0.00021543761249631643 + }, + { + "step": 436, + "loss": 1.5108083971426822e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.849562057846924e-06, + "gradient_norm": 0.00021490042854566127 + }, + { + "step": 437, + "loss": 1.5078657270350959e-05, + "target_ce": 9.258522368327249e-06, + "replay_kl": 5.82013490202371e-06, + "gradient_norm": 0.00021441522403620183 + }, + { + "step": 438, + "loss": 1.5030647773528472e-05, + "target_ce": 9.21878654480679e-06, + "replay_kl": 5.811861683469033e-06, + "gradient_norm": 0.00021347236179281026 + }, + { + "step": 439, + "loss": 1.5017312762211077e-05, + "target_ce": 9.21878654480679e-06, + "replay_kl": 5.798526217404287e-06, + "gradient_norm": 0.00021303065295796841 + }, + { + "step": 440, + "loss": 1.4961945453251246e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 5.782894731964916e-06, + "gradient_norm": 0.0002115776005666703 + }, + { + "step": 441, + "loss": 1.4944313079467975e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 5.765262358181644e-06, + "gradient_norm": 0.00021127695799805224 + }, + { + "step": 442, + "loss": 1.4926504263712559e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 5.7474535424262285e-06, + "gradient_norm": 0.00021089344227220863 + }, + { + "step": 443, + "loss": 1.4916095096850768e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 5.737044375564437e-06, + "gradient_norm": 0.0002103857259498909 + }, + { + "step": 444, + "loss": 1.4894476407789625e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 5.715426141250646e-06, + "gradient_norm": 0.00020999269327148795 + }, + { + "step": 445, + "loss": 1.4841614756733179e-05, + "target_ce": 9.139314897765871e-06, + "replay_kl": 5.702300313714659e-06, + "gradient_norm": 0.00020956287335138768 + }, + { + "step": 446, + "loss": 1.478240574215306e-05, + "target_ce": 9.09957816475071e-06, + "replay_kl": 5.6828275774023496e-06, + "gradient_norm": 0.00020899127412121743 + }, + { + "step": 447, + "loss": 1.4722564628755208e-05, + "target_ce": 9.059842341230251e-06, + "replay_kl": 5.662722287524957e-06, + "gradient_norm": 0.0002081721177091822 + }, + { + "step": 448, + "loss": 1.4710254617966712e-05, + "target_ce": 9.059842341230251e-06, + "replay_kl": 5.65041182198911e-06, + "gradient_norm": 0.00020774225413333625 + }, + { + "step": 449, + "loss": 1.4695439858769532e-05, + "target_ce": 9.059842341230251e-06, + "replay_kl": 5.635597517539281e-06, + "gradient_norm": 0.00020730819960590452 + }, + { + "step": 450, + "loss": 1.4636652849731036e-05, + "target_ce": 9.020106517709792e-06, + "replay_kl": 5.616546332021244e-06, + "gradient_norm": 0.00020591021166183054 + }, + { + "step": 451, + "loss": 1.4624719369749073e-05, + "target_ce": 9.020106517709792e-06, + "replay_kl": 5.604612852039281e-06, + "gradient_norm": 0.00020553244394250214 + }, + { + "step": 452, + "loss": 1.4570603525498882e-05, + "target_ce": 8.980371603684034e-06, + "replay_kl": 5.590231921814848e-06, + "gradient_norm": 0.00020479649538174272 + }, + { + "step": 453, + "loss": 1.4506672414427157e-05, + "target_ce": 8.940635780163575e-06, + "replay_kl": 5.5660366342635825e-06, + "gradient_norm": 0.00020384810341056436 + }, + { + "step": 454, + "loss": 1.4499306416837499e-05, + "target_ce": 8.940635780163575e-06, + "replay_kl": 5.558670636673924e-06, + "gradient_norm": 0.00020337289606686682 + }, + { + "step": 455, + "loss": 1.4437297977565322e-05, + "target_ce": 8.900899956643116e-06, + "replay_kl": 5.536398020922206e-06, + "gradient_norm": 0.0002023491688305512 + }, + { + "step": 456, + "loss": 1.443484961782815e-05, + "target_ce": 8.900899956643116e-06, + "replay_kl": 5.533949661185034e-06, + "gradient_norm": 0.00020206411136314273 + }, + { + "step": 457, + "loss": 1.4425109839066863e-05, + "target_ce": 8.900899956643116e-06, + "replay_kl": 5.524209882423747e-06, + "gradient_norm": 0.00020164197485428303 + }, + { + "step": 458, + "loss": 1.4404964531422593e-05, + "target_ce": 8.900899956643116e-06, + "replay_kl": 5.504064574779477e-06, + "gradient_norm": 0.00020116895029786974 + }, + { + "step": 459, + "loss": 1.438433082512347e-05, + "target_ce": 8.900899956643116e-06, + "replay_kl": 5.4834308684803545e-06, + "gradient_norm": 0.00020080027752555907 + }, + { + "step": 460, + "loss": 1.4332737919175997e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 5.471573786053341e-06, + "gradient_norm": 0.00019981559307780117 + }, + { + "step": 461, + "loss": 1.4315388398244977e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 5.4542242651223205e-06, + "gradient_norm": 0.00019929581321775913 + }, + { + "step": 462, + "loss": 1.430171323590912e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 5.440549102786463e-06, + "gradient_norm": 0.00019897590391337872 + }, + { + "step": 463, + "loss": 1.4245733837014996e-05, + "target_ce": 8.821428309602197e-06, + "replay_kl": 5.424305527412798e-06, + "gradient_norm": 0.00019767857156693935 + }, + { + "step": 464, + "loss": 1.4235672097129282e-05, + "target_ce": 8.821428309602197e-06, + "replay_kl": 5.414243787527084e-06, + "gradient_norm": 0.00019719998817890882 + }, + { + "step": 465, + "loss": 1.4178666788211558e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 5.39697430212982e-06, + "gradient_norm": 0.00019655071082524955 + }, + { + "step": 466, + "loss": 1.4163579180603847e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 5.381886694522109e-06, + "gradient_norm": 0.0001963547692866996 + }, + { + "step": 467, + "loss": 1.415917904523667e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 5.377487013902282e-06, + "gradient_norm": 0.00019593384058680385 + }, + { + "step": 468, + "loss": 1.4138371625449508e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 5.35667913936777e-06, + "gradient_norm": 0.00019547615374904126 + }, + { + "step": 469, + "loss": 1.4130517229204997e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 5.348824743123259e-06, + "gradient_norm": 0.00019509944831952453 + }, + { + "step": 470, + "loss": 1.4113205907051452e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 5.3315134209697135e-06, + "gradient_norm": 0.00019462790805846453 + }, + { + "step": 471, + "loss": 1.4054792700335383e-05, + "target_ce": 8.741956662561279e-06, + "replay_kl": 5.312836037774105e-06, + "gradient_norm": 0.00019346120825503021 + }, + { + "step": 472, + "loss": 1.4053568520466797e-05, + "target_ce": 8.741956662561279e-06, + "replay_kl": 5.311611857905518e-06, + "gradient_norm": 0.0001932376326294616 + }, + { + "step": 473, + "loss": 1.3990767001814675e-05, + "target_ce": 8.70222083904082e-06, + "replay_kl": 5.288546162773855e-06, + "gradient_norm": 0.00019266727031208575 + }, + { + "step": 474, + "loss": 1.3943494195700623e-05, + "target_ce": 8.66248501552036e-06, + "replay_kl": 5.281009180180263e-06, + "gradient_norm": 0.00019191483443137258 + }, + { + "step": 475, + "loss": 1.3918635886511765e-05, + "target_ce": 8.66248501552036e-06, + "replay_kl": 5.256150870991405e-06, + "gradient_norm": 0.00019164422701578587 + }, + { + "step": 476, + "loss": 1.3872141607862432e-05, + "target_ce": 8.622749191999901e-06, + "replay_kl": 5.2493924158625305e-06, + "gradient_norm": 0.00019038788741454482 + }, + { + "step": 477, + "loss": 1.386019357596524e-05, + "target_ce": 8.622749191999901e-06, + "replay_kl": 5.2374443839653395e-06, + "gradient_norm": 0.00019002020417246968 + }, + { + "step": 478, + "loss": 1.3804821719531901e-05, + "target_ce": 8.583013368479442e-06, + "replay_kl": 5.221808351052459e-06, + "gradient_norm": 0.00018963498587254435 + }, + { + "step": 479, + "loss": 1.3792638128506951e-05, + "target_ce": 8.583013368479442e-06, + "replay_kl": 5.20962521477486e-06, + "gradient_norm": 0.0001891242281999439 + }, + { + "step": 480, + "loss": 1.3777489584754221e-05, + "target_ce": 8.583013368479442e-06, + "replay_kl": 5.194476216274779e-06, + "gradient_norm": 0.00018886520410887897 + }, + { + "step": 481, + "loss": 1.3760434740106575e-05, + "target_ce": 8.583013368479442e-06, + "replay_kl": 5.177421371627133e-06, + "gradient_norm": 0.000188412974239327 + }, + { + "step": 482, + "loss": 1.3751940059592016e-05, + "target_ce": 8.583013368479442e-06, + "replay_kl": 5.168926691112574e-06, + "gradient_norm": 0.00018807884771376848 + }, + { + "step": 483, + "loss": 1.365950629406143e-05, + "target_ce": 8.503541721438523e-06, + "replay_kl": 5.155964572622906e-06, + "gradient_norm": 0.00018685238319449127 + }, + { + "step": 484, + "loss": 1.3612730072054546e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.148924174136482e-06, + "gradient_norm": 0.0001859056210378185 + }, + { + "step": 485, + "loss": 1.359853740723338e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.134731509315316e-06, + "gradient_norm": 0.0001855110313044861 + }, + { + "step": 486, + "loss": 1.3592326467914972e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.128520569996908e-06, + "gradient_norm": 0.0001851751294452697 + }, + { + "step": 487, + "loss": 1.3569399015977979e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.1055931180599146e-06, + "gradient_norm": 0.00018486878252588212 + }, + { + "step": 488, + "loss": 1.3555893929151352e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.092088031233288e-06, + "gradient_norm": 0.00018440806888975203 + }, + { + "step": 489, + "loss": 1.3541059161070734e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.077253717900021e-06, + "gradient_norm": 0.00018398018437437713 + }, + { + "step": 490, + "loss": 1.352730396320112e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.063498520030407e-06, + "gradient_norm": 0.00018375956278759986 + }, + { + "step": 491, + "loss": 1.351727951259818e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.053473614680115e-06, + "gradient_norm": 0.00018339735106565058 + }, + { + "step": 492, + "loss": 1.3504739399650134e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.04093350173207e-06, + "gradient_norm": 0.00018302936223335564 + }, + { + "step": 493, + "loss": 1.3494670383806806e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 5.030864485888742e-06, + "gradient_norm": 0.00018259091302752495 + }, + { + "step": 494, + "loss": 1.3402099284576252e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 5.0177650336991064e-06, + "gradient_norm": 0.00018085386545863003 + }, + { + "step": 495, + "loss": 1.338866786682047e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 5.004334070690675e-06, + "gradient_norm": 0.0001805608771974221 + }, + { + "step": 496, + "loss": 1.3376449714996852e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.992115464119706e-06, + "gradient_norm": 0.00018016887770500034 + }, + { + "step": 497, + "loss": 1.3359085642150603e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.9747518460208084e-06, + "gradient_norm": 0.00017999295960180461 + }, + { + "step": 498, + "loss": 1.3340045370568987e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.955711119691841e-06, + "gradient_norm": 0.00017969620239455253 + }, + { + "step": 499, + "loss": 1.3332421076484025e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.948086825606879e-06, + "gradient_norm": 0.00017922645201906562 + }, + { + "step": 500, + "loss": 1.3321622645889875e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.937288395012729e-06, + "gradient_norm": 0.00017880024097394198 + }, + { + "step": 501, + "loss": 1.3312467672221828e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.9281334213446826e-06, + "gradient_norm": 0.00017855881014838815 + }, + { + "step": 502, + "loss": 1.3293589290697128e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 4.909255494567333e-06, + "gradient_norm": 0.00017820554785430431 + }, + { + "step": 503, + "loss": 1.3244649380794726e-05, + "target_ce": 8.344598427356686e-06, + "replay_kl": 4.90005095343804e-06, + "gradient_norm": 0.00017760234186425805 + }, + { + "step": 504, + "loss": 1.3189806850277819e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 4.884944701188942e-06, + "gradient_norm": 0.00017636557458899915 + }, + { + "step": 505, + "loss": 1.3172868420952e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 4.868005362368422e-06, + "gradient_norm": 0.00017601813306100667 + }, + { + "step": 506, + "loss": 1.316959605901502e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 4.8647334551787935e-06, + "gradient_norm": 0.00017573870718479156 + }, + { + "step": 507, + "loss": 1.3114678949932568e-05, + "target_ce": 8.265126780315768e-06, + "replay_kl": 4.849552624364151e-06, + "gradient_norm": 0.00017511345504317433 + }, + { + "step": 508, + "loss": 1.3106940969009884e-05, + "target_ce": 8.265126780315768e-06, + "replay_kl": 4.841814188694116e-06, + "gradient_norm": 0.00017473794287070632 + }, + { + "step": 509, + "loss": 1.3084329111734405e-05, + "target_ce": 8.265126780315768e-06, + "replay_kl": 4.819202786165988e-06, + "gradient_norm": 0.00017450044106226414 + }, + { + "step": 510, + "loss": 1.3073651643935591e-05, + "target_ce": 8.265126780315768e-06, + "replay_kl": 4.808525318367174e-06, + "gradient_norm": 0.00017414595640730113 + }, + { + "step": 511, + "loss": 1.3065231541986577e-05, + "target_ce": 8.265126780315768e-06, + "replay_kl": 4.800104306923458e-06, + "gradient_norm": 0.00017380723147653043 + }, + { + "step": 512, + "loss": 1.301252359553473e-05, + "target_ce": 8.225390956795309e-06, + "replay_kl": 4.787132638739422e-06, + "gradient_norm": 0.00017330578702967614 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..c4f237b7e73cd6cbae1c78cbc8e56e112767d2f3 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_familiar-00", + "role": "second", + "stratum": "familiar", + "lr": 0.0001, + "arm": "sham", + "path": "second_familiar-00/lr0.0001-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.861018856492592e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.78957176208496 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9712418300653595, + "accuracy": 0.9712418300653595, + "answer_nll": 0.12143339961767197 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.859938621520996, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.861328125, + "accuracy": 0.861328125, + "answer_nll": 0.5540709495544434 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9689922480620154, + "accuracy": 0.9689922480620154, + "answer_nll": 0.1748715490102768 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.539569854736328, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012796116061508656 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.375362396240234, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035719675361178815 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003996319428551942 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004145599086768925 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "c6fe891f9dfa18736c6240f647798eafccce5be6ece5ca12e928c5e1bcde428e", + "delta_l2": 0.45072388648986816, + "tensor_file_sha256": "fb69bd143b9d026080dc68ccf4690b6bbc7c2aab279222a3cb85045c8efa3426" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..a6351cfac4def159875fa66bc8f1e40c2b593d43 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.174850568640977e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.56052589416504 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9725490196078431, + "accuracy": 0.9725490196078431, + "answer_nll": 0.10979633033275604 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.430662155151367, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5290288925170898 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.16985662281513214 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.321081161499023, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.323564543388784e-05 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.048419952392578, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032017609919421375 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003973551210947335 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003785797453019768 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.099436753473128e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.686655044555664 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9712418300653595, + "accuracy": 0.9712418300653595, + "answer_nll": 0.11908351629972458 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.492263793945312, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5330272316932678 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9689922480620154, + "accuracy": 0.9689922480620154, + "answer_nll": 0.1691341996192932 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.341672897338867, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011320971680106595 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.16092300415039, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00036616926081478596 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003972700797021389 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00042489985935389996 + } + }, + "model_sha256": "d57526380afcba954ef2f5b731dd2c1088c70e0830a0d910b0a5b1828e565bbc", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 3.01761838272796e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 6.334355475701159e-07, + "gradient_norm": 3.310363172204234e-05 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.861018856492592e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.811643600463867 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9725490196078431, + "accuracy": 0.9725490196078431, + "answer_nll": 0.11560121178627014 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.728400230407715, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.859375, + "accuracy": 0.859375, + "answer_nll": 0.5333765745162964 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9728682170542635, + "accuracy": 0.9728682170542635, + "answer_nll": 0.164480060338974 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.47028160095215, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001077614288078621 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.293418884277344, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003297086514066905 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003937949368264526 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004063279484398663 + } + }, + "model_sha256": "2cc57c12f843d45d933b7e168817d0edd3da097cd50f4a5dcc41c05389e6f0e6", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 2.2326255475491052e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.85542739675293e-07, + "gradient_norm": 7.762416498735547e-05 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.861018856492592e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.78957176208496 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.9712418300653595, + "accuracy": 0.9712418300653595, + "answer_nll": 0.12143339961767197 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.859938621520996, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.861328125, + "accuracy": 0.861328125, + "answer_nll": 0.5540709495544434 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9689922480620154, + "accuracy": 0.9689922480620154, + "answer_nll": 0.1748715490102768 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.539569854736328, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012796116061508656 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.375362396240234, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035719675361178815 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003996319428551942 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004145599086768925 + } + }, + "model_sha256": "c6fe891f9dfa18736c6240f647798eafccce5be6ece5ca12e928c5e1bcde428e", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 2.023528168138e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1618177353511783e-07, + "gradient_norm": 2.9728587833233178e-05 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..ac1131dc4252eef0d273549fbbeff40596dac973 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 2.618564758449793e-05, + "target_ce": 2.618564758449793e-05, + "replay_kl": 0.0, + "gradient_norm": 0.0013538227649405599 + }, + { + "step": 2, + "loss": 1.2611253623617813e-05, + "target_ce": 1.1404267752368469e-05, + "replay_kl": 1.2069860986230196e-06, + "gradient_norm": 0.00042769123683683574 + }, + { + "step": 3, + "loss": 9.301225873059593e-06, + "target_ce": 7.748569260002114e-06, + "replay_kl": 1.5526569541179924e-06, + "gradient_norm": 0.0002987658663187176 + }, + { + "step": 4, + "loss": 7.5188499977230094e-06, + "target_ce": 6.079653303459054e-06, + "replay_kl": 1.4391965805771179e-06, + "gradient_norm": 0.00023029801377560943 + }, + { + "step": 5, + "loss": 6.5587391873123124e-06, + "target_ce": 5.245194188319147e-06, + "replay_kl": 1.3135449989931658e-06, + "gradient_norm": 0.00018513260874897242 + }, + { + "step": 6, + "loss": 6.179088813951239e-06, + "target_ce": 4.808096036867937e-06, + "replay_kl": 1.3709925497096265e-06, + "gradient_norm": 0.00020176074758637697 + }, + { + "step": 7, + "loss": 5.787678674096242e-06, + "target_ce": 4.450469532457646e-06, + "replay_kl": 1.3372091416385956e-06, + "gradient_norm": 0.00014472240582108498 + }, + { + "step": 8, + "loss": 5.4579331845161505e-06, + "target_ce": 4.053107204526896e-06, + "replay_kl": 1.4048259799892548e-06, + "gradient_norm": 0.00015738241199869663 + }, + { + "step": 9, + "loss": 5.16170666742255e-06, + "target_ce": 3.8146897622937104e-06, + "replay_kl": 1.3470170188156771e-06, + "gradient_norm": 0.00013731556828133762 + }, + { + "step": 10, + "loss": 4.882263510808116e-06, + "target_ce": 3.6160083709546598e-06, + "replay_kl": 1.266255139853456e-06, + "gradient_norm": 0.00011121689021820202 + }, + { + "step": 11, + "loss": 4.715818249678705e-06, + "target_ce": 3.457063030509744e-06, + "replay_kl": 1.258755219168961e-06, + "gradient_norm": 0.00013093510642647743 + }, + { + "step": 12, + "loss": 4.546915988612454e-06, + "target_ce": 3.337854423079989e-06, + "replay_kl": 1.209061792906141e-06, + "gradient_norm": 0.00010587272117845714 + }, + { + "step": 13, + "loss": 4.383130999485729e-06, + "target_ce": 3.218645360902883e-06, + "replay_kl": 1.1644855248960084e-06, + "gradient_norm": 9.658817725721747e-05 + }, + { + "step": 14, + "loss": 4.3002560232707765e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 1.1213472816962167e-06, + "gradient_norm": 0.00010271383507642895 + }, + { + "step": 15, + "loss": 4.113871909794398e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 1.0541714345890796e-06, + "gradient_norm": 8.255882858065888e-05 + }, + { + "step": 16, + "loss": 4.081042789039202e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 1.0213427685812348e-06, + "gradient_norm": 7.768205250613391e-05 + }, + { + "step": 17, + "loss": 3.968966211687075e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 9.887386340778903e-07, + "gradient_norm": 8.749029075261205e-05 + }, + { + "step": 18, + "loss": 3.912667125405278e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 9.324398888566066e-07, + "gradient_norm": 6.886239134473726e-05 + }, + { + "step": 19, + "loss": 3.8026207676011836e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 9.41602138482267e-07, + "gradient_norm": 7.310586079256609e-05 + }, + { + "step": 20, + "loss": 3.7404324757517315e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 9.191501249006251e-07, + "gradient_norm": 6.811998173361644e-05 + }, + { + "step": 21, + "loss": 3.674511845019879e-06, + "target_ce": 2.781545845209621e-06, + "replay_kl": 8.929661134970956e-07, + "gradient_norm": 6.048184877727181e-05 + }, + { + "step": 22, + "loss": 3.5760103855864145e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 8.739370969124138e-07, + "gradient_norm": 6.292069883784279e-05 + }, + { + "step": 23, + "loss": 3.5454695535008796e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 8.433962648268789e-07, + "gradient_norm": 6.113811832619831e-05 + }, + { + "step": 24, + "loss": 3.4277802569704363e-06, + "target_ce": 2.6226007321383804e-06, + "replay_kl": 8.05179467988637e-07, + "gradient_norm": 4.991077003069222e-05 + }, + { + "step": 25, + "loss": 3.357036121087731e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 7.74171894590836e-07, + "gradient_norm": 4.812794577446766e-05 + }, + { + "step": 26, + "loss": 3.3071382858906873e-06, + "target_ce": 2.5431279482290847e-06, + "replay_kl": 7.640102808181837e-07, + "gradient_norm": 4.879436164628714e-05 + }, + { + "step": 27, + "loss": 3.282299076090567e-06, + "target_ce": 2.5431279482290847e-06, + "replay_kl": 7.391711278614821e-07, + "gradient_norm": 4.113438262720592e-05 + }, + { + "step": 28, + "loss": 3.251534053561045e-06, + "target_ce": 2.5431279482290847e-06, + "replay_kl": 7.084062190187979e-07, + "gradient_norm": 4.562992398859933e-05 + }, + { + "step": 29, + "loss": 3.1278341339202598e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 7.039149636511866e-07, + "gradient_norm": 3.98883676098194e-05 + }, + { + "step": 30, + "loss": 3.0571156912628794e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 6.729328561050352e-07, + "gradient_norm": 3.687792195705697e-05 + }, + { + "step": 31, + "loss": 3.045698804271524e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 6.615159122702607e-07, + "gradient_norm": 3.584761725505814e-05 + }, + { + "step": 32, + "loss": 3.01761838272796e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 6.334355475701159e-07, + "gradient_norm": 3.310363172204234e-05 + }, + { + "step": 33, + "loss": 2.9670168260054197e-06, + "target_ce": 2.344446556890034e-06, + "replay_kl": 6.225703828022233e-07, + "gradient_norm": 3.381666465429589e-05 + }, + { + "step": 34, + "loss": 2.9463176360877696e-06, + "target_ce": 2.344446556890034e-06, + "replay_kl": 6.018711928845732e-07, + "gradient_norm": 3.1023271731100976e-05 + }, + { + "step": 35, + "loss": 2.887627715608687e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 5.829177212035574e-07, + "gradient_norm": 2.82636538031511e-05 + }, + { + "step": 36, + "loss": 2.8845402084698435e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 5.798302709081327e-07, + "gradient_norm": 2.996517469000537e-05 + }, + { + "step": 37, + "loss": 2.8610170375031885e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 5.563068725678022e-07, + "gradient_norm": 2.7046356990467757e-05 + }, + { + "step": 38, + "loss": 2.858435436792206e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 5.537254992304952e-07, + "gradient_norm": 2.846015377144795e-05 + }, + { + "step": 39, + "loss": 2.844424216164043e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 5.397140512286569e-07, + "gradient_norm": 2.498805224604439e-05 + }, + { + "step": 40, + "loss": 2.8206945899000857e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 5.159845386515372e-07, + "gradient_norm": 2.585400579846464e-05 + }, + { + "step": 41, + "loss": 2.7748214961320627e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 5.09847836838162e-07, + "gradient_norm": 2.6328552849008702e-05 + }, + { + "step": 42, + "loss": 2.7610751658357913e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.961014496984717e-07, + "gradient_norm": 2.225590287707746e-05 + }, + { + "step": 43, + "loss": 2.755935383902397e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.909614972348209e-07, + "gradient_norm": 2.466746991558466e-05 + }, + { + "step": 44, + "loss": 2.73993941846129e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.7496564548055176e-07, + "gradient_norm": 2.3722390324110165e-05 + }, + { + "step": 45, + "loss": 2.7237322228756966e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.587584498949582e-07, + "gradient_norm": 2.0691111785708927e-05 + }, + { + "step": 46, + "loss": 2.722352519413107e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.5737874643236864e-07, + "gradient_norm": 2.44195616687648e-05 + }, + { + "step": 47, + "loss": 2.671281663424452e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.460443392417801e-07, + "gradient_norm": 1.72431882674573e-05 + }, + { + "step": 48, + "loss": 2.668433126018499e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.4319594394437445e-07, + "gradient_norm": 2.1876918253838085e-05 + }, + { + "step": 49, + "loss": 2.655458501976682e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.302211209505913e-07, + "gradient_norm": 2.0177409169264138e-05 + }, + { + "step": 50, + "loss": 2.648052941367496e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.2281578771508066e-07, + "gradient_norm": 1.5190563317446504e-05 + }, + { + "step": 51, + "loss": 2.635023520269897e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.097861960872251e-07, + "gradient_norm": 2.1891506548854522e-05 + }, + { + "step": 52, + "loss": 2.63192919192079e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.06691924581537e-07, + "gradient_norm": 1.6604986740276217e-05 + }, + { + "step": 53, + "loss": 2.6276645712641766e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.0242730392492376e-07, + "gradient_norm": 1.8033177184406668e-05 + }, + { + "step": 54, + "loss": 2.622859483381035e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.9762221604178194e-07, + "gradient_norm": 1.9683704522321932e-05 + }, + { + "step": 55, + "loss": 2.6273419280187227e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 4.021045469926321e-07, + "gradient_norm": 1.6061150745372288e-05 + }, + { + "step": 56, + "loss": 2.6169605007453356e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.91723318671211e-07, + "gradient_norm": 1.5194887055258732e-05 + }, + { + "step": 57, + "loss": 2.6096749934367836e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.8443761241069296e-07, + "gradient_norm": 1.5235469618346542e-05 + }, + { + "step": 58, + "loss": 2.6110978978977073e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.8586063055845443e-07, + "gradient_norm": 1.6599395166849717e-05 + }, + { + "step": 59, + "loss": 2.5540750812069746e-06, + "target_ce": 2.185501216445118e-06, + "replay_kl": 3.685738079184375e-07, + "gradient_norm": 1.1452035323600285e-05 + }, + { + "step": 60, + "loss": 2.5582000944268657e-06, + "target_ce": 2.185501216445118e-06, + "replay_kl": 3.726989632468758e-07, + "gradient_norm": 1.249255092261592e-05 + }, + { + "step": 61, + "loss": 2.567292995081516e-06, + "target_ce": 2.185501216445118e-06, + "replay_kl": 3.8179172179297893e-07, + "gradient_norm": 1.2544694982352667e-05 + }, + { + "step": 62, + "loss": 2.553931153670419e-06, + "target_ce": 2.185501216445118e-06, + "replay_kl": 3.684300224904291e-07, + "gradient_norm": 1.1380685464246199e-05 + }, + { + "step": 63, + "loss": 2.564643864388927e-06, + "target_ce": 2.185501216445118e-06, + "replay_kl": 3.7914261952209927e-07, + "gradient_norm": 1.134225294663338e-05 + }, + { + "step": 64, + "loss": 2.5505805751890875e-06, + "target_ce": 2.185501216445118e-06, + "replay_kl": 3.6507944400909764e-07, + "gradient_norm": 1.4113701581663918e-05 + }, + { + "step": 65, + "loss": 2.5153208298434038e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.6955620430489944e-07, + "gradient_norm": 9.985436008719262e-06 + }, + { + "step": 66, + "loss": 2.5095910132222343e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.63826188731764e-07, + "gradient_norm": 1.1035435818484984e-05 + }, + { + "step": 67, + "loss": 2.507950284780236e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.6218557397660334e-07, + "gradient_norm": 9.381336894875858e-06 + }, + { + "step": 68, + "loss": 2.509768819436431e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.640041938979266e-07, + "gradient_norm": 1.0530695362831466e-05 + }, + { + "step": 69, + "loss": 2.5029764856299153e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.572117179828638e-07, + "gradient_norm": 1.1104276381956879e-05 + }, + { + "step": 70, + "loss": 2.5001597805385245e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.543950697348919e-07, + "gradient_norm": 1.1646282473520841e-05 + }, + { + "step": 71, + "loss": 2.4958587800938403e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.50094154555336e-07, + "gradient_norm": 1.141900156653719e-05 + }, + { + "step": 72, + "loss": 2.4601024506409885e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.5407396126174717e-07, + "gradient_norm": 1.4524394828185905e-05 + }, + { + "step": 73, + "loss": 2.45848468694021e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.5245625440438744e-07, + "gradient_norm": 1.4171398106554989e-05 + }, + { + "step": 74, + "loss": 2.4392215891566593e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.3319309977741796e-07, + "gradient_norm": 1.622191302885767e-05 + }, + { + "step": 75, + "loss": 2.4398116238444345e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.337832765737403e-07, + "gradient_norm": 9.333134585176595e-06 + }, + { + "step": 76, + "loss": 2.4393284547841176e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.3330002224829514e-07, + "gradient_norm": 1.4377994375536218e-05 + }, + { + "step": 77, + "loss": 2.4395576474489644e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.3352932859997964e-07, + "gradient_norm": 1.6121844964800403e-05 + }, + { + "step": 78, + "loss": 2.4448281692457385e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.387997935533349e-07, + "gradient_norm": 1.7136793758254498e-05 + }, + { + "step": 79, + "loss": 2.4408436729572713e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.348152119997394e-07, + "gradient_norm": 1.9674014765769243e-05 + }, + { + "step": 80, + "loss": 2.4330076939804712e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.2697926144464873e-07, + "gradient_norm": 1.3339761608222034e-05 + }, + { + "step": 81, + "loss": 2.433935605949955e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.2790717341413256e-07, + "gradient_norm": 1.2756077921949327e-05 + }, + { + "step": 82, + "loss": 2.4375110569963e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.314825676170585e-07, + "gradient_norm": 1.2950183190696407e-05 + }, + { + "step": 83, + "loss": 2.4346456939383643e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.2861726140254177e-07, + "gradient_norm": 1.3915482668380719e-05 + }, + { + "step": 84, + "loss": 2.4285354811581783e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.225070486223558e-07, + "gradient_norm": 1.3718352420255542e-05 + }, + { + "step": 85, + "loss": 2.414097252767533e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0806882023171056e-07, + "gradient_norm": 8.352217264473438e-06 + }, + { + "step": 86, + "loss": 2.410532943031285e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.04504482073753e-07, + "gradient_norm": 1.3100744581606705e-05 + }, + { + "step": 87, + "loss": 2.4239961931016296e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.179678458309354e-07, + "gradient_norm": 1.0328244570700917e-05 + }, + { + "step": 88, + "loss": 2.4211183244915446e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.150898919557221e-07, + "gradient_norm": 1.363713454338722e-05 + }, + { + "step": 89, + "loss": 2.4141093035723316e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.080808426147996e-07, + "gradient_norm": 1.0919546184595674e-05 + }, + { + "step": 90, + "loss": 2.412558842479484e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.065304667870805e-07, + "gradient_norm": 9.927352948579937e-06 + }, + { + "step": 91, + "loss": 2.4171645236492623e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.1113597742660204e-07, + "gradient_norm": 1.0766038940346334e-05 + }, + { + "step": 92, + "loss": 2.4127764390868833e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0674794970764196e-07, + "gradient_norm": 1.0781815035443287e-05 + }, + { + "step": 93, + "loss": 2.411357854725793e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0532936534655164e-07, + "gradient_norm": 1.3097965165798087e-05 + }, + { + "step": 94, + "loss": 2.413488800812047e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0746042511964333e-07, + "gradient_norm": 1.1526846719789319e-05 + }, + { + "step": 95, + "loss": 2.4087707970466e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0274247819761513e-07, + "gradient_norm": 9.522695108898915e-06 + }, + { + "step": 96, + "loss": 2.401179017397226e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.951506701265316e-07, + "gradient_norm": 1.1117401299998164e-05 + }, + { + "step": 97, + "loss": 2.362691930102301e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.964000884730922e-07, + "gradient_norm": 1.7380689314450137e-05 + }, + { + "step": 98, + "loss": 2.3817970031814184e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 3.1550504786537203e-07, + "gradient_norm": 1.659339432080742e-05 + }, + { + "step": 99, + "loss": 2.3631785097677493e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.96886554451703e-07, + "gradient_norm": 1.6542840967304073e-05 + }, + { + "step": 100, + "loss": 2.324873321413179e-06, + "target_ce": 2.026555648626527e-06, + "replay_kl": 2.983176443649427e-07, + "gradient_norm": 2.25049279833911e-05 + }, + { + "step": 101, + "loss": 2.321440433661337e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.9488455766113475e-07, + "gradient_norm": 2.091617716359906e-05 + }, + { + "step": 102, + "loss": 2.315827714483021e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.8927181006110914e-07, + "gradient_norm": 1.4119000297796447e-05 + }, + { + "step": 103, + "loss": 2.2760491447115783e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.892296890877333e-07, + "gradient_norm": 9.935171874531079e-06 + }, + { + "step": 104, + "loss": 2.282921059304499e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.9610177421091066e-07, + "gradient_norm": 1.267842799279606e-05 + }, + { + "step": 105, + "loss": 2.2754111341782846e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8859176381956786e-07, + "gradient_norm": 1.9271303244750015e-05 + }, + { + "step": 106, + "loss": 2.27095597438165e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8413649033609545e-07, + "gradient_norm": 2.7224541554460302e-05 + }, + { + "step": 107, + "loss": 2.2685703697788995e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.817510278418922e-07, + "gradient_norm": 3.05450230371207e-05 + }, + { + "step": 108, + "loss": 2.275389761052793e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8857033385065733e-07, + "gradient_norm": 2.8107002435717732e-05 + }, + { + "step": 109, + "loss": 2.274366352139623e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.875469817809062e-07, + "gradient_norm": 1.7104239304899238e-05 + }, + { + "step": 110, + "loss": 2.2647625428362517e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.7794314405582554e-07, + "gradient_norm": 1.1956302842008881e-05 + }, + { + "step": 111, + "loss": 2.25470716941345e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.678877990547335e-07, + "gradient_norm": 2.223361843789462e-05 + }, + { + "step": 112, + "loss": 2.2545405045093503e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.677210488855053e-07, + "gradient_norm": 2.9087839720887132e-05 + }, + { + "step": 113, + "loss": 2.265728198835859e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.789089421639801e-07, + "gradient_norm": 3.325943907839246e-05 + }, + { + "step": 114, + "loss": 2.2768110738979885e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8999170353927184e-07, + "gradient_norm": 3.201943400199525e-05 + }, + { + "step": 115, + "loss": 2.2575509319722187e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.707316753003397e-07, + "gradient_norm": 2.9871216611354612e-05 + }, + { + "step": 116, + "loss": 2.2582485144084785e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.714290303629241e-07, + "gradient_norm": 2.696416777325794e-05 + }, + { + "step": 117, + "loss": 2.2618112325289985e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.749919190137007e-07, + "gradient_norm": 2.206358294642996e-05 + }, + { + "step": 118, + "loss": 2.2542467377206776e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.674274242053798e-07, + "gradient_norm": 1.6413918274338357e-05 + }, + { + "step": 119, + "loss": 2.2527738110511564e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6595432700560195e-07, + "gradient_norm": 9.488469004281797e-06 + }, + { + "step": 120, + "loss": 2.2588660613109823e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.720467477956845e-07, + "gradient_norm": 8.452886504528578e-06 + }, + { + "step": 121, + "loss": 2.2554074803338153e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.685880815533892e-07, + "gradient_norm": 1.1580388672882691e-05 + }, + { + "step": 122, + "loss": 2.2596573217015248e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.7283783765597036e-07, + "gradient_norm": 1.510953461547615e-05 + }, + { + "step": 123, + "loss": 2.254744003948872e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.679246335901553e-07, + "gradient_norm": 1.4416254998650402e-05 + }, + { + "step": 124, + "loss": 2.2527374312630855e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.659181745912065e-07, + "gradient_norm": 1.7720391042530537e-05 + }, + { + "step": 125, + "loss": 2.2120343601272907e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.6495146698835015e-07, + "gradient_norm": 2.8860684324172325e-05 + }, + { + "step": 126, + "loss": 2.268508524139179e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.816891253587528e-07, + "gradient_norm": 4.639437611331232e-05 + }, + { + "step": 127, + "loss": 2.229934352726559e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.828515732744563e-07, + "gradient_norm": 6.387851317413151e-05 + }, + { + "step": 128, + "loss": 2.2326255475491052e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.85542739675293e-07, + "gradient_norm": 7.762416498735547e-05 + }, + { + "step": 129, + "loss": 2.2694639483233914e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8264466322980297e-07, + "gradient_norm": 8.318576874444261e-05 + }, + { + "step": 130, + "loss": 2.272127176183858e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8530789109026955e-07, + "gradient_norm": 7.561812526546419e-05 + }, + { + "step": 131, + "loss": 2.267927811772097e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.8110855510021793e-07, + "gradient_norm": 5.508189133252017e-05 + }, + { + "step": 132, + "loss": 2.2479430299426895e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6112371642739163e-07, + "gradient_norm": 2.45508872467326e-05 + }, + { + "step": 133, + "loss": 2.2459412321040872e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.591218049019517e-07, + "gradient_norm": 2.5764315068954602e-05 + }, + { + "step": 134, + "loss": 2.264996737721958e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.781773673632415e-07, + "gradient_norm": 5.4212574468692765e-05 + }, + { + "step": 135, + "loss": 2.2571471163246315e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.703278312310431e-07, + "gradient_norm": 7.390947575913742e-05 + }, + { + "step": 136, + "loss": 2.265151579194935e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.783321519927995e-07, + "gradient_norm": 7.563958206446841e-05 + }, + { + "step": 137, + "loss": 2.2561807782039978e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6936140784528106e-07, + "gradient_norm": 5.8321635151514784e-05 + }, + { + "step": 138, + "loss": 2.233141913166037e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.4632248596390127e-07, + "gradient_norm": 2.6414330932311714e-05 + }, + { + "step": 139, + "loss": 2.2413587430492043e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.545394295339065e-07, + "gradient_norm": 1.8290173102286644e-05 + }, + { + "step": 140, + "loss": 2.2444592104875483e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5763992539395986e-07, + "gradient_norm": 4.809603706235066e-05 + }, + { + "step": 141, + "loss": 2.2658859961666167e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.7906659738619055e-07, + "gradient_norm": 6.73047688906081e-05 + }, + { + "step": 142, + "loss": 2.2552314931090223e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.68412151172015e-07, + "gradient_norm": 6.585638766409829e-05 + }, + { + "step": 143, + "loss": 2.2013523448549677e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.542695369811554e-07, + "gradient_norm": 4.3950669351033866e-05 + }, + { + "step": 144, + "loss": 2.1913069758738857e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.442240827349451e-07, + "gradient_norm": 1.6599189621047117e-05 + }, + { + "step": 145, + "loss": 2.2399192403099732e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.530998415295471e-07, + "gradient_norm": 3.08732851408422e-05 + }, + { + "step": 146, + "loss": 2.2050226107239723e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.5793963231990347e-07, + "gradient_norm": 4.651960261981003e-05 + }, + { + "step": 147, + "loss": 2.243494691356318e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5667537784102024e-07, + "gradient_norm": 4.832648846786469e-05 + }, + { + "step": 148, + "loss": 2.204614702350227e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.575317239461583e-07, + "gradient_norm": 3.8210582715692e-05 + }, + { + "step": 149, + "loss": 2.22990138354362e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.430821268717409e-07, + "gradient_norm": 2.0820509234908968e-05 + }, + { + "step": 150, + "loss": 2.2334445475280518e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.4662523401275394e-07, + "gradient_norm": 2.4385346478084102e-05 + }, + { + "step": 151, + "loss": 2.1904677396378247e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.4338484649888414e-07, + "gradient_norm": 4.498230555327609e-05 + }, + { + "step": 152, + "loss": 2.237148464701022e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.503291511857242e-07, + "gradient_norm": 5.1389703003223985e-05 + }, + { + "step": 153, + "loss": 2.190392933698604e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.4330995529453503e-07, + "gradient_norm": 4.000957778771408e-05 + }, + { + "step": 154, + "loss": 2.232559154435876e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.4573972723374027e-07, + "gradient_norm": 2.8934431611560285e-05 + }, + { + "step": 155, + "loss": 2.225241360065411e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.38422046550113e-07, + "gradient_norm": 2.9077304134261794e-05 + }, + { + "step": 156, + "loss": 2.242369646410225e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5555016236467054e-07, + "gradient_norm": 3.591263521229848e-05 + }, + { + "step": 157, + "loss": 2.2388144316209946e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5199494757544016e-07, + "gradient_norm": 4.103445098735392e-05 + }, + { + "step": 158, + "loss": 2.219356474597589e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3253714687143656e-07, + "gradient_norm": 3.660198854049668e-05 + }, + { + "step": 159, + "loss": 2.229667416031589e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.4284810251629096e-07, + "gradient_norm": 2.629036498547066e-05 + }, + { + "step": 160, + "loss": 2.2318185983749572e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.449991995945311e-07, + "gradient_norm": 1.8812957932823338e-05 + }, + { + "step": 161, + "loss": 2.1888793071411783e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.41796499267366e-07, + "gradient_norm": 2.764713644864969e-05 + }, + { + "step": 162, + "loss": 2.228669700343744e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.418503299850272e-07, + "gradient_norm": 3.3839551178971305e-05 + }, + { + "step": 163, + "loss": 2.2256485863181297e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3882918753770355e-07, + "gradient_norm": 2.8893498893012293e-05 + }, + { + "step": 164, + "loss": 2.2251581413001986e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3833869988720835e-07, + "gradient_norm": 1.9000315660377964e-05 + }, + { + "step": 165, + "loss": 2.2195840756467078e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3276463423371752e-07, + "gradient_norm": 1.3432028026727494e-05 + }, + { + "step": 166, + "loss": 2.1837347503605997e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.366518856433686e-07, + "gradient_norm": 2.3337761376751587e-05 + }, + { + "step": 167, + "loss": 2.177949909309973e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.3086701617103245e-07, + "gradient_norm": 2.816695996443741e-05 + }, + { + "step": 168, + "loss": 2.2225963220989797e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3577693752940831e-07, + "gradient_norm": 2.5781249860301614e-05 + }, + { + "step": 169, + "loss": 2.177690930693643e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.3060806597641204e-07, + "gradient_norm": 1.7040763850673102e-05 + }, + { + "step": 170, + "loss": 2.1754815406893613e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.283987186046943e-07, + "gradient_norm": 1.1626621017057914e-05 + }, + { + "step": 171, + "loss": 2.2066026303946273e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1978326003591064e-07, + "gradient_norm": 1.7228052456630394e-05 + }, + { + "step": 172, + "loss": 2.208498472100473e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.216791870068846e-07, + "gradient_norm": 1.9640281607280485e-05 + }, + { + "step": 173, + "loss": 2.2103947685536696e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.235753271406793e-07, + "gradient_norm": 1.9664814317366108e-05 + }, + { + "step": 174, + "loss": 2.2138974600238726e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.2707818914113886e-07, + "gradient_norm": 2.192702959291637e-05 + }, + { + "step": 175, + "loss": 2.211287664977135e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.2446829461841844e-07, + "gradient_norm": 2.2696896849083714e-05 + }, + { + "step": 176, + "loss": 2.203457825089572e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1663838367658173e-07, + "gradient_norm": 2.197492722189054e-05 + }, + { + "step": 177, + "loss": 2.166798594771535e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1971565900003043e-07, + "gradient_norm": 2.149981628463138e-05 + }, + { + "step": 178, + "loss": 2.2062138214096194e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1939449368346686e-07, + "gradient_norm": 2.4438279069727287e-05 + }, + { + "step": 179, + "loss": 2.210285174442106e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.234657756616798e-07, + "gradient_norm": 2.0027158825541846e-05 + }, + { + "step": 180, + "loss": 2.201938286816585e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1511891645786818e-07, + "gradient_norm": 1.9140183212584816e-05 + }, + { + "step": 181, + "loss": 2.1616274352709297e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.14544499499425e-07, + "gradient_norm": 2.2099962734500878e-05 + }, + { + "step": 182, + "loss": 2.2010044631315395e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1418503592940397e-07, + "gradient_norm": 3.2159841794054955e-05 + }, + { + "step": 183, + "loss": 2.1658938749169465e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1881095335629652e-07, + "gradient_norm": 4.236592212691903e-05 + }, + { + "step": 184, + "loss": 2.2170688680489548e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3024961137707578e-07, + "gradient_norm": 4.7087505663512275e-05 + }, + { + "step": 185, + "loss": 2.208567821071483e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.2174837965849292e-07, + "gradient_norm": 5.388279532780871e-05 + }, + { + "step": 186, + "loss": 2.2160595563036622e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.2924015752323612e-07, + "gradient_norm": 6.17407713434659e-05 + }, + { + "step": 187, + "loss": 2.186146048188675e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.390632403148629e-07, + "gradient_norm": 6.954634591238573e-05 + }, + { + "step": 188, + "loss": 2.230072368547553e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.432531118756742e-07, + "gradient_norm": 7.539702346548438e-05 + }, + { + "step": 189, + "loss": 2.2267877284321003e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.399684717602213e-07, + "gradient_norm": 7.655104855075479e-05 + }, + { + "step": 190, + "loss": 2.223303454229608e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3648405544918205e-07, + "gradient_norm": 7.295280374819413e-05 + }, + { + "step": 191, + "loss": 2.1721543816966005e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.2507163066620706e-07, + "gradient_norm": 6.382422725437209e-05 + }, + { + "step": 192, + "loss": 2.205124474130571e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1830521745869191e-07, + "gradient_norm": 5.1345410611247644e-05 + }, + { + "step": 193, + "loss": 2.1637861209455878e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1670334149348491e-07, + "gradient_norm": 4.1411130951019004e-05 + }, + { + "step": 194, + "loss": 2.2069093574828003e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.2008991606981e-07, + "gradient_norm": 3.0390498068300076e-05 + }, + { + "step": 195, + "loss": 2.198138645326253e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.113192465458269e-07, + "gradient_norm": 2.9147286113584414e-05 + }, + { + "step": 196, + "loss": 2.2021470158506418e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.153275744376515e-07, + "gradient_norm": 4.040816202177666e-05 + }, + { + "step": 197, + "loss": 2.2065025859774323e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.1968324404042505e-07, + "gradient_norm": 5.423424590844661e-05 + }, + { + "step": 198, + "loss": 2.223274577772827e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.3645525004667434e-07, + "gradient_norm": 6.861460860818624e-05 + }, + { + "step": 199, + "loss": 2.179103148591821e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.3202028387458995e-07, + "gradient_norm": 7.938748603919521e-05 + }, + { + "step": 200, + "loss": 2.127386096617556e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.2003966648753703e-07, + "gradient_norm": 8.47208866616711e-05 + }, + { + "step": 201, + "loss": 2.1786770503240405e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.3159428508279234e-07, + "gradient_norm": 8.454629278276116e-05 + }, + { + "step": 202, + "loss": 2.1407179247034946e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.3337145194091136e-07, + "gradient_norm": 7.832623668946326e-05 + }, + { + "step": 203, + "loss": 2.166308604500955e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1922562609688612e-07, + "gradient_norm": 5.940764822298661e-05 + }, + { + "step": 204, + "loss": 2.115445113304304e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0809872580684896e-07, + "gradient_norm": 3.222830127924681e-05 + }, + { + "step": 205, + "loss": 2.155883066734532e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.0880013096302719e-07, + "gradient_norm": 1.8807138985721394e-05 + }, + { + "step": 206, + "loss": 2.155141828552587e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.0805887857022753e-07, + "gradient_norm": 3.4948549000546336e-05 + }, + { + "step": 207, + "loss": 2.1151831788301934e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0783667764590064e-07, + "gradient_norm": 5.1693048590095714e-05 + }, + { + "step": 208, + "loss": 2.170369498344371e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.2328661941628525e-07, + "gradient_norm": 6.0681471950374544e-05 + }, + { + "step": 209, + "loss": 2.1687794742319966e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.2169660951476544e-07, + "gradient_norm": 6.269071309361607e-05 + }, + { + "step": 210, + "loss": 2.1584114620054606e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1132871097506722e-07, + "gradient_norm": 6.165605009300634e-05 + }, + { + "step": 211, + "loss": 2.157224116672296e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1014122353335551e-07, + "gradient_norm": 5.812026938656345e-05 + }, + { + "step": 212, + "loss": 2.1528494471567683e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.0576651138526358e-07, + "gradient_norm": 4.30907093686983e-05 + }, + { + "step": 213, + "loss": 2.1532630398723995e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.061802604202967e-07, + "gradient_norm": 2.2806114429840818e-05 + }, + { + "step": 214, + "loss": 2.100078063449473e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.9273153384347097e-07, + "gradient_norm": 1.8995955542777665e-05 + }, + { + "step": 215, + "loss": 2.1482289866980864e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.0114606513743638e-07, + "gradient_norm": 3.505940912873484e-05 + }, + { + "step": 216, + "loss": 2.1449818632390816e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 1.9789899852185044e-07, + "gradient_norm": 4.777828144142404e-05 + }, + { + "step": 217, + "loss": 2.1591583845292917e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.1207551981206052e-07, + "gradient_norm": 5.4348496632883325e-05 + }, + { + "step": 218, + "loss": 2.1174548692215467e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1010836803725397e-07, + "gradient_norm": 5.937447349424474e-05 + }, + { + "step": 219, + "loss": 2.130792836396722e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.2344640626670298e-07, + "gradient_norm": 5.881145625608042e-05 + }, + { + "step": 220, + "loss": 2.107928366967826e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0058180894011457e-07, + "gradient_norm": 5.3370240493677557e-05 + }, + { + "step": 221, + "loss": 2.121144461852964e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1379807435550902e-07, + "gradient_norm": 4.812905172002502e-05 + }, + { + "step": 222, + "loss": 2.1524197109101806e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.0533677513867588e-07, + "gradient_norm": 4.501045623328537e-05 + }, + { + "step": 223, + "loss": 2.1642456431436585e-06, + "target_ce": 1.947082864717231e-06, + "replay_kl": 2.171628779024104e-07, + "gradient_norm": 4.4533539039548486e-05 + }, + { + "step": 224, + "loss": 2.1085486423544353e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0120214117014257e-07, + "gradient_norm": 4.122777681914158e-05 + }, + { + "step": 225, + "loss": 2.0977072381356265e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.9036065168620553e-07, + "gradient_norm": 3.0256849640863948e-05 + }, + { + "step": 226, + "loss": 2.098297500197077e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.9095111269962217e-07, + "gradient_norm": 1.5711239029769786e-05 + }, + { + "step": 227, + "loss": 2.0951761143805925e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8782968425057334e-07, + "gradient_norm": 2.4614771973574534e-05 + }, + { + "step": 228, + "loss": 2.109580691467272e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0223421870468883e-07, + "gradient_norm": 4.134081973461434e-05 + }, + { + "step": 229, + "loss": 2.104066425090423e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.967199949604037e-07, + "gradient_norm": 4.8981532017933205e-05 + }, + { + "step": 230, + "loss": 2.112522679453832e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.051762066912488e-07, + "gradient_norm": 4.5173077523941174e-05 + }, + { + "step": 231, + "loss": 2.06936897484411e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 2.0175897930130304e-07, + "gradient_norm": 3.357315654284321e-05 + }, + { + "step": 232, + "loss": 2.1040693809482036e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.9672290818562033e-07, + "gradient_norm": 3.098238448728807e-05 + }, + { + "step": 233, + "loss": 2.0640104594349395e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.964003786270041e-07, + "gradient_norm": 3.752408883883618e-05 + }, + { + "step": 234, + "loss": 2.1012899651395855e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.9394342132272868e-07, + "gradient_norm": 4.262938455212861e-05 + }, + { + "step": 235, + "loss": 2.066333536276943e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.987234412581529e-07, + "gradient_norm": 4.488328704610467e-05 + }, + { + "step": 236, + "loss": 2.1036148609709926e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.962683739975546e-07, + "gradient_norm": 4.4990058086114004e-05 + }, + { + "step": 237, + "loss": 2.09699851438927e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8965197057241312e-07, + "gradient_norm": 4.229638580000028e-05 + }, + { + "step": 238, + "loss": 2.0528207187453518e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.8521063793741632e-07, + "gradient_norm": 3.7114121369086206e-05 + }, + { + "step": 239, + "loss": 2.0919287635479122e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.845823334178931e-07, + "gradient_norm": 3.255064075347036e-05 + }, + { + "step": 240, + "loss": 2.063622787318309e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.960126212452451e-07, + "gradient_norm": 3.343453863635659e-05 + }, + { + "step": 241, + "loss": 2.0907696125505026e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.834230829445005e-07, + "gradient_norm": 4.1400096961297095e-05 + }, + { + "step": 242, + "loss": 2.1119867597008124e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0464021588395553e-07, + "gradient_norm": 5.247774606687017e-05 + }, + { + "step": 243, + "loss": 2.1028756691521266e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.955292390221075e-07, + "gradient_norm": 5.820983278681524e-05 + }, + { + "step": 244, + "loss": 2.0988600226701237e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.91513521485831e-07, + "gradient_norm": 5.762759974459186e-05 + }, + { + "step": 245, + "loss": 2.1030432435509283e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.956966571015073e-07, + "gradient_norm": 6.110576941864565e-05 + }, + { + "step": 246, + "loss": 2.10836128644587e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0101491315926978e-07, + "gradient_norm": 7.079572242219001e-05 + }, + { + "step": 247, + "loss": 2.125807441188954e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.184608547395328e-07, + "gradient_norm": 7.635338261025026e-05 + }, + { + "step": 248, + "loss": 2.062193743768148e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.945837766470504e-07, + "gradient_norm": 6.867387855891138e-05 + }, + { + "step": 249, + "loss": 2.1064874999865424e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.991411266999421e-07, + "gradient_norm": 4.637540769181214e-05 + }, + { + "step": 250, + "loss": 2.042435880866833e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.7482568637205986e-07, + "gradient_norm": 2.2366335542756133e-05 + }, + { + "step": 251, + "loss": 2.060618726318353e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.9300874498640042e-07, + "gradient_norm": 3.3380234526703134e-05 + }, + { + "step": 252, + "loss": 2.1099190234963316e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.025725791554578e-07, + "gradient_norm": 5.900266842218116e-05 + }, + { + "step": 253, + "loss": 2.1131686480657663e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.058220616163453e-07, + "gradient_norm": 7.800264575053006e-05 + }, + { + "step": 254, + "loss": 2.1301821107044816e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.228355242550606e-07, + "gradient_norm": 8.626362978247926e-05 + }, + { + "step": 255, + "loss": 2.0695686089311494e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 2.019585281232139e-07, + "gradient_norm": 8.902920671971515e-05 + }, + { + "step": 256, + "loss": 2.117725898642675e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.103793974583823e-07, + "gradient_norm": 8.993455412564799e-05 + }, + { + "step": 257, + "loss": 2.1236342035990674e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.162876171496464e-07, + "gradient_norm": 8.984962187241763e-05 + }, + { + "step": 258, + "loss": 2.1292783003445948e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.219318702145756e-07, + "gradient_norm": 8.750372217036784e-05 + }, + { + "step": 259, + "loss": 2.1086007109261118e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0125428079609264e-07, + "gradient_norm": 8.226932550314814e-05 + }, + { + "step": 260, + "loss": 2.065633225356578e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.9802311612693302e-07, + "gradient_norm": 7.017519237706438e-05 + }, + { + "step": 261, + "loss": 2.1033938537584618e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.960474946827162e-07, + "gradient_norm": 5.534452066058293e-05 + }, + { + "step": 262, + "loss": 2.0900483832519967e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8270196733283228e-07, + "gradient_norm": 5.0166774599347264e-05 + }, + { + "step": 263, + "loss": 2.1057192043372197e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.9837273157463642e-07, + "gradient_norm": 5.391817103372887e-05 + }, + { + "step": 264, + "loss": 2.0459756342461333e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.783655392273431e-07, + "gradient_norm": 6.768478488083929e-05 + }, + { + "step": 265, + "loss": 2.125784021700383e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1843759157036402e-07, + "gradient_norm": 7.774198456900194e-05 + }, + { + "step": 266, + "loss": 2.1076034499856178e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0025692037961562e-07, + "gradient_norm": 7.855746662244201e-05 + }, + { + "step": 267, + "loss": 2.0884467630821746e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.811002903195913e-07, + "gradient_norm": 6.364787259371951e-05 + }, + { + "step": 268, + "loss": 2.0397060325194616e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.7209583802468842e-07, + "gradient_norm": 3.656812259578146e-05 + }, + { + "step": 269, + "loss": 2.0459501683944836e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.7834017285167647e-07, + "gradient_norm": 1.2727368812193163e-05 + }, + { + "step": 270, + "loss": 2.086677568513551e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7933103890754865e-07, + "gradient_norm": 3.400827699806541e-05 + }, + { + "step": 271, + "loss": 2.0920442693750374e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8469791029929183e-07, + "gradient_norm": 5.37786036147736e-05 + }, + { + "step": 272, + "loss": 2.09387189897825e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8652553990250453e-07, + "gradient_norm": 5.538857658393681e-05 + }, + { + "step": 273, + "loss": 2.0937150111421943e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8636858101217513e-07, + "gradient_norm": 4.514781176112592e-05 + }, + { + "step": 274, + "loss": 2.0806282918783836e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7328181911580032e-07, + "gradient_norm": 3.195138924638741e-05 + }, + { + "step": 275, + "loss": 2.0235938791302033e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.5598374147884897e-07, + "gradient_norm": 3.0484094168059528e-05 + }, + { + "step": 276, + "loss": 2.051533328994992e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.839232197653473e-07, + "gradient_norm": 3.645665856311098e-05 + }, + { + "step": 277, + "loss": 2.0374754967633635e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.698653875337186e-07, + "gradient_norm": 3.5935525374952704e-05 + }, + { + "step": 278, + "loss": 2.072670895358897e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6532442259631352e-07, + "gradient_norm": 3.060307790292427e-05 + }, + { + "step": 279, + "loss": 2.069810534521821e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6246406175923767e-07, + "gradient_norm": 2.2547634216607548e-05 + }, + { + "step": 280, + "loss": 2.082318815155304e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7497234239272075e-07, + "gradient_norm": 1.6257532479357906e-05 + }, + { + "step": 281, + "loss": 2.073101313726511e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6575484096392756e-07, + "gradient_norm": 1.8858290786738507e-05 + }, + { + "step": 282, + "loss": 2.079329078696901e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7198269119944598e-07, + "gradient_norm": 2.459912320773583e-05 + }, + { + "step": 283, + "loss": 2.084191237372579e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7684473618828633e-07, + "gradient_norm": 2.51459550781874e-05 + }, + { + "step": 284, + "loss": 2.080220156130963e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7287361231410614e-07, + "gradient_norm": 2.315128040208947e-05 + }, + { + "step": 285, + "loss": 2.0220386431901716e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.544285339605267e-07, + "gradient_norm": 2.0808109184144996e-05 + }, + { + "step": 286, + "loss": 2.0723546185763553e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.65008145813772e-07, + "gradient_norm": 2.427117942715995e-05 + }, + { + "step": 287, + "loss": 2.039236960627022e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.7162687981908675e-07, + "gradient_norm": 2.9814880690537393e-05 + }, + { + "step": 288, + "loss": 2.0856130049651256e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7826661746767059e-07, + "gradient_norm": 3.36507182510104e-05 + }, + { + "step": 289, + "loss": 2.0403358576004393e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.7272570573823032e-07, + "gradient_norm": 4.3984218791592866e-05 + }, + { + "step": 290, + "loss": 2.0423217392817605e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.747116868955345e-07, + "gradient_norm": 5.7307028328068554e-05 + }, + { + "step": 291, + "loss": 2.0895013221888803e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.821549346914253e-07, + "gradient_norm": 6.814088555984199e-05 + }, + { + "step": 292, + "loss": 2.0941270122420974e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.867806247446424e-07, + "gradient_norm": 7.843515777494758e-05 + }, + { + "step": 293, + "loss": 2.1201258277869783e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1277928397012147e-07, + "gradient_norm": 8.94013064680621e-05 + }, + { + "step": 294, + "loss": 2.118326619893196e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1098014713061275e-07, + "gradient_norm": 9.929945372277871e-05 + }, + { + "step": 295, + "loss": 2.1080184069433017e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0067193418071838e-07, + "gradient_norm": 0.00010450707486597821 + }, + { + "step": 296, + "loss": 2.1252844817354344e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1793789528601337e-07, + "gradient_norm": 0.000106916377262678 + }, + { + "step": 297, + "loss": 2.1225478121777996e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.1520122572837863e-07, + "gradient_norm": 0.00010886128438869491 + }, + { + "step": 298, + "loss": 2.108295575453667e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0094907426937425e-07, + "gradient_norm": 0.00010843717609532177 + }, + { + "step": 299, + "loss": 2.1116979951329995e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0435155079212564e-07, + "gradient_norm": 9.504560148343444e-05 + }, + { + "step": 300, + "loss": 2.055931645372766e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.8832156456483062e-07, + "gradient_norm": 6.848477642051876e-05 + }, + { + "step": 301, + "loss": 2.028107473961427e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.6049730788836314e-07, + "gradient_norm": 3.907032805727795e-05 + }, + { + "step": 302, + "loss": 2.041932020802051e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.743220394700984e-07, + "gradient_norm": 4.8240286560030654e-05 + }, + { + "step": 303, + "loss": 2.052519221251714e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.8490908360035974e-07, + "gradient_norm": 7.83514988142997e-05 + }, + { + "step": 304, + "loss": 2.1084149466332747e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 2.0106838860556309e-07, + "gradient_norm": 9.808347385842353e-05 + }, + { + "step": 305, + "loss": 2.0947466055076802e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8740007590167806e-07, + "gradient_norm": 9.793497156351805e-05 + }, + { + "step": 306, + "loss": 2.095525132972398e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.881786033663957e-07, + "gradient_norm": 7.433911378029734e-05 + }, + { + "step": 307, + "loss": 2.0673680865002098e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6002161373762647e-07, + "gradient_norm": 3.931242463295348e-05 + }, + { + "step": 308, + "loss": 2.069059064524481e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6171267702702607e-07, + "gradient_norm": 2.6651148800738156e-05 + }, + { + "step": 309, + "loss": 2.081673983411747e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7432761012514675e-07, + "gradient_norm": 5.0243965233676136e-05 + }, + { + "step": 310, + "loss": 2.09484142033034e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8749487651348318e-07, + "gradient_norm": 6.785575533285737e-05 + }, + { + "step": 311, + "loss": 2.0837194369960343e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7637289317917748e-07, + "gradient_norm": 7.023879879852757e-05 + }, + { + "step": 312, + "loss": 2.073432369797956e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6608595387879177e-07, + "gradient_norm": 6.52335729682818e-05 + }, + { + "step": 313, + "loss": 2.07224161385966e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.64895226362205e-07, + "gradient_norm": 5.651881656376645e-05 + }, + { + "step": 314, + "loss": 2.0248646706022555e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.5725461821602948e-07, + "gradient_norm": 4.361310857348144e-05 + }, + { + "step": 315, + "loss": 2.030155883403495e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.6254574575214065e-07, + "gradient_norm": 3.4847715141950175e-05 + }, + { + "step": 316, + "loss": 2.0436586964933667e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.7604864410714072e-07, + "gradient_norm": 4.3960702896583825e-05 + }, + { + "step": 317, + "loss": 2.0299894458730705e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.6237935085428035e-07, + "gradient_norm": 6.165184458950534e-05 + }, + { + "step": 318, + "loss": 2.082409537251806e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.750630644892226e-07, + "gradient_norm": 7.375256245722994e-05 + }, + { + "step": 319, + "loss": 2.088039764203131e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.806932914405479e-07, + "gradient_norm": 7.222635031212121e-05 + }, + { + "step": 320, + "loss": 2.0804584437428275e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7311197098024422e-07, + "gradient_norm": 5.670579048455693e-05 + }, + { + "step": 321, + "loss": 2.066025217573042e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5867883007558703e-07, + "gradient_norm": 3.98084448534064e-05 + }, + { + "step": 322, + "loss": 2.0196962395857554e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.520862014103841e-07, + "gradient_norm": 4.399699901114218e-05 + }, + { + "step": 323, + "loss": 2.0746570044138934e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6731041796447244e-07, + "gradient_norm": 6.0107133322162554e-05 + }, + { + "step": 324, + "loss": 2.0276318082323996e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.600216421593359e-07, + "gradient_norm": 6.814138760091737e-05 + }, + { + "step": 325, + "loss": 2.0783854779438116e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7103904781379242e-07, + "gradient_norm": 6.268478318816051e-05 + }, + { + "step": 326, + "loss": 2.054285459962557e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4693897298911907e-07, + "gradient_norm": 4.9163714720634744e-05 + }, + { + "step": 327, + "loss": 2.058633526758058e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5128711083889357e-07, + "gradient_norm": 3.424020542297512e-05 + }, + { + "step": 328, + "loss": 2.067295326924068e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5994876889635634e-07, + "gradient_norm": 3.495158671285026e-05 + }, + { + "step": 329, + "loss": 2.0664056137320586e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.590590841260564e-07, + "gradient_norm": 4.7743651521159336e-05 + }, + { + "step": 330, + "loss": 2.0780903469130863e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7074397362648597e-07, + "gradient_norm": 5.281455014483072e-05 + }, + { + "step": 331, + "loss": 2.0263719306967687e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.5876189252139739e-07, + "gradient_norm": 5.1873015763703734e-05 + }, + { + "step": 332, + "loss": 2.0645466065616347e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5720009116648725e-07, + "gradient_norm": 4.707563857664354e-05 + }, + { + "step": 333, + "loss": 2.010662228713045e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4305217632681888e-07, + "gradient_norm": 4.0728176827542484e-05 + }, + { + "step": 334, + "loss": 2.0684956325567327e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6114915979414945e-07, + "gradient_norm": 3.616818867158145e-05 + }, + { + "step": 335, + "loss": 2.050037437584251e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4269087955653958e-07, + "gradient_norm": 3.2623014703858644e-05 + }, + { + "step": 336, + "loss": 2.0225988919264637e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.5498874006425467e-07, + "gradient_norm": 2.846446841431316e-05 + }, + { + "step": 337, + "loss": 2.0551376564981183e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4779124057895388e-07, + "gradient_norm": 2.9874205210944638e-05 + }, + { + "step": 338, + "loss": 2.0140996639383957e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4648951207618666e-07, + "gradient_norm": 3.4664033591980115e-05 + }, + { + "step": 339, + "loss": 2.0158831830485724e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.482731448732011e-07, + "gradient_norm": 3.294826819910668e-05 + }, + { + "step": 340, + "loss": 2.003825102292467e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3621502148453146e-07, + "gradient_norm": 2.6432060622028075e-05 + }, + { + "step": 341, + "loss": 2.0504869553406024e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4314045415630972e-07, + "gradient_norm": 2.5780987925827503e-05 + }, + { + "step": 342, + "loss": 2.0464640329009853e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3911744645156432e-07, + "gradient_norm": 3.213284435332753e-05 + }, + { + "step": 343, + "loss": 2.0558015876304125e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4845521434381226e-07, + "gradient_norm": 3.486264176899567e-05 + }, + { + "step": 344, + "loss": 2.051392584689893e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4404602666218125e-07, + "gradient_norm": 3.071340688620694e-05 + }, + { + "step": 345, + "loss": 2.053295247606002e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.459488743194015e-07, + "gradient_norm": 2.5086070309043862e-05 + }, + { + "step": 346, + "loss": 2.049357590294676e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4201114595380204e-07, + "gradient_norm": 2.384336039540358e-05 + }, + { + "step": 347, + "loss": 2.049339173026965e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4199275710780057e-07, + "gradient_norm": 2.6711973987403326e-05 + }, + { + "step": 348, + "loss": 2.0476475128816674e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4030113959506707e-07, + "gradient_norm": 2.834831684594974e-05 + }, + { + "step": 349, + "loss": 2.0497759578574914e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4242954193832702e-07, + "gradient_norm": 2.503746873117052e-05 + }, + { + "step": 350, + "loss": 2.022931994360988e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.55321842498779e-07, + "gradient_norm": 1.9338684069225565e-05 + }, + { + "step": 351, + "loss": 2.016034386542742e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4842436257822555e-07, + "gradient_norm": 1.8056440239888616e-05 + }, + { + "step": 352, + "loss": 2.0064519503648626e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3884196903291013e-07, + "gradient_norm": 1.7752754501998425e-05 + }, + { + "step": 353, + "loss": 2.0474196844588732e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4007331117227295e-07, + "gradient_norm": 1.9937178876716644e-05 + }, + { + "step": 354, + "loss": 2.052111312877969e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4476488274794974e-07, + "gradient_norm": 2.4791532268864103e-05 + }, + { + "step": 355, + "loss": 2.0539573597488925e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4661091540801863e-07, + "gradient_norm": 2.9619042834383436e-05 + }, + { + "step": 356, + "loss": 2.0437862531252904e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3643970930843352e-07, + "gradient_norm": 3.255683259340003e-05 + }, + { + "step": 357, + "loss": 2.006075192184653e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.384652250635554e-07, + "gradient_norm": 3.18070815410465e-05 + }, + { + "step": 358, + "loss": 1.9944520772696706e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.268419822508804e-07, + "gradient_norm": 2.6804525987245142e-05 + }, + { + "step": 359, + "loss": 2.044990651484113e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3764420714323933e-07, + "gradient_norm": 2.1662914150510915e-05 + }, + { + "step": 360, + "loss": 2.04655361812911e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3920723063165497e-07, + "gradient_norm": 1.8679475033422932e-05 + }, + { + "step": 361, + "loss": 2.045502924374887e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3815650845572236e-07, + "gradient_norm": 2.392380338278599e-05 + }, + { + "step": 362, + "loss": 2.057403889921261e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5005748821295128e-07, + "gradient_norm": 3.5720207961276174e-05 + }, + { + "step": 363, + "loss": 2.0573661458911374e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5001975839368242e-07, + "gradient_norm": 4.2848550947383046e-05 + }, + { + "step": 364, + "loss": 2.0458555809454992e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3850922186975367e-07, + "gradient_norm": 4.1610725020291284e-05 + }, + { + "step": 365, + "loss": 2.0102418147871504e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.426317197683602e-07, + "gradient_norm": 3.313739944132976e-05 + }, + { + "step": 366, + "loss": 2.057140818578773e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4979437423789932e-07, + "gradient_norm": 2.2705498849973083e-05 + }, + { + "step": 367, + "loss": 2.0461100120883202e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3876346827146335e-07, + "gradient_norm": 1.7239255612366833e-05 + }, + { + "step": 368, + "loss": 2.04555067284673e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3820418587329186e-07, + "gradient_norm": 2.4510549337719567e-05 + }, + { + "step": 369, + "loss": 2.0112986476306105e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4368849576840148e-07, + "gradient_norm": 3.5877568734576926e-05 + }, + { + "step": 370, + "loss": 2.0445213522179984e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3717485103370564e-07, + "gradient_norm": 4.038773477077484e-05 + }, + { + "step": 371, + "loss": 1.993477553696721e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2586752973220428e-07, + "gradient_norm": 3.789141555898823e-05 + }, + { + "step": 372, + "loss": 2.0013646917504957e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.337545540991414e-07, + "gradient_norm": 3.61027596227359e-05 + }, + { + "step": 373, + "loss": 1.9987262476206524e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3111616681271698e-07, + "gradient_norm": 4.0569648263044655e-05 + }, + { + "step": 374, + "loss": 2.0552690784825245e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4792257729823177e-07, + "gradient_norm": 4.840971450903453e-05 + }, + { + "step": 375, + "loss": 2.0627073809009744e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5536095077095524e-07, + "gradient_norm": 5.459165549837053e-05 + }, + { + "step": 376, + "loss": 2.022833996306872e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.552238728663724e-07, + "gradient_norm": 5.979636262054555e-05 + }, + { + "step": 377, + "loss": 2.0612988009816036e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.539522713756014e-07, + "gradient_norm": 6.845423195045441e-05 + }, + { + "step": 378, + "loss": 2.065230546577368e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5788396012794692e-07, + "gradient_norm": 7.899363845353946e-05 + }, + { + "step": 379, + "loss": 2.081149659716175e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7380311589931807e-07, + "gradient_norm": 9.055658301804215e-05 + }, + { + "step": 380, + "loss": 2.0885586309304927e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8121221501132823e-07, + "gradient_norm": 0.0001002201097435318 + }, + { + "step": 381, + "loss": 2.0917996153002605e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.8445311411596776e-07, + "gradient_norm": 0.00010085759276989847 + }, + { + "step": 382, + "loss": 2.081420007016277e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.7407364794053137e-07, + "gradient_norm": 9.374988439958543e-05 + }, + { + "step": 383, + "loss": 2.0703726022475166e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6302617211749748e-07, + "gradient_norm": 7.872636342654005e-05 + }, + { + "step": 384, + "loss": 2.0046129520778777e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3700285705908755e-07, + "gradient_norm": 5.7341101637575775e-05 + }, + { + "step": 385, + "loss": 2.052721811196534e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.453754521207884e-07, + "gradient_norm": 3.8980280805844814e-05 + }, + { + "step": 386, + "loss": 2.0493778265517903e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4203132536749763e-07, + "gradient_norm": 5.20050925842952e-05 + }, + { + "step": 387, + "loss": 2.0212892195559107e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.5367916716968466e-07, + "gradient_norm": 7.909283158369362e-05 + }, + { + "step": 388, + "loss": 2.0464026420086157e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.787925612006802e-07, + "gradient_norm": 9.702886745799333e-05 + }, + { + "step": 389, + "loss": 2.075281599900336e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6793515555946215e-07, + "gradient_norm": 9.825692541198805e-05 + }, + { + "step": 390, + "loss": 2.030021050813957e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.6241088474089338e-07, + "gradient_norm": 7.681424176553264e-05 + }, + { + "step": 391, + "loss": 1.9958822576882085e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2827209161514475e-07, + "gradient_norm": 4.4006836105836555e-05 + }, + { + "step": 392, + "loss": 2.0292955014156178e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2194891496619675e-07, + "gradient_norm": 2.18022869376e-05 + }, + { + "step": 393, + "loss": 2.0458551261981484e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3850865343556507e-07, + "gradient_norm": 3.2928746804827824e-05 + }, + { + "step": 394, + "loss": 2.0475911242101574e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.40244708290993e-07, + "gradient_norm": 5.166132905287668e-05 + }, + { + "step": 395, + "loss": 2.0556046820274787e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4825825189745956e-07, + "gradient_norm": 6.305350689217448e-05 + }, + { + "step": 396, + "loss": 2.055187223959365e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4784075119678164e-07, + "gradient_norm": 6.64308900013566e-05 + }, + { + "step": 397, + "loss": 2.0592278815456666e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5188132351795502e-07, + "gradient_norm": 6.314387428574264e-05 + }, + { + "step": 398, + "loss": 2.0498587218753528e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4251222069106007e-07, + "gradient_norm": 5.8991452533518896e-05 + }, + { + "step": 399, + "loss": 2.0670677258749492e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5972122469065653e-07, + "gradient_norm": 6.03565713390708e-05 + }, + { + "step": 400, + "loss": 2.05755463866808e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5020813748378714e-07, + "gradient_norm": 6.428681808756664e-05 + }, + { + "step": 401, + "loss": 2.0661491362261586e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.588027487287036e-07, + "gradient_norm": 6.488934741355479e-05 + }, + { + "step": 402, + "loss": 2.0553302420012187e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.47983740816926e-07, + "gradient_norm": 5.9587295254459605e-05 + }, + { + "step": 403, + "loss": 1.9982383037131513e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3062825132692524e-07, + "gradient_norm": 5.0922892114613205e-05 + }, + { + "step": 404, + "loss": 2.013258608712931e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4564852790499572e-07, + "gradient_norm": 4.4424050429370254e-05 + }, + { + "step": 405, + "loss": 2.0074364783795318e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3982645441501518e-07, + "gradient_norm": 4.6004799514776096e-05 + }, + { + "step": 406, + "loss": 2.0126817616983317e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.450716382578321e-07, + "gradient_norm": 5.4527827160200104e-05 + }, + { + "step": 407, + "loss": 2.0061122540937504e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3850220170752436e-07, + "gradient_norm": 6.249826401472092e-05 + }, + { + "step": 408, + "loss": 2.0673894596257014e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6004298686311813e-07, + "gradient_norm": 6.720016244798899e-05 + }, + { + "step": 409, + "loss": 2.0676557141996454e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.6030915617193386e-07, + "gradient_norm": 6.782454875065014e-05 + }, + { + "step": 410, + "loss": 2.0509753539954545e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4362885281116178e-07, + "gradient_norm": 6.195259629748762e-05 + }, + { + "step": 411, + "loss": 2.0409752323757857e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3362868855892884e-07, + "gradient_norm": 5.412186510511674e-05 + }, + { + "step": 412, + "loss": 2.0339373349997913e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.265908906589175e-07, + "gradient_norm": 5.0200284022139385e-05 + }, + { + "step": 413, + "loss": 2.0393176782818045e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3197130499520426e-07, + "gradient_norm": 4.167042061453685e-05 + }, + { + "step": 414, + "loss": 2.035450052062515e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2810346561309416e-07, + "gradient_norm": 2.8504357032943517e-05 + }, + { + "step": 415, + "loss": 2.032263182627503e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2491675249748369e-07, + "gradient_norm": 3.1560623028781265e-05 + }, + { + "step": 416, + "loss": 2.0418183339643292e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3447194646687421e-07, + "gradient_norm": 4.553364487946965e-05 + }, + { + "step": 417, + "loss": 2.0077968656551093e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.401867564254644e-07, + "gradient_norm": 5.7248984376201406e-05 + }, + { + "step": 418, + "loss": 2.060361339317751e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.5301496603115083e-07, + "gradient_norm": 6.56214397167787e-05 + }, + { + "step": 419, + "loss": 2.0184015738777816e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.5079146464813675e-07, + "gradient_norm": 7.01376047800295e-05 + }, + { + "step": 420, + "loss": 2.0411387140484294e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3379228391841025e-07, + "gradient_norm": 6.873768143123016e-05 + }, + { + "step": 421, + "loss": 2.015339759964263e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4772979284316534e-07, + "gradient_norm": 6.541598122566938e-05 + }, + { + "step": 422, + "loss": 2.0101440441067098e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4253389224450075e-07, + "gradient_norm": 6.218850467121229e-05 + }, + { + "step": 423, + "loss": 2.049529484793311e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.421830120307277e-07, + "gradient_norm": 5.6170469179051e-05 + }, + { + "step": 424, + "loss": 1.9959848032158334e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2837470819704322e-07, + "gradient_norm": 4.779501250595786e-05 + }, + { + "step": 425, + "loss": 2.0302782104408834e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2293182294342841e-07, + "gradient_norm": 4.523366442299448e-05 + }, + { + "step": 426, + "loss": 2.0391930775076617e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3184651947995008e-07, + "gradient_norm": 5.330755448085256e-05 + }, + { + "step": 427, + "loss": 2.054402330031735e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4705582884744217e-07, + "gradient_norm": 6.16224788245745e-05 + }, + { + "step": 428, + "loss": 2.0454124296520604e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.380659568894771e-07, + "gradient_norm": 6.373822543537244e-05 + }, + { + "step": 429, + "loss": 2.044927896349691e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3758148043052643e-07, + "gradient_norm": 5.707975651603192e-05 + }, + { + "step": 430, + "loss": 1.995441834878875e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.278317540709395e-07, + "gradient_norm": 4.588231968227774e-05 + }, + { + "step": 431, + "loss": 2.029248889812152e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.219024170495686e-07, + "gradient_norm": 4.303179957787506e-05 + }, + { + "step": 432, + "loss": 2.037319291048334e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2997287512916955e-07, + "gradient_norm": 4.510994767770171e-05 + }, + { + "step": 433, + "loss": 2.0313489130785456e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2400238347254344e-07, + "gradient_norm": 4.630744660971686e-05 + }, + { + "step": 434, + "loss": 2.037890226347372e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3054372516307922e-07, + "gradient_norm": 4.6556047891499475e-05 + }, + { + "step": 435, + "loss": 2.039663741015829e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3231726825324586e-07, + "gradient_norm": 3.9737762563163415e-05 + }, + { + "step": 436, + "loss": 1.9963458726124372e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.287357065393735e-07, + "gradient_norm": 3.151038254145533e-05 + }, + { + "step": 437, + "loss": 1.97778217625455e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1017202439234097e-07, + "gradient_norm": 3.691638266900554e-05 + }, + { + "step": 438, + "loss": 2.0301658878452145e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2281937245006702e-07, + "gradient_norm": 4.028880357509479e-05 + }, + { + "step": 439, + "loss": 1.9732028704311233e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.0559283936117936e-07, + "gradient_norm": 3.4830154618248343e-05 + }, + { + "step": 440, + "loss": 2.033862756434246e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2651622682824382e-07, + "gradient_norm": 2.7948173737968318e-05 + }, + { + "step": 441, + "loss": 1.981061814149143e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1345173334120773e-07, + "gradient_norm": 2.1876478058402427e-05 + }, + { + "step": 442, + "loss": 2.0239058358129114e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1655930620690924e-07, + "gradient_norm": 2.515780033718329e-05 + }, + { + "step": 443, + "loss": 2.0311699699959718e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2382346881167905e-07, + "gradient_norm": 3.573616413632408e-05 + }, + { + "step": 444, + "loss": 1.9919116311939433e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.243015788077173e-07, + "gradient_norm": 4.3418051063781604e-05 + }, + { + "step": 445, + "loss": 2.024224158958532e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1687779988278635e-07, + "gradient_norm": 4.537579297902994e-05 + }, + { + "step": 446, + "loss": 2.031401891144924e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2405537574977643e-07, + "gradient_norm": 4.24053032475058e-05 + }, + { + "step": 447, + "loss": 2.029673169090529e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2232678159307397e-07, + "gradient_norm": 3.876843402395025e-05 + }, + { + "step": 448, + "loss": 2.0288239284127485e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2147742722845578e-07, + "gradient_norm": 3.324205317767337e-05 + }, + { + "step": 449, + "loss": 1.9791750673903152e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1156509316379015e-07, + "gradient_norm": 2.7082143787993118e-05 + }, + { + "step": 450, + "loss": 1.983657966775354e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.160479285999827e-07, + "gradient_norm": 3.147186725982465e-05 + }, + { + "step": 451, + "loss": 2.030320047197165e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2297357443458168e-07, + "gradient_norm": 4.430302942637354e-05 + }, + { + "step": 452, + "loss": 1.993234036490321e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2562399831494986e-07, + "gradient_norm": 5.711262201657519e-05 + }, + { + "step": 453, + "loss": 2.0425904949661344e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3524406483611529e-07, + "gradient_norm": 6.591490091523156e-05 + }, + { + "step": 454, + "loss": 1.997209210458095e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2959905859588616e-07, + "gradient_norm": 6.872135418234393e-05 + }, + { + "step": 455, + "loss": 2.0477341422520112e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4038755580259021e-07, + "gradient_norm": 6.876433326397091e-05 + }, + { + "step": 456, + "loss": 2.042661662926548e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3531524700738373e-07, + "gradient_norm": 7.091017323546112e-05 + }, + { + "step": 457, + "loss": 2.047875568678137e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4052913854811777e-07, + "gradient_norm": 7.320324948523194e-05 + }, + { + "step": 458, + "loss": 2.044756683972082e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3741015436607995e-07, + "gradient_norm": 6.987165397731587e-05 + }, + { + "step": 459, + "loss": 2.0304530607972993e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2310655961300654e-07, + "gradient_norm": 5.72113276575692e-05 + }, + { + "step": 460, + "loss": 2.034861608990468e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.275150367519018e-07, + "gradient_norm": 4.1815696022240445e-05 + }, + { + "step": 461, + "loss": 1.989918018807657e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2230796642143105e-07, + "gradient_norm": 3.4171753213740885e-05 + }, + { + "step": 462, + "loss": 1.985498101930716e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1788798559564384e-07, + "gradient_norm": 3.967895463574678e-05 + }, + { + "step": 463, + "loss": 1.985163180506788e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1755319917483575e-07, + "gradient_norm": 4.891131175099872e-05 + }, + { + "step": 464, + "loss": 2.02864771381428e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.213013405276797e-07, + "gradient_norm": 5.331957800081e-05 + }, + { + "step": 465, + "loss": 1.9909714410459856e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2336143129232369e-07, + "gradient_norm": 5.231703107710928e-05 + }, + { + "step": 466, + "loss": 2.0297441096772673e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.223976653363934e-07, + "gradient_norm": 4.785051351063885e-05 + }, + { + "step": 467, + "loss": 2.0208381101838313e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.134916232103933e-07, + "gradient_norm": 4.266773248673417e-05 + }, + { + "step": 468, + "loss": 2.0197410321998177e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.12394630491508e-07, + "gradient_norm": 3.577890311134979e-05 + }, + { + "step": 469, + "loss": 2.0133645648456877e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.0601799971254877e-07, + "gradient_norm": 2.9876224289182574e-05 + }, + { + "step": 470, + "loss": 1.9775434338953346e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.099333459819718e-07, + "gradient_norm": 3.489233131404035e-05 + }, + { + "step": 471, + "loss": 2.0276934264984448e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.203469821575709e-07, + "gradient_norm": 4.592629920807667e-05 + }, + { + "step": 472, + "loss": 2.0369159301480977e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.295693721203861e-07, + "gradient_norm": 5.6349726946791634e-05 + }, + { + "step": 473, + "loss": 2.0305428733990993e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2319641484737076e-07, + "gradient_norm": 6.223047967068851e-05 + }, + { + "step": 474, + "loss": 1.9930146208935184e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2540458271814714e-07, + "gradient_norm": 6.199107156135142e-05 + }, + { + "step": 475, + "loss": 2.03230274564703e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2495637236042967e-07, + "gradient_norm": 5.467566370498389e-05 + }, + { + "step": 476, + "loss": 2.034455746979802e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2710937369320163e-07, + "gradient_norm": 4.289589560357854e-05 + }, + { + "step": 477, + "loss": 2.015325890170061e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.079794742508966e-07, + "gradient_norm": 2.836099884007126e-05 + }, + { + "step": 478, + "loss": 1.990039663724019e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2242955449437432e-07, + "gradient_norm": 1.9871451513608918e-05 + }, + { + "step": 479, + "loss": 2.0175921235932037e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.102457076740393e-07, + "gradient_norm": 3.183336229994893e-05 + }, + { + "step": 480, + "loss": 2.0256552488717716e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1830885426888926e-07, + "gradient_norm": 5.363483069231734e-05 + }, + { + "step": 481, + "loss": 2.0326451704022475e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2529876869393775e-07, + "gradient_norm": 7.098331116139889e-05 + }, + { + "step": 482, + "loss": 2.0467282411118504e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3938171150584822e-07, + "gradient_norm": 7.778855797369033e-05 + }, + { + "step": 483, + "loss": 1.998641437239712e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3103147011861438e-07, + "gradient_norm": 7.865529914852232e-05 + }, + { + "step": 484, + "loss": 2.009673153224867e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4206310083864082e-07, + "gradient_norm": 8.007304859347641e-05 + }, + { + "step": 485, + "loss": 2.0506947748799575e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.4334830211737426e-07, + "gradient_norm": 8.31257930258289e-05 + }, + { + "step": 486, + "loss": 2.0403128928592196e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.329663490423627e-07, + "gradient_norm": 8.338845509570092e-05 + }, + { + "step": 487, + "loss": 2.053470780083444e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.461244210076984e-07, + "gradient_norm": 8.210265514208004e-05 + }, + { + "step": 488, + "loss": 2.0080810827494133e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.4047110141746089e-07, + "gradient_norm": 7.890901906648651e-05 + }, + { + "step": 489, + "loss": 2.0324637262092438e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2511715397067746e-07, + "gradient_norm": 7.282508886419237e-05 + }, + { + "step": 490, + "loss": 1.9981071091024205e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.3049694302935677e-07, + "gradient_norm": 6.800978735554963e-05 + }, + { + "step": 491, + "loss": 2.045596829702845e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.382503995728257e-07, + "gradient_norm": 6.79695513099432e-05 + }, + { + "step": 492, + "loss": 2.028902599704452e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.2155618378528743e-07, + "gradient_norm": 6.948142254259437e-05 + }, + { + "step": 493, + "loss": 2.0471393327170517e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3979288837617787e-07, + "gradient_norm": 6.979831960052252e-05 + }, + { + "step": 494, + "loss": 2.0265263174223946e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.191797522892557e-07, + "gradient_norm": 7.192335033323616e-05 + }, + { + "step": 495, + "loss": 2.0127897641941672e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.451796265428129e-07, + "gradient_norm": 7.275553070940077e-05 + }, + { + "step": 496, + "loss": 1.975517761820811e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.0790762416945654e-07, + "gradient_norm": 6.894639227539301e-05 + }, + { + "step": 497, + "loss": 2.024402192546404e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1705576952181218e-07, + "gradient_norm": 5.8187288232147694e-05 + }, + { + "step": 498, + "loss": 2.0031109215778997e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 9.576449144788057e-08, + "gradient_norm": 4.280294888303615e-05 + }, + { + "step": 499, + "loss": 2.0199011032673297e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1255461629389174e-07, + "gradient_norm": 3.255838601035066e-05 + }, + { + "step": 500, + "loss": 2.017193764913827e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.0984729215124389e-07, + "gradient_norm": 3.542631748132408e-05 + }, + { + "step": 501, + "loss": 1.9840076674881857e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1639761510195967e-07, + "gradient_norm": 3.9370574086206034e-05 + }, + { + "step": 502, + "loss": 2.0315376332291635e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.241910894123066e-07, + "gradient_norm": 4.216146407998167e-05 + }, + { + "step": 503, + "loss": 1.9699386939464603e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.0232861313852482e-07, + "gradient_norm": 5.260540638118982e-05 + }, + { + "step": 504, + "loss": 2.0393217710079625e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3197524140196037e-07, + "gradient_norm": 6.428663618862629e-05 + }, + { + "step": 505, + "loss": 1.991645149246324e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.2403498317326012e-07, + "gradient_norm": 7.177154475357383e-05 + }, + { + "step": 506, + "loss": 2.0414372556842864e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.3409088239768607e-07, + "gradient_norm": 7.043950608931482e-05 + }, + { + "step": 507, + "loss": 1.986001734621823e-06, + "target_ce": 1.8676100808079354e-06, + "replay_kl": 1.1839156144333174e-07, + "gradient_norm": 6.051841774024069e-05 + }, + { + "step": 508, + "loss": 2.021852196776308e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1450578085714369e-07, + "gradient_norm": 4.673797229770571e-05 + }, + { + "step": 509, + "loss": 2.0131701603531837e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.058236307471816e-07, + "gradient_norm": 3.9913076761877164e-05 + }, + { + "step": 510, + "loss": 2.0055658751516603e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 9.821941659993172e-08, + "gradient_norm": 3.622094664024189e-05 + }, + { + "step": 511, + "loss": 2.0203062831569696e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1295988855408723e-07, + "gradient_norm": 2.943177241832018e-05 + }, + { + "step": 512, + "loss": 2.023528168138e-06, + "target_ce": 1.9073464727625833e-06, + "replay_kl": 1.1618177353511783e-07, + "gradient_norm": 2.9728587833233178e-05 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/run.json new file mode 100644 index 0000000000000000000000000000000000000000..fa28b47359e5a9485be3d08da162dc6b8711faa4 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-00/lr0.0001-sham/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_familiar-00", + "arm": "sham", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "6d10bc0e25523199ed5622c75d811e5391b825dbace85d051d1a1511a42d20e9", + "new_fact_sha256": "e4fbed402ed2e17af22ef6ccaf172185e17bef2434ec33b3aa0e88dcb99fa5d2", + "target_batch_sha256": "f15fbfca9115a42c82c4ad319c31cfe3ebf4d363334ad87416377a2a1dba3733", + "replay_batch_sha256": "f36cb130fad0c9d44b55bbd687d6c10dee8309fb57ae66ce31064b0b705a25d1", + "parent_reference_sha256": "b106b4714abc9b95286d0861b9aefdcb8b1ed5a57ca325b23523a91c6df90ddf", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..ae1a4201d85c392ab28d8cdc56eccaae4f7e0fcb --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_familiar-01", + "role": "second", + "stratum": "familiar", + "lr": 0.0001, + "arm": "edit", + "path": "second_familiar-01/lr0.0001-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.528921127319336 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.3232143828645349e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9373368146214099, + "accuracy": 0.9373368146214099, + "answer_nll": 0.2400473803281784 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.07242186367511749, + "changed_answer_n": 2, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.75390625, + "accuracy": 0.75390625, + "answer_nll": 0.8971925377845764 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9418604651162791, + "accuracy": 0.9418604651162791, + "answer_nll": 0.2807239294052124 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.017601359635591507, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 0.996078431372549, + "accuracy": 0.996078431372549, + "answer_nll": 0.009649793617427349 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.018166115507483482, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00033927144249901175 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043521670158952475 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9899091826437941, + "accuracy": 0.9899091826437941, + "answer_nll": 0.037617240101099014 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "b6969894bb4ae6bcff639b79c9ea4295ad392e392b8d29dbf8c0af667eed51ec", + "delta_l2": 0.5886191129684448, + "tensor_file_sha256": "e2ab2b74fed9d130ac160177cd11d5437a155dcf0304c48c5eac1181c4ce049b" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..6e2f1d9872e4fdb6458148ae4a6a0324a1544709 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002790300059132278 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.27085304260254 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9725848563968669, + "accuracy": 0.9725848563968669, + "answer_nll": 0.10965170711278915 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.960369110107422, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5290288925170898 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.16985633969306946 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.282621383666992, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.323178190039471e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.538900375366211, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019393446564208716 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004320436273701489 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00037724178400821984 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": false, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.328773498535156 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002862997353076935 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9177545691906005, + "accuracy": 0.9177545691906005, + "answer_nll": 0.3281175494194031 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.02890007197856903, + "changed_answer_n": 2, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.69140625, + "accuracy": 0.69140625, + "answer_nll": 1.1321698427200317 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9224806201550387, + "accuracy": 0.9224806201550387, + "answer_nll": 0.3732392191886902 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.006824755109846592, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 0.984313725490196, + "accuracy": 0.984313725490196, + "answer_nll": 0.026580091565847397 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0051202597096562386, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0017643242608755827 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0014770152047276497 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.987891019172553, + "accuracy": 0.987891019172553, + "answer_nll": 0.07781586050987244 + } + }, + "model_sha256": "c35b5f39495fcd514b894f03f3cad722f7ff82fd9e8fc8e96bda1714968508f4", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 0.00041478712228126824, + "target_ce": 0.00010536689660511911, + "replay_kl": 0.00030942022567614913, + "gradient_norm": 0.014542422257363796 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.857089042663574 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.4596363042946905e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9295039164490861, + "accuracy": 0.9295039164490861, + "answer_nll": 0.2798992097377777 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.03177244961261749, + "changed_answer_n": 2, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.73046875, + "accuracy": 0.73046875, + "answer_nll": 0.9796240329742432 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9302325581395349, + "accuracy": 0.9302325581395349, + "answer_nll": 0.3214320242404938 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.006963271647691727, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 0.9921568627450981, + "accuracy": 0.9921568627450981, + "answer_nll": 0.01654493436217308 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.007277171593159437, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000613377196714282 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005073684733361006 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9899091826437941, + "accuracy": 0.9899091826437941, + "answer_nll": 0.053990449756383896 + } + }, + "model_sha256": "676f3d57d5d73a64082473303d80a89b592d8db03531a5cf04822477c3036481", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 6.292525358730927e-05, + "target_ce": 2.4000271878321655e-05, + "replay_kl": 3.892497988999821e-05, + "gradient_norm": 0.0015463989693671465 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.528921127319336 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.3232143828645349e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9373368146214099, + "accuracy": 0.9373368146214099, + "answer_nll": 0.2400473803281784 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.07242186367511749, + "changed_answer_n": 2, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.75390625, + "accuracy": 0.75390625, + "answer_nll": 0.8971925377845764 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9418604651162791, + "accuracy": 0.9418604651162791, + "answer_nll": 0.2807239294052124 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.017601359635591507, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 0.996078431372549, + "accuracy": 0.996078431372549, + "answer_nll": 0.009649793617427349 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.018166115507483482, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00033927144249901175 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043521670158952475 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9899091826437941, + "accuracy": 0.9899091826437941, + "answer_nll": 0.037617240101099014 + } + }, + "model_sha256": "b6969894bb4ae6bcff639b79c9ea4295ad392e392b8d29dbf8c0af667eed51ec", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 1.7208927602041513e-05, + "target_ce": 7.589621873194119e-06, + "replay_kl": 9.619305274100043e-06, + "gradient_norm": 0.0002356433542445302 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..f1dda1333bcd1a281b8707e9fe2407962b654f93 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 5.423627853393555, + "target_ce": 5.423627853393555, + "replay_kl": 0.0, + "gradient_norm": 31.91447639465332 + }, + { + "step": 2, + "loss": 4.7546868324279785, + "target_ce": 4.754683971405029, + "replay_kl": 2.6390687253297074e-06, + "gradient_norm": 35.00590515136719 + }, + { + "step": 3, + "loss": 4.038251876831055, + "target_ce": 4.0382399559021, + "replay_kl": 1.1875930795213208e-05, + "gradient_norm": 37.39860153198242 + }, + { + "step": 4, + "loss": 3.29518723487854, + "target_ce": 3.2951548099517822, + "replay_kl": 3.2442032534163445e-05, + "gradient_norm": 39.03304672241211 + }, + { + "step": 5, + "loss": 2.541982889175415, + "target_ce": 2.5419087409973145, + "replay_kl": 7.419499888783321e-05, + "gradient_norm": 39.98351287841797 + }, + { + "step": 6, + "loss": 1.7909616231918335, + "target_ce": 1.790804386138916, + "replay_kl": 0.00015727165737189353, + "gradient_norm": 40.18376922607422 + }, + { + "step": 7, + "loss": 1.0691485404968262, + "target_ce": 1.0688235759735107, + "replay_kl": 0.0003249922301620245, + "gradient_norm": 38.64961624145508 + }, + { + "step": 8, + "loss": 0.444542795419693, + "target_ce": 0.44385406374931335, + "replay_kl": 0.0006887420895509422, + "gradient_norm": 29.242692947387695 + }, + { + "step": 9, + "loss": 0.10356204211711884, + "target_ce": 0.1020413264632225, + "replay_kl": 0.0015207144897431135, + "gradient_norm": 10.175353050231934 + }, + { + "step": 10, + "loss": 0.020063478499650955, + "target_ce": 0.016598256304860115, + "replay_kl": 0.0034652219619601965, + "gradient_norm": 1.7452958822250366 + }, + { + "step": 11, + "loss": 0.009306766092777252, + "target_ce": 0.0028413189575076103, + "replay_kl": 0.006465447600930929, + "gradient_norm": 0.7748055458068848 + }, + { + "step": 12, + "loss": 0.007459316402673721, + "target_ce": 0.0007335392874665558, + "replay_kl": 0.006725776940584183, + "gradient_norm": 0.7536642551422119 + }, + { + "step": 13, + "loss": 0.0053526172414422035, + "target_ce": 0.0003012718807440251, + "replay_kl": 0.005051345564424992, + "gradient_norm": 0.5126528143882751 + }, + { + "step": 14, + "loss": 0.0036209772806614637, + "target_ce": 0.00017833341553341597, + "replay_kl": 0.0034426439087837934, + "gradient_norm": 0.3049515187740326 + }, + { + "step": 15, + "loss": 0.002527127508074045, + "target_ce": 0.0001343647309113294, + "replay_kl": 0.0023927628062665462, + "gradient_norm": 0.18285658955574036 + }, + { + "step": 16, + "loss": 0.0018901615403592587, + "target_ce": 0.00011597321281442419, + "replay_kl": 0.0017741883639246225, + "gradient_norm": 0.1195078045129776 + }, + { + "step": 17, + "loss": 0.0015011867508292198, + "target_ce": 0.0001078695131582208, + "replay_kl": 0.0013933172449469566, + "gradient_norm": 0.08541813492774963 + }, + { + "step": 18, + "loss": 0.0012476294068619609, + "target_ce": 0.00010409567039459944, + "replay_kl": 0.0011435337364673615, + "gradient_norm": 0.06553344428539276 + }, + { + "step": 19, + "loss": 0.001073388964869082, + "target_ce": 0.00010290391946909949, + "replay_kl": 0.0009704850381240249, + "gradient_norm": 0.05299019068479538 + }, + { + "step": 20, + "loss": 0.0009449465433135629, + "target_ce": 0.00010294365347363055, + "replay_kl": 0.0008420028607361019, + "gradient_norm": 0.0443476065993309 + }, + { + "step": 21, + "loss": 0.0008482106495648623, + "target_ce": 0.000103420352388639, + "replay_kl": 0.0007447903044521809, + "gradient_norm": 0.03818312659859657 + }, + { + "step": 22, + "loss": 0.000771363265812397, + "target_ce": 0.0001042545773088932, + "replay_kl": 0.0006671086885035038, + "gradient_norm": 0.03350231796503067 + }, + { + "step": 23, + "loss": 0.0007089819409884512, + "target_ce": 0.00010516827023820952, + "replay_kl": 0.0006038136780261993, + "gradient_norm": 0.02984008751809597 + }, + { + "step": 24, + "loss": 0.0006568847456946969, + "target_ce": 0.00010612166806822643, + "replay_kl": 0.0005507630994543433, + "gradient_norm": 0.026869455352425575 + }, + { + "step": 25, + "loss": 0.0006123644416220486, + "target_ce": 0.00010687643225537613, + "replay_kl": 0.0005054880166426301, + "gradient_norm": 0.024414008483290672 + }, + { + "step": 26, + "loss": 0.0005739216576330364, + "target_ce": 0.00010739285062300041, + "replay_kl": 0.0004665288142859936, + "gradient_norm": 0.02236122637987137 + }, + { + "step": 27, + "loss": 0.0005396303022280335, + "target_ce": 0.0001076709377230145, + "replay_kl": 0.00043195937178097665, + "gradient_norm": 0.020576506853103638 + }, + { + "step": 28, + "loss": 0.0005094065563753247, + "target_ce": 0.00010771066445158795, + "replay_kl": 0.0004016958991996944, + "gradient_norm": 0.019050491973757744 + }, + { + "step": 29, + "loss": 0.00048250131658278406, + "target_ce": 0.00010755177208920941, + "replay_kl": 0.00037494953721761703, + "gradient_norm": 0.01771545596420765 + }, + { + "step": 30, + "loss": 0.0004575891944114119, + "target_ce": 0.00010687643225537613, + "replay_kl": 0.00035071276943199337, + "gradient_norm": 0.016526339575648308 + }, + { + "step": 31, + "loss": 0.0004354286356829107, + "target_ce": 0.00010616139479679987, + "replay_kl": 0.0003292672336101532, + "gradient_norm": 0.015487697906792164 + }, + { + "step": 32, + "loss": 0.00041478712228126824, + "target_ce": 0.00010536689660511911, + "replay_kl": 0.00030942022567614913, + "gradient_norm": 0.014542422257363796 + }, + { + "step": 33, + "loss": 0.00039577949792146683, + "target_ce": 0.00010397651203675196, + "replay_kl": 0.00029180297860875726, + "gradient_norm": 0.01370108313858509 + }, + { + "step": 34, + "loss": 0.0003779008984565735, + "target_ce": 0.00010246695455862209, + "replay_kl": 0.0002754339366219938, + "gradient_norm": 0.01291983388364315 + }, + { + "step": 35, + "loss": 0.0003616661415435374, + "target_ce": 0.00010095736797666177, + "replay_kl": 0.000260708766290918, + "gradient_norm": 0.01222755666822195 + }, + { + "step": 36, + "loss": 0.0003466124180704355, + "target_ce": 9.928888903232291e-05, + "replay_kl": 0.0002473235363140702, + "gradient_norm": 0.011597052216529846 + }, + { + "step": 37, + "loss": 0.0003324821009300649, + "target_ce": 9.742176189320162e-05, + "replay_kl": 0.0002350603463128209, + "gradient_norm": 0.01102023757994175 + }, + { + "step": 38, + "loss": 0.000319217360811308, + "target_ce": 9.555464930599555e-05, + "replay_kl": 0.00022366270422935486, + "gradient_norm": 0.010478097945451736 + }, + { + "step": 39, + "loss": 0.0003066164499614388, + "target_ce": 9.340942051494494e-05, + "replay_kl": 0.00021320702217053622, + "gradient_norm": 0.009977465495467186 + }, + { + "step": 40, + "loss": 0.00029534182976931334, + "target_ce": 9.154228609986603e-05, + "replay_kl": 0.00020379955822136253, + "gradient_norm": 0.009530236013233662 + }, + { + "step": 41, + "loss": 0.00028447125805541873, + "target_ce": 8.947647438617423e-05, + "replay_kl": 0.00019499477639328688, + "gradient_norm": 0.009107564575970173 + }, + { + "step": 42, + "loss": 0.0002742991200648248, + "target_ce": 8.749013795750216e-05, + "replay_kl": 0.00018680898938328028, + "gradient_norm": 0.008713717572391033 + }, + { + "step": 43, + "loss": 0.00026463199174031615, + "target_ce": 8.534486551070586e-05, + "replay_kl": 0.0001792871335055679, + "gradient_norm": 0.008346128277480602 + }, + { + "step": 44, + "loss": 0.00025556160835549235, + "target_ce": 8.327904652105644e-05, + "replay_kl": 0.0001722825545584783, + "gradient_norm": 0.008000330999493599 + }, + { + "step": 45, + "loss": 0.0002469102619215846, + "target_ce": 8.121319115161896e-05, + "replay_kl": 0.00016569707076996565, + "gradient_norm": 0.007677726913243532 + }, + { + "step": 46, + "loss": 0.00023878614592831582, + "target_ce": 7.914732850622386e-05, + "replay_kl": 0.00015963881742209196, + "gradient_norm": 0.007376688998192549 + }, + { + "step": 47, + "loss": 0.00023114705982152373, + "target_ce": 7.720064604654908e-05, + "replay_kl": 0.00015394641377497464, + "gradient_norm": 0.007093728519976139 + }, + { + "step": 48, + "loss": 0.0002239801688119769, + "target_ce": 7.533340976806358e-05, + "replay_kl": 0.00014864676631987095, + "gradient_norm": 0.006832176353782415 + }, + { + "step": 49, + "loss": 0.00021714273316320032, + "target_ce": 7.34264322090894e-05, + "replay_kl": 0.00014371630095411092, + "gradient_norm": 0.006583274342119694 + }, + { + "step": 50, + "loss": 0.0002106341562466696, + "target_ce": 7.155917410273105e-05, + "replay_kl": 0.00013907498214393854, + "gradient_norm": 0.0063463118858635426 + }, + { + "step": 51, + "loss": 0.00020457028585951775, + "target_ce": 6.985082291066647e-05, + "replay_kl": 0.0001347194629488513, + "gradient_norm": 0.006127209402620792 + }, + { + "step": 52, + "loss": 0.00019866300863213837, + "target_ce": 6.810273043811321e-05, + "replay_kl": 0.00013056027819402516, + "gradient_norm": 0.005914437584578991 + }, + { + "step": 53, + "loss": 0.00019309765775687993, + "target_ce": 6.639437197009102e-05, + "replay_kl": 0.00012670329306274652, + "gradient_norm": 0.0057151298969984055 + }, + { + "step": 54, + "loss": 0.00018796059885062277, + "target_ce": 6.48051718599163e-05, + "replay_kl": 0.00012315541971474886, + "gradient_norm": 0.005533972289413214 + }, + { + "step": 55, + "loss": 0.00018305054982192814, + "target_ce": 6.341463449643925e-05, + "replay_kl": 0.0001196359153254889, + "gradient_norm": 0.005359848029911518 + }, + { + "step": 56, + "loss": 0.00017817641492001712, + "target_ce": 6.174596637720242e-05, + "replay_kl": 0.00011643044126685709, + "gradient_norm": 0.0051893009804189205 + }, + { + "step": 57, + "loss": 0.00017385653336532414, + "target_ce": 6.047460192348808e-05, + "replay_kl": 0.00011338193144183606, + "gradient_norm": 0.00503690866753459 + }, + { + "step": 58, + "loss": 0.00016954672173596919, + "target_ce": 5.908403909415938e-05, + "replay_kl": 0.00011046268627978861, + "gradient_norm": 0.004887746647000313 + }, + { + "step": 59, + "loss": 0.00016538820636924356, + "target_ce": 5.773320663138293e-05, + "replay_kl": 0.00010765499609988183, + "gradient_norm": 0.004743174649775028 + }, + { + "step": 60, + "loss": 0.0001613923959666863, + "target_ce": 5.634262561216019e-05, + "replay_kl": 0.00010504977399250492, + "gradient_norm": 0.004607801325619221 + }, + { + "step": 61, + "loss": 0.00015790577162988484, + "target_ce": 5.534935917239636e-05, + "replay_kl": 0.00010255641973344609, + "gradient_norm": 0.004487685859203339 + }, + { + "step": 62, + "loss": 0.00015431854990310967, + "target_ce": 5.415742998593487e-05, + "replay_kl": 0.00010016112355515361, + "gradient_norm": 0.004365285858511925 + }, + { + "step": 63, + "loss": 0.0001508231507614255, + "target_ce": 5.296549716149457e-05, + "replay_kl": 9.785765723790973e-05, + "gradient_norm": 0.004247488919645548 + }, + { + "step": 64, + "loss": 0.00014764499792363495, + "target_ce": 5.1892751798732206e-05, + "replay_kl": 9.575224248692393e-05, + "gradient_norm": 0.004140948411077261 + }, + { + "step": 65, + "loss": 0.00014454394113272429, + "target_ce": 5.08597404405009e-05, + "replay_kl": 9.368420433020219e-05, + "gradient_norm": 0.004037755541503429 + }, + { + "step": 66, + "loss": 0.0001415907172486186, + "target_ce": 4.990618253941648e-05, + "replay_kl": 9.168453834718093e-05, + "gradient_norm": 0.0039392635226249695 + }, + { + "step": 67, + "loss": 0.00013882515486329794, + "target_ce": 4.9032092647394165e-05, + "replay_kl": 8.979305857792497e-05, + "gradient_norm": 0.0038474141620099545 + }, + { + "step": 68, + "loss": 0.00013604768901132047, + "target_ce": 4.807852747035213e-05, + "replay_kl": 8.796916517894715e-05, + "gradient_norm": 0.0037571112625300884 + }, + { + "step": 69, + "loss": 0.00013343174941837788, + "target_ce": 4.72044303023722e-05, + "replay_kl": 8.622731547802687e-05, + "gradient_norm": 0.0036725676618516445 + }, + { + "step": 70, + "loss": 0.0001308214123127982, + "target_ce": 4.629059912986122e-05, + "replay_kl": 8.453081682091579e-05, + "gradient_norm": 0.003588648047298193 + }, + { + "step": 71, + "loss": 0.00012836298265028745, + "target_ce": 4.5416487409966066e-05, + "replay_kl": 8.294649160234258e-05, + "gradient_norm": 0.003510519862174988 + }, + { + "step": 72, + "loss": 0.00012616287858691067, + "target_ce": 4.474104571272619e-05, + "replay_kl": 8.142182923620567e-05, + "gradient_norm": 0.0034405053593218327 + }, + { + "step": 73, + "loss": 0.0001238504919456318, + "target_ce": 4.394640200189315e-05, + "replay_kl": 7.990409358171746e-05, + "gradient_norm": 0.0033661017660051584 + }, + { + "step": 74, + "loss": 0.0001216701784869656, + "target_ce": 4.3231226300122216e-05, + "replay_kl": 7.843895582482219e-05, + "gradient_norm": 0.0032962975092232227 + }, + { + "step": 75, + "loss": 0.00011964210716541857, + "target_ce": 4.2555777326924726e-05, + "replay_kl": 7.708632620051503e-05, + "gradient_norm": 0.003233486320823431 + }, + { + "step": 76, + "loss": 0.00011754489241866395, + "target_ce": 4.180085670668632e-05, + "replay_kl": 7.574403571197763e-05, + "gradient_norm": 0.0031696355435997248 + }, + { + "step": 77, + "loss": 0.00011568810441531241, + "target_ce": 4.124460610910319e-05, + "replay_kl": 7.444349466823041e-05, + "gradient_norm": 0.0031109454575926065 + }, + { + "step": 78, + "loss": 0.00011374957102816552, + "target_ce": 4.052941585541703e-05, + "replay_kl": 7.32201588107273e-05, + "gradient_norm": 0.003053516848012805 + }, + { + "step": 79, + "loss": 0.00011194378021173179, + "target_ce": 3.997316161985509e-05, + "replay_kl": 7.197062222985551e-05, + "gradient_norm": 0.0029956819489598274 + }, + { + "step": 80, + "loss": 0.00011020005331374705, + "target_ce": 3.933743937523104e-05, + "replay_kl": 7.08626103005372e-05, + "gradient_norm": 0.002943997038528323 + }, + { + "step": 81, + "loss": 0.00010848996316781268, + "target_ce": 3.87811815016903e-05, + "replay_kl": 6.970878166612238e-05, + "gradient_norm": 0.0028905775398015976 + }, + { + "step": 82, + "loss": 0.00010682296851882711, + "target_ce": 3.822491999017075e-05, + "replay_kl": 6.859804852865636e-05, + "gradient_norm": 0.0028409126680344343 + }, + { + "step": 83, + "loss": 0.0001052501320373267, + "target_ce": 3.77481228497345e-05, + "replay_kl": 6.7502012825571e-05, + "gradient_norm": 0.0027940033469349146 + }, + { + "step": 84, + "loss": 0.00010373914119554684, + "target_ce": 3.727133298525587e-05, + "replay_kl": 6.646780821029097e-05, + "gradient_norm": 0.0027480348944664 + }, + { + "step": 85, + "loss": 0.00010219850082648918, + "target_ce": 3.6715071473736316e-05, + "replay_kl": 6.548342935275286e-05, + "gradient_norm": 0.002703233389183879 + }, + { + "step": 86, + "loss": 0.00010079615458380431, + "target_ce": 3.6278008337831125e-05, + "replay_kl": 6.451814260799438e-05, + "gradient_norm": 0.0026601748540997505 + }, + { + "step": 87, + "loss": 9.949058585334569e-05, + "target_ce": 3.592040957300924e-05, + "replay_kl": 6.357017264235765e-05, + "gradient_norm": 0.002620904939249158 + }, + { + "step": 88, + "loss": 9.789649629965425e-05, + "target_ce": 3.528467277646996e-05, + "replay_kl": 6.261182716116309e-05, + "gradient_norm": 0.0025773581583052874 + }, + { + "step": 89, + "loss": 9.660802606958896e-05, + "target_ce": 3.4927074011648074e-05, + "replay_kl": 6.168095569591969e-05, + "gradient_norm": 0.002539324574172497 + }, + { + "step": 90, + "loss": 9.518394654151052e-05, + "target_ce": 3.437081250012852e-05, + "replay_kl": 6.0813134041382e-05, + "gradient_norm": 0.0024982201866805553 + }, + { + "step": 91, + "loss": 9.390542254550382e-05, + "target_ce": 3.397347609279677e-05, + "replay_kl": 5.993194645270705e-05, + "gradient_norm": 0.002461169147863984 + }, + { + "step": 92, + "loss": 9.271377348341048e-05, + "target_ce": 3.3615877327974886e-05, + "replay_kl": 5.909789615543559e-05, + "gradient_norm": 0.0024255921598523855 + }, + { + "step": 93, + "loss": 9.147217497229576e-05, + "target_ce": 3.317880691611208e-05, + "replay_kl": 5.829336805618368e-05, + "gradient_norm": 0.002389661967754364 + }, + { + "step": 94, + "loss": 9.034783579409122e-05, + "target_ce": 3.282120815129019e-05, + "replay_kl": 5.7526624004822224e-05, + "gradient_norm": 0.0023570391349494457 + }, + { + "step": 95, + "loss": 8.913982310332358e-05, + "target_ce": 3.238413773942739e-05, + "replay_kl": 5.6755681725917384e-05, + "gradient_norm": 0.0023228588979691267 + }, + { + "step": 96, + "loss": 8.805282413959503e-05, + "target_ce": 3.206626934115775e-05, + "replay_kl": 5.598655479843728e-05, + "gradient_norm": 0.0022908507380634546 + }, + { + "step": 97, + "loss": 8.703186176717281e-05, + "target_ce": 3.1788138585397974e-05, + "replay_kl": 5.524372318177484e-05, + "gradient_norm": 0.0022607017308473587 + }, + { + "step": 98, + "loss": 8.586066542193294e-05, + "target_ce": 3.135106453555636e-05, + "replay_kl": 5.450960452435538e-05, + "gradient_norm": 0.0022279946133494377 + }, + { + "step": 99, + "loss": 8.480853284709156e-05, + "target_ce": 3.0993465770734474e-05, + "replay_kl": 5.3815063438378274e-05, + "gradient_norm": 0.0021963841281831264 + }, + { + "step": 100, + "loss": 8.383898966712877e-05, + "target_ce": 3.067559373448603e-05, + "replay_kl": 5.316339593264274e-05, + "gradient_norm": 0.0021686558611691 + }, + { + "step": 101, + "loss": 8.274491847259924e-05, + "target_ce": 3.031798951269593e-05, + "replay_kl": 5.2426927140913904e-05, + "gradient_norm": 0.0021365596912801266 + }, + { + "step": 102, + "loss": 8.182753663277254e-05, + "target_ce": 3.0079587304499e-05, + "replay_kl": 5.1747949328273535e-05, + "gradient_norm": 0.002109935972839594 + }, + { + "step": 103, + "loss": 8.092991629382595e-05, + "target_ce": 2.980144927278161e-05, + "replay_kl": 5.1128467021044344e-05, + "gradient_norm": 0.002083534374833107 + }, + { + "step": 104, + "loss": 8.005255222087726e-05, + "target_ce": 2.956304706458468e-05, + "replay_kl": 5.0489506975281984e-05, + "gradient_norm": 0.002056962111964822 + }, + { + "step": 105, + "loss": 7.908455154392868e-05, + "target_ce": 2.920544102380518e-05, + "replay_kl": 4.987911233911291e-05, + "gradient_norm": 0.002029532566666603 + }, + { + "step": 106, + "loss": 7.824102067388594e-05, + "target_ce": 2.896704063459765e-05, + "replay_kl": 4.9273978220298886e-05, + "gradient_norm": 0.0020041868556290865 + }, + { + "step": 107, + "loss": 7.742270827293396e-05, + "target_ce": 2.872863842640072e-05, + "replay_kl": 4.869406984653324e-05, + "gradient_norm": 0.001978668849915266 + }, + { + "step": 108, + "loss": 7.660243136342615e-05, + "target_ce": 2.845050039468333e-05, + "replay_kl": 4.815193096874282e-05, + "gradient_norm": 0.0019539082422852516 + }, + { + "step": 109, + "loss": 7.580522651551291e-05, + "target_ce": 2.82120981864864e-05, + "replay_kl": 4.759312651003711e-05, + "gradient_norm": 0.0019309672061353922 + }, + { + "step": 110, + "loss": 7.502570952055976e-05, + "target_ce": 2.7973694159300067e-05, + "replay_kl": 4.7052017180249095e-05, + "gradient_norm": 0.0019072243012487888 + }, + { + "step": 111, + "loss": 7.413074490614235e-05, + "target_ce": 2.7616086299531162e-05, + "replay_kl": 4.6514654968632385e-05, + "gradient_norm": 0.0018821896519511938 + }, + { + "step": 112, + "loss": 7.340346928685904e-05, + "target_ce": 2.7417416276875883e-05, + "replay_kl": 4.598605300998315e-05, + "gradient_norm": 0.0018599116010591388 + }, + { + "step": 113, + "loss": 7.257292600115761e-05, + "target_ce": 2.7099542421638034e-05, + "replay_kl": 4.5473381760530174e-05, + "gradient_norm": 0.0018368229502812028 + }, + { + "step": 114, + "loss": 7.180657121352851e-05, + "target_ce": 2.68611383944517e-05, + "replay_kl": 4.494543463806622e-05, + "gradient_norm": 0.0018136490834876895 + }, + { + "step": 115, + "loss": 7.109640137059614e-05, + "target_ce": 2.6662468371796422e-05, + "replay_kl": 4.443393481778912e-05, + "gradient_norm": 0.001791974762454629 + }, + { + "step": 116, + "loss": 7.037698378553614e-05, + "target_ce": 2.642406070663128e-05, + "replay_kl": 4.395292489789426e-05, + "gradient_norm": 0.0017702957848086953 + }, + { + "step": 117, + "loss": 6.972713163122535e-05, + "target_ce": 2.6225390683976002e-05, + "replay_kl": 4.350173912825994e-05, + "gradient_norm": 0.0017518013482913375 + }, + { + "step": 118, + "loss": 6.9040062953718e-05, + "target_ce": 2.5986986656789668e-05, + "replay_kl": 4.3053074477938935e-05, + "gradient_norm": 0.0017300659092143178 + }, + { + "step": 119, + "loss": 6.837747787358239e-05, + "target_ce": 2.5788314815144986e-05, + "replay_kl": 4.258916305843741e-05, + "gradient_norm": 0.0017101679695770144 + }, + { + "step": 120, + "loss": 6.771985499653965e-05, + "target_ce": 2.558964661147911e-05, + "replay_kl": 4.2130210204049945e-05, + "gradient_norm": 0.0016900767805054784 + }, + { + "step": 121, + "loss": 6.705005216645077e-05, + "target_ce": 2.535123894631397e-05, + "replay_kl": 4.1698811401147395e-05, + "gradient_norm": 0.0016694571822881699 + }, + { + "step": 122, + "loss": 6.646887777606025e-05, + "target_ce": 2.519229929021094e-05, + "replay_kl": 4.127658030483872e-05, + "gradient_norm": 0.0016532883746549487 + }, + { + "step": 123, + "loss": 6.579701584996656e-05, + "target_ce": 2.4953895263024606e-05, + "replay_kl": 4.0843122405931354e-05, + "gradient_norm": 0.0016319596907123923 + }, + { + "step": 124, + "loss": 6.521742034237832e-05, + "target_ce": 2.4755223421379924e-05, + "replay_kl": 4.046219328301959e-05, + "gradient_norm": 0.001615886576473713 + }, + { + "step": 125, + "loss": 6.464343459811062e-05, + "target_ce": 2.45962874032557e-05, + "replay_kl": 4.0047147194854915e-05, + "gradient_norm": 0.0015979654854163527 + }, + { + "step": 126, + "loss": 6.408512126654387e-05, + "target_ce": 2.439761556161102e-05, + "replay_kl": 3.968750752392225e-05, + "gradient_norm": 0.0015812499914318323 + }, + { + "step": 127, + "loss": 6.34988973615691e-05, + "target_ce": 2.4198941900976934e-05, + "replay_kl": 3.9299957279581577e-05, + "gradient_norm": 0.0015637462493032217 + }, + { + "step": 128, + "loss": 6.292525358730927e-05, + "target_ce": 2.4000271878321655e-05, + "replay_kl": 3.892497988999821e-05, + "gradient_norm": 0.0015463989693671465 + }, + { + "step": 129, + "loss": 6.240241054911166e-05, + "target_ce": 2.384133404120803e-05, + "replay_kl": 3.8561076507903636e-05, + "gradient_norm": 0.0015299308579415083 + }, + { + "step": 130, + "loss": 6.18945196038112e-05, + "target_ce": 2.3682398023083806e-05, + "replay_kl": 3.82121215807274e-05, + "gradient_norm": 0.0015135077992454171 + }, + { + "step": 131, + "loss": 6.143933569546789e-05, + "target_ce": 2.356319600949064e-05, + "replay_kl": 3.787613604799844e-05, + "gradient_norm": 0.0015003193402662873 + }, + { + "step": 132, + "loss": 6.080457387724891e-05, + "target_ce": 2.3285050701815635e-05, + "replay_kl": 3.751952317543328e-05, + "gradient_norm": 0.0014837542548775673 + }, + { + "step": 133, + "loss": 6.031394877936691e-05, + "target_ce": 2.312611286470201e-05, + "replay_kl": 3.71878340956755e-05, + "gradient_norm": 0.0014684525085613132 + }, + { + "step": 134, + "loss": 5.982287984807044e-05, + "target_ce": 2.2967176846577786e-05, + "replay_kl": 3.685570118250325e-05, + "gradient_norm": 0.0014543008292093873 + }, + { + "step": 135, + "loss": 5.944203439867124e-05, + "target_ce": 2.2887705199536867e-05, + "replay_kl": 3.6554331018123776e-05, + "gradient_norm": 0.0014417669735848904 + }, + { + "step": 136, + "loss": 5.896192305954173e-05, + "target_ce": 2.2728769181412645e-05, + "replay_kl": 3.6233152059139684e-05, + "gradient_norm": 0.001427500625140965 + }, + { + "step": 137, + "loss": 5.848070577485487e-05, + "target_ce": 2.256983134429902e-05, + "replay_kl": 3.591087443055585e-05, + "gradient_norm": 0.0014126767637208104 + }, + { + "step": 138, + "loss": 5.802170926472172e-05, + "target_ce": 2.2410893507185392e-05, + "replay_kl": 3.5610813938546926e-05, + "gradient_norm": 0.0014000223018229008 + }, + { + "step": 139, + "loss": 5.763961962657049e-05, + "target_ce": 2.2331421860144474e-05, + "replay_kl": 3.5308195947436616e-05, + "gradient_norm": 0.0013881869381293654 + }, + { + "step": 140, + "loss": 5.71621312701609e-05, + "target_ce": 2.213275001849979e-05, + "replay_kl": 3.502938125166111e-05, + "gradient_norm": 0.0013741501607000828 + }, + { + "step": 141, + "loss": 5.667484947480261e-05, + "target_ce": 2.193407817685511e-05, + "replay_kl": 3.474077311693691e-05, + "gradient_norm": 0.0013601077953353524 + }, + { + "step": 142, + "loss": 5.630207306239754e-05, + "target_ce": 2.1854610167792998e-05, + "replay_kl": 3.4447464713593945e-05, + "gradient_norm": 0.0013484472874552011 + }, + { + "step": 143, + "loss": 5.589698412222788e-05, + "target_ce": 2.1735404516221024e-05, + "replay_kl": 3.416157778701745e-05, + "gradient_norm": 0.001336175948381424 + }, + { + "step": 144, + "loss": 5.54623402422294e-05, + "target_ce": 2.1576464860117994e-05, + "replay_kl": 3.388587720110081e-05, + "gradient_norm": 0.0013243664288893342 + }, + { + "step": 145, + "loss": 5.5035940022207797e-05, + "target_ce": 2.1417525204014964e-05, + "replay_kl": 3.361841299920343e-05, + "gradient_norm": 0.001312903012149036 + }, + { + "step": 146, + "loss": 5.465111826197244e-05, + "target_ce": 2.1298321371432394e-05, + "replay_kl": 3.335279689054005e-05, + "gradient_norm": 0.0013011565897613764 + }, + { + "step": 147, + "loss": 5.427991709439084e-05, + "target_ce": 2.1179119357839227e-05, + "replay_kl": 3.310079773655161e-05, + "gradient_norm": 0.0012896094704046845 + }, + { + "step": 148, + "loss": 5.3898373153060675e-05, + "target_ce": 2.1059915525256656e-05, + "replay_kl": 3.283845944679342e-05, + "gradient_norm": 0.0012783778365701437 + }, + { + "step": 149, + "loss": 5.3525080147664994e-05, + "target_ce": 2.0940709873684682e-05, + "replay_kl": 3.2584372092969716e-05, + "gradient_norm": 0.0012671995209529996 + }, + { + "step": 150, + "loss": 5.308291292749345e-05, + "target_ce": 2.074203803204e-05, + "replay_kl": 3.234087489545345e-05, + "gradient_norm": 0.001254850416444242 + }, + { + "step": 151, + "loss": 5.272770067676902e-05, + "target_ce": 2.062283419945743e-05, + "replay_kl": 3.2104864658322185e-05, + "gradient_norm": 0.001244230312295258 + }, + { + "step": 152, + "loss": 5.239940219325945e-05, + "target_ce": 2.0503628547885455e-05, + "replay_kl": 3.189577182638459e-05, + "gradient_norm": 0.0012338421074673533 + }, + { + "step": 153, + "loss": 5.2026211051270366e-05, + "target_ce": 2.0384424715302885e-05, + "replay_kl": 3.164178633596748e-05, + "gradient_norm": 0.0012232456356287003 + }, + { + "step": 154, + "loss": 5.1695387810468674e-05, + "target_ce": 2.030495488725137e-05, + "replay_kl": 3.13904311042279e-05, + "gradient_norm": 0.0012136526638641953 + }, + { + "step": 155, + "loss": 5.133764716447331e-05, + "target_ce": 2.01857510546688e-05, + "replay_kl": 3.115189610980451e-05, + "gradient_norm": 0.0012028373312205076 + }, + { + "step": 156, + "loss": 5.103330477140844e-05, + "target_ce": 2.0106281226617284e-05, + "replay_kl": 3.092702172580175e-05, + "gradient_norm": 0.0011936032678931952 + }, + { + "step": 157, + "loss": 5.060126568423584e-05, + "target_ce": 1.99076075659832e-05, + "replay_kl": 3.0693659937242046e-05, + "gradient_norm": 0.001182107487693429 + }, + { + "step": 158, + "loss": 5.018273077439517e-05, + "target_ce": 1.9708930267370306e-05, + "replay_kl": 3.0473802326014265e-05, + "gradient_norm": 0.0011712552513927221 + }, + { + "step": 159, + "loss": 4.9893336836248636e-05, + "target_ce": 1.9629462258308195e-05, + "replay_kl": 3.0263876396929845e-05, + "gradient_norm": 0.0011623860336840153 + }, + { + "step": 160, + "loss": 4.959785292157903e-05, + "target_ce": 1.954999243025668e-05, + "replay_kl": 3.0047862310311757e-05, + "gradient_norm": 0.0011527379974722862 + }, + { + "step": 161, + "loss": 4.9265850975643843e-05, + "target_ce": 1.943078859767411e-05, + "replay_kl": 2.9835064196959138e-05, + "gradient_norm": 0.0011434339685365558 + }, + { + "step": 162, + "loss": 4.90260572405532e-05, + "target_ce": 1.9391054593143053e-05, + "replay_kl": 2.963500446639955e-05, + "gradient_norm": 0.0011351737193763256 + }, + { + "step": 163, + "loss": 4.865416849497706e-05, + "target_ce": 1.9232114937040024e-05, + "replay_kl": 2.942205173894763e-05, + "gradient_norm": 0.0011240949388593435 + }, + { + "step": 164, + "loss": 4.840761539526284e-05, + "target_ce": 1.9192380932508968e-05, + "replay_kl": 2.9215236281743273e-05, + "gradient_norm": 0.001116350875236094 + }, + { + "step": 165, + "loss": 4.799305315827951e-05, + "target_ce": 1.8993703633896075e-05, + "replay_kl": 2.899934770539403e-05, + "gradient_norm": 0.0011047928128391504 + }, + { + "step": 166, + "loss": 4.7771834942977875e-05, + "target_ce": 1.895396962936502e-05, + "replay_kl": 2.881786713260226e-05, + "gradient_norm": 0.0010970328003168106 + }, + { + "step": 167, + "loss": 4.7419580369023606e-05, + "target_ce": 1.8795031792251393e-05, + "replay_kl": 2.8624548576772213e-05, + "gradient_norm": 0.0010871978010982275 + }, + { + "step": 168, + "loss": 4.714934038929641e-05, + "target_ce": 1.8715561964199878e-05, + "replay_kl": 2.843377660610713e-05, + "gradient_norm": 0.0010786231141537428 + }, + { + "step": 169, + "loss": 4.683498991653323e-05, + "target_ce": 1.8596356312627904e-05, + "replay_kl": 2.8238631784915924e-05, + "gradient_norm": 0.0010684888111427426 + }, + { + "step": 170, + "loss": 4.661923594539985e-05, + "target_ce": 1.855662230809685e-05, + "replay_kl": 2.8062615456292406e-05, + "gradient_norm": 0.0010615104110911489 + }, + { + "step": 171, + "loss": 4.6302291593747213e-05, + "target_ce": 1.8437418475514278e-05, + "replay_kl": 2.7864873118232936e-05, + "gradient_norm": 0.00105199683457613 + }, + { + "step": 172, + "loss": 4.60720548289828e-05, + "target_ce": 1.839768265199382e-05, + "replay_kl": 2.7674373995978385e-05, + "gradient_norm": 0.0010444145882502198 + }, + { + "step": 173, + "loss": 4.5812550524715334e-05, + "target_ce": 1.83182110049529e-05, + "replay_kl": 2.7494341338751838e-05, + "gradient_norm": 0.0010366763453930616 + }, + { + "step": 174, + "loss": 4.552711106953211e-05, + "target_ce": 1.819900717237033e-05, + "replay_kl": 2.7328103897161782e-05, + "gradient_norm": 0.0010270841885358095 + }, + { + "step": 175, + "loss": 4.526480188360438e-05, + "target_ce": 1.8119537344318815e-05, + "replay_kl": 2.714526272029616e-05, + "gradient_norm": 0.0010204706341028214 + }, + { + "step": 176, + "loss": 4.497605550568551e-05, + "target_ce": 1.800033169274684e-05, + "replay_kl": 2.697572563192807e-05, + "gradient_norm": 0.0010111265582963824 + }, + { + "step": 177, + "loss": 4.476261165109463e-05, + "target_ce": 1.7960597688215785e-05, + "replay_kl": 2.6802013962878846e-05, + "gradient_norm": 0.001004270277917385 + }, + { + "step": 178, + "loss": 4.4429740228224546e-05, + "target_ce": 1.7801658032112755e-05, + "replay_kl": 2.6628084015101194e-05, + "gradient_norm": 0.0009939799783751369 + }, + { + "step": 179, + "loss": 4.4223328586667776e-05, + "target_ce": 1.7761922208592296e-05, + "replay_kl": 2.646140637807548e-05, + "gradient_norm": 0.0009876219555735588 + }, + { + "step": 180, + "loss": 4.396215808810666e-05, + "target_ce": 1.7642714738030918e-05, + "replay_kl": 2.6319445169065148e-05, + "gradient_norm": 0.0009802589192986488 + }, + { + "step": 181, + "loss": 4.362977051641792e-05, + "target_ce": 1.7483773262938485e-05, + "replay_kl": 2.614599907246884e-05, + "gradient_norm": 0.0009723883122205734 + }, + { + "step": 182, + "loss": 4.3400912545621395e-05, + "target_ce": 1.740430343488697e-05, + "replay_kl": 2.5996607291745022e-05, + "gradient_norm": 0.0009641951182857156 + }, + { + "step": 183, + "loss": 4.312467353884131e-05, + "target_ce": 1.7285097783314995e-05, + "replay_kl": 2.5839573936536908e-05, + "gradient_norm": 0.0009567248052917421 + }, + { + "step": 184, + "loss": 4.292246376280673e-05, + "target_ce": 1.7245361959794536e-05, + "replay_kl": 2.5677101803012192e-05, + "gradient_norm": 0.000950839021243155 + }, + { + "step": 185, + "loss": 4.273175363778137e-05, + "target_ce": 1.720562795526348e-05, + "replay_kl": 2.5526125682517886e-05, + "gradient_norm": 0.0009438288980163634 + }, + { + "step": 186, + "loss": 4.2462073906790465e-05, + "target_ce": 1.708642412268091e-05, + "replay_kl": 2.537565160309896e-05, + "gradient_norm": 0.0009356230148114264 + }, + { + "step": 187, + "loss": 4.228334000799805e-05, + "target_ce": 1.7046686480171047e-05, + "replay_kl": 2.52366517088376e-05, + "gradient_norm": 0.0009296366479247808 + }, + { + "step": 188, + "loss": 4.2063911678269506e-05, + "target_ce": 1.6967218471108936e-05, + "replay_kl": 2.5096695026149973e-05, + "gradient_norm": 0.0009224562672898173 + }, + { + "step": 189, + "loss": 4.186675505479798e-05, + "target_ce": 1.6927482647588477e-05, + "replay_kl": 2.49392724072095e-05, + "gradient_norm": 0.0009154540603049099 + }, + { + "step": 190, + "loss": 4.1637904359959066e-05, + "target_ce": 1.684801281953696e-05, + "replay_kl": 2.4789891540422104e-05, + "gradient_norm": 0.0009081333409994841 + }, + { + "step": 191, + "loss": 4.136765710427426e-05, + "target_ce": 1.6728807167964987e-05, + "replay_kl": 2.463884993630927e-05, + "gradient_norm": 0.0009004319435916841 + }, + { + "step": 192, + "loss": 4.1124098061118275e-05, + "target_ce": 1.6609601516393013e-05, + "replay_kl": 2.4514494725735858e-05, + "gradient_norm": 0.0008933171629905701 + }, + { + "step": 193, + "loss": 4.095055555808358e-05, + "target_ce": 1.6569865692872554e-05, + "replay_kl": 2.4380689865211025e-05, + "gradient_norm": 0.0008881717803888023 + }, + { + "step": 194, + "loss": 4.072350202477537e-05, + "target_ce": 1.649039586482104e-05, + "replay_kl": 2.4233106159954332e-05, + "gradient_norm": 0.0008811384323053062 + }, + { + "step": 195, + "loss": 4.0469312807545066e-05, + "target_ce": 1.637118839425966e-05, + "replay_kl": 2.4098122594296e-05, + "gradient_norm": 0.0008746671956032515 + }, + { + "step": 196, + "loss": 4.030288982903585e-05, + "target_ce": 1.6331454389728606e-05, + "replay_kl": 2.397143362031784e-05, + "gradient_norm": 0.0008690786198712885 + }, + { + "step": 197, + "loss": 4.0054488636087626e-05, + "target_ce": 1.621224873815663e-05, + "replay_kl": 2.3842241716920398e-05, + "gradient_norm": 0.0008616087725386024 + }, + { + "step": 198, + "loss": 3.990138793596998e-05, + "target_ce": 1.621224873815663e-05, + "replay_kl": 2.368914101680275e-05, + "gradient_norm": 0.0008564810268580914 + }, + { + "step": 199, + "loss": 3.973800630774349e-05, + "target_ce": 1.6172512914636172e-05, + "replay_kl": 2.3565493393107317e-05, + "gradient_norm": 0.000850444717798382 + }, + { + "step": 200, + "loss": 3.949943129555322e-05, + "target_ce": 1.6053307263064198e-05, + "replay_kl": 2.3446124032489024e-05, + "gradient_norm": 0.0008435939671471715 + }, + { + "step": 201, + "loss": 3.933624248020351e-05, + "target_ce": 1.6013573258533143e-05, + "replay_kl": 2.332267104065977e-05, + "gradient_norm": 0.0008380242506973445 + }, + { + "step": 202, + "loss": 3.921809184248559e-05, + "target_ce": 1.6013573258533143e-05, + "replay_kl": 2.320451858395245e-05, + "gradient_norm": 0.0008334689773619175 + }, + { + "step": 203, + "loss": 3.893030225299299e-05, + "target_ce": 1.5854633602430113e-05, + "replay_kl": 2.307566683157347e-05, + "gradient_norm": 0.0008255548309534788 + }, + { + "step": 204, + "loss": 3.878048300975934e-05, + "target_ce": 1.581489595992025e-05, + "replay_kl": 2.2965585230849683e-05, + "gradient_norm": 0.0008205779595300555 + }, + { + "step": 205, + "loss": 3.852852387353778e-05, + "target_ce": 1.5695690308348276e-05, + "replay_kl": 2.2832833565189503e-05, + "gradient_norm": 0.000814136175904423 + }, + { + "step": 206, + "loss": 3.833381924778223e-05, + "target_ce": 1.5616218661307357e-05, + "replay_kl": 2.2717602405464277e-05, + "gradient_norm": 0.0008081755950115621 + }, + { + "step": 207, + "loss": 3.815055242739618e-05, + "target_ce": 1.5536748833255842e-05, + "replay_kl": 2.2613803594140336e-05, + "gradient_norm": 0.000802533992100507 + }, + { + "step": 208, + "loss": 3.799248224822804e-05, + "target_ce": 1.5497013009735383e-05, + "replay_kl": 2.2495467419503257e-05, + "gradient_norm": 0.0007972480379976332 + }, + { + "step": 209, + "loss": 3.783206193475053e-05, + "target_ce": 1.5457279005204327e-05, + "replay_kl": 2.2374784748535603e-05, + "gradient_norm": 0.0007922196527943015 + }, + { + "step": 210, + "loss": 3.7660254747606814e-05, + "target_ce": 1.5377809177152812e-05, + "replay_kl": 2.2282443751464598e-05, + "gradient_norm": 0.0007861235644668341 + }, + { + "step": 211, + "loss": 3.750658288481645e-05, + "target_ce": 1.5338073353632353e-05, + "replay_kl": 2.21685095311841e-05, + "gradient_norm": 0.000780754373408854 + }, + { + "step": 212, + "loss": 3.734869824256748e-05, + "target_ce": 1.5298339349101298e-05, + "replay_kl": 2.205035707447678e-05, + "gradient_norm": 0.0007757583516649902 + }, + { + "step": 213, + "loss": 3.720191671163775e-05, + "target_ce": 1.5258603525580838e-05, + "replay_kl": 2.1943313186056912e-05, + "gradient_norm": 0.0007707489421591163 + }, + { + "step": 214, + "loss": 3.698398722917773e-05, + "target_ce": 1.5139396964514162e-05, + "replay_kl": 2.1844589355168864e-05, + "gradient_norm": 0.0007652017520740628 + }, + { + "step": 215, + "loss": 3.682780152303167e-05, + "target_ce": 1.5099661140993703e-05, + "replay_kl": 2.1728139472543262e-05, + "gradient_norm": 0.0007605563732795417 + }, + { + "step": 216, + "loss": 3.6636141885537654e-05, + "target_ce": 1.5020189493952785e-05, + "replay_kl": 2.161595330107957e-05, + "gradient_norm": 0.0007557233911938965 + }, + { + "step": 217, + "loss": 3.645236574811861e-05, + "target_ce": 1.494071966590127e-05, + "replay_kl": 2.1511645172722638e-05, + "gradient_norm": 0.000749852042645216 + }, + { + "step": 218, + "loss": 3.6357891076477244e-05, + "target_ce": 1.494071966590127e-05, + "replay_kl": 2.1417170501081273e-05, + "gradient_norm": 0.0007460347260348499 + }, + { + "step": 219, + "loss": 3.617109905462712e-05, + "target_ce": 1.4861248928355053e-05, + "replay_kl": 2.1309850126272067e-05, + "gradient_norm": 0.0007404049974866211 + }, + { + "step": 220, + "loss": 3.6038924008607864e-05, + "target_ce": 1.4821514014329296e-05, + "replay_kl": 2.121741090377327e-05, + "gradient_norm": 0.0007367609650827944 + }, + { + "step": 221, + "loss": 3.585709782782942e-05, + "target_ce": 1.4742043276783079e-05, + "replay_kl": 2.1115052732056938e-05, + "gradient_norm": 0.0007312178495340049 + }, + { + "step": 222, + "loss": 3.567742896848358e-05, + "target_ce": 1.4662572539236862e-05, + "replay_kl": 2.1014857338741422e-05, + "gradient_norm": 0.0007257493562065065 + }, + { + "step": 223, + "loss": 3.5547855077311397e-05, + "target_ce": 1.4622837625211105e-05, + "replay_kl": 2.0925019271089695e-05, + "gradient_norm": 0.0007214959478005767 + }, + { + "step": 224, + "loss": 3.540862235240638e-05, + "target_ce": 1.4583102711185347e-05, + "replay_kl": 2.0825518731726333e-05, + "gradient_norm": 0.000716528738848865 + }, + { + "step": 225, + "loss": 3.527055378071964e-05, + "target_ce": 1.4543366887664888e-05, + "replay_kl": 2.072718780254945e-05, + "gradient_norm": 0.0007124916301108897 + }, + { + "step": 226, + "loss": 3.510078022372909e-05, + "target_ce": 1.4463897059613373e-05, + "replay_kl": 2.0636884073610418e-05, + "gradient_norm": 0.0007071307627484202 + }, + { + "step": 227, + "loss": 3.503256812109612e-05, + "target_ce": 1.4463897059613373e-05, + "replay_kl": 2.0568670151988044e-05, + "gradient_norm": 0.0007038999465294182 + }, + { + "step": 228, + "loss": 3.489635491860099e-05, + "target_ce": 1.4424161236092914e-05, + "replay_kl": 2.0472192773013376e-05, + "gradient_norm": 0.0006993496208451688 + }, + { + "step": 229, + "loss": 3.464524706942029e-05, + "target_ce": 1.426521976100048e-05, + "replay_kl": 2.0380028217914514e-05, + "gradient_norm": 0.0006939761806279421 + }, + { + "step": 230, + "loss": 3.455444675637409e-05, + "target_ce": 1.426521976100048e-05, + "replay_kl": 2.028922608587891e-05, + "gradient_norm": 0.0006905876216478646 + }, + { + "step": 231, + "loss": 3.441688386374153e-05, + "target_ce": 1.4225483937480021e-05, + "replay_kl": 2.0191400835756212e-05, + "gradient_norm": 0.000686358311213553 + }, + { + "step": 232, + "loss": 3.433471283642575e-05, + "target_ce": 1.4225483937480021e-05, + "replay_kl": 2.0109229808440432e-05, + "gradient_norm": 0.000683214224409312 + }, + { + "step": 233, + "loss": 3.412857768125832e-05, + "target_ce": 1.4106277376413345e-05, + "replay_kl": 2.0022298485855572e-05, + "gradient_norm": 0.0006776436930522323 + }, + { + "step": 234, + "loss": 3.401062713237479e-05, + "target_ce": 1.406654337188229e-05, + "replay_kl": 1.99440819415031e-05, + "gradient_norm": 0.0006734296912327409 + }, + { + "step": 235, + "loss": 3.3883094147313386e-05, + "target_ce": 1.4026806638867129e-05, + "replay_kl": 1.985628841794096e-05, + "gradient_norm": 0.0006696587079204619 + }, + { + "step": 236, + "loss": 3.380160706001334e-05, + "target_ce": 1.4026806638867129e-05, + "replay_kl": 1.9774801330640912e-05, + "gradient_norm": 0.0006665548426099122 + }, + { + "step": 237, + "loss": 3.363736323080957e-05, + "target_ce": 1.3947336810815614e-05, + "replay_kl": 1.9690025510499254e-05, + "gradient_norm": 0.0006617073668166995 + }, + { + "step": 238, + "loss": 3.3513715607114136e-05, + "target_ce": 1.3907602806284558e-05, + "replay_kl": 1.9606111891334876e-05, + "gradient_norm": 0.0006577461608685553 + }, + { + "step": 239, + "loss": 3.3350235753459856e-05, + "target_ce": 1.3828129340254236e-05, + "replay_kl": 1.9522105503710918e-05, + "gradient_norm": 0.0006537077715620399 + }, + { + "step": 240, + "loss": 3.323882629047148e-05, + "target_ce": 1.3788393516733777e-05, + "replay_kl": 1.9450431864243e-05, + "gradient_norm": 0.0006498179864138365 + }, + { + "step": 241, + "loss": 3.307680526631884e-05, + "target_ce": 1.370892277918756e-05, + "replay_kl": 1.9367882487131283e-05, + "gradient_norm": 0.0006449639331549406 + }, + { + "step": 242, + "loss": 3.2952149922493845e-05, + "target_ce": 1.3669188774656504e-05, + "replay_kl": 1.9282959328847937e-05, + "gradient_norm": 0.0006409513880498707 + }, + { + "step": 243, + "loss": 3.283259138697758e-05, + "target_ce": 1.3629452041641343e-05, + "replay_kl": 1.920314025483094e-05, + "gradient_norm": 0.0006377295940183103 + }, + { + "step": 244, + "loss": 3.271262175985612e-05, + "target_ce": 1.3589718037110288e-05, + "replay_kl": 1.912290281325113e-05, + "gradient_norm": 0.0006346565787680447 + }, + { + "step": 245, + "loss": 3.252517490182072e-05, + "target_ce": 1.3470511476043612e-05, + "replay_kl": 1.9054661606787704e-05, + "gradient_norm": 0.000629289133939892 + }, + { + "step": 246, + "loss": 3.2450989237986505e-05, + "target_ce": 1.3470511476043612e-05, + "replay_kl": 1.8980477761942893e-05, + "gradient_norm": 0.0006268660654313862 + }, + { + "step": 247, + "loss": 3.228719288017601e-05, + "target_ce": 1.3391040738497395e-05, + "replay_kl": 1.8896153051173314e-05, + "gradient_norm": 0.0006223585805855691 + }, + { + "step": 248, + "loss": 3.2179981644731015e-05, + "target_ce": 1.3351304914976936e-05, + "replay_kl": 1.8828675820259377e-05, + "gradient_norm": 0.0006195472087711096 + }, + { + "step": 249, + "loss": 3.202532752766274e-05, + "target_ce": 1.3271834177430719e-05, + "replay_kl": 1.875349335023202e-05, + "gradient_norm": 0.0006147428066469729 + }, + { + "step": 250, + "loss": 3.194922101101838e-05, + "target_ce": 1.3271834177430719e-05, + "replay_kl": 1.867738683358766e-05, + "gradient_norm": 0.0006123614148236811 + }, + { + "step": 251, + "loss": 3.184245360898785e-05, + "target_ce": 1.3232097444415558e-05, + "replay_kl": 1.8610355255077593e-05, + "gradient_norm": 0.0006084030610509217 + }, + { + "step": 252, + "loss": 3.173361619701609e-05, + "target_ce": 1.3192363439884502e-05, + "replay_kl": 1.854125366662629e-05, + "gradient_norm": 0.0006052781245671213 + }, + { + "step": 253, + "loss": 3.1660394597565755e-05, + "target_ce": 1.3192363439884502e-05, + "replay_kl": 1.8468032067175955e-05, + "gradient_norm": 0.0006023530149832368 + }, + { + "step": 254, + "loss": 3.151196870021522e-05, + "target_ce": 1.3112890883348882e-05, + "replay_kl": 1.8399075997876935e-05, + "gradient_norm": 0.000598035054281354 + }, + { + "step": 255, + "loss": 3.144618676742539e-05, + "target_ce": 1.3112890883348882e-05, + "replay_kl": 1.8333294065087102e-05, + "gradient_norm": 0.0005954503430984914 + }, + { + "step": 256, + "loss": 3.1339564884547144e-05, + "target_ce": 1.3073156878817827e-05, + "replay_kl": 1.8266406186739914e-05, + "gradient_norm": 0.0005918306414969265 + }, + { + "step": 257, + "loss": 3.126581941614859e-05, + "target_ce": 1.3073156878817827e-05, + "replay_kl": 1.819266253733076e-05, + "gradient_norm": 0.0005892383051104844 + }, + { + "step": 258, + "loss": 3.1067669624462724e-05, + "target_ce": 1.295395031775115e-05, + "replay_kl": 1.8113720216206275e-05, + "gradient_norm": 0.0005836355849169195 + }, + { + "step": 259, + "loss": 3.101776383118704e-05, + "target_ce": 1.295395031775115e-05, + "replay_kl": 1.8063812603941187e-05, + "gradient_norm": 0.0005813865573145449 + }, + { + "step": 260, + "loss": 3.090826066909358e-05, + "target_ce": 1.2914216313220095e-05, + "replay_kl": 1.7994045265368186e-05, + "gradient_norm": 0.0005784023669548333 + }, + { + "step": 261, + "loss": 3.08219860016834e-05, + "target_ce": 1.2914216313220095e-05, + "replay_kl": 1.7907768778968602e-05, + "gradient_norm": 0.0005757627077400684 + }, + { + "step": 262, + "loss": 3.07245682051871e-05, + "target_ce": 1.2874479580204934e-05, + "replay_kl": 1.7850088624982163e-05, + "gradient_norm": 0.0005733967991545796 + }, + { + "step": 263, + "loss": 3.0535509722540155e-05, + "target_ce": 1.2755273019138258e-05, + "replay_kl": 1.7780235793907195e-05, + "gradient_norm": 0.0005690910620614886 + }, + { + "step": 264, + "loss": 3.0437891837209463e-05, + "target_ce": 1.2715536286123097e-05, + "replay_kl": 1.7722355551086366e-05, + "gradient_norm": 0.0005659791640937328 + }, + { + "step": 265, + "loss": 3.032429958693683e-05, + "target_ce": 1.2675799553107936e-05, + "replay_kl": 1.7648500943323597e-05, + "gradient_norm": 0.0005627151695080101 + }, + { + "step": 266, + "loss": 3.0257062462624162e-05, + "target_ce": 1.2675799553107936e-05, + "replay_kl": 1.7581263819010928e-05, + "gradient_norm": 0.0005604305188171566 + }, + { + "step": 267, + "loss": 3.0205384973669425e-05, + "target_ce": 1.2675799553107936e-05, + "replay_kl": 1.7529584511066787e-05, + "gradient_norm": 0.0005582200828939676 + }, + { + "step": 268, + "loss": 3.0061069992370903e-05, + "target_ce": 1.2596329725056421e-05, + "replay_kl": 1.7464741176809184e-05, + "gradient_norm": 0.0005536984535865486 + }, + { + "step": 269, + "loss": 2.9958853701828048e-05, + "target_ce": 1.2556595720525365e-05, + "replay_kl": 1.740225707180798e-05, + "gradient_norm": 0.0005514753283932805 + }, + { + "step": 270, + "loss": 2.9861481380066834e-05, + "target_ce": 1.2516858987510204e-05, + "replay_kl": 1.734462239255663e-05, + "gradient_norm": 0.00054821657249704 + }, + { + "step": 271, + "loss": 2.976783252961468e-05, + "target_ce": 1.2477124982979149e-05, + "replay_kl": 1.729070754663553e-05, + "gradient_norm": 0.000545694783795625 + }, + { + "step": 272, + "loss": 2.9710929084103554e-05, + "target_ce": 1.2477124982979149e-05, + "replay_kl": 1.7233804101124406e-05, + "gradient_norm": 0.0005435642669908702 + }, + { + "step": 273, + "loss": 2.9558177629951388e-05, + "target_ce": 1.2397652426443528e-05, + "replay_kl": 1.7160524294013157e-05, + "gradient_norm": 0.0005397388013079762 + }, + { + "step": 274, + "loss": 2.9499526135623455e-05, + "target_ce": 1.2397652426443528e-05, + "replay_kl": 1.710187461867463e-05, + "gradient_norm": 0.0005375816253945231 + }, + { + "step": 275, + "loss": 2.940761623904109e-05, + "target_ce": 1.2357918421912473e-05, + "replay_kl": 1.704969872662332e-05, + "gradient_norm": 0.000534653605427593 + }, + { + "step": 276, + "loss": 2.9274386179167777e-05, + "target_ce": 1.2278446774871554e-05, + "replay_kl": 1.699593849480152e-05, + "gradient_norm": 0.0005316858878359199 + }, + { + "step": 277, + "loss": 2.9167491447879e-05, + "target_ce": 1.2238710951351095e-05, + "replay_kl": 1.6928781406022608e-05, + "gradient_norm": 0.0005286441883072257 + }, + { + "step": 278, + "loss": 2.9069618904031813e-05, + "target_ce": 1.2198975127830636e-05, + "replay_kl": 1.6870642866706476e-05, + "gradient_norm": 0.0005268172244541347 + }, + { + "step": 279, + "loss": 2.892769771278836e-05, + "target_ce": 1.2119503480789717e-05, + "replay_kl": 1.6808195141493343e-05, + "gradient_norm": 0.0005232697003521025 + }, + { + "step": 280, + "loss": 2.887919617933221e-05, + "target_ce": 1.2119503480789717e-05, + "replay_kl": 1.6759691789047793e-05, + "gradient_norm": 0.0005212552496232092 + }, + { + "step": 281, + "loss": 2.87805414700415e-05, + "target_ce": 1.2079767657269258e-05, + "replay_kl": 1.6700774722266942e-05, + "gradient_norm": 0.0005191686796024442 + }, + { + "step": 282, + "loss": 2.8653605113504454e-05, + "target_ce": 1.200029601022834e-05, + "replay_kl": 1.6653310012770817e-05, + "gradient_norm": 0.0005157929845154285 + }, + { + "step": 283, + "loss": 2.8595375624718145e-05, + "target_ce": 1.200029601022834e-05, + "replay_kl": 1.6595080523984507e-05, + "gradient_norm": 0.0005134772509336472 + }, + { + "step": 284, + "loss": 2.853648766176775e-05, + "target_ce": 1.200029601022834e-05, + "replay_kl": 1.6536192561034113e-05, + "gradient_norm": 0.0005112484795972705 + }, + { + "step": 285, + "loss": 2.8397160349413753e-05, + "target_ce": 1.1920824363187421e-05, + "replay_kl": 1.6476336895721033e-05, + "gradient_norm": 0.0005074772052466869 + }, + { + "step": 286, + "loss": 2.824948023771867e-05, + "target_ce": 1.1841352716146503e-05, + "replay_kl": 1.640812843106687e-05, + "gradient_norm": 0.0005054128123447299 + }, + { + "step": 287, + "loss": 2.816944834194146e-05, + "target_ce": 1.1801616892626043e-05, + "replay_kl": 1.6367830539820716e-05, + "gradient_norm": 0.000502849870827049 + }, + { + "step": 288, + "loss": 2.8069913241779432e-05, + "target_ce": 1.1761881069105584e-05, + "replay_kl": 1.6308031263179146e-05, + "gradient_norm": 0.0005005122511647642 + }, + { + "step": 289, + "loss": 2.801340087899007e-05, + "target_ce": 1.1761881069105584e-05, + "replay_kl": 1.6251520719379187e-05, + "gradient_norm": 0.0004985954728908837 + }, + { + "step": 290, + "loss": 2.7893031074199826e-05, + "target_ce": 1.168241124105407e-05, + "replay_kl": 1.6210618923651055e-05, + "gradient_norm": 0.0004946266999468207 + }, + { + "step": 291, + "loss": 2.783235686365515e-05, + "target_ce": 1.168241124105407e-05, + "replay_kl": 1.614994471310638e-05, + "gradient_norm": 0.0004929862916469574 + }, + { + "step": 292, + "loss": 2.7796333597507328e-05, + "target_ce": 1.168241124105407e-05, + "replay_kl": 1.6113921446958557e-05, + "gradient_norm": 0.0004911931464448571 + }, + { + "step": 293, + "loss": 2.772713196463883e-05, + "target_ce": 1.168241124105407e-05, + "replay_kl": 1.6044721633079462e-05, + "gradient_norm": 0.0004895024467259645 + }, + { + "step": 294, + "loss": 2.763294287433382e-05, + "target_ce": 1.1642674508038908e-05, + "replay_kl": 1.5990268366294913e-05, + "gradient_norm": 0.0004874214355368167 + }, + { + "step": 295, + "loss": 2.7559242880670354e-05, + "target_ce": 1.160293959401315e-05, + "replay_kl": 1.5956304196151905e-05, + "gradient_norm": 0.0004843283095397055 + }, + { + "step": 296, + "loss": 2.750861312961206e-05, + "target_ce": 1.160293959401315e-05, + "replay_kl": 1.5905672626104206e-05, + "gradient_norm": 0.0004828680830541998 + }, + { + "step": 297, + "loss": 2.737909380812198e-05, + "target_ce": 1.1523468856466934e-05, + "replay_kl": 1.5855624951655045e-05, + "gradient_norm": 0.0004795756540261209 + }, + { + "step": 298, + "loss": 2.7284491807222366e-05, + "target_ce": 1.1483732123451773e-05, + "replay_kl": 1.580075877427589e-05, + "gradient_norm": 0.00047759272274561226 + }, + { + "step": 299, + "loss": 2.7241640054853633e-05, + "target_ce": 1.1483732123451773e-05, + "replay_kl": 1.5757908840896562e-05, + "gradient_norm": 0.000475769629701972 + }, + { + "step": 300, + "loss": 2.7143511033500545e-05, + "target_ce": 1.1443997209426016e-05, + "replay_kl": 1.569951382407453e-05, + "gradient_norm": 0.0004734903632197529 + }, + { + "step": 301, + "loss": 2.7103445972898044e-05, + "target_ce": 1.1443997209426016e-05, + "replay_kl": 1.5659448763472028e-05, + "gradient_norm": 0.00047165676369331777 + }, + { + "step": 302, + "loss": 2.702375059016049e-05, + "target_ce": 1.1404260476410855e-05, + "replay_kl": 1.5619489204254933e-05, + "gradient_norm": 0.0004694600938819349 + }, + { + "step": 303, + "loss": 2.6812580472324044e-05, + "target_ce": 1.1245317182329018e-05, + "replay_kl": 1.5567264199489728e-05, + "gradient_norm": 0.00046526017831638455 + }, + { + "step": 304, + "loss": 2.6775800506584346e-05, + "target_ce": 1.1245317182329018e-05, + "replay_kl": 1.5530482414760627e-05, + "gradient_norm": 0.000463763193693012 + }, + { + "step": 305, + "loss": 2.671531547093764e-05, + "target_ce": 1.1245317182329018e-05, + "replay_kl": 1.5469999198103324e-05, + "gradient_norm": 0.00046201059012673795 + }, + { + "step": 306, + "loss": 2.6683399482863024e-05, + "target_ce": 1.1245317182329018e-05, + "replay_kl": 1.5438081391039304e-05, + "gradient_norm": 0.0004606672446243465 + }, + { + "step": 307, + "loss": 2.6586443709675223e-05, + "target_ce": 1.1205583177797962e-05, + "replay_kl": 1.5380861441371962e-05, + "gradient_norm": 0.00045863253762945533 + }, + { + "step": 308, + "loss": 2.6537742087384686e-05, + "target_ce": 1.1205583177797962e-05, + "replay_kl": 1.5332159819081426e-05, + "gradient_norm": 0.00045713881263509393 + }, + { + "step": 309, + "loss": 2.6457648345967755e-05, + "target_ce": 1.1165847354277503e-05, + "replay_kl": 1.529180008219555e-05, + "gradient_norm": 0.00045410971506498754 + }, + { + "step": 310, + "loss": 2.637418219819665e-05, + "target_ce": 1.1126110621262342e-05, + "replay_kl": 1.5248070667439606e-05, + "gradient_norm": 0.00045228280941955745 + }, + { + "step": 311, + "loss": 2.629143637022935e-05, + "target_ce": 1.1086376616731286e-05, + "replay_kl": 1.520505884400336e-05, + "gradient_norm": 0.0004499093920458108 + }, + { + "step": 312, + "loss": 2.6246347260894254e-05, + "target_ce": 1.1086376616731286e-05, + "replay_kl": 1.5159969734668266e-05, + "gradient_norm": 0.00044835376320406795 + }, + { + "step": 313, + "loss": 2.6206889742752537e-05, + "target_ce": 1.1086376616731286e-05, + "replay_kl": 1.512051221652655e-05, + "gradient_norm": 0.00044695392716675997 + }, + { + "step": 314, + "loss": 2.6109268219443038e-05, + "target_ce": 1.1046639883716125e-05, + "replay_kl": 1.5062627426232211e-05, + "gradient_norm": 0.000445172016043216 + }, + { + "step": 315, + "loss": 2.6063960831379518e-05, + "target_ce": 1.1046639883716125e-05, + "replay_kl": 1.5017320947663393e-05, + "gradient_norm": 0.00044386350782588124 + }, + { + "step": 316, + "loss": 2.599044455564581e-05, + "target_ce": 1.1006904969690368e-05, + "replay_kl": 1.4983539585955441e-05, + "gradient_norm": 0.0004414900904521346 + }, + { + "step": 317, + "loss": 2.594705620140303e-05, + "target_ce": 1.1006904969690368e-05, + "replay_kl": 1.4940151231712662e-05, + "gradient_norm": 0.00044001819333061576 + }, + { + "step": 318, + "loss": 2.586294613138307e-05, + "target_ce": 1.096717005566461e-05, + "replay_kl": 1.4895776075718459e-05, + "gradient_norm": 0.0004375112184789032 + }, + { + "step": 319, + "loss": 2.577932355052326e-05, + "target_ce": 1.0927433322649449e-05, + "replay_kl": 1.485189022787381e-05, + "gradient_norm": 0.0004355877754278481 + }, + { + "step": 320, + "loss": 2.5738616386661306e-05, + "target_ce": 1.0927433322649449e-05, + "replay_kl": 1.4811183064011857e-05, + "gradient_norm": 0.00043416087282821536 + }, + { + "step": 321, + "loss": 2.5661820473033004e-05, + "target_ce": 1.0887698408623692e-05, + "replay_kl": 1.4774122064409312e-05, + "gradient_norm": 0.0004316454578656703 + }, + { + "step": 322, + "loss": 2.5616245693527162e-05, + "target_ce": 1.0887698408623692e-05, + "replay_kl": 1.4728546375408769e-05, + "gradient_norm": 0.00043012297828681767 + }, + { + "step": 323, + "loss": 2.553496597101912e-05, + "target_ce": 1.0847962585103232e-05, + "replay_kl": 1.4687003385915887e-05, + "gradient_norm": 0.00042837084038183093 + }, + { + "step": 324, + "loss": 2.549299824750051e-05, + "target_ce": 1.0847962585103232e-05, + "replay_kl": 1.4645035662397277e-05, + "gradient_norm": 0.0004270708013791591 + }, + { + "step": 325, + "loss": 2.537612999731209e-05, + "target_ce": 1.0768490028567612e-05, + "replay_kl": 1.4607639968744479e-05, + "gradient_norm": 0.0004243178991600871 + }, + { + "step": 326, + "loss": 2.5335768441436812e-05, + "target_ce": 1.0768490028567612e-05, + "replay_kl": 1.4567277503374498e-05, + "gradient_norm": 0.0004231841885484755 + }, + { + "step": 327, + "loss": 2.5287683456554078e-05, + "target_ce": 1.0768490028567612e-05, + "replay_kl": 1.4519193427986465e-05, + "gradient_norm": 0.0004216411616653204 + }, + { + "step": 328, + "loss": 2.512974970159121e-05, + "target_ce": 1.0649283467500936e-05, + "replay_kl": 1.448046532459557e-05, + "gradient_norm": 0.0004196576774120331 + }, + { + "step": 329, + "loss": 2.50942975981161e-05, + "target_ce": 1.0649283467500936e-05, + "replay_kl": 1.4445013221120462e-05, + "gradient_norm": 0.00041861747740767896 + }, + { + "step": 330, + "loss": 2.5010056560859084e-05, + "target_ce": 1.0609546734485775e-05, + "replay_kl": 1.4400509826373309e-05, + "gradient_norm": 0.00041651184437796474 + }, + { + "step": 331, + "loss": 2.493348983989563e-05, + "target_ce": 1.0569811820460018e-05, + "replay_kl": 1.436367801943561e-05, + "gradient_norm": 0.00041434436570852995 + }, + { + "step": 332, + "loss": 2.48859214480035e-05, + "target_ce": 1.0569811820460018e-05, + "replay_kl": 1.4316108718048781e-05, + "gradient_norm": 0.0004129644366912544 + }, + { + "step": 333, + "loss": 2.4766377464402467e-05, + "target_ce": 1.04903401734191e-05, + "replay_kl": 1.427603820047807e-05, + "gradient_norm": 0.0004108469292987138 + }, + { + "step": 334, + "loss": 2.4719929569982924e-05, + "target_ce": 1.04903401734191e-05, + "replay_kl": 1.4229589396563824e-05, + "gradient_norm": 0.00040950640686787665 + }, + { + "step": 335, + "loss": 2.468725506332703e-05, + "target_ce": 1.04903401734191e-05, + "replay_kl": 1.4196913980413228e-05, + "gradient_norm": 0.0004083413805346936 + }, + { + "step": 336, + "loss": 2.465218676661607e-05, + "target_ce": 1.04903401734191e-05, + "replay_kl": 1.416184659319697e-05, + "gradient_norm": 0.0004071060102432966 + }, + { + "step": 337, + "loss": 2.4613742425572127e-05, + "target_ce": 1.04903401734191e-05, + "replay_kl": 1.412340316164773e-05, + "gradient_norm": 0.0004058146441821009 + }, + { + "step": 338, + "loss": 2.449030762363691e-05, + "target_ce": 1.041086852637818e-05, + "replay_kl": 1.4079439097258728e-05, + "gradient_norm": 0.0004029675910715014 + }, + { + "step": 339, + "loss": 2.4407974706264213e-05, + "target_ce": 1.0371132702857722e-05, + "replay_kl": 1.403684109391179e-05, + "gradient_norm": 0.00040059234015643597 + }, + { + "step": 340, + "loss": 2.433359441056382e-05, + "target_ce": 1.0331396879337262e-05, + "replay_kl": 1.4002197531226557e-05, + "gradient_norm": 0.0003993200953118503 + }, + { + "step": 341, + "loss": 2.4294426111737266e-05, + "target_ce": 1.0331396879337262e-05, + "replay_kl": 1.3963030141894706e-05, + "gradient_norm": 0.00039809837471693754 + }, + { + "step": 342, + "loss": 2.4216999008785933e-05, + "target_ce": 1.0291661055816803e-05, + "replay_kl": 1.3925338862463832e-05, + "gradient_norm": 0.0003967996744904667 + }, + { + "step": 343, + "loss": 2.4172266421373934e-05, + "target_ce": 1.0291661055816803e-05, + "replay_kl": 1.3880604456062429e-05, + "gradient_norm": 0.00039538039709441364 + }, + { + "step": 344, + "loss": 2.414550181129016e-05, + "target_ce": 1.0291661055816803e-05, + "replay_kl": 1.3853841664968058e-05, + "gradient_norm": 0.0003944103664252907 + }, + { + "step": 345, + "loss": 2.407003012194764e-05, + "target_ce": 1.0251925232296344e-05, + "replay_kl": 1.3818104889651295e-05, + "gradient_norm": 0.00039240665500983596 + }, + { + "step": 346, + "loss": 2.4035312890191562e-05, + "target_ce": 1.0251925232296344e-05, + "replay_kl": 1.3783387657895219e-05, + "gradient_norm": 0.00039104343159124255 + }, + { + "step": 347, + "loss": 2.391533416812308e-05, + "target_ce": 1.0172454494750127e-05, + "replay_kl": 1.3742879673372954e-05, + "gradient_norm": 0.00038867819239385426 + }, + { + "step": 348, + "loss": 2.3805710952728987e-05, + "target_ce": 1.0092981938214507e-05, + "replay_kl": 1.3712729924009182e-05, + "gradient_norm": 0.0003866289334837347 + }, + { + "step": 349, + "loss": 2.3813965526642278e-05, + "target_ce": 1.0132717761734966e-05, + "replay_kl": 1.3681247764907312e-05, + "gradient_norm": 0.0003858842537738383 + }, + { + "step": 350, + "loss": 2.373059578530956e-05, + "target_ce": 1.0092981938214507e-05, + "replay_kl": 1.3637613847095054e-05, + "gradient_norm": 0.0003846212348435074 + }, + { + "step": 351, + "loss": 2.365824911976233e-05, + "target_ce": 1.0053246114694048e-05, + "replay_kl": 1.3605003005068284e-05, + "gradient_norm": 0.0003828139160759747 + }, + { + "step": 352, + "loss": 2.3629683710169047e-05, + "target_ce": 1.0053246114694048e-05, + "replay_kl": 1.3576437595475e-05, + "gradient_norm": 0.00038203911390155554 + }, + { + "step": 353, + "loss": 2.359119025641121e-05, + "target_ce": 1.0053246114694048e-05, + "replay_kl": 1.3537945051211864e-05, + "gradient_norm": 0.0003807669272646308 + }, + { + "step": 354, + "loss": 2.357222547288984e-05, + "target_ce": 1.0053246114694048e-05, + "replay_kl": 1.3518979358195793e-05, + "gradient_norm": 0.00037983019137755036 + }, + { + "step": 355, + "loss": 2.3523312847828493e-05, + "target_ce": 1.0053246114694048e-05, + "replay_kl": 1.3470065823639743e-05, + "gradient_norm": 0.00037846810300834477 + }, + { + "step": 356, + "loss": 2.341523395443801e-05, + "target_ce": 9.973775377147831e-06, + "replay_kl": 1.3441458577290177e-05, + "gradient_norm": 0.0003761074331123382 + }, + { + "step": 357, + "loss": 2.337256955797784e-05, + "target_ce": 9.973775377147831e-06, + "replay_kl": 1.3398795090324711e-05, + "gradient_norm": 0.000374935450963676 + }, + { + "step": 358, + "loss": 2.334076998522505e-05, + "target_ce": 9.973775377147831e-06, + "replay_kl": 1.3366995517571922e-05, + "gradient_norm": 0.00037375109968706965 + }, + { + "step": 359, + "loss": 2.3223259631777182e-05, + "target_ce": 9.89430282061221e-06, + "replay_kl": 1.332895590167027e-05, + "gradient_norm": 0.0003714589402079582 + }, + { + "step": 360, + "loss": 2.318762562936172e-05, + "target_ce": 9.89430282061221e-06, + "replay_kl": 1.329332371824421e-05, + "gradient_norm": 0.00037061190232634544 + }, + { + "step": 361, + "loss": 2.3113361748983152e-05, + "target_ce": 9.854566997091752e-06, + "replay_kl": 1.32587947518914e-05, + "gradient_norm": 0.00036906253080815077 + }, + { + "step": 362, + "loss": 2.308008333784528e-05, + "target_ce": 9.854566997091752e-06, + "replay_kl": 1.3225515431258827e-05, + "gradient_norm": 0.00036808178992941976 + }, + { + "step": 363, + "loss": 2.300570486113429e-05, + "target_ce": 9.814831173571292e-06, + "replay_kl": 1.3190872778068297e-05, + "gradient_norm": 0.0003667592245619744 + }, + { + "step": 364, + "loss": 2.298217805218883e-05, + "target_ce": 9.814831173571292e-06, + "replay_kl": 1.3167346878617536e-05, + "gradient_norm": 0.0003658600908238441 + }, + { + "step": 365, + "loss": 2.2905616788193583e-05, + "target_ce": 9.775095350050833e-06, + "replay_kl": 1.3130522347637452e-05, + "gradient_norm": 0.00036380853271111846 + }, + { + "step": 366, + "loss": 2.2824046027380973e-05, + "target_ce": 9.735359526530374e-06, + "replay_kl": 1.3088687410345301e-05, + "gradient_norm": 0.0003622997901402414 + }, + { + "step": 367, + "loss": 2.2808268113294616e-05, + "target_ce": 9.735359526530374e-06, + "replay_kl": 1.307290767726954e-05, + "gradient_norm": 0.0003614212910179049 + }, + { + "step": 368, + "loss": 2.2775428078603e-05, + "target_ce": 9.735359526530374e-06, + "replay_kl": 1.3040067642577924e-05, + "gradient_norm": 0.00036033542710356414 + }, + { + "step": 369, + "loss": 2.2739823180017993e-05, + "target_ce": 9.735359526530374e-06, + "replay_kl": 1.3004463653487619e-05, + "gradient_norm": 0.0003594424924813211 + }, + { + "step": 370, + "loss": 2.270474942633882e-05, + "target_ce": 9.735359526530374e-06, + "replay_kl": 1.2969389899808448e-05, + "gradient_norm": 0.00035869484418071806 + }, + { + "step": 371, + "loss": 2.2598807845497504e-05, + "target_ce": 9.655887879489455e-06, + "replay_kl": 1.294292087550275e-05, + "gradient_norm": 0.00035623792791739106 + }, + { + "step": 372, + "loss": 2.255778235848993e-05, + "target_ce": 9.655887879489455e-06, + "replay_kl": 1.2901893569505773e-05, + "gradient_norm": 0.000355249474523589 + }, + { + "step": 373, + "loss": 2.2527208784595132e-05, + "target_ce": 9.655887879489455e-06, + "replay_kl": 1.2871319995610975e-05, + "gradient_norm": 0.00035432924050837755 + }, + { + "step": 374, + "loss": 2.246156509499997e-05, + "target_ce": 9.616152055968996e-06, + "replay_kl": 1.2845412129536271e-05, + "gradient_norm": 0.0003525142092257738 + }, + { + "step": 375, + "loss": 2.2416708816308528e-05, + "target_ce": 9.616152055968996e-06, + "replay_kl": 1.2800557669834234e-05, + "gradient_norm": 0.00035138221574015915 + }, + { + "step": 376, + "loss": 2.2349337086779997e-05, + "target_ce": 9.576416232448537e-06, + "replay_kl": 1.2772921763826162e-05, + "gradient_norm": 0.0003492533869575709 + }, + { + "step": 377, + "loss": 2.232755650766194e-05, + "target_ce": 9.576416232448537e-06, + "replay_kl": 1.2751140275213402e-05, + "gradient_norm": 0.0003484585613477975 + }, + { + "step": 378, + "loss": 2.228763696621172e-05, + "target_ce": 9.576416232448537e-06, + "replay_kl": 1.2711221643257886e-05, + "gradient_norm": 0.0003475944104138762 + }, + { + "step": 379, + "loss": 2.2262265702011064e-05, + "target_ce": 9.576416232448537e-06, + "replay_kl": 1.2685850379057229e-05, + "gradient_norm": 0.0003465962072368711 + }, + { + "step": 380, + "loss": 2.2237160010263324e-05, + "target_ce": 9.576416232448537e-06, + "replay_kl": 1.2660743777814787e-05, + "gradient_norm": 0.00034567719558253884 + }, + { + "step": 381, + "loss": 2.221038448624313e-05, + "target_ce": 9.576416232448537e-06, + "replay_kl": 1.2633968253794592e-05, + "gradient_norm": 0.0003445709589868784 + }, + { + "step": 382, + "loss": 2.2131565856398083e-05, + "target_ce": 9.536680408928078e-06, + "replay_kl": 1.2594885447470006e-05, + "gradient_norm": 0.00034359010169282556 + }, + { + "step": 383, + "loss": 2.205982309533283e-05, + "target_ce": 9.49694549490232e-06, + "replay_kl": 1.2562877600430511e-05, + "gradient_norm": 0.00034152582520619035 + }, + { + "step": 384, + "loss": 2.202736504841596e-05, + "target_ce": 9.49694549490232e-06, + "replay_kl": 1.2530419553513639e-05, + "gradient_norm": 0.0003408877819310874 + }, + { + "step": 385, + "loss": 2.1998233933118172e-05, + "target_ce": 9.49694549490232e-06, + "replay_kl": 1.2501288438215852e-05, + "gradient_norm": 0.000339884398272261 + }, + { + "step": 386, + "loss": 2.1936770281172357e-05, + "target_ce": 9.457209671381861e-06, + "replay_kl": 1.2479560609790497e-05, + "gradient_norm": 0.00033876474481076 + }, + { + "step": 387, + "loss": 2.1818723325850442e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.24409853015095e-05, + "gradient_norm": 0.0003366091114003211 + }, + { + "step": 388, + "loss": 2.1798652596771717e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.2420914572430775e-05, + "gradient_norm": 0.00033572272513993084 + }, + { + "step": 389, + "loss": 2.1770674720755778e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.2392937605909538e-05, + "gradient_norm": 0.00033471552887931466 + }, + { + "step": 390, + "loss": 2.1736514099757187e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.2358776984910946e-05, + "gradient_norm": 0.0003341121191624552 + }, + { + "step": 391, + "loss": 2.1707473933929577e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.2329737728578039e-05, + "gradient_norm": 0.0003330885956529528 + }, + { + "step": 392, + "loss": 2.167720958823338e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.2299473382881843e-05, + "gradient_norm": 0.0003321102121844888 + }, + { + "step": 393, + "loss": 2.1645144443027675e-05, + "target_ce": 9.37773711484624e-06, + "replay_kl": 1.2267408237676136e-05, + "gradient_norm": 0.00033142988104373217 + }, + { + "step": 394, + "loss": 2.1546300558838993e-05, + "target_ce": 9.298265467805322e-06, + "replay_kl": 1.2248036000528373e-05, + "gradient_norm": 0.0003299070813227445 + }, + { + "step": 395, + "loss": 2.147291525034234e-05, + "target_ce": 9.258529644284863e-06, + "replay_kl": 1.2214386515552178e-05, + "gradient_norm": 0.0003286262508481741 + }, + { + "step": 396, + "loss": 2.1447838662425056e-05, + "target_ce": 9.258529644284863e-06, + "replay_kl": 1.2189309927634895e-05, + "gradient_norm": 0.0003278783697169274 + }, + { + "step": 397, + "loss": 2.1376163203967735e-05, + "target_ce": 9.218793820764404e-06, + "replay_kl": 1.2157370292698033e-05, + "gradient_norm": 0.0003263209655415267 + }, + { + "step": 398, + "loss": 2.1349733287934214e-05, + "target_ce": 9.218793820764404e-06, + "replay_kl": 1.2130940376664512e-05, + "gradient_norm": 0.00032555812504142523 + }, + { + "step": 399, + "loss": 2.1282994566718116e-05, + "target_ce": 9.179057997243945e-06, + "replay_kl": 1.2103937478968874e-05, + "gradient_norm": 0.00032479464425705373 + }, + { + "step": 400, + "loss": 2.1218340407358482e-05, + "target_ce": 9.139322173723485e-06, + "replay_kl": 1.2079019143129699e-05, + "gradient_norm": 0.00032320161699317396 + }, + { + "step": 401, + "loss": 2.1192290660110302e-05, + "target_ce": 9.139322173723485e-06, + "replay_kl": 1.2052968486386817e-05, + "gradient_norm": 0.00032236712286248803 + }, + { + "step": 402, + "loss": 2.1088941139169037e-05, + "target_ce": 9.059850526682567e-06, + "replay_kl": 1.2029089702991769e-05, + "gradient_norm": 0.0003203206288162619 + }, + { + "step": 403, + "loss": 2.101539030263666e-05, + "target_ce": 9.020113793667406e-06, + "replay_kl": 1.1995276508969255e-05, + "gradient_norm": 0.0003195734170731157 + }, + { + "step": 404, + "loss": 2.0990764824091457e-05, + "target_ce": 9.020113793667406e-06, + "replay_kl": 1.1970651030424051e-05, + "gradient_norm": 0.0003187627298757434 + }, + { + "step": 405, + "loss": 2.0965504518244416e-05, + "target_ce": 9.020113793667406e-06, + "replay_kl": 1.194539072457701e-05, + "gradient_norm": 0.00031786534236744046 + }, + { + "step": 406, + "loss": 2.0845916878897697e-05, + "target_ce": 8.940643056121189e-06, + "replay_kl": 1.1905272913281806e-05, + "gradient_norm": 0.0003157438477501273 + }, + { + "step": 407, + "loss": 2.0831972506130114e-05, + "target_ce": 8.940643056121189e-06, + "replay_kl": 1.1891328540514223e-05, + "gradient_norm": 0.00031521328492090106 + }, + { + "step": 408, + "loss": 2.0806317479582503e-05, + "target_ce": 8.940643056121189e-06, + "replay_kl": 1.1865673513966613e-05, + "gradient_norm": 0.0003141706401947886 + }, + { + "step": 409, + "loss": 2.0774990844074637e-05, + "target_ce": 8.940643056121189e-06, + "replay_kl": 1.1834347787953448e-05, + "gradient_norm": 0.00031376053811982274 + }, + { + "step": 410, + "loss": 2.0751274860231206e-05, + "target_ce": 8.940643056121189e-06, + "replay_kl": 1.1810630894615315e-05, + "gradient_norm": 0.0003127882955595851 + }, + { + "step": 411, + "loss": 2.0679846784332767e-05, + "target_ce": 8.90090723260073e-06, + "replay_kl": 1.1778938642237335e-05, + "gradient_norm": 0.00031164262327365577 + }, + { + "step": 412, + "loss": 2.0624825992854312e-05, + "target_ce": 8.86117140908027e-06, + "replay_kl": 1.1763654583774041e-05, + "gradient_norm": 0.0003100077447015792 + }, + { + "step": 413, + "loss": 2.058774043689482e-05, + "target_ce": 8.86117140908027e-06, + "replay_kl": 1.1726569027814548e-05, + "gradient_norm": 0.00030915127717889845 + }, + { + "step": 414, + "loss": 2.055890581686981e-05, + "target_ce": 8.86117140908027e-06, + "replay_kl": 1.169773440778954e-05, + "gradient_norm": 0.0003085192875005305 + }, + { + "step": 415, + "loss": 2.0530518668238074e-05, + "target_ce": 8.86117140908027e-06, + "replay_kl": 1.1669348168652505e-05, + "gradient_norm": 0.0003078035661019385 + }, + { + "step": 416, + "loss": 2.0504972781054676e-05, + "target_ce": 8.86117140908027e-06, + "replay_kl": 1.1643802281469107e-05, + "gradient_norm": 0.00030706796678714454 + }, + { + "step": 417, + "loss": 2.0442468667170033e-05, + "target_ce": 8.821435585559811e-06, + "replay_kl": 1.162103217211552e-05, + "gradient_norm": 0.00030593376141041517 + }, + { + "step": 418, + "loss": 2.04198804567568e-05, + "target_ce": 8.821435585559811e-06, + "replay_kl": 1.1598443961702287e-05, + "gradient_norm": 0.0003052880347240716 + }, + { + "step": 419, + "loss": 2.0353174477349967e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.1571475624805316e-05, + "gradient_norm": 0.0003038549912162125 + }, + { + "step": 420, + "loss": 2.032632619375363e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.1544626431714278e-05, + "gradient_norm": 0.00030310169677250087 + }, + { + "step": 421, + "loss": 2.0302828488638625e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.1521129636093974e-05, + "gradient_norm": 0.00030233783763833344 + }, + { + "step": 422, + "loss": 2.0285053324187174e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.150335265265312e-05, + "gradient_norm": 0.00030172019614838064 + }, + { + "step": 423, + "loss": 2.0256720745237544e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.1475021892692894e-05, + "gradient_norm": 0.00030099370633251965 + }, + { + "step": 424, + "loss": 2.0230047084623948e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.1448346413089894e-05, + "gradient_norm": 0.0003004473401233554 + }, + { + "step": 425, + "loss": 2.0200302969897166e-05, + "target_ce": 8.781699762039352e-06, + "replay_kl": 1.1418603207857814e-05, + "gradient_norm": 0.00029974483186379075 + }, + { + "step": 426, + "loss": 2.013495031860657e-05, + "target_ce": 8.741963938518893e-06, + "replay_kl": 1.139298728958238e-05, + "gradient_norm": 0.0002984500315506011 + }, + { + "step": 427, + "loss": 2.007798320846632e-05, + "target_ce": 8.702228114998434e-06, + "replay_kl": 1.1375755093467887e-05, + "gradient_norm": 0.00029706655186600983 + }, + { + "step": 428, + "loss": 2.0050134480698034e-05, + "target_ce": 8.702228114998434e-06, + "replay_kl": 1.1347905456204899e-05, + "gradient_norm": 0.000296388054266572 + }, + { + "step": 429, + "loss": 2.0028717699460685e-05, + "target_ce": 8.702228114998434e-06, + "replay_kl": 1.132648867496755e-05, + "gradient_norm": 0.0002955581003334373 + }, + { + "step": 430, + "loss": 1.9962160877184942e-05, + "target_ce": 8.662492291477975e-06, + "replay_kl": 1.129966949520167e-05, + "gradient_norm": 0.0002938174002338201 + }, + { + "step": 431, + "loss": 1.994027115870267e-05, + "target_ce": 8.662492291477975e-06, + "replay_kl": 1.1277777957729995e-05, + "gradient_norm": 0.0002934785152319819 + }, + { + "step": 432, + "loss": 1.9925102606066503e-05, + "target_ce": 8.662492291477975e-06, + "replay_kl": 1.1262610314588528e-05, + "gradient_norm": 0.00029270275263115764 + }, + { + "step": 433, + "loss": 1.985288326977752e-05, + "target_ce": 8.622756467957515e-06, + "replay_kl": 1.1230125892325304e-05, + "gradient_norm": 0.00029168277978897095 + }, + { + "step": 434, + "loss": 1.9828174117719755e-05, + "target_ce": 8.622756467957515e-06, + "replay_kl": 1.1205418559256941e-05, + "gradient_norm": 0.00029112849733792245 + }, + { + "step": 435, + "loss": 1.9801907910732552e-05, + "target_ce": 8.622756467957515e-06, + "replay_kl": 1.1179150533280335e-05, + "gradient_norm": 0.00029031021404080093 + }, + { + "step": 436, + "loss": 1.974549377337098e-05, + "target_ce": 8.583020644437056e-06, + "replay_kl": 1.1162474038428627e-05, + "gradient_norm": 0.0002897059021051973 + }, + { + "step": 437, + "loss": 1.9717310351552442e-05, + "target_ce": 8.583020644437056e-06, + "replay_kl": 1.1134288797620684e-05, + "gradient_norm": 0.000288946321234107 + }, + { + "step": 438, + "loss": 1.9695562514243647e-05, + "target_ce": 8.583020644437056e-06, + "replay_kl": 1.111254096031189e-05, + "gradient_norm": 0.00028849931550212204 + }, + { + "step": 439, + "loss": 1.966850868484471e-05, + "target_ce": 8.583020644437056e-06, + "replay_kl": 1.1085488040407654e-05, + "gradient_norm": 0.0002877111837733537 + }, + { + "step": 440, + "loss": 1.9638853700598702e-05, + "target_ce": 8.583020644437056e-06, + "replay_kl": 1.1055832146666944e-05, + "gradient_norm": 0.0002870449679903686 + }, + { + "step": 441, + "loss": 1.9579321815399453e-05, + "target_ce": 8.543284820916597e-06, + "replay_kl": 1.1036036084988154e-05, + "gradient_norm": 0.0002852050238288939 + }, + { + "step": 442, + "loss": 1.95185057236813e-05, + "target_ce": 8.503548997396138e-06, + "replay_kl": 1.1014955816790462e-05, + "gradient_norm": 0.0002843670954462141 + }, + { + "step": 443, + "loss": 1.9495280866976827e-05, + "target_ce": 8.503548997396138e-06, + "replay_kl": 1.0991730960085988e-05, + "gradient_norm": 0.0002835221530403942 + }, + { + "step": 444, + "loss": 1.9469538528937846e-05, + "target_ce": 8.503548997396138e-06, + "replay_kl": 1.0965988622047007e-05, + "gradient_norm": 0.00028295820811763406 + }, + { + "step": 445, + "loss": 1.94089298020117e-05, + "target_ce": 8.463813173875678e-06, + "replay_kl": 1.0945117537630722e-05, + "gradient_norm": 0.00028140112408436835 + }, + { + "step": 446, + "loss": 1.938154673553072e-05, + "target_ce": 8.463813173875678e-06, + "replay_kl": 1.0917734471149743e-05, + "gradient_norm": 0.00028066642698831856 + }, + { + "step": 447, + "loss": 1.936624539666809e-05, + "target_ce": 8.463813173875678e-06, + "replay_kl": 1.0902432222792413e-05, + "gradient_norm": 0.00028021406615152955 + }, + { + "step": 448, + "loss": 1.9293813238618895e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.0869736797758378e-05, + "gradient_norm": 0.0002792974410112947 + }, + { + "step": 449, + "loss": 1.928061101352796e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.0856534572667442e-05, + "gradient_norm": 0.0002785121323540807 + }, + { + "step": 450, + "loss": 1.9250228433520533e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.0826151083165314e-05, + "gradient_norm": 0.00027788954321295023 + }, + { + "step": 451, + "loss": 1.922950650623534e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.080542915588012e-05, + "gradient_norm": 0.0002772196021396667 + }, + { + "step": 452, + "loss": 1.920090835483279e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.0776831004477572e-05, + "gradient_norm": 0.0002765963727142662 + }, + { + "step": 453, + "loss": 1.918109592224937e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.075701857189415e-05, + "gradient_norm": 0.0002760726201813668 + }, + { + "step": 454, + "loss": 1.9159127987222746e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.0735051546362229e-05, + "gradient_norm": 0.0002755551249720156 + }, + { + "step": 455, + "loss": 1.914566928462591e-05, + "target_ce": 8.424077350355219e-06, + "replay_kl": 1.0721591934270691e-05, + "gradient_norm": 0.00027518116985447705 + }, + { + "step": 456, + "loss": 1.9074253941653296e-05, + "target_ce": 8.38434152683476e-06, + "replay_kl": 1.0689913324313238e-05, + "gradient_norm": 0.00027373761986382306 + }, + { + "step": 457, + "loss": 1.902506483020261e-05, + "target_ce": 8.3446057033143e-06, + "replay_kl": 1.0680458217393607e-05, + "gradient_norm": 0.00027252105064690113 + }, + { + "step": 458, + "loss": 1.896146932267584e-05, + "target_ce": 8.30486897029914e-06, + "replay_kl": 1.06566003523767e-05, + "gradient_norm": 0.0002719062031246722 + }, + { + "step": 459, + "loss": 1.8944563635159284e-05, + "target_ce": 8.30486897029914e-06, + "replay_kl": 1.0639693755365442e-05, + "gradient_norm": 0.0002714353322517127 + }, + { + "step": 460, + "loss": 1.8922033632406965e-05, + "target_ce": 8.30486897029914e-06, + "replay_kl": 1.0617164662107825e-05, + "gradient_norm": 0.0002708781976252794 + }, + { + "step": 461, + "loss": 1.8896414985647425e-05, + "target_ce": 8.30486897029914e-06, + "replay_kl": 1.0591545105853584e-05, + "gradient_norm": 0.00027029114426113665 + }, + { + "step": 462, + "loss": 1.8842452846001834e-05, + "target_ce": 8.265132237283979e-06, + "replay_kl": 1.0577319699223153e-05, + "gradient_norm": 0.000269657582975924 + }, + { + "step": 463, + "loss": 1.8783623090712354e-05, + "target_ce": 8.22539641376352e-06, + "replay_kl": 1.0558225767454132e-05, + "gradient_norm": 0.0002684806240722537 + }, + { + "step": 464, + "loss": 1.8725077097769827e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0539416507526767e-05, + "gradient_norm": 0.00026695861015468836 + }, + { + "step": 465, + "loss": 1.8695533071877435e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0509872481634375e-05, + "gradient_norm": 0.00026630889624357224 + }, + { + "step": 466, + "loss": 1.8675753381103277e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0490092790860217e-05, + "gradient_norm": 0.00026578683173283935 + }, + { + "step": 467, + "loss": 1.8659571651369333e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0473911061126273e-05, + "gradient_norm": 0.0002652365365065634 + }, + { + "step": 468, + "loss": 1.862652788986452e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0440866390126757e-05, + "gradient_norm": 0.00026449395227245986 + }, + { + "step": 469, + "loss": 1.8616839952301234e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0431179362058174e-05, + "gradient_norm": 0.00026399135822430253 + }, + { + "step": 470, + "loss": 1.858981340774335e-05, + "target_ce": 8.18566059024306e-06, + "replay_kl": 1.0404151908005588e-05, + "gradient_norm": 0.00026356489979662 + }, + { + "step": 471, + "loss": 1.853447247412987e-05, + "target_ce": 8.145924766722601e-06, + "replay_kl": 1.0388546797912568e-05, + "gradient_norm": 0.0002629329392220825 + }, + { + "step": 472, + "loss": 1.851552224252373e-05, + "target_ce": 8.145924766722601e-06, + "replay_kl": 1.036959838529583e-05, + "gradient_norm": 0.0002624496992211789 + }, + { + "step": 473, + "loss": 1.840690129029099e-05, + "target_ce": 8.066453119681682e-06, + "replay_kl": 1.0340448170609307e-05, + "gradient_norm": 0.00026059907395392656 + }, + { + "step": 474, + "loss": 1.8389451724942774e-05, + "target_ce": 8.066453119681682e-06, + "replay_kl": 1.032299769576639e-05, + "gradient_norm": 0.0002600389125291258 + }, + { + "step": 475, + "loss": 1.837630770751275e-05, + "target_ce": 8.066453119681682e-06, + "replay_kl": 1.030985549732577e-05, + "gradient_norm": 0.00025954790180549026 + }, + { + "step": 476, + "loss": 1.8351474864175543e-05, + "target_ce": 8.066453119681682e-06, + "replay_kl": 1.0285020834999159e-05, + "gradient_norm": 0.00025888977688737214 + }, + { + "step": 477, + "loss": 1.8300495867151767e-05, + "target_ce": 8.026717296161223e-06, + "replay_kl": 1.0273778570990544e-05, + "gradient_norm": 0.000258271669736132 + }, + { + "step": 478, + "loss": 1.8275630282005295e-05, + "target_ce": 8.026717296161223e-06, + "replay_kl": 1.0248913895338774e-05, + "gradient_norm": 0.00025759998243302107 + }, + { + "step": 479, + "loss": 1.8256527255289257e-05, + "target_ce": 8.026717296161223e-06, + "replay_kl": 1.0229809049633332e-05, + "gradient_norm": 0.00025733065558597445 + }, + { + "step": 480, + "loss": 1.8195169104728848e-05, + "target_ce": 7.986980563146062e-06, + "replay_kl": 1.0208188541582786e-05, + "gradient_norm": 0.0002564513706602156 + }, + { + "step": 481, + "loss": 1.8178048776462674e-05, + "target_ce": 7.986980563146062e-06, + "replay_kl": 1.0191069122811314e-05, + "gradient_norm": 0.0002560154825914651 + }, + { + "step": 482, + "loss": 1.8114853446604684e-05, + "target_ce": 7.947245649120305e-06, + "replay_kl": 1.0167608706979081e-05, + "gradient_norm": 0.00025445016217418015 + }, + { + "step": 483, + "loss": 1.8103459296980873e-05, + "target_ce": 7.947245649120305e-06, + "replay_kl": 1.015621455735527e-05, + "gradient_norm": 0.0002538170956540853 + }, + { + "step": 484, + "loss": 1.8072572856908664e-05, + "target_ce": 7.947245649120305e-06, + "replay_kl": 1.0125328117283061e-05, + "gradient_norm": 0.0002533117076382041 + }, + { + "step": 485, + "loss": 1.8012106011155993e-05, + "target_ce": 7.907508916105144e-06, + "replay_kl": 1.0104597095050849e-05, + "gradient_norm": 0.00025264715077355504 + }, + { + "step": 486, + "loss": 1.7914473573910072e-05, + "target_ce": 7.828037269064225e-06, + "replay_kl": 1.0086436304845847e-05, + "gradient_norm": 0.00025125633692368865 + }, + { + "step": 487, + "loss": 1.7889185983221978e-05, + "target_ce": 7.828037269064225e-06, + "replay_kl": 1.0061148714157753e-05, + "gradient_norm": 0.00025061023188754916 + }, + { + "step": 488, + "loss": 1.783041443559341e-05, + "target_ce": 7.788300536049064e-06, + "replay_kl": 1.0042112990049645e-05, + "gradient_norm": 0.00025003027985803783 + }, + { + "step": 489, + "loss": 1.7810511053539813e-05, + "target_ce": 7.788300536049064e-06, + "replay_kl": 1.0022209607996047e-05, + "gradient_norm": 0.00024962585303001106 + }, + { + "step": 490, + "loss": 1.7785821910365485e-05, + "target_ce": 7.788300536049064e-06, + "replay_kl": 9.99752137431642e-06, + "gradient_norm": 0.00024891781504265964 + }, + { + "step": 491, + "loss": 1.7780035705072805e-05, + "target_ce": 7.788300536049064e-06, + "replay_kl": 9.991735169023741e-06, + "gradient_norm": 0.00024858940741978586 + }, + { + "step": 492, + "loss": 1.7700342141324654e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.951776519301347e-06, + "gradient_norm": 0.00024730610311962664 + }, + { + "step": 493, + "loss": 1.76981084223371e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.949543709808495e-06, + "gradient_norm": 0.0002468882012180984 + }, + { + "step": 494, + "loss": 1.7684418708086014e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.93585490505211e-06, + "gradient_norm": 0.000246475450694561 + }, + { + "step": 495, + "loss": 1.7664782717474736e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.916218004946131e-06, + "gradient_norm": 0.0002459024253766984 + }, + { + "step": 496, + "loss": 1.7640501027926803e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.891935405903496e-06, + "gradient_norm": 0.00024545282940380275 + }, + { + "step": 497, + "loss": 1.7615366232348606e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.866801519820001e-06, + "gradient_norm": 0.0002450411848258227 + }, + { + "step": 498, + "loss": 1.7607402696739882e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.858838893705979e-06, + "gradient_norm": 0.0002446116122882813 + }, + { + "step": 499, + "loss": 1.7587710317457095e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.83914560492849e-06, + "gradient_norm": 0.0002441757533233613 + }, + { + "step": 500, + "loss": 1.7569680494489148e-05, + "target_ce": 7.748564712528605e-06, + "replay_kl": 9.821116691455245e-06, + "gradient_norm": 0.00024357979418709874 + }, + { + "step": 501, + "loss": 1.7477832443546504e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.808739378058817e-06, + "gradient_norm": 0.0002415260678390041 + }, + { + "step": 502, + "loss": 1.7453974578529596e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.784880603547208e-06, + "gradient_norm": 0.00024097083951346576 + }, + { + "step": 503, + "loss": 1.7442904209019616e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.77381114353193e-06, + "gradient_norm": 0.0002406371640972793 + }, + { + "step": 504, + "loss": 1.7405069229425862e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.735975254443474e-06, + "gradient_norm": 0.00024024676531553268 + }, + { + "step": 505, + "loss": 1.739082290441729e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.721729838929605e-06, + "gradient_norm": 0.0002398352517047897 + }, + { + "step": 506, + "loss": 1.737678758217953e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.707693607197143e-06, + "gradient_norm": 0.0002392430615145713 + }, + { + "step": 507, + "loss": 1.736413105390966e-05, + "target_ce": 7.669093065487687e-06, + "replay_kl": 9.695037078927271e-06, + "gradient_norm": 0.0002389272558502853 + }, + { + "step": 508, + "loss": 1.7309232134721242e-05, + "target_ce": 7.629357696714578e-06, + "replay_kl": 9.679873983259313e-06, + "gradient_norm": 0.00023814404266886413 + }, + { + "step": 509, + "loss": 1.728957795421593e-05, + "target_ce": 7.629357696714578e-06, + "replay_kl": 9.660219802754e-06, + "gradient_norm": 0.00023772528220433742 + }, + { + "step": 510, + "loss": 1.7275955542572774e-05, + "target_ce": 7.629357696714578e-06, + "replay_kl": 9.646598300605547e-06, + "gradient_norm": 0.0002374552859691903 + }, + { + "step": 511, + "loss": 1.7256128558074124e-05, + "target_ce": 7.629357696714578e-06, + "replay_kl": 9.626770406612195e-06, + "gradient_norm": 0.00023689650697633624 + }, + { + "step": 512, + "loss": 1.7208927602041513e-05, + "target_ce": 7.589621873194119e-06, + "replay_kl": 9.619305274100043e-06, + "gradient_norm": 0.0002356433542445302 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/run.json new file mode 100644 index 0000000000000000000000000000000000000000..ed1aadf8ae4ef856528cd620718f470eb2766953 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-edit/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_familiar-01", + "arm": "edit", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "ed5297f22b8901d94a7fa925dd50bdb8e1605e155194f58ca3fbdef12e71a1b4", + "new_fact_sha256": "8d5e1029ff84222029524c0da8ba5a4a1eb35743326cd1fb1c684984615faeba", + "target_batch_sha256": "eaf1a48db12b584a266eac5115291fccabefc31a4c55c2d973f0cd208759a518", + "replay_batch_sha256": "4d428db81460b6674b6b2e1944ae52d379012f3b4e23da718fe3239f2861cdfc", + "parent_reference_sha256": "df728ab8802f4d81ccad836e277e17dc98a8195e281312a7da6866163840e1c9", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..3d4eb00d110c3152b36858dca4afea935d90fd5f --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_familiar-01", + "role": "second", + "stratum": "familiar", + "lr": 0.0001, + "arm": "sham", + "path": "second_familiar-01/lr0.0001-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.099436753473128e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.52259349822998 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9712793733681462, + "accuracy": 0.9712793733681462, + "answer_nll": 0.11213868111371994 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.393512725830078, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.83984375, + "accuracy": 0.83984375, + "answer_nll": 0.5477449893951416 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.1588391363620758 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.730276107788086, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012120875908294693 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.603922843933105, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020066826255060732 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004306710325181484 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004194650682620704 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "943743e710960502d294e5dc7917750cd18859411c90822b5974ceb653057f15", + "delta_l2": 0.4595972001552582, + "tensor_file_sha256": "617bb997df9c7ceb8ddc72301992bba9dcee89dc2e7a121ab804ffc357314e8e" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..1d9ff1f28ba0a1727c185a1f34db9f3ca43d7a0e --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002790300059132278 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.27085304260254 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9725848563968669, + "accuracy": 0.9725848563968669, + "answer_nll": 0.10965170711278915 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.960369110107422, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5290288925170898 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.16985633969306946 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.282621383666992, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.323178190039471e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.538900375366211, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019393446564208716 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004320436273701489 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00037724178400821984 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.245195097813848e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.465718269348145 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9634464751958225, + "accuracy": 0.9634464751958225, + "answer_nll": 0.13268713653087616 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.3574800491333, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.837890625, + "accuracy": 0.837890625, + "answer_nll": 0.5858954191207886 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9534883720930233, + "accuracy": 0.9534883720930233, + "answer_nll": 0.18694283068180084 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.861897468566895, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011859231744892895 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.559233665466309, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002085337764583528 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004314813413657248 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004626072768587619 + } + }, + "model_sha256": "2d96a552f759b4b579c38e07b11b3507686fb53712a8fd733f6aeada32d11641", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 4.794020242115948e-06, + "target_ce": 3.5762716379394988e-06, + "replay_kl": 1.2177487178632873e-06, + "gradient_norm": 0.00011583623563637957 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.3378546504536644e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.441149711608887 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9686684073107049, + "accuracy": 0.9686684073107049, + "answer_nll": 0.11769687384366989 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.654053688049316, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.84375, + "accuracy": 0.84375, + "answer_nll": 0.5535093545913696 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.1671440750360489 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.100092887878418, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011149334022775292 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.946661949157715, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020126384333707392 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043230390292592347 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00042470297194086015 + } + }, + "model_sha256": "214f23d9a7de1d07d49637874b6f393937d5c3214098aa8cc5bfea3a3a175b1c", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 2.7453884285932872e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.612056787005713e-07, + "gradient_norm": 1.3029541150899604e-05 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.099436753473128e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.52259349822998 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9712793733681462, + "accuracy": 0.9712793733681462, + "answer_nll": 0.11213868111371994 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.393512725830078, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.83984375, + "accuracy": 0.83984375, + "answer_nll": 0.5477449893951416 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.1588391363620758 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.730276107788086, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012120875908294693 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.603922843933105, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020066826255060732 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004306710325181484 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004194650682620704 + } + }, + "model_sha256": "943743e710960502d294e5dc7917750cd18859411c90822b5974ceb653057f15", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 2.208469140896341e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.8191364858921588e-07, + "gradient_norm": 6.354427750920877e-05 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..eb5a48cf71978f28ab7293abff35e3df93d30473 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 9.861280705081299e-05, + "target_ce": 9.861280705081299e-05, + "replay_kl": 0.0, + "gradient_norm": 0.008467021398246288 + }, + { + "step": 2, + "loss": 2.969124761875719e-05, + "target_ce": 2.7457108444650657e-05, + "replay_kl": 2.2341394014802063e-06, + "gradient_norm": 0.001369075383991003 + }, + { + "step": 3, + "loss": 2.0256435163901187e-05, + "target_ce": 1.5934103430481628e-05, + "replay_kl": 4.322331278672209e-06, + "gradient_norm": 0.0008765773382037878 + }, + { + "step": 4, + "loss": 1.6392345060012303e-05, + "target_ce": 1.1960562005697284e-05, + "replay_kl": 4.431783054315019e-06, + "gradient_norm": 0.0007026360253803432 + }, + { + "step": 5, + "loss": 1.4070395991439e-05, + "target_ce": 1.009298375720391e-05, + "replay_kl": 3.977411779487738e-06, + "gradient_norm": 0.0006835141102783382 + }, + { + "step": 6, + "loss": 1.2256537957000546e-05, + "target_ce": 9.05985234567197e-06, + "replay_kl": 3.196685156581225e-06, + "gradient_norm": 0.0004254391242284328 + }, + { + "step": 7, + "loss": 1.1262650332355406e-05, + "target_ce": 8.185662409232464e-06, + "replay_kl": 3.0769879231229424e-06, + "gradient_norm": 0.00044685803004540503 + }, + { + "step": 8, + "loss": 1.0543567441345658e-05, + "target_ce": 7.549885140178958e-06, + "replay_kl": 2.9936825285403756e-06, + "gradient_norm": 0.000321998872095719 + }, + { + "step": 9, + "loss": 1.015327052300563e-05, + "target_ce": 7.033316705928883e-06, + "replay_kl": 3.1199540444504237e-06, + "gradient_norm": 0.0003950524842366576 + }, + { + "step": 10, + "loss": 9.71802364801988e-06, + "target_ce": 6.635956651734887e-06, + "replay_kl": 3.082067223658669e-06, + "gradient_norm": 0.0003264096740167588 + }, + { + "step": 11, + "loss": 9.292943104810547e-06, + "target_ce": 6.318066880339757e-06, + "replay_kl": 2.974875997097115e-06, + "gradient_norm": 0.000279461033642292 + }, + { + "step": 12, + "loss": 8.954846634878777e-06, + "target_ce": 6.0796505749749485e-06, + "replay_kl": 2.875196287277504e-06, + "gradient_norm": 0.0002916758821811527 + }, + { + "step": 13, + "loss": 8.624573638371658e-06, + "target_ce": 5.92070637139841e-06, + "replay_kl": 2.7038672669732478e-06, + "gradient_norm": 0.0002214210544480011 + }, + { + "step": 14, + "loss": 8.296306077681947e-06, + "target_ce": 5.64255287827109e-06, + "replay_kl": 2.653753426784533e-06, + "gradient_norm": 0.0002830609737429768 + }, + { + "step": 15, + "loss": 8.044205969781615e-06, + "target_ce": 5.52334449821501e-06, + "replay_kl": 2.5208610168192536e-06, + "gradient_norm": 0.00023987391614355147 + }, + { + "step": 16, + "loss": 7.81941162131261e-06, + "target_ce": 5.404136118158931e-06, + "replay_kl": 2.4152757305273553e-06, + "gradient_norm": 0.00022037728922441602 + }, + { + "step": 17, + "loss": 7.556566743005533e-06, + "target_ce": 5.245191914582392e-06, + "replay_kl": 2.311375055796816e-06, + "gradient_norm": 0.00023900516680441797 + }, + { + "step": 18, + "loss": 7.191154054453364e-06, + "target_ce": 5.0067742449755315e-06, + "replay_kl": 2.184379809477832e-06, + "gradient_norm": 0.00018252020527143031 + }, + { + "step": 19, + "loss": 7.036545866867527e-06, + "target_ce": 4.887566319666803e-06, + "replay_kl": 2.1489795472007245e-06, + "gradient_norm": 0.00023736093135084957 + }, + { + "step": 20, + "loss": 6.7603787101688795e-06, + "target_ce": 4.7683574848633725e-06, + "replay_kl": 1.9920214526791824e-06, + "gradient_norm": 0.00018763633852358907 + }, + { + "step": 21, + "loss": 6.475185273302486e-06, + "target_ce": 4.609412826539483e-06, + "replay_kl": 1.8657723330761655e-06, + "gradient_norm": 0.00016590715677011758 + }, + { + "step": 22, + "loss": 6.3212396526068915e-06, + "target_ce": 4.5299407247512136e-06, + "replay_kl": 1.791298927855678e-06, + "gradient_norm": 0.00019089775742031634 + }, + { + "step": 23, + "loss": 6.012872745486675e-06, + "target_ce": 4.331259788159514e-06, + "replay_kl": 1.681612957327161e-06, + "gradient_norm": 0.0001401653280481696 + }, + { + "step": 24, + "loss": 5.916620466450695e-06, + "target_ce": 4.291523055144353e-06, + "replay_kl": 1.6250976386800176e-06, + "gradient_norm": 0.0001728781935526058 + }, + { + "step": 25, + "loss": 5.74828027311014e-06, + "target_ce": 4.2120509533560835e-06, + "replay_kl": 1.5362290923803812e-06, + "gradient_norm": 0.0001381352194584906 + }, + { + "step": 26, + "loss": 5.604134003078798e-06, + "target_ce": 4.132578851567814e-06, + "replay_kl": 1.4715551515109837e-06, + "gradient_norm": 0.00013509709970094264 + }, + { + "step": 27, + "loss": 5.431224053609185e-06, + "target_ce": 4.013370016764384e-06, + "replay_kl": 1.4178540368448012e-06, + "gradient_norm": 0.00014138781989458948 + }, + { + "step": 28, + "loss": 5.195389348955359e-06, + "target_ce": 3.854424903693143e-06, + "replay_kl": 1.3409643315753783e-06, + "gradient_norm": 0.00010191610635956749 + }, + { + "step": 29, + "loss": 5.079415586806135e-06, + "target_ce": 3.7749525745311985e-06, + "replay_kl": 1.3044631259617745e-06, + "gradient_norm": 0.00012613895523827523 + }, + { + "step": 30, + "loss": 4.959422767569777e-06, + "target_ce": 3.6954800179955782e-06, + "replay_kl": 1.2639428632610361e-06, + "gradient_norm": 9.553582640364766e-05 + }, + { + "step": 31, + "loss": 4.913082648272393e-06, + "target_ce": 3.6557439671014436e-06, + "replay_kl": 1.2573387948577874e-06, + "gradient_norm": 0.0001047272962750867 + }, + { + "step": 32, + "loss": 4.794020242115948e-06, + "target_ce": 3.5762716379394988e-06, + "replay_kl": 1.2177487178632873e-06, + "gradient_norm": 0.00011583623563637957 + }, + { + "step": 33, + "loss": 4.693271421274403e-06, + "target_ce": 3.5365353596716886e-06, + "replay_kl": 1.1567361752895522e-06, + "gradient_norm": 8.099985279841349e-05 + }, + { + "step": 34, + "loss": 4.650788469007239e-06, + "target_ce": 3.5365353596716886e-06, + "replay_kl": 1.1142529956487124e-06, + "gradient_norm": 9.953223343472928e-05 + }, + { + "step": 35, + "loss": 4.53482789453119e-06, + "target_ce": 3.4570628031360684e-06, + "replay_kl": 1.0777652050819597e-06, + "gradient_norm": 6.999989273026586e-05 + }, + { + "step": 36, + "loss": 4.4588505261344835e-06, + "target_ce": 3.4173265248682583e-06, + "replay_kl": 1.0415242286399007e-06, + "gradient_norm": 7.895231829024851e-05 + }, + { + "step": 37, + "loss": 4.430699846125208e-06, + "target_ce": 3.4173265248682583e-06, + "replay_kl": 1.013373548630625e-06, + "gradient_norm": 7.714451203355566e-05 + }, + { + "step": 38, + "loss": 4.322637323639356e-06, + "target_ce": 3.337853968332638e-06, + "replay_kl": 9.84783582680393e-07, + "gradient_norm": 7.558143988717347e-05 + }, + { + "step": 39, + "loss": 4.2990786823793314e-06, + "target_ce": 3.337853968332638e-06, + "replay_kl": 9.612249414203689e-07, + "gradient_norm": 7.573590846732259e-05 + }, + { + "step": 40, + "loss": 4.150945187575417e-06, + "target_ce": 3.218645360902883e-06, + "replay_kl": 9.322999972027901e-07, + "gradient_norm": 5.573706948780455e-05 + }, + { + "step": 41, + "loss": 4.096608790860046e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 9.176997082249727e-07, + "gradient_norm": 6.924473564140499e-05 + }, + { + "step": 42, + "loss": 4.0298327803611755e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 8.906601465241692e-07, + "gradient_norm": 5.559255077969283e-05 + }, + { + "step": 43, + "loss": 3.983067472290713e-06, + "target_ce": 3.0994362987257773e-06, + "replay_kl": 8.836312872517738e-07, + "gradient_norm": 6.30549038760364e-05 + }, + { + "step": 44, + "loss": 3.952352471969789e-06, + "target_ce": 3.0994362987257773e-06, + "replay_kl": 8.529162869308493e-07, + "gradient_norm": 5.8980222092941403e-05 + }, + { + "step": 45, + "loss": 3.923980784747982e-06, + "target_ce": 3.0994362987257773e-06, + "replay_kl": 8.245444291787862e-07, + "gradient_norm": 5.4269054089672863e-05 + }, + { + "step": 46, + "loss": 3.864478458126541e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 8.047781534514797e-07, + "gradient_norm": 5.436626452137716e-05 + }, + { + "step": 47, + "loss": 3.843866579700261e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 7.841665592422942e-07, + "gradient_norm": 4.47812672064174e-05 + }, + { + "step": 48, + "loss": 3.7852892091905233e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 7.653253533135285e-07, + "gradient_norm": 5.655143831972964e-05 + }, + { + "step": 49, + "loss": 3.779858616326237e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 7.598949878229178e-07, + "gradient_norm": 3.8543537812074646e-05 + }, + { + "step": 50, + "loss": 3.680369218272972e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 7.398782031486917e-07, + "gradient_norm": 4.902550790575333e-05 + }, + { + "step": 51, + "loss": 3.662451490527019e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 7.219604754027387e-07, + "gradient_norm": 3.383730654604733e-05 + }, + { + "step": 52, + "loss": 3.6514375096885487e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 7.109464945642685e-07, + "gradient_norm": 5.345318277250044e-05 + }, + { + "step": 53, + "loss": 3.634704398791655e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 6.942133836673747e-07, + "gradient_norm": 2.9980337785673328e-05 + }, + { + "step": 54, + "loss": 3.67845223081531e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 6.982248805798008e-07, + "gradient_norm": 5.1568895287346095e-05 + }, + { + "step": 55, + "loss": 3.658527703009895e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 6.783002390875481e-07, + "gradient_norm": 3.133475183858536e-05 + }, + { + "step": 56, + "loss": 3.614976776589174e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 6.744857614648936e-07, + "gradient_norm": 4.9539059546077624e-05 + }, + { + "step": 57, + "loss": 3.5953382848674664e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 6.548472697431862e-07, + "gradient_norm": 3.422006921027787e-05 + }, + { + "step": 58, + "loss": 3.586662387533579e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 6.461713724092988e-07, + "gradient_norm": 5.0201724661746994e-05 + }, + { + "step": 59, + "loss": 3.5802750062430277e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 6.397839342753286e-07, + "gradient_norm": 2.997735828103032e-05 + }, + { + "step": 60, + "loss": 3.5245709568698658e-06, + "target_ce": 2.9007549073867267e-06, + "replay_kl": 6.238159926397202e-07, + "gradient_norm": 4.3862059101229534e-05 + }, + { + "step": 61, + "loss": 3.5235484574513976e-06, + "target_ce": 2.9007549073867267e-06, + "replay_kl": 6.227934363778331e-07, + "gradient_norm": 2.868080628104508e-05 + }, + { + "step": 62, + "loss": 3.4815338949556462e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.205153795235674e-07, + "gradient_norm": 3.55662741640117e-05 + }, + { + "step": 63, + "loss": 3.4654647151910467e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.044460292287113e-07, + "gradient_norm": 3.096020736848004e-05 + }, + { + "step": 64, + "loss": 3.4196084470750066e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 5.983260393804812e-07, + "gradient_norm": 3.5697976272786036e-05 + }, + { + "step": 65, + "loss": 3.4048466659442056e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 5.835644287799369e-07, + "gradient_norm": 2.2471072952612303e-05 + }, + { + "step": 66, + "loss": 3.3685796552163083e-06, + "target_ce": 2.781545845209621e-06, + "replay_kl": 5.870337531632686e-07, + "gradient_norm": 2.9114333301549777e-05 + }, + { + "step": 67, + "loss": 3.322284783280338e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.804749889648519e-07, + "gradient_norm": 1.942810558830388e-05 + }, + { + "step": 68, + "loss": 3.320644736959366e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.788348289570422e-07, + "gradient_norm": 2.1822863345732912e-05 + }, + { + "step": 69, + "loss": 3.310451120341895e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.686413260264089e-07, + "gradient_norm": 2.046455119852908e-05 + }, + { + "step": 70, + "loss": 3.301646074760356e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.598362804448698e-07, + "gradient_norm": 2.196916648244951e-05 + }, + { + "step": 71, + "loss": 3.2888190162339015e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.470092219184153e-07, + "gradient_norm": 1.916394103318453e-05 + }, + { + "step": 72, + "loss": 3.284883177911979e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.430733835964929e-07, + "gradient_norm": 1.8154163626604713e-05 + }, + { + "step": 73, + "loss": 3.27914835906995e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.373385079110449e-07, + "gradient_norm": 1.634470208955463e-05 + }, + { + "step": 74, + "loss": 3.27841985381383e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.366101163417625e-07, + "gradient_norm": 1.6596402929280885e-05 + }, + { + "step": 75, + "loss": 3.2725563414714998e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.307466039994324e-07, + "gradient_norm": 1.5231978977681138e-05 + }, + { + "step": 76, + "loss": 3.2545060548727633e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.126962037138583e-07, + "gradient_norm": 2.1377778466558084e-05 + }, + { + "step": 77, + "loss": 3.21450897899922e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 5.124355766383815e-07, + "gradient_norm": 2.385355401202105e-05 + }, + { + "step": 78, + "loss": 3.208374209862086e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 5.063009780315042e-07, + "gradient_norm": 1.6104864698718302e-05 + }, + { + "step": 79, + "loss": 3.2098585052153794e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 5.077852165413788e-07, + "gradient_norm": 2.0501362087088637e-05 + }, + { + "step": 80, + "loss": 3.202021844117553e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 4.999486122869712e-07, + "gradient_norm": 1.628334757697303e-05 + }, + { + "step": 81, + "loss": 3.189565859429422e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 4.874925139120023e-07, + "gradient_norm": 2.0148414478171617e-05 + }, + { + "step": 82, + "loss": 3.193631982867373e-06, + "target_ce": 2.7020732886740007e-06, + "replay_kl": 4.915586373499536e-07, + "gradient_norm": 1.4396848200703971e-05 + }, + { + "step": 83, + "loss": 3.151256350975018e-06, + "target_ce": 2.662336783032515e-06, + "replay_kl": 4.889195679425029e-07, + "gradient_norm": 2.5115685275522992e-05 + }, + { + "step": 84, + "loss": 3.15455849886348e-06, + "target_ce": 2.662336783032515e-06, + "replay_kl": 4.92221715830965e-07, + "gradient_norm": 1.6158477592398413e-05 + }, + { + "step": 85, + "loss": 3.135286988253938e-06, + "target_ce": 2.662336783032515e-06, + "replay_kl": 4.729502620648418e-07, + "gradient_norm": 2.399868390057236e-05 + }, + { + "step": 86, + "loss": 3.1336867323261686e-06, + "target_ce": 2.662336783032515e-06, + "replay_kl": 4.7135000613707234e-07, + "gradient_norm": 2.3317890736507252e-05 + }, + { + "step": 87, + "loss": 3.1252284315996803e-06, + "target_ce": 2.662336783032515e-06, + "replay_kl": 4.628917054105841e-07, + "gradient_norm": 1.4215868759492878e-05 + }, + { + "step": 88, + "loss": 3.0804753805568907e-06, + "target_ce": 2.6226007321383804e-06, + "replay_kl": 4.5787459157509147e-07, + "gradient_norm": 1.859351141320076e-05 + }, + { + "step": 89, + "loss": 3.0306937333079986e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 4.4782939312426606e-07, + "gradient_norm": 1.5582325431751087e-05 + }, + { + "step": 90, + "loss": 2.989027279909351e-06, + "target_ce": 2.5431279482290847e-06, + "replay_kl": 4.458992748368473e-07, + "gradient_norm": 1.4128152542980388e-05 + }, + { + "step": 91, + "loss": 2.9448149234667653e-06, + "target_ce": 2.5033916699612746e-06, + "replay_kl": 4.41423338770619e-07, + "gradient_norm": 1.3060712262813468e-05 + }, + { + "step": 92, + "loss": 2.8995364118600264e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.358809064797242e-07, + "gradient_norm": 1.3245263289718423e-05 + }, + { + "step": 93, + "loss": 2.887871232815087e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.2421584112162236e-07, + "gradient_norm": 1.3628027772938367e-05 + }, + { + "step": 94, + "loss": 2.8952356387890177e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.315803323606815e-07, + "gradient_norm": 1.3096650036459323e-05 + }, + { + "step": 95, + "loss": 2.891008762162528e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.2735331362564466e-07, + "gradient_norm": 1.5118808732950129e-05 + }, + { + "step": 96, + "loss": 2.885573621824733e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.2191817328784964e-07, + "gradient_norm": 1.5360064935521223e-05 + }, + { + "step": 97, + "loss": 2.8845017823186936e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.208463906252291e-07, + "gradient_norm": 1.7629412468522787e-05 + }, + { + "step": 98, + "loss": 2.883700744860107e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.2004541001006146e-07, + "gradient_norm": 1.3759498870058451e-05 + }, + { + "step": 99, + "loss": 2.877898850783822e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.142434306686482e-07, + "gradient_norm": 2.2005668142810464e-05 + }, + { + "step": 100, + "loss": 2.8665240279224236e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.028685793855402e-07, + "gradient_norm": 1.2468813110899646e-05 + }, + { + "step": 101, + "loss": 2.8693157219095156e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.056602733726322e-07, + "gradient_norm": 1.4553564142261166e-05 + }, + { + "step": 102, + "loss": 2.864628186216578e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.009728797882417e-07, + "gradient_norm": 1.286297629121691e-05 + }, + { + "step": 103, + "loss": 2.85241503661382e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 3.887595312335179e-07, + "gradient_norm": 2.242194204882253e-05 + }, + { + "step": 104, + "loss": 2.8386577923811274e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 3.7500245753108175e-07, + "gradient_norm": 1.6789663277450018e-05 + }, + { + "step": 105, + "loss": 2.8518606995930895e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 3.8820539316475333e-07, + "gradient_norm": 1.6079138731583953e-05 + }, + { + "step": 106, + "loss": 2.8508009108918486e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 3.8714551919838414e-07, + "gradient_norm": 2.82203563983785e-05 + }, + { + "step": 107, + "loss": 2.850984856195282e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 3.8732940765839885e-07, + "gradient_norm": 1.9741282812901773e-05 + }, + { + "step": 108, + "loss": 2.818426764861215e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.945077082789794e-07, + "gradient_norm": 1.7285025023738854e-05 + }, + { + "step": 109, + "loss": 2.818512484736857e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.9459337131120265e-07, + "gradient_norm": 3.2635485695209354e-05 + }, + { + "step": 110, + "loss": 2.8072029181203106e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.832838899597846e-07, + "gradient_norm": 1.9561146473279223e-05 + }, + { + "step": 111, + "loss": 2.8061979264748516e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.822788130491972e-07, + "gradient_norm": 1.6116748156491667e-05 + }, + { + "step": 112, + "loss": 2.8158945042378036e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.919753339687304e-07, + "gradient_norm": 1.3854405551683158e-05 + }, + { + "step": 113, + "loss": 2.8076151465938892e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.83695976324816e-07, + "gradient_norm": 1.663451075728517e-05 + }, + { + "step": 114, + "loss": 2.796359012791072e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.7243998463054595e-07, + "gradient_norm": 2.386242886132095e-05 + }, + { + "step": 115, + "loss": 2.8052693323843414e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.813501621152682e-07, + "gradient_norm": 1.5184895346465055e-05 + }, + { + "step": 116, + "loss": 2.806134489219403e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.822153189503297e-07, + "gradient_norm": 1.6148325812537223e-05 + }, + { + "step": 117, + "loss": 2.7999790290778037e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.7606000091727765e-07, + "gradient_norm": 1.613933090993669e-05 + }, + { + "step": 118, + "loss": 2.790477537928382e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.665584245027276e-07, + "gradient_norm": 1.6111489458126016e-05 + }, + { + "step": 119, + "loss": 2.796246235448052e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.723270936006884e-07, + "gradient_norm": 1.3710880921280477e-05 + }, + { + "step": 120, + "loss": 2.7803837383544305e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.5646471019390447e-07, + "gradient_norm": 1.1778312000387814e-05 + }, + { + "step": 121, + "loss": 2.7882554149982752e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.6433630157262087e-07, + "gradient_norm": 1.2866791621490847e-05 + }, + { + "step": 122, + "loss": 2.788222900562687e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.643038724021608e-07, + "gradient_norm": 1.3064623999525793e-05 + }, + { + "step": 123, + "loss": 2.7731325644708704e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.4921353631034435e-07, + "gradient_norm": 1.3064704035059549e-05 + }, + { + "step": 124, + "loss": 2.7800083444162738e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.5608928783403826e-07, + "gradient_norm": 1.46519732879824e-05 + }, + { + "step": 125, + "loss": 2.790889539028285e-06, + "target_ce": 2.4239191134256544e-06, + "replay_kl": 3.669704256026307e-07, + "gradient_norm": 1.7609780115890317e-05 + }, + { + "step": 126, + "loss": 2.7554938242246863e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.713110743319703e-07, + "gradient_norm": 1.2287762729101814e-05 + }, + { + "step": 127, + "loss": 2.747731741692405e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.635488781128515e-07, + "gradient_norm": 1.905907629407011e-05 + }, + { + "step": 128, + "loss": 2.7453884285932872e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.612056787005713e-07, + "gradient_norm": 1.3029541150899604e-05 + }, + { + "step": 129, + "loss": 2.739574028964853e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.553913074938464e-07, + "gradient_norm": 1.597390837559942e-05 + }, + { + "step": 130, + "loss": 2.7455321287561674e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.6134923675490427e-07, + "gradient_norm": 1.4752582501387224e-05 + }, + { + "step": 131, + "loss": 2.7536907509784214e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.6950800108570547e-07, + "gradient_norm": 1.9411165339988656e-05 + }, + { + "step": 132, + "loss": 2.7433618470240617e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.591789550227986e-07, + "gradient_norm": 1.5608637113473378e-05 + }, + { + "step": 133, + "loss": 2.742917786235921e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.5873495107807685e-07, + "gradient_norm": 1.5861733118072152e-05 + }, + { + "step": 134, + "loss": 2.7306164156470913e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.464336657543754e-07, + "gradient_norm": 1.4804836609982885e-05 + }, + { + "step": 135, + "loss": 2.7409541871747933e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 3.5677129517353023e-07, + "gradient_norm": 2.2245552827371284e-05 + }, + { + "step": 136, + "loss": 2.6974064439855283e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.529600576257508e-07, + "gradient_norm": 2.3172198780230246e-05 + }, + { + "step": 137, + "loss": 2.6881243684329093e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.436780389165506e-07, + "gradient_norm": 1.4290476428868715e-05 + }, + { + "step": 138, + "loss": 2.6968955353368074e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.52449291085577e-07, + "gradient_norm": 2.1567964722635224e-05 + }, + { + "step": 139, + "loss": 2.693338274184498e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.4889194466813933e-07, + "gradient_norm": 3.643642776296474e-05 + }, + { + "step": 140, + "loss": 2.69132078756229e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.4687445804593153e-07, + "gradient_norm": 2.597767706902232e-05 + }, + { + "step": 141, + "loss": 2.6825646273209713e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.3811838306974096e-07, + "gradient_norm": 1.5687743143644184e-05 + }, + { + "step": 142, + "loss": 2.6865413929044735e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.4209494970127707e-07, + "gradient_norm": 2.531395512050949e-05 + }, + { + "step": 143, + "loss": 2.6846150831261184e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.401687251880503e-07, + "gradient_norm": 2.32409674936207e-05 + }, + { + "step": 144, + "loss": 2.686585730771185e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.421394865199545e-07, + "gradient_norm": 1.5124499441299122e-05 + }, + { + "step": 145, + "loss": 2.683276534298784e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.388302047824254e-07, + "gradient_norm": 3.0424063879763708e-05 + }, + { + "step": 146, + "loss": 2.6807185804500477e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.362721940902702e-07, + "gradient_norm": 4.228961915941909e-05 + }, + { + "step": 147, + "loss": 2.678047621884616e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.336013776333857e-07, + "gradient_norm": 2.1346810171962716e-05 + }, + { + "step": 148, + "loss": 2.67618224825128e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.3173600400004943e-07, + "gradient_norm": 2.3537133529316634e-05 + }, + { + "step": 149, + "loss": 2.6795730718731647e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.3512671393509663e-07, + "gradient_norm": 3.639461283455603e-05 + }, + { + "step": 150, + "loss": 2.680875695659779e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.364293093000015e-07, + "gradient_norm": 2.663495615706779e-05 + }, + { + "step": 151, + "loss": 2.6714717478171224e-06, + "target_ce": 2.3444463295163587e-06, + "replay_kl": 3.270254183007637e-07, + "gradient_norm": 1.140532003773842e-05 + }, + { + "step": 152, + "loss": 2.6343277568230405e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.296178761047486e-07, + "gradient_norm": 2.9729320885962807e-05 + }, + { + "step": 153, + "loss": 2.6296788746549282e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2496899393663625e-07, + "gradient_norm": 3.449331416049972e-05 + }, + { + "step": 154, + "loss": 2.6261614038958214e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.214515800209483e-07, + "gradient_norm": 1.3765386029263027e-05 + }, + { + "step": 155, + "loss": 2.63126503341482e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.265552948050754e-07, + "gradient_norm": 2.5617555365897715e-05 + }, + { + "step": 156, + "loss": 2.6299549062969163e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2524513926546206e-07, + "gradient_norm": 4.5741486246697605e-05 + }, + { + "step": 157, + "loss": 2.63351944340684e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2880970479709504e-07, + "gradient_norm": 4.294060272513889e-05 + }, + { + "step": 158, + "loss": 2.625053639349062e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.203438154741889e-07, + "gradient_norm": 2.1628824470099062e-05 + }, + { + "step": 159, + "loss": 2.6278789846401196e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2316921760866535e-07, + "gradient_norm": 1.6794811017462052e-05 + }, + { + "step": 160, + "loss": 2.6254883778165095e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.207784970982175e-07, + "gradient_norm": 3.4832202800316736e-05 + }, + { + "step": 161, + "loss": 2.6319721655454487e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2726222798373783e-07, + "gradient_norm": 4.5546756155090407e-05 + }, + { + "step": 162, + "loss": 2.6327040814067004e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2799420068840845e-07, + "gradient_norm": 3.893910616170615e-05 + }, + { + "step": 163, + "loss": 2.625681645440636e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.209718215657631e-07, + "gradient_norm": 2.0530613255687058e-05 + }, + { + "step": 164, + "loss": 2.625386514409911e-06, + "target_ce": 2.304709823874873e-06, + "replay_kl": 3.2067677580016607e-07, + "gradient_norm": 9.86057330010226e-06 + }, + { + "step": 165, + "loss": 2.5799922696023714e-06, + "target_ce": 2.264973545607063e-06, + "replay_kl": 3.1501869557359896e-07, + "gradient_norm": 2.0471679818001576e-05 + }, + { + "step": 166, + "loss": 2.5754441139724804e-06, + "target_ce": 2.264973545607063e-06, + "replay_kl": 3.1047051152199856e-07, + "gradient_norm": 1.6420515748905018e-05 + }, + { + "step": 167, + "loss": 2.5783635919651715e-06, + "target_ce": 2.264973545607063e-06, + "replay_kl": 3.133900463581085e-07, + "gradient_norm": 1.3299439160618931e-05 + }, + { + "step": 168, + "loss": 2.5916981485352153e-06, + "target_ce": 2.264973545607063e-06, + "replay_kl": 3.267246881932806e-07, + "gradient_norm": 1.4353976439451799e-05 + }, + { + "step": 169, + "loss": 2.551105126258335e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2586780207566335e-07, + "gradient_norm": 1.8869573978008702e-05 + }, + { + "step": 170, + "loss": 2.555974333517952e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.307371514438273e-07, + "gradient_norm": 2.0078887246199884e-05 + }, + { + "step": 171, + "loss": 2.5394451768079307e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.142077957818401e-07, + "gradient_norm": 1.1834813449240755e-05 + }, + { + "step": 172, + "loss": 2.554393859099946e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.291565917606931e-07, + "gradient_norm": 2.2109068595455028e-05 + }, + { + "step": 173, + "loss": 2.553330432419898e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.280931650806451e-07, + "gradient_norm": 3.7907742807874456e-05 + }, + { + "step": 174, + "loss": 2.5404217467439594e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.151845646698348e-07, + "gradient_norm": 3.789487527683377e-05 + }, + { + "step": 175, + "loss": 2.545297547840164e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.200602236574923e-07, + "gradient_norm": 1.8385533621767536e-05 + }, + { + "step": 176, + "loss": 2.546157702454366e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.209205203802412e-07, + "gradient_norm": 1.6312120351358317e-05 + }, + { + "step": 177, + "loss": 2.550787485233741e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2555016105106915e-07, + "gradient_norm": 3.2614494557492435e-05 + }, + { + "step": 178, + "loss": 2.538494300097227e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.1325703275797423e-07, + "gradient_norm": 3.113601997029036e-05 + }, + { + "step": 179, + "loss": 2.5489568997727474e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2371963243349455e-07, + "gradient_norm": 1.7157582988147624e-05 + }, + { + "step": 180, + "loss": 2.5387239475094248e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.134867654353002e-07, + "gradient_norm": 1.571819302625954e-05 + }, + { + "step": 181, + "loss": 2.544803010096075e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.1956574275682215e-07, + "gradient_norm": 2.9651888326043263e-05 + }, + { + "step": 182, + "loss": 2.5419085432076827e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.166713895552675e-07, + "gradient_norm": 2.6977133529726416e-05 + }, + { + "step": 183, + "loss": 2.539202796469908e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.139654722872365e-07, + "gradient_norm": 1.4278643902798649e-05 + }, + { + "step": 184, + "loss": 2.540923787819338e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.1568652048008516e-07, + "gradient_norm": 1.234813953487901e-05 + }, + { + "step": 185, + "loss": 2.5446283871133346e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.1939111977408174e-07, + "gradient_norm": 1.1890260793734342e-05 + }, + { + "step": 186, + "loss": 2.4978082819870906e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1230737818077614e-07, + "gradient_norm": 9.245215551345609e-06 + }, + { + "step": 187, + "loss": 2.4916164420574205e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.0611545298597775e-07, + "gradient_norm": 1.353496736555826e-05 + }, + { + "step": 188, + "loss": 2.4963035230030073e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.108025907749834e-07, + "gradient_norm": 1.7729349565343e-05 + }, + { + "step": 189, + "loss": 2.501149538147729e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.156484922328673e-07, + "gradient_norm": 1.8743066902970895e-05 + }, + { + "step": 190, + "loss": 2.493831289029913e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.083303283801797e-07, + "gradient_norm": 1.2617934771697037e-05 + }, + { + "step": 191, + "loss": 2.495353783160681e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.098528225109476e-07, + "gradient_norm": 1.2161465747340117e-05 + }, + { + "step": 192, + "loss": 2.4998612389026675e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1436030667464365e-07, + "gradient_norm": 3.462342283455655e-05 + }, + { + "step": 193, + "loss": 2.5001700123539194e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1466896643905784e-07, + "gradient_norm": 5.138123742653988e-05 + }, + { + "step": 194, + "loss": 2.4940547973528737e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.085537514380121e-07, + "gradient_norm": 5.6299715652130544e-05 + }, + { + "step": 195, + "loss": 2.495653461664915e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.101524441717629e-07, + "gradient_norm": 5.745543967350386e-05 + }, + { + "step": 196, + "loss": 2.4512989966751775e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.055343142932543e-07, + "gradient_norm": 5.5284919653786346e-05 + }, + { + "step": 197, + "loss": 2.458672952343477e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1290818469642545e-07, + "gradient_norm": 4.813726991415024e-05 + }, + { + "step": 198, + "loss": 2.4482533262926154e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0248850180214504e-07, + "gradient_norm": 3.89829401683528e-05 + }, + { + "step": 199, + "loss": 2.4477492388541577e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.01984584893944e-07, + "gradient_norm": 2.7162621336174197e-05 + }, + { + "step": 200, + "loss": 2.455636149534257e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0987138188720564e-07, + "gradient_norm": 1.5364883438451216e-05 + }, + { + "step": 201, + "loss": 2.4562264115957078e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.10461757635494e-07, + "gradient_norm": 1.2637966392503586e-05 + }, + { + "step": 202, + "loss": 2.4480661977577256e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.023014016889647e-07, + "gradient_norm": 2.450580541335512e-05 + }, + { + "step": 203, + "loss": 2.441785909468308e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.9602125550809433e-07, + "gradient_norm": 2.994748683704529e-05 + }, + { + "step": 204, + "loss": 2.4417972781520803e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.960326526135759e-07, + "gradient_norm": 3.1261559342965484e-05 + }, + { + "step": 205, + "loss": 2.4360083443752956e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.902435198848252e-07, + "gradient_norm": 3.259215736761689e-05 + }, + { + "step": 206, + "loss": 2.4334181034646463e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.876534495044325e-07, + "gradient_norm": 2.9666212867596187e-05 + }, + { + "step": 207, + "loss": 2.448110080877086e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0234548376029124e-07, + "gradient_norm": 2.364141255384311e-05 + }, + { + "step": 208, + "loss": 2.4362921067222487e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.9052728223177837e-07, + "gradient_norm": 1.7612919691600837e-05 + }, + { + "step": 209, + "loss": 2.4409901016042568e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.952254192223336e-07, + "gradient_norm": 1.1324440492899157e-05 + }, + { + "step": 210, + "loss": 2.4514602046110667e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.056953801205964e-07, + "gradient_norm": 1.533484464744106e-05 + }, + { + "step": 211, + "loss": 2.44472880694957e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.989641529893561e-07, + "gradient_norm": 3.073962579946965e-05 + }, + { + "step": 212, + "loss": 2.441079004711355e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.953143223294319e-07, + "gradient_norm": 5.5229120334843174e-05 + }, + { + "step": 213, + "loss": 2.4464395664836047e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.006747704148438e-07, + "gradient_norm": 6.938731530681252e-05 + }, + { + "step": 214, + "loss": 2.4559781195421237e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.102132950516534e-07, + "gradient_norm": 7.115264452295378e-05 + }, + { + "step": 215, + "loss": 2.4514083634130657e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.056437094528519e-07, + "gradient_norm": 5.874970156583004e-05 + }, + { + "step": 216, + "loss": 2.4438504624413326e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.980858369028283e-07, + "gradient_norm": 3.7139150663279e-05 + }, + { + "step": 217, + "loss": 2.4410526293650037e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.952879754047899e-07, + "gradient_norm": 2.267885793116875e-05 + }, + { + "step": 218, + "loss": 2.435712985970895e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.899482183238433e-07, + "gradient_norm": 1.238241748069413e-05 + }, + { + "step": 219, + "loss": 2.4379294245591154e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.9216465691206395e-07, + "gradient_norm": 1.3700299859920051e-05 + }, + { + "step": 220, + "loss": 2.4539019705116516e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.081372028646001e-07, + "gradient_norm": 2.0012352251796983e-05 + }, + { + "step": 221, + "loss": 2.4465118713123957e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.007471036653442e-07, + "gradient_norm": 2.0344032236607745e-05 + }, + { + "step": 222, + "loss": 2.439753416183521e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.9398864853646955e-07, + "gradient_norm": 2.564938404248096e-05 + }, + { + "step": 223, + "loss": 2.430515451123938e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.8475085400714306e-07, + "gradient_norm": 2.6875279218074866e-05 + }, + { + "step": 224, + "loss": 2.3959278223628644e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8989944667046075e-07, + "gradient_norm": 2.594095167296473e-05 + }, + { + "step": 225, + "loss": 2.398151536908699e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.921232180597144e-07, + "gradient_norm": 1.9157394490321167e-05 + }, + { + "step": 226, + "loss": 2.3966972548805643e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.906689360315795e-07, + "gradient_norm": 1.0996240234817378e-05 + }, + { + "step": 227, + "loss": 2.4011812911339803e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9515283017644833e-07, + "gradient_norm": 2.732125904003624e-05 + }, + { + "step": 228, + "loss": 2.395842557234573e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.898140678553318e-07, + "gradient_norm": 4.0503313357476145e-05 + }, + { + "step": 229, + "loss": 2.397620392002864e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9159207315387903e-07, + "gradient_norm": 5.101050192024559e-05 + }, + { + "step": 230, + "loss": 2.4001278688956518e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9409943635982927e-07, + "gradient_norm": 6.0102815041318536e-05 + }, + { + "step": 231, + "loss": 2.4052503704297123e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9922202315901814e-07, + "gradient_norm": 5.874402268091217e-05 + }, + { + "step": 232, + "loss": 2.40081953961635e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9479107865881815e-07, + "gradient_norm": 6.062423926778138e-05 + }, + { + "step": 233, + "loss": 2.4047712940955535e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9874286155973095e-07, + "gradient_norm": 6.421323632821441e-05 + }, + { + "step": 234, + "loss": 2.4049641069723293e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.989355607496691e-07, + "gradient_norm": 7.14385969331488e-05 + }, + { + "step": 235, + "loss": 2.3974587293196237e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.914302399403823e-07, + "gradient_norm": 6.400995334843174e-05 + }, + { + "step": 236, + "loss": 2.388117309237714e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.820888767018914e-07, + "gradient_norm": 4.442749195732176e-05 + }, + { + "step": 237, + "loss": 2.3858469830884133e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.798184937091719e-07, + "gradient_norm": 2.6010040528490208e-05 + }, + { + "step": 238, + "loss": 2.392147962382296e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8611958668989246e-07, + "gradient_norm": 1.7492771803517826e-05 + }, + { + "step": 239, + "loss": 2.3849092940508854e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.78880804671644e-07, + "gradient_norm": 4.2991268855985254e-05 + }, + { + "step": 240, + "loss": 2.3926056655909633e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8657717621172196e-07, + "gradient_norm": 7.65338700148277e-05 + }, + { + "step": 241, + "loss": 2.4037849470914807e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.977565145556582e-07, + "gradient_norm": 0.00010743671009549871 + }, + { + "step": 242, + "loss": 2.4151336219802033e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0910530313121853e-07, + "gradient_norm": 0.00013795394625049084 + }, + { + "step": 243, + "loss": 2.4251530703622848e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.1912460940475285e-07, + "gradient_norm": 0.00017301693151239306 + }, + { + "step": 244, + "loss": 2.4476553335261997e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.416268441469583e-07, + "gradient_norm": 0.0002153998939320445 + }, + { + "step": 245, + "loss": 2.480676585037145e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.746482093447412e-07, + "gradient_norm": 0.00025823741452768445 + }, + { + "step": 246, + "loss": 2.498243020454538e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.9221458791871555e-07, + "gradient_norm": 0.00029227606137283146 + }, + { + "step": 247, + "loss": 2.5362990072608227e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 4.3027051788158133e-07, + "gradient_norm": 0.0003083774936385453 + }, + { + "step": 248, + "loss": 2.487424580976949e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.8139614844112657e-07, + "gradient_norm": 0.00028414602275006473 + }, + { + "step": 249, + "loss": 2.455671392453951e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.496430451832566e-07, + "gradient_norm": 0.00021911977091804147 + }, + { + "step": 250, + "loss": 2.4009050321183167e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.948765427390754e-07, + "gradient_norm": 0.00011240233288845047 + }, + { + "step": 251, + "loss": 2.379262696194928e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.732342352373962e-07, + "gradient_norm": 2.002383189392276e-05 + }, + { + "step": 252, + "loss": 2.4057885639194865e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9976001769682625e-07, + "gradient_norm": 0.00012830932973884046 + }, + { + "step": 253, + "loss": 2.4352818854822544e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.292535097898508e-07, + "gradient_norm": 0.00019594795594457537 + }, + { + "step": 254, + "loss": 2.444866368023213e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.388378218005528e-07, + "gradient_norm": 0.00021221341739874333 + }, + { + "step": 255, + "loss": 2.414132040939876e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0810366524747224e-07, + "gradient_norm": 0.0001715842809062451 + }, + { + "step": 256, + "loss": 2.397721118541085e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9169268600526266e-07, + "gradient_norm": 9.609153494238853e-05 + }, + { + "step": 257, + "loss": 2.3803418116585817e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.743132654359215e-07, + "gradient_norm": 1.2885494470538106e-05 + }, + { + "step": 258, + "loss": 2.3857369342294987e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7970861538051395e-07, + "gradient_norm": 7.491718861274421e-05 + }, + { + "step": 259, + "loss": 2.4115970518323593e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0556870456166507e-07, + "gradient_norm": 0.00012374263314995915 + }, + { + "step": 260, + "loss": 2.4057583232206525e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.997298622631206e-07, + "gradient_norm": 0.0001361768809147179 + }, + { + "step": 261, + "loss": 2.3924778815853642e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8644944904954173e-07, + "gradient_norm": 0.00011062246630899608 + }, + { + "step": 262, + "loss": 2.376923475821968e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.708950717078551e-07, + "gradient_norm": 4.820876711164601e-05 + }, + { + "step": 263, + "loss": 2.3803381736797746e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7430985483078985e-07, + "gradient_norm": 3.604454468586482e-05 + }, + { + "step": 264, + "loss": 2.383048013143707e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7701955218617513e-07, + "gradient_norm": 9.531714749755338e-05 + }, + { + "step": 265, + "loss": 2.393470822426025e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.874424467336212e-07, + "gradient_norm": 0.00013203072012402117 + }, + { + "step": 266, + "loss": 2.4091907562251436e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.031623805327399e-07, + "gradient_norm": 0.00013703422155231237 + }, + { + "step": 267, + "loss": 2.3960412818269106e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9001284929108806e-07, + "gradient_norm": 9.740349923959002e-05 + }, + { + "step": 268, + "loss": 2.3781060463079484e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.720776990372542e-07, + "gradient_norm": 3.88821899832692e-05 + }, + { + "step": 269, + "loss": 2.371844175286242e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6581568590700044e-07, + "gradient_norm": 2.7535394110600464e-05 + }, + { + "step": 270, + "loss": 2.3848938326409552e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7886542852684215e-07, + "gradient_norm": 6.490316445706412e-05 + }, + { + "step": 271, + "loss": 2.3892275748949032e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.831991423590807e-07, + "gradient_norm": 7.739664579275995e-05 + }, + { + "step": 272, + "loss": 2.382038474024739e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.760099562237883e-07, + "gradient_norm": 6.625686364714056e-05 + }, + { + "step": 273, + "loss": 2.3823552055546315e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.763267161753902e-07, + "gradient_norm": 3.894799010595307e-05 + }, + { + "step": 274, + "loss": 2.375688154643285e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.696596652640437e-07, + "gradient_norm": 1.45183394124615e-05 + }, + { + "step": 275, + "loss": 2.370495622017188e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6446724632478436e-07, + "gradient_norm": 4.800241003977135e-05 + }, + { + "step": 276, + "loss": 2.3852705908211647e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.79242215128761e-07, + "gradient_norm": 6.896117702126503e-05 + }, + { + "step": 277, + "loss": 2.3795594188413816e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.735309578838496e-07, + "gradient_norm": 6.746236613253132e-05 + }, + { + "step": 278, + "loss": 2.3667828372708755e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6075437631334353e-07, + "gradient_norm": 3.806233871728182e-05 + }, + { + "step": 279, + "loss": 2.3711468202236574e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.651184729529632e-07, + "gradient_norm": 2.178503928007558e-05 + }, + { + "step": 280, + "loss": 2.3809764115867438e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7494803589434014e-07, + "gradient_norm": 6.682211824227124e-05 + }, + { + "step": 281, + "loss": 2.3800507733540144e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.74022283974773e-07, + "gradient_norm": 9.729383600642905e-05 + }, + { + "step": 282, + "loss": 2.3847107968322234e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.786824211398198e-07, + "gradient_norm": 9.345614671474323e-05 + }, + { + "step": 283, + "loss": 2.3764860088704154e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.704576900214306e-07, + "gradient_norm": 5.93109434703365e-05 + }, + { + "step": 284, + "loss": 2.365904947509989e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5987662866100436e-07, + "gradient_norm": 9.72030647972133e-06 + }, + { + "step": 285, + "loss": 2.3787267764419084e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7269834390608594e-07, + "gradient_norm": 5.169139330973849e-05 + }, + { + "step": 286, + "loss": 2.3806906028767116e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.746621419191797e-07, + "gradient_norm": 9.676124318502843e-05 + }, + { + "step": 287, + "loss": 2.3873974441812607e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8136909691056644e-07, + "gradient_norm": 0.00011853918113047257 + }, + { + "step": 288, + "loss": 2.381440708631999e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.754122192527575e-07, + "gradient_norm": 0.0001028749902616255 + }, + { + "step": 289, + "loss": 2.380818614255986e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7479026698529196e-07, + "gradient_norm": 6.116742588346824e-05 + }, + { + "step": 290, + "loss": 2.3591460376337636e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.531175766762317e-07, + "gradient_norm": 1.440597861801507e-05 + }, + { + "step": 291, + "loss": 2.3574773422296857e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5144882442873495e-07, + "gradient_norm": 3.797441968345083e-05 + }, + { + "step": 292, + "loss": 2.369185949646635e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6315740342397476e-07, + "gradient_norm": 7.330899825319648e-05 + }, + { + "step": 293, + "loss": 2.366353783145314e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6032532218778215e-07, + "gradient_norm": 9.794730431167409e-05 + }, + { + "step": 294, + "loss": 2.3698901259194827e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.638616365402413e-07, + "gradient_norm": 0.00010784741607494652 + }, + { + "step": 295, + "loss": 2.3819304715289036e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.759019821496622e-07, + "gradient_norm": 0.00010629557800712064 + }, + { + "step": 296, + "loss": 2.374614496147842e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.685861204554385e-07, + "gradient_norm": 9.480876178713515e-05 + }, + { + "step": 297, + "loss": 2.3663912998017622e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6036289568764914e-07, + "gradient_norm": 8.104180597001687e-05 + }, + { + "step": 298, + "loss": 2.3686320673732553e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6260363483743276e-07, + "gradient_norm": 5.949523620074615e-05 + }, + { + "step": 299, + "loss": 2.3576355943077942e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5160710492855287e-07, + "gradient_norm": 3.05497414956335e-05 + }, + { + "step": 300, + "loss": 2.3593736386828823e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5334517772535037e-07, + "gradient_norm": 1.3548472452384885e-05 + }, + { + "step": 301, + "loss": 2.3672541829000693e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6122563667740906e-07, + "gradient_norm": 4.414543218445033e-05 + }, + { + "step": 302, + "loss": 2.368915147599182e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.628867150633596e-07, + "gradient_norm": 6.957072764635086e-05 + }, + { + "step": 303, + "loss": 2.3741627046547364e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.681342152754951e-07, + "gradient_norm": 9.143960778601468e-05 + }, + { + "step": 304, + "loss": 2.3707355012447806e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.647071539740864e-07, + "gradient_norm": 0.00010274672240484506 + }, + { + "step": 305, + "loss": 2.3698496534052538e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6382122086943127e-07, + "gradient_norm": 9.543314081383869e-05 + }, + { + "step": 306, + "loss": 2.365672571613686e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.596440822344448e-07, + "gradient_norm": 6.631569704040885e-05 + }, + { + "step": 307, + "loss": 2.3626821530342568e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5665377734185313e-07, + "gradient_norm": 2.713179674174171e-05 + }, + { + "step": 308, + "loss": 2.3582251742482185e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.521966280255583e-07, + "gradient_norm": 2.157822200388182e-05 + }, + { + "step": 309, + "loss": 2.3622142180101946e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5618584231779096e-07, + "gradient_norm": 5.424381743068807e-05 + }, + { + "step": 310, + "loss": 2.3585428152728127e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5251438273699023e-07, + "gradient_norm": 7.760344306007028e-05 + }, + { + "step": 311, + "loss": 2.3640466224605916e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.580181899247691e-07, + "gradient_norm": 9.230920841218904e-05 + }, + { + "step": 312, + "loss": 2.3694735773460707e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6344511638853874e-07, + "gradient_norm": 9.34688068809919e-05 + }, + { + "step": 313, + "loss": 2.3740133201499702e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.6798488761414774e-07, + "gradient_norm": 7.9149758676067e-05 + }, + { + "step": 314, + "loss": 2.3571740257466445e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5114559321082197e-07, + "gradient_norm": 5.406729906098917e-05 + }, + { + "step": 315, + "loss": 2.3550744572276017e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4904599627006974e-07, + "gradient_norm": 2.3612596123712137e-05 + }, + { + "step": 316, + "loss": 2.351767989239306e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.457394998600648e-07, + "gradient_norm": 1.8044680473394692e-05 + }, + { + "step": 317, + "loss": 2.356339109610417e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5031062023117556e-07, + "gradient_norm": 4.539333167485893e-05 + }, + { + "step": 318, + "loss": 2.3559032342745923e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.498747448953509e-07, + "gradient_norm": 6.037313869455829e-05 + }, + { + "step": 319, + "loss": 2.351237981201848e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4520960550944437e-07, + "gradient_norm": 6.093355477787554e-05 + }, + { + "step": 320, + "loss": 2.350074055357254e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.440456228214316e-07, + "gradient_norm": 4.8705558583606035e-05 + }, + { + "step": 321, + "loss": 2.3458512714569224e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.3982286734280933e-07, + "gradient_norm": 3.2052077585831285e-05 + }, + { + "step": 322, + "loss": 2.3471457097912207e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4111730567710765e-07, + "gradient_norm": 1.6794509065221064e-05 + }, + { + "step": 323, + "loss": 2.3484660687245196e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4243772145382536e-07, + "gradient_norm": 1.305517344007967e-05 + }, + { + "step": 324, + "loss": 2.349652731936658e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.436243846659636e-07, + "gradient_norm": 2.2068474208936095e-05 + }, + { + "step": 325, + "loss": 2.3480561139876954e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4202779513871064e-07, + "gradient_norm": 4.38024326285813e-05 + }, + { + "step": 326, + "loss": 2.3592260731675196e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.531975837882783e-07, + "gradient_norm": 6.568706157850102e-05 + }, + { + "step": 327, + "loss": 2.356691993554705e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.506635325971729e-07, + "gradient_norm": 8.783533121459186e-05 + }, + { + "step": 328, + "loss": 2.377173132117605e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7114469958178233e-07, + "gradient_norm": 0.00011555209493963048 + }, + { + "step": 329, + "loss": 2.3782126845617313e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.7218419518248993e-07, + "gradient_norm": 0.00014351701247505844 + }, + { + "step": 330, + "loss": 2.380717887717765e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.746895120253612e-07, + "gradient_norm": 0.00016896345186978579 + }, + { + "step": 331, + "loss": 2.3991506168385968e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9312218430277426e-07, + "gradient_norm": 0.00018762399849947542 + }, + { + "step": 332, + "loss": 2.407313331787009e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0128484240776743e-07, + "gradient_norm": 0.00019110827997792512 + }, + { + "step": 333, + "loss": 2.393803242739523e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.877748670471192e-07, + "gradient_norm": 0.00017624594329390675 + }, + { + "step": 334, + "loss": 2.3749414594931295e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.68913026957307e-07, + "gradient_norm": 0.00014025620475877076 + }, + { + "step": 335, + "loss": 2.364616648264928e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5858818730739586e-07, + "gradient_norm": 8.996424003271386e-05 + }, + { + "step": 336, + "loss": 2.3552722723252373e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4924392505454307e-07, + "gradient_norm": 4.053624070365913e-05 + }, + { + "step": 337, + "loss": 2.3483275981561746e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4229925088548043e-07, + "gradient_norm": 1.1808990166173317e-05 + }, + { + "step": 338, + "loss": 2.3498912469221978e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.438627575429564e-07, + "gradient_norm": 2.816591404553037e-05 + }, + { + "step": 339, + "loss": 2.34624758377322e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.402192649242352e-07, + "gradient_norm": 3.6306551919551566e-05 + }, + { + "step": 340, + "loss": 2.3524103198724333e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4638191575832025e-07, + "gradient_norm": 4.4687963963951916e-05 + }, + { + "step": 341, + "loss": 2.352856881771004e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4682839239176246e-07, + "gradient_norm": 5.6603908888064325e-05 + }, + { + "step": 342, + "loss": 2.3535410491604125e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.475127018897183e-07, + "gradient_norm": 6.769998435629532e-05 + }, + { + "step": 343, + "loss": 2.3590239379700506e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5299544859080925e-07, + "gradient_norm": 7.318713323911652e-05 + }, + { + "step": 344, + "loss": 2.3480429263145197e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4201443693527835e-07, + "gradient_norm": 7.732256926828995e-05 + }, + { + "step": 345, + "loss": 2.3516158762504347e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4558752897974045e-07, + "gradient_norm": 8.096160308923572e-05 + }, + { + "step": 346, + "loss": 2.3560269255540334e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4999857828333916e-07, + "gradient_norm": 8.416636410402134e-05 + }, + { + "step": 347, + "loss": 2.361071892664768e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.550433464421076e-07, + "gradient_norm": 8.324508235091344e-05 + }, + { + "step": 348, + "loss": 2.35100037571101e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4497194317518733e-07, + "gradient_norm": 7.880930934334174e-05 + }, + { + "step": 349, + "loss": 2.358592610107735e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5256412072849344e-07, + "gradient_norm": 6.511466926895082e-05 + }, + { + "step": 350, + "loss": 2.3482029973820318e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4217467853304697e-07, + "gradient_norm": 4.1682749724714085e-05 + }, + { + "step": 351, + "loss": 2.347806002944708e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4177754198717594e-07, + "gradient_norm": 1.827833148126956e-05 + }, + { + "step": 352, + "loss": 2.345939265069319e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.39910804111787e-07, + "gradient_norm": 1.0001351256505586e-05 + }, + { + "step": 353, + "loss": 2.3451018478226615e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.3907347213025787e-07, + "gradient_norm": 1.942069320648443e-05 + }, + { + "step": 354, + "loss": 2.3535405944130616e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4751210503382026e-07, + "gradient_norm": 2.425256752758287e-05 + }, + { + "step": 355, + "loss": 2.346075689274585e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4004725673876237e-07, + "gradient_norm": 3.067760553676635e-05 + }, + { + "step": 356, + "loss": 2.3419213448505616e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.358928412604655e-07, + "gradient_norm": 4.2696556192822754e-05 + }, + { + "step": 357, + "loss": 2.3504246655647876e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4439623302896507e-07, + "gradient_norm": 5.3412135457620025e-05 + }, + { + "step": 358, + "loss": 2.344600488868309e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.385721700193244e-07, + "gradient_norm": 6.336289516184479e-05 + }, + { + "step": 359, + "loss": 2.352607680222718e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.465791908434767e-07, + "gradient_norm": 7.879281474743038e-05 + }, + { + "step": 360, + "loss": 2.365022510275594e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5899407773977146e-07, + "gradient_norm": 9.412068902747706e-05 + }, + { + "step": 361, + "loss": 2.358194024054683e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.5216564836227917e-07, + "gradient_norm": 0.00010507100523682311 + }, + { + "step": 362, + "loss": 2.357570792810293e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.51542331852761e-07, + "gradient_norm": 0.00010979981016134843 + }, + { + "step": 363, + "loss": 2.362250825171941e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.562224494795373e-07, + "gradient_norm": 0.0001147694856626913 + }, + { + "step": 364, + "loss": 2.366467015235685e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.604385542781529e-07, + "gradient_norm": 0.00011463847476989031 + }, + { + "step": 365, + "loss": 2.3490981675422518e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.430696781630104e-07, + "gradient_norm": 9.76791707216762e-05 + }, + { + "step": 366, + "loss": 2.3535753825854044e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.475468932061631e-07, + "gradient_norm": 7.433588325511664e-05 + }, + { + "step": 367, + "loss": 2.3472891825804254e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.4126080688802176e-07, + "gradient_norm": 5.559935016208328e-05 + }, + { + "step": 368, + "loss": 2.339038474019617e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.3301012674892263e-07, + "gradient_norm": 2.3189471903606318e-05 + }, + { + "step": 369, + "loss": 2.3397437871608417e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.3371526935989095e-07, + "gradient_norm": 2.5404460757272318e-05 + }, + { + "step": 370, + "loss": 2.356068762310315e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.500402160876547e-07, + "gradient_norm": 5.4121006542118266e-05 + }, + { + "step": 371, + "loss": 2.352216142753605e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.461875965309446e-07, + "gradient_norm": 6.212645530467853e-05 + }, + { + "step": 372, + "loss": 2.359682866881485e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.536545196107909e-07, + "gradient_norm": 7.338707655435428e-05 + }, + { + "step": 373, + "loss": 2.359084646741394e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.530562710489903e-07, + "gradient_norm": 9.849928028415889e-05 + }, + { + "step": 374, + "loss": 2.3628349481441546e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.568064871866227e-07, + "gradient_norm": 0.00012277757923584431 + }, + { + "step": 375, + "loss": 2.3722029709460912e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.661745099885593e-07, + "gradient_norm": 0.0001488055131630972 + }, + { + "step": 376, + "loss": 2.4008238597161835e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.94795427180361e-07, + "gradient_norm": 0.00017992286302614957 + }, + { + "step": 377, + "loss": 2.4129817575158086e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.069534386668238e-07, + "gradient_norm": 0.00020827467960771173 + }, + { + "step": 378, + "loss": 2.4402236249443376e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.3419519240851514e-07, + "gradient_norm": 0.00023140171833802015 + }, + { + "step": 379, + "loss": 2.438055389575311e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.3202692861777905e-07, + "gradient_norm": 0.000263129360973835 + }, + { + "step": 380, + "loss": 2.4921992007875815e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.8617071140834014e-07, + "gradient_norm": 0.000294470606604591 + }, + { + "step": 381, + "loss": 2.472322648827685e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.6629421629186254e-07, + "gradient_norm": 0.0003028779465239495 + }, + { + "step": 382, + "loss": 2.4873324946383946e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.813041757894098e-07, + "gradient_norm": 0.0002858396037481725 + }, + { + "step": 383, + "loss": 2.3814225187379634e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 3.151306486870453e-07, + "gradient_norm": 0.0002332389121875167 + }, + { + "step": 384, + "loss": 2.3772154236212373e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.711869342419959e-07, + "gradient_norm": 0.00015133795386645943 + }, + { + "step": 385, + "loss": 2.3070815586834215e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.407896033673751e-07, + "gradient_norm": 4.908144546789117e-05 + }, + { + "step": 386, + "loss": 2.3046663955028635e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.3837456808450952e-07, + "gradient_norm": 6.7761073296424e-05 + }, + { + "step": 387, + "loss": 2.3411789698002394e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.748870429059025e-07, + "gradient_norm": 0.00015687468112446368 + }, + { + "step": 388, + "loss": 2.3604197849635966e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.941278012258408e-07, + "gradient_norm": 0.00021247501717880368 + }, + { + "step": 389, + "loss": 2.4231055704149185e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.1707713787909597e-07, + "gradient_norm": 0.0002260142209706828 + }, + { + "step": 390, + "loss": 2.3437023628503084e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7741049279939034e-07, + "gradient_norm": 0.00018409508629702032 + }, + { + "step": 391, + "loss": 2.307195245521143e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.4090331862680614e-07, + "gradient_norm": 0.00011128607002319768 + }, + { + "step": 392, + "loss": 2.303082055732375e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.367902425248758e-07, + "gradient_norm": 3.174367157043889e-05 + }, + { + "step": 393, + "loss": 2.3060551939124707e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.397632101747149e-07, + "gradient_norm": 4.541744783637114e-05 + }, + { + "step": 394, + "loss": 2.3043037344905315e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.3801186443961342e-07, + "gradient_norm": 9.455107647227123e-05 + }, + { + "step": 395, + "loss": 2.3203040200314717e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.540121784022631e-07, + "gradient_norm": 0.00011863715189974755 + }, + { + "step": 396, + "loss": 2.3156158022175077e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.493239890100085e-07, + "gradient_norm": 0.00012071491073584184 + }, + { + "step": 397, + "loss": 2.313165396117256e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.4687352606633794e-07, + "gradient_norm": 0.00010449191177031025 + }, + { + "step": 398, + "loss": 2.3035490812617354e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.372572680542362e-07, + "gradient_norm": 7.6829302997794e-05 + }, + { + "step": 399, + "loss": 2.2537285531143425e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2717321712661942e-07, + "gradient_norm": 4.4428015826269984e-05 + }, + { + "step": 400, + "loss": 2.254312676086556e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2775731167712365e-07, + "gradient_norm": 1.794133277144283e-05 + }, + { + "step": 401, + "loss": 2.293151510457392e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.2685962619561906e-07, + "gradient_norm": 1.5687148334109224e-05 + }, + { + "step": 402, + "loss": 2.2911522137292195e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.24860215780609e-07, + "gradient_norm": 2.429750566079747e-05 + }, + { + "step": 403, + "loss": 2.283777803313569e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.1748596168436052e-07, + "gradient_norm": 2.8090773412259296e-05 + }, + { + "step": 404, + "loss": 2.2594911115447758e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.329357755570527e-07, + "gradient_norm": 3.123878559563309e-05 + }, + { + "step": 405, + "loss": 2.237202807009453e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1064742838916573e-07, + "gradient_norm": 3.288503285148181e-05 + }, + { + "step": 406, + "loss": 2.2499934857478365e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2343799344071158e-07, + "gradient_norm": 2.57628780673258e-05 + }, + { + "step": 407, + "loss": 2.2905244350113207e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.242325933821121e-07, + "gradient_norm": 1.6666794181219302e-05 + }, + { + "step": 408, + "loss": 2.244433972009574e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.178784654915944e-07, + "gradient_norm": 1.985996095754672e-05 + }, + { + "step": 409, + "loss": 2.238094339190866e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.115389179380145e-07, + "gradient_norm": 1.6873633285285905e-05 + }, + { + "step": 410, + "loss": 2.2407616597774904e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1420616747036547e-07, + "gradient_norm": 1.7270811440539546e-05 + }, + { + "step": 411, + "loss": 2.242507207483868e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1595187149614503e-07, + "gradient_norm": 3.575426308088936e-05 + }, + { + "step": 412, + "loss": 2.247026031909627e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2047069592190383e-07, + "gradient_norm": 4.649427501135506e-05 + }, + { + "step": 413, + "loss": 2.257932237625937e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.313768163730856e-07, + "gradient_norm": 4.2478648538235575e-05 + }, + { + "step": 414, + "loss": 2.2450774395110784e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1852206089079118e-07, + "gradient_norm": 3.026794183824677e-05 + }, + { + "step": 415, + "loss": 2.2476701815321576e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2111470343588735e-07, + "gradient_norm": 2.136833791155368e-05 + }, + { + "step": 416, + "loss": 2.242449681943981e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1589423226942017e-07, + "gradient_norm": 1.4167165318212938e-05 + }, + { + "step": 417, + "loss": 2.241290303572896e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1473485389833513e-07, + "gradient_norm": 2.6651798179955222e-05 + }, + { + "step": 418, + "loss": 2.245452151328209e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1889681534048577e-07, + "gradient_norm": 3.872640445479192e-05 + }, + { + "step": 419, + "loss": 2.250192210340174e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2363690277416026e-07, + "gradient_norm": 3.281760655227117e-05 + }, + { + "step": 420, + "loss": 2.265440798510099e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.3888529199211916e-07, + "gradient_norm": 1.688123847998213e-05 + }, + { + "step": 421, + "loss": 2.237732815046911e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1117736537235032e-07, + "gradient_norm": 1.045370754582109e-05 + }, + { + "step": 422, + "loss": 2.230944346592878e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0438885428575304e-07, + "gradient_norm": 1.9504675947246142e-05 + }, + { + "step": 423, + "loss": 2.2200590592547087e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.935036095801479e-07, + "gradient_norm": 2.2450225515058264e-05 + }, + { + "step": 424, + "loss": 2.2338444978231564e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0728919025714276e-07, + "gradient_norm": 2.337255318707321e-05 + }, + { + "step": 425, + "loss": 2.2370795704773627e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1052403553767363e-07, + "gradient_norm": 2.7577714718063362e-05 + }, + { + "step": 426, + "loss": 2.237691660411656e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.111362107370951e-07, + "gradient_norm": 2.6868881832342595e-05 + }, + { + "step": 427, + "loss": 2.248821601824602e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2226618057175074e-07, + "gradient_norm": 1.9539596905815415e-05 + }, + { + "step": 428, + "loss": 2.2418250864575384e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1526975046981534e-07, + "gradient_norm": 1.2600857189681847e-05 + }, + { + "step": 429, + "loss": 2.2342846932588145e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0772935727109143e-07, + "gradient_norm": 1.6246764062088914e-05 + }, + { + "step": 430, + "loss": 2.2383371742762392e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1178173881253315e-07, + "gradient_norm": 2.1270323486533016e-05 + }, + { + "step": 431, + "loss": 2.232833139714785e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0627780372706184e-07, + "gradient_norm": 2.6888343199971132e-05 + }, + { + "step": 432, + "loss": 2.2450642518379027e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1850891585017962e-07, + "gradient_norm": 3.0362745746970177e-05 + }, + { + "step": 433, + "loss": 2.2361302853823872e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0957496360551886e-07, + "gradient_norm": 3.3561227610334754e-05 + }, + { + "step": 434, + "loss": 2.234333578599035e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0777814313532872e-07, + "gradient_norm": 3.794155054492876e-05 + }, + { + "step": 435, + "loss": 2.2479446215584176e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2138924293813034e-07, + "gradient_norm": 3.536644726409577e-05 + }, + { + "step": 436, + "loss": 2.2372507828549715e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1069534739126539e-07, + "gradient_norm": 3.2439118513138965e-05 + }, + { + "step": 437, + "loss": 2.2342806005326565e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0772526454493345e-07, + "gradient_norm": 3.670456135296263e-05 + }, + { + "step": 438, + "loss": 2.22995777221513e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0340239359484258e-07, + "gradient_norm": 4.618116145138629e-05 + }, + { + "step": 439, + "loss": 2.2306003302219324e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.04044908969081e-07, + "gradient_norm": 4.078000711160712e-05 + }, + { + "step": 440, + "loss": 2.238147772004595e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1159227969747008e-07, + "gradient_norm": 3.0941890145186335e-05 + }, + { + "step": 441, + "loss": 2.232000497315312e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0544516132758872e-07, + "gradient_norm": 3.090620521106757e-05 + }, + { + "step": 442, + "loss": 2.233217855973635e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0666236366650992e-07, + "gradient_norm": 4.666098175221123e-05 + }, + { + "step": 443, + "loss": 2.2396786789613543e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1312330034106708e-07, + "gradient_norm": 5.3850264521315694e-05 + }, + { + "step": 444, + "loss": 2.2464682842837647e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.199129625068963e-07, + "gradient_norm": 4.8721733037382364e-05 + }, + { + "step": 445, + "loss": 2.2286849343799986e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.021293994403095e-07, + "gradient_norm": 3.929553713533096e-05 + }, + { + "step": 446, + "loss": 2.2254216673900373e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9886624613718595e-07, + "gradient_norm": 2.7063202651333995e-05 + }, + { + "step": 447, + "loss": 2.2264528070081724e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.998974710204493e-07, + "gradient_norm": 2.2461121261585504e-05 + }, + { + "step": 448, + "loss": 2.2285262275545392e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0197069261485012e-07, + "gradient_norm": 2.084512925648596e-05 + }, + { + "step": 449, + "loss": 2.232143742730841e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0558829305628024e-07, + "gradient_norm": 1.3702615433430765e-05 + }, + { + "step": 450, + "loss": 2.233200575574301e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0664508326717623e-07, + "gradient_norm": 9.469305041420739e-06 + }, + { + "step": 451, + "loss": 2.230382733614533e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.038272839399724e-07, + "gradient_norm": 2.1274412574712187e-05 + }, + { + "step": 452, + "loss": 2.2375211301550735e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1096559521538438e-07, + "gradient_norm": 2.4739219952607527e-05 + }, + { + "step": 453, + "loss": 2.2328313207253814e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0627589947253e-07, + "gradient_norm": 2.5071580239455216e-05 + }, + { + "step": 454, + "loss": 2.2410627025237773e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.145072102166523e-07, + "gradient_norm": 2.833925827872008e-05 + }, + { + "step": 455, + "loss": 2.2348524453263963e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0829695301927131e-07, + "gradient_norm": 3.002692392328754e-05 + }, + { + "step": 456, + "loss": 2.233397481177235e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0684194623754593e-07, + "gradient_norm": 3.061688403249718e-05 + }, + { + "step": 457, + "loss": 2.2334306777338497e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0687522805928893e-07, + "gradient_norm": 3.449269934208132e-05 + }, + { + "step": 458, + "loss": 2.2298258954833727e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0327038896539307e-07, + "gradient_norm": 4.170714601059444e-05 + }, + { + "step": 459, + "loss": 2.2419239940063562e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1536865801863314e-07, + "gradient_norm": 5.494334254763089e-05 + }, + { + "step": 460, + "loss": 2.2345407160173636e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0798540845134994e-07, + "gradient_norm": 7.587365689687431e-05 + }, + { + "step": 461, + "loss": 2.2436124709201977e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1705693598050857e-07, + "gradient_norm": 0.00010619623208185658 + }, + { + "step": 462, + "loss": 2.2568617623619502e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.3030631268738944e-07, + "gradient_norm": 0.00013725893222726882 + }, + { + "step": 463, + "loss": 2.2728327166987583e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.4627729544590693e-07, + "gradient_norm": 0.00016674233484081924 + }, + { + "step": 464, + "loss": 2.2933179479878163e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.667626120000932e-07, + "gradient_norm": 0.00019665103172883391 + }, + { + "step": 465, + "loss": 2.309238880116027e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.826835725500132e-07, + "gradient_norm": 0.00022560935758519918 + }, + { + "step": 466, + "loss": 2.335176759515889e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 3.086214235281659e-07, + "gradient_norm": 0.00025092490250244737 + }, + { + "step": 467, + "loss": 2.3340624011325417e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 3.0750697987969033e-07, + "gradient_norm": 0.0002688488457351923 + }, + { + "step": 468, + "loss": 2.347154122617212e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 3.2059878662948904e-07, + "gradient_norm": 0.0002734686422627419 + }, + { + "step": 469, + "loss": 2.3218310616357485e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.952756403828971e-07, + "gradient_norm": 0.00025058703613467515 + }, + { + "step": 470, + "loss": 2.2934827939025126e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.669274294930801e-07, + "gradient_norm": 0.00020355283049866557 + }, + { + "step": 471, + "loss": 2.252218109788373e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2566273116808588e-07, + "gradient_norm": 0.0001351172977592796 + }, + { + "step": 472, + "loss": 2.2378185349225532e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1126314209141128e-07, + "gradient_norm": 5.979363777441904e-05 + }, + { + "step": 473, + "loss": 2.2266651740210364e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0010969592476613e-07, + "gradient_norm": 2.8096581445424818e-05 + }, + { + "step": 474, + "loss": 2.234159865110996e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.076044438581448e-07, + "gradient_norm": 8.235921268351376e-05 + }, + { + "step": 475, + "loss": 2.253232651128201e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2667714461022115e-07, + "gradient_norm": 0.00013128969294484705 + }, + { + "step": 476, + "loss": 2.269566266477341e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.4301081680278003e-07, + "gradient_norm": 0.00016859560855664313 + }, + { + "step": 477, + "loss": 2.2826754957350204e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.561201597472973e-07, + "gradient_norm": 0.0001918258931254968 + }, + { + "step": 478, + "loss": 2.2798387817601906e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.532834173507581e-07, + "gradient_norm": 0.00019124968093819916 + }, + { + "step": 479, + "loss": 2.267198851768626e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.4064354420261225e-07, + "gradient_norm": 0.000166497309692204 + }, + { + "step": 480, + "loss": 2.250840680062538e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.2428518775541306e-07, + "gradient_norm": 0.00012132983829360455 + }, + { + "step": 481, + "loss": 2.2264878225541906e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.999323302470657e-07, + "gradient_norm": 6.621557986363769e-05 + }, + { + "step": 482, + "loss": 2.227800223408849e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.012447879451429e-07, + "gradient_norm": 2.8156189728179015e-05 + }, + { + "step": 483, + "loss": 2.232254473710782e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0569905245793052e-07, + "gradient_norm": 7.049191481200978e-05 + }, + { + "step": 484, + "loss": 2.2342462671076646e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0769093111994152e-07, + "gradient_norm": 0.00011401566007407382 + }, + { + "step": 485, + "loss": 2.2530743990500923e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.265190204298051e-07, + "gradient_norm": 0.000137781142257154 + }, + { + "step": 486, + "loss": 2.2480501229438232e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.21494644847553e-07, + "gradient_norm": 0.00013560197839979082 + }, + { + "step": 487, + "loss": 2.240355115645798e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.1379979386892956e-07, + "gradient_norm": 0.00011017909127986059 + }, + { + "step": 488, + "loss": 2.2242325030674692e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9767706760376313e-07, + "gradient_norm": 7.834863936295733e-05 + }, + { + "step": 489, + "loss": 2.2247681954468135e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9821283103738097e-07, + "gradient_norm": 4.463791265152395e-05 + }, + { + "step": 490, + "loss": 2.2243737021199195e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9781822402364924e-07, + "gradient_norm": 3.2888165151234716e-05 + }, + { + "step": 491, + "loss": 2.2331735181069234e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0661801158894377e-07, + "gradient_norm": 6.970355025259778e-05 + }, + { + "step": 492, + "loss": 2.239036348328227e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.124809270753758e-07, + "gradient_norm": 0.00010078721243189648 + }, + { + "step": 493, + "loss": 2.235029796793242e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0847441817295476e-07, + "gradient_norm": 0.00010846205987036228 + }, + { + "step": 494, + "loss": 2.223678393420414e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.971230716435457e-07, + "gradient_norm": 8.893117774277925e-05 + }, + { + "step": 495, + "loss": 2.2165927475725766e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.900373689522894e-07, + "gradient_norm": 5.609581057797186e-05 + }, + { + "step": 496, + "loss": 2.2183905912243063e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.918350989171813e-07, + "gradient_norm": 2.3380429411190562e-05 + }, + { + "step": 497, + "loss": 2.231474354630336e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.049190470643225e-07, + "gradient_norm": 3.1607756682205945e-05 + }, + { + "step": 498, + "loss": 2.2260014702624176e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9944593532272847e-07, + "gradient_norm": 5.850182060385123e-05 + }, + { + "step": 499, + "loss": 2.228543053206522e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0198771721879893e-07, + "gradient_norm": 7.148143777158111e-05 + }, + { + "step": 500, + "loss": 2.2148017251311103e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.8824627545654948e-07, + "gradient_norm": 6.981274782447144e-05 + }, + { + "step": 501, + "loss": 2.232106680821744e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 2.0555120272547356e-07, + "gradient_norm": 6.539275636896491e-05 + }, + { + "step": 502, + "loss": 2.2211793293536175e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9462383704649255e-07, + "gradient_norm": 5.9152094763703644e-05 + }, + { + "step": 503, + "loss": 2.2227777662919834e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9622244451511506e-07, + "gradient_norm": 4.576981518766843e-05 + }, + { + "step": 504, + "loss": 2.2192248252395075e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9266937556494668e-07, + "gradient_norm": 2.7474236048874445e-05 + }, + { + "step": 505, + "loss": 2.225933030786109e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9937769479838607e-07, + "gradient_norm": 1.6547268387512304e-05 + }, + { + "step": 506, + "loss": 2.209613285231171e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.8305775029148208e-07, + "gradient_norm": 1.505704585724743e-05 + }, + { + "step": 507, + "loss": 2.210370894317748e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.8381540201062307e-07, + "gradient_norm": 2.3576025341753848e-05 + }, + { + "step": 508, + "loss": 2.2200547391548753e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9349934632373333e-07, + "gradient_norm": 3.722124165506102e-05 + }, + { + "step": 509, + "loss": 2.21597383642802e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.8941845780773292e-07, + "gradient_norm": 5.3067949920659885e-05 + }, + { + "step": 510, + "loss": 2.222539478680119e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9598394374042982e-07, + "gradient_norm": 6.045465124770999e-05 + }, + { + "step": 511, + "loss": 2.2264539438765496e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.9989860788882652e-07, + "gradient_norm": 6.185871461639181e-05 + }, + { + "step": 512, + "loss": 2.208469140896341e-06, + "target_ce": 2.0265554212528514e-06, + "replay_kl": 1.8191364858921588e-07, + "gradient_norm": 6.354427750920877e-05 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/run.json new file mode 100644 index 0000000000000000000000000000000000000000..92f57ec90c889c50d431750554d1daa6b2c789e7 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/lr0.0001-sham/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_familiar-01", + "arm": "sham", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "ed5297f22b8901d94a7fa925dd50bdb8e1605e155194f58ca3fbdef12e71a1b4", + "new_fact_sha256": "8d5e1029ff84222029524c0da8ba5a4a1eb35743326cd1fb1c684984615faeba", + "target_batch_sha256": "2399018f295869396b95acef1f1164ce0a1b88a102f59c3a6827a77817139fec", + "replay_batch_sha256": "4d428db81460b6674b6b2e1944ae52d379012f3b4e23da718fe3239f2861cdfc", + "parent_reference_sha256": "df728ab8802f4d81ccad836e277e17dc98a8195e281312a7da6866163840e1c9", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/parent-metrics.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/parent-metrics.json new file mode 100644 index 0000000000000000000000000000000000000000..f965f762c06ee2115cb4297ba38f069d957f7de0 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_familiar-01/parent-metrics.json @@ -0,0 +1,175 @@ +{ + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002790300059132278 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.27085304260254 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.9725848563968669, + "accuracy": 0.9725848563968669, + "answer_nll": 0.10965170711278915 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.960369110107422, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.85546875, + "accuracy": 0.85546875, + "answer_nll": 0.5290288925170898 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.9651162790697675, + "accuracy": 0.9651162790697675, + "answer_nll": 0.16985633969306946 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.282621383666992, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.323178190039471e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.538900375366211, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019393446564208716 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004320436273701489 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00037724178400821984 + } +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..5578c3074b55a7b08cb4f048040ef6313aee7021 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_strict-00", + "role": "second", + "stratum": "strict", + "lr": 0.0001, + "arm": "edit", + "path": "second_strict-00/lr0.0001-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.338159561157227 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.634490556374658e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9557291666666666, + "accuracy": 0.9557291666666666, + "answer_nll": 0.15496157109737396 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8447937131630648, + "accuracy": 0.8447937131630648, + "answer_nll": 0.5724637508392334 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.005255000665783882, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9498069498069498, + "accuracy": 0.9498069498069498, + "answer_nll": 0.18189622461795807 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001938289380632341 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0028117618057876825 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032801099587231874 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9919273461150353, + "accuracy": 0.9919273461150353, + "answer_nll": 0.05331867188215256 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "e61013174b41c4c34397f4786dc4840accc84133309c64f2538d0dde4ddac471", + "delta_l2": 0.5321140885353088, + "tensor_file_sha256": "186aa5c2c3a0d0c2188052acf65894195b7657d7c85c568960a42508af739d05" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..24262a883585563743fc54cd5dd3cec91bb8379c --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035124807618558407 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.106464385986328 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8546168958742633, + "accuracy": 0.8546168958742633, + "answer_nll": 0.5321443676948547 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.3991756439209, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005769940325990319 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032201825524680316 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003807223110925406 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": false, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.165756225585938 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00033718624035827816 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9375, + "accuracy": 0.9375, + "answer_nll": 0.20320451259613037 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8408644400785854, + "accuracy": 0.8408644400785854, + "answer_nll": 0.5882810950279236 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0027700150385499, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9536679536679536, + "accuracy": 0.9536679536679536, + "answer_nll": 0.22194966673851013 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 0.99609375, + "accuracy": 0.99609375, + "answer_nll": 0.01428600586950779 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.021406332030892372 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001142882858403027 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.987891019172553, + "accuracy": 0.987891019172553, + "answer_nll": 0.10234992951154709 + } + }, + "model_sha256": "d495cca07f83f52f2d61519e1a2de1904b236db28a9b96141843cedda1672ba6", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 0.0003709786105901003, + "target_ce": 0.0001214544172398746, + "replay_kl": 0.0002495241933502257, + "gradient_norm": 0.0119198989123106 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.994827270507812 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.904537389753386e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9505208333333334, + "accuracy": 0.9505208333333334, + "answer_nll": 0.17143501341342926 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8330058939096268, + "accuracy": 0.8330058939096268, + "answer_nll": 0.5413725972175598 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0035762444604188204, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9575289575289575, + "accuracy": 0.9575289575289575, + "answer_nll": 0.19480133056640625 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 0.99609375, + "accuracy": 0.99609375, + "answer_nll": 0.007087894715368748 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0061272564344108105 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00039323134114965796 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9899091826437941, + "accuracy": 0.9899091826437941, + "answer_nll": 0.07317741215229034 + } + }, + "model_sha256": "ad8bad6436c7c922aa8c7a64fc827a29df45d2943114b448bd9bef93a9786663", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 7.220271800179034e-05, + "target_ce": 3.452960299910046e-05, + "replay_kl": 3.767311500268988e-05, + "gradient_norm": 0.0015183350769802928 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.338159561157227 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.634490556374658e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9557291666666666, + "accuracy": 0.9557291666666666, + "answer_nll": 0.15496157109737396 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8447937131630648, + "accuracy": 0.8447937131630648, + "answer_nll": 0.5724637508392334 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.005255000665783882, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9498069498069498, + "accuracy": 0.9498069498069498, + "answer_nll": 0.18189622461795807 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001938289380632341 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0028117618057876825 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032801099587231874 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9919273461150353, + "accuracy": 0.9919273461150353, + "answer_nll": 0.05331867188215256 + } + }, + "model_sha256": "e61013174b41c4c34397f4786dc4840accc84133309c64f2538d0dde4ddac471", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 1.8969330994877964e-05, + "target_ce": 1.1602915037656203e-05, + "replay_kl": 7.366415957221761e-06, + "gradient_norm": 0.0002488206373527646 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..5664c4e218138c27008f7c11a601dabe66eb5951 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 5.702160358428955, + "target_ce": 5.702160358428955, + "replay_kl": 0.0, + "gradient_norm": 58.62025833129883 + }, + { + "step": 2, + "loss": 4.46154260635376, + "target_ce": 4.461540699005127, + "replay_kl": 2.011284550462733e-06, + "gradient_norm": 67.8769760131836 + }, + { + "step": 3, + "loss": 3.1050710678100586, + "target_ce": 3.1050612926483154, + "replay_kl": 9.783749192138202e-06, + "gradient_norm": 72.4700927734375 + }, + { + "step": 4, + "loss": 1.7505022287368774, + "target_ce": 1.7504730224609375, + "replay_kl": 2.919086182373576e-05, + "gradient_norm": 71.48180389404297 + }, + { + "step": 5, + "loss": 0.5688097476959229, + "target_ce": 0.5687345862388611, + "replay_kl": 7.513927266700193e-05, + "gradient_norm": 52.91221237182617 + }, + { + "step": 6, + "loss": 0.06976505368947983, + "target_ce": 0.06957510113716125, + "replay_kl": 0.0001899506605695933, + "gradient_norm": 8.952219009399414 + }, + { + "step": 7, + "loss": 0.011816667392849922, + "target_ce": 0.011317356489598751, + "replay_kl": 0.0004993111942894757, + "gradient_norm": 1.150179147720337 + }, + { + "step": 8, + "loss": 0.00427616760134697, + "target_ce": 0.002997007919475436, + "replay_kl": 0.0012791596818715334, + "gradient_norm": 0.26087144017219543 + }, + { + "step": 9, + "loss": 0.00343155930750072, + "target_ce": 0.0011840867809951305, + "replay_kl": 0.0022474725265055895, + "gradient_norm": 0.31487298011779785 + }, + { + "step": 10, + "loss": 0.00316419149748981, + "target_ce": 0.0006374887307174504, + "replay_kl": 0.0025267028249800205, + "gradient_norm": 0.3361892104148865 + }, + { + "step": 11, + "loss": 0.002571621909737587, + "target_ce": 0.00042205897625535727, + "replay_kl": 0.002149562817066908, + "gradient_norm": 0.24954567849636078 + }, + { + "step": 12, + "loss": 0.0020321167539805174, + "target_ce": 0.00031718987156637013, + "replay_kl": 0.0017149269115179777, + "gradient_norm": 0.1608218103647232 + }, + { + "step": 13, + "loss": 0.0017042180988937616, + "target_ce": 0.0002597002894617617, + "replay_kl": 0.0014445178676396608, + "gradient_norm": 0.11170785129070282 + }, + { + "step": 14, + "loss": 0.0015193813014775515, + "target_ce": 0.0002245982614113018, + "replay_kl": 0.0012947830837219954, + "gradient_norm": 0.0905928984284401 + }, + { + "step": 15, + "loss": 0.0013863351196050644, + "target_ce": 0.0002017242950387299, + "replay_kl": 0.0011846107663586736, + "gradient_norm": 0.07916702330112457 + }, + { + "step": 16, + "loss": 0.0012760525569319725, + "target_ce": 0.00018611668201629072, + "replay_kl": 0.001089935889467597, + "gradient_norm": 0.07066267728805542 + }, + { + "step": 17, + "loss": 0.0011670889798551798, + "target_ce": 0.00017499631212558597, + "replay_kl": 0.0009920926531776786, + "gradient_norm": 0.06253936141729355 + }, + { + "step": 18, + "loss": 0.0010611172765493393, + "target_ce": 0.00016633806808385998, + "replay_kl": 0.0008947792230173945, + "gradient_norm": 0.0547676756978035 + }, + { + "step": 19, + "loss": 0.0009642438380979002, + "target_ce": 0.000160539333592169, + "replay_kl": 0.0008037044899538159, + "gradient_norm": 0.04775228351354599 + }, + { + "step": 20, + "loss": 0.000873351062182337, + "target_ce": 0.00015521705790888518, + "replay_kl": 0.0007181339897215366, + "gradient_norm": 0.04137874022126198 + }, + { + "step": 21, + "loss": 0.0007934180903248489, + "target_ce": 0.00015096714196261019, + "replay_kl": 0.0006424509338103235, + "gradient_norm": 0.0359431654214859 + }, + { + "step": 22, + "loss": 0.0007237929385155439, + "target_ce": 0.00014735266449861228, + "replay_kl": 0.0005764402449131012, + "gradient_norm": 0.03136584535241127 + }, + { + "step": 23, + "loss": 0.0006623754743486643, + "target_ce": 0.00014425456174649298, + "replay_kl": 0.0005181209417060018, + "gradient_norm": 0.027486849576234818 + }, + { + "step": 24, + "loss": 0.0006106048240326345, + "target_ce": 0.00014151383948046714, + "replay_kl": 0.0004690909991040826, + "gradient_norm": 0.02432195097208023 + }, + { + "step": 25, + "loss": 0.0005651056417264044, + "target_ce": 0.00013865396613255143, + "replay_kl": 0.000426451675593853, + "gradient_norm": 0.02168535627424717 + }, + { + "step": 26, + "loss": 0.0005258412566035986, + "target_ce": 0.00013599266821984202, + "replay_kl": 0.0003898486029356718, + "gradient_norm": 0.0194938275963068 + }, + { + "step": 27, + "loss": 0.0004911327851004899, + "target_ce": 0.00013337105337996036, + "replay_kl": 0.0003577617462724447, + "gradient_norm": 0.017646079882979393 + }, + { + "step": 28, + "loss": 0.0004612011252902448, + "target_ce": 0.00013110692088957876, + "replay_kl": 0.00033009418984875083, + "gradient_norm": 0.016103118658065796 + }, + { + "step": 29, + "loss": 0.0004349394585005939, + "target_ce": 0.00012864416930824518, + "replay_kl": 0.0003062952891923487, + "gradient_norm": 0.014819798991084099 + }, + { + "step": 30, + "loss": 0.00041112222243100405, + "target_ce": 0.0001261416618945077, + "replay_kl": 0.00028498057508841157, + "gradient_norm": 0.013701866380870342 + }, + { + "step": 31, + "loss": 0.0003901257296092808, + "target_ce": 0.00012387748574838042, + "replay_kl": 0.0002662482438609004, + "gradient_norm": 0.012749719433486462 + }, + { + "step": 32, + "loss": 0.0003709786105901003, + "target_ce": 0.0001214544172398746, + "replay_kl": 0.0002495241933502257, + "gradient_norm": 0.0119198989123106 + }, + { + "step": 33, + "loss": 0.00035358883906155825, + "target_ce": 0.00011887241998920217, + "replay_kl": 0.0002347164263483137, + "gradient_norm": 0.011194443330168724 + }, + { + "step": 34, + "loss": 0.00033805123530328274, + "target_ce": 0.00011652874673018232, + "replay_kl": 0.00022152249584905803, + "gradient_norm": 0.01056185457855463 + }, + { + "step": 35, + "loss": 0.0003238628269173205, + "target_ce": 0.00011426451237639412, + "replay_kl": 0.00020959830726496875, + "gradient_norm": 0.009996204636991024 + }, + { + "step": 36, + "loss": 0.0003104029456153512, + "target_ce": 0.00011160298163304105, + "replay_kl": 0.00019879997125826776, + "gradient_norm": 0.009481647051870823 + }, + { + "step": 37, + "loss": 0.0002981332363560796, + "target_ce": 0.00010933870362350717, + "replay_kl": 0.00018879454000853002, + "gradient_norm": 0.00901686679571867 + }, + { + "step": 38, + "loss": 0.00028719432884827256, + "target_ce": 0.00010711414506658912, + "replay_kl": 0.00018008018378168344, + "gradient_norm": 0.00860943365842104 + }, + { + "step": 39, + "loss": 0.00027660184423439205, + "target_ce": 0.0001047306795953773, + "replay_kl": 0.00017187115736305714, + "gradient_norm": 0.008219849318265915 + }, + { + "step": 40, + "loss": 0.0002668204833753407, + "target_ce": 0.00010254581138724461, + "replay_kl": 0.0001642746792640537, + "gradient_norm": 0.007865293882787228 + }, + { + "step": 41, + "loss": 0.00025761930737644434, + "target_ce": 0.00010024174116551876, + "replay_kl": 0.00015737756621092558, + "gradient_norm": 0.007532826624810696 + }, + { + "step": 42, + "loss": 0.00024920195573940873, + "target_ce": 9.817600948736072e-05, + "replay_kl": 0.00015102594625204802, + "gradient_norm": 0.007234624121338129 + }, + { + "step": 43, + "loss": 0.00024123804178088903, + "target_ce": 9.603082435205579e-05, + "replay_kl": 0.00014520721742883325, + "gradient_norm": 0.006952149793505669 + }, + { + "step": 44, + "loss": 0.0002335611789021641, + "target_ce": 9.392533684149384e-05, + "replay_kl": 0.00013963584206067026, + "gradient_norm": 0.006684961263090372 + }, + { + "step": 45, + "loss": 0.00022647998412139714, + "target_ce": 9.18198493309319e-05, + "replay_kl": 0.00013466013479046524, + "gradient_norm": 0.006438381504267454 + }, + { + "step": 46, + "loss": 0.00022009701933711767, + "target_ce": 9.011162183014676e-05, + "replay_kl": 0.0001299853902310133, + "gradient_norm": 0.006215674802660942 + }, + { + "step": 47, + "loss": 0.000213569903280586, + "target_ce": 8.796638576313853e-05, + "replay_kl": 0.00012560351751744747, + "gradient_norm": 0.0059869978576898575 + }, + { + "step": 48, + "loss": 0.00020775379380211234, + "target_ce": 8.625813643448055e-05, + "replay_kl": 0.00012149565736763179, + "gradient_norm": 0.005783305503427982 + }, + { + "step": 49, + "loss": 0.00020217409473843873, + "target_ce": 8.447041182080284e-05, + "replay_kl": 0.0001177036901935935, + "gradient_norm": 0.0055933790281414986 + }, + { + "step": 50, + "loss": 0.00019687676103785634, + "target_ce": 8.272240665974095e-05, + "replay_kl": 0.00011415434710215777, + "gradient_norm": 0.005411332007497549 + }, + { + "step": 51, + "loss": 0.0001918728812597692, + "target_ce": 8.101409912342206e-05, + "replay_kl": 0.00011085878213634714, + "gradient_norm": 0.005243012215942144 + }, + { + "step": 52, + "loss": 0.0001873031142167747, + "target_ce": 7.954418106237426e-05, + "replay_kl": 0.00010775893315440044, + "gradient_norm": 0.005085418466478586 + }, + { + "step": 53, + "loss": 0.00018274954345542938, + "target_ce": 7.791533425915986e-05, + "replay_kl": 0.00010483420919626951, + "gradient_norm": 0.004931391682475805 + }, + { + "step": 54, + "loss": 0.00017849411233328283, + "target_ce": 7.64056749176234e-05, + "replay_kl": 0.00010208843741565943, + "gradient_norm": 0.004784507676959038 + }, + { + "step": 55, + "loss": 0.0001745442277751863, + "target_ce": 7.505490793846548e-05, + "replay_kl": 9.948931983672082e-05, + "gradient_norm": 0.004651869181543589 + }, + { + "step": 56, + "loss": 0.00017063959967345, + "target_ce": 7.366441423073411e-05, + "replay_kl": 9.697517816675827e-05, + "gradient_norm": 0.004521322902292013 + }, + { + "step": 57, + "loss": 0.00016701334971003234, + "target_ce": 7.235337398014963e-05, + "replay_kl": 9.465997572988272e-05, + "gradient_norm": 0.004399396479129791 + }, + { + "step": 58, + "loss": 0.00016346920165233314, + "target_ce": 7.104233372956514e-05, + "replay_kl": 9.2426867922768e-05, + "gradient_norm": 0.004277630243450403 + }, + { + "step": 59, + "loss": 0.00016005054931156337, + "target_ce": 6.965181819396093e-05, + "replay_kl": 9.039873111760244e-05, + "gradient_norm": 0.0041669257916510105 + }, + { + "step": 60, + "loss": 0.000156978057930246, + "target_ce": 6.85791383148171e-05, + "replay_kl": 8.83989196154289e-05, + "gradient_norm": 0.0040635354816913605 + }, + { + "step": 61, + "loss": 0.00015385140432044864, + "target_ce": 6.730781024089083e-05, + "replay_kl": 8.654358680360019e-05, + "gradient_norm": 0.003957481123507023 + }, + { + "step": 62, + "loss": 0.00015094707487151027, + "target_ce": 6.615565507672727e-05, + "replay_kl": 8.479141251882538e-05, + "gradient_norm": 0.0038620170671492815 + }, + { + "step": 63, + "loss": 0.00014826006372459233, + "target_ce": 6.516241410281509e-05, + "replay_kl": 8.309764962177724e-05, + "gradient_norm": 0.0037751945201307535 + }, + { + "step": 64, + "loss": 0.00014557872782461345, + "target_ce": 6.412945367628708e-05, + "replay_kl": 8.144926687236875e-05, + "gradient_norm": 0.003686748445034027 + }, + { + "step": 65, + "loss": 0.00014309000107459724, + "target_ce": 6.317593943094835e-05, + "replay_kl": 7.991406164364889e-05, + "gradient_norm": 0.003604660974815488 + }, + { + "step": 66, + "loss": 0.00014056137297302485, + "target_ce": 6.21429571765475e-05, + "replay_kl": 7.841840852051973e-05, + "gradient_norm": 0.00352415069937706 + }, + { + "step": 67, + "loss": 0.00013822840992361307, + "target_ce": 6.12291696597822e-05, + "replay_kl": 7.699924753978848e-05, + "gradient_norm": 0.003446782473474741 + }, + { + "step": 68, + "loss": 0.00013594490883406252, + "target_ce": 6.031538578099571e-05, + "replay_kl": 7.5629519415088e-05, + "gradient_norm": 0.0033745530527085066 + }, + { + "step": 69, + "loss": 0.00013378754374571145, + "target_ce": 5.944131771684624e-05, + "replay_kl": 7.434622966684401e-05, + "gradient_norm": 0.0033060507848858833 + }, + { + "step": 70, + "loss": 0.00013177997607272118, + "target_ce": 5.864671038580127e-05, + "replay_kl": 7.31332620489411e-05, + "gradient_norm": 0.0032421727664768696 + }, + { + "step": 71, + "loss": 0.0001296388218179345, + "target_ce": 5.773291923105717e-05, + "replay_kl": 7.190589531091973e-05, + "gradient_norm": 0.0031735266093164682 + }, + { + "step": 72, + "loss": 0.00012778824020642787, + "target_ce": 5.705749572371133e-05, + "replay_kl": 7.073074812069535e-05, + "gradient_norm": 0.0031149941496551037 + }, + { + "step": 73, + "loss": 0.0001259299460798502, + "target_ce": 5.630262239719741e-05, + "replay_kl": 6.962732004467398e-05, + "gradient_norm": 0.003057030960917473 + }, + { + "step": 74, + "loss": 0.00012405298184603453, + "target_ce": 5.550801506615244e-05, + "replay_kl": 6.854496314190328e-05, + "gradient_norm": 0.0029971490148454905 + }, + { + "step": 75, + "loss": 0.00012251130829099566, + "target_ce": 5.495178629644215e-05, + "replay_kl": 6.75595219945535e-05, + "gradient_norm": 0.0029484538827091455 + }, + { + "step": 76, + "loss": 0.00012086184869986027, + "target_ce": 5.4276370065053925e-05, + "replay_kl": 6.658547499682754e-05, + "gradient_norm": 0.002896031830459833 + }, + { + "step": 77, + "loss": 0.00011918919335585088, + "target_ce": 5.360094291972928e-05, + "replay_kl": 6.558824679814279e-05, + "gradient_norm": 0.0028449692763388157 + }, + { + "step": 78, + "loss": 0.00011753181752283126, + "target_ce": 5.292551941238344e-05, + "replay_kl": 6.460629811044782e-05, + "gradient_norm": 0.0027944783214479685 + }, + { + "step": 79, + "loss": 0.00011605414329096675, + "target_ce": 5.2369283366715536e-05, + "replay_kl": 6.36848562862724e-05, + "gradient_norm": 0.0027498325798660517 + }, + { + "step": 80, + "loss": 0.00011446591088315472, + "target_ce": 5.1654118578881025e-05, + "replay_kl": 6.28117923042737e-05, + "gradient_norm": 0.002701693447306752 + }, + { + "step": 81, + "loss": 0.00011297254968667403, + "target_ce": 5.101841816212982e-05, + "replay_kl": 6.195413152454421e-05, + "gradient_norm": 0.0026575566735118628 + }, + { + "step": 82, + "loss": 0.00011156777327414602, + "target_ce": 5.0422455387888476e-05, + "replay_kl": 6.114531424827874e-05, + "gradient_norm": 0.0026136059314012527 + }, + { + "step": 83, + "loss": 0.0001102856476791203, + "target_ce": 4.994568007532507e-05, + "replay_kl": 6.033996396581642e-05, + "gradient_norm": 0.0025746007449924946 + }, + { + "step": 84, + "loss": 0.00010893277067225426, + "target_ce": 4.934970638714731e-05, + "replay_kl": 5.958306428510696e-05, + "gradient_norm": 0.002535075880587101 + }, + { + "step": 85, + "loss": 0.00010766660125227645, + "target_ce": 4.883319707005285e-05, + "replay_kl": 5.88334041822236e-05, + "gradient_norm": 0.0024964993353933096 + }, + { + "step": 86, + "loss": 0.00010637375817168504, + "target_ce": 4.827695738640614e-05, + "replay_kl": 5.809680442325771e-05, + "gradient_norm": 0.0024584645871073008 + }, + { + "step": 87, + "loss": 0.00010524792014621198, + "target_ce": 4.787964644492604e-05, + "replay_kl": 5.7368273701285943e-05, + "gradient_norm": 0.0024246496614068747 + }, + { + "step": 88, + "loss": 0.00010396064317319542, + "target_ce": 4.732340676127933e-05, + "replay_kl": 5.66372400498949e-05, + "gradient_norm": 0.0023866081610322 + }, + { + "step": 89, + "loss": 0.00010279518755851313, + "target_ce": 4.684662781073712e-05, + "replay_kl": 5.5948559747776017e-05, + "gradient_norm": 0.002353919669985771 + }, + { + "step": 90, + "loss": 0.00010166600986849517, + "target_ce": 4.636984158423729e-05, + "replay_kl": 5.5296168284257874e-05, + "gradient_norm": 0.002321207197383046 + }, + { + "step": 91, + "loss": 0.0001005195954348892, + "target_ce": 4.5853328629164025e-05, + "replay_kl": 5.4666263167746365e-05, + "gradient_norm": 0.002287488430738449 + }, + { + "step": 92, + "loss": 9.947050421033055e-05, + "target_ce": 4.545601041172631e-05, + "replay_kl": 5.401449016062543e-05, + "gradient_norm": 0.0022582460660487413 + }, + { + "step": 93, + "loss": 9.838110418058932e-05, + "target_ce": 4.5018965465715155e-05, + "replay_kl": 5.3362135076895356e-05, + "gradient_norm": 0.0022256500087678432 + }, + { + "step": 94, + "loss": 9.734697960084304e-05, + "target_ce": 4.4581902329809964e-05, + "replay_kl": 5.276507727103308e-05, + "gradient_norm": 0.0021983084734529257 + }, + { + "step": 95, + "loss": 9.634400339564309e-05, + "target_ce": 4.4184587750351056e-05, + "replay_kl": 5.215941564529203e-05, + "gradient_norm": 0.002170524327084422 + }, + { + "step": 96, + "loss": 9.546875662636012e-05, + "target_ce": 4.3866733903996646e-05, + "replay_kl": 5.160202272236347e-05, + "gradient_norm": 0.0021441695280373096 + }, + { + "step": 97, + "loss": 9.444782335776836e-05, + "target_ce": 4.3429681682027876e-05, + "replay_kl": 5.101814167574048e-05, + "gradient_norm": 0.0021151991095393896 + }, + { + "step": 98, + "loss": 9.35231801122427e-05, + "target_ce": 4.307209746912122e-05, + "replay_kl": 5.045108264312148e-05, + "gradient_norm": 0.0020891032181680202 + }, + { + "step": 99, + "loss": 9.265937842428684e-05, + "target_ce": 4.275424362276681e-05, + "replay_kl": 4.990513116354123e-05, + "gradient_norm": 0.002065452514216304 + }, + { + "step": 100, + "loss": 9.179118205793202e-05, + "target_ce": 4.239665577188134e-05, + "replay_kl": 4.939452628605068e-05, + "gradient_norm": 0.002040333580225706 + }, + { + "step": 101, + "loss": 9.074654371943325e-05, + "target_ce": 4.188013554085046e-05, + "replay_kl": 4.886640817858279e-05, + "gradient_norm": 0.0020115405786782503 + }, + { + "step": 102, + "loss": 8.997609984362498e-05, + "target_ce": 4.1602004785090685e-05, + "replay_kl": 4.8374095058534294e-05, + "gradient_norm": 0.001991473138332367 + }, + { + "step": 103, + "loss": 8.910622273106128e-05, + "target_ce": 4.124441693420522e-05, + "replay_kl": 4.7861802158877254e-05, + "gradient_norm": 0.0019671714399009943 + }, + { + "step": 104, + "loss": 8.830730803310871e-05, + "target_ce": 4.096629345440306e-05, + "replay_kl": 4.734101821668446e-05, + "gradient_norm": 0.0019447555532678962 + }, + { + "step": 105, + "loss": 8.747114043217152e-05, + "target_ce": 4.060870560351759e-05, + "replay_kl": 4.6862431190675125e-05, + "gradient_norm": 0.0019212409388273954 + }, + { + "step": 106, + "loss": 8.666607027407736e-05, + "target_ce": 4.0290848119184375e-05, + "replay_kl": 4.6375218516914174e-05, + "gradient_norm": 0.0018987023504450917 + }, + { + "step": 107, + "loss": 8.590899233240634e-05, + "target_ce": 4.0012721001403406e-05, + "replay_kl": 4.589627496898174e-05, + "gradient_norm": 0.0018787957960739732 + }, + { + "step": 108, + "loss": 8.510718180332333e-05, + "target_ce": 3.9655125874560326e-05, + "replay_kl": 4.5452055928763e-05, + "gradient_norm": 0.001858058269135654 + }, + { + "step": 109, + "loss": 8.440854435320944e-05, + "target_ce": 3.9416732761310413e-05, + "replay_kl": 4.4991807953920215e-05, + "gradient_norm": 0.0018384327413514256 + }, + { + "step": 110, + "loss": 8.358094055438414e-05, + "target_ce": 3.9059137634467334e-05, + "replay_kl": 4.452180291991681e-05, + "gradient_norm": 0.0018165612127631903 + }, + { + "step": 111, + "loss": 8.287304808618501e-05, + "target_ce": 3.878100687870756e-05, + "replay_kl": 4.409204120747745e-05, + "gradient_norm": 0.0017989426851272583 + }, + { + "step": 112, + "loss": 8.218755829147995e-05, + "target_ce": 3.850287976092659e-05, + "replay_kl": 4.368467489257455e-05, + "gradient_norm": 0.0017804085509851575 + }, + { + "step": 113, + "loss": 8.142106526065618e-05, + "target_ce": 3.818502227659337e-05, + "replay_kl": 4.3236039346084e-05, + "gradient_norm": 0.001759143895469606 + }, + { + "step": 114, + "loss": 8.082085696514696e-05, + "target_ce": 3.798635952989571e-05, + "replay_kl": 4.2834493797272444e-05, + "gradient_norm": 0.001743035507388413 + }, + { + "step": 115, + "loss": 8.007657015696168e-05, + "target_ce": 3.7668498407583684e-05, + "replay_kl": 4.24080753873568e-05, + "gradient_norm": 0.0017227833159267902 + }, + { + "step": 116, + "loss": 7.943509262986481e-05, + "target_ce": 3.743010529433377e-05, + "replay_kl": 4.200498733553104e-05, + "gradient_norm": 0.001706775277853012 + }, + { + "step": 117, + "loss": 7.879135955590755e-05, + "target_ce": 3.7191704905126244e-05, + "replay_kl": 4.159965828876011e-05, + "gradient_norm": 0.0016896672314032912 + }, + { + "step": 118, + "loss": 7.818909944035113e-05, + "target_ce": 3.695330451591872e-05, + "replay_kl": 4.123579856241122e-05, + "gradient_norm": 0.0016749706119298935 + }, + { + "step": 119, + "loss": 7.746920164208859e-05, + "target_ce": 3.6595713027054444e-05, + "replay_kl": 4.087348497705534e-05, + "gradient_norm": 0.0016557935159653425 + }, + { + "step": 120, + "loss": 7.688544428674504e-05, + "target_ce": 3.639705028035678e-05, + "replay_kl": 4.048839400638826e-05, + "gradient_norm": 0.001640688395127654 + }, + { + "step": 121, + "loss": 7.626910519320518e-05, + "target_ce": 3.615865352912806e-05, + "replay_kl": 4.0110455302055925e-05, + "gradient_norm": 0.0016235943185165524 + }, + { + "step": 122, + "loss": 7.568375440314412e-05, + "target_ce": 3.592025677789934e-05, + "replay_kl": 3.976349762524478e-05, + "gradient_norm": 0.001608573948033154 + }, + { + "step": 123, + "loss": 7.508513954235241e-05, + "target_ce": 3.568186002667062e-05, + "replay_kl": 3.940327951568179e-05, + "gradient_norm": 0.001592922955751419 + }, + { + "step": 124, + "loss": 7.458057370968163e-05, + "target_ce": 3.5522927646525204e-05, + "replay_kl": 3.9057646063156426e-05, + "gradient_norm": 0.001578782219439745 + }, + { + "step": 125, + "loss": 7.393350824713707e-05, + "target_ce": 3.5244800528744236e-05, + "replay_kl": 3.868871135637164e-05, + "gradient_norm": 0.0015622690552845597 + }, + { + "step": 126, + "loss": 7.330060907406732e-05, + "target_ce": 3.496666977298446e-05, + "replay_kl": 3.8333939301082864e-05, + "gradient_norm": 0.0015460513532161713 + }, + { + "step": 127, + "loss": 7.277628901647404e-05, + "target_ce": 3.4807737392839044e-05, + "replay_kl": 3.7968551623634994e-05, + "gradient_norm": 0.0015320515958592296 + }, + { + "step": 128, + "loss": 7.220271800179034e-05, + "target_ce": 3.452960299910046e-05, + "replay_kl": 3.767311500268988e-05, + "gradient_norm": 0.0015183350769802928 + }, + { + "step": 129, + "loss": 7.167879084590822e-05, + "target_ce": 3.433093661442399e-05, + "replay_kl": 3.734785786946304e-05, + "gradient_norm": 0.0015056346310302615 + }, + { + "step": 130, + "loss": 7.114118488971144e-05, + "target_ce": 3.409253986319527e-05, + "replay_kl": 3.704864502651617e-05, + "gradient_norm": 0.0014912643237039447 + }, + { + "step": 131, + "loss": 7.065743557177484e-05, + "target_ce": 3.3933607483049855e-05, + "replay_kl": 3.672383172670379e-05, + "gradient_norm": 0.0014783777296543121 + }, + { + "step": 132, + "loss": 7.005341467447579e-05, + "target_ce": 3.365547308931127e-05, + "replay_kl": 3.639794158516452e-05, + "gradient_norm": 0.0014645331539213657 + }, + { + "step": 133, + "loss": 6.954729906283319e-05, + "target_ce": 3.34568067046348e-05, + "replay_kl": 3.609049235819839e-05, + "gradient_norm": 0.0014525389997288585 + }, + { + "step": 134, + "loss": 6.908110663061962e-05, + "target_ce": 3.3297874324489385e-05, + "replay_kl": 3.578323230613023e-05, + "gradient_norm": 0.0014399559004232287 + }, + { + "step": 135, + "loss": 6.855890387669206e-05, + "target_ce": 3.305947393528186e-05, + "replay_kl": 3.5499433579389006e-05, + "gradient_norm": 0.0014267469523474574 + }, + { + "step": 136, + "loss": 6.812498031649739e-05, + "target_ce": 3.290054519311525e-05, + "replay_kl": 3.5224435123382136e-05, + "gradient_norm": 0.0014153701486065984 + }, + { + "step": 137, + "loss": 6.767856393707916e-05, + "target_ce": 3.2741612812969834e-05, + "replay_kl": 3.493695112410933e-05, + "gradient_norm": 0.0014035394415259361 + }, + { + "step": 138, + "loss": 6.716950156260282e-05, + "target_ce": 3.254294642829336e-05, + "replay_kl": 3.462655149633065e-05, + "gradient_norm": 0.001391007099300623 + }, + { + "step": 139, + "loss": 6.672566087218001e-05, + "target_ce": 3.2384014048147947e-05, + "replay_kl": 3.434164682403207e-05, + "gradient_norm": 0.0013790602097287774 + }, + { + "step": 140, + "loss": 6.627569382544607e-05, + "target_ce": 3.222508166800253e-05, + "replay_kl": 3.405061215744354e-05, + "gradient_norm": 0.001368026016280055 + }, + { + "step": 141, + "loss": 6.577438034582883e-05, + "target_ce": 3.1986681278795004e-05, + "replay_kl": 3.378769542905502e-05, + "gradient_norm": 0.0013557455968111753 + }, + { + "step": 142, + "loss": 6.540666799992323e-05, + "target_ce": 3.1867482903180644e-05, + "replay_kl": 3.353918145876378e-05, + "gradient_norm": 0.0013472019927576184 + }, + { + "step": 143, + "loss": 6.493768887594342e-05, + "target_ce": 3.1668812880525365e-05, + "replay_kl": 3.326887235743925e-05, + "gradient_norm": 0.0013349701184779406 + }, + { + "step": 144, + "loss": 6.450392538681626e-05, + "target_ce": 3.150988413835876e-05, + "replay_kl": 3.2994044886436313e-05, + "gradient_norm": 0.0013237547827884555 + }, + { + "step": 145, + "loss": 6.400741403922439e-05, + "target_ce": 3.127148011117242e-05, + "replay_kl": 3.2735933928051963e-05, + "gradient_norm": 0.0013119716895744205 + }, + { + "step": 146, + "loss": 6.36307813692838e-05, + "target_ce": 3.1152278097579256e-05, + "replay_kl": 3.247850327170454e-05, + "gradient_norm": 0.001302135642617941 + }, + { + "step": 147, + "loss": 6.323032721411437e-05, + "target_ce": 3.099334935541265e-05, + "replay_kl": 3.2236974220722914e-05, + "gradient_norm": 0.0012918178690597415 + }, + { + "step": 148, + "loss": 6.277165084611624e-05, + "target_ce": 3.079467933275737e-05, + "replay_kl": 3.197696787538007e-05, + "gradient_norm": 0.0012802446726709604 + }, + { + "step": 149, + "loss": 6.233177555259317e-05, + "target_ce": 3.059600931010209e-05, + "replay_kl": 3.173576624249108e-05, + "gradient_norm": 0.001270957407541573 + }, + { + "step": 150, + "loss": 6.191102875163779e-05, + "target_ce": 3.0437076929956675e-05, + "replay_kl": 3.147395182168111e-05, + "gradient_norm": 0.0012604083167389035 + }, + { + "step": 151, + "loss": 6.155474693514407e-05, + "target_ce": 3.031787673535291e-05, + "replay_kl": 3.123687201878056e-05, + "gradient_norm": 0.0012510671513155103 + }, + { + "step": 152, + "loss": 6.111287075327709e-05, + "target_ce": 3.0119206712697633e-05, + "replay_kl": 3.0993665859568864e-05, + "gradient_norm": 0.0012412123614922166 + }, + { + "step": 153, + "loss": 6.0731457779183984e-05, + "target_ce": 2.996027069457341e-05, + "replay_kl": 3.077118890359998e-05, + "gradient_norm": 0.0012322666589170694 + }, + { + "step": 154, + "loss": 6.0316844610497355e-05, + "target_ce": 2.976160067191813e-05, + "replay_kl": 3.055524575756863e-05, + "gradient_norm": 0.0012229819549247622 + }, + { + "step": 155, + "loss": 5.991532088955864e-05, + "target_ce": 2.9602668291772716e-05, + "replay_kl": 3.031265441677533e-05, + "gradient_norm": 0.0012127956142649055 + }, + { + "step": 156, + "loss": 5.940147093497217e-05, + "target_ce": 2.9324530260055326e-05, + "replay_kl": 3.0076942493906245e-05, + "gradient_norm": 0.0012007802724838257 + }, + { + "step": 157, + "loss": 5.909497122047469e-05, + "target_ce": 2.9245064069982618e-05, + "replay_kl": 2.9849907150492072e-05, + "gradient_norm": 0.0011925905710086226 + }, + { + "step": 158, + "loss": 5.871060420759022e-05, + "target_ce": 2.90861298708478e-05, + "replay_kl": 2.9624474336742423e-05, + "gradient_norm": 0.001183160929940641 + }, + { + "step": 159, + "loss": 5.8393561630509794e-05, + "target_ce": 2.8966926038265228e-05, + "replay_kl": 2.9426633773255162e-05, + "gradient_norm": 0.0011763705406337976 + }, + { + "step": 160, + "loss": 5.800314829684794e-05, + "target_ce": 2.880799183913041e-05, + "replay_kl": 2.9195158276706934e-05, + "gradient_norm": 0.0011667710496112704 + }, + { + "step": 161, + "loss": 5.7683610066305846e-05, + "target_ce": 2.868879346351605e-05, + "replay_kl": 2.89948184217792e-05, + "gradient_norm": 0.0011582307051867247 + }, + { + "step": 162, + "loss": 5.738158506574109e-05, + "target_ce": 2.8609325454453938e-05, + "replay_kl": 2.8772261430276558e-05, + "gradient_norm": 0.0011517828097566962 + }, + { + "step": 163, + "loss": 5.696667358279228e-05, + "target_ce": 2.8410657250788063e-05, + "replay_kl": 2.8556014513014816e-05, + "gradient_norm": 0.0011405692202970386 + }, + { + "step": 164, + "loss": 5.668786616297439e-05, + "target_ce": 2.833118924172595e-05, + "replay_kl": 2.8356676921248436e-05, + "gradient_norm": 0.0011335195740684867 + }, + { + "step": 165, + "loss": 5.6323042372241616e-05, + "target_ce": 2.8172255042591132e-05, + "replay_kl": 2.8150787329650484e-05, + "gradient_norm": 0.0011243360349908471 + }, + { + "step": 166, + "loss": 5.60153421247378e-05, + "target_ce": 2.805305121000856e-05, + "replay_kl": 2.7962290914729238e-05, + "gradient_norm": 0.0011178577551618218 + }, + { + "step": 167, + "loss": 5.562874139286578e-05, + "target_ce": 2.7854383006342687e-05, + "replay_kl": 2.7774356567533687e-05, + "gradient_norm": 0.0011081021511927247 + }, + { + "step": 168, + "loss": 5.5395474191755056e-05, + "target_ce": 2.781464900181163e-05, + "replay_kl": 2.7580823370954022e-05, + "gradient_norm": 0.0011016597272828221 + }, + { + "step": 169, + "loss": 5.4974861996015534e-05, + "target_ce": 2.7576248612604104e-05, + "replay_kl": 2.739861338341143e-05, + "gradient_norm": 0.0010918999323621392 + }, + { + "step": 170, + "loss": 5.4685551731381565e-05, + "target_ce": 2.7496782422531396e-05, + "replay_kl": 2.718876930885017e-05, + "gradient_norm": 0.0010850585531443357 + }, + { + "step": 171, + "loss": 5.4393378377426416e-05, + "target_ce": 2.737758040893823e-05, + "replay_kl": 2.7015797968488187e-05, + "gradient_norm": 0.0010765634942799807 + }, + { + "step": 172, + "loss": 5.407479329733178e-05, + "target_ce": 2.725837657635566e-05, + "replay_kl": 2.6816418539965525e-05, + "gradient_norm": 0.0010700118727982044 + }, + { + "step": 173, + "loss": 5.374999454943463e-05, + "target_ce": 2.709944237722084e-05, + "replay_kl": 2.6650552172213793e-05, + "gradient_norm": 0.0010623380076140165 + }, + { + "step": 174, + "loss": 5.3452666179509833e-05, + "target_ce": 2.698023854463827e-05, + "replay_kl": 2.6472427634871565e-05, + "gradient_norm": 0.0010555601911619306 + }, + { + "step": 175, + "loss": 5.315454109222628e-05, + "target_ce": 2.68610365310451e-05, + "replay_kl": 2.629350456118118e-05, + "gradient_norm": 0.0010479242773726583 + }, + { + "step": 176, + "loss": 5.2876712288707495e-05, + "target_ce": 2.6741836336441338e-05, + "replay_kl": 2.6134875952266157e-05, + "gradient_norm": 0.0010408962843939662 + }, + { + "step": 177, + "loss": 5.255376163404435e-05, + "target_ce": 2.662263432284817e-05, + "replay_kl": 2.5931125492206775e-05, + "gradient_norm": 0.001033283188007772 + }, + { + "step": 178, + "loss": 5.23095004609786e-05, + "target_ce": 2.654316631378606e-05, + "replay_kl": 2.5766334147192538e-05, + "gradient_norm": 0.0010268050245940685 + }, + { + "step": 179, + "loss": 5.198911821935326e-05, + "target_ce": 2.638423211465124e-05, + "replay_kl": 2.5604886104702018e-05, + "gradient_norm": 0.0010182386031374335 + }, + { + "step": 180, + "loss": 5.1729097322095186e-05, + "target_ce": 2.630476410558913e-05, + "replay_kl": 2.542433503549546e-05, + "gradient_norm": 0.0010125015396624804 + }, + { + "step": 181, + "loss": 5.1458329835440964e-05, + "target_ce": 2.6185562091995962e-05, + "replay_kl": 2.5272767743445e-05, + "gradient_norm": 0.0010058855405077338 + }, + { + "step": 182, + "loss": 5.1208924560341984e-05, + "target_ce": 2.610609408293385e-05, + "replay_kl": 2.5102832296397537e-05, + "gradient_norm": 0.0010000045876950026 + }, + { + "step": 183, + "loss": 5.0997245125472546e-05, + "target_ce": 2.6066360078402795e-05, + "replay_kl": 2.4930886866059154e-05, + "gradient_norm": 0.0009947885992005467 + }, + { + "step": 184, + "loss": 5.0648770411498845e-05, + "target_ce": 2.5867693693726324e-05, + "replay_kl": 2.4781078536761925e-05, + "gradient_norm": 0.0009853629162535071 + }, + { + "step": 185, + "loss": 5.040883843321353e-05, + "target_ce": 2.5788225684664212e-05, + "replay_kl": 2.4620614567538723e-05, + "gradient_norm": 0.0009795284131541848 + }, + { + "step": 186, + "loss": 5.005242564948276e-05, + "target_ce": 2.5589555662008934e-05, + "replay_kl": 2.446286816848442e-05, + "gradient_norm": 0.0009723235853016376 + }, + { + "step": 187, + "loss": 4.980228914064355e-05, + "target_ce": 2.5510087652946822e-05, + "replay_kl": 2.429220148769673e-05, + "gradient_norm": 0.0009660100331529975 + }, + { + "step": 188, + "loss": 4.9578749894862995e-05, + "target_ce": 2.543061964388471e-05, + "replay_kl": 2.4148130250978284e-05, + "gradient_norm": 0.0009604269871488214 + }, + { + "step": 189, + "loss": 4.9357404350303113e-05, + "target_ce": 2.53511516348226e-05, + "replay_kl": 2.4006254534469917e-05, + "gradient_norm": 0.0009551262483000755 + }, + { + "step": 190, + "loss": 4.91297323605977e-05, + "target_ce": 2.5271685444749892e-05, + "replay_kl": 2.3858045096858405e-05, + "gradient_norm": 0.0009491179953329265 + }, + { + "step": 191, + "loss": 4.8813446483109146e-05, + "target_ce": 2.511274942662567e-05, + "replay_kl": 2.3700697056483477e-05, + "gradient_norm": 0.0009413697989657521 + }, + { + "step": 192, + "loss": 4.857735984842293e-05, + "target_ce": 2.5033281417563558e-05, + "replay_kl": 2.3544078430859372e-05, + "gradient_norm": 0.0009359847754240036 + }, + { + "step": 193, + "loss": 4.828093369724229e-05, + "target_ce": 2.487434358044993e-05, + "replay_kl": 2.3406591935781762e-05, + "gradient_norm": 0.0009291142923757434 + }, + { + "step": 194, + "loss": 4.8074980441015214e-05, + "target_ce": 2.4794871933409013e-05, + "replay_kl": 2.3280110326595604e-05, + "gradient_norm": 0.0009250629227608442 + }, + { + "step": 195, + "loss": 4.772507236339152e-05, + "target_ce": 2.459620009176433e-05, + "replay_kl": 2.3128872271627188e-05, + "gradient_norm": 0.0009176750900223851 + }, + { + "step": 196, + "loss": 4.7550263843731955e-05, + "target_ce": 2.4556466087233275e-05, + "replay_kl": 2.299379775649868e-05, + "gradient_norm": 0.0009129951940849423 + }, + { + "step": 197, + "loss": 4.732757224701345e-05, + "target_ce": 2.4476998078171164e-05, + "replay_kl": 2.2850574168842286e-05, + "gradient_norm": 0.0009077262948267162 + }, + { + "step": 198, + "loss": 4.70734630653169e-05, + "target_ce": 2.4357796064577997e-05, + "replay_kl": 2.2715667000738904e-05, + "gradient_norm": 0.0009010881185531616 + }, + { + "step": 199, + "loss": 4.681607970269397e-05, + "target_ce": 2.423859405098483e-05, + "replay_kl": 2.257748565170914e-05, + "gradient_norm": 0.0008950636838562787 + }, + { + "step": 200, + "loss": 4.6601631765952334e-05, + "target_ce": 2.4159126041922718e-05, + "replay_kl": 2.2442505724029616e-05, + "gradient_norm": 0.0008897455409169197 + }, + { + "step": 201, + "loss": 4.634106153389439e-05, + "target_ce": 2.403992402832955e-05, + "replay_kl": 2.2301135686575435e-05, + "gradient_norm": 0.0008837748318910599 + }, + { + "step": 202, + "loss": 4.612686097971164e-05, + "target_ce": 2.396045601926744e-05, + "replay_kl": 2.2166404960444197e-05, + "gradient_norm": 0.0008782666409388185 + }, + { + "step": 203, + "loss": 4.5836055505787954e-05, + "target_ce": 2.3801520001143217e-05, + "replay_kl": 2.2034535504644737e-05, + "gradient_norm": 0.0008722605416551232 + }, + { + "step": 204, + "loss": 4.567188807413913e-05, + "target_ce": 2.376178599661216e-05, + "replay_kl": 2.1910102077526972e-05, + "gradient_norm": 0.0008671688847243786 + }, + { + "step": 205, + "loss": 4.550947778625414e-05, + "target_ce": 2.3722051992081106e-05, + "replay_kl": 2.178742397518363e-05, + "gradient_norm": 0.0008635360281914473 + }, + { + "step": 206, + "loss": 4.5229928218759596e-05, + "target_ce": 2.356311415496748e-05, + "replay_kl": 2.166681588278152e-05, + "gradient_norm": 0.0008564894669689238 + }, + { + "step": 207, + "loss": 4.504745083977468e-05, + "target_ce": 2.3523380150436424e-05, + "replay_kl": 2.152407068933826e-05, + "gradient_norm": 0.0008515574154444039 + }, + { + "step": 208, + "loss": 4.479810013435781e-05, + "target_ce": 2.3404178136843257e-05, + "replay_kl": 2.1393923816503957e-05, + "gradient_norm": 0.000846170587465167 + }, + { + "step": 209, + "loss": 4.461893695406616e-05, + "target_ce": 2.33644441323122e-05, + "replay_kl": 2.125449464074336e-05, + "gradient_norm": 0.0008419082150794566 + }, + { + "step": 210, + "loss": 4.4429114495869726e-05, + "target_ce": 2.328497612325009e-05, + "replay_kl": 2.1144136553630233e-05, + "gradient_norm": 0.0008367616101168096 + }, + { + "step": 211, + "loss": 4.4185864680912346e-05, + "target_ce": 2.3165774109656923e-05, + "replay_kl": 2.1020092390244827e-05, + "gradient_norm": 0.0008304564980790019 + }, + { + "step": 212, + "loss": 4.3992000428261235e-05, + "target_ce": 2.308630610059481e-05, + "replay_kl": 2.0905694327666424e-05, + "gradient_norm": 0.0008260535541921854 + }, + { + "step": 213, + "loss": 4.3755455408245325e-05, + "target_ce": 2.2967100449022837e-05, + "replay_kl": 2.078835677821189e-05, + "gradient_norm": 0.0008212112006731331 + }, + { + "step": 214, + "loss": 4.359777085483074e-05, + "target_ce": 2.292736644449178e-05, + "replay_kl": 2.067040441033896e-05, + "gradient_norm": 0.0008166946936398745 + }, + { + "step": 215, + "loss": 4.339891893323511e-05, + "target_ce": 2.284789843542967e-05, + "replay_kl": 2.055102049780544e-05, + "gradient_norm": 0.0008121123537421227 + }, + { + "step": 216, + "loss": 4.3172385630896315e-05, + "target_ce": 2.27286946028471e-05, + "replay_kl": 2.0443691028049216e-05, + "gradient_norm": 0.0008068026509135962 + }, + { + "step": 217, + "loss": 4.3005540646845475e-05, + "target_ce": 2.2688960598316044e-05, + "replay_kl": 2.031658004852943e-05, + "gradient_norm": 0.0008027376024983823 + }, + { + "step": 218, + "loss": 4.282254303689115e-05, + "target_ce": 2.2609492589253932e-05, + "replay_kl": 2.0213050447637215e-05, + "gradient_norm": 0.0007982039824128151 + }, + { + "step": 219, + "loss": 4.26669284934178e-05, + "target_ce": 2.2569758584722877e-05, + "replay_kl": 2.009716808970552e-05, + "gradient_norm": 0.0007938563940115273 + }, + { + "step": 220, + "loss": 4.248387995176017e-05, + "target_ce": 2.2490290575660765e-05, + "replay_kl": 1.9993589376099408e-05, + "gradient_norm": 0.0007894710870459676 + }, + { + "step": 221, + "loss": 4.2292776925023645e-05, + "target_ce": 2.2410822566598654e-05, + "replay_kl": 1.9881952539435588e-05, + "gradient_norm": 0.0007850296096876264 + }, + { + "step": 222, + "loss": 4.20234864577651e-05, + "target_ce": 2.225188109150622e-05, + "replay_kl": 1.9771605366258882e-05, + "gradient_norm": 0.0007789864903315902 + }, + { + "step": 223, + "loss": 4.183867713436484e-05, + "target_ce": 2.217241308244411e-05, + "replay_kl": 1.9666264051920734e-05, + "gradient_norm": 0.0007745695183984935 + }, + { + "step": 224, + "loss": 4.163944686297327e-05, + "target_ce": 2.2092943254392594e-05, + "replay_kl": 1.954650360858068e-05, + "gradient_norm": 0.0007714072708040476 + }, + { + "step": 225, + "loss": 4.144299600739032e-05, + "target_ce": 2.201347342634108e-05, + "replay_kl": 1.9429524400038645e-05, + "gradient_norm": 0.000766251003369689 + }, + { + "step": 226, + "loss": 4.126183193875477e-05, + "target_ce": 2.1934005417278968e-05, + "replay_kl": 1.9327828340465203e-05, + "gradient_norm": 0.0007620388059876859 + }, + { + "step": 227, + "loss": 4.1074737964663655e-05, + "target_ce": 2.1854537408216856e-05, + "replay_kl": 1.92202023754362e-05, + "gradient_norm": 0.0007571099558845162 + }, + { + "step": 228, + "loss": 4.092853851034306e-05, + "target_ce": 2.18148034036858e-05, + "replay_kl": 1.911373510665726e-05, + "gradient_norm": 0.0007537601049989462 + }, + { + "step": 229, + "loss": 4.074500611750409e-05, + "target_ce": 2.173533539462369e-05, + "replay_kl": 1.9009672541869804e-05, + "gradient_norm": 0.0007493785815313458 + }, + { + "step": 230, + "loss": 4.057214391650632e-05, + "target_ce": 2.165586374758277e-05, + "replay_kl": 1.8916278349934146e-05, + "gradient_norm": 0.0007448631222359836 + }, + { + "step": 231, + "loss": 4.0425045881420374e-05, + "target_ce": 2.1616129743051715e-05, + "replay_kl": 1.8808914319379255e-05, + "gradient_norm": 0.0007413756684400141 + }, + { + "step": 232, + "loss": 4.024613735964522e-05, + "target_ce": 2.1536661733989604e-05, + "replay_kl": 1.8709475625655614e-05, + "gradient_norm": 0.0007371142855845392 + }, + { + "step": 233, + "loss": 4.0112856368068606e-05, + "target_ce": 2.1496927729458548e-05, + "replay_kl": 1.8615928638610058e-05, + "gradient_norm": 0.0007330513326451182 + }, + { + "step": 234, + "loss": 3.989065589848906e-05, + "target_ce": 2.1377723896875978e-05, + "replay_kl": 1.851293200161308e-05, + "gradient_norm": 0.000728632090613246 + }, + { + "step": 235, + "loss": 3.976536390837282e-05, + "target_ce": 2.1337989892344922e-05, + "replay_kl": 1.84273758350173e-05, + "gradient_norm": 0.0007248602923937142 + }, + { + "step": 236, + "loss": 3.9618989831069484e-05, + "target_ce": 2.1298255887813866e-05, + "replay_kl": 1.8320733943255618e-05, + "gradient_norm": 0.0007214482175186276 + }, + { + "step": 237, + "loss": 3.9403596019838005e-05, + "target_ce": 2.1179052055231296e-05, + "replay_kl": 1.8224545783596113e-05, + "gradient_norm": 0.0007170095923356712 + }, + { + "step": 238, + "loss": 3.9233113056980073e-05, + "target_ce": 2.1099580408190377e-05, + "replay_kl": 1.8133530829800293e-05, + "gradient_norm": 0.000713509158231318 + }, + { + "step": 239, + "loss": 3.9055921661201864e-05, + "target_ce": 2.1020112399128266e-05, + "replay_kl": 1.8035807443084195e-05, + "gradient_norm": 0.0007094885222613811 + }, + { + "step": 240, + "loss": 3.889247454935685e-05, + "target_ce": 2.0940644390066154e-05, + "replay_kl": 1.795182834030129e-05, + "gradient_norm": 0.0007054011803120375 + }, + { + "step": 241, + "loss": 3.875698894262314e-05, + "target_ce": 2.09009103855351e-05, + "replay_kl": 1.7856080376077443e-05, + "gradient_norm": 0.0007017309544607997 + }, + { + "step": 242, + "loss": 3.858326090266928e-05, + "target_ce": 2.0821440557483584e-05, + "replay_kl": 1.77618221641751e-05, + "gradient_norm": 0.0006980561302043498 + }, + { + "step": 243, + "loss": 3.8415499147959054e-05, + "target_ce": 2.0741972548421472e-05, + "replay_kl": 1.767352659953758e-05, + "gradient_norm": 0.000693705165758729 + }, + { + "step": 244, + "loss": 3.832622314803302e-05, + "target_ce": 2.0741972548421472e-05, + "replay_kl": 1.758425059961155e-05, + "gradient_norm": 0.000691113353241235 + }, + { + "step": 245, + "loss": 3.816019670921378e-05, + "target_ce": 2.066250453935936e-05, + "replay_kl": 1.7497692169854417e-05, + "gradient_norm": 0.0006870938232168555 + }, + { + "step": 246, + "loss": 3.7991154385963455e-05, + "target_ce": 2.0583034711307846e-05, + "replay_kl": 1.740811967465561e-05, + "gradient_norm": 0.0006832711515016854 + }, + { + "step": 247, + "loss": 3.783423744607717e-05, + "target_ce": 2.0503566702245735e-05, + "replay_kl": 1.733066892484203e-05, + "gradient_norm": 0.0006791258929297328 + }, + { + "step": 248, + "loss": 3.76553725800477e-05, + "target_ce": 2.0424095055204816e-05, + "replay_kl": 1.723127752484288e-05, + "gradient_norm": 0.0006747362785972655 + }, + { + "step": 249, + "loss": 3.757966260309331e-05, + "target_ce": 2.0424095055204816e-05, + "replay_kl": 1.7155567547888495e-05, + "gradient_norm": 0.0006724180420860648 + }, + { + "step": 250, + "loss": 3.7411336961667985e-05, + "target_ce": 2.0344627046142705e-05, + "replay_kl": 1.706670991552528e-05, + "gradient_norm": 0.0006683538085781038 + }, + { + "step": 251, + "loss": 3.721162647707388e-05, + "target_ce": 2.0225425032549538e-05, + "replay_kl": 1.6986203263513744e-05, + "gradient_norm": 0.0006641707150265574 + }, + { + "step": 252, + "loss": 3.711905446834862e-05, + "target_ce": 2.0225425032549538e-05, + "replay_kl": 1.689362761680968e-05, + "gradient_norm": 0.0006617736653424799 + }, + { + "step": 253, + "loss": 3.691278106998652e-05, + "target_ce": 2.0106219380977564e-05, + "replay_kl": 1.680656168900896e-05, + "gradient_norm": 0.0006575263687409461 + }, + { + "step": 254, + "loss": 3.679988003568724e-05, + "target_ce": 2.0066485376446508e-05, + "replay_kl": 1.6733392840251327e-05, + "gradient_norm": 0.000654803414363414 + }, + { + "step": 255, + "loss": 3.664312680484727e-05, + "target_ce": 1.9987017367384396e-05, + "replay_kl": 1.665610761847347e-05, + "gradient_norm": 0.0006508101942017674 + }, + { + "step": 256, + "loss": 3.6519631976261735e-05, + "target_ce": 1.9947281543863937e-05, + "replay_kl": 1.65723522513872e-05, + "gradient_norm": 0.0006474124966189265 + }, + { + "step": 257, + "loss": 3.635493339970708e-05, + "target_ce": 1.9867811715812422e-05, + "replay_kl": 1.6487121683894657e-05, + "gradient_norm": 0.0006448571220971644 + }, + { + "step": 258, + "loss": 3.6235353036317974e-05, + "target_ce": 1.9828075892291963e-05, + "replay_kl": 1.6407275325036608e-05, + "gradient_norm": 0.0006414093659259379 + }, + { + "step": 259, + "loss": 3.609281702665612e-05, + "target_ce": 1.9748607883229852e-05, + "replay_kl": 1.6344207324436866e-05, + "gradient_norm": 0.0006382085266523063 + }, + { + "step": 260, + "loss": 3.595666930777952e-05, + "target_ce": 1.9708872059709392e-05, + "replay_kl": 1.6247795429080725e-05, + "gradient_norm": 0.0006348319002427161 + }, + { + "step": 261, + "loss": 3.581217970349826e-05, + "target_ce": 1.962940405064728e-05, + "replay_kl": 1.6182775652850978e-05, + "gradient_norm": 0.0006309247110038996 + }, + { + "step": 262, + "loss": 3.5647590266307816e-05, + "target_ce": 1.954993604158517e-05, + "replay_kl": 1.6097654224722646e-05, + "gradient_norm": 0.0006270000012591481 + }, + { + "step": 263, + "loss": 3.556334559107199e-05, + "target_ce": 1.954993604158517e-05, + "replay_kl": 1.6013411368476227e-05, + "gradient_norm": 0.0006247263518162072 + }, + { + "step": 264, + "loss": 3.541818659869023e-05, + "target_ce": 1.947046439454425e-05, + "replay_kl": 1.5947722204145975e-05, + "gradient_norm": 0.0006224939716048539 + }, + { + "step": 265, + "loss": 3.52703282260336e-05, + "target_ce": 1.9390994566492736e-05, + "replay_kl": 1.5879333659540862e-05, + "gradient_norm": 0.000619004073087126 + }, + { + "step": 266, + "loss": 3.519597157719545e-05, + "target_ce": 1.9390994566492736e-05, + "replay_kl": 1.5804977010702714e-05, + "gradient_norm": 0.0006168665713630617 + }, + { + "step": 267, + "loss": 3.500974708003923e-05, + "target_ce": 1.9271790733910166e-05, + "replay_kl": 1.573795816511847e-05, + "gradient_norm": 0.0006123600760474801 + }, + { + "step": 268, + "loss": 3.4941433113999665e-05, + "target_ce": 1.9271790733910166e-05, + "replay_kl": 1.5669644199078903e-05, + "gradient_norm": 0.0006103298510424793 + }, + { + "step": 269, + "loss": 3.478157668723725e-05, + "target_ce": 1.9192322724848054e-05, + "replay_kl": 1.5589253962389193e-05, + "gradient_norm": 0.000606661953497678 + }, + { + "step": 270, + "loss": 3.466803173068911e-05, + "target_ce": 1.915258508233819e-05, + "replay_kl": 1.5515444829361513e-05, + "gradient_norm": 0.0006044651381671429 + }, + { + "step": 271, + "loss": 3.439189094933681e-05, + "target_ce": 1.8953911421704106e-05, + "replay_kl": 1.5437979527632706e-05, + "gradient_norm": 0.0005992770893499255 + }, + { + "step": 272, + "loss": 3.431990626268089e-05, + "target_ce": 1.8953911421704106e-05, + "replay_kl": 1.5365994840976782e-05, + "gradient_norm": 0.0005974312662146986 + }, + { + "step": 273, + "loss": 3.416091203689575e-05, + "target_ce": 1.887444159365259e-05, + "replay_kl": 1.5286472262232564e-05, + "gradient_norm": 0.000593451492022723 + }, + { + "step": 274, + "loss": 3.4102078643627465e-05, + "target_ce": 1.887444159365259e-05, + "replay_kl": 1.5227636140480172e-05, + "gradient_norm": 0.0005914536886848509 + }, + { + "step": 275, + "loss": 3.391783684492111e-05, + "target_ce": 1.875523776107002e-05, + "replay_kl": 1.5162599083851092e-05, + "gradient_norm": 0.0005873366608284414 + }, + { + "step": 276, + "loss": 3.384388401173055e-05, + "target_ce": 1.875523776107002e-05, + "replay_kl": 1.5088648069649935e-05, + "gradient_norm": 0.0005854211049154401 + }, + { + "step": 277, + "loss": 3.371204002178274e-05, + "target_ce": 1.8675767933018506e-05, + "replay_kl": 1.5036271179269534e-05, + "gradient_norm": 0.0005821203230880201 + }, + { + "step": 278, + "loss": 3.35945951519534e-05, + "target_ce": 1.863603392848745e-05, + "replay_kl": 1.4958559404476546e-05, + "gradient_norm": 0.0005789509159512818 + }, + { + "step": 279, + "loss": 3.340270995977335e-05, + "target_ce": 1.851683009590488e-05, + "replay_kl": 1.4885879863868468e-05, + "gradient_norm": 0.0005750685813836753 + }, + { + "step": 280, + "loss": 3.3303702366538346e-05, + "target_ce": 1.8477096091373824e-05, + "replay_kl": 1.4826604456175119e-05, + "gradient_norm": 0.0005723575595766306 + }, + { + "step": 281, + "loss": 3.315009962534532e-05, + "target_ce": 1.8397624444332905e-05, + "replay_kl": 1.4752475181012414e-05, + "gradient_norm": 0.0005689332028850913 + }, + { + "step": 282, + "loss": 3.3058862754842266e-05, + "target_ce": 1.835789043980185e-05, + "replay_kl": 1.4700973224535119e-05, + "gradient_norm": 0.0005669561796821654 + }, + { + "step": 283, + "loss": 3.292004475952126e-05, + "target_ce": 1.8278420611750335e-05, + "replay_kl": 1.4641623238276225e-05, + "gradient_norm": 0.0005635790294036269 + }, + { + "step": 284, + "loss": 3.284992999397218e-05, + "target_ce": 1.8278420611750335e-05, + "replay_kl": 1.4571509382221848e-05, + "gradient_norm": 0.000561679364182055 + }, + { + "step": 285, + "loss": 3.273797483416274e-05, + "target_ce": 1.8238684788229875e-05, + "replay_kl": 1.4499290955427568e-05, + "gradient_norm": 0.0005588937201537192 + }, + { + "step": 286, + "loss": 3.2643922168063e-05, + "target_ce": 1.819895078369882e-05, + "replay_kl": 1.444497138436418e-05, + "gradient_norm": 0.0005565687315538526 + }, + { + "step": 287, + "loss": 3.249854489695281e-05, + "target_ce": 1.8119482774636708e-05, + "replay_kl": 1.4379063031810801e-05, + "gradient_norm": 0.0005532760405912995 + }, + { + "step": 288, + "loss": 3.239906800445169e-05, + "target_ce": 1.807974695111625e-05, + "replay_kl": 1.4319321053335443e-05, + "gradient_norm": 0.0005507313762791455 + }, + { + "step": 289, + "loss": 3.230312722735107e-05, + "target_ce": 1.804001112759579e-05, + "replay_kl": 1.4263117918744683e-05, + "gradient_norm": 0.0005488821770995855 + }, + { + "step": 290, + "loss": 3.216522964066826e-05, + "target_ce": 1.7960541299544275e-05, + "replay_kl": 1.4204687431629281e-05, + "gradient_norm": 0.0005456271464936435 + }, + { + "step": 291, + "loss": 3.208263296983205e-05, + "target_ce": 1.7960541299544275e-05, + "replay_kl": 1.4122091670287773e-05, + "gradient_norm": 0.0005438823718577623 + }, + { + "step": 292, + "loss": 3.194819873897359e-05, + "target_ce": 1.788107147149276e-05, + "replay_kl": 1.406712817697553e-05, + "gradient_norm": 0.0005405349074862897 + }, + { + "step": 293, + "loss": 3.180325074936263e-05, + "target_ce": 1.780159982445184e-05, + "replay_kl": 1.4001650924910791e-05, + "gradient_norm": 0.0005374872125685215 + }, + { + "step": 294, + "loss": 3.1708103051641956e-05, + "target_ce": 1.7761865819920786e-05, + "replay_kl": 1.3946238141215872e-05, + "gradient_norm": 0.0005354913882911205 + }, + { + "step": 295, + "loss": 3.160600317642093e-05, + "target_ce": 1.772213181538973e-05, + "replay_kl": 1.3883872270525899e-05, + "gradient_norm": 0.0005330464919097722 + }, + { + "step": 296, + "loss": 3.148180621792562e-05, + "target_ce": 1.764266016834881e-05, + "replay_kl": 1.3839146049576811e-05, + "gradient_norm": 0.0005308756954036653 + }, + { + "step": 297, + "loss": 3.134110011160374e-05, + "target_ce": 1.75631921592867e-05, + "replay_kl": 1.3777906133327633e-05, + "gradient_norm": 0.0005272038979455829 + }, + { + "step": 298, + "loss": 3.1281782867154106e-05, + "target_ce": 1.75631921592867e-05, + "replay_kl": 1.3718591617362108e-05, + "gradient_norm": 0.0005255453288555145 + }, + { + "step": 299, + "loss": 3.1191921152640134e-05, + "target_ce": 1.7523454516776837e-05, + "replay_kl": 1.36684684548527e-05, + "gradient_norm": 0.0005236145807430148 + }, + { + "step": 300, + "loss": 3.1100727937882766e-05, + "target_ce": 1.7483720512245782e-05, + "replay_kl": 1.3617008335131686e-05, + "gradient_norm": 0.0005209094961173832 + }, + { + "step": 301, + "loss": 3.100100366282277e-05, + "target_ce": 1.7443986507714726e-05, + "replay_kl": 1.3557017155108042e-05, + "gradient_norm": 0.0005188481300137937 + }, + { + "step": 302, + "loss": 3.086056676693261e-05, + "target_ce": 1.736451667966321e-05, + "replay_kl": 1.3496048268279992e-05, + "gradient_norm": 0.0005156975239515305 + }, + { + "step": 303, + "loss": 3.080200986005366e-05, + "target_ce": 1.736451667966321e-05, + "replay_kl": 1.3437491361401044e-05, + "gradient_norm": 0.0005142837180756032 + }, + { + "step": 304, + "loss": 3.071880200877786e-05, + "target_ce": 1.7324782675132155e-05, + "replay_kl": 1.3394019333645701e-05, + "gradient_norm": 0.0005121207213960588 + }, + { + "step": 305, + "loss": 3.0624672945123166e-05, + "target_ce": 1.72850486706011e-05, + "replay_kl": 1.3339622455532663e-05, + "gradient_norm": 0.0005090454360470176 + }, + { + "step": 306, + "loss": 3.053426917176694e-05, + "target_ce": 1.724531284708064e-05, + "replay_kl": 1.3288957234180998e-05, + "gradient_norm": 0.000507222255691886 + }, + { + "step": 307, + "loss": 3.0439083275268786e-05, + "target_ce": 1.7205578842549585e-05, + "replay_kl": 1.3233504432719201e-05, + "gradient_norm": 0.0005044445861130953 + }, + { + "step": 308, + "loss": 3.035328336409293e-05, + "target_ce": 1.716584483801853e-05, + "replay_kl": 1.3187438526074402e-05, + "gradient_norm": 0.0005027463776059449 + }, + { + "step": 309, + "loss": 3.0260736821219325e-05, + "target_ce": 1.7126107195508666e-05, + "replay_kl": 1.3134629625710659e-05, + "gradient_norm": 0.0004999879747629166 + }, + { + "step": 310, + "loss": 3.0170829631970264e-05, + "target_ce": 1.708637319097761e-05, + "replay_kl": 1.3084456440992653e-05, + "gradient_norm": 0.0004983072285540402 + }, + { + "step": 311, + "loss": 3.0077413612161763e-05, + "target_ce": 1.7046639186446555e-05, + "replay_kl": 1.3030774425715208e-05, + "gradient_norm": 0.000496044522151351 + }, + { + "step": 312, + "loss": 2.9977725716889836e-05, + "target_ce": 1.7006903362926096e-05, + "replay_kl": 1.297082235396374e-05, + "gradient_norm": 0.0004936929326504469 + }, + { + "step": 313, + "loss": 2.9888422432122752e-05, + "target_ce": 1.696716935839504e-05, + "replay_kl": 1.292125216423301e-05, + "gradient_norm": 0.0004915398312732577 + }, + { + "step": 314, + "loss": 2.9808008548570797e-05, + "target_ce": 1.6927435353863984e-05, + "replay_kl": 1.288057228521211e-05, + "gradient_norm": 0.0004888823023065925 + }, + { + "step": 315, + "loss": 2.9754655770375393e-05, + "target_ce": 1.6927435353863984e-05, + "replay_kl": 1.2827220416511409e-05, + "gradient_norm": 0.00048749556299299 + }, + { + "step": 316, + "loss": 2.9674341931240633e-05, + "target_ce": 1.6887699530343525e-05, + "replay_kl": 1.278664331039181e-05, + "gradient_norm": 0.0004858079773839563 + }, + { + "step": 317, + "loss": 2.9549291866715066e-05, + "target_ce": 1.6808231521281414e-05, + "replay_kl": 1.2741060345433652e-05, + "gradient_norm": 0.00048297614557668567 + }, + { + "step": 318, + "loss": 2.9495113267330453e-05, + "target_ce": 1.6808231521281414e-05, + "replay_kl": 1.268688265554374e-05, + "gradient_norm": 0.0004815280844923109 + }, + { + "step": 319, + "loss": 2.9330987672437914e-05, + "target_ce": 1.668902586970944e-05, + "replay_kl": 1.2641961802728474e-05, + "gradient_norm": 0.0004779099253937602 + }, + { + "step": 320, + "loss": 2.927564491983503e-05, + "target_ce": 1.668902586970944e-05, + "replay_kl": 1.2586619050125591e-05, + "gradient_norm": 0.0004764272307511419 + }, + { + "step": 321, + "loss": 2.9226928745629266e-05, + "target_ce": 1.668902586970944e-05, + "replay_kl": 1.2537903785414528e-05, + "gradient_norm": 0.0004750327789224684 + }, + { + "step": 322, + "loss": 2.9059057851554826e-05, + "target_ce": 1.656982203712687e-05, + "replay_kl": 1.2489234904933255e-05, + "gradient_norm": 0.0004709735221695155 + }, + { + "step": 323, + "loss": 2.901586049119942e-05, + "target_ce": 1.656982203712687e-05, + "replay_kl": 1.2446037544577848e-05, + "gradient_norm": 0.00046971975825726986 + }, + { + "step": 324, + "loss": 2.8968341212021187e-05, + "target_ce": 1.656982203712687e-05, + "replay_kl": 1.2398518265399616e-05, + "gradient_norm": 0.0004682888393290341 + }, + { + "step": 325, + "loss": 2.884416244341992e-05, + "target_ce": 1.6490352209075354e-05, + "replay_kl": 1.2353811143839266e-05, + "gradient_norm": 0.0004654870426747948 + }, + { + "step": 326, + "loss": 2.8743477741954848e-05, + "target_ce": 1.645061456656549e-05, + "replay_kl": 1.2292864084884059e-05, + "gradient_norm": 0.00046383848530240357 + }, + { + "step": 327, + "loss": 2.869758645829279e-05, + "target_ce": 1.645061456656549e-05, + "replay_kl": 1.2246971891727298e-05, + "gradient_norm": 0.00046270128223113716 + }, + { + "step": 328, + "loss": 2.8536540412460454e-05, + "target_ce": 1.633141073398292e-05, + "replay_kl": 1.2205129678477533e-05, + "gradient_norm": 0.00045937116374261677 + }, + { + "step": 329, + "loss": 2.85035275737755e-05, + "target_ce": 1.633141073398292e-05, + "replay_kl": 1.2172115930297878e-05, + "gradient_norm": 0.0004582813417073339 + }, + { + "step": 330, + "loss": 2.8447901058825664e-05, + "target_ce": 1.633141073398292e-05, + "replay_kl": 1.2116490324842744e-05, + "gradient_norm": 0.0004569352313410491 + }, + { + "step": 331, + "loss": 2.8284761356189847e-05, + "target_ce": 1.6212205082410946e-05, + "replay_kl": 1.20725562737789e-05, + "gradient_norm": 0.0004540835798252374 + }, + { + "step": 332, + "loss": 2.8252779884496704e-05, + "target_ce": 1.6212205082410946e-05, + "replay_kl": 1.2040573892591055e-05, + "gradient_norm": 0.00045280673657543957 + }, + { + "step": 333, + "loss": 2.816590313159395e-05, + "target_ce": 1.617247107787989e-05, + "replay_kl": 1.199343205371406e-05, + "gradient_norm": 0.00045084679732099175 + }, + { + "step": 334, + "loss": 2.800066431518644e-05, + "target_ce": 1.6053263607318513e-05, + "replay_kl": 1.194740161736263e-05, + "gradient_norm": 0.0004479085619095713 + }, + { + "step": 335, + "loss": 2.7967238565906882e-05, + "target_ce": 1.6053263607318513e-05, + "replay_kl": 1.191397495858837e-05, + "gradient_norm": 0.00044684120803140104 + }, + { + "step": 336, + "loss": 2.7884585506399162e-05, + "target_ce": 1.6013529602787457e-05, + "replay_kl": 1.1871055903611705e-05, + "gradient_norm": 0.00044443391379900277 + }, + { + "step": 337, + "loss": 2.7803405828308314e-05, + "target_ce": 1.5973795598256402e-05, + "replay_kl": 1.1829611139546614e-05, + "gradient_norm": 0.00044306949712336063 + }, + { + "step": 338, + "loss": 2.7763822799897753e-05, + "target_ce": 1.5973795598256402e-05, + "replay_kl": 1.1790027201641351e-05, + "gradient_norm": 0.0004417670425027609 + }, + { + "step": 339, + "loss": 2.7686286557582207e-05, + "target_ce": 1.5934059774735942e-05, + "replay_kl": 1.1752226782846265e-05, + "gradient_norm": 0.00043941609328612685 + }, + { + "step": 340, + "loss": 2.7559932277654298e-05, + "target_ce": 1.5854589946684428e-05, + "replay_kl": 1.170534233096987e-05, + "gradient_norm": 0.0004371314134914428 + }, + { + "step": 341, + "loss": 2.7523999960976653e-05, + "target_ce": 1.5854589946684428e-05, + "replay_kl": 1.1669410014292225e-05, + "gradient_norm": 0.0004360344901215285 + }, + { + "step": 342, + "loss": 2.7477797630126588e-05, + "target_ce": 1.5854589946684428e-05, + "replay_kl": 1.162320768344216e-05, + "gradient_norm": 0.00043476023711264133 + }, + { + "step": 343, + "loss": 2.7438660254119895e-05, + "target_ce": 1.5854589946684428e-05, + "replay_kl": 1.1584070307435468e-05, + "gradient_norm": 0.0004336606652941555 + }, + { + "step": 344, + "loss": 2.7324986149324104e-05, + "target_ce": 1.5775120118632913e-05, + "replay_kl": 1.154986512119649e-05, + "gradient_norm": 0.00043089312384836376 + }, + { + "step": 345, + "loss": 2.727438732108567e-05, + "target_ce": 1.5775120118632913e-05, + "replay_kl": 1.1499267202452756e-05, + "gradient_norm": 0.00042971241055056453 + }, + { + "step": 346, + "loss": 2.715970913413912e-05, + "target_ce": 1.5695650290581398e-05, + "replay_kl": 1.1464059753052425e-05, + "gradient_norm": 0.0004270463832654059 + }, + { + "step": 347, + "loss": 2.7095386030850932e-05, + "target_ce": 1.5655916286050342e-05, + "replay_kl": 1.143946974480059e-05, + "gradient_norm": 0.0004248482873663306 + }, + { + "step": 348, + "loss": 2.7049853088101372e-05, + "target_ce": 1.5655916286050342e-05, + "replay_kl": 1.139393680205103e-05, + "gradient_norm": 0.0004238370165694505 + }, + { + "step": 349, + "loss": 2.7008354663848877e-05, + "target_ce": 1.5655916286050342e-05, + "replay_kl": 1.1352439287293237e-05, + "gradient_norm": 0.0004226040909998119 + }, + { + "step": 350, + "loss": 2.6893032554653473e-05, + "target_ce": 1.5576444639009424e-05, + "replay_kl": 1.131658791564405e-05, + "gradient_norm": 0.0004201618430670351 + }, + { + "step": 351, + "loss": 2.6858182536670938e-05, + "target_ce": 1.5576444639009424e-05, + "replay_kl": 1.1281738807156216e-05, + "gradient_norm": 0.00041903636883944273 + }, + { + "step": 352, + "loss": 2.6829278795048594e-05, + "target_ce": 1.5576444639009424e-05, + "replay_kl": 1.1252834156039171e-05, + "gradient_norm": 0.00041793647687882185 + }, + { + "step": 353, + "loss": 2.670719550224021e-05, + "target_ce": 1.5496976629947312e-05, + "replay_kl": 1.1210218872292899e-05, + "gradient_norm": 0.00041575744398869574 + }, + { + "step": 354, + "loss": 2.6619967684382573e-05, + "target_ce": 1.5457240806426853e-05, + "replay_kl": 1.116272687795572e-05, + "gradient_norm": 0.00041389407124370337 + }, + { + "step": 355, + "loss": 2.6584155421005562e-05, + "target_ce": 1.5457240806426853e-05, + "replay_kl": 1.1126913705084007e-05, + "gradient_norm": 0.0004127662687096745 + }, + { + "step": 356, + "loss": 2.6504860215936787e-05, + "target_ce": 1.5417504982906394e-05, + "replay_kl": 1.1087355233030394e-05, + "gradient_norm": 0.00041089527076110244 + }, + { + "step": 357, + "loss": 2.643264815560542e-05, + "target_ce": 1.5377770978375338e-05, + "replay_kl": 1.1054877177230082e-05, + "gradient_norm": 0.00040885311318561435 + }, + { + "step": 358, + "loss": 2.6396901375846937e-05, + "target_ce": 1.5377770978375338e-05, + "replay_kl": 1.10191303974716e-05, + "gradient_norm": 0.0004077091289218515 + }, + { + "step": 359, + "loss": 2.6333858841098845e-05, + "target_ce": 1.5338036973844282e-05, + "replay_kl": 1.0995821867254563e-05, + "gradient_norm": 0.0004064611275680363 + }, + { + "step": 360, + "loss": 2.6251333110849373e-05, + "target_ce": 1.5298301150323823e-05, + "replay_kl": 1.095303196052555e-05, + "gradient_norm": 0.00040429175714962184 + }, + { + "step": 361, + "loss": 2.6129046091227792e-05, + "target_ce": 1.5218829503282905e-05, + "replay_kl": 1.0910216587944888e-05, + "gradient_norm": 0.0004029165138490498 + }, + { + "step": 362, + "loss": 2.6100669856532477e-05, + "target_ce": 1.5218829503282905e-05, + "replay_kl": 1.0881840353249572e-05, + "gradient_norm": 0.0004020614142064005 + }, + { + "step": 363, + "loss": 2.602782114990987e-05, + "target_ce": 1.5179094589257147e-05, + "replay_kl": 1.0848727470147423e-05, + "gradient_norm": 0.00040014280239120126 + }, + { + "step": 364, + "loss": 2.5978888515965082e-05, + "target_ce": 1.5179094589257147e-05, + "replay_kl": 1.0799793926707935e-05, + "gradient_norm": 0.0003990513214375824 + }, + { + "step": 365, + "loss": 2.5904188078129664e-05, + "target_ce": 1.5139358765736688e-05, + "replay_kl": 1.0764830221887678e-05, + "gradient_norm": 0.00039748361450619996 + }, + { + "step": 366, + "loss": 2.5839875888777897e-05, + "target_ce": 1.509962385171093e-05, + "replay_kl": 1.0740251127572265e-05, + "gradient_norm": 0.0003958579618483782 + }, + { + "step": 367, + "loss": 2.576706356194336e-05, + "target_ce": 1.5059889847179875e-05, + "replay_kl": 1.0707173714763485e-05, + "gradient_norm": 0.0003939596062991768 + }, + { + "step": 368, + "loss": 2.5686254957690835e-05, + "target_ce": 1.5020154933154117e-05, + "replay_kl": 1.0666099115042016e-05, + "gradient_norm": 0.0003923510666936636 + }, + { + "step": 369, + "loss": 2.5657835067249835e-05, + "target_ce": 1.5020154933154117e-05, + "replay_kl": 1.0637679224601015e-05, + "gradient_norm": 0.0003912679967470467 + }, + { + "step": 370, + "loss": 2.563034649938345e-05, + "target_ce": 1.5020154933154117e-05, + "replay_kl": 1.0610192475724034e-05, + "gradient_norm": 0.00039051027852110565 + }, + { + "step": 371, + "loss": 2.5516561436234042e-05, + "target_ce": 1.49406841956079e-05, + "replay_kl": 1.0575877240626141e-05, + "gradient_norm": 0.000387982145184651 + }, + { + "step": 372, + "loss": 2.5448371161473915e-05, + "target_ce": 1.4900949281582143e-05, + "replay_kl": 1.054742097039707e-05, + "gradient_norm": 0.00038609522744081914 + }, + { + "step": 373, + "loss": 2.5334324163850397e-05, + "target_ce": 1.4821477634541225e-05, + "replay_kl": 1.051284561981447e-05, + "gradient_norm": 0.0003849119821097702 + }, + { + "step": 374, + "loss": 2.5297213142039254e-05, + "target_ce": 1.4821477634541225e-05, + "replay_kl": 1.0475734598003328e-05, + "gradient_norm": 0.00038384049548767507 + }, + { + "step": 375, + "loss": 2.5175289920298383e-05, + "target_ce": 1.474200780648971e-05, + "replay_kl": 1.0433282113808673e-05, + "gradient_norm": 0.00038142394623719156 + }, + { + "step": 376, + "loss": 2.5151410227408633e-05, + "target_ce": 1.474200780648971e-05, + "replay_kl": 1.0409402420918923e-05, + "gradient_norm": 0.00038058357313275337 + }, + { + "step": 377, + "loss": 2.512195351300761e-05, + "target_ce": 1.474200780648971e-05, + "replay_kl": 1.0379945706517901e-05, + "gradient_norm": 0.0003796139208134264 + }, + { + "step": 378, + "loss": 2.5053122953977436e-05, + "target_ce": 1.4702272892463952e-05, + "replay_kl": 1.0350850061513484e-05, + "gradient_norm": 0.00037808899651281536 + }, + { + "step": 379, + "loss": 2.4928569473559037e-05, + "target_ce": 1.4622802154917736e-05, + "replay_kl": 1.0305767318641301e-05, + "gradient_norm": 0.00037565655657090247 + }, + { + "step": 380, + "loss": 2.4890283384593204e-05, + "target_ce": 1.4622802154917736e-05, + "replay_kl": 1.0267480320180766e-05, + "gradient_norm": 0.00037465791683644056 + }, + { + "step": 381, + "loss": 2.482296622474678e-05, + "target_ce": 1.4583066331397276e-05, + "replay_kl": 1.02398989838548e-05, + "gradient_norm": 0.000373748509446159 + }, + { + "step": 382, + "loss": 2.475720611982979e-05, + "target_ce": 1.4543330507876817e-05, + "replay_kl": 1.0213875611952972e-05, + "gradient_norm": 0.0003717103973031044 + }, + { + "step": 383, + "loss": 2.4687771656317636e-05, + "target_ce": 1.450359559385106e-05, + "replay_kl": 1.0184175152971875e-05, + "gradient_norm": 0.0003705098351929337 + }, + { + "step": 384, + "loss": 2.465485522407107e-05, + "target_ce": 1.450359559385106e-05, + "replay_kl": 1.0151259630220011e-05, + "gradient_norm": 0.0003696561907418072 + }, + { + "step": 385, + "loss": 2.4620348995085806e-05, + "target_ce": 1.450359559385106e-05, + "replay_kl": 1.0116753401234746e-05, + "gradient_norm": 0.0003687972784973681 + }, + { + "step": 386, + "loss": 2.459224378981162e-05, + "target_ce": 1.450359559385106e-05, + "replay_kl": 1.0088648195960559e-05, + "gradient_norm": 0.0003679332439787686 + }, + { + "step": 387, + "loss": 2.444332858431153e-05, + "target_ce": 1.4384390851773787e-05, + "replay_kl": 1.0058936823043041e-05, + "gradient_norm": 0.00036483805160969496 + }, + { + "step": 388, + "loss": 2.441693504806608e-05, + "target_ce": 1.4384390851773787e-05, + "replay_kl": 1.0032544196292292e-05, + "gradient_norm": 0.0003642103401944041 + }, + { + "step": 389, + "loss": 2.4385106371482834e-05, + "target_ce": 1.4384390851773787e-05, + "replay_kl": 1.0000715519709047e-05, + "gradient_norm": 0.00036326926783658564 + }, + { + "step": 390, + "loss": 2.43159884121269e-05, + "target_ce": 1.434465593774803e-05, + "replay_kl": 9.971331564884167e-06, + "gradient_norm": 0.0003618549962993711 + }, + { + "step": 391, + "loss": 2.4215132725657895e-05, + "target_ce": 1.4265184290707111e-05, + "replay_kl": 9.949947525456082e-06, + "gradient_norm": 0.00036037861718796194 + }, + { + "step": 392, + "loss": 2.419000884401612e-05, + "target_ce": 1.4265184290707111e-05, + "replay_kl": 9.924823643814307e-06, + "gradient_norm": 0.000359511497663334 + }, + { + "step": 393, + "loss": 2.4166218281607144e-05, + "target_ce": 1.4265184290707111e-05, + "replay_kl": 9.901033990900032e-06, + "gradient_norm": 0.00035883975215256214 + }, + { + "step": 394, + "loss": 2.404910082987044e-05, + "target_ce": 1.4185713553160895e-05, + "replay_kl": 9.863387276709545e-06, + "gradient_norm": 0.00035640658461488783 + }, + { + "step": 395, + "loss": 2.397115167696029e-05, + "target_ce": 1.4145978639135137e-05, + "replay_kl": 9.82517212833045e-06, + "gradient_norm": 0.0003543853235896677 + }, + { + "step": 396, + "loss": 2.3953009076649323e-05, + "target_ce": 1.4145978639135137e-05, + "replay_kl": 9.807030437514186e-06, + "gradient_norm": 0.00035370301338844 + }, + { + "step": 397, + "loss": 2.3925053028506227e-05, + "target_ce": 1.4145978639135137e-05, + "replay_kl": 9.77907438937109e-06, + "gradient_norm": 0.0003530374960973859 + }, + { + "step": 398, + "loss": 2.3898679501144215e-05, + "target_ce": 1.4145978639135137e-05, + "replay_kl": 9.752700862009078e-06, + "gradient_norm": 0.0003522135375533253 + }, + { + "step": 399, + "loss": 2.3827076802263036e-05, + "target_ce": 1.410624372510938e-05, + "replay_kl": 9.720832167658955e-06, + "gradient_norm": 0.0003512114053592086 + }, + { + "step": 400, + "loss": 2.3755954316584393e-05, + "target_ce": 1.406650790158892e-05, + "replay_kl": 9.689447324490175e-06, + "gradient_norm": 0.00034928906825371087 + }, + { + "step": 401, + "loss": 2.3728091036900878e-05, + "target_ce": 1.406650790158892e-05, + "replay_kl": 9.661582225817256e-06, + "gradient_norm": 0.00034855841659009457 + }, + { + "step": 402, + "loss": 2.3667289497097954e-05, + "target_ce": 1.4026772987563163e-05, + "replay_kl": 9.640516509534791e-06, + "gradient_norm": 0.0003477038990240544 + }, + { + "step": 403, + "loss": 2.355720971536357e-05, + "target_ce": 1.3947301340522245e-05, + "replay_kl": 9.609908374841325e-06, + "gradient_norm": 0.0003458919236436486 + }, + { + "step": 404, + "loss": 2.348316047573462e-05, + "target_ce": 1.3907566426496487e-05, + "replay_kl": 9.575594958732836e-06, + "gradient_norm": 0.0003444608300924301 + }, + { + "step": 405, + "loss": 2.3464443074772134e-05, + "target_ce": 1.3907566426496487e-05, + "replay_kl": 9.556876648275647e-06, + "gradient_norm": 0.00034356393734924495 + }, + { + "step": 406, + "loss": 2.343803134863265e-05, + "target_ce": 1.3907566426496487e-05, + "replay_kl": 9.530464922136161e-06, + "gradient_norm": 0.000342896266374737 + }, + { + "step": 407, + "loss": 2.3413016606355086e-05, + "target_ce": 1.3907566426496487e-05, + "replay_kl": 9.5054510893533e-06, + "gradient_norm": 0.0003422271984163672 + }, + { + "step": 408, + "loss": 2.3307658921112306e-05, + "target_ce": 1.3828096598444972e-05, + "replay_kl": 9.479562322667334e-06, + "gradient_norm": 0.0003396733955014497 + }, + { + "step": 409, + "loss": 2.3283773771254346e-05, + "target_ce": 1.3828096598444972e-05, + "replay_kl": 9.455676263314672e-06, + "gradient_norm": 0.0003389818302821368 + }, + { + "step": 410, + "loss": 2.3176606191555038e-05, + "target_ce": 1.3748624951404054e-05, + "replay_kl": 9.427982149645686e-06, + "gradient_norm": 0.00033772861934266984 + }, + { + "step": 411, + "loss": 2.314940320502501e-05, + "target_ce": 1.3748624951404054e-05, + "replay_kl": 9.400778253620956e-06, + "gradient_norm": 0.000336991623044014 + }, + { + "step": 412, + "loss": 2.3088929083314724e-05, + "target_ce": 1.3708890037378296e-05, + "replay_kl": 9.380039045936428e-06, + "gradient_norm": 0.00033518014242872596 + }, + { + "step": 413, + "loss": 2.3016698833089322e-05, + "target_ce": 1.3669155123352539e-05, + "replay_kl": 9.347542800242081e-06, + "gradient_norm": 0.00033402375993318856 + }, + { + "step": 414, + "loss": 2.2999258362688124e-05, + "target_ce": 1.3669155123352539e-05, + "replay_kl": 9.330102329840884e-06, + "gradient_norm": 0.00033331557642668486 + }, + { + "step": 415, + "loss": 2.298453910043463e-05, + "target_ce": 1.3669155123352539e-05, + "replay_kl": 9.315384886576794e-06, + "gradient_norm": 0.0003327305894345045 + }, + { + "step": 416, + "loss": 2.2945630917092785e-05, + "target_ce": 1.3669155123352539e-05, + "replay_kl": 9.276476703234948e-06, + "gradient_norm": 0.00033196620643138885 + }, + { + "step": 417, + "loss": 2.284251786477398e-05, + "target_ce": 1.3589684385806322e-05, + "replay_kl": 9.25283347896766e-06, + "gradient_norm": 0.0003300573443993926 + }, + { + "step": 418, + "loss": 2.277873136335984e-05, + "target_ce": 1.3549949471780565e-05, + "replay_kl": 9.228781891579274e-06, + "gradient_norm": 0.0003284601552877575 + }, + { + "step": 419, + "loss": 2.2767069822293706e-05, + "target_ce": 1.3549949471780565e-05, + "replay_kl": 9.217120350513142e-06, + "gradient_norm": 0.00032782997004687786 + }, + { + "step": 420, + "loss": 2.274012513225898e-05, + "target_ce": 1.3549949471780565e-05, + "replay_kl": 9.190176569973119e-06, + "gradient_norm": 0.0003271527530159801 + }, + { + "step": 421, + "loss": 2.271968696732074e-05, + "target_ce": 1.3549949471780565e-05, + "replay_kl": 9.169736586045474e-06, + "gradient_norm": 0.00032645423198118806 + }, + { + "step": 422, + "loss": 2.2604574041906744e-05, + "target_ce": 1.3470478734234348e-05, + "replay_kl": 9.134095307672396e-06, + "gradient_norm": 0.0003244068648200482 + }, + { + "step": 423, + "loss": 2.2585212718695402e-05, + "target_ce": 1.3470478734234348e-05, + "replay_kl": 9.114733984461054e-06, + "gradient_norm": 0.0003238074714317918 + }, + { + "step": 424, + "loss": 2.2555286705028266e-05, + "target_ce": 1.3470478734234348e-05, + "replay_kl": 9.084807061299216e-06, + "gradient_norm": 0.0003230127622373402 + }, + { + "step": 425, + "loss": 2.249734097858891e-05, + "target_ce": 1.343074382020859e-05, + "replay_kl": 9.066596248885617e-06, + "gradient_norm": 0.00032130637555383146 + }, + { + "step": 426, + "loss": 2.2473657736554742e-05, + "target_ce": 1.343074382020859e-05, + "replay_kl": 9.04291300685145e-06, + "gradient_norm": 0.0003207288682460785 + }, + { + "step": 427, + "loss": 2.2438292944571003e-05, + "target_ce": 1.343074382020859e-05, + "replay_kl": 9.007550033857115e-06, + "gradient_norm": 0.00032013951567932963 + }, + { + "step": 428, + "loss": 2.234633757325355e-05, + "target_ce": 1.3351273082662374e-05, + "replay_kl": 8.995064490591176e-06, + "gradient_norm": 0.00031803027377463877 + }, + { + "step": 429, + "loss": 2.2320622520055622e-05, + "target_ce": 1.3351273082662374e-05, + "replay_kl": 8.969349437393248e-06, + "gradient_norm": 0.00031741225393489003 + }, + { + "step": 430, + "loss": 2.228873927379027e-05, + "target_ce": 1.3351273082662374e-05, + "replay_kl": 8.937465281633195e-06, + "gradient_norm": 0.00031676655635237694 + }, + { + "step": 431, + "loss": 2.2229600290302187e-05, + "target_ce": 1.3311538168636616e-05, + "replay_kl": 8.918061212170869e-06, + "gradient_norm": 0.0003157937608193606 + }, + { + "step": 432, + "loss": 2.2164618712849915e-05, + "target_ce": 1.3271802345116157e-05, + "replay_kl": 8.892815458239056e-06, + "gradient_norm": 0.00031406007474288344 + }, + { + "step": 433, + "loss": 2.2140267901704647e-05, + "target_ce": 1.3271802345116157e-05, + "replay_kl": 8.86846555658849e-06, + "gradient_norm": 0.0003133784921374172 + }, + { + "step": 434, + "loss": 2.211975515820086e-05, + "target_ce": 1.3271802345116157e-05, + "replay_kl": 8.847953722579405e-06, + "gradient_norm": 0.00031278084497898817 + }, + { + "step": 435, + "loss": 2.2101150534581393e-05, + "target_ce": 1.3271802345116157e-05, + "replay_kl": 8.829347279970534e-06, + "gradient_norm": 0.0003121703630313277 + }, + { + "step": 436, + "loss": 2.199732989538461e-05, + "target_ce": 1.3192332517064642e-05, + "replay_kl": 8.804996468825266e-06, + "gradient_norm": 0.00031045411014929414 + }, + { + "step": 437, + "loss": 2.1977681171847507e-05, + "target_ce": 1.3192332517064642e-05, + "replay_kl": 8.785349564277567e-06, + "gradient_norm": 0.0003098341403529048 + }, + { + "step": 438, + "loss": 2.1874226149520837e-05, + "target_ce": 1.3112861779518425e-05, + "replay_kl": 8.761364370002411e-06, + "gradient_norm": 0.0003079826710745692 + }, + { + "step": 439, + "loss": 2.1857544197700918e-05, + "target_ce": 1.3112861779518425e-05, + "replay_kl": 8.744683327677194e-06, + "gradient_norm": 0.0003072998661082238 + }, + { + "step": 440, + "loss": 2.1834741346538067e-05, + "target_ce": 1.3112861779518425e-05, + "replay_kl": 8.721879567019641e-06, + "gradient_norm": 0.0003067640063818544 + }, + { + "step": 441, + "loss": 2.1732372260885313e-05, + "target_ce": 1.3033390132477507e-05, + "replay_kl": 8.698982128407806e-06, + "gradient_norm": 0.0003050909726880491 + }, + { + "step": 442, + "loss": 2.166649210266769e-05, + "target_ce": 1.2993653399462346e-05, + "replay_kl": 8.672837793710642e-06, + "gradient_norm": 0.0003043884062208235 + }, + { + "step": 443, + "loss": 2.160164513043128e-05, + "target_ce": 1.2953918485436589e-05, + "replay_kl": 8.647727554489393e-06, + "gradient_norm": 0.0003033216926269233 + }, + { + "step": 444, + "loss": 2.1548639779211953e-05, + "target_ce": 1.2914183571410831e-05, + "replay_kl": 8.63445529830642e-06, + "gradient_norm": 0.00030161134782247245 + }, + { + "step": 445, + "loss": 2.148308340110816e-05, + "target_ce": 1.2874447747890372e-05, + "replay_kl": 8.608635653217789e-06, + "gradient_norm": 0.00030074515962041914 + }, + { + "step": 446, + "loss": 2.141478944395203e-05, + "target_ce": 1.2834712833864614e-05, + "replay_kl": 8.580076610087417e-06, + "gradient_norm": 0.0002990964858327061 + }, + { + "step": 447, + "loss": 2.139101707143709e-05, + "target_ce": 1.2834712833864614e-05, + "replay_kl": 8.556304237572476e-06, + "gradient_norm": 0.00029847913538105786 + }, + { + "step": 448, + "loss": 2.13719395105727e-05, + "target_ce": 1.2834712833864614e-05, + "replay_kl": 8.537226676708087e-06, + "gradient_norm": 0.00029796009766869247 + }, + { + "step": 449, + "loss": 2.1311871023499407e-05, + "target_ce": 1.2794977919838857e-05, + "replay_kl": 8.51689310366055e-06, + "gradient_norm": 0.00029716454446315765 + }, + { + "step": 450, + "loss": 2.1280193323036656e-05, + "target_ce": 1.2794977919838857e-05, + "replay_kl": 8.485214493703097e-06, + "gradient_norm": 0.00029652801458723843 + }, + { + "step": 451, + "loss": 2.1233940060483292e-05, + "target_ce": 1.2755242096318398e-05, + "replay_kl": 8.478697054670192e-06, + "gradient_norm": 0.00029516854556277394 + }, + { + "step": 452, + "loss": 2.1221254428382963e-05, + "target_ce": 1.2755242096318398e-05, + "replay_kl": 8.466012332064565e-06, + "gradient_norm": 0.0002946272725239396 + }, + { + "step": 453, + "loss": 2.119229975505732e-05, + "target_ce": 1.2755242096318398e-05, + "replay_kl": 8.437058568233624e-06, + "gradient_norm": 0.0002940978738479316 + }, + { + "step": 454, + "loss": 2.1169966203160584e-05, + "target_ce": 1.2755242096318398e-05, + "replay_kl": 8.414724106842186e-06, + "gradient_norm": 0.00029351830016821623 + }, + { + "step": 455, + "loss": 2.1113859475008212e-05, + "target_ce": 1.271550718229264e-05, + "replay_kl": 8.398352292715572e-06, + "gradient_norm": 0.000292472803266719 + }, + { + "step": 456, + "loss": 2.104329178109765e-05, + "target_ce": 1.2675772268266883e-05, + "replay_kl": 8.367518603336066e-06, + "gradient_norm": 0.0002912980562541634 + }, + { + "step": 457, + "loss": 2.0986648451071233e-05, + "target_ce": 1.2636036444746424e-05, + "replay_kl": 8.350612006324809e-06, + "gradient_norm": 0.00028976317844353616 + }, + { + "step": 458, + "loss": 2.0976040104869753e-05, + "target_ce": 1.2636036444746424e-05, + "replay_kl": 8.340004569618031e-06, + "gradient_norm": 0.00028922647470608354 + }, + { + "step": 459, + "loss": 2.0946483346051537e-05, + "target_ce": 1.2636036444746424e-05, + "replay_kl": 8.310446901305113e-06, + "gradient_norm": 0.0002886338625103235 + }, + { + "step": 460, + "loss": 2.0929863239871338e-05, + "target_ce": 1.2636036444746424e-05, + "replay_kl": 8.293827704619616e-06, + "gradient_norm": 0.0002879613602999598 + }, + { + "step": 461, + "loss": 2.0829289496759884e-05, + "target_ce": 1.2556566616694909e-05, + "replay_kl": 8.272722880064975e-06, + "gradient_norm": 0.0002859294763766229 + }, + { + "step": 462, + "loss": 2.0811561626032926e-05, + "target_ce": 1.2556566616694909e-05, + "replay_kl": 8.254995009338018e-06, + "gradient_norm": 0.0002854052872862667 + }, + { + "step": 463, + "loss": 2.0744897483382374e-05, + "target_ce": 1.251683079317445e-05, + "replay_kl": 8.228067599702626e-06, + "gradient_norm": 0.0002844241098500788 + }, + { + "step": 464, + "loss": 2.072436109301634e-05, + "target_ce": 1.251683079317445e-05, + "replay_kl": 8.20752939034719e-06, + "gradient_norm": 0.00028395510162226856 + }, + { + "step": 465, + "loss": 2.071491144306492e-05, + "target_ce": 1.251683079317445e-05, + "replay_kl": 8.198080649890471e-06, + "gradient_norm": 0.00028349063359200954 + }, + { + "step": 466, + "loss": 2.0650570149882697e-05, + "target_ce": 1.2477095879148692e-05, + "replay_kl": 8.173474270734005e-06, + "gradient_norm": 0.00028199792723171413 + }, + { + "step": 467, + "loss": 2.0585393940564245e-05, + "target_ce": 1.2437360965122934e-05, + "replay_kl": 8.148032065946609e-06, + "gradient_norm": 0.0002811518788803369 + }, + { + "step": 468, + "loss": 2.053666685242206e-05, + "target_ce": 1.2397625141602475e-05, + "replay_kl": 8.139041710819583e-06, + "gradient_norm": 0.00027998522273264825 + }, + { + "step": 469, + "loss": 2.0517498342087492e-05, + "target_ce": 1.2397625141602475e-05, + "replay_kl": 8.119872290990315e-06, + "gradient_norm": 0.0002794284373521805 + }, + { + "step": 470, + "loss": 2.0497842342592776e-05, + "target_ce": 1.2397625141602475e-05, + "replay_kl": 8.100216291495599e-06, + "gradient_norm": 0.00027893652440980077 + }, + { + "step": 471, + "loss": 2.0485793356783688e-05, + "target_ce": 1.2397625141602475e-05, + "replay_kl": 8.088167305686511e-06, + "gradient_norm": 0.000278356543276459 + }, + { + "step": 472, + "loss": 2.0453380784601904e-05, + "target_ce": 1.2397625141602475e-05, + "replay_kl": 8.05575564299943e-06, + "gradient_norm": 0.0002778525522444397 + }, + { + "step": 473, + "loss": 2.0361305359983817e-05, + "target_ce": 1.231815531355096e-05, + "replay_kl": 8.043149136938155e-06, + "gradient_norm": 0.00027666776441037655 + }, + { + "step": 474, + "loss": 2.0297440642025322e-05, + "target_ce": 1.22784185805358e-05, + "replay_kl": 8.019022061489522e-06, + "gradient_norm": 0.00027549665537662804 + }, + { + "step": 475, + "loss": 2.028456947300583e-05, + "target_ce": 1.22784185805358e-05, + "replay_kl": 8.006150892470032e-06, + "gradient_norm": 0.0002749523555394262 + }, + { + "step": 476, + "loss": 2.0270730601623654e-05, + "target_ce": 1.22784185805358e-05, + "replay_kl": 7.992312021087855e-06, + "gradient_norm": 0.0002743584045674652 + }, + { + "step": 477, + "loss": 2.0214465621393174e-05, + "target_ce": 1.2238681847520638e-05, + "replay_kl": 7.975782864377834e-06, + "gradient_norm": 0.000272919685812667 + }, + { + "step": 478, + "loss": 2.018620216404088e-05, + "target_ce": 1.2238681847520638e-05, + "replay_kl": 7.947519407025538e-06, + "gradient_norm": 0.0002724328951444477 + }, + { + "step": 479, + "loss": 2.0086050426471047e-05, + "target_ce": 1.2159212019469123e-05, + "replay_kl": 7.926838407001924e-06, + "gradient_norm": 0.00027060185675509274 + }, + { + "step": 480, + "loss": 2.0074368876521476e-05, + "target_ce": 1.2159212019469123e-05, + "replay_kl": 7.915156857052352e-06, + "gradient_norm": 0.00027024076553061604 + }, + { + "step": 481, + "loss": 2.0054110791534185e-05, + "target_ce": 1.2159212019469123e-05, + "replay_kl": 7.894899681559764e-06, + "gradient_norm": 0.0002697317104320973 + }, + { + "step": 482, + "loss": 2.0036808564327657e-05, + "target_ce": 1.2159212019469123e-05, + "replay_kl": 7.877596544858534e-06, + "gradient_norm": 0.0002693362766876817 + }, + { + "step": 483, + "loss": 2.001534085138701e-05, + "target_ce": 1.2159212019469123e-05, + "replay_kl": 7.856129741412587e-06, + "gradient_norm": 0.00026881182566285133 + }, + { + "step": 484, + "loss": 1.9989787688245997e-05, + "target_ce": 1.2159212019469123e-05, + "replay_kl": 7.830576578271575e-06, + "gradient_norm": 0.0002683205239009112 + }, + { + "step": 485, + "loss": 1.9936163880629465e-05, + "target_ce": 1.2119478014938068e-05, + "replay_kl": 7.816685865691397e-06, + "gradient_norm": 0.0002673902199603617 + }, + { + "step": 486, + "loss": 1.9865852664224803e-05, + "target_ce": 1.2079741281922907e-05, + "replay_kl": 7.786112291796599e-06, + "gradient_norm": 0.00026627900660969317 + }, + { + "step": 487, + "loss": 1.9859344320138916e-05, + "target_ce": 1.2079741281922907e-05, + "replay_kl": 7.779603947710712e-06, + "gradient_norm": 0.0002658492303453386 + }, + { + "step": 488, + "loss": 1.9851262550218962e-05, + "target_ce": 1.2079741281922907e-05, + "replay_kl": 7.771521268296055e-06, + "gradient_norm": 0.0002654185227584094 + }, + { + "step": 489, + "loss": 1.974861152120866e-05, + "target_ce": 1.200027054437669e-05, + "replay_kl": 7.748340067337267e-06, + "gradient_norm": 0.0002642766630742699 + }, + { + "step": 490, + "loss": 1.9731769498321228e-05, + "target_ce": 1.200027054437669e-05, + "replay_kl": 7.731498953944538e-06, + "gradient_norm": 0.0002638560545165092 + }, + { + "step": 491, + "loss": 1.967181742656976e-05, + "target_ce": 1.1960535630350932e-05, + "replay_kl": 7.711281796218827e-06, + "gradient_norm": 0.00026262077153660357 + }, + { + "step": 492, + "loss": 1.961460839083884e-05, + "target_ce": 1.1920800716325175e-05, + "replay_kl": 7.693807674513664e-06, + "gradient_norm": 0.0002615068224258721 + }, + { + "step": 493, + "loss": 1.9598677681642585e-05, + "target_ce": 1.1920800716325175e-05, + "replay_kl": 7.67787696531741e-06, + "gradient_norm": 0.00026097596855834126 + }, + { + "step": 494, + "loss": 1.9550652723410167e-05, + "target_ce": 1.1881063983310014e-05, + "replay_kl": 7.669588740100153e-06, + "gradient_norm": 0.00026049287407658994 + }, + { + "step": 495, + "loss": 1.9520733985700645e-05, + "target_ce": 1.1881063983310014e-05, + "replay_kl": 7.63967000239063e-06, + "gradient_norm": 0.0002599672006908804 + }, + { + "step": 496, + "loss": 1.9512573999236338e-05, + "target_ce": 1.1881063983310014e-05, + "replay_kl": 7.631510015926324e-06, + "gradient_norm": 0.0002595492114778608 + }, + { + "step": 497, + "loss": 1.9453091226750985e-05, + "target_ce": 1.1841329069284257e-05, + "replay_kl": 7.6117612479720265e-06, + "gradient_norm": 0.00025849236408248544 + }, + { + "step": 498, + "loss": 1.9427450752118602e-05, + "target_ce": 1.1841329069284257e-05, + "replay_kl": 7.586121682834346e-06, + "gradient_norm": 0.0002579752472229302 + }, + { + "step": 499, + "loss": 1.9372106180526316e-05, + "target_ce": 1.1801593245763797e-05, + "replay_kl": 7.57051338950987e-06, + "gradient_norm": 0.00025658810045570135 + }, + { + "step": 500, + "loss": 1.9357910787221044e-05, + "target_ce": 1.1801593245763797e-05, + "replay_kl": 7.556318450951949e-06, + "gradient_norm": 0.0002561071887612343 + }, + { + "step": 501, + "loss": 1.9304559828015044e-05, + "target_ce": 1.1761857422243338e-05, + "replay_kl": 7.5427014962770045e-06, + "gradient_norm": 0.00025542243383824825 + }, + { + "step": 502, + "loss": 1.928800338646397e-05, + "target_ce": 1.1761857422243338e-05, + "replay_kl": 7.526146418967983e-06, + "gradient_norm": 0.00025491861742921174 + }, + { + "step": 503, + "loss": 1.9226825315854512e-05, + "target_ce": 1.1722121598722879e-05, + "replay_kl": 7.504703717131633e-06, + "gradient_norm": 0.0002544961462263018 + }, + { + "step": 504, + "loss": 1.9175575289409608e-05, + "target_ce": 1.1682386684697121e-05, + "replay_kl": 7.4931876952177845e-06, + "gradient_norm": 0.0002530770725570619 + }, + { + "step": 505, + "loss": 1.915613393066451e-05, + "target_ce": 1.1682386684697121e-05, + "replay_kl": 7.473746791220037e-06, + "gradient_norm": 0.0002525166200939566 + }, + { + "step": 506, + "loss": 1.9100862118648365e-05, + "target_ce": 1.1642651770671364e-05, + "replay_kl": 7.458210802724352e-06, + "gradient_norm": 0.0002518060791771859 + }, + { + "step": 507, + "loss": 1.9090166460955516e-05, + "target_ce": 1.1642651770671364e-05, + "replay_kl": 7.4475151450315025e-06, + "gradient_norm": 0.0002513558429200202 + }, + { + "step": 508, + "loss": 1.9075392629019916e-05, + "target_ce": 1.1642651770671364e-05, + "replay_kl": 7.43273994885385e-06, + "gradient_norm": 0.00025092047872021794 + }, + { + "step": 509, + "loss": 1.9061850252910517e-05, + "target_ce": 1.1642651770671364e-05, + "replay_kl": 7.419198482239153e-06, + "gradient_norm": 0.00025055729201994836 + }, + { + "step": 510, + "loss": 1.9004095520358533e-05, + "target_ce": 1.1602915037656203e-05, + "replay_kl": 7.401179573207628e-06, + "gradient_norm": 0.0002497335954103619 + }, + { + "step": 511, + "loss": 1.8980135791935027e-05, + "target_ce": 1.1602915037656203e-05, + "replay_kl": 7.3772216637735255e-06, + "gradient_norm": 0.000249261996941641 + }, + { + "step": 512, + "loss": 1.8969330994877964e-05, + "target_ce": 1.1602915037656203e-05, + "replay_kl": 7.366415957221761e-06, + "gradient_norm": 0.0002488206373527646 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/run.json new file mode 100644 index 0000000000000000000000000000000000000000..859edd0f0a98bce24fcfb9a3f10e580c8f9f2419 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-edit/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_strict-00", + "arm": "edit", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "208c9ab4a164cb5dc647623fbf846ade96ee3d261b07bc4a37a69fab623708cf", + "new_fact_sha256": "d5c3305c29626ec3846451987eab7ff59d4bca320de5579b2319899939632656", + "target_batch_sha256": "0afaf2169de7c25c5111f7d01de868063d1d6323086c3870a3b4adf15f483a89", + "replay_batch_sha256": "7503254c9b2d5b8e74a565c84a6d8948c110f8508159d1ae46e26a2b88fa548c", + "parent_reference_sha256": "6d6e69c23e934218f7c71fc0514e47bf12d531f6e692a99f8b2741492a0be011", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..31f7a32f5d726dca9778693b5c259361c4c84deb --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_strict-00", + "role": "second", + "stratum": "strict", + "lr": 0.0001, + "arm": "sham", + "path": "second_strict-00/lr0.0001-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 4.291525328881107e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.249513626098633 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.11341065168380737 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8388998035363457, + "accuracy": 0.8388998035363457, + "answer_nll": 0.6201161742210388 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.980058670043945, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9613899613899614, + "accuracy": 0.9613899613899614, + "answer_nll": 0.1705777645111084 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011425748380133882 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0007387289660982788 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003221485821995884 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043499848106876016 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "68de016d519778c73ba158a9fc3d19e24301ffbf05d4d3cf9d4891155fd59729", + "delta_l2": 0.4312605857849121, + "tensor_file_sha256": "f4a4344fc10fac521992953aee1533bb9866a386b2061ae9eac0c6440e7247f5" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..161cd5fdb0191a315f0debce2855563bb0d4f6d1 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035124807618558407 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.106464385986328 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8546168958742633, + "accuracy": 0.8546168958742633, + "answer_nll": 0.5321443676948547 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.3991756439209, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005769940325990319 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032201825524680316 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003807223110925406 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.8412379075889476e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.550554275512695 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9700520833333334, + "accuracy": 0.9700520833333334, + "answer_nll": 0.12065359950065613 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8546168958742633, + "accuracy": 0.8546168958742633, + "answer_nll": 0.5102794170379639 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.331863403320312, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9613899613899614, + "accuracy": 0.9613899613899614, + "answer_nll": 0.18040940165519714 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001482478401158005 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0008788041886873543 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003221852530259639 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005662690382450819 + } + }, + "model_sha256": "dabc3c05d1df5b67390705f317289991f66f5f8f4d68215313ab2116215dedd4", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 5.756215159635758e-06, + "target_ce": 4.013370471511735e-06, + "replay_kl": 1.7428446881240234e-06, + "gradient_norm": 9.340575343230739e-05 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 4.410734163684538e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.24776268005371 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9739583333333334, + "accuracy": 0.9739583333333334, + "answer_nll": 0.11169330030679703 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8467583497053045, + "accuracy": 0.8467583497053045, + "answer_nll": 0.561476469039917 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.42151641845703, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.16822968423366547 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011550074123078957 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0006677266792394221 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032195873791351914 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00046126890811137855 + } + }, + "model_sha256": "6cb6a2a9f5da0f040268f4835912a55006131187728475e359eab78848658fea", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 3.188952860000427e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.0740718532106257e-07, + "gradient_norm": 1.3594006304629147e-05 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 4.291525328881107e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.249513626098633 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.11341065168380737 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8388998035363457, + "accuracy": 0.8388998035363457, + "answer_nll": 0.6201161742210388 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.980058670043945, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9613899613899614, + "accuracy": 0.9613899613899614, + "answer_nll": 0.1705777645111084 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011425748380133882 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0007387289660982788 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003221485821995884 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043499848106876016 + } + }, + "model_sha256": "68de016d519778c73ba158a9fc3d19e24301ffbf05d4d3cf9d4891155fd59729", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 2.6015050025307573e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.7758668491296703e-07, + "gradient_norm": 6.570248842763249e-06 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..01b62cde1b94347a0e5b66ac0c4c9e23244241a2 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 0.00012574515130836517, + "target_ce": 0.00012574515130836517, + "replay_kl": 0.0, + "gradient_norm": 0.013225186616182327 + }, + { + "step": 2, + "loss": 3.696351632243022e-05, + "target_ce": 3.488739093882032e-05, + "replay_kl": 2.076124928862555e-06, + "gradient_norm": 0.0020993221551179886 + }, + { + "step": 3, + "loss": 2.312058313691523e-05, + "target_ce": 1.9828154108836316e-05, + "replay_kl": 3.292428573331563e-06, + "gradient_norm": 0.0011575272073969245 + }, + { + "step": 4, + "loss": 1.7973790818359703e-05, + "target_ce": 1.3828134797222447e-05, + "replay_kl": 4.145656021137256e-06, + "gradient_norm": 0.0007740544970147312 + }, + { + "step": 5, + "loss": 1.612341293366626e-05, + "target_ce": 1.0847964404092636e-05, + "replay_kl": 5.275447620078921e-06, + "gradient_norm": 0.0006436776020564139 + }, + { + "step": 6, + "loss": 1.538559081382118e-05, + "target_ce": 9.09958816919243e-06, + "replay_kl": 6.28600173513405e-06, + "gradient_norm": 0.0006739218370057642 + }, + { + "step": 7, + "loss": 1.447617614758201e-05, + "target_ce": 7.907509825599845e-06, + "replay_kl": 6.568666776729515e-06, + "gradient_norm": 0.0006683024694211781 + }, + { + "step": 8, + "loss": 1.3413162378128618e-05, + "target_ce": 7.27173255654634e-06, + "replay_kl": 6.141429366834927e-06, + "gradient_norm": 0.0005615283153019845 + }, + { + "step": 9, + "loss": 1.2451506336219609e-05, + "target_ce": 6.834636678831885e-06, + "replay_kl": 5.616869657387724e-06, + "gradient_norm": 0.0004567733558360487 + }, + { + "step": 10, + "loss": 1.164686182164587e-05, + "target_ce": 6.397539891622728e-06, + "replay_kl": 5.249321475275792e-06, + "gradient_norm": 0.00042399181984364986 + }, + { + "step": 11, + "loss": 1.1162637747474946e-05, + "target_ce": 6.159123131510569e-06, + "replay_kl": 5.003514161217026e-06, + "gradient_norm": 0.00041797064477577806 + }, + { + "step": 12, + "loss": 1.0632181329128798e-05, + "target_ce": 5.92070637139841e-06, + "replay_kl": 4.711474957730388e-06, + "gradient_norm": 0.00038189487531781197 + }, + { + "step": 13, + "loss": 1.0102785381604917e-05, + "target_ce": 5.722025889554061e-06, + "replay_kl": 4.3807590373035055e-06, + "gradient_norm": 0.0003216076293028891 + }, + { + "step": 14, + "loss": 9.617324394639581e-06, + "target_ce": 5.523345407709712e-06, + "replay_kl": 4.093978986929869e-06, + "gradient_norm": 0.0002583750756457448 + }, + { + "step": 15, + "loss": 9.278543984692078e-06, + "target_ce": 5.404137027653633e-06, + "replay_kl": 3.874406957038445e-06, + "gradient_norm": 0.00021448500046972185 + }, + { + "step": 16, + "loss": 8.989602065412328e-06, + "target_ce": 5.245192369329743e-06, + "replay_kl": 3.7444092413352337e-06, + "gradient_norm": 0.00020538789976853877 + }, + { + "step": 17, + "loss": 8.819245522317942e-06, + "target_ce": 5.165720267541474e-06, + "replay_kl": 3.6535252547764685e-06, + "gradient_norm": 0.0002207270299550146 + }, + { + "step": 18, + "loss": 8.550664460926782e-06, + "target_ce": 5.006775154470233e-06, + "replay_kl": 3.543889306456549e-06, + "gradient_norm": 0.00022854606504552066 + }, + { + "step": 19, + "loss": 8.314593287650496e-06, + "target_ce": 4.927302597934613e-06, + "replay_kl": 3.3872906897158828e-06, + "gradient_norm": 0.00020704968483187258 + }, + { + "step": 20, + "loss": 8.011220415937714e-06, + "target_ce": 4.8080942178785335e-06, + "replay_kl": 3.203126425432856e-06, + "gradient_norm": 0.00018365902360528708 + }, + { + "step": 21, + "loss": 7.744510185148101e-06, + "target_ce": 4.728621661342913e-06, + "replay_kl": 3.015888523805188e-06, + "gradient_norm": 0.00016960604989435524 + }, + { + "step": 22, + "loss": 7.519051905546803e-06, + "target_ce": 4.688885383075103e-06, + "replay_kl": 2.8301665224717e-06, + "gradient_norm": 0.00016307499026879668 + }, + { + "step": 23, + "loss": 7.300443030544557e-06, + "target_ce": 4.609413281286834e-06, + "replay_kl": 2.6910299766313983e-06, + "gradient_norm": 0.00015746918506920338 + }, + { + "step": 24, + "loss": 7.0580417741439305e-06, + "target_ce": 4.490204901230754e-06, + "replay_kl": 2.567836872913176e-06, + "gradient_norm": 0.0001540024095447734 + }, + { + "step": 25, + "loss": 6.869099706818815e-06, + "target_ce": 4.450468622962944e-06, + "replay_kl": 2.418631083855871e-06, + "gradient_norm": 0.0001427609968231991 + }, + { + "step": 26, + "loss": 6.643746928602923e-06, + "target_ce": 4.370996521174675e-06, + "replay_kl": 2.272750407428248e-06, + "gradient_norm": 0.00012541051546577364 + }, + { + "step": 27, + "loss": 6.499860319308937e-06, + "target_ce": 4.331259788159514e-06, + "replay_kl": 2.168600758523098e-06, + "gradient_norm": 0.0001119014632422477 + }, + { + "step": 28, + "loss": 6.3576876527804416e-06, + "target_ce": 4.291523509891704e-06, + "replay_kl": 2.066164142888738e-06, + "gradient_norm": 0.00011577564146136865 + }, + { + "step": 29, + "loss": 6.140953246358549e-06, + "target_ce": 4.132578851567814e-06, + "replay_kl": 2.008374394790735e-06, + "gradient_norm": 0.0001259624696103856 + }, + { + "step": 30, + "loss": 6.0147403928567655e-06, + "target_ce": 4.092843028047355e-06, + "replay_kl": 1.9218973648094106e-06, + "gradient_norm": 0.00012672704178839922 + }, + { + "step": 31, + "loss": 5.885117388970684e-06, + "target_ce": 4.053106295032194e-06, + "replay_kl": 1.8320110939384904e-06, + "gradient_norm": 0.00011089161853305995 + }, + { + "step": 32, + "loss": 5.756215159635758e-06, + "target_ce": 4.013370471511735e-06, + "replay_kl": 1.7428446881240234e-06, + "gradient_norm": 9.340575343230739e-05 + }, + { + "step": 33, + "loss": 5.633581167785451e-06, + "target_ce": 3.9736341932439245e-06, + "replay_kl": 1.6599469745415263e-06, + "gradient_norm": 9.089244849747047e-05 + }, + { + "step": 34, + "loss": 5.540756319533102e-06, + "target_ce": 3.933897914976114e-06, + "replay_kl": 1.6068581771833124e-06, + "gradient_norm": 9.73175629042089e-05 + }, + { + "step": 35, + "loss": 5.483126187755261e-06, + "target_ce": 3.933897914976114e-06, + "replay_kl": 1.5492285001528217e-06, + "gradient_norm": 9.376922389492393e-05 + }, + { + "step": 36, + "loss": 5.3437092901731376e-06, + "target_ce": 3.854425358440494e-06, + "replay_kl": 1.4892839317326434e-06, + "gradient_norm": 8.206579514080659e-05 + }, + { + "step": 37, + "loss": 5.248978141025873e-06, + "target_ce": 3.814689080172684e-06, + "replay_kl": 1.4342890608531889e-06, + "gradient_norm": 7.066492253215984e-05 + }, + { + "step": 38, + "loss": 5.175959358894033e-06, + "target_ce": 3.7749530292785494e-06, + "replay_kl": 1.401006329615484e-06, + "gradient_norm": 7.017403549980372e-05 + }, + { + "step": 39, + "loss": 5.085792508907616e-06, + "target_ce": 3.7352167510107392e-06, + "replay_kl": 1.3505757578968769e-06, + "gradient_norm": 7.447456300724298e-05 + }, + { + "step": 40, + "loss": 4.970050667907344e-06, + "target_ce": 3.6557439671014436e-06, + "replay_kl": 1.314306587119063e-06, + "gradient_norm": 7.583268597954884e-05 + }, + { + "step": 41, + "loss": 4.9289119488094e-06, + "target_ce": 3.6557439671014436e-06, + "replay_kl": 1.2731679817079566e-06, + "gradient_norm": 7.013330468907952e-05 + }, + { + "step": 42, + "loss": 4.846199317398714e-06, + "target_ce": 3.6160081435809843e-06, + "replay_kl": 1.2301911738177296e-06, + "gradient_norm": 5.9303391026332974e-05 + }, + { + "step": 43, + "loss": 4.757220267492812e-06, + "target_ce": 3.5762716379394988e-06, + "replay_kl": 1.1809486295533134e-06, + "gradient_norm": 5.569826680584811e-05 + }, + { + "step": 44, + "loss": 4.725379767478444e-06, + "target_ce": 3.5762716379394988e-06, + "replay_kl": 1.1491083569126204e-06, + "gradient_norm": 5.899712414247915e-05 + }, + { + "step": 45, + "loss": 4.694874405686278e-06, + "target_ce": 3.5762716379394988e-06, + "replay_kl": 1.1186029951204546e-06, + "gradient_norm": 5.9976773627568036e-05 + }, + { + "step": 46, + "loss": 4.638649897970026e-06, + "target_ce": 3.5762716379394988e-06, + "replay_kl": 1.0623783737173653e-06, + "gradient_norm": 5.233119736658409e-05 + }, + { + "step": 47, + "loss": 4.571003046294209e-06, + "target_ce": 3.5365353596716886e-06, + "replay_kl": 1.0344679139961954e-06, + "gradient_norm": 4.773687760462053e-05 + }, + { + "step": 48, + "loss": 4.511322003963869e-06, + "target_ce": 3.4967990814038785e-06, + "replay_kl": 1.014522695186315e-06, + "gradient_norm": 4.7195670049404725e-05 + }, + { + "step": 49, + "loss": 4.435141818248667e-06, + "target_ce": 3.4570628031360684e-06, + "replay_kl": 9.780790151125984e-07, + "gradient_norm": 4.816207365365699e-05 + }, + { + "step": 50, + "loss": 4.380556674732361e-06, + "target_ce": 3.417326297494583e-06, + "replay_kl": 9.632302635509404e-07, + "gradient_norm": 4.564780101645738e-05 + }, + { + "step": 51, + "loss": 4.351812094682828e-06, + "target_ce": 3.417326297494583e-06, + "replay_kl": 9.34485683501407e-07, + "gradient_norm": 4.42811033281032e-05 + }, + { + "step": 52, + "loss": 4.277334937796695e-06, + "target_ce": 3.3775897918530973e-06, + "replay_kl": 8.997452596304356e-07, + "gradient_norm": 4.257987893652171e-05 + }, + { + "step": 53, + "loss": 4.253909992257832e-06, + "target_ce": 3.3775897918530973e-06, + "replay_kl": 8.763203140915721e-07, + "gradient_norm": 3.895778354490176e-05 + }, + { + "step": 54, + "loss": 4.189415449218359e-06, + "target_ce": 3.337853968332638e-06, + "replay_kl": 8.515617082593963e-07, + "gradient_norm": 3.566397572285496e-05 + }, + { + "step": 55, + "loss": 4.172909484623233e-06, + "target_ce": 3.337853968332638e-06, + "replay_kl": 8.35055459447176e-07, + "gradient_norm": 3.605100209824741e-05 + }, + { + "step": 56, + "loss": 4.106577762286179e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 8.084602427516074e-07, + "gradient_norm": 3.5770768590737134e-05 + }, + { + "step": 57, + "loss": 4.093391453352524e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.952736496008583e-07, + "gradient_norm": 3.5196680983062834e-05 + }, + { + "step": 58, + "loss": 4.080418420926435e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.823008445484447e-07, + "gradient_norm": 3.2796750019770116e-05 + }, + { + "step": 59, + "loss": 4.0682280086912215e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.70110546000069e-07, + "gradient_norm": 3.136707528028637e-05 + }, + { + "step": 60, + "loss": 4.046489266329445e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.483715194211982e-07, + "gradient_norm": 2.96548823826015e-05 + }, + { + "step": 61, + "loss": 4.034372977912426e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.362555152212735e-07, + "gradient_norm": 2.9774355425615795e-05 + }, + { + "step": 62, + "loss": 4.026578608318232e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.284608045665664e-07, + "gradient_norm": 2.8422276955097914e-05 + }, + { + "step": 63, + "loss": 4.019750122097321e-06, + "target_ce": 3.298117690064828e-06, + "replay_kl": 7.216326594061684e-07, + "gradient_norm": 2.749904706433881e-05 + }, + { + "step": 64, + "loss": 3.975194431404816e-06, + "target_ce": 3.2583811844233423e-06, + "replay_kl": 7.168134175117302e-07, + "gradient_norm": 2.6960502509609796e-05 + }, + { + "step": 65, + "loss": 3.923671101802029e-06, + "target_ce": 3.2186446787818568e-06, + "replay_kl": 7.050266503938474e-07, + "gradient_norm": 2.6878966309595853e-05 + }, + { + "step": 66, + "loss": 3.900942829204723e-06, + "target_ce": 3.2186446787818568e-06, + "replay_kl": 6.822983777965419e-07, + "gradient_norm": 2.6277122742612846e-05 + }, + { + "step": 67, + "loss": 3.862214725813828e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 6.833057568655931e-07, + "gradient_norm": 2.4553155526518822e-05 + }, + { + "step": 68, + "loss": 3.855007435049629e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 6.760985229448124e-07, + "gradient_norm": 2.4704730094526894e-05 + }, + { + "step": 69, + "loss": 3.8463049349957146e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 6.673958523606416e-07, + "gradient_norm": 2.348111775063444e-05 + }, + { + "step": 70, + "loss": 3.8287257666524965e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 6.49816911391099e-07, + "gradient_norm": 2.3010394215816632e-05 + }, + { + "step": 71, + "loss": 3.8150437831063755e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 6.361348141581402e-07, + "gradient_norm": 2.2447020455729216e-05 + }, + { + "step": 72, + "loss": 3.767871930904221e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 6.286992402237956e-07, + "gradient_norm": 2.274597682117019e-05 + }, + { + "step": 73, + "loss": 3.7708009585912805e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 6.316282679108554e-07, + "gradient_norm": 2.1337027646950446e-05 + }, + { + "step": 74, + "loss": 3.756279511435423e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 6.171069344418356e-07, + "gradient_norm": 2.0254921764717437e-05 + }, + { + "step": 75, + "loss": 3.7364782201620983e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.973056431685109e-07, + "gradient_norm": 1.971357050933875e-05 + }, + { + "step": 76, + "loss": 3.728492401933181e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.893197680961748e-07, + "gradient_norm": 2.0211784431012347e-05 + }, + { + "step": 77, + "loss": 3.7277350202202797e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.8856255691353e-07, + "gradient_norm": 1.9067934772465378e-05 + }, + { + "step": 78, + "loss": 3.7268341657181736e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.87661645568005e-07, + "gradient_norm": 1.7893416952574626e-05 + }, + { + "step": 79, + "loss": 3.7106924537511077e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.715198767575203e-07, + "gradient_norm": 1.850299486250151e-05 + }, + { + "step": 80, + "loss": 3.7048403100925498e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.656676762555435e-07, + "gradient_norm": 1.860530028352514e-05 + }, + { + "step": 81, + "loss": 3.694960696520866e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.557881763706973e-07, + "gradient_norm": 1.7143660443252884e-05 + }, + { + "step": 82, + "loss": 3.698049567901762e-06, + "target_ce": 3.1391725769935874e-06, + "replay_kl": 5.588769909081748e-07, + "gradient_norm": 1.7587346519576386e-05 + }, + { + "step": 83, + "loss": 3.659794174382114e-06, + "target_ce": 3.099436071352102e-06, + "replay_kl": 5.60358103030012e-07, + "gradient_norm": 1.651463571761269e-05 + }, + { + "step": 84, + "loss": 3.562823621905409e-06, + "target_ce": 3.0199635148164816e-06, + "replay_kl": 5.428599934020895e-07, + "gradient_norm": 1.6337953638867475e-05 + }, + { + "step": 85, + "loss": 3.55980273525347e-06, + "target_ce": 3.0199635148164816e-06, + "replay_kl": 5.398392204369884e-07, + "gradient_norm": 1.588307713973336e-05 + }, + { + "step": 86, + "loss": 3.558994194463594e-06, + "target_ce": 3.0199635148164816e-06, + "replay_kl": 5.3903079333395e-07, + "gradient_norm": 1.6211184629355557e-05 + }, + { + "step": 87, + "loss": 3.546487505445839e-06, + "target_ce": 3.0199635148164816e-06, + "replay_kl": 5.265239906293573e-07, + "gradient_norm": 1.5189280929917004e-05 + }, + { + "step": 88, + "loss": 3.544671017152723e-06, + "target_ce": 3.0199635148164816e-06, + "replay_kl": 5.247075591796602e-07, + "gradient_norm": 1.569427695358172e-05 + }, + { + "step": 89, + "loss": 3.4965535178344e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 5.163265086594038e-07, + "gradient_norm": 1.4804698366788216e-05 + }, + { + "step": 90, + "loss": 3.4980625969183166e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 5.178355308999016e-07, + "gradient_norm": 1.4550551895808894e-05 + }, + { + "step": 91, + "loss": 3.4940103432745673e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 5.137834477864089e-07, + "gradient_norm": 1.447412978450302e-05 + }, + { + "step": 92, + "loss": 3.492322548481752e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 5.12095596150175e-07, + "gradient_norm": 1.405858165526297e-05 + }, + { + "step": 93, + "loss": 3.472754542599432e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 4.925275334244361e-07, + "gradient_norm": 1.4109734365774784e-05 + }, + { + "step": 94, + "loss": 3.4674949347390793e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 4.87268039250921e-07, + "gradient_norm": 1.3748587662121281e-05 + }, + { + "step": 95, + "loss": 3.4645929645193974e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 4.843659553444013e-07, + "gradient_norm": 1.475406861572992e-05 + }, + { + "step": 96, + "loss": 3.46596652889275e-06, + "target_ce": 2.980227009174996e-06, + "replay_kl": 4.857395197177539e-07, + "gradient_norm": 1.32366330944933e-05 + }, + { + "step": 97, + "loss": 3.4155152661696775e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 4.750243078888161e-07, + "gradient_norm": 1.2728267392958514e-05 + }, + { + "step": 98, + "loss": 3.4147221867897315e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 4.742312000871607e-07, + "gradient_norm": 1.3193392078392208e-05 + }, + { + "step": 99, + "loss": 3.4116283131879754e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 4.7113744017224235e-07, + "gradient_norm": 1.2375727237667888e-05 + }, + { + "step": 100, + "loss": 3.417273092054529e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 4.767820769302489e-07, + "gradient_norm": 1.2316829270275775e-05 + }, + { + "step": 101, + "loss": 3.4087695439666277e-06, + "target_ce": 2.9404909582808614e-06, + "replay_kl": 4.682785856857663e-07, + "gradient_norm": 1.2988835806027055e-05 + }, + { + "step": 102, + "loss": 3.3609517231525388e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.601972136697441e-07, + "gradient_norm": 1.2531467291410081e-05 + }, + { + "step": 103, + "loss": 3.363284349688911e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.625298402061162e-07, + "gradient_norm": 1.2103427252441179e-05 + }, + { + "step": 104, + "loss": 3.358213461979176e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.5745895249638124e-07, + "gradient_norm": 1.2064673683198635e-05 + }, + { + "step": 105, + "loss": 3.3603191695874557e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.5956468852637045e-07, + "gradient_norm": 1.2447807421267498e-05 + }, + { + "step": 106, + "loss": 3.3540554795763455e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.5330097009355086e-07, + "gradient_norm": 1.1842989806609694e-05 + }, + { + "step": 107, + "loss": 3.3558487757545663e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.550943231151905e-07, + "gradient_norm": 1.1781191460613627e-05 + }, + { + "step": 108, + "loss": 3.3474584597570356e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.467040071176598e-07, + "gradient_norm": 1.1796387298090849e-05 + }, + { + "step": 109, + "loss": 3.3450241971877404e-06, + "target_ce": 2.900754452639376e-06, + "replay_kl": 4.442696308615268e-07, + "gradient_norm": 1.1006535714841448e-05 + }, + { + "step": 110, + "loss": 3.3140797768282937e-06, + "target_ce": 2.8610181743715657e-06, + "replay_kl": 4.5306157403501857e-07, + "gradient_norm": 1.3378616131376475e-05 + }, + { + "step": 111, + "loss": 3.2989273677230813e-06, + "target_ce": 2.8610181743715657e-06, + "replay_kl": 4.3790907966467785e-07, + "gradient_norm": 1.1249143426539376e-05 + }, + { + "step": 112, + "loss": 3.3035173601092538e-06, + "target_ce": 2.8610181743715657e-06, + "replay_kl": 4.424992710028164e-07, + "gradient_norm": 1.1757685570046306e-05 + }, + { + "step": 113, + "loss": 3.2559385090280557e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.346568402979756e-07, + "gradient_norm": 1.205851549457293e-05 + }, + { + "step": 114, + "loss": 3.2521895718673477e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.3090798840239586e-07, + "gradient_norm": 1.1220189662708435e-05 + }, + { + "step": 115, + "loss": 3.25238056575472e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.3109895386805874e-07, + "gradient_norm": 1.2249032806721516e-05 + }, + { + "step": 116, + "loss": 3.2507577998330817e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.294760742595827e-07, + "gradient_norm": 1.0693065632949583e-05 + }, + { + "step": 117, + "loss": 3.256771833548555e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.354902216618939e-07, + "gradient_norm": 1.1575571988942102e-05 + }, + { + "step": 118, + "loss": 3.2494497190782567e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.281681356133049e-07, + "gradient_norm": 1.3073549780528992e-05 + }, + { + "step": 119, + "loss": 3.2503207876288798e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.290390620553808e-07, + "gradient_norm": 1.039067137753591e-05 + }, + { + "step": 120, + "loss": 3.249764858992421e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.284832471057598e-07, + "gradient_norm": 1.3458789908327162e-05 + }, + { + "step": 121, + "loss": 3.2473756164108636e-06, + "target_ce": 2.82128166873008e-06, + "replay_kl": 4.2609403294591175e-07, + "gradient_norm": 1.17536810648744e-05 + }, + { + "step": 122, + "loss": 3.2029890917328885e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.214434454752336e-07, + "gradient_norm": 1.0757378731796052e-05 + }, + { + "step": 123, + "loss": 3.196772468072595e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.152268502366496e-07, + "gradient_norm": 1.2670247997448314e-05 + }, + { + "step": 124, + "loss": 3.189858261976042e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.083126441400964e-07, + "gradient_norm": 9.995056643674616e-06 + }, + { + "step": 125, + "loss": 3.187616584909847e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.0607096707390156e-07, + "gradient_norm": 1.110306129703531e-05 + }, + { + "step": 126, + "loss": 3.18454522130196e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.0299968873114267e-07, + "gradient_norm": 1.1388855455152225e-05 + }, + { + "step": 127, + "loss": 3.1924646464176476e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.1091911384683044e-07, + "gradient_norm": 9.808916729525663e-06 + }, + { + "step": 128, + "loss": 3.188952860000427e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.0740718532106257e-07, + "gradient_norm": 1.3594006304629147e-05 + }, + { + "step": 129, + "loss": 3.1898093766358215e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.082638440650044e-07, + "gradient_norm": 1.0173166629101615e-05 + }, + { + "step": 130, + "loss": 3.197208570782095e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.1566303821127804e-07, + "gradient_norm": 9.381256859342102e-06 + }, + { + "step": 131, + "loss": 3.1845854664425133e-06, + "target_ce": 2.7815456178359454e-06, + "replay_kl": 4.030398201848584e-07, + "gradient_norm": 1.2593443898367696e-05 + }, + { + "step": 132, + "loss": 3.138012971248827e-06, + "target_ce": 2.74180911219446e-06, + "replay_kl": 3.9620394431949535e-07, + "gradient_norm": 9.518378647044301e-06 + }, + { + "step": 133, + "loss": 3.1405797926709056e-06, + "target_ce": 2.74180911219446e-06, + "replay_kl": 3.98770765741574e-07, + "gradient_norm": 1.2545570825750474e-05 + }, + { + "step": 134, + "loss": 3.1266454243450426e-06, + "target_ce": 2.74180911219446e-06, + "replay_kl": 3.848362553071638e-07, + "gradient_norm": 1.1732932762242854e-05 + }, + { + "step": 135, + "loss": 3.101853963016765e-06, + "target_ce": 2.702073061300325e-06, + "replay_kl": 3.9978090171644e-07, + "gradient_norm": 8.819622053124476e-06 + }, + { + "step": 136, + "loss": 3.0903272545401705e-06, + "target_ce": 2.702073061300325e-06, + "replay_kl": 3.882542500832642e-07, + "gradient_norm": 1.221368438564241e-05 + }, + { + "step": 137, + "loss": 3.0937571864342317e-06, + "target_ce": 2.702073061300325e-06, + "replay_kl": 3.916841251339065e-07, + "gradient_norm": 9.613112524675671e-06 + }, + { + "step": 138, + "loss": 3.087759978370741e-06, + "target_ce": 2.702073061300325e-06, + "replay_kl": 3.8568686022699694e-07, + "gradient_norm": 1.0096588084707037e-05 + }, + { + "step": 139, + "loss": 3.0824080567981582e-06, + "target_ce": 2.702073061300325e-06, + "replay_kl": 3.80334995497833e-07, + "gradient_norm": 9.188347576127853e-06 + }, + { + "step": 140, + "loss": 3.0470723686448764e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.847358698294556e-07, + "gradient_norm": 9.351731023343746e-06 + }, + { + "step": 141, + "loss": 3.0412254545808537e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.788889557654329e-07, + "gradient_norm": 1.0562444003880955e-05 + }, + { + "step": 142, + "loss": 3.036939006051398e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.7460245039255824e-07, + "gradient_norm": 8.853746294334996e-06 + }, + { + "step": 143, + "loss": 3.0390190204343526e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.766825500406412e-07, + "gradient_norm": 9.570372640155256e-06 + }, + { + "step": 144, + "loss": 3.0377302664419403e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.753937107831007e-07, + "gradient_norm": 8.835390872263815e-06 + }, + { + "step": 145, + "loss": 3.036485168195213e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.741485556929547e-07, + "gradient_norm": 8.910257747629657e-06 + }, + { + "step": 146, + "loss": 3.033694383702823e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.7135777120056446e-07, + "gradient_norm": 8.978619007393718e-06 + }, + { + "step": 147, + "loss": 3.03106889987248e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.6873228737022146e-07, + "gradient_norm": 1.0861629561986774e-05 + }, + { + "step": 148, + "loss": 3.033177335964865e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.708407803060254e-07, + "gradient_norm": 1.0277969522576313e-05 + }, + { + "step": 149, + "loss": 3.029771505680401e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.674350068649801e-07, + "gradient_norm": 8.945734407461714e-06 + }, + { + "step": 150, + "loss": 3.0329827040986856e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.7064609159642714e-07, + "gradient_norm": 1.0744241080828942e-05 + }, + { + "step": 151, + "loss": 3.023222689080285e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.6088621868657356e-07, + "gradient_norm": 8.918529601942282e-06 + }, + { + "step": 152, + "loss": 3.028115088454797e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.6577858963937615e-07, + "gradient_norm": 1.0003946044889744e-05 + }, + { + "step": 153, + "loss": 3.0213475383789046e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.590110679851932e-07, + "gradient_norm": 9.965236131392885e-06 + }, + { + "step": 154, + "loss": 3.0231472010200378e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.608106453611981e-07, + "gradient_norm": 9.543751730234362e-06 + }, + { + "step": 155, + "loss": 3.0252642773120897e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.6292772165325005e-07, + "gradient_norm": 9.401844181411434e-06 + }, + { + "step": 156, + "loss": 3.0168948796926998e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.545583240338601e-07, + "gradient_norm": 8.069440809777007e-06 + }, + { + "step": 157, + "loss": 3.0197932119335746e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.5745671311815386e-07, + "gradient_norm": 9.430043064639904e-06 + }, + { + "step": 158, + "loss": 3.015730044353404e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.5339348869456444e-07, + "gradient_norm": 8.773533409112133e-06 + }, + { + "step": 159, + "loss": 3.0145272376103094e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.521906251080509e-07, + "gradient_norm": 8.723339306015987e-06 + }, + { + "step": 160, + "loss": 3.007208761118818e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.44872177038269e-07, + "gradient_norm": 9.85817223408958e-06 + }, + { + "step": 161, + "loss": 3.0096837235760177e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.473472531823063e-07, + "gradient_norm": 8.430702109762933e-06 + }, + { + "step": 162, + "loss": 3.0155260901665315e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.5318961977282015e-07, + "gradient_norm": 7.999650733836461e-06 + }, + { + "step": 163, + "loss": 3.013355808434426e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.510192527755862e-07, + "gradient_norm": 7.93503932072781e-06 + }, + { + "step": 164, + "loss": 3.0141504794301e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.518140090363886e-07, + "gradient_norm": 9.152691745839547e-06 + }, + { + "step": 165, + "loss": 3.017774815816665e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.554383454229537e-07, + "gradient_norm": 8.677568985149264e-06 + }, + { + "step": 166, + "loss": 3.017262315552216e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.5492584515850467e-07, + "gradient_norm": 7.863305654609576e-06 + }, + { + "step": 167, + "loss": 3.0208109365048585e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.5847443768943776e-07, + "gradient_norm": 7.88464785728138e-06 + }, + { + "step": 168, + "loss": 3.0087560389802093e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.464195401647885e-07, + "gradient_norm": 9.026673069456592e-06 + }, + { + "step": 169, + "loss": 3.007287659784197e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.449511609687761e-07, + "gradient_norm": 8.16421743365936e-06 + }, + { + "step": 170, + "loss": 3.007488203365938e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.45151704550517e-07, + "gradient_norm": 8.442447324341629e-06 + }, + { + "step": 171, + "loss": 3.003305891979835e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.409692794775765e-07, + "gradient_norm": 8.489471838402096e-06 + }, + { + "step": 172, + "loss": 3.016799155375338e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.544625997164985e-07, + "gradient_norm": 7.91481670603389e-06 + }, + { + "step": 173, + "loss": 3.0102812615950825e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.479447912013711e-07, + "gradient_norm": 9.012535883812234e-06 + }, + { + "step": 174, + "loss": 3.0099324703769526e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.475958862964035e-07, + "gradient_norm": 8.150062967615668e-06 + }, + { + "step": 175, + "loss": 3.0085484468145296e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.4621189115568995e-07, + "gradient_norm": 8.031022844079416e-06 + }, + { + "step": 176, + "loss": 3.0025498745089862e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.402133188501466e-07, + "gradient_norm": 7.782430657243822e-06 + }, + { + "step": 177, + "loss": 3.013459036083077e-06, + "target_ce": 2.6623365556588396e-06, + "replay_kl": 3.5112248042423744e-07, + "gradient_norm": 8.444957529718522e-06 + }, + { + "step": 178, + "loss": 2.9707152862101793e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.481151793494064e-07, + "gradient_norm": 7.488403298339108e-06 + }, + { + "step": 179, + "loss": 2.9613640890602255e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.387639821994526e-07, + "gradient_norm": 8.779597919783555e-06 + }, + { + "step": 180, + "loss": 2.968077751575038e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.454777584011026e-07, + "gradient_norm": 6.964679869270185e-06 + }, + { + "step": 181, + "loss": 2.9562222607637523e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.336222107463982e-07, + "gradient_norm": 7.644718607480172e-06 + }, + { + "step": 182, + "loss": 2.960091023851419e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.374909738340648e-07, + "gradient_norm": 7.267048658832209e-06 + }, + { + "step": 183, + "loss": 2.9643849757121643e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.417850109599385e-07, + "gradient_norm": 7.203965651569888e-06 + }, + { + "step": 184, + "loss": 2.9652967441506917e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.426966941333376e-07, + "gradient_norm": 9.021197001857217e-06 + }, + { + "step": 185, + "loss": 2.969169372590841e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.465693225734867e-07, + "gradient_norm": 7.3374967541894875e-06 + }, + { + "step": 186, + "loss": 2.9620257464557653e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3942569643841125e-07, + "gradient_norm": 1.034990418702364e-05 + }, + { + "step": 187, + "loss": 2.9688158065255266e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.462158417733008e-07, + "gradient_norm": 8.105897904897574e-06 + }, + { + "step": 188, + "loss": 2.9517341317841783e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.291339680799865e-07, + "gradient_norm": 8.191347660613246e-06 + }, + { + "step": 189, + "loss": 2.9599657409562496e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3736569093889557e-07, + "gradient_norm": 6.896265404066071e-06 + }, + { + "step": 190, + "loss": 2.9513555546145653e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.287554477537924e-07, + "gradient_norm": 7.902641300461255e-06 + }, + { + "step": 191, + "loss": 2.946370159406797e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.2377019465457124e-07, + "gradient_norm": 9.483490430284292e-06 + }, + { + "step": 192, + "loss": 2.9539451134041883e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3134500654341537e-07, + "gradient_norm": 6.570304776687408e-06 + }, + { + "step": 193, + "loss": 2.9561442715930752e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.335441647323023e-07, + "gradient_norm": 9.683958523964975e-06 + }, + { + "step": 194, + "loss": 2.953585408249637e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3098530138886417e-07, + "gradient_norm": 7.4696763476822525e-06 + }, + { + "step": 195, + "loss": 2.955760464828927e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.33160414811573e-07, + "gradient_norm": 6.848889370303368e-06 + }, + { + "step": 196, + "loss": 2.957351171062328e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.347510926232644e-07, + "gradient_norm": 8.192402674467303e-06 + }, + { + "step": 197, + "loss": 2.958854338430683e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3625437367845734e-07, + "gradient_norm": 6.725155344611267e-06 + }, + { + "step": 198, + "loss": 2.9509874366340227e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.2838747188179696e-07, + "gradient_norm": 6.344110715872375e-06 + }, + { + "step": 199, + "loss": 2.95648533210624e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3388522524546715e-07, + "gradient_norm": 6.913975084898993e-06 + }, + { + "step": 200, + "loss": 2.9500401979021262e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.2744023314990045e-07, + "gradient_norm": 7.4733816290972754e-06 + }, + { + "step": 201, + "loss": 2.9439861464197747e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.213862100892584e-07, + "gradient_norm": 6.765079888282344e-06 + }, + { + "step": 202, + "loss": 2.9547463782364503e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.3214641348422447e-07, + "gradient_norm": 8.018007974897046e-06 + }, + { + "step": 203, + "loss": 2.946432232420193e-06, + "target_ce": 2.622600050017354e-06, + "replay_kl": 3.2383218240283895e-07, + "gradient_norm": 7.026975708868122e-06 + }, + { + "step": 204, + "loss": 2.904725079133641e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.218611936972593e-07, + "gradient_norm": 6.9741181505378336e-06 + }, + { + "step": 205, + "loss": 2.906236886701663e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.233728875784436e-07, + "gradient_norm": 8.415058800892439e-06 + }, + { + "step": 206, + "loss": 2.895917532441672e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.1305353331845254e-07, + "gradient_norm": 7.493854354834184e-06 + }, + { + "step": 207, + "loss": 2.8937872684764443e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.109233546183532e-07, + "gradient_norm": 7.596138402732322e-06 + }, + { + "step": 208, + "loss": 2.8990614282520255e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.161974007070967e-07, + "gradient_norm": 8.134235940815415e-06 + }, + { + "step": 209, + "loss": 2.895645138778491e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.1278113965527155e-07, + "gradient_norm": 8.059624633460771e-06 + }, + { + "step": 210, + "loss": 2.8946774364158046e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.11813494136004e-07, + "gradient_norm": 6.536282398883486e-06 + }, + { + "step": 211, + "loss": 2.907744146796176e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.2488020451637567e-07, + "gradient_norm": 7.047430244710995e-06 + }, + { + "step": 212, + "loss": 2.8965744149900274e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.137103874450986e-07, + "gradient_norm": 8.425099622400012e-06 + }, + { + "step": 213, + "loss": 2.901315838244045e-06, + "target_ce": 2.5828639991232194e-06, + "replay_kl": 3.184518959642446e-07, + "gradient_norm": 6.48629338684259e-06 + }, + { + "step": 214, + "loss": 2.8586214284587186e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.154938781335659e-07, + "gradient_norm": 7.017801635811338e-06 + }, + { + "step": 215, + "loss": 2.845205472112866e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0207809231797e-07, + "gradient_norm": 8.651109055790585e-06 + }, + { + "step": 216, + "loss": 2.8486874725786038e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0555997909686994e-07, + "gradient_norm": 8.314653314300813e-06 + }, + { + "step": 217, + "loss": 2.850843657142832e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0771610681767925e-07, + "gradient_norm": 6.366155957948649e-06 + }, + { + "step": 218, + "loss": 2.8585823201865423e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.154549119699368e-07, + "gradient_norm": 7.559345249319449e-06 + }, + { + "step": 219, + "loss": 2.8627141546166968e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.1958660429154406e-07, + "gradient_norm": 7.100269613147248e-06 + }, + { + "step": 220, + "loss": 2.8590347938006744e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.1590741400577826e-07, + "gradient_norm": 6.73990552968462e-06 + }, + { + "step": 221, + "loss": 2.8547724468808156e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.1164503866421e-07, + "gradient_norm": 7.114099844329758e-06 + }, + { + "step": 222, + "loss": 2.8641381959459977e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.210107877293922e-07, + "gradient_norm": 6.4119117269001435e-06 + }, + { + "step": 223, + "loss": 2.8568952075147536e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.1376765718960087e-07, + "gradient_norm": 5.9887938732572366e-06 + }, + { + "step": 224, + "loss": 2.852882289516856e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.097547960351221e-07, + "gradient_norm": 7.785930392856244e-06 + }, + { + "step": 225, + "loss": 2.8528995699161896e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0977201959103695e-07, + "gradient_norm": 6.9436860030691605e-06 + }, + { + "step": 226, + "loss": 2.8489539545262232e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0582640420107055e-07, + "gradient_norm": 7.823645319149364e-06 + }, + { + "step": 227, + "loss": 2.8555573408084456e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.1242984732671175e-07, + "gradient_norm": 7.442703008564422e-06 + }, + { + "step": 228, + "loss": 2.8488177576946327e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0569020736948005e-07, + "gradient_norm": 1.0149449735763483e-05 + }, + { + "step": 229, + "loss": 2.859745109162759e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.166177293678629e-07, + "gradient_norm": 7.519930477428716e-06 + }, + { + "step": 230, + "loss": 2.854178546840558e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.11051053358824e-07, + "gradient_norm": 1.057743611454498e-05 + }, + { + "step": 231, + "loss": 2.8533222575788386e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.101947072536859e-07, + "gradient_norm": 8.345314199686982e-06 + }, + { + "step": 232, + "loss": 2.8569438654812984e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.1381642884298344e-07, + "gradient_norm": 8.336744031112175e-06 + }, + { + "step": 233, + "loss": 2.8485012535384158e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.053738169001008e-07, + "gradient_norm": 7.686600838496815e-06 + }, + { + "step": 234, + "loss": 2.8437189030228183e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.005914663845033e-07, + "gradient_norm": 7.345434369199211e-06 + }, + { + "step": 235, + "loss": 2.849415977834724e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0628848435299005e-07, + "gradient_norm": 6.986829248489812e-06 + }, + { + "step": 236, + "loss": 2.8464260140026454e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.032984920992021e-07, + "gradient_norm": 6.383967956935521e-06 + }, + { + "step": 237, + "loss": 2.849209749911097e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.060823132727819e-07, + "gradient_norm": 6.265620868362021e-06 + }, + { + "step": 238, + "loss": 2.842198682628805e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.990713028339087e-07, + "gradient_norm": 6.712387403240427e-06 + }, + { + "step": 239, + "loss": 2.844557457137853e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 3.0142984996928135e-07, + "gradient_norm": 8.61501757754013e-06 + }, + { + "step": 240, + "loss": 2.833718554029474e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9059111739115906e-07, + "gradient_norm": 5.838866400154075e-06 + }, + { + "step": 241, + "loss": 2.8334459329926176e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9031852477601205e-07, + "gradient_norm": 1.004462865239475e-05 + }, + { + "step": 242, + "loss": 2.8424169613572303e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9928935418865876e-07, + "gradient_norm": 5.624904133583186e-06 + }, + { + "step": 243, + "loss": 2.838300133589655e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.951726969513402e-07, + "gradient_norm": 9.697766472527292e-06 + }, + { + "step": 244, + "loss": 2.829032382578589e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.859050027836929e-07, + "gradient_norm": 5.774367764388444e-06 + }, + { + "step": 245, + "loss": 2.8339050004433375e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9077762064844137e-07, + "gradient_norm": 8.81312462297501e-06 + }, + { + "step": 246, + "loss": 2.8357173960102955e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.925899593719805e-07, + "gradient_norm": 5.555483767238911e-06 + }, + { + "step": 247, + "loss": 2.830168114087428e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.870407058708224e-07, + "gradient_norm": 7.67637902754359e-06 + }, + { + "step": 248, + "loss": 2.835418627000763e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.922911903624481e-07, + "gradient_norm": 5.967880042589968e-06 + }, + { + "step": 249, + "loss": 2.8316846965026343e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.885572314426099e-07, + "gradient_norm": 6.636578746110899e-06 + }, + { + "step": 250, + "loss": 2.837003194144927e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9387581435003085e-07, + "gradient_norm": 5.4509878282260615e-06 + }, + { + "step": 251, + "loss": 2.829694039974129e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.8656648964897613e-07, + "gradient_norm": 7.238809303089511e-06 + }, + { + "step": 252, + "loss": 2.833737426044536e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.90609932562802e-07, + "gradient_norm": 5.768039500253508e-06 + }, + { + "step": 253, + "loss": 2.8319254852249287e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.887980201649043e-07, + "gradient_norm": 5.328503903001547e-06 + }, + { + "step": 254, + "loss": 2.8385741188685643e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9544656854341156e-07, + "gradient_norm": 6.676132670691004e-06 + }, + { + "step": 255, + "loss": 2.8328154257906135e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.896879323088797e-07, + "gradient_norm": 5.503010470420122e-06 + }, + { + "step": 256, + "loss": 2.830794528563274e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.876671203466685e-07, + "gradient_norm": 7.614036803715862e-06 + }, + { + "step": 257, + "loss": 2.8353163088468136e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.9218887220849865e-07, + "gradient_norm": 6.608269359276164e-06 + }, + { + "step": 258, + "loss": 2.8274080250412226e-06, + "target_ce": 2.543127493481734e-06, + "replay_kl": 2.842804747160699e-07, + "gradient_norm": 6.815987489972031e-06 + }, + { + "step": 259, + "loss": 2.78274842457904e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.79357180943407e-07, + "gradient_norm": 6.169587777549168e-06 + }, + { + "step": 260, + "loss": 2.7788257739302935e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7543450187295093e-07, + "gradient_norm": 8.007306860235985e-06 + }, + { + "step": 261, + "loss": 2.782875981210964e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.794846807319118e-07, + "gradient_norm": 5.3575276979245245e-06 + }, + { + "step": 262, + "loss": 2.7820351533591747e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.786439097235416e-07, + "gradient_norm": 7.170528988353908e-06 + }, + { + "step": 263, + "loss": 2.7814901386591373e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7809889502350416e-07, + "gradient_norm": 6.559424491570098e-06 + }, + { + "step": 264, + "loss": 2.7881092137249652e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.847180553544604e-07, + "gradient_norm": 7.598160664201714e-06 + }, + { + "step": 265, + "loss": 2.782577439575107e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7918616751776426e-07, + "gradient_norm": 7.6774103945354e-06 + }, + { + "step": 266, + "loss": 2.7778639832831686e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7447268280411663e-07, + "gradient_norm": 5.066919584351126e-06 + }, + { + "step": 267, + "loss": 2.774688255158253e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7129698310091044e-07, + "gradient_norm": 7.318452844629064e-06 + }, + { + "step": 268, + "loss": 2.7840183065563906e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.8062697765562916e-07, + "gradient_norm": 6.268602191994432e-06 + }, + { + "step": 269, + "loss": 2.7756780127674574e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.722867975535337e-07, + "gradient_norm": 4.787532361660851e-06 + }, + { + "step": 270, + "loss": 2.7764613150793593e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.730700998654356e-07, + "gradient_norm": 7.539475063822465e-06 + }, + { + "step": 271, + "loss": 2.7676799163600663e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.6428878641127085e-07, + "gradient_norm": 4.319592790125171e-06 + }, + { + "step": 272, + "loss": 2.7904911803489085e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.8709990829156595e-07, + "gradient_norm": 5.853609309269814e-06 + }, + { + "step": 273, + "loss": 2.784021489787847e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.806303882607608e-07, + "gradient_norm": 6.416128599084914e-06 + }, + { + "step": 274, + "loss": 2.782333922368707e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.789427639982023e-07, + "gradient_norm": 4.995866220269818e-06 + }, + { + "step": 275, + "loss": 2.78430275102437e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.8091159265386523e-07, + "gradient_norm": 5.504745786311105e-06 + }, + { + "step": 276, + "loss": 2.7778255571320187e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7443437033980445e-07, + "gradient_norm": 6.709944045724114e-06 + }, + { + "step": 277, + "loss": 2.778830548777478e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7543927672013524e-07, + "gradient_norm": 4.502892352320487e-06 + }, + { + "step": 278, + "loss": 2.7744351882574847e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7104402988697984e-07, + "gradient_norm": 9.268099347536918e-06 + }, + { + "step": 279, + "loss": 2.769947741398937e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.6655644091988506e-07, + "gradient_norm": 7.0560672611463815e-06 + }, + { + "step": 280, + "loss": 2.7712151222658576e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.6782390705193393e-07, + "gradient_norm": 8.225792953453492e-06 + }, + { + "step": 281, + "loss": 2.7761648198065814e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.727735761709482e-07, + "gradient_norm": 6.590623343072366e-06 + }, + { + "step": 282, + "loss": 2.7656853944790782e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.622941508434451e-07, + "gradient_norm": 6.3944930843717884e-06 + }, + { + "step": 283, + "loss": 2.7741484700527508e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.7075725483882707e-07, + "gradient_norm": 7.859087418182753e-06 + }, + { + "step": 284, + "loss": 2.764681767075672e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.6129058028345753e-07, + "gradient_norm": 6.343654149532085e-06 + }, + { + "step": 285, + "loss": 2.763305928965565e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.5991468532993167e-07, + "gradient_norm": 9.138983841694426e-06 + }, + { + "step": 286, + "loss": 2.7660764772008406e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.626851767217886e-07, + "gradient_norm": 6.235498858586652e-06 + }, + { + "step": 287, + "loss": 2.76599666904076e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.62605368561708e-07, + "gradient_norm": 6.972333721932955e-06 + }, + { + "step": 288, + "loss": 2.7631519969872897e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.597608386167849e-07, + "gradient_norm": 6.946603207325097e-06 + }, + { + "step": 289, + "loss": 2.7671685529639944e-06, + "target_ce": 2.5033912152139237e-06, + "replay_kl": 2.6377745143690845e-07, + "gradient_norm": 5.8040404837811366e-06 + }, + { + "step": 290, + "loss": 2.732357870627311e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.6870310421145405e-07, + "gradient_norm": 5.977830824122066e-06 + }, + { + "step": 291, + "loss": 2.7308813059789827e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.672265395631257e-07, + "gradient_norm": 7.32751004761667e-06 + }, + { + "step": 292, + "loss": 2.7267967652733205e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.6314214096601063e-07, + "gradient_norm": 5.028087343816878e-06 + }, + { + "step": 293, + "loss": 2.7282983410259476e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.6464363145350944e-07, + "gradient_norm": 4.966130290995352e-06 + }, + { + "step": 294, + "loss": 2.7257060537522193e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.620512873363623e-07, + "gradient_norm": 4.724461632577004e-06 + }, + { + "step": 295, + "loss": 2.7233393211645307e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5968469685722084e-07, + "gradient_norm": 6.267292519623879e-06 + }, + { + "step": 296, + "loss": 2.721740429478814e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.580856914846663e-07, + "gradient_norm": 4.525604708760511e-06 + }, + { + "step": 297, + "loss": 2.7303965453029377e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.6674177888708073e-07, + "gradient_norm": 4.969419933331665e-06 + }, + { + "step": 298, + "loss": 2.71914791483141e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5549314841555315e-07, + "gradient_norm": 5.44100930710556e-06 + }, + { + "step": 299, + "loss": 2.72136389867228e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5770927436497004e-07, + "gradient_norm": 4.992884896637406e-06 + }, + { + "step": 300, + "loss": 2.7199698706681374e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.563152463608276e-07, + "gradient_norm": 4.555725809041178e-06 + }, + { + "step": 301, + "loss": 2.719134045037208e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5547942072989827e-07, + "gradient_norm": 5.4355673455575015e-06 + }, + { + "step": 302, + "loss": 2.7291748665447813e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.6552021381576196e-07, + "gradient_norm": 5.371076895244187e-06 + }, + { + "step": 303, + "loss": 2.71132739726454e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.476726592703926e-07, + "gradient_norm": 4.476964477362344e-06 + }, + { + "step": 304, + "loss": 2.71328440248908e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.496297497600608e-07, + "gradient_norm": 5.483350378199248e-06 + }, + { + "step": 305, + "loss": 2.7121764105686452e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.485216157310788e-07, + "gradient_norm": 5.381275059335167e-06 + }, + { + "step": 306, + "loss": 2.7134537958772853e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4979908630484715e-07, + "gradient_norm": 5.822125785925891e-06 + }, + { + "step": 307, + "loss": 2.7214985038881423e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.57843851159123e-07, + "gradient_norm": 4.219925813231384e-06 + }, + { + "step": 308, + "loss": 2.719656777117052e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.560020959663234e-07, + "gradient_norm": 6.836518878117204e-06 + }, + { + "step": 309, + "loss": 2.709477030293783e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.458223775647639e-07, + "gradient_norm": 4.609500592778204e-06 + }, + { + "step": 310, + "loss": 2.7157489057572093e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.520941393413523e-07, + "gradient_norm": 8.634336154500488e-06 + }, + { + "step": 311, + "loss": 2.711788056330988e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4813337518025946e-07, + "gradient_norm": 5.6282110563188326e-06 + }, + { + "step": 312, + "loss": 2.699872766243061e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.362181419357512e-07, + "gradient_norm": 9.932491593644954e-06 + }, + { + "step": 313, + "loss": 2.7144362775288755e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5078156795643736e-07, + "gradient_norm": 4.645560238714097e-06 + }, + { + "step": 314, + "loss": 2.7055193640990183e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.41864711369999e-07, + "gradient_norm": 9.21324135561008e-06 + }, + { + "step": 315, + "loss": 2.709454975047265e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.458003223182459e-07, + "gradient_norm": 4.064448148710653e-06 + }, + { + "step": 316, + "loss": 2.7144183150085155e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5076363385778677e-07, + "gradient_norm": 4.926987458020449e-06 + }, + { + "step": 317, + "loss": 2.71467706625117e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.51022242991894e-07, + "gradient_norm": 5.109204266773304e-06 + }, + { + "step": 318, + "loss": 2.712934019655222e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4927922481765563e-07, + "gradient_norm": 6.687900622637244e-06 + }, + { + "step": 319, + "loss": 2.7204500838706736e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.567952890331071e-07, + "gradient_norm": 5.968940058664884e-06 + }, + { + "step": 320, + "loss": 2.7171499823452905e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5349538645969005e-07, + "gradient_norm": 7.803329935995862e-06 + }, + { + "step": 321, + "loss": 2.720195880101528e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5654122737250873e-07, + "gradient_norm": 5.199379756959388e-06 + }, + { + "step": 322, + "loss": 2.715084519877564e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.514296966182883e-07, + "gradient_norm": 7.562037808384048e-06 + }, + { + "step": 323, + "loss": 2.714097036005114e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.504422980109666e-07, + "gradient_norm": 5.113807219458977e-06 + }, + { + "step": 324, + "loss": 2.7150626920047216e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5140786874544574e-07, + "gradient_norm": 6.629158633586485e-06 + }, + { + "step": 325, + "loss": 2.7222854441788513e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.586306777629943e-07, + "gradient_norm": 5.455729024106404e-06 + }, + { + "step": 326, + "loss": 2.7165292522113305e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5287465632573003e-07, + "gradient_norm": 4.088934019819135e-06 + }, + { + "step": 327, + "loss": 2.718971927606617e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.553171896124695e-07, + "gradient_norm": 5.999210770823993e-06 + }, + { + "step": 328, + "loss": 2.7137184588355012e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5006374926306307e-07, + "gradient_norm": 4.889828232990112e-06 + }, + { + "step": 329, + "loss": 2.709762156882789e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.461075041537697e-07, + "gradient_norm": 6.188085080793826e-06 + }, + { + "step": 330, + "loss": 2.7101214072899893e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.464666692958417e-07, + "gradient_norm": 9.132289051194675e-06 + }, + { + "step": 331, + "loss": 2.705102588151931e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4144785015778325e-07, + "gradient_norm": 8.948026334110182e-06 + }, + { + "step": 332, + "loss": 2.714122047109413e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.504673091152654e-07, + "gradient_norm": 7.461968834832078e-06 + }, + { + "step": 333, + "loss": 2.716285962378606e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.5263136649300577e-07, + "gradient_norm": 9.871785550785717e-06 + }, + { + "step": 334, + "loss": 2.7129137833981076e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.492590738256695e-07, + "gradient_norm": 8.153092494467273e-06 + }, + { + "step": 335, + "loss": 2.7101332307211123e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.464785211486742e-07, + "gradient_norm": 7.918613846413791e-06 + }, + { + "step": 336, + "loss": 2.7083501663582865e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4469537152072007e-07, + "gradient_norm": 7.799341801728588e-06 + }, + { + "step": 337, + "loss": 2.7046016839449294e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4094705963761953e-07, + "gradient_norm": 8.434099072474055e-06 + }, + { + "step": 338, + "loss": 2.7054873044107808e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.418325664166332e-07, + "gradient_norm": 1.0049172487924807e-05 + }, + { + "step": 339, + "loss": 2.7065002541348804e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4284545929731394e-07, + "gradient_norm": 9.403316653333604e-06 + }, + { + "step": 340, + "loss": 2.7075566322309896e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4390197950197035e-07, + "gradient_norm": 1.0311119694961235e-05 + }, + { + "step": 341, + "loss": 2.7036023766413564e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.399477239123371e-07, + "gradient_norm": 7.173786798375659e-06 + }, + { + "step": 342, + "loss": 2.7101609703095164e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.46506374423916e-07, + "gradient_norm": 1.247999807674205e-05 + }, + { + "step": 343, + "loss": 2.707758994802134e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.441043989165337e-07, + "gradient_norm": 4.986726253264351e-06 + }, + { + "step": 344, + "loss": 2.697704303500359e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3404956550621137e-07, + "gradient_norm": 1.032896398101002e-05 + }, + { + "step": 345, + "loss": 2.7006799427908845e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3702529006186523e-07, + "gradient_norm": 8.955288649303839e-06 + }, + { + "step": 346, + "loss": 2.7052794848714257e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.416248321424064e-07, + "gradient_norm": 5.8644809541874565e-06 + }, + { + "step": 347, + "loss": 2.7029848297388526e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.39330091744705e-07, + "gradient_norm": 1.122657340602018e-05 + }, + { + "step": 348, + "loss": 2.705338602027041e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.416838356111839e-07, + "gradient_norm": 7.757043022138532e-06 + }, + { + "step": 349, + "loss": 2.7041703560826136e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4051564651017543e-07, + "gradient_norm": 1.1432796782173682e-05 + }, + { + "step": 350, + "loss": 2.7043811314797495e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.4072647875073017e-07, + "gradient_norm": 8.272549166576937e-06 + }, + { + "step": 351, + "loss": 2.695244575079414e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3158980866355705e-07, + "gradient_norm": 7.913408808235545e-06 + }, + { + "step": 352, + "loss": 2.6988141144101974e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.351594048377592e-07, + "gradient_norm": 1.07405257949722e-05 + }, + { + "step": 353, + "loss": 2.6971665647579357e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3351182676378812e-07, + "gradient_norm": 6.520783244923223e-06 + }, + { + "step": 354, + "loss": 2.6908280688076047e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2717333081345714e-07, + "gradient_norm": 9.845155545917805e-06 + }, + { + "step": 355, + "loss": 2.698247044463642e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3459230646949436e-07, + "gradient_norm": 4.127693500777241e-06 + }, + { + "step": 356, + "loss": 2.69625570581411e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.326009251873984e-07, + "gradient_norm": 9.197699910146184e-06 + }, + { + "step": 357, + "loss": 2.7005967240256723e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3694211392921716e-07, + "gradient_norm": 5.6580988712084945e-06 + }, + { + "step": 358, + "loss": 2.7034507183998358e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.397960940925259e-07, + "gradient_norm": 7.154439572332194e-06 + }, + { + "step": 359, + "loss": 2.7022342692362145e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.385796449289046e-07, + "gradient_norm": 7.035755515971687e-06 + }, + { + "step": 360, + "loss": 2.701974381125183e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3831969997445412e-07, + "gradient_norm": 6.279543413256761e-06 + }, + { + "step": 361, + "loss": 2.69945167019614e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3579707431053976e-07, + "gradient_norm": 4.600564807333285e-06 + }, + { + "step": 362, + "loss": 2.6984980650013313e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.348432417420554e-07, + "gradient_norm": 6.0253423725953326e-06 + }, + { + "step": 363, + "loss": 2.6969260034093168e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.332711801500409e-07, + "gradient_norm": 4.6565533011744265e-06 + }, + { + "step": 364, + "loss": 2.6960856303048786e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3243092073244043e-07, + "gradient_norm": 5.754692210757639e-06 + }, + { + "step": 365, + "loss": 2.6934519610222196e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2979722302807204e-07, + "gradient_norm": 5.3609164751833305e-06 + }, + { + "step": 366, + "loss": 2.702710162338917e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3905539592306013e-07, + "gradient_norm": 5.089234036859125e-06 + }, + { + "step": 367, + "loss": 2.693063834158238e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2940901089896215e-07, + "gradient_norm": 6.188157840369968e-06 + }, + { + "step": 368, + "loss": 2.6961620278598275e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3250724723311578e-07, + "gradient_norm": 5.854572918906342e-06 + }, + { + "step": 369, + "loss": 2.6972122668667e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3355755729426164e-07, + "gradient_norm": 7.683497642574366e-06 + }, + { + "step": 370, + "loss": 2.691933104870259e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.282783242435471e-07, + "gradient_norm": 6.734088856319431e-06 + }, + { + "step": 371, + "loss": 2.704126472963253e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.404718770776526e-07, + "gradient_norm": 7.396705314022256e-06 + }, + { + "step": 372, + "loss": 2.699763399505173e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3610861887846113e-07, + "gradient_norm": 6.221142939466517e-06 + }, + { + "step": 373, + "loss": 2.694769591471413e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3111499558581272e-07, + "gradient_norm": 5.9672893257811666e-06 + }, + { + "step": 374, + "loss": 2.6862701361096697e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2261535548295797e-07, + "gradient_norm": 4.877083938481519e-06 + }, + { + "step": 375, + "loss": 2.6894824713963317e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2582779024560296e-07, + "gradient_norm": 5.5610662457183935e-06 + }, + { + "step": 376, + "loss": 2.685358140297467e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2170354441186646e-07, + "gradient_norm": 4.580876975524006e-06 + }, + { + "step": 377, + "loss": 2.686216021174914e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2256136844589491e-07, + "gradient_norm": 4.509303380473284e-06 + }, + { + "step": 378, + "loss": 2.6929312753054546e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2927665099814476e-07, + "gradient_norm": 6.046749604138313e-06 + }, + { + "step": 379, + "loss": 2.6934430934488773e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.297883128221656e-07, + "gradient_norm": 7.143498351069866e-06 + }, + { + "step": 380, + "loss": 2.6855852865992347e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2193050597252295e-07, + "gradient_norm": 5.6053527259791736e-06 + }, + { + "step": 381, + "loss": 2.6912982775684213e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2764366747196618e-07, + "gradient_norm": 5.873672307643574e-06 + }, + { + "step": 382, + "loss": 2.691064764803741e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2741015470728598e-07, + "gradient_norm": 5.366669029172044e-06 + }, + { + "step": 383, + "loss": 2.690702103791409e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.270473657972616e-07, + "gradient_norm": 5.470054020406678e-06 + }, + { + "step": 384, + "loss": 2.6933139452012256e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2965927826135157e-07, + "gradient_norm": 5.262785634840839e-06 + }, + { + "step": 385, + "loss": 2.689343091333285e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2568829649571853e-07, + "gradient_norm": 5.7623974498710595e-06 + }, + { + "step": 386, + "loss": 2.6943798729917035e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3072527710610302e-07, + "gradient_norm": 8.133907613228075e-06 + }, + { + "step": 387, + "loss": 2.696847559491289e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3319277886457712e-07, + "gradient_norm": 5.439538199425442e-06 + }, + { + "step": 388, + "loss": 2.695437842703541e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.3178310470939323e-07, + "gradient_norm": 6.656183359154966e-06 + }, + { + "step": 389, + "loss": 2.6806762889464153e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1702166463910544e-07, + "gradient_norm": 7.597006970172515e-06 + }, + { + "step": 390, + "loss": 2.6806169444171246e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1696223484468646e-07, + "gradient_norm": 4.975381671101786e-06 + }, + { + "step": 391, + "loss": 2.686449306565919e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.227946822586091e-07, + "gradient_norm": 8.504044672008604e-06 + }, + { + "step": 392, + "loss": 2.685407480385038e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2175281344516407e-07, + "gradient_norm": 5.959417649137322e-06 + }, + { + "step": 393, + "loss": 2.679638782865368e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1598404487122025e-07, + "gradient_norm": 9.502551620244049e-06 + }, + { + "step": 394, + "loss": 2.674883944564499e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1122917814864195e-07, + "gradient_norm": 9.852215953287669e-06 + }, + { + "step": 395, + "loss": 2.6810180315806065e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1736343569500605e-07, + "gradient_norm": 5.5245377552637365e-06 + }, + { + "step": 396, + "loss": 2.676988287930726e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1333362099085207e-07, + "gradient_norm": 1.1194628314115107e-05 + }, + { + "step": 397, + "loss": 2.6856307613343233e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2197613702701346e-07, + "gradient_norm": 5.002524176234147e-06 + }, + { + "step": 398, + "loss": 2.6828561203728896e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.192014960655797e-07, + "gradient_norm": 8.83320262801135e-06 + }, + { + "step": 399, + "loss": 2.6800746582011925e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1641997705046379e-07, + "gradient_norm": 5.915501787967514e-06 + }, + { + "step": 400, + "loss": 2.6712682483776007e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.0761346775088896e-07, + "gradient_norm": 7.01591989127337e-06 + }, + { + "step": 401, + "loss": 2.68253575086419e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1888101287004247e-07, + "gradient_norm": 8.207479368138593e-06 + }, + { + "step": 402, + "loss": 2.6785448881128104e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1489010748609871e-07, + "gradient_norm": 4.643311058316613e-06 + }, + { + "step": 403, + "loss": 2.684111677808687e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2045701086881309e-07, + "gradient_norm": 7.162837846408365e-06 + }, + { + "step": 404, + "loss": 2.688549557205988e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.248949044769688e-07, + "gradient_norm": 4.9253062570642214e-06 + }, + { + "step": 405, + "loss": 2.684611899894662e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2095719032222405e-07, + "gradient_norm": 7.401848506560782e-06 + }, + { + "step": 406, + "loss": 2.6763714231492486e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1271662831168214e-07, + "gradient_norm": 5.7225843193009496e-06 + }, + { + "step": 407, + "loss": 2.6853199415199924e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.21665345634392e-07, + "gradient_norm": 6.948663212824613e-06 + }, + { + "step": 408, + "loss": 2.68370285994024e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.2004812194609258e-07, + "gradient_norm": 6.793638476665365e-06 + }, + { + "step": 409, + "loss": 2.6807524591276888e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1709786324208835e-07, + "gradient_norm": 8.391319170186762e-06 + }, + { + "step": 410, + "loss": 2.66819006355945e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.045353966195762e-07, + "gradient_norm": 7.160569566622144e-06 + }, + { + "step": 411, + "loss": 2.679322278709151e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1566755492585798e-07, + "gradient_norm": 7.392674888251349e-06 + }, + { + "step": 412, + "loss": 2.6830252863874193e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1937046312814346e-07, + "gradient_norm": 9.04301577975275e-06 + }, + { + "step": 413, + "loss": 2.6799962142831646e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1634153313243587e-07, + "gradient_norm": 6.3755478549865074e-06 + }, + { + "step": 414, + "loss": 2.677577640497475e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1392301619016507e-07, + "gradient_norm": 7.849332178011537e-06 + }, + { + "step": 415, + "loss": 2.671617721716757e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.0796298372260935e-07, + "gradient_norm": 1.0273523002979346e-05 + }, + { + "step": 416, + "loss": 2.682368403839064e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.187136232123521e-07, + "gradient_norm": 5.196356596570695e-06 + }, + { + "step": 417, + "loss": 2.6762947982206242e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1264014549160493e-07, + "gradient_norm": 1.0885000847338233e-05 + }, + { + "step": 418, + "loss": 2.678677446965594e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1502278002571984e-07, + "gradient_norm": 6.576478881470393e-06 + }, + { + "step": 419, + "loss": 2.679222234291956e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.155676384063554e-07, + "gradient_norm": 7.364067641901784e-06 + }, + { + "step": 420, + "loss": 2.6776594950206345e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1400475702648691e-07, + "gradient_norm": 7.785411980876233e-06 + }, + { + "step": 421, + "loss": 2.68080430032569e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.171496902292347e-07, + "gradient_norm": 8.808007805782836e-06 + }, + { + "step": 422, + "loss": 2.6833358788280748e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.196810555687989e-07, + "gradient_norm": 6.010444849380292e-06 + }, + { + "step": 423, + "loss": 2.6768996121973032e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1324490262486506e-07, + "gradient_norm": 7.965152690303512e-06 + }, + { + "step": 424, + "loss": 2.674162260518642e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.105074656810757e-07, + "gradient_norm": 5.720330136682605e-06 + }, + { + "step": 425, + "loss": 2.679492126844707e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1583738885055936e-07, + "gradient_norm": 8.868749318935443e-06 + }, + { + "step": 426, + "loss": 2.6740758585219737e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1042106368440727e-07, + "gradient_norm": 6.15922135693836e-06 + }, + { + "step": 427, + "loss": 2.675339601410087e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1168500552448677e-07, + "gradient_norm": 7.890796041465364e-06 + }, + { + "step": 428, + "loss": 2.676811163837556e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1315653953024594e-07, + "gradient_norm": 4.767805876326747e-06 + }, + { + "step": 429, + "loss": 2.6714251362136565e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.077703697977995e-07, + "gradient_norm": 5.747245722886873e-06 + }, + { + "step": 430, + "loss": 2.6719108063844033e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.0825621049880283e-07, + "gradient_norm": 5.04589934280375e-06 + }, + { + "step": 431, + "loss": 2.6603543119563255e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 1.9669965922730626e-07, + "gradient_norm": 4.9792615754995495e-06 + }, + { + "step": 432, + "loss": 2.6694194730225718e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.0576473502842418e-07, + "gradient_norm": 4.6324894356075674e-06 + }, + { + "step": 433, + "loss": 2.680551006051246e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1689629647880793e-07, + "gradient_norm": 5.610656444332562e-06 + }, + { + "step": 434, + "loss": 2.6741188321466325e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1046405151992076e-07, + "gradient_norm": 5.587031409959309e-06 + }, + { + "step": 435, + "loss": 2.670378989932942e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.0672437983648706e-07, + "gradient_norm": 4.9207596930500586e-06 + }, + { + "step": 436, + "loss": 2.6701980004872894e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.065433477582701e-07, + "gradient_norm": 4.4160137804283295e-06 + }, + { + "step": 437, + "loss": 2.672635446288041e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.0898070829389326e-07, + "gradient_norm": 5.957025223324308e-06 + }, + { + "step": 438, + "loss": 2.676056055861409e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1240144576495368e-07, + "gradient_norm": 4.656495093513513e-06 + }, + { + "step": 439, + "loss": 2.6759907996165566e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1233620373095619e-07, + "gradient_norm": 6.2091344261716586e-06 + }, + { + "step": 440, + "loss": 2.6743762191472342e-06, + "target_ce": 2.463654709572438e-06, + "replay_kl": 2.1072155220736022e-07, + "gradient_norm": 6.514190317830071e-06 + }, + { + "step": 441, + "loss": 2.629817799970624e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.058994539311243e-07, + "gradient_norm": 5.162322850083001e-06 + }, + { + "step": 442, + "loss": 2.6419950245326618e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1807652217376017e-07, + "gradient_norm": 8.00828365754569e-06 + }, + { + "step": 443, + "loss": 2.6367388272774406e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1282050965965027e-07, + "gradient_norm": 4.867694769927766e-06 + }, + { + "step": 444, + "loss": 2.635424834807054e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1150644613499026e-07, + "gradient_norm": 6.4938885770970955e-06 + }, + { + "step": 445, + "loss": 2.643502284627175e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.195838249008375e-07, + "gradient_norm": 4.815526153834071e-06 + }, + { + "step": 446, + "loss": 2.6407087716506794e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1679038297861553e-07, + "gradient_norm": 6.264366220420925e-06 + }, + { + "step": 447, + "loss": 2.6350162443122827e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1109774195338105e-07, + "gradient_norm": 4.429789441928733e-06 + }, + { + "step": 448, + "loss": 2.6319432890886674e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0802488620574877e-07, + "gradient_norm": 6.955160188226728e-06 + }, + { + "step": 449, + "loss": 2.629258688102709e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0534014311124338e-07, + "gradient_norm": 4.515409273153637e-06 + }, + { + "step": 450, + "loss": 2.6294183044228703e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.054999157508064e-07, + "gradient_norm": 6.8642602855106816e-06 + }, + { + "step": 451, + "loss": 2.6302977857994847e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.063793829165661e-07, + "gradient_norm": 6.877116902614944e-06 + }, + { + "step": 452, + "loss": 2.634037628013175e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.101192393411111e-07, + "gradient_norm": 5.377079560275888e-06 + }, + { + "step": 453, + "loss": 2.6302182050130796e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0629985897357983e-07, + "gradient_norm": 4.9594391384744085e-06 + }, + { + "step": 454, + "loss": 2.630524249980226e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.066057902538887e-07, + "gradient_norm": 5.467196388053708e-06 + }, + { + "step": 455, + "loss": 2.6423917915963102e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1847324660484446e-07, + "gradient_norm": 6.791757641622098e-06 + }, + { + "step": 456, + "loss": 2.6331570097681833e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.092386637286836e-07, + "gradient_norm": 5.535545824386645e-06 + }, + { + "step": 457, + "loss": 2.6280963538738433e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0417780888237758e-07, + "gradient_norm": 7.591591383970808e-06 + }, + { + "step": 458, + "loss": 2.6213510864181444e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9743274037864467e-07, + "gradient_norm": 5.3047815526952036e-06 + }, + { + "step": 459, + "loss": 2.6430777779751224e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1915931824878498e-07, + "gradient_norm": 6.506770205305656e-06 + }, + { + "step": 460, + "loss": 2.629697291922639e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0577878956373752e-07, + "gradient_norm": 5.285938641463872e-06 + }, + { + "step": 461, + "loss": 2.6355753561801976e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1165683961044124e-07, + "gradient_norm": 5.711836365662748e-06 + }, + { + "step": 462, + "loss": 2.6348197934566997e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.1090127688694338e-07, + "gradient_norm": 8.125421118165832e-06 + }, + { + "step": 463, + "loss": 2.626046352816047e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.021280067765474e-07, + "gradient_norm": 6.998171556915622e-06 + }, + { + "step": 464, + "loss": 2.6223510758427437e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.984326445381157e-07, + "gradient_norm": 4.3805707719002385e-06 + }, + { + "step": 465, + "loss": 2.6197978968411917e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9587943711485423e-07, + "gradient_norm": 7.308044587261975e-06 + }, + { + "step": 466, + "loss": 2.6279169560439186e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0399849631758116e-07, + "gradient_norm": 4.837451342609711e-06 + }, + { + "step": 467, + "loss": 2.632454652484739e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.085361501258376e-07, + "gradient_norm": 6.8640765675809234e-06 + }, + { + "step": 468, + "loss": 2.626146851980593e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0222846330852917e-07, + "gradient_norm": 7.581273166579194e-06 + }, + { + "step": 469, + "loss": 2.6189145501120947e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9499614722917613e-07, + "gradient_norm": 5.672734914696775e-06 + }, + { + "step": 470, + "loss": 2.6203820198134053e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9646361693048675e-07, + "gradient_norm": 9.540863175061531e-06 + }, + { + "step": 471, + "loss": 2.6205466383544262e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.966281786280888e-07, + "gradient_norm": 5.715018232876901e-06 + }, + { + "step": 472, + "loss": 2.629939899634337e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.060214399079996e-07, + "gradient_norm": 7.2264456321136095e-06 + }, + { + "step": 473, + "loss": 2.623058662720723e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9914034510293277e-07, + "gradient_norm": 6.4020027821243275e-06 + }, + { + "step": 474, + "loss": 2.6202528715657536e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9633452552625386e-07, + "gradient_norm": 8.063959285209421e-06 + }, + { + "step": 475, + "loss": 2.631439883771236e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0752145246660803e-07, + "gradient_norm": 6.557831966347294e-06 + }, + { + "step": 476, + "loss": 2.6178952339250827e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9397674577703583e-07, + "gradient_norm": 7.422128419420915e-06 + }, + { + "step": 477, + "loss": 2.6141826765524456e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9026423103696288e-07, + "gradient_norm": 8.975595847005025e-06 + }, + { + "step": 478, + "loss": 2.621541625558166e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9762312319926423e-07, + "gradient_norm": 5.820500518893823e-06 + }, + { + "step": 479, + "loss": 2.6261552648065845e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0223691876708472e-07, + "gradient_norm": 6.969477453822037e-06 + }, + { + "step": 480, + "loss": 2.6237687507091323e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.998503620370684e-07, + "gradient_norm": 5.5809282457630616e-06 + }, + { + "step": 481, + "loss": 2.6311872716178186e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0726881189148116e-07, + "gradient_norm": 6.568913249793695e-06 + }, + { + "step": 482, + "loss": 2.6248631002090406e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 2.0094478259125026e-07, + "gradient_norm": 5.917588623560732e-06 + }, + { + "step": 483, + "loss": 2.620683062559692e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.967646738876283e-07, + "gradient_norm": 4.5704950935032684e-06 + }, + { + "step": 484, + "loss": 2.6164084374613594e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.924900061567314e-07, + "gradient_norm": 8.172824891516939e-06 + }, + { + "step": 485, + "loss": 2.61689342551108e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.929749942064518e-07, + "gradient_norm": 6.6850184339273255e-06 + }, + { + "step": 486, + "loss": 2.622091187731712e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9817268537281052e-07, + "gradient_norm": 5.86171790928347e-06 + }, + { + "step": 487, + "loss": 2.6164937025896506e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9257518601989432e-07, + "gradient_norm": 5.759025498264236e-06 + }, + { + "step": 488, + "loss": 2.6105660708708456e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8664755430108926e-07, + "gradient_norm": 4.0520185393688735e-06 + }, + { + "step": 489, + "loss": 2.61659852185403e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9267997686256422e-07, + "gradient_norm": 4.614139925251948e-06 + }, + { + "step": 490, + "loss": 2.6138122848351486e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8989388195223e-07, + "gradient_norm": 6.548440524056787e-06 + }, + { + "step": 491, + "loss": 2.6160053039347986e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9208678736504226e-07, + "gradient_norm": 5.153274742042413e-06 + }, + { + "step": 492, + "loss": 2.617117615955067e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9319911359616526e-07, + "gradient_norm": 4.246411663189065e-06 + }, + { + "step": 493, + "loss": 2.6102170522790402e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.862986209744122e-07, + "gradient_norm": 4.98228837386705e-06 + }, + { + "step": 494, + "loss": 2.616367737573455e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.924493489013912e-07, + "gradient_norm": 3.9665928852627985e-06 + }, + { + "step": 495, + "loss": 2.6152988539251965e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9138053630740615e-07, + "gradient_norm": 6.719125849485863e-06 + }, + { + "step": 496, + "loss": 2.608250042612781e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8433165394071693e-07, + "gradient_norm": 7.034633199509699e-06 + }, + { + "step": 497, + "loss": 2.6042639547085855e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8034546656053863e-07, + "gradient_norm": 4.2414740164531395e-06 + }, + { + "step": 498, + "loss": 2.6068710212712176e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8295258996658958e-07, + "gradient_norm": 8.396551493206061e-06 + }, + { + "step": 499, + "loss": 2.6178267944487743e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.93908476830984e-07, + "gradient_norm": 6.549389581778087e-06 + }, + { + "step": 500, + "loss": 2.614999630168313e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.9108128412881342e-07, + "gradient_norm": 4.7670600906712934e-06 + }, + { + "step": 501, + "loss": 2.6064574285555864e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8253894040753949e-07, + "gradient_norm": 8.992507900984492e-06 + }, + { + "step": 502, + "loss": 2.5986553282564273e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.7473693958436343e-07, + "gradient_norm": 7.196184924396221e-06 + }, + { + "step": 503, + "loss": 2.6015457024186617e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.7762718584890536e-07, + "gradient_norm": 4.322710537962848e-06 + }, + { + "step": 504, + "loss": 2.611837999211275e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8791951106322813e-07, + "gradient_norm": 6.426657364499988e-06 + }, + { + "step": 505, + "loss": 2.6134403015021235e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8952181335407658e-07, + "gradient_norm": 4.945063665218186e-06 + }, + { + "step": 506, + "loss": 2.6118716505152406e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.879532192106126e-07, + "gradient_norm": 4.363005245977547e-06 + }, + { + "step": 507, + "loss": 2.605357394713792e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8143894919830927e-07, + "gradient_norm": 6.949070666451007e-06 + }, + { + "step": 508, + "loss": 2.6102525225724094e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8633413390034548e-07, + "gradient_norm": 4.814370186068118e-06 + }, + { + "step": 509, + "loss": 2.6067391445394605e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8282068481312308e-07, + "gradient_norm": 4.0742238525126595e-06 + }, + { + "step": 510, + "loss": 2.6054608497361187e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.8154239000978123e-07, + "gradient_norm": 4.292738594813272e-06 + }, + { + "step": 511, + "loss": 2.6034545044240076e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.7953612996279844e-07, + "gradient_norm": 5.263803814159473e-06 + }, + { + "step": 512, + "loss": 2.6015050025307573e-06, + "target_ce": 2.423918431304628e-06, + "replay_kl": 1.7758668491296703e-07, + "gradient_norm": 6.570248842763249e-06 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/run.json new file mode 100644 index 0000000000000000000000000000000000000000..8b1d76461dac13be8d83f5935c7c24d2f54a954a --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/lr0.0001-sham/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_strict-00", + "arm": "sham", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "208c9ab4a164cb5dc647623fbf846ade96ee3d261b07bc4a37a69fab623708cf", + "new_fact_sha256": "d5c3305c29626ec3846451987eab7ff59d4bca320de5579b2319899939632656", + "target_batch_sha256": "1c1e1427774ce37bc17d98ed524daa2bbbbf9b2959abf4573199880986ef8d58", + "replay_batch_sha256": "7503254c9b2d5b8e74a565c84a6d8948c110f8508159d1ae46e26a2b88fa548c", + "parent_reference_sha256": "6d6e69c23e934218f7c71fc0514e47bf12d531f6e692a99f8b2741492a0be011", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/parent-metrics.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/parent-metrics.json new file mode 100644 index 0000000000000000000000000000000000000000..e6009b357529151e387f272c3b4835e6800b5b25 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-00/parent-metrics.json @@ -0,0 +1,175 @@ +{ + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035124807618558407 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.106464385986328 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.8546168958742633, + "accuracy": 0.8546168958742633, + "answer_nll": 0.5321443676948547 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.3991756439209, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005769940325990319 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032201825524680316 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003807223110925406 + } +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..323a61c46655850c2ae6fb6b471b0d611e56eee4 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_strict-01", + "role": "second", + "stratum": "strict", + "lr": 0.0001, + "arm": "edit", + "path": "second_strict-01/lr0.0001-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 20.32663917541504 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.2278481335670222e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9479166666666666, + "accuracy": 0.9479166666666666, + "answer_nll": 0.2189943939447403 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8267716535433071, + "accuracy": 0.8267716535433071, + "answer_nll": 0.6419335603713989 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.2735781669616699, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9227799227799228, + "accuracy": 0.9227799227799228, + "answer_nll": 0.33250340819358826 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003499411977827549 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.004504505544900894 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031394464895129204 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9899091826437941, + "accuracy": 0.9899091826437941, + "answer_nll": 0.027107728645205498 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "17c2321a5b7c5ac63961b8e0e9b4588b72d1a49c698e231c0b7110e06066f95b", + "delta_l2": 0.49451446533203125, + "tensor_file_sha256": "0156612b1e8de58c98807367c165efa4678e07f40c195ee3ae890b42ccc5fc45" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..92f7a53a80fdd09031c068ef48676fc0c0d5a845 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000896052282769233 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.707046508789062 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8562992125984252, + "accuracy": 0.8562992125984252, + "answer_nll": 0.5300208330154419 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.189226150512695, + "changed_answer_n": 4, + "old_answer_accuracy": 0.75, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001229818444699049 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031055815634317696 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003805416636168957 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": false, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.248218536376953 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.41325386823155e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9192708333333334, + "accuracy": 0.9192708333333334, + "answer_nll": 0.2997913062572479 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.797244094488189, + "accuracy": 0.797244094488189, + "answer_nll": 0.7847781777381897 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.281358003616333, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9073359073359073, + "accuracy": 0.9073359073359073, + "answer_nll": 0.41843611001968384 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001318634022027254 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.05067305639386177 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0008193759713321924 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9677093844601413, + "accuracy": 0.9677093844601413, + "answer_nll": 0.09010970592498779 + } + }, + "model_sha256": "8ee7e8bf4f42e0fcc45cfda2add2878c11069de5a82fc61d17f24ff0f1c2bea5", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 0.00018458660633768886, + "target_ce": 2.733794644882437e-05, + "replay_kl": 0.0001572486653458327, + "gradient_norm": 0.0077833146788179874 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.686079025268555 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 4.017272294731811e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9361979166666666, + "accuracy": 0.9361979166666666, + "answer_nll": 0.25526171922683716 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8169291338582677, + "accuracy": 0.8169291338582677, + "answer_nll": 0.7031217813491821 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.23801006376743317, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9073359073359073, + "accuracy": 0.9073359073359073, + "answer_nll": 0.37873509526252747 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0007045809179544449 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.012697670608758926 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035489644506014884 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9808274470232089, + "accuracy": 0.9808274470232089, + "answer_nll": 0.0493253692984581 + } + }, + "model_sha256": "5132edc257a9420ad06d1f219f5b8ae4ac5e9662832f63ba9b2d37ae08bdbe50", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 4.5265005610417575e-05, + "target_ce": 1.744400833558757e-05, + "replay_kl": 2.7820997274830006e-05, + "gradient_norm": 0.001009738421998918 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 20.32663917541504 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.2278481335670222e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9479166666666666, + "accuracy": 0.9479166666666666, + "answer_nll": 0.2189943939447403 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8267716535433071, + "accuracy": 0.8267716535433071, + "answer_nll": 0.6419335603713989 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.2735781669616699, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9227799227799228, + "accuracy": 0.9227799227799228, + "answer_nll": 0.33250340819358826 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003499411977827549 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.004504505544900894 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031394464895129204 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9899091826437941, + "accuracy": 0.9899091826437941, + "answer_nll": 0.027107728645205498 + } + }, + "model_sha256": "17c2321a5b7c5ac63961b8e0e9b4588b72d1a49c698e231c0b7110e06066f95b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 1.257101303053787e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.935059562034439e-06, + "gradient_norm": 0.0001859672920545563 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..e6051e39e409a67ea79bad931bafbf845b416386 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 5.569019794464111, + "target_ce": 5.569019794464111, + "replay_kl": 0.0, + "gradient_norm": 76.21949005126953 + }, + { + "step": 2, + "loss": 3.934744119644165, + "target_ce": 3.9347422122955322, + "replay_kl": 1.903487373056123e-06, + "gradient_norm": 81.70621490478516 + }, + { + "step": 3, + "loss": 2.310182809829712, + "target_ce": 2.3101747035980225, + "replay_kl": 8.051289114519022e-06, + "gradient_norm": 78.8555679321289 + }, + { + "step": 4, + "loss": 0.9509652256965637, + "target_ce": 0.9509449005126953, + "replay_kl": 2.0344308722997084e-05, + "gradient_norm": 59.272117614746094 + }, + { + "step": 5, + "loss": 0.21258939802646637, + "target_ce": 0.21254675090312958, + "replay_kl": 4.2644242057576776e-05, + "gradient_norm": 23.851835250854492 + }, + { + "step": 6, + "loss": 0.030655506998300552, + "target_ce": 0.03057406097650528, + "replay_kl": 8.144554158207029e-05, + "gradient_norm": 3.7049942016601562 + }, + { + "step": 7, + "loss": 0.005297212395817041, + "target_ce": 0.005147011950612068, + "replay_kl": 0.00015020066348370165, + "gradient_norm": 0.54360431432724 + }, + { + "step": 8, + "loss": 0.0014949599280953407, + "target_ce": 0.0012283901451155543, + "replay_kl": 0.0002665697829797864, + "gradient_norm": 0.11142819374799728 + }, + { + "step": 9, + "loss": 0.0008794715395197272, + "target_ce": 0.0004320590815041214, + "replay_kl": 0.00044741242891177535, + "gradient_norm": 0.04483791068196297 + }, + { + "step": 10, + "loss": 0.0009061255841515958, + "target_ce": 0.0002056155790342018, + "replay_kl": 0.0007005099905654788, + "gradient_norm": 0.05769891291856766 + }, + { + "step": 11, + "loss": 0.0011235307902097702, + "target_ce": 0.00012085820344509557, + "replay_kl": 0.0010026725940406322, + "gradient_norm": 0.08549267053604126 + }, + { + "step": 12, + "loss": 0.001365778734907508, + "target_ce": 8.276203880086541e-05, + "replay_kl": 0.0012830167543143034, + "gradient_norm": 0.11141351610422134 + }, + { + "step": 13, + "loss": 0.0015249790158122778, + "target_ce": 6.309648597380146e-05, + "replay_kl": 0.0014618824934586883, + "gradient_norm": 0.1263521909713745 + }, + { + "step": 14, + "loss": 0.0015462557785212994, + "target_ce": 5.173363024368882e-05, + "replay_kl": 0.0014945222064852715, + "gradient_norm": 0.12633688747882843 + }, + { + "step": 15, + "loss": 0.0014488919405266643, + "target_ce": 4.4780656025977805e-05, + "replay_kl": 0.00140411127358675, + "gradient_norm": 0.11492609977722168 + }, + { + "step": 16, + "loss": 0.0012856402900069952, + "target_ce": 4.021147105959244e-05, + "replay_kl": 0.0012454288080334663, + "gradient_norm": 0.0980614647269249 + }, + { + "step": 17, + "loss": 0.0010997781064361334, + "target_ce": 3.703287438838743e-05, + "replay_kl": 0.0010627452284097672, + "gradient_norm": 0.08026853948831558 + }, + { + "step": 18, + "loss": 0.000929360103327781, + "target_ce": 3.484756962279789e-05, + "replay_kl": 0.000894512515515089, + "gradient_norm": 0.06486416608095169 + }, + { + "step": 19, + "loss": 0.0007819716120138764, + "target_ce": 3.309931344119832e-05, + "replay_kl": 0.0007488722912967205, + "gradient_norm": 0.0522146038711071 + }, + { + "step": 20, + "loss": 0.0006618493353016675, + "target_ce": 3.1907322409097105e-05, + "replay_kl": 0.0006299419910646975, + "gradient_norm": 0.042338527739048004 + }, + { + "step": 21, + "loss": 0.0005650138482451439, + "target_ce": 3.099345485679805e-05, + "replay_kl": 0.0005340203642845154, + "gradient_norm": 0.03468816354870796 + }, + { + "step": 22, + "loss": 0.0004869668046012521, + "target_ce": 3.0198782042134553e-05, + "replay_kl": 0.00045676802983507514, + "gradient_norm": 0.028770016506314278 + }, + { + "step": 23, + "loss": 0.00042491508065722883, + "target_ce": 2.9642511435667984e-05, + "replay_kl": 0.00039527256740257144, + "gradient_norm": 0.024187389761209488 + }, + { + "step": 24, + "loss": 0.0003741157124750316, + "target_ce": 2.9165707019274123e-05, + "replay_kl": 0.0003449500072747469, + "gradient_norm": 0.0205584317445755 + }, + { + "step": 25, + "loss": 0.00033284479286521673, + "target_ce": 2.8847838621004485e-05, + "replay_kl": 0.00030399695970118046, + "gradient_norm": 0.01766960695385933 + }, + { + "step": 26, + "loss": 0.0002990177890751511, + "target_ce": 2.852996658475604e-05, + "replay_kl": 0.00027048782794736326, + "gradient_norm": 0.015349864028394222 + }, + { + "step": 27, + "loss": 0.00027094638790003955, + "target_ce": 2.8251830372028053e-05, + "replay_kl": 0.0002426945575280115, + "gradient_norm": 0.013456867076456547 + }, + { + "step": 28, + "loss": 0.000247590069193393, + "target_ce": 2.801342634484172e-05, + "replay_kl": 0.00021957664284855127, + "gradient_norm": 0.011899860575795174 + }, + { + "step": 29, + "loss": 0.00022779095161240548, + "target_ce": 2.7814758141175844e-05, + "replay_kl": 0.00019997618801426142, + "gradient_norm": 0.01058943197131157 + }, + { + "step": 30, + "loss": 0.0002110546629410237, + "target_ce": 2.7695556127582677e-05, + "replay_kl": 0.00018335910863243043, + "gradient_norm": 0.009494204074144363 + }, + { + "step": 31, + "loss": 0.00019685599545482546, + "target_ce": 2.753661829046905e-05, + "replay_kl": 0.0001693193771643564, + "gradient_norm": 0.008572004735469818 + }, + { + "step": 32, + "loss": 0.00018458660633768886, + "target_ce": 2.733794644882437e-05, + "replay_kl": 0.0001572486653458327, + "gradient_norm": 0.0077833146788179874 + }, + { + "step": 33, + "loss": 0.0001742349995765835, + "target_ce": 2.7258478439762257e-05, + "replay_kl": 0.00014697652659378946, + "gradient_norm": 0.0071161603555083275 + }, + { + "step": 34, + "loss": 0.00016486464301124215, + "target_ce": 2.7099542421638034e-05, + "replay_kl": 0.00013776510604657233, + "gradient_norm": 0.006522038485854864 + }, + { + "step": 35, + "loss": 0.00015692756278440356, + "target_ce": 2.7020076231565326e-05, + "replay_kl": 0.00012990747927688062, + "gradient_norm": 0.006021947134286165 + }, + { + "step": 36, + "loss": 0.00014987557369749993, + "target_ce": 2.6861134756472893e-05, + "replay_kl": 0.00012301444076001644, + "gradient_norm": 0.00558122992515564 + }, + { + "step": 37, + "loss": 0.00014350248966366053, + "target_ce": 2.6702196919359267e-05, + "replay_kl": 0.00011680029274430126, + "gradient_norm": 0.005193465854972601 + }, + { + "step": 38, + "loss": 0.00013791456876788288, + "target_ce": 2.6622727091307752e-05, + "replay_kl": 0.00011129184713354334, + "gradient_norm": 0.004848145414143801 + }, + { + "step": 39, + "loss": 0.00013293963274918497, + "target_ce": 2.6503521439735778e-05, + "replay_kl": 0.00010643610585248098, + "gradient_norm": 0.004549545235931873 + }, + { + "step": 40, + "loss": 0.00012845055607613176, + "target_ce": 2.6424053430673666e-05, + "replay_kl": 0.0001020265044644475, + "gradient_norm": 0.004281455650925636 + }, + { + "step": 41, + "loss": 0.00012446308392100036, + "target_ce": 2.6304849598091096e-05, + "replay_kl": 9.815822704695165e-05, + "gradient_norm": 0.004048763774335384 + }, + { + "step": 42, + "loss": 0.00012078185682184994, + "target_ce": 2.6225381589028984e-05, + "replay_kl": 9.455647523282096e-05, + "gradient_norm": 0.0038367246743291616 + }, + { + "step": 43, + "loss": 0.00011737842578440905, + "target_ce": 2.6066443751915358e-05, + "replay_kl": 9.131198021350428e-05, + "gradient_norm": 0.0036470089107751846 + }, + { + "step": 44, + "loss": 0.00011432724568294361, + "target_ce": 2.598697210487444e-05, + "replay_kl": 8.834027539705858e-05, + "gradient_norm": 0.003475343342870474 + }, + { + "step": 45, + "loss": 0.00011154877574881539, + "target_ce": 2.5907504095812328e-05, + "replay_kl": 8.564127347199246e-05, + "gradient_norm": 0.0033248020336031914 + }, + { + "step": 46, + "loss": 0.0001089656216208823, + "target_ce": 2.5828034267760813e-05, + "replay_kl": 8.313758735312149e-05, + "gradient_norm": 0.0031867159996181726 + }, + { + "step": 47, + "loss": 0.00010649966134224087, + "target_ce": 2.566909824963659e-05, + "replay_kl": 8.083056309260428e-05, + "gradient_norm": 0.0030601094476878643 + }, + { + "step": 48, + "loss": 0.00010425880464026704, + "target_ce": 2.5629364245105535e-05, + "replay_kl": 7.862944039516151e-05, + "gradient_norm": 0.002942569088190794 + }, + { + "step": 49, + "loss": 0.00010205802391283214, + "target_ce": 2.547042640799191e-05, + "replay_kl": 7.658759568585083e-05, + "gradient_norm": 0.0028348718769848347 + }, + { + "step": 50, + "loss": 0.00010015480074798688, + "target_ce": 2.5430694222450256e-05, + "replay_kl": 7.472410652553663e-05, + "gradient_norm": 0.0027384625282138586 + }, + { + "step": 51, + "loss": 9.828125621424988e-05, + "target_ce": 2.527175638533663e-05, + "replay_kl": 7.300949800992385e-05, + "gradient_norm": 0.0026501803658902645 + }, + { + "step": 52, + "loss": 9.643356315791607e-05, + "target_ce": 2.5073079086723737e-05, + "replay_kl": 7.136048225220293e-05, + "gradient_norm": 0.0025670567993074656 + }, + { + "step": 53, + "loss": 9.471409430261701e-05, + "target_ce": 2.495387707313057e-05, + "replay_kl": 6.976021541049704e-05, + "gradient_norm": 0.0024871621280908585 + }, + { + "step": 54, + "loss": 9.313665941590443e-05, + "target_ce": 2.479493741702754e-05, + "replay_kl": 6.83417238178663e-05, + "gradient_norm": 0.0024187560193240643 + }, + { + "step": 55, + "loss": 9.171333658741787e-05, + "target_ce": 2.4755203412496485e-05, + "replay_kl": 6.695813499391079e-05, + "gradient_norm": 0.0023542484268546104 + }, + { + "step": 56, + "loss": 9.038831922225654e-05, + "target_ce": 2.471546940796543e-05, + "replay_kl": 6.567285163328052e-05, + "gradient_norm": 0.0022954882588237524 + }, + { + "step": 57, + "loss": 8.891893230611458e-05, + "target_ce": 2.447706356178969e-05, + "replay_kl": 6.444186874432489e-05, + "gradient_norm": 0.0022378929425030947 + }, + { + "step": 58, + "loss": 8.763096411712468e-05, + "target_ce": 2.439759009575937e-05, + "replay_kl": 6.323337584035471e-05, + "gradient_norm": 0.0021826336160302162 + }, + { + "step": 59, + "loss": 8.640222222311422e-05, + "target_ce": 2.427839172014501e-05, + "replay_kl": 6.212382868397981e-05, + "gradient_norm": 0.0021321680396795273 + }, + { + "step": 60, + "loss": 8.51685690577142e-05, + "target_ce": 2.4119450245052576e-05, + "replay_kl": 6.104911881266162e-05, + "gradient_norm": 0.0020863006357103586 + }, + { + "step": 61, + "loss": 8.405108383158222e-05, + "target_ce": 2.4039982235990465e-05, + "replay_kl": 6.0011101595591754e-05, + "gradient_norm": 0.0020425717812031507 + }, + { + "step": 62, + "loss": 8.292428537970409e-05, + "target_ce": 2.3920780222397298e-05, + "replay_kl": 5.900350515730679e-05, + "gradient_norm": 0.0020004662219434977 + }, + { + "step": 63, + "loss": 8.183086174540222e-05, + "target_ce": 2.3761838747304864e-05, + "replay_kl": 5.806902117910795e-05, + "gradient_norm": 0.0019618808291852474 + }, + { + "step": 64, + "loss": 8.074603829300031e-05, + "target_ce": 2.3602900910191238e-05, + "replay_kl": 5.714313738280907e-05, + "gradient_norm": 0.0019241946283727884 + }, + { + "step": 65, + "loss": 7.98190594650805e-05, + "target_ce": 2.3523432901129127e-05, + "replay_kl": 5.629562656395137e-05, + "gradient_norm": 0.0018902936717495322 + }, + { + "step": 66, + "loss": 7.886960520409048e-05, + "target_ce": 2.340423088753596e-05, + "replay_kl": 5.5465374316554517e-05, + "gradient_norm": 0.0018563997000455856 + }, + { + "step": 67, + "loss": 7.792858377797529e-05, + "target_ce": 2.3285023416974582e-05, + "replay_kl": 5.4643558542011306e-05, + "gradient_norm": 0.0018255288014188409 + }, + { + "step": 68, + "loss": 7.705736061325297e-05, + "target_ce": 2.320555540791247e-05, + "replay_kl": 5.3851803386351094e-05, + "gradient_norm": 0.0017958059906959534 + }, + { + "step": 69, + "loss": 7.61852934374474e-05, + "target_ce": 2.3086353394319303e-05, + "replay_kl": 5.30989418621175e-05, + "gradient_norm": 0.0017667592037469149 + }, + { + "step": 70, + "loss": 7.537549390690401e-05, + "target_ce": 2.300688356626779e-05, + "replay_kl": 5.2368610340636224e-05, + "gradient_norm": 0.0017410318832844496 + }, + { + "step": 71, + "loss": 7.453103171428666e-05, + "target_ce": 2.2887679733685218e-05, + "replay_kl": 5.1643350161612034e-05, + "gradient_norm": 0.0017145631136372685 + }, + { + "step": 72, + "loss": 7.376715075224638e-05, + "target_ce": 2.2808211724623106e-05, + "replay_kl": 5.095894084661268e-05, + "gradient_norm": 0.0016906341770663857 + }, + { + "step": 73, + "loss": 7.295835530385375e-05, + "target_ce": 2.268900971102994e-05, + "replay_kl": 5.026934377383441e-05, + "gradient_norm": 0.0016662371344864368 + }, + { + "step": 74, + "loss": 7.22148033673875e-05, + "target_ce": 2.260953806398902e-05, + "replay_kl": 4.960526348440908e-05, + "gradient_norm": 0.0016442019259557128 + }, + { + "step": 75, + "loss": 7.144160190364346e-05, + "target_ce": 2.249033423140645e-05, + "replay_kl": 4.895126767223701e-05, + "gradient_norm": 0.0016212849877774715 + }, + { + "step": 76, + "loss": 7.070120045682415e-05, + "target_ce": 2.2371132217813283e-05, + "replay_kl": 4.833006823901087e-05, + "gradient_norm": 0.001599544775672257 + }, + { + "step": 77, + "loss": 7.003710197750479e-05, + "target_ce": 2.2291662389761768e-05, + "replay_kl": 4.7745441406732425e-05, + "gradient_norm": 0.0015807137824594975 + }, + { + "step": 78, + "loss": 6.924656918272376e-05, + "target_ce": 2.209298691013828e-05, + "replay_kl": 4.715358591056429e-05, + "gradient_norm": 0.0015615444863215089 + }, + { + "step": 79, + "loss": 6.859870336484164e-05, + "target_ce": 2.2013517082086764e-05, + "replay_kl": 4.658518810174428e-05, + "gradient_norm": 0.001543191378004849 + }, + { + "step": 80, + "loss": 6.7911583755631e-05, + "target_ce": 2.189431143051479e-05, + "replay_kl": 4.6017270506126806e-05, + "gradient_norm": 0.0015256797196343541 + }, + { + "step": 81, + "loss": 6.728365406161174e-05, + "target_ce": 2.181484342145268e-05, + "replay_kl": 4.546880882116966e-05, + "gradient_norm": 0.0015082423342391849 + }, + { + "step": 82, + "loss": 6.665974797215313e-05, + "target_ce": 2.1695639588870108e-05, + "replay_kl": 4.496410838328302e-05, + "gradient_norm": 0.001491208211518824 + }, + { + "step": 83, + "loss": 6.592935824301094e-05, + "target_ce": 2.149696410924662e-05, + "replay_kl": 4.4432392314774916e-05, + "gradient_norm": 0.001474634394980967 + }, + { + "step": 84, + "loss": 6.532152474392205e-05, + "target_ce": 2.1417494281195104e-05, + "replay_kl": 4.390403046272695e-05, + "gradient_norm": 0.0014587647747248411 + }, + { + "step": 85, + "loss": 6.477453280240297e-05, + "target_ce": 2.1338026272132993e-05, + "replay_kl": 4.343650653026998e-05, + "gradient_norm": 0.0014450026210397482 + }, + { + "step": 86, + "loss": 6.419495912268758e-05, + "target_ce": 2.1258556444081478e-05, + "replay_kl": 4.29364008596167e-05, + "gradient_norm": 0.0014295250875875354 + }, + { + "step": 87, + "loss": 6.360945553751662e-05, + "target_ce": 2.117908479704056e-05, + "replay_kl": 4.243037255946547e-05, + "gradient_norm": 0.0014156514080241323 + }, + { + "step": 88, + "loss": 6.299714732449502e-05, + "target_ce": 2.1020148778916337e-05, + "replay_kl": 4.1977000364568084e-05, + "gradient_norm": 0.0014013800537213683 + }, + { + "step": 89, + "loss": 6.24451640760526e-05, + "target_ce": 2.094067895086482e-05, + "replay_kl": 4.150448876316659e-05, + "gradient_norm": 0.001387249561958015 + }, + { + "step": 90, + "loss": 6.190119165694341e-05, + "target_ce": 2.086121094180271e-05, + "replay_kl": 4.10399807151407e-05, + "gradient_norm": 0.0013744449242949486 + }, + { + "step": 91, + "loss": 6.140673212939873e-05, + "target_ce": 2.0821476937271655e-05, + "replay_kl": 4.058525519212708e-05, + "gradient_norm": 0.0013619340024888515 + }, + { + "step": 92, + "loss": 6.083361950004473e-05, + "target_ce": 2.0702273104689084e-05, + "replay_kl": 4.0131344576366246e-05, + "gradient_norm": 0.0013483567163348198 + }, + { + "step": 93, + "loss": 6.023444439051673e-05, + "target_ce": 2.054333162959665e-05, + "replay_kl": 3.969111276092008e-05, + "gradient_norm": 0.001335569890215993 + }, + { + "step": 94, + "loss": 5.977852561045438e-05, + "target_ce": 2.0503597625065595e-05, + "replay_kl": 3.9274927985388786e-05, + "gradient_norm": 0.0013248567702248693 + }, + { + "step": 95, + "loss": 5.917599264648743e-05, + "target_ce": 2.0344657968962565e-05, + "replay_kl": 3.8831334677524865e-05, + "gradient_norm": 0.001311734551563859 + }, + { + "step": 96, + "loss": 5.871964822290465e-05, + "target_ce": 2.0304922145442106e-05, + "replay_kl": 3.841472789645195e-05, + "gradient_norm": 0.0013008273672312498 + }, + { + "step": 97, + "loss": 5.817608325742185e-05, + "target_ce": 2.018572013184894e-05, + "replay_kl": 3.7990364944562316e-05, + "gradient_norm": 0.0012884134193882346 + }, + { + "step": 98, + "loss": 5.7650664530228823e-05, + "target_ce": 2.0066514480276965e-05, + "replay_kl": 3.7584148230962455e-05, + "gradient_norm": 0.0012773681664839387 + }, + { + "step": 99, + "loss": 5.7222780014853925e-05, + "target_ce": 2.002678047574591e-05, + "replay_kl": 3.719599772011861e-05, + "gradient_norm": 0.0012664834503084421 + }, + { + "step": 100, + "loss": 5.67384013265837e-05, + "target_ce": 1.9947310647694394e-05, + "replay_kl": 3.6791090678889304e-05, + "gradient_norm": 0.0012556498404592276 + }, + { + "step": 101, + "loss": 5.629388761008158e-05, + "target_ce": 1.986784081964288e-05, + "replay_kl": 3.642604860942811e-05, + "gradient_norm": 0.0012460417347028852 + }, + { + "step": 102, + "loss": 5.584399332292378e-05, + "target_ce": 1.9788372810580768e-05, + "replay_kl": 3.605561869335361e-05, + "gradient_norm": 0.0012354956706985831 + }, + { + "step": 103, + "loss": 5.5351782066281885e-05, + "target_ce": 1.9669168977998197e-05, + "replay_kl": 3.568261308828369e-05, + "gradient_norm": 0.0012242923257872462 + }, + { + "step": 104, + "loss": 5.4856285714777187e-05, + "target_ce": 1.9549963326426223e-05, + "replay_kl": 3.5306322388350964e-05, + "gradient_norm": 0.0012143825879320502 + }, + { + "step": 105, + "loss": 5.445102578960359e-05, + "target_ce": 1.9510227502905764e-05, + "replay_kl": 3.4940796467708424e-05, + "gradient_norm": 0.0012052212841808796 + }, + { + "step": 106, + "loss": 5.388514546211809e-05, + "target_ce": 1.9311553842271678e-05, + "replay_kl": 3.4573593438835815e-05, + "gradient_norm": 0.0011943812714889646 + }, + { + "step": 107, + "loss": 5.349860293790698e-05, + "target_ce": 1.927181801875122e-05, + "replay_kl": 3.422678491915576e-05, + "gradient_norm": 0.0011852758470922709 + }, + { + "step": 108, + "loss": 5.302631325321272e-05, + "target_ce": 1.9152614186168648e-05, + "replay_kl": 3.3873700886033475e-05, + "gradient_norm": 0.0011756003368645906 + }, + { + "step": 109, + "loss": 5.257967859506607e-05, + "target_ce": 1.9073146177106537e-05, + "replay_kl": 3.350653423694894e-05, + "gradient_norm": 0.0011658259900286794 + }, + { + "step": 110, + "loss": 5.208446236792952e-05, + "target_ce": 1.8914204702014104e-05, + "replay_kl": 3.3170257665915415e-05, + "gradient_norm": 0.0011555985547602177 + }, + { + "step": 111, + "loss": 5.176772174309008e-05, + "target_ce": 1.8914204702014104e-05, + "replay_kl": 3.2853517041075975e-05, + "gradient_norm": 0.0011483461130410433 + }, + { + "step": 112, + "loss": 5.12647966388613e-05, + "target_ce": 1.8755266864900477e-05, + "replay_kl": 3.2509531592950225e-05, + "gradient_norm": 0.0011376047041267157 + }, + { + "step": 113, + "loss": 5.088939724373631e-05, + "target_ce": 1.8715531041380018e-05, + "replay_kl": 3.2173866202356294e-05, + "gradient_norm": 0.0011288834502920508 + }, + { + "step": 114, + "loss": 5.048318416811526e-05, + "target_ce": 1.8636061213328503e-05, + "replay_kl": 3.184712113579735e-05, + "gradient_norm": 0.001120281987823546 + }, + { + "step": 115, + "loss": 5.0042894145008177e-05, + "target_ce": 1.851685556175653e-05, + "replay_kl": 3.1526036764262244e-05, + "gradient_norm": 0.0011117769172415137 + }, + { + "step": 116, + "loss": 4.968294524587691e-05, + "target_ce": 1.8477121557225473e-05, + "replay_kl": 3.120582550764084e-05, + "gradient_norm": 0.001103742397390306 + }, + { + "step": 117, + "loss": 4.925698885926977e-05, + "target_ce": 1.83579159056535e-05, + "replay_kl": 3.0899071134626865e-05, + "gradient_norm": 0.0010948152048513293 + }, + { + "step": 118, + "loss": 4.889319825451821e-05, + "target_ce": 1.827844425861258e-05, + "replay_kl": 3.0614755814895034e-05, + "gradient_norm": 0.001087925978936255 + }, + { + "step": 119, + "loss": 4.85496420878917e-05, + "target_ce": 1.8238710254081525e-05, + "replay_kl": 3.0310933652799577e-05, + "gradient_norm": 0.0010800919262692332 + }, + { + "step": 120, + "loss": 4.8107489419635385e-05, + "target_ce": 1.8079770597978495e-05, + "replay_kl": 3.0027720640646294e-05, + "gradient_norm": 0.0010716428514569998 + }, + { + "step": 121, + "loss": 4.774505941895768e-05, + "target_ce": 1.8000298950937577e-05, + "replay_kl": 2.9744760468020104e-05, + "gradient_norm": 0.001064073177985847 + }, + { + "step": 122, + "loss": 4.735394031740725e-05, + "target_ce": 1.792082912288606e-05, + "replay_kl": 2.943311119452119e-05, + "gradient_norm": 0.0010557357454672456 + }, + { + "step": 123, + "loss": 4.704509046860039e-05, + "target_ce": 1.7881093299365602e-05, + "replay_kl": 2.9163998988224193e-05, + "gradient_norm": 0.0010481603676453233 + }, + { + "step": 124, + "loss": 4.664990774472244e-05, + "target_ce": 1.7761891285772435e-05, + "replay_kl": 2.8888016458950005e-05, + "gradient_norm": 0.0010398231679573655 + }, + { + "step": 125, + "loss": 4.634339711628854e-05, + "target_ce": 1.7722155462251976e-05, + "replay_kl": 2.8621241654036567e-05, + "gradient_norm": 0.0010329090291634202 + }, + { + "step": 126, + "loss": 4.5979457354405895e-05, + "target_ce": 1.7642683815211058e-05, + "replay_kl": 2.8336773539194837e-05, + "gradient_norm": 0.0010255395900458097 + }, + { + "step": 127, + "loss": 4.5570865040645e-05, + "target_ce": 1.7483742340118624e-05, + "replay_kl": 2.8087124519515783e-05, + "gradient_norm": 0.0010171984322369099 + }, + { + "step": 128, + "loss": 4.5265005610417575e-05, + "target_ce": 1.744400833558757e-05, + "replay_kl": 2.7820997274830006e-05, + "gradient_norm": 0.001009738421998918 + }, + { + "step": 129, + "loss": 4.4890723074786365e-05, + "target_ce": 1.7324802684015594e-05, + "replay_kl": 2.7565922209760174e-05, + "gradient_norm": 0.001001932891085744 + }, + { + "step": 130, + "loss": 4.452378925634548e-05, + "target_ce": 1.724533285596408e-05, + "replay_kl": 2.7278458219370805e-05, + "gradient_norm": 0.000994330970570445 + }, + { + "step": 131, + "loss": 4.427183739608154e-05, + "target_ce": 1.724533285596408e-05, + "replay_kl": 2.702650635910686e-05, + "gradient_norm": 0.0009882088052108884 + }, + { + "step": 132, + "loss": 4.393262497615069e-05, + "target_ce": 1.7165863027912565e-05, + "replay_kl": 2.676676376722753e-05, + "gradient_norm": 0.0009804872097447515 + }, + { + "step": 133, + "loss": 4.362585241324268e-05, + "target_ce": 1.708639319986105e-05, + "replay_kl": 2.6539459213381633e-05, + "gradient_norm": 0.000973337038885802 + }, + { + "step": 134, + "loss": 4.331077070673928e-05, + "target_ce": 1.7006923371809535e-05, + "replay_kl": 2.6303849153919145e-05, + "gradient_norm": 0.0009661742951720953 + }, + { + "step": 135, + "loss": 4.299798092688434e-05, + "target_ce": 1.692745354375802e-05, + "replay_kl": 2.607052738312632e-05, + "gradient_norm": 0.0009592167916707695 + }, + { + "step": 136, + "loss": 4.266874020686373e-05, + "target_ce": 1.6847983715706505e-05, + "replay_kl": 2.5820756491157226e-05, + "gradient_norm": 0.0009522595792077482 + }, + { + "step": 137, + "loss": 4.235176311340183e-05, + "target_ce": 1.6768512068665586e-05, + "replay_kl": 2.5583252863725647e-05, + "gradient_norm": 0.0009448683122172952 + }, + { + "step": 138, + "loss": 4.210236147628166e-05, + "target_ce": 1.672877806413453e-05, + "replay_kl": 2.5373583412147127e-05, + "gradient_norm": 0.0009387102327309549 + }, + { + "step": 139, + "loss": 4.1874423914123327e-05, + "target_ce": 1.672877806413453e-05, + "replay_kl": 2.5145644030999392e-05, + "gradient_norm": 0.0009329354506917298 + }, + { + "step": 140, + "loss": 4.154018097324297e-05, + "target_ce": 1.660957423155196e-05, + "replay_kl": 2.4930608560680412e-05, + "gradient_norm": 0.0009256199118681252 + }, + { + "step": 141, + "loss": 4.1281724406871945e-05, + "target_ce": 1.65698384080315e-05, + "replay_kl": 2.471188417985104e-05, + "gradient_norm": 0.0009189393604174256 + }, + { + "step": 142, + "loss": 4.1034960304386914e-05, + "target_ce": 1.6530104403500445e-05, + "replay_kl": 2.4504857719875872e-05, + "gradient_norm": 0.0009133857674896717 + }, + { + "step": 143, + "loss": 4.0642702515469864e-05, + "target_ce": 1.6371162928408012e-05, + "replay_kl": 2.4271539587061852e-05, + "gradient_norm": 0.0009054736001417041 + }, + { + "step": 144, + "loss": 4.035296296933666e-05, + "target_ce": 1.6291691281367093e-05, + "replay_kl": 2.4061271687969565e-05, + "gradient_norm": 0.0008992351358756423 + }, + { + "step": 145, + "loss": 4.011689088656567e-05, + "target_ce": 1.6251957276836038e-05, + "replay_kl": 2.3864933609729633e-05, + "gradient_norm": 0.000893519667442888 + }, + { + "step": 146, + "loss": 3.986254887422547e-05, + "target_ce": 1.621222145331558e-05, + "replay_kl": 2.3650329239899293e-05, + "gradient_norm": 0.0008871977915987372 + }, + { + "step": 147, + "loss": 3.9588056097272784e-05, + "target_ce": 1.6132751625264063e-05, + "replay_kl": 2.3455306290998124e-05, + "gradient_norm": 0.0008810999570414424 + }, + { + "step": 148, + "loss": 3.926680074073374e-05, + "target_ce": 1.6013547792681493e-05, + "replay_kl": 2.325325294805225e-05, + "gradient_norm": 0.0008742066565901041 + }, + { + "step": 149, + "loss": 3.9040958654368296e-05, + "target_ce": 1.5973811969161034e-05, + "replay_kl": 2.3067146685207263e-05, + "gradient_norm": 0.0008684361819177866 + }, + { + "step": 150, + "loss": 3.886486229021102e-05, + "target_ce": 1.5973811969161034e-05, + "replay_kl": 2.2891048502060585e-05, + "gradient_norm": 0.0008637262508273125 + }, + { + "step": 151, + "loss": 3.8520935049746186e-05, + "target_ce": 1.58148704940686e-05, + "replay_kl": 2.270606637466699e-05, + "gradient_norm": 0.0008562149596400559 + }, + { + "step": 152, + "loss": 3.827695763902739e-05, + "target_ce": 1.5775136489537545e-05, + "replay_kl": 2.2501821149489842e-05, + "gradient_norm": 0.0008507643360644579 + }, + { + "step": 153, + "loss": 3.806108725257218e-05, + "target_ce": 1.5735400666017085e-05, + "replay_kl": 2.2325686586555094e-05, + "gradient_norm": 0.0008451167377643287 + }, + { + "step": 154, + "loss": 3.780847691814415e-05, + "target_ce": 1.565593083796557e-05, + "replay_kl": 2.215254608017858e-05, + "gradient_norm": 0.0008391940500587225 + }, + { + "step": 155, + "loss": 3.75422605429776e-05, + "target_ce": 1.5576459190924652e-05, + "replay_kl": 2.1965799533063546e-05, + "gradient_norm": 0.0008333116420544684 + }, + { + "step": 156, + "loss": 3.7326964957173914e-05, + "target_ce": 1.5536725186393596e-05, + "replay_kl": 2.179024158976972e-05, + "gradient_norm": 0.0008281267364509404 + }, + { + "step": 157, + "loss": 3.707507494254969e-05, + "target_ce": 1.545725535834208e-05, + "replay_kl": 2.161781958420761e-05, + "gradient_norm": 0.0008217137074097991 + }, + { + "step": 158, + "loss": 3.678915527416393e-05, + "target_ce": 1.5338047887780704e-05, + "replay_kl": 2.145110920537263e-05, + "gradient_norm": 0.00081489427248016 + }, + { + "step": 159, + "loss": 3.6618839658331126e-05, + "target_ce": 1.5338047887780704e-05, + "replay_kl": 2.128078995156102e-05, + "gradient_norm": 0.0008103271247819066 + }, + { + "step": 160, + "loss": 3.6368637665873393e-05, + "target_ce": 1.5258580788213294e-05, + "replay_kl": 2.1110055968165398e-05, + "gradient_norm": 0.0008049878524616361 + }, + { + "step": 161, + "loss": 3.616961475927383e-05, + "target_ce": 1.5218844055198133e-05, + "replay_kl": 2.0950770704075694e-05, + "gradient_norm": 0.0007997533539310098 + }, + { + "step": 162, + "loss": 3.5969809687230736e-05, + "target_ce": 1.5179110050667077e-05, + "replay_kl": 2.0790697817574255e-05, + "gradient_norm": 0.0007946965051814914 + }, + { + "step": 163, + "loss": 3.575337177608162e-05, + "target_ce": 1.509963931312086e-05, + "replay_kl": 2.0653733372455463e-05, + "gradient_norm": 0.0007893804577179253 + }, + { + "step": 164, + "loss": 3.5555072827264667e-05, + "target_ce": 1.5059903489600401e-05, + "replay_kl": 2.0495168428169563e-05, + "gradient_norm": 0.0007840190664865077 + }, + { + "step": 165, + "loss": 3.536357689881697e-05, + "target_ce": 1.5020169485069346e-05, + "replay_kl": 2.0343406504252926e-05, + "gradient_norm": 0.0007794523262418807 + }, + { + "step": 166, + "loss": 3.512614421197213e-05, + "target_ce": 1.4940698747523129e-05, + "replay_kl": 2.0185445464449003e-05, + "gradient_norm": 0.0007737397099845111 + }, + { + "step": 167, + "loss": 3.4930839319713414e-05, + "target_ce": 1.4900964742992073e-05, + "replay_kl": 2.002987457672134e-05, + "gradient_norm": 0.0007687765755690634 + }, + { + "step": 168, + "loss": 3.4755648812279105e-05, + "target_ce": 1.4861228009976912e-05, + "replay_kl": 1.989441989280749e-05, + "gradient_norm": 0.0007648286409676075 + }, + { + "step": 169, + "loss": 3.4571265132399276e-05, + "target_ce": 1.4821492186456453e-05, + "replay_kl": 1.9749773855437525e-05, + "gradient_norm": 0.0007595840725116432 + }, + { + "step": 170, + "loss": 3.4312179195694625e-05, + "target_ce": 1.470228744437918e-05, + "replay_kl": 1.9609893570304848e-05, + "gradient_norm": 0.0007541749509982765 + }, + { + "step": 171, + "loss": 3.410193676245399e-05, + "target_ce": 1.462281488784356e-05, + "replay_kl": 1.947912278410513e-05, + "gradient_norm": 0.0007493451703339815 + }, + { + "step": 172, + "loss": 3.392535654711537e-05, + "target_ce": 1.4583079064323101e-05, + "replay_kl": 1.934227839228697e-05, + "gradient_norm": 0.0007452669669874012 + }, + { + "step": 173, + "loss": 3.369673868292011e-05, + "target_ce": 1.4503609236271586e-05, + "replay_kl": 1.919313035614323e-05, + "gradient_norm": 0.0007401551702059805 + }, + { + "step": 174, + "loss": 3.3565142075531185e-05, + "target_ce": 1.4503609236271586e-05, + "replay_kl": 1.9061531929764897e-05, + "gradient_norm": 0.0007365606143139303 + }, + { + "step": 175, + "loss": 3.335653309477493e-05, + "target_ce": 1.4424139408220071e-05, + "replay_kl": 1.8932394596049562e-05, + "gradient_norm": 0.000731544685550034 + }, + { + "step": 176, + "loss": 3.318992821732536e-05, + "target_ce": 1.4384404494194314e-05, + "replay_kl": 1.8805523723131046e-05, + "gradient_norm": 0.0007269491325132549 + }, + { + "step": 177, + "loss": 3.301788819953799e-05, + "target_ce": 1.4344669580168556e-05, + "replay_kl": 1.8673219528864138e-05, + "gradient_norm": 0.000722658762242645 + }, + { + "step": 178, + "loss": 3.285514685558155e-05, + "target_ce": 1.4304933756648097e-05, + "replay_kl": 1.8550212189438753e-05, + "gradient_norm": 0.0007179586100392044 + }, + { + "step": 179, + "loss": 3.261924211983569e-05, + "target_ce": 1.4185727195581421e-05, + "replay_kl": 1.843351492425427e-05, + "gradient_norm": 0.0007128973957151175 + }, + { + "step": 180, + "loss": 3.244953040848486e-05, + "target_ce": 1.4145992281555664e-05, + "replay_kl": 1.83035390364239e-05, + "gradient_norm": 0.0007088974234648049 + }, + { + "step": 181, + "loss": 3.229988578823395e-05, + "target_ce": 1.4106256458035205e-05, + "replay_kl": 1.8193630239693448e-05, + "gradient_norm": 0.0007045731181278825 + }, + { + "step": 182, + "loss": 3.209346687071957e-05, + "target_ce": 1.4026784810994286e-05, + "replay_kl": 1.8066682969219983e-05, + "gradient_norm": 0.0007002765196375549 + }, + { + "step": 183, + "loss": 3.1897288863547146e-05, + "target_ce": 1.3947314982942771e-05, + "replay_kl": 1.7949974790099077e-05, + "gradient_norm": 0.000695220660418272 + }, + { + "step": 184, + "loss": 3.175042729708366e-05, + "target_ce": 1.3907580978411715e-05, + "replay_kl": 1.7842845409177244e-05, + "gradient_norm": 0.0006914486875757575 + }, + { + "step": 185, + "loss": 3.163041401421651e-05, + "target_ce": 1.3907580978411715e-05, + "replay_kl": 1.77228339452995e-05, + "gradient_norm": 0.0006881187437102199 + }, + { + "step": 186, + "loss": 3.149040276184678e-05, + "target_ce": 1.3867844245396554e-05, + "replay_kl": 1.7622558516450226e-05, + "gradient_norm": 0.0006836183601990342 + }, + { + "step": 187, + "loss": 3.130115146632306e-05, + "target_ce": 1.3788373507850338e-05, + "replay_kl": 1.7512778867967427e-05, + "gradient_norm": 0.0006786801968701184 + }, + { + "step": 188, + "loss": 3.114093851763755e-05, + "target_ce": 1.3748639503319282e-05, + "replay_kl": 1.739229992381297e-05, + "gradient_norm": 0.0006753188208676875 + }, + { + "step": 189, + "loss": 3.100154935964383e-05, + "target_ce": 1.3708903679798823e-05, + "replay_kl": 1.729264658933971e-05, + "gradient_norm": 0.0006712803151458502 + }, + { + "step": 190, + "loss": 3.088563244091347e-05, + "target_ce": 1.3708903679798823e-05, + "replay_kl": 1.7176729670609348e-05, + "gradient_norm": 0.0006680261576548219 + }, + { + "step": 191, + "loss": 3.066421049879864e-05, + "target_ce": 1.3589696209237445e-05, + "replay_kl": 1.7074515199055895e-05, + "gradient_norm": 0.0006633829907514155 + }, + { + "step": 192, + "loss": 3.055711931665428e-05, + "target_ce": 1.3589696209237445e-05, + "replay_kl": 1.6967424016911536e-05, + "gradient_norm": 0.0006602541543543339 + }, + { + "step": 193, + "loss": 3.0376671929843724e-05, + "target_ce": 1.351022638118593e-05, + "replay_kl": 1.6866444639163092e-05, + "gradient_norm": 0.0006556074949912727 + }, + { + "step": 194, + "loss": 3.024460602318868e-05, + "target_ce": 1.3470492376654875e-05, + "replay_kl": 1.6774114556028508e-05, + "gradient_norm": 0.0006515131099149585 + }, + { + "step": 195, + "loss": 3.011124317708891e-05, + "target_ce": 1.3430755643639714e-05, + "replay_kl": 1.6680487533449195e-05, + "gradient_norm": 0.0006475390400737524 + }, + { + "step": 196, + "loss": 2.9962069675093517e-05, + "target_ce": 1.3391021639108658e-05, + "replay_kl": 1.657104803598486e-05, + "gradient_norm": 0.0006432065856643021 + }, + { + "step": 197, + "loss": 2.982156365760602e-05, + "target_ce": 1.3351284906093497e-05, + "replay_kl": 1.6470277842017822e-05, + "gradient_norm": 0.0006401414284482598 + }, + { + "step": 198, + "loss": 2.9598784749396145e-05, + "target_ce": 1.3232079254521523e-05, + "replay_kl": 1.6366706404369324e-05, + "gradient_norm": 0.0006352476193569601 + }, + { + "step": 199, + "loss": 2.9508260922739282e-05, + "target_ce": 1.3232079254521523e-05, + "replay_kl": 1.627618257771246e-05, + "gradient_norm": 0.0006321011460386217 + }, + { + "step": 200, + "loss": 2.9372067729127593e-05, + "target_ce": 1.3192344340495765e-05, + "replay_kl": 1.6179723388631828e-05, + "gradient_norm": 0.0006290417513810098 + }, + { + "step": 201, + "loss": 2.9280159651534632e-05, + "target_ce": 1.3192344340495765e-05, + "replay_kl": 1.6087815311038867e-05, + "gradient_norm": 0.000625580782070756 + }, + { + "step": 202, + "loss": 2.91133183054626e-05, + "target_ce": 1.3112872693454847e-05, + "replay_kl": 1.6000445612007752e-05, + "gradient_norm": 0.0006213978631421924 + }, + { + "step": 203, + "loss": 2.8935031878063455e-05, + "target_ce": 1.303340195590863e-05, + "replay_kl": 1.5901630831649527e-05, + "gradient_norm": 0.0006168630789034069 + }, + { + "step": 204, + "loss": 2.8854359698016196e-05, + "target_ce": 1.303340195590863e-05, + "replay_kl": 1.5820956832612865e-05, + "gradient_norm": 0.0006142058991827071 + }, + { + "step": 205, + "loss": 2.8677481168415397e-05, + "target_ce": 1.2953930308867712e-05, + "replay_kl": 1.5723549950052984e-05, + "gradient_norm": 0.0006101686740294099 + }, + { + "step": 206, + "loss": 2.8598078642971814e-05, + "target_ce": 1.2953930308867712e-05, + "replay_kl": 1.5644149243598804e-05, + "gradient_norm": 0.000607436872087419 + }, + { + "step": 207, + "loss": 2.8380627554724924e-05, + "target_ce": 1.2834723747801036e-05, + "replay_kl": 1.554590380692389e-05, + "gradient_norm": 0.0006033328245393932 + }, + { + "step": 208, + "loss": 2.82607797998935e-05, + "target_ce": 1.2794988833775278e-05, + "replay_kl": 1.546579005662352e-05, + "gradient_norm": 0.0005996677791699767 + }, + { + "step": 209, + "loss": 2.8139067580923438e-05, + "target_ce": 1.2755253010254819e-05, + "replay_kl": 1.538381548016332e-05, + "gradient_norm": 0.0005964252632111311 + }, + { + "step": 210, + "loss": 2.806015982059762e-05, + "target_ce": 1.2755253010254819e-05, + "replay_kl": 1.53049077198375e-05, + "gradient_norm": 0.0005937537061981857 + }, + { + "step": 211, + "loss": 2.7902955480385572e-05, + "target_ce": 1.2675783182203304e-05, + "replay_kl": 1.5227171388687566e-05, + "gradient_norm": 0.0005894037894904613 + }, + { + "step": 212, + "loss": 2.7823896743939258e-05, + "target_ce": 1.2675783182203304e-05, + "replay_kl": 1.5148113561735954e-05, + "gradient_norm": 0.0005869323504157364 + }, + { + "step": 213, + "loss": 2.770853097899817e-05, + "target_ce": 1.2636047358682845e-05, + "replay_kl": 1.5072484529810026e-05, + "gradient_norm": 0.0005831146845594049 + }, + { + "step": 214, + "loss": 2.7592610422289e-05, + "target_ce": 1.2596312444657087e-05, + "replay_kl": 1.499629706813721e-05, + "gradient_norm": 0.0005801248480565846 + }, + { + "step": 215, + "loss": 2.7394333301344886e-05, + "target_ce": 1.2477104064601008e-05, + "replay_kl": 1.4917229236743879e-05, + "gradient_norm": 0.0005763122462667525 + }, + { + "step": 216, + "loss": 2.7320293156662956e-05, + "target_ce": 1.2477104064601008e-05, + "replay_kl": 1.4843189092061948e-05, + "gradient_norm": 0.000574065197724849 + }, + { + "step": 217, + "loss": 2.7212525310460478e-05, + "target_ce": 1.243736915057525e-05, + "replay_kl": 1.4775156159885228e-05, + "gradient_norm": 0.0005705542862415314 + }, + { + "step": 218, + "loss": 2.7130896341986954e-05, + "target_ce": 1.243736915057525e-05, + "replay_kl": 1.4693527191411704e-05, + "gradient_norm": 0.0005680204485543072 + }, + { + "step": 219, + "loss": 2.6928137231152505e-05, + "target_ce": 1.2318163499003276e-05, + "replay_kl": 1.4609972822654527e-05, + "gradient_norm": 0.000562859873753041 + }, + { + "step": 220, + "loss": 2.6849389541894197e-05, + "target_ce": 1.2318163499003276e-05, + "replay_kl": 1.453122513339622e-05, + "gradient_norm": 0.0005608531646430492 + }, + { + "step": 221, + "loss": 2.6754722057376057e-05, + "target_ce": 1.2278428584977519e-05, + "replay_kl": 1.4476292562903836e-05, + "gradient_norm": 0.0005580699653364718 + }, + { + "step": 222, + "loss": 2.668145862116944e-05, + "target_ce": 1.2278428584977519e-05, + "replay_kl": 1.4403030036191922e-05, + "gradient_norm": 0.0005558192497119308 + }, + { + "step": 223, + "loss": 2.6566467568045482e-05, + "target_ce": 1.223869276145706e-05, + "replay_kl": 1.4327775716083124e-05, + "gradient_norm": 0.0005520019331015646 + }, + { + "step": 224, + "loss": 2.645226959430147e-05, + "target_ce": 1.2198957847431302e-05, + "replay_kl": 1.4253311746870168e-05, + "gradient_norm": 0.0005491921911016107 + }, + { + "step": 225, + "loss": 2.6352925488026813e-05, + "target_ce": 1.2159221114416141e-05, + "replay_kl": 1.4193705283105373e-05, + "gradient_norm": 0.0005470234318636358 + }, + { + "step": 226, + "loss": 2.6249588700011373e-05, + "target_ce": 1.2119486200390384e-05, + "replay_kl": 1.4130101590126287e-05, + "gradient_norm": 0.0005435530329123139 + }, + { + "step": 227, + "loss": 2.6178304324275814e-05, + "target_ce": 1.2119486200390384e-05, + "replay_kl": 1.405881812388543e-05, + "gradient_norm": 0.000541173794772476 + }, + { + "step": 228, + "loss": 2.6062349206767976e-05, + "target_ce": 1.2079751286364626e-05, + "replay_kl": 1.3982598829898052e-05, + "gradient_norm": 0.0005381937953643501 + }, + { + "step": 229, + "loss": 2.5954112061299384e-05, + "target_ce": 1.2040015462844167e-05, + "replay_kl": 1.3914095688960515e-05, + "gradient_norm": 0.0005347297410480678 + }, + { + "step": 230, + "loss": 2.5840137823252007e-05, + "target_ce": 1.200028054881841e-05, + "replay_kl": 1.3839856364938896e-05, + "gradient_norm": 0.0005321195349097252 + }, + { + "step": 231, + "loss": 2.578107887529768e-05, + "target_ce": 1.200028054881841e-05, + "replay_kl": 1.378079741698457e-05, + "gradient_norm": 0.0005297655588947237 + }, + { + "step": 232, + "loss": 2.5643847038736567e-05, + "target_ce": 1.1920809811272193e-05, + "replay_kl": 1.3723038136959076e-05, + "gradient_norm": 0.0005263945204205811 + }, + { + "step": 233, + "loss": 2.5530152925057337e-05, + "target_ce": 1.1881074897246435e-05, + "replay_kl": 1.3649078027810901e-05, + "gradient_norm": 0.0005229932139627635 + }, + { + "step": 234, + "loss": 2.5423167244298384e-05, + "target_ce": 1.1841339983220678e-05, + "replay_kl": 1.3581826351583004e-05, + "gradient_norm": 0.0005199152510613203 + }, + { + "step": 235, + "loss": 2.535967723815702e-05, + "target_ce": 1.1841339983220678e-05, + "replay_kl": 1.351833634544164e-05, + "gradient_norm": 0.0005179567961022258 + }, + { + "step": 236, + "loss": 2.5259210815420374e-05, + "target_ce": 1.1801604159700219e-05, + "replay_kl": 1.3457606655720156e-05, + "gradient_norm": 0.0005149971111677587 + }, + { + "step": 237, + "loss": 2.516592212487012e-05, + "target_ce": 1.176186833617976e-05, + "replay_kl": 1.340405287919566e-05, + "gradient_norm": 0.0005128505290485919 + }, + { + "step": 238, + "loss": 2.5016268409672193e-05, + "target_ce": 1.1682396689138841e-05, + "replay_kl": 1.3333871720533352e-05, + "gradient_norm": 0.0005091518978588283 + }, + { + "step": 239, + "loss": 2.49240365519654e-05, + "target_ce": 1.1642660865618382e-05, + "replay_kl": 1.3281374776852317e-05, + "gradient_norm": 0.0005062163691036403 + }, + { + "step": 240, + "loss": 2.4811590265017003e-05, + "target_ce": 1.1602925951592624e-05, + "replay_kl": 1.3208664313424379e-05, + "gradient_norm": 0.0005037125665694475 + }, + { + "step": 241, + "loss": 2.4725024559302256e-05, + "target_ce": 1.1563191037566867e-05, + "replay_kl": 1.316183443123009e-05, + "gradient_norm": 0.0005004456616006792 + }, + { + "step": 242, + "loss": 2.4623199351481162e-05, + "target_ce": 1.1523454304551706e-05, + "replay_kl": 1.3099745046929456e-05, + "gradient_norm": 0.0004984462866559625 + }, + { + "step": 243, + "loss": 2.449152452754788e-05, + "target_ce": 1.1443982657510787e-05, + "replay_kl": 1.3047540960542392e-05, + "gradient_norm": 0.0004951618611812592 + }, + { + "step": 244, + "loss": 2.44246402871795e-05, + "target_ce": 1.1443982657510787e-05, + "replay_kl": 1.2980657629668713e-05, + "gradient_norm": 0.0004928465932607651 + }, + { + "step": 245, + "loss": 2.4329816369572654e-05, + "target_ce": 1.140424774348503e-05, + "replay_kl": 1.2925567716592923e-05, + "gradient_norm": 0.0004903354565612972 + }, + { + "step": 246, + "loss": 2.423188925604336e-05, + "target_ce": 1.136451191996457e-05, + "replay_kl": 1.2867376426584087e-05, + "gradient_norm": 0.00048779224744066596 + }, + { + "step": 247, + "loss": 2.4162985937437043e-05, + "target_ce": 1.136451191996457e-05, + "replay_kl": 1.2798474926967174e-05, + "gradient_norm": 0.00048584441537968814 + }, + { + "step": 248, + "loss": 2.403367034276016e-05, + "target_ce": 1.1285042091913056e-05, + "replay_kl": 1.2748627341352403e-05, + "gradient_norm": 0.00048248833627440035 + }, + { + "step": 249, + "loss": 2.3968957975739613e-05, + "target_ce": 1.1285042091913056e-05, + "replay_kl": 1.2683914974331856e-05, + "gradient_norm": 0.00048088410403579473 + }, + { + "step": 250, + "loss": 2.3864842660259455e-05, + "target_ce": 1.1245305358897895e-05, + "replay_kl": 1.261953730136156e-05, + "gradient_norm": 0.00047890489804558456 + }, + { + "step": 251, + "loss": 2.3775792215019464e-05, + "target_ce": 1.1205568625882734e-05, + "replay_kl": 1.2570223589136731e-05, + "gradient_norm": 0.00047603121493011713 + }, + { + "step": 252, + "loss": 2.3678878278587945e-05, + "target_ce": 1.1165833711856976e-05, + "replay_kl": 1.2513044566730969e-05, + "gradient_norm": 0.00047360503231175244 + }, + { + "step": 253, + "loss": 2.362301165703684e-05, + "target_ce": 1.1165833711856976e-05, + "replay_kl": 1.2457177945179865e-05, + "gradient_norm": 0.0004718097916338593 + }, + { + "step": 254, + "loss": 2.3453951143892482e-05, + "target_ce": 1.10466271507903e-05, + "replay_kl": 1.240732308360748e-05, + "gradient_norm": 0.0004683679435402155 + }, + { + "step": 255, + "loss": 2.340804348932579e-05, + "target_ce": 1.10466271507903e-05, + "replay_kl": 1.236141542904079e-05, + "gradient_norm": 0.00046651618322357535 + }, + { + "step": 256, + "loss": 2.3313492420129478e-05, + "target_ce": 1.1006891327269841e-05, + "replay_kl": 1.2306601092859637e-05, + "gradient_norm": 0.0004635925870388746 + }, + { + "step": 257, + "loss": 2.3257820430444553e-05, + "target_ce": 1.1006891327269841e-05, + "replay_kl": 1.225092819368001e-05, + "gradient_norm": 0.00046173669397830963 + }, + { + "step": 258, + "loss": 2.3205095203593373e-05, + "target_ce": 1.1006891327269841e-05, + "replay_kl": 1.2198204785818234e-05, + "gradient_norm": 0.00046009354991838336 + }, + { + "step": 259, + "loss": 2.3115993826650083e-05, + "target_ce": 1.0967156413244084e-05, + "replay_kl": 1.2148836503911298e-05, + "gradient_norm": 0.00045789816067554057 + }, + { + "step": 260, + "loss": 2.2981947040534578e-05, + "target_ce": 1.0887684766203165e-05, + "replay_kl": 1.2094262274331413e-05, + "gradient_norm": 0.0004549627483356744 + }, + { + "step": 261, + "loss": 2.292529279657174e-05, + "target_ce": 1.0887684766203165e-05, + "replay_kl": 1.2037608030368574e-05, + "gradient_norm": 0.00045335161848925054 + }, + { + "step": 262, + "loss": 2.2810929294792004e-05, + "target_ce": 1.0808213119162247e-05, + "replay_kl": 1.2002716175629757e-05, + "gradient_norm": 0.0004509881546255201 + }, + { + "step": 263, + "loss": 2.275186670885887e-05, + "target_ce": 1.0808213119162247e-05, + "replay_kl": 1.1943653589696623e-05, + "gradient_norm": 0.00044932711170986295 + }, + { + "step": 264, + "loss": 2.271164885314647e-05, + "target_ce": 1.0808213119162247e-05, + "replay_kl": 1.1903435733984224e-05, + "gradient_norm": 0.0004474154848139733 + }, + { + "step": 265, + "loss": 2.2619215087615885e-05, + "target_ce": 1.0768478205136489e-05, + "replay_kl": 1.1850736882479396e-05, + "gradient_norm": 0.000444652047008276 + }, + { + "step": 266, + "loss": 2.2542903025168926e-05, + "target_ce": 1.0728741472121328e-05, + "replay_kl": 1.1814161553047597e-05, + "gradient_norm": 0.00044304950279183686 + }, + { + "step": 267, + "loss": 2.2487136448035017e-05, + "target_ce": 1.0728741472121328e-05, + "replay_kl": 1.1758394066418987e-05, + "gradient_norm": 0.00044109905138611794 + }, + { + "step": 268, + "loss": 2.23693969019223e-05, + "target_ce": 1.0649270734575111e-05, + "replay_kl": 1.172012707684189e-05, + "gradient_norm": 0.00043814675882458687 + }, + { + "step": 269, + "loss": 2.2280370103544556e-05, + "target_ce": 1.0609534911054652e-05, + "replay_kl": 1.1670835192489903e-05, + "gradient_norm": 0.0004363826592452824 + }, + { + "step": 270, + "loss": 2.2151409211801365e-05, + "target_ce": 1.0530063264013734e-05, + "replay_kl": 1.1621346857282333e-05, + "gradient_norm": 0.00043374174856580794 + }, + { + "step": 271, + "loss": 2.2117814296507277e-05, + "target_ce": 1.0530063264013734e-05, + "replay_kl": 1.1587751032493543e-05, + "gradient_norm": 0.00043198978528380394 + }, + { + "step": 272, + "loss": 2.2027557861292735e-05, + "target_ce": 1.0490327440493274e-05, + "replay_kl": 1.1537231330294162e-05, + "gradient_norm": 0.0004301638691686094 + }, + { + "step": 273, + "loss": 2.1977797587169334e-05, + "target_ce": 1.0490327440493274e-05, + "replay_kl": 1.1487469237181358e-05, + "gradient_norm": 0.00042866647709161043 + }, + { + "step": 274, + "loss": 2.1891082724323496e-05, + "target_ce": 1.0450591616972815e-05, + "replay_kl": 1.1440492016845383e-05, + "gradient_norm": 0.0004262106667738408 + }, + { + "step": 275, + "loss": 2.1855379600310698e-05, + "target_ce": 1.0450591616972815e-05, + "replay_kl": 1.1404788892832585e-05, + "gradient_norm": 0.00042459889664314687 + }, + { + "step": 276, + "loss": 2.172889799112454e-05, + "target_ce": 1.0371120879426599e-05, + "replay_kl": 1.1357777111697942e-05, + "gradient_norm": 0.00042152171954512596 + }, + { + "step": 277, + "loss": 2.1640978957293555e-05, + "target_ce": 1.0331384146411438e-05, + "replay_kl": 1.1309593901387416e-05, + "gradient_norm": 0.00041946745477616787 + }, + { + "step": 278, + "loss": 2.159307405236177e-05, + "target_ce": 1.0331384146411438e-05, + "replay_kl": 1.1261690815445036e-05, + "gradient_norm": 0.00041783234337344766 + }, + { + "step": 279, + "loss": 2.147437771782279e-05, + "target_ce": 1.0251914318359923e-05, + "replay_kl": 1.1222462489968166e-05, + "gradient_norm": 0.00041477737249806523 + }, + { + "step": 280, + "loss": 2.144189056707546e-05, + "target_ce": 1.0251914318359923e-05, + "replay_kl": 1.118997715821024e-05, + "gradient_norm": 0.00041319604497402906 + }, + { + "step": 281, + "loss": 2.138389572792221e-05, + "target_ce": 1.0251914318359923e-05, + "replay_kl": 1.1131981409562286e-05, + "gradient_norm": 0.00041180194239132106 + }, + { + "step": 282, + "loss": 2.1307909264578484e-05, + "target_ce": 1.0212177585344762e-05, + "replay_kl": 1.1095731679233722e-05, + "gradient_norm": 0.00040938076563179493 + }, + { + "step": 283, + "loss": 2.1261170331854373e-05, + "target_ce": 1.0212177585344762e-05, + "replay_kl": 1.1048992746509612e-05, + "gradient_norm": 0.00040795200038701296 + }, + { + "step": 284, + "loss": 2.122480873367749e-05, + "target_ce": 1.0212177585344762e-05, + "replay_kl": 1.101263114833273e-05, + "gradient_norm": 0.00040658810758031905 + }, + { + "step": 285, + "loss": 2.110297282342799e-05, + "target_ce": 1.0132706847798545e-05, + "replay_kl": 1.0970265975629445e-05, + "gradient_norm": 0.00040391460061073303 + }, + { + "step": 286, + "loss": 2.1041021682322025e-05, + "target_ce": 1.0092971024278086e-05, + "replay_kl": 1.0948049748549238e-05, + "gradient_norm": 0.0004022741341032088 + }, + { + "step": 287, + "loss": 2.098531331284903e-05, + "target_ce": 1.0092971024278086e-05, + "replay_kl": 1.0892341379076242e-05, + "gradient_norm": 0.00040100744809024036 + }, + { + "step": 288, + "loss": 2.0955681975465268e-05, + "target_ce": 1.0092971024278086e-05, + "replay_kl": 1.086271004169248e-05, + "gradient_norm": 0.00039930985076352954 + }, + { + "step": 289, + "loss": 2.0868796127615497e-05, + "target_ce": 1.0053235200757626e-05, + "replay_kl": 1.081556092685787e-05, + "gradient_norm": 0.00039699338958598673 + }, + { + "step": 290, + "loss": 2.0818650227738544e-05, + "target_ce": 1.0053235200757626e-05, + "replay_kl": 1.0765414117486216e-05, + "gradient_norm": 0.000395849667256698 + }, + { + "step": 291, + "loss": 2.0777955796802416e-05, + "target_ce": 1.0053235200757626e-05, + "replay_kl": 1.072472059604479e-05, + "gradient_norm": 0.0003941681352443993 + }, + { + "step": 292, + "loss": 2.0698969819932245e-05, + "target_ce": 1.0013500286731869e-05, + "replay_kl": 1.0685469533200376e-05, + "gradient_norm": 0.0003920020826626569 + }, + { + "step": 293, + "loss": 2.0627958292607218e-05, + "target_ce": 9.973763553716708e-06, + "replay_kl": 1.0654193829395808e-05, + "gradient_norm": 0.00039028871105983853 + }, + { + "step": 294, + "loss": 2.0550083718262613e-05, + "target_ce": 9.93402863969095e-06, + "replay_kl": 1.061605416907696e-05, + "gradient_norm": 0.00038898680941201746 + }, + { + "step": 295, + "loss": 2.0431318262126297e-05, + "target_ce": 9.854556992650032e-06, + "replay_kl": 1.0576761269476265e-05, + "gradient_norm": 0.0003861919685732573 + }, + { + "step": 296, + "loss": 2.0400722860358655e-05, + "target_ce": 9.854556992650032e-06, + "replay_kl": 1.0546164958213922e-05, + "gradient_norm": 0.00038483593380078673 + }, + { + "step": 297, + "loss": 2.036495425272733e-05, + "target_ce": 9.854556992650032e-06, + "replay_kl": 1.0510397260077298e-05, + "gradient_norm": 0.00038344995118677616 + }, + { + "step": 298, + "loss": 2.0335117369540967e-05, + "target_ce": 9.854556992650032e-06, + "replay_kl": 1.0480560376890935e-05, + "gradient_norm": 0.0003824874584097415 + }, + { + "step": 299, + "loss": 2.0250145098543726e-05, + "target_ce": 9.814822078624275e-06, + "replay_kl": 1.0435323019919451e-05, + "gradient_norm": 0.00037969453842379153 + }, + { + "step": 300, + "loss": 2.0179399143671617e-05, + "target_ce": 9.775086255103815e-06, + "replay_kl": 1.0404312888567802e-05, + "gradient_norm": 0.00037789266207255423 + }, + { + "step": 301, + "loss": 2.0145427697570994e-05, + "target_ce": 9.775086255103815e-06, + "replay_kl": 1.0370342351961881e-05, + "gradient_norm": 0.00037659017834812403 + }, + { + "step": 302, + "loss": 2.0026061974931508e-05, + "target_ce": 9.695613698568195e-06, + "replay_kl": 1.0330448276363313e-05, + "gradient_norm": 0.0003745050053112209 + }, + { + "step": 303, + "loss": 1.9988683561678044e-05, + "target_ce": 9.695613698568195e-06, + "replay_kl": 1.029306986310985e-05, + "gradient_norm": 0.00037337373942136765 + }, + { + "step": 304, + "loss": 1.9951286958530545e-05, + "target_ce": 9.695613698568195e-06, + "replay_kl": 1.0255672350467648e-05, + "gradient_norm": 0.00037206904380582273 + }, + { + "step": 305, + "loss": 1.983884794753976e-05, + "target_ce": 9.616142961021978e-06, + "replay_kl": 1.0222705896012485e-05, + "gradient_norm": 0.00036919547710567713 + }, + { + "step": 306, + "loss": 1.981047898880206e-05, + "target_ce": 9.616142961021978e-06, + "replay_kl": 1.0194336937274784e-05, + "gradient_norm": 0.00036822454421781003 + }, + { + "step": 307, + "loss": 1.9776933186221868e-05, + "target_ce": 9.616142961021978e-06, + "replay_kl": 1.0160791134694591e-05, + "gradient_norm": 0.0003669905418064445 + }, + { + "step": 308, + "loss": 1.9703307771123946e-05, + "target_ce": 9.57640713750152e-06, + "replay_kl": 1.0126901543117128e-05, + "gradient_norm": 0.0003650802536867559 + }, + { + "step": 309, + "loss": 1.9620634702732787e-05, + "target_ce": 9.53667131398106e-06, + "replay_kl": 1.0083962479257025e-05, + "gradient_norm": 0.00036316743353381753 + }, + { + "step": 310, + "loss": 1.958804568857886e-05, + "target_ce": 9.53667131398106e-06, + "replay_kl": 1.00513752840925e-05, + "gradient_norm": 0.000362147344276309 + }, + { + "step": 311, + "loss": 1.9553843230823986e-05, + "target_ce": 9.53667131398106e-06, + "replay_kl": 1.0017171916842926e-05, + "gradient_norm": 0.0003606608370319009 + }, + { + "step": 312, + "loss": 1.9528761185938492e-05, + "target_ce": 9.53667131398106e-06, + "replay_kl": 9.992090781452134e-06, + "gradient_norm": 0.0003595011366996914 + }, + { + "step": 313, + "loss": 1.9454528228379786e-05, + "target_ce": 9.496936399955302e-06, + "replay_kl": 9.957590918929782e-06, + "gradient_norm": 0.00035721782478503883 + }, + { + "step": 314, + "loss": 1.9415299902902916e-05, + "target_ce": 9.496936399955302e-06, + "replay_kl": 9.918362593452912e-06, + "gradient_norm": 0.00035612136707641184 + }, + { + "step": 315, + "loss": 1.9377142962184735e-05, + "target_ce": 9.496936399955302e-06, + "replay_kl": 9.880206562229432e-06, + "gradient_norm": 0.0003549569519236684 + }, + { + "step": 316, + "loss": 1.931921360665001e-05, + "target_ce": 9.457199666940141e-06, + "replay_kl": 9.86201484920457e-06, + "gradient_norm": 0.00035361439222469926 + }, + { + "step": 317, + "loss": 1.9194558262825012e-05, + "target_ce": 9.377728019899223e-06, + "replay_kl": 9.816831152420491e-06, + "gradient_norm": 0.00035138349630869925 + }, + { + "step": 318, + "loss": 1.916591645567678e-05, + "target_ce": 9.377728019899223e-06, + "replay_kl": 9.788189345272258e-06, + "gradient_norm": 0.000350284535670653 + }, + { + "step": 319, + "loss": 1.9130198779748753e-05, + "target_ce": 9.377728019899223e-06, + "replay_kl": 9.752471669344231e-06, + "gradient_norm": 0.00034901266917586327 + }, + { + "step": 320, + "loss": 1.9087867258349434e-05, + "target_ce": 9.377728019899223e-06, + "replay_kl": 9.710138328955509e-06, + "gradient_norm": 0.00034775343374349177 + }, + { + "step": 321, + "loss": 1.9033090211451054e-05, + "target_ce": 9.337993105873466e-06, + "replay_kl": 9.69509801507229e-06, + "gradient_norm": 0.00034584623062983155 + }, + { + "step": 322, + "loss": 1.8994669517269358e-05, + "target_ce": 9.337993105873466e-06, + "replay_kl": 9.656677320890594e-06, + "gradient_norm": 0.00034467768273316324 + }, + { + "step": 323, + "loss": 1.8963584807352163e-05, + "target_ce": 9.337993105873466e-06, + "replay_kl": 9.625591701478697e-06, + "gradient_norm": 0.00034354705712758005 + }, + { + "step": 324, + "loss": 1.8928538338514045e-05, + "target_ce": 9.337993105873466e-06, + "replay_kl": 9.590546142135281e-06, + "gradient_norm": 0.0003423370944801718 + }, + { + "step": 325, + "loss": 1.882473225123249e-05, + "target_ce": 9.258521458832547e-06, + "replay_kl": 9.566209882905241e-06, + "gradient_norm": 0.0003401419089641422 + }, + { + "step": 326, + "loss": 1.8784803614835255e-05, + "target_ce": 9.258521458832547e-06, + "replay_kl": 9.526282156002708e-06, + "gradient_norm": 0.00033900016569532454 + }, + { + "step": 327, + "loss": 1.8711896700551733e-05, + "target_ce": 9.21878654480679e-06, + "replay_kl": 9.493109246250242e-06, + "gradient_norm": 0.0003372397623024881 + }, + { + "step": 328, + "loss": 1.8639726476976648e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 9.460674846195616e-06, + "gradient_norm": 0.0003355695225764066 + }, + { + "step": 329, + "loss": 1.860891279648058e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 9.429861165699549e-06, + "gradient_norm": 0.0003347426245454699 + }, + { + "step": 330, + "loss": 1.8591304979054257e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 9.412253348273225e-06, + "gradient_norm": 0.0003336971567478031 + }, + { + "step": 331, + "loss": 1.855624941526912e-05, + "target_ce": 9.17905072128633e-06, + "replay_kl": 9.377199603477493e-06, + "gradient_norm": 0.000332721509039402 + }, + { + "step": 332, + "loss": 1.8482412997400388e-05, + "target_ce": 9.139314897765871e-06, + "replay_kl": 9.343097190139815e-06, + "gradient_norm": 0.0003306661965325475 + }, + { + "step": 333, + "loss": 1.840800541685894e-05, + "target_ce": 9.099579074245412e-06, + "replay_kl": 9.308427252108231e-06, + "gradient_norm": 0.0003296535578556359 + }, + { + "step": 334, + "loss": 1.834986687754281e-05, + "target_ce": 9.059843250724953e-06, + "replay_kl": 9.290024536312558e-06, + "gradient_norm": 0.00032848678529262543 + }, + { + "step": 335, + "loss": 1.8315224224352278e-05, + "target_ce": 9.059843250724953e-06, + "replay_kl": 9.255380973627325e-06, + "gradient_norm": 0.0003273754846304655 + }, + { + "step": 336, + "loss": 1.8289316358277574e-05, + "target_ce": 9.059843250724953e-06, + "replay_kl": 9.22947219805792e-06, + "gradient_norm": 0.00032662489684298635 + }, + { + "step": 337, + "loss": 1.821351543185301e-05, + "target_ce": 9.020107427204493e-06, + "replay_kl": 9.19340891414322e-06, + "gradient_norm": 0.0003246061969548464 + }, + { + "step": 338, + "loss": 1.818402233766392e-05, + "target_ce": 9.020107427204493e-06, + "replay_kl": 9.163915819954127e-06, + "gradient_norm": 0.00032369644031859934 + }, + { + "step": 339, + "loss": 1.816708936530631e-05, + "target_ce": 9.020107427204493e-06, + "replay_kl": 9.146981938101817e-06, + "gradient_norm": 0.0003225168620701879 + }, + { + "step": 340, + "loss": 1.8099341104971245e-05, + "target_ce": 8.980371603684034e-06, + "replay_kl": 9.118970410781913e-06, + "gradient_norm": 0.0003211860894225538 + }, + { + "step": 341, + "loss": 1.8029611965175718e-05, + "target_ce": 8.940635780163575e-06, + "replay_kl": 9.088975275517441e-06, + "gradient_norm": 0.0003195147728547454 + }, + { + "step": 342, + "loss": 1.7996477254200727e-05, + "target_ce": 8.940635780163575e-06, + "replay_kl": 9.055842383531854e-06, + "gradient_norm": 0.0003182503569405526 + }, + { + "step": 343, + "loss": 1.797006552806124e-05, + "target_ce": 8.940635780163575e-06, + "replay_kl": 9.029429747897666e-06, + "gradient_norm": 0.0003174251178279519 + }, + { + "step": 344, + "loss": 1.7896905774250627e-05, + "target_ce": 8.900899956643116e-06, + "replay_kl": 8.996004908112809e-06, + "gradient_norm": 0.00031570918508805335 + }, + { + "step": 345, + "loss": 1.7825081158662215e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 8.963916116044857e-06, + "gradient_norm": 0.0003141439228784293 + }, + { + "step": 346, + "loss": 1.780125603545457e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 8.940091902331915e-06, + "gradient_norm": 0.0003132788697257638 + }, + { + "step": 347, + "loss": 1.7774305888451636e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 8.913140845834278e-06, + "gradient_norm": 0.00031211410532705486 + }, + { + "step": 348, + "loss": 1.774705742718652e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 8.88589238456916e-06, + "gradient_norm": 0.0003112231206614524 + }, + { + "step": 349, + "loss": 1.7723941709846258e-05, + "target_ce": 8.861164133122656e-06, + "replay_kl": 8.8627766672289e-06, + "gradient_norm": 0.0003102901391685009 + }, + { + "step": 350, + "loss": 1.7652953829383478e-05, + "target_ce": 8.821428309602197e-06, + "replay_kl": 8.831524610286579e-06, + "gradient_norm": 0.00030828631133772433 + }, + { + "step": 351, + "loss": 1.7623937310418114e-05, + "target_ce": 8.821428309602197e-06, + "replay_kl": 8.802509910310619e-06, + "gradient_norm": 0.0003073031548410654 + }, + { + "step": 352, + "loss": 1.760117811500095e-05, + "target_ce": 8.821428309602197e-06, + "replay_kl": 8.779750714893453e-06, + "gradient_norm": 0.00030656959279440343 + }, + { + "step": 353, + "loss": 1.7533198843011633e-05, + "target_ce": 8.781692486081738e-06, + "replay_kl": 8.751505447435193e-06, + "gradient_norm": 0.00030529574723914266 + }, + { + "step": 354, + "loss": 1.7429914805688895e-05, + "target_ce": 8.702221748535521e-06, + "replay_kl": 8.727693057153374e-06, + "gradient_norm": 0.0003031816449947655 + }, + { + "step": 355, + "loss": 1.7424241377739236e-05, + "target_ce": 8.702221748535521e-06, + "replay_kl": 8.722018719709013e-06, + "gradient_norm": 0.00030220410553738475 + }, + { + "step": 356, + "loss": 1.7377118638250977e-05, + "target_ce": 8.702221748535521e-06, + "replay_kl": 8.674896889715455e-06, + "gradient_norm": 0.0003012533998116851 + }, + { + "step": 357, + "loss": 1.7356902390019968e-05, + "target_ce": 8.702221748535521e-06, + "replay_kl": 8.654680641484447e-06, + "gradient_norm": 0.00030049277120269835 + }, + { + "step": 358, + "loss": 1.7335232769255526e-05, + "target_ce": 8.702221748535521e-06, + "replay_kl": 8.633011020720005e-06, + "gradient_norm": 0.00029958001687191427 + }, + { + "step": 359, + "loss": 1.726545815472491e-05, + "target_ce": 8.662485925015062e-06, + "replay_kl": 8.602972229709849e-06, + "gradient_norm": 0.0002977604162879288 + }, + { + "step": 360, + "loss": 1.724506182654295e-05, + "target_ce": 8.662485925015062e-06, + "replay_kl": 8.582575901527889e-06, + "gradient_norm": 0.000296693091513589 + }, + { + "step": 361, + "loss": 1.7224061593879014e-05, + "target_ce": 8.662485925015062e-06, + "replay_kl": 8.561576578358654e-06, + "gradient_norm": 0.00029608223121613264 + }, + { + "step": 362, + "loss": 1.715539110591635e-05, + "target_ce": 8.622749191999901e-06, + "replay_kl": 8.532642823411152e-06, + "gradient_norm": 0.0002951212809421122 + }, + { + "step": 363, + "loss": 1.7139249393949285e-05, + "target_ce": 8.622749191999901e-06, + "replay_kl": 8.516499292454682e-06, + "gradient_norm": 0.0002942679275292903 + }, + { + "step": 364, + "loss": 1.699416316114366e-05, + "target_ce": 8.503541721438523e-06, + "replay_kl": 8.490621439705137e-06, + "gradient_norm": 0.0002922839194070548 + }, + { + "step": 365, + "loss": 1.6969173884717748e-05, + "target_ce": 8.503541721438523e-06, + "replay_kl": 8.465633072773926e-06, + "gradient_norm": 0.00029155390802770853 + }, + { + "step": 366, + "loss": 1.694628008408472e-05, + "target_ce": 8.503541721438523e-06, + "replay_kl": 8.442737453151494e-06, + "gradient_norm": 0.0002909770410042256 + }, + { + "step": 367, + "loss": 1.686406358203385e-05, + "target_ce": 8.463805897918064e-06, + "replay_kl": 8.400257684115786e-06, + "gradient_norm": 0.0002893599739763886 + }, + { + "step": 368, + "loss": 1.6807207430247217e-05, + "target_ce": 8.424070074397605e-06, + "replay_kl": 8.383138265344314e-06, + "gradient_norm": 0.00028846849454566836 + }, + { + "step": 369, + "loss": 1.675355451880023e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 8.369219358428381e-06, + "gradient_norm": 0.0002871190954465419 + }, + { + "step": 370, + "loss": 1.6720834537409246e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 8.3365002865321e-06, + "gradient_norm": 0.0002862263936549425 + }, + { + "step": 371, + "loss": 1.669145240157377e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 8.307118150696624e-06, + "gradient_norm": 0.000285233196336776 + }, + { + "step": 372, + "loss": 1.6669007891323417e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 8.284673640446272e-06, + "gradient_norm": 0.0002843526308424771 + }, + { + "step": 373, + "loss": 1.6651702026138082e-05, + "target_ce": 8.384334250877146e-06, + "replay_kl": 8.267366865766235e-06, + "gradient_norm": 0.0002835524210240692 + }, + { + "step": 374, + "loss": 1.6581012459937483e-05, + "target_ce": 8.344598427356686e-06, + "replay_kl": 8.236414942075498e-06, + "gradient_norm": 0.00028196972562000155 + }, + { + "step": 375, + "loss": 1.6566598787903786e-05, + "target_ce": 8.344598427356686e-06, + "replay_kl": 8.221999451052397e-06, + "gradient_norm": 0.000281070388155058 + }, + { + "step": 376, + "loss": 1.6494268493261188e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 8.18940497993026e-06, + "gradient_norm": 0.0002800051588565111 + }, + { + "step": 377, + "loss": 1.6471109120175242e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 8.166247425833717e-06, + "gradient_norm": 0.00027890477213077247 + }, + { + "step": 378, + "loss": 1.6455604054499418e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 8.150740541168489e-06, + "gradient_norm": 0.00027831492479890585 + }, + { + "step": 379, + "loss": 1.6421647160314023e-05, + "target_ce": 8.304862603836227e-06, + "replay_kl": 8.116783646983095e-06, + "gradient_norm": 0.0002777510671876371 + }, + { + "step": 380, + "loss": 1.6354482795577496e-05, + "target_ce": 8.265126780315768e-06, + "replay_kl": 8.089356015261728e-06, + "gradient_norm": 0.0002758651098702103 + }, + { + "step": 381, + "loss": 1.6302352378261276e-05, + "target_ce": 8.225390956795309e-06, + "replay_kl": 8.076961421465967e-06, + "gradient_norm": 0.00027497924747876823 + }, + { + "step": 382, + "loss": 1.6242431229329668e-05, + "target_ce": 8.185654223780148e-06, + "replay_kl": 8.05677700554952e-06, + "gradient_norm": 0.0002743308723438531 + }, + { + "step": 383, + "loss": 1.6222715203184634e-05, + "target_ce": 8.185654223780148e-06, + "replay_kl": 8.037060069909785e-06, + "gradient_norm": 0.0002735894522629678 + }, + { + "step": 384, + "loss": 1.6157817299244925e-05, + "target_ce": 8.145918400259688e-06, + "replay_kl": 8.011898898985237e-06, + "gradient_norm": 0.00027243836666457355 + }, + { + "step": 385, + "loss": 1.60985546244774e-05, + "target_ce": 8.10618257673923e-06, + "replay_kl": 7.992372047738172e-06, + "gradient_norm": 0.0002708769461605698 + }, + { + "step": 386, + "loss": 1.6072364815045148e-05, + "target_ce": 8.10618257673923e-06, + "replay_kl": 7.966182238305919e-06, + "gradient_norm": 0.00027030278579331934 + }, + { + "step": 387, + "loss": 1.6048226825660095e-05, + "target_ce": 8.10618257673923e-06, + "replay_kl": 7.942045158415567e-06, + "gradient_norm": 0.000269670388661325 + }, + { + "step": 388, + "loss": 1.5994373825378716e-05, + "target_ce": 8.06644675321877e-06, + "replay_kl": 7.927926162665244e-06, + "gradient_norm": 0.00026853466988541186 + }, + { + "step": 389, + "loss": 1.5971480024745688e-05, + "target_ce": 8.06644675321877e-06, + "replay_kl": 7.905033271526918e-06, + "gradient_norm": 0.00026784633519127965 + }, + { + "step": 390, + "loss": 1.587884617038071e-05, + "target_ce": 7.986975106177852e-06, + "replay_kl": 7.89187106420286e-06, + "gradient_norm": 0.0002657141303643584 + }, + { + "step": 391, + "loss": 1.5850881027290598e-05, + "target_ce": 7.986975106177852e-06, + "replay_kl": 7.863905921112746e-06, + "gradient_norm": 0.000265008449787274 + }, + { + "step": 392, + "loss": 1.5789424651302397e-05, + "target_ce": 7.94723837316269e-06, + "replay_kl": 7.842187187634408e-06, + "gradient_norm": 0.000264287693426013 + }, + { + "step": 393, + "loss": 1.576655267854221e-05, + "target_ce": 7.94723837316269e-06, + "replay_kl": 7.81931339588482e-06, + "gradient_norm": 0.0002636468270793557 + }, + { + "step": 394, + "loss": 1.5754725609440356e-05, + "target_ce": 7.94723837316269e-06, + "replay_kl": 7.807488145772368e-06, + "gradient_norm": 0.00026316140429116786 + }, + { + "step": 395, + "loss": 1.5725228877272457e-05, + "target_ce": 7.94723837316269e-06, + "replay_kl": 7.777989594615065e-06, + "gradient_norm": 0.000262346031377092 + }, + { + "step": 396, + "loss": 1.5671044820919633e-05, + "target_ce": 7.907502549642231e-06, + "replay_kl": 7.763543180772103e-06, + "gradient_norm": 0.00026113458443433046 + }, + { + "step": 397, + "loss": 1.5648554835934192e-05, + "target_ce": 7.907502549642231e-06, + "replay_kl": 7.741053195786662e-06, + "gradient_norm": 0.00026060885284096 + }, + { + "step": 398, + "loss": 1.5632493159500882e-05, + "target_ce": 7.907502549642231e-06, + "replay_kl": 7.724989700363949e-06, + "gradient_norm": 0.0002597963029984385 + }, + { + "step": 399, + "loss": 1.5613524738000706e-05, + "target_ce": 7.907502549642231e-06, + "replay_kl": 7.706023097853176e-06, + "gradient_norm": 0.00025915243895724416 + }, + { + "step": 400, + "loss": 1.5515470295213163e-05, + "target_ce": 7.828030902601313e-06, + "replay_kl": 7.687438483117148e-06, + "gradient_norm": 0.00025727206957526505 + }, + { + "step": 401, + "loss": 1.5451398212462664e-05, + "target_ce": 7.788295079080854e-06, + "replay_kl": 7.66310313338181e-06, + "gradient_norm": 0.0002564079768490046 + }, + { + "step": 402, + "loss": 1.539632648928091e-05, + "target_ce": 7.748559255560394e-06, + "replay_kl": 7.647766324225813e-06, + "gradient_norm": 0.00025476308655925095 + }, + { + "step": 403, + "loss": 1.537494972581044e-05, + "target_ce": 7.748559255560394e-06, + "replay_kl": 7.626389560755342e-06, + "gradient_norm": 0.0002542837173677981 + }, + { + "step": 404, + "loss": 1.5347713997471146e-05, + "target_ce": 7.748559255560394e-06, + "replay_kl": 7.599154741910752e-06, + "gradient_norm": 0.0002535659004934132 + }, + { + "step": 405, + "loss": 1.5331857866840437e-05, + "target_ce": 7.748559255560394e-06, + "replay_kl": 7.583297701785341e-06, + "gradient_norm": 0.00025292756618000567 + }, + { + "step": 406, + "loss": 1.5308265574276447e-05, + "target_ce": 7.748559255560394e-06, + "replay_kl": 7.559705409221351e-06, + "gradient_norm": 0.0002523690927773714 + }, + { + "step": 407, + "loss": 1.5253943274728954e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.545119842689019e-06, + "gradient_norm": 0.00025139888748526573 + }, + { + "step": 408, + "loss": 1.52344737216481e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.525650289608166e-06, + "gradient_norm": 0.0002506642777007073 + }, + { + "step": 409, + "loss": 1.5214774066407699e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.505950634367764e-06, + "gradient_norm": 0.00025000100140459836 + }, + { + "step": 410, + "loss": 1.5197727407212369e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.488904429919785e-06, + "gradient_norm": 0.00024924540775828063 + }, + { + "step": 411, + "loss": 1.51783524415805e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.469529009540565e-06, + "gradient_norm": 0.0002489857724867761 + }, + { + "step": 412, + "loss": 1.5166028788371477e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.457205356331542e-06, + "gradient_norm": 0.00024841862614266574 + }, + { + "step": 413, + "loss": 1.5142917618504725e-05, + "target_ce": 7.708823432039935e-06, + "replay_kl": 7.434094641212141e-06, + "gradient_norm": 0.0002477874222677201 + }, + { + "step": 414, + "loss": 1.5088826330611482e-05, + "target_ce": 7.669087608519476e-06, + "replay_kl": 7.419738722092006e-06, + "gradient_norm": 0.00024632824352011085 + }, + { + "step": 415, + "loss": 1.5016208635643125e-05, + "target_ce": 7.629351330251666e-06, + "replay_kl": 7.386856850644108e-06, + "gradient_norm": 0.00024533094256184995 + }, + { + "step": 416, + "loss": 1.50039359141374e-05, + "target_ce": 7.629351330251666e-06, + "replay_kl": 7.374584583885735e-06, + "gradient_norm": 0.00024497314007021487 + }, + { + "step": 417, + "loss": 1.4996689060353674e-05, + "target_ce": 7.629351330251666e-06, + "replay_kl": 7.367337275354657e-06, + "gradient_norm": 0.0002443773264531046 + }, + { + "step": 418, + "loss": 1.4968465620768256e-05, + "target_ce": 7.629351330251666e-06, + "replay_kl": 7.339114290516591e-06, + "gradient_norm": 0.00024357385700568557 + }, + { + "step": 419, + "loss": 1.4906834621797316e-05, + "target_ce": 7.5896155067312066e-06, + "replay_kl": 7.317218660318758e-06, + "gradient_norm": 0.000242373687797226 + }, + { + "step": 420, + "loss": 1.4856597772450186e-05, + "target_ce": 7.549879683210747e-06, + "replay_kl": 7.306717634492088e-06, + "gradient_norm": 0.0002412552130408585 + }, + { + "step": 421, + "loss": 1.484338463342283e-05, + "target_ce": 7.549879683210747e-06, + "replay_kl": 7.293505404959433e-06, + "gradient_norm": 0.00024083531752694398 + }, + { + "step": 422, + "loss": 1.4785689927521162e-05, + "target_ce": 7.510143404942937e-06, + "replay_kl": 7.275546067830874e-06, + "gradient_norm": 0.00024025367747526616 + }, + { + "step": 423, + "loss": 1.4768422261113301e-05, + "target_ce": 7.510143404942937e-06, + "replay_kl": 7.258278401423013e-06, + "gradient_norm": 0.00023965667060110718 + }, + { + "step": 424, + "loss": 1.4753434697922785e-05, + "target_ce": 7.510143404942937e-06, + "replay_kl": 7.243291292979848e-06, + "gradient_norm": 0.0002390782901784405 + }, + { + "step": 425, + "loss": 1.4736013326910324e-05, + "target_ce": 7.510143404942937e-06, + "replay_kl": 7.225869921967387e-06, + "gradient_norm": 0.00023866807168815285 + }, + { + "step": 426, + "loss": 1.4717916201334447e-05, + "target_ce": 7.510143404942937e-06, + "replay_kl": 7.207772341644159e-06, + "gradient_norm": 0.00023780332412570715 + }, + { + "step": 427, + "loss": 1.4616121916333213e-05, + "target_ce": 7.430671757902019e-06, + "replay_kl": 7.185450158431195e-06, + "gradient_norm": 0.00023576183593831956 + }, + { + "step": 428, + "loss": 1.46015972859459e-05, + "target_ce": 7.430671757902019e-06, + "replay_kl": 7.17092507329653e-06, + "gradient_norm": 0.0002350629074499011 + }, + { + "step": 429, + "loss": 1.458568476664368e-05, + "target_ce": 7.430671757902019e-06, + "replay_kl": 7.155012553994311e-06, + "gradient_norm": 0.0002343060914427042 + }, + { + "step": 430, + "loss": 1.4524874131893739e-05, + "target_ce": 7.39093638912891e-06, + "replay_kl": 7.133937288017478e-06, + "gradient_norm": 0.0002333544980501756 + }, + { + "step": 431, + "loss": 1.4499340977636166e-05, + "target_ce": 7.39093638912891e-06, + "replay_kl": 7.108404133759905e-06, + "gradient_norm": 0.00023266910284291953 + }, + { + "step": 432, + "loss": 1.4489312889054418e-05, + "target_ce": 7.39093638912891e-06, + "replay_kl": 7.098376499925507e-06, + "gradient_norm": 0.0002321588108316064 + }, + { + "step": 433, + "loss": 1.4439558071899228e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 7.0883579610381275e-06, + "gradient_norm": 0.0002309783740201965 + }, + { + "step": 434, + "loss": 1.4425948393181898e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 7.0747478275734466e-06, + "gradient_norm": 0.00023029069416224957 + }, + { + "step": 435, + "loss": 1.4411520169232972e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 7.060320058371872e-06, + "gradient_norm": 0.00022995920153334737 + }, + { + "step": 436, + "loss": 1.4385072063305415e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 7.033871952444315e-06, + "gradient_norm": 0.00022926318342797458 + }, + { + "step": 437, + "loss": 1.4370645658345893e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 7.019445092737442e-06, + "gradient_norm": 0.0002286390372319147 + }, + { + "step": 438, + "loss": 1.4359315173351206e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 7.008115062490106e-06, + "gradient_norm": 0.00022805108164902776 + }, + { + "step": 439, + "loss": 1.4340660527523141e-05, + "target_ce": 7.3512001108611e-06, + "replay_kl": 6.989460416662041e-06, + "gradient_norm": 0.00022764566529076546 + }, + { + "step": 440, + "loss": 1.4244557860365603e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.972829396545421e-06, + "gradient_norm": 0.00022564991377294064 + }, + { + "step": 441, + "loss": 1.4220783668861259e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.949055205041077e-06, + "gradient_norm": 0.00022520424681715667 + }, + { + "step": 442, + "loss": 1.4201154954207595e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.929426490387414e-06, + "gradient_norm": 0.00022490514675155282 + }, + { + "step": 443, + "loss": 1.4186962289386429e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.915233825566247e-06, + "gradient_norm": 0.00022424192866310477 + }, + { + "step": 444, + "loss": 1.4179295249050483e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.907566785230301e-06, + "gradient_norm": 0.00022360395814757794 + }, + { + "step": 445, + "loss": 1.4158501471683849e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.886773007863667e-06, + "gradient_norm": 0.00022322246513795108 + }, + { + "step": 446, + "loss": 1.414686266798526e-05, + "target_ce": 7.271728463820182e-06, + "replay_kl": 6.875134204165079e-06, + "gradient_norm": 0.00022252801863942295 + }, + { + "step": 447, + "loss": 1.4056447071197908e-05, + "target_ce": 7.192256816779263e-06, + "replay_kl": 6.864190254418645e-06, + "gradient_norm": 0.00022118403285276145 + }, + { + "step": 448, + "loss": 1.399844950356055e-05, + "target_ce": 7.152520538511453e-06, + "replay_kl": 6.845929419796448e-06, + "gradient_norm": 0.00022057424939703196 + }, + { + "step": 449, + "loss": 1.3982558812131174e-05, + "target_ce": 7.152520538511453e-06, + "replay_kl": 6.83003781887237e-06, + "gradient_norm": 0.00022015803551767021 + }, + { + "step": 450, + "loss": 1.3965244761493523e-05, + "target_ce": 7.152520538511453e-06, + "replay_kl": 6.8127242229820695e-06, + "gradient_norm": 0.00021953237592242658 + }, + { + "step": 451, + "loss": 1.3942191799287684e-05, + "target_ce": 7.152520538511453e-06, + "replay_kl": 6.78967080602888e-06, + "gradient_norm": 0.0002191069652326405 + }, + { + "step": 452, + "loss": 1.3934251910541207e-05, + "target_ce": 7.152520538511453e-06, + "replay_kl": 6.781731826777104e-06, + "gradient_norm": 0.00021872085926588625 + }, + { + "step": 453, + "loss": 1.3904149454901926e-05, + "target_ce": 7.152520538511453e-06, + "replay_kl": 6.751629371137824e-06, + "gradient_norm": 0.00021798774832859635 + }, + { + "step": 454, + "loss": 1.3859758837497793e-05, + "target_ce": 7.112784714990994e-06, + "replay_kl": 6.746973667759448e-06, + "gradient_norm": 0.00021693005692213774 + }, + { + "step": 455, + "loss": 1.3845728062733542e-05, + "target_ce": 7.112784714990994e-06, + "replay_kl": 6.732943347742548e-06, + "gradient_norm": 0.00021646857203450054 + }, + { + "step": 456, + "loss": 1.3823626431985758e-05, + "target_ce": 7.112784714990994e-06, + "replay_kl": 6.710841262247413e-06, + "gradient_norm": 0.0002160153235308826 + }, + { + "step": 457, + "loss": 1.3813179975841194e-05, + "target_ce": 7.112784714990994e-06, + "replay_kl": 6.700395715597551e-06, + "gradient_norm": 0.00021554026170633733 + }, + { + "step": 458, + "loss": 1.378821525577223e-05, + "target_ce": 7.112784714990994e-06, + "replay_kl": 6.675430540781235e-06, + "gradient_norm": 0.0002151835651602596 + }, + { + "step": 459, + "loss": 1.3776700143353082e-05, + "target_ce": 7.112784714990994e-06, + "replay_kl": 6.663915883109439e-06, + "gradient_norm": 0.00021482506417669356 + }, + { + "step": 460, + "loss": 1.3726334145758301e-05, + "target_ce": 7.073047981975833e-06, + "replay_kl": 6.653286163782468e-06, + "gradient_norm": 0.00021418019605334848 + }, + { + "step": 461, + "loss": 1.3704480807064101e-05, + "target_ce": 7.073047981975833e-06, + "replay_kl": 6.631433279835619e-06, + "gradient_norm": 0.00021350292081478983 + }, + { + "step": 462, + "loss": 1.3619985111290589e-05, + "target_ce": 6.9935763349349145e-06, + "replay_kl": 6.6264087763556745e-06, + "gradient_norm": 0.00021156450384296477 + }, + { + "step": 463, + "loss": 1.3597733413917013e-05, + "target_ce": 6.9935763349349145e-06, + "replay_kl": 6.604156624234747e-06, + "gradient_norm": 0.00021111789101269096 + }, + { + "step": 464, + "loss": 1.3542095075536054e-05, + "target_ce": 6.953841420909157e-06, + "replay_kl": 6.588253654626897e-06, + "gradient_norm": 0.00021043862216174603 + }, + { + "step": 465, + "loss": 1.3527931514545344e-05, + "target_ce": 6.953841420909157e-06, + "replay_kl": 6.574089638888836e-06, + "gradient_norm": 0.00020993754151277244 + }, + { + "step": 466, + "loss": 1.3518628293240909e-05, + "target_ce": 6.953841420909157e-06, + "replay_kl": 6.5647868723317515e-06, + "gradient_norm": 0.0002094851079164073 + }, + { + "step": 467, + "loss": 1.3498830412572715e-05, + "target_ce": 6.953841420909157e-06, + "replay_kl": 6.544988991663558e-06, + "gradient_norm": 0.0002092592476401478 + }, + { + "step": 468, + "loss": 1.3490104720403906e-05, + "target_ce": 6.953841420909157e-06, + "replay_kl": 6.536263299494749e-06, + "gradient_norm": 0.00020899271476082504 + }, + { + "step": 469, + "loss": 1.3471205420501065e-05, + "target_ce": 6.953841420909157e-06, + "replay_kl": 6.5173639995919075e-06, + "gradient_norm": 0.00020842210506089032 + }, + { + "step": 470, + "loss": 1.3421624316833913e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.507519628939917e-06, + "gradient_norm": 0.00020714325364679098 + }, + { + "step": 471, + "loss": 1.3404333003563806e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.49022831566981e-06, + "gradient_norm": 0.00020665003103204072 + }, + { + "step": 472, + "loss": 1.3387214494287036e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.4731093516456895e-06, + "gradient_norm": 0.00020636817498598248 + }, + { + "step": 473, + "loss": 1.3376129572861828e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.462024884967832e-06, + "gradient_norm": 0.0002058529935311526 + }, + { + "step": 474, + "loss": 1.3363807738642208e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.449703050748212e-06, + "gradient_norm": 0.00020520997350104153 + }, + { + "step": 475, + "loss": 1.334930675511714e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.435202521970496e-06, + "gradient_norm": 0.00020484007836785167 + }, + { + "step": 476, + "loss": 1.3332344678929076e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.41823999103508e-06, + "gradient_norm": 0.00020433796453289688 + }, + { + "step": 477, + "loss": 1.3321418009581976e-05, + "target_ce": 6.914104687893996e-06, + "replay_kl": 6.4073137764353305e-06, + "gradient_norm": 0.00020399772620294243 + }, + { + "step": 478, + "loss": 1.3260510058898944e-05, + "target_ce": 6.874368409626186e-06, + "replay_kl": 6.3861416492727585e-06, + "gradient_norm": 0.00020338536705821753 + }, + { + "step": 479, + "loss": 1.3255385965749156e-05, + "target_ce": 6.874368409626186e-06, + "replay_kl": 6.38101755612297e-06, + "gradient_norm": 0.00020297705486882478 + }, + { + "step": 480, + "loss": 1.3238827705208678e-05, + "target_ce": 6.874368409626186e-06, + "replay_kl": 6.364459295582492e-06, + "gradient_norm": 0.00020237182616256177 + }, + { + "step": 481, + "loss": 1.3226489500084426e-05, + "target_ce": 6.874368409626186e-06, + "replay_kl": 6.35212109045824e-06, + "gradient_norm": 0.00020208509522490203 + }, + { + "step": 482, + "loss": 1.3169918020139448e-05, + "target_ce": 6.8346330408530775e-06, + "replay_kl": 6.33528452453902e-06, + "gradient_norm": 0.0002008976589422673 + }, + { + "step": 483, + "loss": 1.31537854031194e-05, + "target_ce": 6.8346330408530775e-06, + "replay_kl": 6.319152362266323e-06, + "gradient_norm": 0.00020049001614097506 + }, + { + "step": 484, + "loss": 1.314194560109172e-05, + "target_ce": 6.8346330408530775e-06, + "replay_kl": 6.307312560238643e-06, + "gradient_norm": 0.00020019873045384884 + }, + { + "step": 485, + "loss": 1.3124217730364762e-05, + "target_ce": 6.8346330408530775e-06, + "replay_kl": 6.289585144259036e-06, + "gradient_norm": 0.0001997752406168729 + }, + { + "step": 486, + "loss": 1.306505873799324e-05, + "target_ce": 6.7948967625852674e-06, + "replay_kl": 6.270161975407973e-06, + "gradient_norm": 0.0001986123388633132 + }, + { + "step": 487, + "loss": 1.305420391872758e-05, + "target_ce": 6.7948967625852674e-06, + "replay_kl": 6.259307156142313e-06, + "gradient_norm": 0.00019816985877696425 + }, + { + "step": 488, + "loss": 1.3015474905841984e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.260313512029825e-06, + "gradient_norm": 0.0001972797908820212 + }, + { + "step": 489, + "loss": 1.29924501379719e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.237289198907092e-06, + "gradient_norm": 0.0001967723510460928 + }, + { + "step": 490, + "loss": 1.2975260688108392e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.220099749043584e-06, + "gradient_norm": 0.00019642795086838305 + }, + { + "step": 491, + "loss": 1.2956590580870397e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.2014287323108874e-06, + "gradient_norm": 0.00019582457025535405 + }, + { + "step": 492, + "loss": 1.2944694390171207e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.189533451106399e-06, + "gradient_norm": 0.00019551337754819542 + }, + { + "step": 493, + "loss": 1.2932745448779315e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.1775845097145066e-06, + "gradient_norm": 0.00019515362509991974 + }, + { + "step": 494, + "loss": 1.291778426093515e-05, + "target_ce": 6.755161393812159e-06, + "replay_kl": 6.16262241237564e-06, + "gradient_norm": 0.00019458458700682968 + }, + { + "step": 495, + "loss": 1.2863980373367667e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.148555257823318e-06, + "gradient_norm": 0.00019372106180526316 + }, + { + "step": 496, + "loss": 1.284589870920172e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.130473593657371e-06, + "gradient_norm": 0.0001932833401951939 + }, + { + "step": 497, + "loss": 1.2825577869080007e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.110152298788307e-06, + "gradient_norm": 0.00019267485185991973 + }, + { + "step": 498, + "loss": 1.2817543392884545e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.102117822592845e-06, + "gradient_norm": 0.00019245073781348765 + }, + { + "step": 499, + "loss": 1.2807488019461744e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.092062449170044e-06, + "gradient_norm": 0.00019204981799703091 + }, + { + "step": 500, + "loss": 1.2794691429007798e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.0792663134634495e-06, + "gradient_norm": 0.00019159216026309878 + }, + { + "step": 501, + "loss": 1.278147283301223e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.066047717467882e-06, + "gradient_norm": 0.00019115449686069041 + }, + { + "step": 502, + "loss": 1.2765191058861092e-05, + "target_ce": 6.715425115544349e-06, + "replay_kl": 6.049765943316743e-06, + "gradient_norm": 0.00019062968203797936 + }, + { + "step": 503, + "loss": 1.2715339835267514e-05, + "target_ce": 6.675689746771241e-06, + "replay_kl": 6.0396496337489225e-06, + "gradient_norm": 0.00018983916379511356 + }, + { + "step": 504, + "loss": 1.2667151167988777e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 6.031197699485347e-06, + "gradient_norm": 0.00018856376118492335 + }, + { + "step": 505, + "loss": 1.2643531590583734e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 6.007578122080304e-06, + "gradient_norm": 0.00018828929751180112 + }, + { + "step": 506, + "loss": 1.2627969226741698e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.992015758238267e-06, + "gradient_norm": 0.00018801486294250935 + }, + { + "step": 507, + "loss": 1.2615436389751267e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.979482921247836e-06, + "gradient_norm": 0.000187625628313981 + }, + { + "step": 508, + "loss": 1.260625595023157e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.97030248172814e-06, + "gradient_norm": 0.00018725619884207845 + }, + { + "step": 509, + "loss": 1.2597995919350069e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.9620424508466385e-06, + "gradient_norm": 0.0001869351981440559 + }, + { + "step": 510, + "loss": 1.2590861842909362e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.954908374405932e-06, + "gradient_norm": 0.00018657208420336246 + }, + { + "step": 511, + "loss": 1.2572559171530884e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.936605703027453e-06, + "gradient_norm": 0.00018614117288962007 + }, + { + "step": 512, + "loss": 1.257101303053787e-05, + "target_ce": 6.6359534685034305e-06, + "replay_kl": 5.935059562034439e-06, + "gradient_norm": 0.0001859672920545563 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/run.json new file mode 100644 index 0000000000000000000000000000000000000000..6390c0a3e43b39baac583e47dc0e815e0c675564 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-edit/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_strict-01", + "arm": "edit", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "9b0cc31775291a5b313ca3fe42d8ae590df1f99682dfd7b16388adccba347a62", + "new_fact_sha256": "54aa53453100576a49fb6ce13c41346f77ab548cda92cc94af082f7701a2ffac", + "target_batch_sha256": "871c64c2964638440cf109e7f2d6336d6f132e44394bb20ec5b0a0f9dcf74846", + "replay_batch_sha256": "0d46da813c9a397be08ffc61d2c623064a225671c6f49e7c5c4b9780483b6ed3", + "parent_reference_sha256": "0728759f72364f9249fbfc755940f7fc699a4b52763d24c19ceeab9a0e1150bc", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/complete.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..d7fe1f22eb168ad62dbc70314a55315ac56baa3f --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/complete.json @@ -0,0 +1,194 @@ +{ + "case_id": "second_strict-01", + "role": "second", + "stratum": "strict", + "lr": 0.0001, + "arm": "sham", + "path": "second_strict-01/lr0.0001-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.7418097943154862e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 23.674779891967773 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.12369078397750854 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8641732283464567, + "accuracy": 0.8641732283464567, + "answer_nll": 0.5498467683792114 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.04114055633545, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9691119691119691, + "accuracy": 0.9691119691119691, + "answer_nll": 0.18396198749542236 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010709061461966485 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0013511599972844124 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003104020142927766 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004473456065170467 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "final_model_sha256": "f5592390d8ca3b48a8bdab035922150565b48bea193dfa6c1e9fed15336da5e5", + "delta_l2": 0.41461676359176636, + "tensor_file_sha256": "a2738f3b546a2de94f6f858ffbb4ed7e85daf73085f2b06c543a414ad019390a" +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/learning.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..63674b843e592b8a691323bd223ab8c7e42498fc --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/learning.json @@ -0,0 +1,748 @@ +[ + { + "step": 0, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000896052282769233 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.707046508789062 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8562992125984252, + "accuracy": 0.8562992125984252, + "answer_nll": 0.5300208330154419 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.189226150512695, + "changed_answer_n": 4, + "old_answer_accuracy": 0.75, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001229818444699049 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031055815634317696 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003805416636168957 + } + }, + "model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": null + }, + { + "step": 32, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.794906312279636e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 22.96510124206543 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9700520833333334, + "accuracy": 0.9700520833333334, + "answer_nll": 0.1333366483449936 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8562992125984252, + "accuracy": 0.8562992125984252, + "answer_nll": 0.5250923037528992 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.9430570602417, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.19658248126506805 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011843566608149558 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.002220342867076397 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003082493203692138 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0006571810226887465 + } + }, + "model_sha256": "a59df48aca62418a194116be54639976833483ac7b19c1e294a34164321444a0", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 32, + "loss": 7.919893505459186e-06, + "target_ce": 4.609413736034185e-06, + "replay_kl": 3.310479769425001e-06, + "gradient_norm": 0.00015597107994835824 + } + }, + { + "step": 128, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.3378546504536644e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 23.40192413330078 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.9700520833333334, + "accuracy": 0.9700520833333334, + "answer_nll": 0.1328035145998001 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8622047244094488, + "accuracy": 0.8622047244094488, + "answer_nll": 0.5229407548904419 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.283187866210938, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.19614529609680176 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010896892490563914 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001575176720507443 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031074057915247977 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004919674247503281 + } + }, + "model_sha256": "2e0e12318b547bfa4d7023312e04d7029b0b078f83965510df5b9fb26d925dfe", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 128, + "loss": 3.237110377085628e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.747732529925997e-07, + "gradient_norm": 1.9678813259815797e-05 + } + }, + { + "step": 512, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.7418097943154862e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 23.674779891967773 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.12369078397750854 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8641732283464567, + "accuracy": 0.8641732283464567, + "answer_nll": 0.5498467683792114 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.04114055633545, + "changed_answer_n": 4, + "old_answer_accuracy": 1.0, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9691119691119691, + "accuracy": 0.9691119691119691, + "answer_nll": 0.18396198749542236 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010709061461966485 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0013511599972844124 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003104020142927766 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004473456065170467 + } + }, + "model_sha256": "f5592390d8ca3b48a8bdab035922150565b48bea193dfa6c1e9fed15336da5e5", + "target_success": true, + "U_atomic_at_least_95": true, + "loss": { + "step": 512, + "loss": 2.2413573788071517e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5453795160501613e-07, + "gradient_norm": 7.3941118898801506e-06 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/losses.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/losses.json new file mode 100644 index 0000000000000000000000000000000000000000..9ee9c40f23c5b9c9fe4e595b13c11db9183d8244 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/losses.json @@ -0,0 +1,3586 @@ +[ + { + "step": 1, + "loss": 0.00030969094950705767, + "target_ce": 0.00030969094950705767, + "replay_kl": 0.0, + "gradient_norm": 0.04131773114204407 + }, + { + "step": 2, + "loss": 4.0864586480893195e-05, + "target_ce": 3.8503287214552984e-05, + "replay_kl": 2.3612983568455093e-06, + "gradient_norm": 0.002819860354065895 + }, + { + "step": 3, + "loss": 2.327809670532588e-05, + "target_ce": 1.8079867004416883e-05, + "replay_kl": 5.198229700908996e-06, + "gradient_norm": 0.0013641387922689319 + }, + { + "step": 4, + "loss": 1.920234353747219e-05, + "target_ce": 1.2715564480458852e-05, + "replay_kl": 6.4867790570133366e-06, + "gradient_norm": 0.001154241501353681 + }, + { + "step": 5, + "loss": 1.7742688214639202e-05, + "target_ce": 1.056982819136465e-05, + "replay_kl": 7.172860023274552e-06, + "gradient_norm": 0.0009045653278008103 + }, + { + "step": 6, + "loss": 1.741990308801178e-05, + "target_ce": 9.377749847772066e-06, + "replay_kl": 8.042153240239713e-06, + "gradient_norm": 0.000787105003837496 + }, + { + "step": 7, + "loss": 1.7690224922262132e-05, + "target_ce": 8.702237209945451e-06, + "replay_kl": 8.987988621811382e-06, + "gradient_norm": 0.0007704730378463864 + }, + { + "step": 8, + "loss": 1.7892407413455658e-05, + "target_ce": 8.185668775695376e-06, + "replay_kl": 9.706738637760282e-06, + "gradient_norm": 0.0007688615005463362 + }, + { + "step": 9, + "loss": 1.7965092411031947e-05, + "target_ce": 7.867780368542299e-06, + "replay_kl": 1.0097311132994946e-05, + "gradient_norm": 0.0007551859598606825 + }, + { + "step": 10, + "loss": 1.7806803953135386e-05, + "target_ce": 7.629364063177491e-06, + "replay_kl": 1.0177440344705246e-05, + "gradient_norm": 0.0007305926992557943 + }, + { + "step": 11, + "loss": 1.7257469153264537e-05, + "target_ce": 7.351210570050171e-06, + "replay_kl": 9.906259037961718e-06, + "gradient_norm": 0.0006929661612957716 + }, + { + "step": 12, + "loss": 1.656939639360644e-05, + "target_ce": 7.192265911726281e-06, + "replay_kl": 9.377130481880158e-06, + "gradient_norm": 0.000646294211037457 + }, + { + "step": 13, + "loss": 1.5849464034545235e-05, + "target_ce": 7.11279290044331e-06, + "replay_kl": 8.736671588849276e-06, + "gradient_norm": 0.0005915164947509766 + }, + { + "step": 14, + "loss": 1.4936787920305505e-05, + "target_ce": 6.874376140331151e-06, + "replay_kl": 8.062412234721705e-06, + "gradient_norm": 0.0005334476591087878 + }, + { + "step": 15, + "loss": 1.4264505807659589e-05, + "target_ce": 6.834640316810692e-06, + "replay_kl": 7.429865036101546e-06, + "gradient_norm": 0.00048058206448331475 + }, + { + "step": 16, + "loss": 1.358333247480914e-05, + "target_ce": 6.675695203739451e-06, + "replay_kl": 6.907637271069689e-06, + "gradient_norm": 0.0004445886006578803 + }, + { + "step": 17, + "loss": 1.3081057659292128e-05, + "target_ce": 6.556486823683372e-06, + "replay_kl": 6.524570835608756e-06, + "gradient_norm": 0.0004371211980469525 + }, + { + "step": 18, + "loss": 1.2651813449338078e-05, + "target_ce": 6.397541710612131e-06, + "replay_kl": 6.254271283978596e-06, + "gradient_norm": 0.0004476248286664486 + }, + { + "step": 19, + "loss": 1.2217164112371393e-05, + "target_ce": 6.1988612287677824e-06, + "replay_kl": 6.018302428856259e-06, + "gradient_norm": 0.0004524763789959252 + }, + { + "step": 20, + "loss": 1.1819864084827714e-05, + "target_ce": 6.079652393964352e-06, + "replay_kl": 5.740211236116011e-06, + "gradient_norm": 0.00043475301936268806 + }, + { + "step": 21, + "loss": 1.1325677405693568e-05, + "target_ce": 5.880971457372652e-06, + "replay_kl": 5.444706403068267e-06, + "gradient_norm": 0.0003884337784256786 + }, + { + "step": 22, + "loss": 1.0850249964278191e-05, + "target_ce": 5.722027253796114e-06, + "replay_kl": 5.128222255734727e-06, + "gradient_norm": 0.0003278939984738827 + }, + { + "step": 23, + "loss": 1.0431213922856841e-05, + "target_ce": 5.563082595472224e-06, + "replay_kl": 4.868131327384617e-06, + "gradient_norm": 0.0002674504357855767 + }, + { + "step": 24, + "loss": 1.0163228580495343e-05, + "target_ce": 5.523346771951765e-06, + "replay_kl": 4.639881353796227e-06, + "gradient_norm": 0.00023383872758131474 + }, + { + "step": 25, + "loss": 9.807614333112724e-06, + "target_ce": 5.324665380612714e-06, + "replay_kl": 4.482948497752659e-06, + "gradient_norm": 0.0002207766374340281 + }, + { + "step": 26, + "loss": 9.493954166828189e-06, + "target_ce": 5.165720722288825e-06, + "replay_kl": 4.3282334445393644e-06, + "gradient_norm": 0.00022128687123768032 + }, + { + "step": 27, + "loss": 9.340434189653024e-06, + "target_ce": 5.165720722288825e-06, + "replay_kl": 4.1747134673641995e-06, + "gradient_norm": 0.00022415404964704067 + }, + { + "step": 28, + "loss": 9.021336154546589e-06, + "target_ce": 5.006776063964935e-06, + "replay_kl": 4.0145605453290045e-06, + "gradient_norm": 0.0002191870880778879 + }, + { + "step": 29, + "loss": 8.809909559204243e-06, + "target_ce": 4.967039785697125e-06, + "replay_kl": 3.842869318759767e-06, + "gradient_norm": 0.00020947522716596723 + }, + { + "step": 30, + "loss": 8.430306479567662e-06, + "target_ce": 4.768358394358074e-06, + "replay_kl": 3.661948312583263e-06, + "gradient_norm": 0.0001899040216812864 + }, + { + "step": 31, + "loss": 8.153359885909595e-06, + "target_ce": 4.688885837822454e-06, + "replay_kl": 3.4644740480871405e-06, + "gradient_norm": 0.00017005343397613615 + }, + { + "step": 32, + "loss": 7.919893505459186e-06, + "target_ce": 4.609413736034185e-06, + "replay_kl": 3.310479769425001e-06, + "gradient_norm": 0.00015597107994835824 + }, + { + "step": 33, + "loss": 7.708909834036604e-06, + "target_ce": 4.529941634245915e-06, + "replay_kl": 3.1789684271643637e-06, + "gradient_norm": 0.00015713521861471236 + }, + { + "step": 34, + "loss": 7.5700659181165975e-06, + "target_ce": 4.490204901230754e-06, + "replay_kl": 3.079861016885843e-06, + "gradient_norm": 0.00017228699289262295 + }, + { + "step": 35, + "loss": 7.361507414316293e-06, + "target_ce": 4.370996521174675e-06, + "replay_kl": 2.990510893141618e-06, + "gradient_norm": 0.00018436969548929483 + }, + { + "step": 36, + "loss": 7.21459582564421e-06, + "target_ce": 4.331260697654216e-06, + "replay_kl": 2.88333535536367e-06, + "gradient_norm": 0.00018475680553819984 + }, + { + "step": 37, + "loss": 7.03003206581343e-06, + "target_ce": 4.2517876863712445e-06, + "replay_kl": 2.778244379442185e-06, + "gradient_norm": 0.0001749093789840117 + }, + { + "step": 38, + "loss": 6.783965545764659e-06, + "target_ce": 4.132578851567814e-06, + "replay_kl": 2.65138692157052e-06, + "gradient_norm": 0.0001492949522798881 + }, + { + "step": 39, + "loss": 6.643566393904621e-06, + "target_ce": 4.092843028047355e-06, + "replay_kl": 2.550723365857266e-06, + "gradient_norm": 0.00012639560736715794 + }, + { + "step": 40, + "loss": 6.507844773295801e-06, + "target_ce": 4.053106749779545e-06, + "replay_kl": 2.454738250889932e-06, + "gradient_norm": 0.0001149336967500858 + }, + { + "step": 41, + "loss": 6.392710020008963e-06, + "target_ce": 4.0133709262590855e-06, + "replay_kl": 2.379339093749877e-06, + "gradient_norm": 0.00011492405610624701 + }, + { + "step": 42, + "loss": 6.283156380959554e-06, + "target_ce": 3.973634647991275e-06, + "replay_kl": 2.3095217329682782e-06, + "gradient_norm": 0.00011877443466801196 + }, + { + "step": 43, + "loss": 6.215354005689733e-06, + "target_ce": 3.973634647991275e-06, + "replay_kl": 2.2417193576984573e-06, + "gradient_norm": 0.00012243515811860561 + }, + { + "step": 44, + "loss": 6.025593847880373e-06, + "target_ce": 3.854425358440494e-06, + "replay_kl": 2.1711684894398786e-06, + "gradient_norm": 0.00011831264419015497 + }, + { + "step": 45, + "loss": 5.8944369811797515e-06, + "target_ce": 3.8146893075463595e-06, + "replay_kl": 2.079747673633392e-06, + "gradient_norm": 0.0001074875399353914 + }, + { + "step": 46, + "loss": 5.7033753364521544e-06, + "target_ce": 3.6954807001166046e-06, + "replay_kl": 2.00789463633555e-06, + "gradient_norm": 9.566423250362277e-05 + }, + { + "step": 47, + "loss": 5.628545295621734e-06, + "target_ce": 3.6954807001166046e-06, + "replay_kl": 1.9330645955051295e-06, + "gradient_norm": 9.126249642577022e-05 + }, + { + "step": 48, + "loss": 5.570168013946386e-06, + "target_ce": 3.6954807001166046e-06, + "replay_kl": 1.8746872001429438e-06, + "gradient_norm": 9.384945587953553e-05 + }, + { + "step": 49, + "loss": 5.455877271742793e-06, + "target_ce": 3.655744194475119e-06, + "replay_kl": 1.8001331909545115e-06, + "gradient_norm": 9.89710315479897e-05 + }, + { + "step": 50, + "loss": 5.364557637221878e-06, + "target_ce": 3.616007916207309e-06, + "replay_kl": 1.7485497210145695e-06, + "gradient_norm": 0.00010092576121678576 + }, + { + "step": 51, + "loss": 5.304576006892603e-06, + "target_ce": 3.616007916207309e-06, + "replay_kl": 1.6885683180589695e-06, + "gradient_norm": 9.878401033347473e-05 + }, + { + "step": 52, + "loss": 5.252938535704743e-06, + "target_ce": 3.616007916207309e-06, + "replay_kl": 1.636930733184272e-06, + "gradient_norm": 8.932391210692003e-05 + }, + { + "step": 53, + "loss": 5.2048053476028144e-06, + "target_ce": 3.616007916207309e-06, + "replay_kl": 1.5887975450823433e-06, + "gradient_norm": 8.059958054218441e-05 + }, + { + "step": 54, + "loss": 5.0342787289991975e-06, + "target_ce": 3.4967990814038785e-06, + "replay_kl": 1.5374798749689944e-06, + "gradient_norm": 7.142074900912121e-05 + }, + { + "step": 55, + "loss": 4.990441084373742e-06, + "target_ce": 3.4967990814038785e-06, + "replay_kl": 1.4936420029698638e-06, + "gradient_norm": 6.95244743837975e-05 + }, + { + "step": 56, + "loss": 4.946400167682441e-06, + "target_ce": 3.4967990814038785e-06, + "replay_kl": 1.4496011999654002e-06, + "gradient_norm": 7.041850767564029e-05 + }, + { + "step": 57, + "loss": 4.920169885735959e-06, + "target_ce": 3.4967990814038785e-06, + "replay_kl": 1.4233708043320803e-06, + "gradient_norm": 7.08240841049701e-05 + }, + { + "step": 58, + "loss": 4.837831511395052e-06, + "target_ce": 3.457063030509744e-06, + "replay_kl": 1.3807684808853082e-06, + "gradient_norm": 6.856427353341132e-05 + }, + { + "step": 59, + "loss": 4.752565473609138e-06, + "target_ce": 3.4173265248682583e-06, + "replay_kl": 1.3352390624277177e-06, + "gradient_norm": 6.413599476218224e-05 + }, + { + "step": 60, + "loss": 4.647920832212549e-06, + "target_ce": 3.337853968332638e-06, + "replay_kl": 1.3100666365062352e-06, + "gradient_norm": 5.922738273511641e-05 + }, + { + "step": 61, + "loss": 4.573284968500957e-06, + "target_ce": 3.2981179174385034e-06, + "replay_kl": 1.275166823688778e-06, + "gradient_norm": 5.751603021053597e-05 + }, + { + "step": 62, + "loss": 4.530370915745152e-06, + "target_ce": 3.2981179174385034e-06, + "replay_kl": 1.2322529983066488e-06, + "gradient_norm": 5.803161911899224e-05 + }, + { + "step": 63, + "loss": 4.5167034841142595e-06, + "target_ce": 3.2981179174385034e-06, + "replay_kl": 1.2185857940494316e-06, + "gradient_norm": 6.134770228527486e-05 + }, + { + "step": 64, + "loss": 4.456520855455892e-06, + "target_ce": 3.2583818665443687e-06, + "replay_kl": 1.1981389889115235e-06, + "gradient_norm": 6.173268775455654e-05 + }, + { + "step": 65, + "loss": 4.418391654326115e-06, + "target_ce": 3.2583818665443687e-06, + "replay_kl": 1.1600100151554216e-06, + "gradient_norm": 5.947487079538405e-05 + }, + { + "step": 66, + "loss": 4.399919362185756e-06, + "target_ce": 3.2583818665443687e-06, + "replay_kl": 1.141537495641387e-06, + "gradient_norm": 5.422369213192724e-05 + }, + { + "step": 67, + "loss": 4.339390216046013e-06, + "target_ce": 3.218645360902883e-06, + "replay_kl": 1.1207446277694544e-06, + "gradient_norm": 5.0126069254474714e-05 + }, + { + "step": 68, + "loss": 4.304912181396503e-06, + "target_ce": 3.218645360902883e-06, + "replay_kl": 1.0862670478672953e-06, + "gradient_norm": 4.8036625230452046e-05 + }, + { + "step": 69, + "loss": 4.284199349058326e-06, + "target_ce": 3.218645360902883e-06, + "replay_kl": 1.0655542155291187e-06, + "gradient_norm": 4.789444210473448e-05 + }, + { + "step": 70, + "loss": 4.231901584716979e-06, + "target_ce": 3.1789088552613975e-06, + "replay_kl": 1.0529928431424196e-06, + "gradient_norm": 4.964984327671118e-05 + }, + { + "step": 71, + "loss": 4.170572537987027e-06, + "target_ce": 3.139172804367263e-06, + "replay_kl": 1.0313996199329267e-06, + "gradient_norm": 4.728088970296085e-05 + }, + { + "step": 72, + "loss": 4.1488669921818655e-06, + "target_ce": 3.139172804367263e-06, + "replay_kl": 1.0096941878146026e-06, + "gradient_norm": 4.4487194827524945e-05 + }, + { + "step": 73, + "loss": 4.139479642617516e-06, + "target_ce": 3.139172804367263e-06, + "replay_kl": 1.0003070656239288e-06, + "gradient_norm": 4.2748604755615816e-05 + }, + { + "step": 74, + "loss": 4.123769031139091e-06, + "target_ce": 3.139172804367263e-06, + "replay_kl": 9.845964541455032e-07, + "gradient_norm": 4.19121679442469e-05 + }, + { + "step": 75, + "loss": 4.107914719497785e-06, + "target_ce": 3.139172804367263e-06, + "replay_kl": 9.687421425041975e-07, + "gradient_norm": 4.3331714550731704e-05 + }, + { + "step": 76, + "loss": 4.091515620530117e-06, + "target_ce": 3.139172804367263e-06, + "replay_kl": 9.523427024760167e-07, + "gradient_norm": 4.665328742703423e-05 + }, + { + "step": 77, + "loss": 4.024834652227582e-06, + "target_ce": 3.099436753473128e-06, + "replay_kl": 9.253980124412919e-07, + "gradient_norm": 4.5677916205022484e-05 + }, + { + "step": 78, + "loss": 3.975575509684859e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 9.158752618532162e-07, + "gradient_norm": 4.42070268036332e-05 + }, + { + "step": 79, + "loss": 3.959141849918524e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 8.994417726171378e-07, + "gradient_norm": 4.0927054214989766e-05 + }, + { + "step": 80, + "loss": 3.948578523704782e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 8.888782758731395e-07, + "gradient_norm": 3.798948819166981e-05 + }, + { + "step": 81, + "loss": 3.93628124584211e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 8.765811685407243e-07, + "gradient_norm": 3.691419624374248e-05 + }, + { + "step": 82, + "loss": 3.92248693970032e-06, + "target_ce": 3.0597002478316426e-06, + "replay_kl": 8.627864644950023e-07, + "gradient_norm": 3.665693657239899e-05 + }, + { + "step": 83, + "loss": 3.865324742946541e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 8.453611712866405e-07, + "gradient_norm": 3.5746837966144085e-05 + }, + { + "step": 84, + "loss": 3.857115189020988e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 8.37151674204506e-07, + "gradient_norm": 3.522789847920649e-05 + }, + { + "step": 85, + "loss": 3.859775461023673e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 8.398119462071918e-07, + "gradient_norm": 3.4079086617566645e-05 + }, + { + "step": 86, + "loss": 3.84302984457463e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 8.230662729147298e-07, + "gradient_norm": 3.36111152137164e-05 + }, + { + "step": 87, + "loss": 3.832972197415074e-06, + "target_ce": 3.019963742190157e-06, + "replay_kl": 8.13008568911755e-07, + "gradient_norm": 3.3273583539994434e-05 + }, + { + "step": 88, + "loss": 3.775321147259092e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 7.950937970235827e-07, + "gradient_norm": 3.36571283696685e-05 + }, + { + "step": 89, + "loss": 3.780134647968225e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 7.999071840458782e-07, + "gradient_norm": 3.36915509251412e-05 + }, + { + "step": 90, + "loss": 3.7644963413185906e-06, + "target_ce": 2.980227463922347e-06, + "replay_kl": 7.842688205528248e-07, + "gradient_norm": 3.307965016574599e-05 + }, + { + "step": 91, + "loss": 3.7186021017987514e-06, + "target_ce": 2.940491185654537e-06, + "replay_kl": 7.781109161442146e-07, + "gradient_norm": 3.123793067061342e-05 + }, + { + "step": 92, + "loss": 3.670501882879762e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.697466344325221e-07, + "gradient_norm": 3.0371638786164112e-05 + }, + { + "step": 93, + "loss": 3.651514589364524e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.50759397760703e-07, + "gradient_norm": 3.0403587516047992e-05 + }, + { + "step": 94, + "loss": 3.646288860181812e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.455337254214101e-07, + "gradient_norm": 2.8882974220323376e-05 + }, + { + "step": 95, + "loss": 3.63754134014016e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.36786205379758e-07, + "gradient_norm": 2.8575983378686942e-05 + }, + { + "step": 96, + "loss": 3.637401732703438e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.366464842561982e-07, + "gradient_norm": 2.8441760150599293e-05 + }, + { + "step": 97, + "loss": 3.629427283158293e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.286721483978909e-07, + "gradient_norm": 2.792337181745097e-05 + }, + { + "step": 98, + "loss": 3.619766630436061e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.190113819888211e-07, + "gradient_norm": 2.7701440558303148e-05 + }, + { + "step": 99, + "loss": 3.609992063502432e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.092369287420297e-07, + "gradient_norm": 2.8586649932549335e-05 + }, + { + "step": 100, + "loss": 3.6103408547205618e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 7.095856631167408e-07, + "gradient_norm": 2.902800406445749e-05 + }, + { + "step": 101, + "loss": 3.5952680264017545e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 6.945128916413523e-07, + "gradient_norm": 2.8105496312491596e-05 + }, + { + "step": 102, + "loss": 3.5942830436397344e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 6.935277951924945e-07, + "gradient_norm": 2.7258445697952993e-05 + }, + { + "step": 103, + "loss": 3.5851589927915484e-06, + "target_ce": 2.900755134760402e-06, + "replay_kl": 6.844038011877274e-07, + "gradient_norm": 2.6537183657637797e-05 + }, + { + "step": 104, + "loss": 3.5471771298034582e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.861586143713794e-07, + "gradient_norm": 2.5409584850422107e-05 + }, + { + "step": 105, + "loss": 3.544311994119198e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.832933650002815e-07, + "gradient_norm": 2.515017695259303e-05 + }, + { + "step": 106, + "loss": 3.5330224363860907e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.720037504237553e-07, + "gradient_norm": 2.5526078388793394e-05 + }, + { + "step": 107, + "loss": 3.531373295118101e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.703546659991844e-07, + "gradient_norm": 2.4714856408536434e-05 + }, + { + "step": 108, + "loss": 3.5293242035550065e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.683056881229277e-07, + "gradient_norm": 2.4598582967882976e-05 + }, + { + "step": 109, + "loss": 3.524995918269269e-06, + "target_ce": 2.8610186291189166e-06, + "replay_kl": 6.639774028371903e-07, + "gradient_norm": 2.4508892238372937e-05 + }, + { + "step": 110, + "loss": 3.4767904253385495e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 6.555081881742808e-07, + "gradient_norm": 2.40910430875374e-05 + }, + { + "step": 111, + "loss": 3.4683589547057636e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 6.470765470112383e-07, + "gradient_norm": 2.4006632884265855e-05 + }, + { + "step": 112, + "loss": 3.4634583698789356e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 6.421759621844103e-07, + "gradient_norm": 2.413035872450564e-05 + }, + { + "step": 113, + "loss": 3.4586614674481098e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 6.373790597535844e-07, + "gradient_norm": 2.3925815185066313e-05 + }, + { + "step": 114, + "loss": 3.4606835015438264e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 6.394010938493011e-07, + "gradient_norm": 2.389692235738039e-05 + }, + { + "step": 115, + "loss": 3.4574536584841553e-06, + "target_ce": 2.8212823508511065e-06, + "replay_kl": 6.3617125078963e-07, + "gradient_norm": 2.2897676899447106e-05 + }, + { + "step": 116, + "loss": 3.4059894460369833e-06, + "target_ce": 2.781545845209621e-06, + "replay_kl": 6.244436008273624e-07, + "gradient_norm": 2.3298674932448193e-05 + }, + { + "step": 117, + "loss": 3.406482392165344e-06, + "target_ce": 2.781545845209621e-06, + "replay_kl": 6.24936660642561e-07, + "gradient_norm": 2.2798991267336532e-05 + }, + { + "step": 118, + "loss": 3.3953501770156436e-06, + "target_ce": 2.781545845209621e-06, + "replay_kl": 6.13804218119185e-07, + "gradient_norm": 2.1755820853286423e-05 + }, + { + "step": 119, + "loss": 3.4012537071248516e-06, + "target_ce": 2.781545845209621e-06, + "replay_kl": 6.197078619152308e-07, + "gradient_norm": 2.1601113985525444e-05 + }, + { + "step": 120, + "loss": 3.350162614879082e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 6.083528205635957e-07, + "gradient_norm": 2.1891155483899638e-05 + }, + { + "step": 121, + "loss": 3.3456053643021733e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 6.03795569986687e-07, + "gradient_norm": 2.1868321709916927e-05 + }, + { + "step": 122, + "loss": 3.3436479043302825e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 6.018381100147963e-07, + "gradient_norm": 2.1551421014009975e-05 + }, + { + "step": 123, + "loss": 3.334330813231645e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.925209052293212e-07, + "gradient_norm": 2.1232135622994974e-05 + }, + { + "step": 124, + "loss": 3.3361880014126655e-06, + "target_ce": 2.7418097943154862e-06, + "replay_kl": 5.94378320784017e-07, + "gradient_norm": 2.1244428353384137e-05 + }, + { + "step": 125, + "loss": 3.2927064239629544e-06, + "target_ce": 2.702073516047676e-06, + "replay_kl": 5.906327942284406e-07, + "gradient_norm": 2.0786921595572494e-05 + }, + { + "step": 126, + "loss": 3.2410405310656643e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.787033501292171e-07, + "gradient_norm": 1.9627463188953698e-05 + }, + { + "step": 127, + "loss": 3.2346981697628507e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.723608751395659e-07, + "gradient_norm": 1.9318003978696652e-05 + }, + { + "step": 128, + "loss": 3.237110377085628e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.747732529925997e-07, + "gradient_norm": 1.9678813259815797e-05 + }, + { + "step": 129, + "loss": 3.232723202017951e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.703859642380849e-07, + "gradient_norm": 1.9035209334106185e-05 + }, + { + "step": 130, + "loss": 3.2271591408061795e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.648220167131512e-07, + "gradient_norm": 1.8719621948548593e-05 + }, + { + "step": 131, + "loss": 3.2292418836732395e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.669047027367924e-07, + "gradient_norm": 1.8476926925359294e-05 + }, + { + "step": 132, + "loss": 3.2338111850549467e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.714739472750807e-07, + "gradient_norm": 1.8727194401435554e-05 + }, + { + "step": 133, + "loss": 3.2275988814944867e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.652617574014585e-07, + "gradient_norm": 1.8530350644141436e-05 + }, + { + "step": 134, + "loss": 3.2272723728965502e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.649350214298465e-07, + "gradient_norm": 1.8922060917248018e-05 + }, + { + "step": 135, + "loss": 3.2158400244952645e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.535026730285608e-07, + "gradient_norm": 1.8865805031964555e-05 + }, + { + "step": 136, + "loss": 3.2018265301303472e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.394891786636435e-07, + "gradient_norm": 1.8642371287569404e-05 + }, + { + "step": 137, + "loss": 3.20798130815092e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.456440703710541e-07, + "gradient_norm": 1.807237094908487e-05 + }, + { + "step": 138, + "loss": 3.2063799153547734e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.440426775749074e-07, + "gradient_norm": 1.7425985788577236e-05 + }, + { + "step": 139, + "loss": 3.201727849955205e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.393904984885012e-07, + "gradient_norm": 1.717714621918276e-05 + }, + { + "step": 140, + "loss": 3.197581008862471e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.35243884769443e-07, + "gradient_norm": 1.717246777843684e-05 + }, + { + "step": 141, + "loss": 3.1977422167983605e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.354049790184945e-07, + "gradient_norm": 1.710065953375306e-05 + }, + { + "step": 142, + "loss": 3.1815584407013375e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.192212597648904e-07, + "gradient_norm": 1.688140218902845e-05 + }, + { + "step": 143, + "loss": 3.1998322356230346e-06, + "target_ce": 2.662337237779866e-06, + "replay_kl": 5.374949978431687e-07, + "gradient_norm": 1.7039294107235037e-05 + }, + { + "step": 144, + "loss": 3.1059723824000685e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.231081559031736e-07, + "gradient_norm": 1.6845284335431643e-05 + }, + { + "step": 145, + "loss": 3.112921149295289e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.30057036485232e-07, + "gradient_norm": 1.676992542343214e-05 + }, + { + "step": 146, + "loss": 3.1074728212843183e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.246085379440046e-07, + "gradient_norm": 1.70535877259681e-05 + }, + { + "step": 147, + "loss": 3.098794877587352e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.159307647772948e-07, + "gradient_norm": 1.6496740499860607e-05 + }, + { + "step": 148, + "loss": 3.1055144518177258e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.226501684774121e-07, + "gradient_norm": 1.6470068658236414e-05 + }, + { + "step": 149, + "loss": 3.0925766623113304e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.097123789710167e-07, + "gradient_norm": 1.6141544620040804e-05 + }, + { + "step": 150, + "loss": 3.1052054509927984e-06, + "target_ce": 2.582864226496895e-06, + "replay_kl": 5.223412244959036e-07, + "gradient_norm": 1.6117301129270345e-05 + }, + { + "step": 151, + "loss": 3.0707658424944384e-06, + "target_ce": 2.54312817560276e-06, + "replay_kl": 5.276376100482594e-07, + "gradient_norm": 1.5674806491006166e-05 + }, + { + "step": 152, + "loss": 3.0599064757552696e-06, + "target_ce": 2.54312817560276e-06, + "replay_kl": 5.167783001525095e-07, + "gradient_norm": 1.5976249414961785e-05 + }, + { + "step": 153, + "loss": 3.0553151191270445e-06, + "target_ce": 2.54312817560276e-06, + "replay_kl": 5.121869435242843e-07, + "gradient_norm": 1.567093022458721e-05 + }, + { + "step": 154, + "loss": 2.9775669645459857e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 5.139116865393589e-07, + "gradient_norm": 1.592420994711574e-05 + }, + { + "step": 155, + "loss": 2.9715474738623016e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 5.078920821688371e-07, + "gradient_norm": 1.5631367205060087e-05 + }, + { + "step": 156, + "loss": 2.9652967441506917e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 5.016413524572272e-07, + "gradient_norm": 1.5779409295646474e-05 + }, + { + "step": 157, + "loss": 2.9636628369189566e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 5.000074452254921e-07, + "gradient_norm": 1.5695488400524482e-05 + }, + { + "step": 158, + "loss": 2.9673869903490413e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 5.037315986555768e-07, + "gradient_norm": 1.5634183000656776e-05 + }, + { + "step": 159, + "loss": 2.9699865535803838e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 5.063312187303382e-07, + "gradient_norm": 1.4760468729946297e-05 + }, + { + "step": 160, + "loss": 2.963304950753809e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.996496159037633e-07, + "gradient_norm": 1.47246128108236e-05 + }, + { + "step": 161, + "loss": 2.9618108783324715e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.981555434824259e-07, + "gradient_norm": 1.553646507090889e-05 + }, + { + "step": 162, + "loss": 2.9581187845906243e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.944634497405787e-07, + "gradient_norm": 1.4725897017342504e-05 + }, + { + "step": 163, + "loss": 2.9558018468378577e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.921463983009744e-07, + "gradient_norm": 1.4909043784427922e-05 + }, + { + "step": 164, + "loss": 2.945163032563869e-06, + "target_ce": 2.4636553916934645e-06, + "replay_kl": 4.815076408704044e-07, + "gradient_norm": 1.5905205145827495e-05 + }, + { + "step": 165, + "loss": 2.8717129225697136e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 4.875300874118693e-07, + "gradient_norm": 1.4700723113492131e-05 + }, + { + "step": 166, + "loss": 2.854869080692879e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 4.70686330800163e-07, + "gradient_norm": 1.397281539539108e-05 + }, + { + "step": 167, + "loss": 2.851775889212149e-06, + "target_ce": 2.3841828351578442e-06, + "replay_kl": 4.6759313931943325e-07, + "gradient_norm": 1.451236767024966e-05 + }, + { + "step": 168, + "loss": 2.817006816258072e-06, + "target_ce": 2.344446556890034e-06, + "replay_kl": 4.725603446331661e-07, + "gradient_norm": 1.4218679098121356e-05 + }, + { + "step": 169, + "loss": 2.8133797513874015e-06, + "target_ce": 2.344446556890034e-06, + "replay_kl": 4.6893316607565794e-07, + "gradient_norm": 1.3475427294906694e-05 + }, + { + "step": 170, + "loss": 2.81669554169639e-06, + "target_ce": 2.344446556890034e-06, + "replay_kl": 4.72248984806356e-07, + "gradient_norm": 1.3537062841351144e-05 + }, + { + "step": 171, + "loss": 2.7729172416002257e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.6820713350825827e-07, + "gradient_norm": 1.4248104889702518e-05 + }, + { + "step": 172, + "loss": 2.77042113339121e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.6571102529924246e-07, + "gradient_norm": 1.3764066352450754e-05 + }, + { + "step": 173, + "loss": 2.7635448986984557e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.5883490429332596e-07, + "gradient_norm": 1.3172219951229636e-05 + }, + { + "step": 174, + "loss": 2.7634919206320774e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.587818409618194e-07, + "gradient_norm": 1.3480968846124597e-05 + }, + { + "step": 175, + "loss": 2.7661467356665526e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.6143662757458515e-07, + "gradient_norm": 1.352451818092959e-05 + }, + { + "step": 176, + "loss": 2.7663702439895133e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.6166013589754584e-07, + "gradient_norm": 1.3150908671377692e-05 + }, + { + "step": 177, + "loss": 2.7671962925523985e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.6248624130384997e-07, + "gradient_norm": 1.2514296031440608e-05 + }, + { + "step": 178, + "loss": 2.7627913823380368e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.580814163546165e-07, + "gradient_norm": 1.3358231626625638e-05 + }, + { + "step": 179, + "loss": 2.755760988293332e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.5105088020136463e-07, + "gradient_norm": 1.2999851605854928e-05 + }, + { + "step": 180, + "loss": 2.7431765374785755e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.384663725431892e-07, + "gradient_norm": 1.2669782336161006e-05 + }, + { + "step": 181, + "loss": 2.7383809992898023e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.3367089119783486e-07, + "gradient_norm": 1.2242895536473952e-05 + }, + { + "step": 182, + "loss": 2.7406820208852878e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.359719412150298e-07, + "gradient_norm": 1.269759377464652e-05 + }, + { + "step": 183, + "loss": 2.7367743768991204e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.3206441091570014e-07, + "gradient_norm": 1.2158950084995013e-05 + }, + { + "step": 184, + "loss": 2.741043317655567e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.363333516721468e-07, + "gradient_norm": 1.2401620551827364e-05 + }, + { + "step": 185, + "loss": 2.734473355303635e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.2976330405508634e-07, + "gradient_norm": 1.1922221347049344e-05 + }, + { + "step": 186, + "loss": 2.740605623330339e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.358956573469186e-07, + "gradient_norm": 1.1995959539490286e-05 + }, + { + "step": 187, + "loss": 2.734419467742555e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.297095017591346e-07, + "gradient_norm": 1.16064020403428e-05 + }, + { + "step": 188, + "loss": 2.733327846726752e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.286178807433316e-07, + "gradient_norm": 1.1690934115904383e-05 + }, + { + "step": 189, + "loss": 2.7307867185299983e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.2607663885974034e-07, + "gradient_norm": 1.1402923519199248e-05 + }, + { + "step": 190, + "loss": 2.7376001980883302e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.3289014683978166e-07, + "gradient_norm": 1.1208637261006515e-05 + }, + { + "step": 191, + "loss": 2.7322482765157474e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.2753816842378e-07, + "gradient_norm": 1.1412641470087692e-05 + }, + { + "step": 192, + "loss": 2.7306020911055384e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.25891983013571e-07, + "gradient_norm": 1.1698101843649056e-05 + }, + { + "step": 193, + "loss": 2.730509550019633e-06, + "target_ce": 2.3047100512485486e-06, + "replay_kl": 4.2579949877108447e-07, + "gradient_norm": 1.1393687600502744e-05 + }, + { + "step": 194, + "loss": 2.696116553124739e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.311428654091287e-07, + "gradient_norm": 1.1618648386502173e-05 + }, + { + "step": 195, + "loss": 2.700463255678187e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.3548945427573926e-07, + "gradient_norm": 1.1709278624039143e-05 + }, + { + "step": 196, + "loss": 2.691804866117309e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.268310931365704e-07, + "gradient_norm": 1.1727391211024951e-05 + }, + { + "step": 197, + "loss": 2.6940865609503817e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.2911267428280553e-07, + "gradient_norm": 1.1040196113754064e-05 + }, + { + "step": 198, + "loss": 2.6942900603899034e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.2931637267429323e-07, + "gradient_norm": 1.1384454410290346e-05 + }, + { + "step": 199, + "loss": 2.688390395633178e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.234167079175677e-07, + "gradient_norm": 1.1639531294349581e-05 + }, + { + "step": 200, + "loss": 2.691568397494848e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.265946813575283e-07, + "gradient_norm": 1.0946912880172022e-05 + }, + { + "step": 201, + "loss": 2.6861464448302286e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.2117267184949014e-07, + "gradient_norm": 1.1081523553002626e-05 + }, + { + "step": 202, + "loss": 2.682520744201611e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.1754694279916293e-07, + "gradient_norm": 1.0883741197176278e-05 + }, + { + "step": 203, + "loss": 2.679694716789527e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.147210290739167e-07, + "gradient_norm": 1.1435522537794895e-05 + }, + { + "step": 204, + "loss": 2.687697360670427e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.2272353084626957e-07, + "gradient_norm": 1.1191363228135742e-05 + }, + { + "step": 205, + "loss": 2.686101424842491e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.211276518617524e-07, + "gradient_norm": 1.0234806723019574e-05 + }, + { + "step": 206, + "loss": 2.6777247512654867e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.1275094986303884e-07, + "gradient_norm": 1.0118875252373982e-05 + }, + { + "step": 207, + "loss": 2.6935585992760025e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.285847694518452e-07, + "gradient_norm": 1.122323919844348e-05 + }, + { + "step": 208, + "loss": 2.6879458800976863e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.229721071169479e-07, + "gradient_norm": 1.078104651242029e-05 + }, + { + "step": 209, + "loss": 2.682858848856995e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.1788507587625645e-07, + "gradient_norm": 9.97154347714968e-06 + }, + { + "step": 210, + "loss": 2.6825446184375323e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.175708170350845e-07, + "gradient_norm": 1.0561792805674486e-05 + }, + { + "step": 211, + "loss": 2.6853051622310886e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.203313892503502e-07, + "gradient_norm": 1.1430244740040507e-05 + }, + { + "step": 212, + "loss": 2.680053967196727e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.150801373725699e-07, + "gradient_norm": 1.0775442206067964e-05 + }, + { + "step": 213, + "loss": 2.6751197310659336e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.1014595808519516e-07, + "gradient_norm": 1.0719085366872605e-05 + }, + { + "step": 214, + "loss": 2.6734564926300664e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.084828049144562e-07, + "gradient_norm": 1.1047510270145722e-05 + }, + { + "step": 215, + "loss": 2.6696418444771552e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.046680430747074e-07, + "gradient_norm": 1.0346777344238944e-05 + }, + { + "step": 216, + "loss": 2.674818915693322e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.0984522797771206e-07, + "gradient_norm": 9.540110113448463e-06 + }, + { + "step": 217, + "loss": 2.6692762276070425e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.0430251146972296e-07, + "gradient_norm": 1.019261162582552e-05 + }, + { + "step": 218, + "loss": 2.6624584279488772e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.974847686549765e-07, + "gradient_norm": 1.1172503036505077e-05 + }, + { + "step": 219, + "loss": 2.6668399186746683e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.0186623095905816e-07, + "gradient_norm": 1.0488971383892931e-05 + }, + { + "step": 220, + "loss": 2.6654138309822883e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 4.0044017168838764e-07, + "gradient_norm": 1.0136270248040091e-05 + }, + { + "step": 221, + "loss": 2.6612124202074483e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.96238590383291e-07, + "gradient_norm": 1.141375832958147e-05 + }, + { + "step": 222, + "loss": 2.6587069896777393e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.9373315985358204e-07, + "gradient_norm": 1.0560419468674809e-05 + }, + { + "step": 223, + "loss": 2.660143763932865e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.9516987726528896e-07, + "gradient_norm": 9.847946785157546e-06 + }, + { + "step": 224, + "loss": 2.657649019965902e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.926751901417447e-07, + "gradient_norm": 1.1662790711852722e-05 + }, + { + "step": 225, + "loss": 2.649112275321386e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.8413844549722853e-07, + "gradient_norm": 1.1028889275621623e-05 + }, + { + "step": 226, + "loss": 2.6517359401623253e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.867621387598774e-07, + "gradient_norm": 9.564696483721491e-06 + }, + { + "step": 227, + "loss": 2.649874659255147e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.8490099996124627e-07, + "gradient_norm": 9.889448847388849e-06 + }, + { + "step": 228, + "loss": 2.6428906494402327e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.779168480377848e-07, + "gradient_norm": 1.0569040568952914e-05 + }, + { + "step": 229, + "loss": 2.6451878056832356e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.802140327024972e-07, + "gradient_norm": 9.775544640433509e-06 + }, + { + "step": 230, + "loss": 2.6412094484840054e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.7623564708155754e-07, + "gradient_norm": 9.324745406047441e-06 + }, + { + "step": 231, + "loss": 2.6342518140154425e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.692780410347041e-07, + "gradient_norm": 9.348328603664413e-06 + }, + { + "step": 232, + "loss": 2.643118023115676e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.781441932915186e-07, + "gradient_norm": 9.572941962687764e-06 + }, + { + "step": 233, + "loss": 2.6358179638918955e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.708441624894476e-07, + "gradient_norm": 9.289773515774868e-06 + }, + { + "step": 234, + "loss": 2.6381567295175046e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.731828428499284e-07, + "gradient_norm": 9.16357384994626e-06 + }, + { + "step": 235, + "loss": 2.64623145085352e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.8125776313790993e-07, + "gradient_norm": 9.023481652548071e-06 + }, + { + "step": 236, + "loss": 2.64380241787876e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.788287301631499e-07, + "gradient_norm": 9.445407158636954e-06 + }, + { + "step": 237, + "loss": 2.6435159270477016e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.785422393320914e-07, + "gradient_norm": 9.004871571960393e-06 + }, + { + "step": 238, + "loss": 2.631127927088528e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.6615409726437065e-07, + "gradient_norm": 8.976963727036491e-06 + }, + { + "step": 239, + "loss": 2.6335999336879468e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.6862616070720833e-07, + "gradient_norm": 8.705254913365934e-06 + }, + { + "step": 240, + "loss": 2.6198772502539214e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.5490359096002067e-07, + "gradient_norm": 9.271097951568663e-06 + }, + { + "step": 241, + "loss": 2.627178446346079e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.622046165219217e-07, + "gradient_norm": 8.705583240953274e-06 + }, + { + "step": 242, + "loss": 2.6293425889889477e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.643687591647904e-07, + "gradient_norm": 8.608704774815124e-06 + }, + { + "step": 243, + "loss": 2.627094772833516e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.6212108511790575e-07, + "gradient_norm": 8.842034731060266e-06 + }, + { + "step": 244, + "loss": 2.636049657667172e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.710758562647243e-07, + "gradient_norm": 8.782254553807434e-06 + }, + { + "step": 245, + "loss": 2.6228212846035603e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.578475968879502e-07, + "gradient_norm": 8.621931556263007e-06 + }, + { + "step": 246, + "loss": 2.629264372444595e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.6429065630727564e-07, + "gradient_norm": 8.7421731223003e-06 + }, + { + "step": 247, + "loss": 2.6315344712202204e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.6656064139606315e-07, + "gradient_norm": 8.892886398825794e-06 + }, + { + "step": 248, + "loss": 2.633962139952928e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.6898831012877054e-07, + "gradient_norm": 9.033228707266971e-06 + }, + { + "step": 249, + "loss": 2.6262246137775946e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.612509260619845e-07, + "gradient_norm": 8.911106306186412e-06 + }, + { + "step": 250, + "loss": 2.624479066071217e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.5950523624705966e-07, + "gradient_norm": 8.55210510053439e-06 + }, + { + "step": 251, + "loss": 2.6165914732700912e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.516177855544811e-07, + "gradient_norm": 8.52572156873066e-06 + }, + { + "step": 252, + "loss": 2.6177433483098866e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.527695753291482e-07, + "gradient_norm": 8.82787298905896e-06 + }, + { + "step": 253, + "loss": 2.6141660782741383e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.4919241898023756e-07, + "gradient_norm": 8.454021553916391e-06 + }, + { + "step": 254, + "loss": 2.607926944619976e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.429531147958187e-07, + "gradient_norm": 8.372293450520374e-06 + }, + { + "step": 255, + "loss": 2.615591483845492e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.5061779612988175e-07, + "gradient_norm": 8.233586413552985e-06 + }, + { + "step": 256, + "loss": 2.6224940938845975e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.5752029248214967e-07, + "gradient_norm": 8.676587640366051e-06 + }, + { + "step": 257, + "loss": 2.6112043087778147e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.462305357970763e-07, + "gradient_norm": 8.218135917559266e-06 + }, + { + "step": 258, + "loss": 2.6110180897376267e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.460444020220166e-07, + "gradient_norm": 8.654351404402405e-06 + }, + { + "step": 259, + "loss": 2.6103414256795077e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.453677379638975e-07, + "gradient_norm": 8.41553628561087e-06 + }, + { + "step": 260, + "loss": 2.6216732749162475e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.5669950193550903e-07, + "gradient_norm": 8.015755156520754e-06 + }, + { + "step": 261, + "loss": 2.612542857605149e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.4756902778099175e-07, + "gradient_norm": 7.955543878779281e-06 + }, + { + "step": 262, + "loss": 2.619588258312433e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.546144853316946e-07, + "gradient_norm": 8.20477998786373e-06 + }, + { + "step": 263, + "loss": 2.6183449790551094e-06, + "target_ce": 2.2649737729807384e-06, + "replay_kl": 3.533712913394993e-07, + "gradient_norm": 8.189869731722865e-06 + }, + { + "step": 264, + "loss": 2.578549583631684e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.5331225944901234e-07, + "gradient_norm": 8.050279575400054e-06 + }, + { + "step": 265, + "loss": 2.58186400969862e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.566267423593672e-07, + "gradient_norm": 8.56930000736611e-06 + }, + { + "step": 266, + "loss": 2.583987225079909e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.5874992931894667e-07, + "gradient_norm": 8.28009706310695e-06 + }, + { + "step": 267, + "loss": 2.5746537630766397e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4941658100251516e-07, + "gradient_norm": 7.65654749557143e-06 + }, + { + "step": 268, + "loss": 2.5738386284501757e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.48601304267504e-07, + "gradient_norm": 7.650626685062889e-06 + }, + { + "step": 269, + "loss": 2.565703198342817e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4046601626869233e-07, + "gradient_norm": 8.255423381342553e-06 + }, + { + "step": 270, + "loss": 2.5734193513926584e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.481820272099867e-07, + "gradient_norm": 7.755142178211827e-06 + }, + { + "step": 271, + "loss": 2.5676863515400328e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.424491694659082e-07, + "gradient_norm": 7.498417289752979e-06 + }, + { + "step": 272, + "loss": 2.570562855908065e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.453255317253934e-07, + "gradient_norm": 8.134563358908053e-06 + }, + { + "step": 273, + "loss": 2.577965688033146e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.52728420693893e-07, + "gradient_norm": 7.989443474798463e-06 + }, + { + "step": 274, + "loss": 2.5736424049682682e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4840510920730594e-07, + "gradient_norm": 7.923767952888738e-06 + }, + { + "step": 275, + "loss": 2.5711919988680165e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4595481679389195e-07, + "gradient_norm": 7.69698635849636e-06 + }, + { + "step": 276, + "loss": 2.580981117716874e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.557439356427494e-07, + "gradient_norm": 7.801833817211445e-06 + }, + { + "step": 277, + "loss": 2.5681761144369375e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4293896078452235e-07, + "gradient_norm": 8.068316674325615e-06 + }, + { + "step": 278, + "loss": 2.57427950600686e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4904218182418845e-07, + "gradient_norm": 7.683935109525919e-06 + }, + { + "step": 279, + "loss": 2.569676325947512e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4443911545167794e-07, + "gradient_norm": 7.876079507695977e-06 + }, + { + "step": 280, + "loss": 2.5673680283944122e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.421308463202877e-07, + "gradient_norm": 7.965240001794882e-06 + }, + { + "step": 281, + "loss": 2.568975560279796e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4373829294054303e-07, + "gradient_norm": 8.228637852880638e-06 + }, + { + "step": 282, + "loss": 2.5675415145087754e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.423041903261037e-07, + "gradient_norm": 8.915523721952923e-06 + }, + { + "step": 283, + "loss": 2.5693723273434443e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4413506000419147e-07, + "gradient_norm": 8.664308552397415e-06 + }, + { + "step": 284, + "loss": 2.5651695523265516e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3993237025242706e-07, + "gradient_norm": 7.926353646325879e-06 + }, + { + "step": 285, + "loss": 2.568476475062198e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4323920772294514e-07, + "gradient_norm": 8.842024726618547e-06 + }, + { + "step": 286, + "loss": 2.559906988608418e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3466977811258403e-07, + "gradient_norm": 8.331263416039292e-06 + }, + { + "step": 287, + "loss": 2.560354914749041e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3511759056636947e-07, + "gradient_norm": 8.11188783700345e-06 + }, + { + "step": 288, + "loss": 2.55714803643059e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3191082593475585e-07, + "gradient_norm": 1.0290189493389335e-05 + }, + { + "step": 289, + "loss": 2.5674160042399308e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4217868005725904e-07, + "gradient_norm": 1.0152830327569973e-05 + }, + { + "step": 290, + "loss": 2.5587360141798854e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.334988036840514e-07, + "gradient_norm": 8.754298505664337e-06 + }, + { + "step": 291, + "loss": 2.5611200271669077e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3588270298423595e-07, + "gradient_norm": 7.58925307309255e-06 + }, + { + "step": 292, + "loss": 2.5619510779506527e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.367138958765281e-07, + "gradient_norm": 8.916146725823637e-06 + }, + { + "step": 293, + "loss": 2.5624681256886106e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.37230943614486e-07, + "gradient_norm": 9.08286983758444e-06 + }, + { + "step": 294, + "loss": 2.558471123847994e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.332338280870317e-07, + "gradient_norm": 8.14086070022313e-06 + }, + { + "step": 295, + "loss": 2.552699925217894e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.274626010352222e-07, + "gradient_norm": 7.807354450051207e-06 + }, + { + "step": 296, + "loss": 2.5618805921112653e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3664343845885014e-07, + "gradient_norm": 7.90353169577429e-06 + }, + { + "step": 297, + "loss": 2.565608838267508e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.403715709282551e-07, + "gradient_norm": 7.544256277469685e-06 + }, + { + "step": 298, + "loss": 2.566773446233128e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.4153617889387533e-07, + "gradient_norm": 7.26907546777511e-06 + }, + { + "step": 299, + "loss": 2.5546055439917836e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2936827665253077e-07, + "gradient_norm": 7.251820534293074e-06 + }, + { + "step": 300, + "loss": 2.5554554667905904e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3021828471646586e-07, + "gradient_norm": 7.84348594606854e-06 + }, + { + "step": 301, + "loss": 2.562676172601641e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3743896210580715e-07, + "gradient_norm": 7.850097063055728e-06 + }, + { + "step": 302, + "loss": 2.5599945274734637e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3475731697762967e-07, + "gradient_norm": 7.81652852310799e-06 + }, + { + "step": 303, + "loss": 2.555997980380198e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.307605993541074e-07, + "gradient_norm": 7.377283509413246e-06 + }, + { + "step": 304, + "loss": 2.564326905485359e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.390895813026873e-07, + "gradient_norm": 7.716677828284446e-06 + }, + { + "step": 305, + "loss": 2.558731694080052e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.3349436989738024e-07, + "gradient_norm": 6.6906141000799835e-06 + }, + { + "step": 306, + "loss": 2.551240413595224e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.260032030993898e-07, + "gradient_norm": 7.048274710541591e-06 + }, + { + "step": 307, + "loss": 2.552750174800167e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2751285061749513e-07, + "gradient_norm": 7.76754768594401e-06 + }, + { + "step": 308, + "loss": 2.55754321187851e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.323059445392573e-07, + "gradient_norm": 7.123431259969948e-06 + }, + { + "step": 309, + "loss": 2.553258127591107e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2802091709527303e-07, + "gradient_norm": 7.157737854868174e-06 + }, + { + "step": 310, + "loss": 2.5514304979878943e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2619320222693204e-07, + "gradient_norm": 7.248144356708508e-06 + }, + { + "step": 311, + "loss": 2.5510832983854925e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.258459742028208e-07, + "gradient_norm": 7.511938292736886e-06 + }, + { + "step": 312, + "loss": 2.5544063646520954e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.291692109996802e-07, + "gradient_norm": 7.150478722905973e-06 + }, + { + "step": 313, + "loss": 2.5526899207761744e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2745265343692154e-07, + "gradient_norm": 7.021254077699268e-06 + }, + { + "step": 314, + "loss": 2.548237034716294e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2299985264216957e-07, + "gradient_norm": 6.954973741812864e-06 + }, + { + "step": 315, + "loss": 2.5461076802457683e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.208704981716437e-07, + "gradient_norm": 6.747553015884478e-06 + }, + { + "step": 316, + "loss": 2.553203785282676e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2796651794342324e-07, + "gradient_norm": 7.261660812218906e-06 + }, + { + "step": 317, + "loss": 2.5500987703708233e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2486158829669876e-07, + "gradient_norm": 7.222292879305314e-06 + }, + { + "step": 318, + "loss": 2.549111513872049e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.238742181110865e-07, + "gradient_norm": 6.609152478631586e-06 + }, + { + "step": 319, + "loss": 2.541005869716173e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.157687160637579e-07, + "gradient_norm": 7.190251380961854e-06 + }, + { + "step": 320, + "loss": 2.5380097667948576e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.1277244261218584e-07, + "gradient_norm": 6.48325158181251e-06 + }, + { + "step": 321, + "loss": 2.5480478598183254e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2281064932249137e-07, + "gradient_norm": 6.620006388402544e-06 + }, + { + "step": 322, + "loss": 2.5462750272708945e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2103770308822277e-07, + "gradient_norm": 6.722061243635835e-06 + }, + { + "step": 323, + "loss": 2.5409024146938464e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.156651473545935e-07, + "gradient_norm": 6.649979241046822e-06 + }, + { + "step": 324, + "loss": 2.5465299131610664e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.2129270266523235e-07, + "gradient_norm": 7.132285645639058e-06 + }, + { + "step": 325, + "loss": 2.540718014643062e-06, + "target_ce": 2.225237267339253e-06, + "replay_kl": 3.154806336169713e-07, + "gradient_norm": 6.753742582077393e-06 + }, + { + "step": 326, + "loss": 2.5104179712798214e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.249170390517975e-07, + "gradient_norm": 8.472569788864348e-06 + }, + { + "step": 327, + "loss": 2.5054230263776844e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1992212257137e-07, + "gradient_norm": 8.780412827036344e-06 + }, + { + "step": 328, + "loss": 2.510180365788983e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.246793198741216e-07, + "gradient_norm": 7.451283181580948e-06 + }, + { + "step": 329, + "loss": 2.502219103917014e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.167180864238617e-07, + "gradient_norm": 6.8187164288247e-06 + }, + { + "step": 330, + "loss": 2.5014371658471646e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.159362620408501e-07, + "gradient_norm": 9.873975614027586e-06 + }, + { + "step": 331, + "loss": 2.5021799956448376e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1667906341681373e-07, + "gradient_norm": 7.2873185672506224e-06 + }, + { + "step": 332, + "loss": 2.5122812985500786e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.2678036632205476e-07, + "gradient_norm": 8.28305655886652e-06 + }, + { + "step": 333, + "loss": 2.5132821974693798e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.277812936630653e-07, + "gradient_norm": 8.559509296901524e-06 + }, + { + "step": 334, + "loss": 2.5053952867892804e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.198943829829659e-07, + "gradient_norm": 8.582445843785536e-06 + }, + { + "step": 335, + "loss": 2.50105517807242e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1555413215755834e-07, + "gradient_norm": 8.655085366626736e-06 + }, + { + "step": 336, + "loss": 2.5016663585120114e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.161652841754403e-07, + "gradient_norm": 7.055529295030283e-06 + }, + { + "step": 337, + "loss": 2.502025836292887e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.1652481879973493e-07, + "gradient_norm": 7.363637450907845e-06 + }, + { + "step": 338, + "loss": 2.471489551680861e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.2572478403380956e-07, + "gradient_norm": 8.81172945810249e-06 + }, + { + "step": 339, + "loss": 2.5080721570702735e-06, + "target_ce": 2.1855009890714427e-06, + "replay_kl": 3.2257111115541193e-07, + "gradient_norm": 9.175058039545547e-06 + }, + { + "step": 340, + "loss": 2.4647742975503206e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1900964359010686e-07, + "gradient_norm": 6.9808211264899e-06 + }, + { + "step": 341, + "loss": 2.465393663442228e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1962903790372366e-07, + "gradient_norm": 1.0574511179584078e-05 + }, + { + "step": 342, + "loss": 2.463344799252809e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1758011687088583e-07, + "gradient_norm": 8.04242336016614e-06 + }, + { + "step": 343, + "loss": 2.4672067411302123e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.2144197348316084e-07, + "gradient_norm": 6.6820302890846506e-06 + }, + { + "step": 344, + "loss": 2.4628293431305792e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.170647460137843e-07, + "gradient_norm": 1.0316675798094366e-05 + }, + { + "step": 345, + "loss": 2.463678129061009e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.179134182573762e-07, + "gradient_norm": 6.584842140000546e-06 + }, + { + "step": 346, + "loss": 2.4614648737042444e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1570007763548347e-07, + "gradient_norm": 6.8054946495976765e-06 + }, + { + "step": 347, + "loss": 2.463323653500993e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1755899954077904e-07, + "gradient_norm": 7.235958946694154e-06 + }, + { + "step": 348, + "loss": 2.4615228539914824e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1575820003126864e-07, + "gradient_norm": 7.097022262314567e-06 + }, + { + "step": 349, + "loss": 2.4539292553527048e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0816454454907216e-07, + "gradient_norm": 8.449150300293695e-06 + }, + { + "step": 350, + "loss": 2.4605635644547874e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.147988536511548e-07, + "gradient_norm": 7.533655661973171e-06 + }, + { + "step": 351, + "loss": 2.4585453957115533e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1278065648621123e-07, + "gradient_norm": 6.8142944655846804e-06 + }, + { + "step": 352, + "loss": 2.4553619368816726e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0959728292145883e-07, + "gradient_norm": 6.431026577047305e-06 + }, + { + "step": 353, + "loss": 2.451277168802335e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.055125432638306e-07, + "gradient_norm": 8.107310350169428e-06 + }, + { + "step": 354, + "loss": 2.453214847264462e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.074501933042484e-07, + "gradient_norm": 6.965000011405209e-06 + }, + { + "step": 355, + "loss": 2.449446810715017e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.036820999113843e-07, + "gradient_norm": 6.180106538522523e-06 + }, + { + "step": 356, + "loss": 2.443099219817668e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.9733439532719785e-07, + "gradient_norm": 8.505086952936836e-06 + }, + { + "step": 357, + "loss": 2.453151637382689e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.073869265790563e-07, + "gradient_norm": 8.96182973519899e-06 + }, + { + "step": 358, + "loss": 2.4633079647173872e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.1754319707033574e-07, + "gradient_norm": 6.505872079287656e-06 + }, + { + "step": 359, + "loss": 2.4445989765808918e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 2.988341520904214e-07, + "gradient_norm": 8.26052109914599e-06 + }, + { + "step": 360, + "loss": 2.4531700546504e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0740540069018607e-07, + "gradient_norm": 7.552798251708737e-06 + }, + { + "step": 361, + "loss": 2.40363829107082e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9760980169157847e-07, + "gradient_norm": 6.765250873286277e-06 + }, + { + "step": 362, + "loss": 2.4503028726030607e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.045381902211375e-07, + "gradient_norm": 6.394956926669693e-06 + }, + { + "step": 363, + "loss": 2.449549356242642e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.0378470228242804e-07, + "gradient_norm": 7.034002464934019e-06 + }, + { + "step": 364, + "loss": 2.4512398795195622e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.054751687159296e-07, + "gradient_norm": 8.194547262974083e-06 + }, + { + "step": 365, + "loss": 2.4536509499739623e-06, + "target_ce": 2.1457647108036326e-06, + "replay_kl": 3.078861823269108e-07, + "gradient_norm": 6.540163212775951e-06 + }, + { + "step": 366, + "loss": 2.411024979664944e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0499666081595933e-07, + "gradient_norm": 8.643105502414983e-06 + }, + { + "step": 367, + "loss": 2.4124210540321656e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0639250780950533e-07, + "gradient_norm": 7.906530299806036e-06 + }, + { + "step": 368, + "loss": 2.407628926448524e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0160046549099206e-07, + "gradient_norm": 5.876492650713772e-06 + }, + { + "step": 369, + "loss": 2.409481794529711e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.034532767287601e-07, + "gradient_norm": 7.887486390245613e-06 + }, + { + "step": 370, + "loss": 2.406659405096434e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.006309157171927e-07, + "gradient_norm": 7.1134513746073935e-06 + }, + { + "step": 371, + "loss": 2.4096946162899258e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0366626901923155e-07, + "gradient_norm": 7.069931143632857e-06 + }, + { + "step": 372, + "loss": 2.4080329694697866e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.020045085122547e-07, + "gradient_norm": 7.012201876932522e-06 + }, + { + "step": 373, + "loss": 2.40210192714585e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9607355145344627e-07, + "gradient_norm": 7.824894055374898e-06 + }, + { + "step": 374, + "loss": 2.4079995455394965e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.019712266905117e-07, + "gradient_norm": 8.389271897613071e-06 + }, + { + "step": 375, + "loss": 2.4022490379138617e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9622066222145804e-07, + "gradient_norm": 6.201638825586997e-06 + }, + { + "step": 376, + "loss": 2.401202664259472e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.951743169887777e-07, + "gradient_norm": 8.714469913684297e-06 + }, + { + "step": 377, + "loss": 2.408091631878051e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0206325618564733e-07, + "gradient_norm": 7.786565220158082e-06 + }, + { + "step": 378, + "loss": 2.41251314037072e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.064847646783164e-07, + "gradient_norm": 5.05328125655069e-06 + }, + { + "step": 379, + "loss": 2.408341970294714e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0231359460231033e-07, + "gradient_norm": 8.50425840326352e-06 + }, + { + "step": 380, + "loss": 2.3993168269953458e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.932883376161044e-07, + "gradient_norm": 8.5460051195696e-06 + }, + { + "step": 381, + "loss": 2.410085699011688e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.040572664758656e-07, + "gradient_norm": 5.2752347983187065e-06 + }, + { + "step": 382, + "loss": 2.4054329514910933e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9940449053356133e-07, + "gradient_norm": 8.127048204187304e-06 + }, + { + "step": 383, + "loss": 2.4008043055800954e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.947759583094012e-07, + "gradient_norm": 8.235675522882957e-06 + }, + { + "step": 384, + "loss": 2.4056550955720013e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.996266630361788e-07, + "gradient_norm": 5.576832336373627e-06 + }, + { + "step": 385, + "loss": 2.4069811388471862e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 3.0095270631136373e-07, + "gradient_norm": 6.798963113396894e-06 + }, + { + "step": 386, + "loss": 2.394707735220436e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8867935952803236e-07, + "gradient_norm": 7.984636795299593e-06 + }, + { + "step": 387, + "loss": 2.392714804955176e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.866863155759347e-07, + "gradient_norm": 6.266177024372155e-06 + }, + { + "step": 388, + "loss": 2.39619498643151e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9016652547397825e-07, + "gradient_norm": 6.56263136988855e-06 + }, + { + "step": 389, + "loss": 2.3965890250110533e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9056064931864967e-07, + "gradient_norm": 5.945717475697165e-06 + }, + { + "step": 390, + "loss": 2.3926038466015598e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8657538564402785e-07, + "gradient_norm": 7.246449513331754e-06 + }, + { + "step": 391, + "loss": 2.4001251404115465e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9409682156256167e-07, + "gradient_norm": 6.196235062816413e-06 + }, + { + "step": 392, + "loss": 2.3946320197865134e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.886035872506909e-07, + "gradient_norm": 5.064245215180563e-06 + }, + { + "step": 393, + "loss": 2.396401669102488e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9037320814495615e-07, + "gradient_norm": 7.515470770158572e-06 + }, + { + "step": 394, + "loss": 2.3940704068081686e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.880419742723461e-07, + "gradient_norm": 6.550245871039806e-06 + }, + { + "step": 395, + "loss": 2.397026037215255e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9099757625772327e-07, + "gradient_norm": 5.584516202361556e-06 + }, + { + "step": 396, + "loss": 2.39757218878367e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.915436425610096e-07, + "gradient_norm": 7.282973456312902e-06 + }, + { + "step": 397, + "loss": 2.3963129933690652e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.902846176766616e-07, + "gradient_norm": 7.68416157370666e-06 + }, + { + "step": 398, + "loss": 2.397066054982133e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9103756560289185e-07, + "gradient_norm": 6.571921403519809e-06 + }, + { + "step": 399, + "loss": 2.398574224571348e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9254587730065396e-07, + "gradient_norm": 8.114730007946491e-06 + }, + { + "step": 400, + "loss": 2.394544026174117e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.885155936382944e-07, + "gradient_norm": 7.570343768747989e-06 + }, + { + "step": 401, + "loss": 2.4023022433539154e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.962738108180929e-07, + "gradient_norm": 7.982631359482184e-06 + }, + { + "step": 402, + "loss": 2.399325694568688e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.932972336111561e-07, + "gradient_norm": 5.934272394370055e-06 + }, + { + "step": 403, + "loss": 2.3796301320544444e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.736017847837502e-07, + "gradient_norm": 7.259599897224689e-06 + }, + { + "step": 404, + "loss": 2.3902700831968104e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.842417075044068e-07, + "gradient_norm": 8.272686500276905e-06 + }, + { + "step": 405, + "loss": 2.393193426541984e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.871649371627427e-07, + "gradient_norm": 5.6141325330827385e-06 + }, + { + "step": 406, + "loss": 2.3833663362893276e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.773379890186334e-07, + "gradient_norm": 6.925019533809973e-06 + }, + { + "step": 407, + "loss": 2.391274847468594e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.852464149327716e-07, + "gradient_norm": 6.4944497353280894e-06 + }, + { + "step": 408, + "loss": 2.394739112787647e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.8871065183011524e-07, + "gradient_norm": 5.896238235436613e-06 + }, + { + "step": 409, + "loss": 2.403246980975382e-06, + "target_ce": 2.1060284325358225e-06, + "replay_kl": 2.9721849159614067e-07, + "gradient_norm": 5.364639946492389e-06 + }, + { + "step": 410, + "loss": 2.3513023279519984e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.850104863227898e-07, + "gradient_norm": 6.183908681123285e-06 + }, + { + "step": 411, + "loss": 2.348033376620151e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.81741506569233e-07, + "gradient_norm": 6.741078323102556e-06 + }, + { + "step": 412, + "loss": 2.352024466745206e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.857325966942881e-07, + "gradient_norm": 5.831494945596205e-06 + }, + { + "step": 413, + "loss": 2.35194943343231e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.8565750653797295e-07, + "gradient_norm": 6.845269126642961e-06 + }, + { + "step": 414, + "loss": 2.3478571620216826e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.8156520670563623e-07, + "gradient_norm": 5.829737347085029e-06 + }, + { + "step": 415, + "loss": 2.350545400986448e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.842535877789487e-07, + "gradient_norm": 7.5189095696259756e-06 + }, + { + "step": 416, + "loss": 2.346233259231667e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.799414176024584e-07, + "gradient_norm": 5.753843652200885e-06 + }, + { + "step": 417, + "loss": 2.342845391467563e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7655346457322594e-07, + "gradient_norm": 5.061320734967012e-06 + }, + { + "step": 418, + "loss": 2.3401191810989985e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.738273394697899e-07, + "gradient_norm": 7.967774763528723e-06 + }, + { + "step": 419, + "loss": 2.3458364921680186e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.795445936953911e-07, + "gradient_norm": 5.370035978558008e-06 + }, + { + "step": 420, + "loss": 2.340898618058418e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7460666274237155e-07, + "gradient_norm": 5.620191132038599e-06 + }, + { + "step": 421, + "loss": 2.3374361717287684e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.711441879910126e-07, + "gradient_norm": 7.1719373408996034e-06 + }, + { + "step": 422, + "loss": 2.3442769361281535e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7798495239039767e-07, + "gradient_norm": 5.263528692012187e-06 + }, + { + "step": 423, + "loss": 2.3424215669365367e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.761295831987809e-07, + "gradient_norm": 6.9678903855674434e-06 + }, + { + "step": 424, + "loss": 2.3377820070891175e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.714900801947806e-07, + "gradient_norm": 6.584486072824802e-06 + }, + { + "step": 425, + "loss": 2.3453812900697812e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7908930633202544e-07, + "gradient_norm": 5.445354872790631e-06 + }, + { + "step": 426, + "loss": 2.3387115106743295e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7241958377999254e-07, + "gradient_norm": 6.527012374135666e-06 + }, + { + "step": 427, + "loss": 2.3395568859996274e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7326495910529047e-07, + "gradient_norm": 5.257205884845462e-06 + }, + { + "step": 428, + "loss": 2.3551283447886817e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.888364463160542e-07, + "gradient_norm": 5.2833133850072045e-06 + }, + { + "step": 429, + "loss": 2.3448217234545154e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7852985340359737e-07, + "gradient_norm": 6.586185918422416e-06 + }, + { + "step": 430, + "loss": 2.3443153622793034e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7802337854154757e-07, + "gradient_norm": 5.315377165970858e-06 + }, + { + "step": 431, + "loss": 2.3471270651498344e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.808351950989163e-07, + "gradient_norm": 6.7979044615640305e-06 + }, + { + "step": 432, + "loss": 2.3508123376814183e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.845203539436625e-07, + "gradient_norm": 6.038320861989632e-06 + }, + { + "step": 433, + "loss": 2.3442737528966973e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7798176915894146e-07, + "gradient_norm": 4.7846833695075475e-06 + }, + { + "step": 434, + "loss": 2.345918801438529e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7962698823102983e-07, + "gradient_norm": 5.282578058540821e-06 + }, + { + "step": 435, + "loss": 2.344995436942554e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7870342478308885e-07, + "gradient_norm": 5.92190690440475e-06 + }, + { + "step": 436, + "loss": 2.3490688363381196e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.827768810220732e-07, + "gradient_norm": 6.6973107095691375e-06 + }, + { + "step": 437, + "loss": 2.3422978756570956e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.760059203410492e-07, + "gradient_norm": 5.402986971603241e-06 + }, + { + "step": 438, + "loss": 2.339515049243346e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.732231223490089e-07, + "gradient_norm": 6.7385176407697145e-06 + }, + { + "step": 439, + "loss": 2.3468173822038807e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.8052554057467205e-07, + "gradient_norm": 7.635387191839982e-06 + }, + { + "step": 440, + "loss": 2.346003839193145e-06, + "target_ce": 2.066291926894337e-06, + "replay_kl": 2.7971179861197015e-07, + "gradient_norm": 6.234293778106803e-06 + }, + { + "step": 441, + "loss": 2.2986171188676963e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.7206121444578457e-07, + "gradient_norm": 5.407990101957694e-06 + }, + { + "step": 442, + "loss": 2.3043535293254536e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.7779759648183244e-07, + "gradient_norm": 6.764048521290533e-06 + }, + { + "step": 443, + "loss": 2.3057305043039378e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.791746283037355e-07, + "gradient_norm": 6.264955572987674e-06 + }, + { + "step": 444, + "loss": 2.3030961529002525e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.765403621651785e-07, + "gradient_norm": 5.985002644592896e-06 + }, + { + "step": 445, + "loss": 2.2557962893188233e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6897691896010656e-07, + "gradient_norm": 7.574852588732028e-06 + }, + { + "step": 446, + "loss": 2.296249476785306e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.696936860502319e-07, + "gradient_norm": 5.3301073421607725e-06 + }, + { + "step": 447, + "loss": 2.259043412777828e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.722240992625302e-07, + "gradient_norm": 5.736731054639677e-06 + }, + { + "step": 448, + "loss": 2.297981382071157e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.71425591336083e-07, + "gradient_norm": 6.099809070292395e-06 + }, + { + "step": 449, + "loss": 2.2867768620926654e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6022107135759143e-07, + "gradient_norm": 5.064051038061734e-06 + }, + { + "step": 450, + "loss": 2.254004357382655e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6718507228906674e-07, + "gradient_norm": 6.68751908960985e-06 + }, + { + "step": 451, + "loss": 2.291671080456581e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.651151760346693e-07, + "gradient_norm": 7.034762347757351e-06 + }, + { + "step": 452, + "loss": 2.3037332539388444e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.771773210952233e-07, + "gradient_norm": 5.88834700465668e-06 + }, + { + "step": 453, + "loss": 2.300102551089367e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.735467319325835e-07, + "gradient_norm": 7.086976893333485e-06 + }, + { + "step": 454, + "loss": 2.293110583195812e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.665547071956098e-07, + "gradient_norm": 8.045910362852737e-06 + }, + { + "step": 455, + "loss": 2.2982846985541983e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.7172887939741486e-07, + "gradient_norm": 5.030687589169247e-06 + }, + { + "step": 456, + "loss": 2.2922586140339263e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.657027948771429e-07, + "gradient_norm": 7.652115527889691e-06 + }, + { + "step": 457, + "loss": 2.3044490262691397e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.778932639557752e-07, + "gradient_norm": 6.884783033456188e-06 + }, + { + "step": 458, + "loss": 2.2956132852414157e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6905732397608517e-07, + "gradient_norm": 6.828666300862096e-06 + }, + { + "step": 459, + "loss": 2.2878573417983716e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.613014657981694e-07, + "gradient_norm": 5.842251084686723e-06 + }, + { + "step": 460, + "loss": 2.302128905284917e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.755730292847147e-07, + "gradient_norm": 6.135657713457476e-06 + }, + { + "step": 461, + "loss": 2.2961257855058648e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.695699947707908e-07, + "gradient_norm": 6.391298484231811e-06 + }, + { + "step": 462, + "loss": 2.2928086309548235e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6625269811120233e-07, + "gradient_norm": 5.42291127203498e-06 + }, + { + "step": 463, + "loss": 2.2998374333838e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.732815289618884e-07, + "gradient_norm": 5.893227807973744e-06 + }, + { + "step": 464, + "loss": 2.254723085570731e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6790368679030507e-07, + "gradient_norm": 7.398126399493776e-06 + }, + { + "step": 465, + "loss": 2.288851646881085e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.622958277243015e-07, + "gradient_norm": 5.0768194341799244e-06 + }, + { + "step": 466, + "loss": 2.3075972421793267e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.810414798659622e-07, + "gradient_norm": 5.550689820665866e-06 + }, + { + "step": 467, + "loss": 2.2551496385858627e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.683301829620177e-07, + "gradient_norm": 6.558648237842135e-06 + }, + { + "step": 468, + "loss": 2.2549982077180175e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.681788089375914e-07, + "gradient_norm": 6.797376954637002e-06 + }, + { + "step": 469, + "loss": 2.286852122779237e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.602963036224537e-07, + "gradient_norm": 7.287414064194309e-06 + }, + { + "step": 470, + "loss": 2.288777750436566e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6222193127978244e-07, + "gradient_norm": 4.670107955462299e-06 + }, + { + "step": 471, + "loss": 2.295640570082469e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6908469408226665e-07, + "gradient_norm": 6.439820026571397e-06 + }, + { + "step": 472, + "loss": 2.3011739358480554e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.746179461610154e-07, + "gradient_norm": 6.443523034249665e-06 + }, + { + "step": 473, + "loss": 2.2872791305417195e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6072333980664553e-07, + "gradient_norm": 6.536067303386517e-06 + }, + { + "step": 474, + "loss": 2.293443913004012e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6688809384722845e-07, + "gradient_norm": 6.8131807893223595e-06 + }, + { + "step": 475, + "loss": 2.2971660200710176e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.706102293359436e-07, + "gradient_norm": 7.553288469352992e-06 + }, + { + "step": 476, + "loss": 2.2895660549693275e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.63010292655963e-07, + "gradient_norm": 8.744635124458e-06 + }, + { + "step": 477, + "loss": 2.2902477212483063e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.636917884046852e-07, + "gradient_norm": 5.138675533089554e-06 + }, + { + "step": 478, + "loss": 2.2933643322176067e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.668085130608233e-07, + "gradient_norm": 9.140143447439186e-06 + }, + { + "step": 479, + "loss": 2.2889689716976136e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.624130388539925e-07, + "gradient_norm": 7.121510861907154e-06 + }, + { + "step": 480, + "loss": 2.2840411020297324e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5748528287294903e-07, + "gradient_norm": 4.850468940276187e-06 + }, + { + "step": 481, + "loss": 2.2811457256466383e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5458984964643605e-07, + "gradient_norm": 6.935198143764865e-06 + }, + { + "step": 482, + "loss": 2.284272341057658e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5771657874429366e-07, + "gradient_norm": 5.4585484576819e-06 + }, + { + "step": 483, + "loss": 2.240462890767958e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.536435204092413e-07, + "gradient_norm": 6.115640644566156e-06 + }, + { + "step": 484, + "loss": 2.2819733658252517e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5541743298163055e-07, + "gradient_norm": 4.453404017112916e-06 + }, + { + "step": 485, + "loss": 2.244547886220971e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.57728487440545e-07, + "gradient_norm": 8.02320664661238e-06 + }, + { + "step": 486, + "loss": 2.251269961561775e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.6445070488989586e-07, + "gradient_norm": 5.994289040245349e-06 + }, + { + "step": 487, + "loss": 2.2921637992112665e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6560786636764533e-07, + "gradient_norm": 4.6218151510402095e-06 + }, + { + "step": 488, + "loss": 2.2462972992798313e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.594780426079524e-07, + "gradient_norm": 6.750821285095299e-06 + }, + { + "step": 489, + "loss": 2.286990593347582e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.6043468892567034e-07, + "gradient_norm": 4.862726200371981e-06 + }, + { + "step": 490, + "loss": 2.2495892153528985e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.627699586810195e-07, + "gradient_norm": 5.418395176093327e-06 + }, + { + "step": 491, + "loss": 2.294586465723114e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.680306465663307e-07, + "gradient_norm": 6.011419827700593e-06 + }, + { + "step": 492, + "loss": 2.286215021740645e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5965925942728063e-07, + "gradient_norm": 4.130537490709685e-06 + }, + { + "step": 493, + "loss": 2.285650680278195e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5909486112141167e-07, + "gradient_norm": 5.310855613060994e-06 + }, + { + "step": 494, + "loss": 2.289028088853229e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.62472241274736e-07, + "gradient_norm": 6.132647740741959e-06 + }, + { + "step": 495, + "loss": 2.2754202291253023e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.488644383902283e-07, + "gradient_norm": 4.3908003135584295e-06 + }, + { + "step": 496, + "loss": 2.2850538243801566e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5849797680166375e-07, + "gradient_norm": 4.6359255065908656e-06 + }, + { + "step": 497, + "loss": 2.2858228021505056e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5926686930688447e-07, + "gradient_norm": 6.4440864662174135e-06 + }, + { + "step": 498, + "loss": 2.2839267330709845e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5737080022736336e-07, + "gradient_norm": 5.85859379498288e-06 + }, + { + "step": 499, + "loss": 2.2841472855361644e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5759138111425273e-07, + "gradient_norm": 4.472231921681669e-06 + }, + { + "step": 500, + "loss": 2.293232228112174e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.666762384251342e-07, + "gradient_norm": 4.806932338397019e-06 + }, + { + "step": 501, + "loss": 2.28889530262677e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.623393982048583e-07, + "gradient_norm": 5.606976174021838e-06 + }, + { + "step": 502, + "loss": 2.2497681584354723e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.629487880767556e-07, + "gradient_norm": 6.073231816117186e-06 + }, + { + "step": 503, + "loss": 2.2458305011241464e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5901110234372027e-07, + "gradient_norm": 4.6596092033723835e-06 + }, + { + "step": 504, + "loss": 2.2467611415777355e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.599417427973094e-07, + "gradient_norm": 6.160962129797554e-06 + }, + { + "step": 505, + "loss": 2.277065732414485e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.505097711491544e-07, + "gradient_norm": 5.662193871103227e-06 + }, + { + "step": 506, + "loss": 2.2819665446149884e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.554106401930767e-07, + "gradient_norm": 4.300076398067176e-06 + }, + { + "step": 507, + "loss": 2.2822375740361167e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5568178330104274e-07, + "gradient_norm": 4.793883817910682e-06 + }, + { + "step": 508, + "loss": 2.28505814447999e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.5850226847978774e-07, + "gradient_norm": 5.868624157301383e-06 + }, + { + "step": 509, + "loss": 2.275901806569891e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.4934598741310765e-07, + "gradient_norm": 5.0764988372975495e-06 + }, + { + "step": 510, + "loss": 2.284582024003612e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.580260627382813e-07, + "gradient_norm": 6.6494035309005994e-06 + }, + { + "step": 511, + "loss": 2.274218104503234e-06, + "target_ce": 2.0265558760002023e-06, + "replay_kl": 2.476622853464505e-07, + "gradient_norm": 6.2822759900882374e-06 + }, + { + "step": 512, + "loss": 2.2413573788071517e-06, + "target_ce": 1.9868193703587167e-06, + "replay_kl": 2.5453795160501613e-07, + "gradient_norm": 7.3941118898801506e-06 + } +] diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/run.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/run.json new file mode 100644 index 0000000000000000000000000000000000000000..045bf02091569628071252b45df240b9d2a76413 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/lr0.0001-sham/run.json @@ -0,0 +1,25 @@ +{ + "case_id": "second_strict-01", + "arm": "sham", + "lr": 0.0001, + "parent_model_sha256": "0df6e872d8420a13268add38dfcaaeb126da7ee0095c64feb3f751dfcd4f487b", + "editable_parameters": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "optimizer": "Adam, fresh state, zero weight decay", + "sampling": "same fixed full replay batch on every update; no dropout", + "old_fact_sha256": "9b0cc31775291a5b313ca3fe42d8ae590df1f99682dfd7b16388adccba347a62", + "new_fact_sha256": "54aa53453100576a49fb6ce13c41346f77ab548cda92cc94af082f7701a2ffac", + "target_batch_sha256": "10c5da9d2f0027cb3c351cdc0759303467938a7235a6844be1076b65b17b35a0", + "replay_batch_sha256": "0d46da813c9a397be08ffc61d2c623064a225671c6f49e7c5c4b9780483b6ed3", + "parent_reference_sha256": "0728759f72364f9249fbfc755940f7fc699a4b52763d24c19ceeab9a0e1150bc", + "nodes": [ + 0, + 32, + 128, + 512 + ] +} diff --git a/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/parent-metrics.json b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/parent-metrics.json new file mode 100644 index 0000000000000000000000000000000000000000..e13d62a61d6d4a8ccbbc71976a00d2db39e2df97 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-aligned_0.3-lr0.0001/second_strict-01/parent-metrics.json @@ -0,0 +1,175 @@ +{ + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000896052282769233 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.707046508789062 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.97265625, + "accuracy": 0.97265625, + "answer_nll": 0.10936781018972397 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.8562992125984252, + "accuracy": 0.8562992125984252, + "answer_nll": 0.5300208330154419 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.189226150512695, + "changed_answer_n": 4, + "old_answer_accuracy": 0.75, + "parent_correct_n": 3, + "parent_correct_coverage": 0.75, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.9652509652509652, + "accuracy": 0.9652509652509652, + "answer_nll": 0.1692010760307312 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.315158629557118e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001229818444699049 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031055815634317696 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003805416636168957 + } +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/audit.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/audit.json new file mode 100644 index 0000000000000000000000000000000000000000..6048a2b674d918b1e654a2a2123216e17271e651 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/audit.json @@ -0,0 +1,8 @@ +{ + "passed": true, + "nodes": 64, + "array_elements": 908008, + "max_nll_error": 0.0, + "case_sha256": "a00a8d7805923ac7c504eba611c7bcd90409bca9116591e25dae0a810fc4fa31", + "finished_utc": "2026-10-03T18:43:33.353008+00:00" +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/cases.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/cases.json new file mode 100644 index 0000000000000000000000000000000000000000..3e434288785451f3fb2ca4f24efccb536d62b60f --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/cases.json @@ -0,0 +1,466 @@ +[ + { + "case_id": "first_familiar-00", + "role": "first", + "stratum": "familiar", + "old_fact": [ + 57, + 15, + 316 + ], + "new_fact": [ + 57, + 15, + 306 + ], + "replay_indices": [ + 102, + 105, + 152, + 154, + 171, + 173, + 178, + 183, + 215, + 249, + 252, + 262, + 334, + 395, + 414, + 472, + 493, + 506, + 524, + 564, + 570, + 677, + 693, + 696, + 754, + 865, + 902, + 940, + 958, + 992, + 996, + 1008 + ], + "affected_untrained_n": { + "D_first_familiar": 2, + "S_same_answer_first_familiar": 0, + "D_first_strict": 0, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 2, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 2 + } + }, + { + "case_id": "first_familiar-01", + "role": "first", + "stratum": "familiar", + "old_fact": [ + 83, + 14, + 317 + ], + "new_fact": [ + 83, + 14, + 291 + ], + "replay_indices": [ + 15, + 61, + 92, + 109, + 172, + 193, + 222, + 271, + 342, + 379, + 380, + 456, + 477, + 480, + 512, + 526, + 527, + 552, + 553, + 557, + 561, + 596, + 641, + 656, + 691, + 761, + 817, + 829, + 866, + 904, + 967, + 1016 + ], + "affected_untrained_n": { + "D_first_familiar": 3, + "S_same_answer_first_familiar": 0, + "D_first_strict": 0, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 1, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 1 + } + }, + { + "case_id": "first_strict-00", + "role": "first", + "stratum": "strict", + "old_fact": [ + 92, + 15, + 344 + ], + "new_fact": [ + 92, + 15, + 351 + ], + "replay_indices": [ + 17, + 39, + 49, + 51, + 84, + 87, + 88, + 142, + 231, + 255, + 268, + 277, + 289, + 422, + 483, + 488, + 494, + 519, + 559, + 589, + 630, + 673, + 678, + 719, + 754, + 799, + 839, + 885, + 935, + 957, + 1015, + 1016 + ], + "affected_untrained_n": { + "D_first_familiar": 0, + "S_same_answer_first_familiar": 0, + "D_first_strict": 4, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 0, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 0 + } + }, + { + "case_id": "first_strict-01", + "role": "first", + "stratum": "strict", + "old_fact": [ + 113, + 16, + 348 + ], + "new_fact": [ + 113, + 16, + 367 + ], + "replay_indices": [ + 31, + 64, + 70, + 101, + 118, + 154, + 210, + 307, + 344, + 359, + 364, + 382, + 405, + 413, + 420, + 462, + 522, + 537, + 671, + 709, + 761, + 762, + 770, + 822, + 823, + 849, + 908, + 910, + 980, + 994, + 1002, + 1020 + ], + "affected_untrained_n": { + "D_first_familiar": 0, + "S_same_answer_first_familiar": 0, + "D_first_strict": 4, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 0, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 0 + } + }, + { + "case_id": "second_familiar-00", + "role": "second", + "stratum": "familiar", + "old_fact": [ + 330, + 19, + 425 + ], + "new_fact": [ + 330, + 19, + 430 + ], + "replay_indices": [ + 55, + 78, + 107, + 163, + 207, + 219, + 228, + 270, + 274, + 277, + 340, + 383, + 385, + 433, + 453, + 475, + 543, + 551, + 618, + 669, + 671, + 681, + 762, + 841, + 857, + 880, + 893, + 977, + 985, + 998, + 1013, + 1017 + ], + "affected_untrained_n": { + "D_second_familiar": 3, + "S_same_answer_second_familiar": 0, + "D_second_strict": 0, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 1, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 2 + } + }, + { + "case_id": "second_familiar-01", + "role": "second", + "stratum": "familiar", + "old_fact": [ + 325, + 17, + 466 + ], + "new_fact": [ + 325, + 17, + 437 + ], + "replay_indices": [ + 5, + 151, + 184, + 191, + 246, + 251, + 260, + 293, + 295, + 377, + 450, + 456, + 460, + 472, + 527, + 590, + 600, + 713, + 726, + 757, + 768, + 781, + 796, + 830, + 846, + 854, + 877, + 883, + 920, + 930, + 988, + 1013 + ], + "affected_untrained_n": { + "D_second_familiar": 2, + "S_same_answer_second_familiar": 0, + "D_second_strict": 0, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 1, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 1 + } + }, + { + "case_id": "second_strict-00", + "role": "second", + "stratum": "strict", + "old_fact": [ + 356, + 19, + 429 + ], + "new_fact": [ + 356, + 19, + 407 + ], + "replay_indices": [ + 26, + 54, + 92, + 106, + 168, + 180, + 185, + 246, + 285, + 331, + 344, + 362, + 395, + 454, + 516, + 559, + 561, + 568, + 593, + 604, + 628, + 647, + 706, + 713, + 826, + 886, + 893, + 920, + 925, + 946, + 982, + 1017 + ], + "affected_untrained_n": { + "D_second_familiar": 0, + "S_same_answer_second_familiar": 0, + "D_second_strict": 3, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 0, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 0 + } + }, + { + "case_id": "second_strict-01", + "role": "second", + "stratum": "strict", + "old_fact": [ + 343, + 18, + 425 + ], + "new_fact": [ + 343, + 18, + 408 + ], + "replay_indices": [ + 10, + 41, + 62, + 97, + 121, + 156, + 320, + 365, + 368, + 387, + 457, + 505, + 556, + 604, + 618, + 624, + 629, + 699, + 727, + 746, + 755, + 774, + 796, + 810, + 815, + 874, + 884, + 901, + 947, + 973, + 1003, + 1006 + ], + "affected_untrained_n": { + "D_second_familiar": 0, + "S_same_answer_second_familiar": 0, + "D_second_strict": 4, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 0, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 0 + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/complete.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/complete.json new file mode 100644 index 0000000000000000000000000000000000000000..631c764bc770a7cfa253399835ac4b4e32fbb08e --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/complete.json @@ -0,0 +1,3114 @@ +{ + "status": "complete", + "branches": [ + { + "case_id": "first_familiar-00", + "role": "first", + "stratum": "familiar", + "lr": 3e-05, + "arm": "edit", + "path": "first_familiar-00/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.754300117492676 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.0437283536884934e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3381201044386423, + "accuracy": 0.3381201044386423, + "answer_nll": 3.4997341632843018 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.953838348388672, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.068359375, + "accuracy": 0.068359375, + "answer_nll": 6.092116832733154 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.3424124513618677, + "accuracy": 0.3424124513618677, + "answer_nll": 3.6352505683898926 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.953838348388672, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021297311468515545 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.605005264282227, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0020942005794495344 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002301071654073894 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9989909182643795, + "accuracy": 0.9989909182643795, + "answer_nll": 0.004260094836354256 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "38cf38e799253275d9d25d7ee38c99a126d44915ea145eb57c0e9dc707580d38", + "delta_l2": 0.34423500299453735, + "tensor_file_sha256": "e3439f738c7483ed9aff0b71e85fcbce827e7a5b83483512a07b5c1e33aa15f2" + }, + { + "case_id": "first_familiar-00", + "role": "first", + "stratum": "familiar", + "lr": 3e-05, + "arm": "sham", + "path": "first_familiar-00/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.5497195136049413e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.960634231567383 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3524804177545692, + "accuracy": 0.3524804177545692, + "answer_nll": 3.4264304637908936 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.890569686889648, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.076171875, + "accuracy": 0.076171875, + "answer_nll": 6.296582221984863 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.35797665369649806, + "accuracy": 0.35797665369649806, + "answer_nll": 3.508169174194336 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.890569686889648, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011818408529506996 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.187925338745117, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00017772510182112455 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018935257685370743 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002512862265575677 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "22e2d1e0d3a1ea77ceec670f85a6faf66e24397c0cb0060200dd1436c847d2e0", + "delta_l2": 0.36178863048553467, + "tensor_file_sha256": "234f725d8e8032b7215ba96c0f8c437ce953e791b5477d69b18bf854335323c4" + }, + { + "case_id": "first_familiar-01", + "role": "first", + "stratum": "familiar", + "lr": 3e-05, + "arm": "edit", + "path": "first_familiar-01/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.353710174560547 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.496695277746767e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3464052287581699, + "accuracy": 0.3464052287581699, + "answer_nll": 3.4535720348358154 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 3.8661110401153564, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.076171875, + "accuracy": 0.076171875, + "answer_nll": 6.2282304763793945 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.36046511627906974, + "accuracy": 0.36046511627906974, + "answer_nll": 3.5151524543762207 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.5785345435142517, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026308911037631333 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.598171710968018, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002590824442449957 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023043468536343426 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.004796825349330902 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "639385f6926fb1d51cd6cbc51dd096effb0819d58bf9cd2eece56a57488d6a0c", + "delta_l2": 0.3421005606651306, + "tensor_file_sha256": "80669f6544402d4d4801f6a72b7aec6bee53a996d2d99efb573d4567a3382f00" + }, + { + "case_id": "first_familiar-01", + "role": "first", + "stratum": "familiar", + "lr": 3e-05, + "arm": "sham", + "path": "first_familiar-01/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.099436753473128e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.152912139892578 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.37254901960784315, + "accuracy": 0.37254901960784315, + "answer_nll": 3.292424201965332 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.437933921813965, + "changed_answer_n": 3, + "old_answer_accuracy": 0.3333333333333333, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.252358436584473 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.37209302325581395, + "accuracy": 0.37209302325581395, + "answer_nll": 3.400092124938965 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.544145584106445, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.319252421846613e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.556318283081055, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019079547200817615 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001956458145286888 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023159198462963104 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "d7e4e775bdf0e36b7e23bb40f4fd3deb8f814c0cc5acc0d6e41df959feea6205", + "delta_l2": 0.30632081627845764, + "tensor_file_sha256": "b87bc34b9fe714c3a4af659b0ed405e759c471777f277552700b71d8faea8aa8" + }, + { + "case_id": "first_strict-00", + "role": "first", + "stratum": "strict", + "lr": 3e-05, + "arm": "edit", + "path": "first_strict-00/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.30122184753418 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.703165414975956e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.35546875, + "accuracy": 0.35546875, + "answer_nll": 3.2593472003936768 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07480314960629922, + "accuracy": 0.07480314960629922, + "answer_nll": 6.169589996337891 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.193668365478516, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3783783783783784, + "accuracy": 0.3783783783783784, + "answer_nll": 3.2258706092834473 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00014034048945177346 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001888380793388933 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00025857597938738763 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.013321982696652412 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "e6808b97c6d15fa8572983da495edbd1d2d2da381f812c36777455b6b6f6e1ee", + "delta_l2": 0.31818798184394836, + "tensor_file_sha256": "7717529b979b7fe343fe9f490aef77317624cd8984efffc8bf3e8800d6f3b50f" + }, + { + "case_id": "first_strict-00", + "role": "first", + "stratum": "strict", + "lr": 3e-05, + "arm": "sham", + "path": "first_strict-00/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.764281842042692e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.699031829833984 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3736979166666667, + "accuracy": 0.3736979166666667, + "answer_nll": 3.3016624450683594 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 5.996422290802002 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.699576377868652, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3745173745173745, + "accuracy": 0.3745173745173745, + "answer_nll": 3.383227825164795 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.492250344716012e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012995870201848447 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002056107041426003 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023839202185627073 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "fdb6b24b2d045e2c807f2e222da9f8bdd3017ea4f917ecd73e5de8f23db195ec", + "delta_l2": 0.2573935091495514, + "tensor_file_sha256": "416a782fee6df798b780d6061d9b3dc0032ace4720c12be2a9c621e5962842e6" + }, + { + "case_id": "first_strict-01", + "role": "first", + "stratum": "strict", + "lr": 3e-05, + "arm": "edit", + "path": "first_strict-01/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.078761100769043 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012683063687290996 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3606770833333333, + "accuracy": 0.3606770833333333, + "answer_nll": 3.3178493976593018 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 6.169949531555176 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.25, + "accuracy": 0.25, + "answer_nll": 2.681568145751953, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.25 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.3993663787841797 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00014441725215874612 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004674982628785074 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00024338701041415334 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.012378166429698467 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "4e595a1999086af168c5abe857d00346a390bec71161ade0f1e2afdc09e05989", + "delta_l2": 0.31149399280548096, + "tensor_file_sha256": "65543ba9b98b94cc33ad7c54b91f634c49c19b031c1e23557196b11251a25a0e" + }, + { + "case_id": "first_strict-01", + "role": "first", + "stratum": "strict", + "lr": 3e-05, + "arm": "sham", + "path": "first_strict-01/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.0371154530730564e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.703978538513184 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3658854166666667, + "accuracy": 0.3658854166666667, + "answer_nll": 3.290637969970703 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07677165354330709, + "accuracy": 0.07677165354330709, + "answer_nll": 6.145664691925049 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.082693099975586, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.36293436293436293, + "accuracy": 0.36293436293436293, + "answer_nll": 3.3474626541137695 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.899228851078078e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023111338668968529 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018943121540360153 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000244557682890445 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "e7123f1d1369f3718573f2b0c72507fa3289c46e9673b867c8b41bcee38bc84a", + "delta_l2": 0.3038617670536041, + "tensor_file_sha256": "2456897b7df269538da39d56d553da0142699c13ac8192443fdda00148fdfd77" + }, + { + "case_id": "second_familiar-00", + "role": "second", + "stratum": "familiar", + "lr": 3e-05, + "arm": "edit", + "path": "second_familiar-00/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.885879516601562 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.682172998902388e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3477124183006536, + "accuracy": 0.3477124183006536, + "answer_nll": 3.3923885822296143 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 1.7274476289749146, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.099609375, + "accuracy": 0.099609375, + "answer_nll": 5.858715534210205 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.31007751937984496, + "accuracy": 0.31007751937984496, + "answer_nll": 3.564267873764038 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.6903015971183777, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0013571196468546987 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 2.3423266410827637, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005857495707459748 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021349720191210508 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9989909182643795, + "accuracy": 0.9989909182643795, + "answer_nll": 0.004706576466560364 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "c8e44199860c774c9c6f6f39783154ab64ebbb6ad3aca1c3de0dba43c3014da8", + "delta_l2": 0.32790958881378174, + "tensor_file_sha256": "a7bb64c0a90faa141a5c3cd050372b82a52e86372e0db0fe542fb8d6fa012ec3" + }, + { + "case_id": "second_familiar-00", + "role": "second", + "stratum": "familiar", + "lr": 3e-05, + "arm": "sham", + "path": "second_familiar-00/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.960462772236497e-07 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 21.54103660583496 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.35947712418300654, + "accuracy": 0.35947712418300654, + "answer_nll": 3.33408260345459 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.613104820251465, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.221883773803711 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.34108527131782945, + "accuracy": 0.34108527131782945, + "answer_nll": 3.418719530105591 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.615913391113281, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010197576193604618 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.288827896118164, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001632224302738905 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000193738320376724 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002256343577755615 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "384d9ab2217a2d48362bc1c5be83ece66e0bb836f5d7b9625637755cc93348ff", + "delta_l2": 0.3132157027721405, + "tensor_file_sha256": "b8a8e8fd2c18be583b96b409d2139c715c65f6df7b30c28510b644f2553704fe" + }, + { + "case_id": "second_familiar-01", + "role": "second", + "stratum": "familiar", + "lr": 3e-05, + "arm": "edit", + "path": "second_familiar-01/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.54419994354248 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.002696055569686e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3563968668407311, + "accuracy": 0.3563968668407311, + "answer_nll": 3.4559764862060547 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.470273971557617, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.08203125, + "accuracy": 0.08203125, + "answer_nll": 6.195361137390137 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3798449612403101, + "accuracy": 0.3798449612403101, + "answer_nll": 3.5753798484802246 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.956199645996094, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004640327824745327 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.494788408279419, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0016690663760527968 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002567335614003241 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.01165843103080988 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "f9a1798dc682c77ef219e8d291923e7018f8a12a19bfd95b12a169e0be689d12", + "delta_l2": 0.308734267950058, + "tensor_file_sha256": "a4072cfbc21814ab05727395d4f2290ea092a58e8541f2e079bf3166cdab98d8" + }, + { + "case_id": "second_familiar-01", + "role": "second", + "stratum": "familiar", + "lr": 3e-05, + "arm": "sham", + "path": "second_familiar-01/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.1920922133867862e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.485755920410156 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3524804177545692, + "accuracy": 0.3524804177545692, + "answer_nll": 3.356189012527466 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.692482948303223, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.080078125, + "accuracy": 0.080078125, + "answer_nll": 6.060821533203125 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.35271317829457366, + "accuracy": 0.35271317829457366, + "answer_nll": 3.454033374786377 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.928817272186279, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.859447891358286e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.009811401367188, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026120684924535453 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023294429411180317 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00024426777963526547 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "eabd845bc4023dc8edbc3f54c2588686102b89f67990510decbf1a75fc203aee", + "delta_l2": 0.3082661032676697, + "tensor_file_sha256": "8a4f959efd339cb978d0dc332a1a62877b5507680552898b9735838c48013df8" + }, + { + "case_id": "second_strict-00", + "role": "second", + "stratum": "strict", + "lr": 3e-05, + "arm": "edit", + "path": "second_strict-00/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.780613899230957 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.829164365422912e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3216145833333333, + "accuracy": 0.3216145833333333, + "answer_nll": 3.789095640182495 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.08447937131630648, + "accuracy": 0.08447937131630648, + "answer_nll": 6.1299357414245605 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 0.780112087726593, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.32432432432432434, + "accuracy": 0.32432432432432434, + "answer_nll": 3.7816081047058105 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 0.99609375, + "accuracy": 0.99609375, + "answer_nll": 0.01660745032131672 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005940796690993011 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021518011635635048 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.02114463597536087 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "6493d65b3adacf1b295f568ee90d3c6bdf9fc116d6f1f23f327544d724bb0a1d", + "delta_l2": 0.3602619767189026, + "tensor_file_sha256": "bb7cb7922fead0aa2cd2877db2ffeb58ea66fedb2a78a494400b5f91f9074a61" + }, + { + "case_id": "second_strict-00", + "role": "second", + "stratum": "strict", + "lr": 3e-05, + "arm": "sham", + "path": "second_strict-00/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.3841830625315197e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.721790313720703 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.35546875, + "accuracy": 0.35546875, + "answer_nll": 3.3603203296661377 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.08055009823182711, + "accuracy": 0.08055009823182711, + "answer_nll": 6.126249313354492 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.22745132446289, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.37065637065637064, + "accuracy": 0.37065637065637064, + "answer_nll": 3.4195468425750732 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010950291471090168 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00042052031494677067 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018176966113969684 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002332507137907669 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "a3ed3558708604f2030bb0cd63199981ef78355b8e4855535d0825eae5e686c8", + "delta_l2": 0.321662962436676, + "tensor_file_sha256": "f09945bc74423b491481a6c290a75d83ce00928dd2f2c3b71c9f37cf663bfa0e" + }, + { + "case_id": "second_strict-01", + "role": "second", + "stratum": "strict", + "lr": 3e-05, + "arm": "edit", + "path": "second_strict-01/lr3e-05-edit", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.680261611938477 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.753696753643453e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3567708333333333, + "accuracy": 0.3567708333333333, + "answer_nll": 3.257891893386841 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.09251968503937008, + "accuracy": 0.09251968503937008, + "answer_nll": 5.869877338409424 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.890652656555176, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.36293436293436293, + "accuracy": 0.36293436293436293, + "answer_nll": 3.3377602100372314 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005692985141649842 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0019438707968220115 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022011849796399474 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0016470096306875348 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "9f5a640de8eb011c41ecf7235510569bb9d8bb63457ce19fb96a44aae685c1d6", + "delta_l2": 0.3386050760746002, + "tensor_file_sha256": "69700e3c41e709defb542fb0a850edfd9df7e0572104b74f8252cad2d8b46a03" + }, + { + "case_id": "second_strict-01", + "role": "second", + "stratum": "strict", + "lr": 3e-05, + "arm": "sham", + "path": "second_strict-01/lr3e-05-sham", + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.960462772236497e-07 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 25.786056518554688 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.36328125, + "accuracy": 0.36328125, + "answer_nll": 3.3221004009246826 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08661417322834646, + "accuracy": 0.08661417322834646, + "answer_nll": 6.126580238342285 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.776044845581055, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3667953667953668, + "accuracy": 0.3667953667953668, + "answer_nll": 3.3821592330932617 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.087142097996548e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0006123624043539166 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019500541384331882 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022667762823402882 + } + }, + "steps": 512, + "changed_tensors": [ + "blocks.0.mlp.up.weight", + "blocks.0.mlp.up.bias", + "blocks.0.mlp.down.weight", + "blocks.0.mlp.down.bias" + ], + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "final_model_sha256": "c57b2cb4867e4a0a59558435dfcb824ae2c2a4412c967c372bd8232a7c48e965", + "delta_l2": 0.3043364882469177, + "tensor_file_sha256": "3df62cab0faa8fa03a57994f4441e341a22d395032fc8a2ff9477870c9d6f7bf" + } + ], + "updates": 8192, + "training_seconds": 28.43893926218152, + "wall_seconds": 46.16467712074518, + "finished_utc": "2026-10-03T18:43:25.933773+00:00", + "case_sha256": "a00a8d7805923ac7c504eba611c7bcd90409bca9116591e25dae0a810fc4fa31" +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-command.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-command.json new file mode 100644 index 0000000000000000000000000000000000000000..8512867dbf82442013cbd84c50806558af62f35d --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-command.json @@ -0,0 +1,66 @@ +{ + "name": "lm-interface-c0d2e121c64ba83ff40b", + "physical_gpu": 5, + "command": [ + "docker", + "--context", + "lm-memory", + "run", + "--name", + "lm-interface-c0d2e121c64ba83ff40b", + "--label", + "project=llm-memory-editability", + "--label", + "batch=interface-editing-development-v1", + "--network=none", + "--gpus", + "device=5", + "--cpus", + "4", + "--memory", + "16g", + "--shm-size=1g", + "--read-only", + "--tmpfs", + "/tmp:rw,size=2g", + "--mount", + "type=bind,src=/ossfs/workspace/llm-memory-editability,dst=/ossfs/workspace/llm-memory-editability,readonly", + "--mount", + "type=bind,src=/ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05,dst=/ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05", + "--workdir", + "/ossfs/workspace/llm-memory-editability", + "--env", + "MEMORY_INTERFACE_CONTAINER=1", + "--env", + "PHYSICAL_GPU=5", + "--env", + "PYTHONDONTWRITEBYTECODE=1", + "--env", + "OMP_NUM_THREADS=1", + "--env", + "MKL_NUM_THREADS=1", + "--env", + "PYTHONPATH=/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/source/src", + "--env", + "PYTHONDONTWRITEBYTECODE=1", + "--env", + "XDG_CACHE_HOME=/tmp/cache", + "--env", + "TORCH_HOME=/tmp/torch", + "--env", + "TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor", + "--env", + "TRITON_CACHE_DIR=/tmp/triton", + "sha256:bd2a622ec8273f54786cd4029f55b717bcc488afeb688bee4f98c0bd5127bfe5", + "/opt/conda/bin/python", + "-u", + "/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/source/scripts/run_memory_interface_next.py", + "container-worker", + "--config", + "/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/frozen-config.json", + "--index", + "4", + "--gpu", + "0" + ] +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-inspect.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-inspect.json new file mode 100644 index 0000000000000000000000000000000000000000..654a6c5d3f072706d1b25cee5da3047ba6c92dcd --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-inspect.json @@ -0,0 +1,465 @@ +[ + { + "Id": "e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43", + "Created": "2026-10-03T18:42:37.078511719Z", + "Path": "/opt/conda/bin/python", + "Args": [ + "-u", + "/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/source/scripts/run_memory_interface_next.py", + "container-worker", + "--config", + "/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/frozen-config.json", + "--index", + "4", + "--gpu", + "0" + ], + "State": { + "Status": "exited", + "Running": false, + "Paused": false, + "Restarting": false, + "OOMKilled": false, + "Dead": false, + "Pid": 0, + "ExitCode": 0, + "Error": "", + "StartedAt": "2026-10-03T18:42:37.090014683Z", + "FinishedAt": "2026-10-03T18:43:34.416000548Z" + }, + "Image": "sha256:bd2a622ec8273f54786cd4029f55b717bcc488afeb688bee4f98c0bd5127bfe5", + "ResolvConfPath": "/workspaces/docker-lm-memory/containers/e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43/resolv.conf", + "HostnamePath": "/workspaces/docker-lm-memory/containers/e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43/hostname", + "HostsPath": "/workspaces/docker-lm-memory/containers/e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43/hosts", + "LogPath": "/workspaces/docker-lm-memory/containers/e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43/e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43-json.log", + "Name": "/lm-interface-c0d2e121c64ba83ff40b", + "RestartCount": 0, + "Driver": "overlay2", + "Platform": "linux", + "MountLabel": "", + "ProcessLabel": "", + "AppArmorProfile": "", + "ExecIDs": null, + "HostConfig": { + "Binds": null, + "ContainerIDFile": "", + "LogConfig": { + "Type": "json-file", + "Config": { + "max-file": "3", + "max-size": "20m" + } + }, + "NetworkMode": "none", + "PortBindings": {}, + "RestartPolicy": { + "Name": "no", + "MaximumRetryCount": 0 + }, + "AutoRemove": false, + "VolumeDriver": "", + "VolumesFrom": null, + "ConsoleSize": [ + 0, + 0 + ], + "CapAdd": null, + "CapDrop": null, + "CgroupnsMode": "host", + "Dns": null, + "DnsOptions": [], + "DnsSearch": [], + "ExtraHosts": null, + "GroupAdd": null, + "IpcMode": "private", + "Cgroup": "", + "Links": null, + "OomScoreAdj": 0, + "PidMode": "", + "Privileged": false, + "PublishAllPorts": false, + "ReadonlyRootfs": true, + "SecurityOpt": null, + "Tmpfs": { + "/tmp": "rw,size=2g" + }, + "UTSMode": "", + "UsernsMode": "", + "ShmSize": 1073741824, + "Runtime": "runc", + "Isolation": "", + "CpuShares": 0, + "Memory": 17179869184, + "NanoCpus": 4000000000, + "CgroupParent": "", + "BlkioWeight": 0, + "BlkioWeightDevice": [], + "BlkioDeviceReadBps": [], + "BlkioDeviceWriteBps": [], + "BlkioDeviceReadIOps": [], + "BlkioDeviceWriteIOps": [], + "CpuPeriod": 0, + "CpuQuota": 0, + "CpuRealtimePeriod": 0, + "CpuRealtimeRuntime": 0, + "CpusetCpus": "", + "CpusetMems": "", + "Devices": [], + "DeviceCgroupRules": null, + "DeviceRequests": [ + { + "Driver": "", + "Count": 0, + "DeviceIDs": [ + "5" + ], + "Capabilities": [ + [ + "gpu" + ] + ], + "Options": {} + } + ], + "MemoryReservation": 0, + "MemorySwap": 34359738368, + "MemorySwappiness": null, + "OomKillDisable": false, + "PidsLimit": null, + "Ulimits": null, + "CpuCount": 0, + "CpuPercent": 0, + "IOMaximumIOps": 0, + "IOMaximumBandwidth": 0, + "Mounts": [ + { + "Type": "bind", + "Source": "/ossfs/workspace/llm-memory-editability", + "Target": "/ossfs/workspace/llm-memory-editability", + "ReadOnly": true + }, + { + "Type": "bind", + "Source": "/ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05", + "Target": "/ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05" + } + ], + "MaskedPaths": [ + "/proc/acpi", + "/proc/asound", + "/proc/interrupts", + "/proc/kcore", + "/proc/keys", + "/proc/latency_stats", + "/proc/sched_debug", + "/proc/scsi", + "/proc/timer_list", + "/proc/timer_stats", + "/sys/devices/virtual/powercap", + "/sys/firmware", + "/sys/devices/system/cpu/cpu0/thermal_throttle", + "/sys/devices/system/cpu/cpu1/thermal_throttle", + "/sys/devices/system/cpu/cpu2/thermal_throttle", + "/sys/devices/system/cpu/cpu3/thermal_throttle", + "/sys/devices/system/cpu/cpu4/thermal_throttle", + "/sys/devices/system/cpu/cpu5/thermal_throttle", + "/sys/devices/system/cpu/cpu6/thermal_throttle", + "/sys/devices/system/cpu/cpu7/thermal_throttle", + "/sys/devices/system/cpu/cpu8/thermal_throttle", + "/sys/devices/system/cpu/cpu9/thermal_throttle", + "/sys/devices/system/cpu/cpu10/thermal_throttle", + "/sys/devices/system/cpu/cpu11/thermal_throttle", + "/sys/devices/system/cpu/cpu12/thermal_throttle", + "/sys/devices/system/cpu/cpu13/thermal_throttle", + "/sys/devices/system/cpu/cpu14/thermal_throttle", + "/sys/devices/system/cpu/cpu15/thermal_throttle", + "/sys/devices/system/cpu/cpu16/thermal_throttle", + "/sys/devices/system/cpu/cpu17/thermal_throttle", + "/sys/devices/system/cpu/cpu18/thermal_throttle", + "/sys/devices/system/cpu/cpu19/thermal_throttle", + "/sys/devices/system/cpu/cpu20/thermal_throttle", + "/sys/devices/system/cpu/cpu21/thermal_throttle", + "/sys/devices/system/cpu/cpu22/thermal_throttle", + "/sys/devices/system/cpu/cpu23/thermal_throttle", + "/sys/devices/system/cpu/cpu24/thermal_throttle", + "/sys/devices/system/cpu/cpu25/thermal_throttle", + "/sys/devices/system/cpu/cpu26/thermal_throttle", + "/sys/devices/system/cpu/cpu27/thermal_throttle", + "/sys/devices/system/cpu/cpu28/thermal_throttle", + "/sys/devices/system/cpu/cpu29/thermal_throttle", + "/sys/devices/system/cpu/cpu30/thermal_throttle", + "/sys/devices/system/cpu/cpu31/thermal_throttle", + "/sys/devices/system/cpu/cpu32/thermal_throttle", + "/sys/devices/system/cpu/cpu33/thermal_throttle", + "/sys/devices/system/cpu/cpu34/thermal_throttle", + "/sys/devices/system/cpu/cpu35/thermal_throttle", + "/sys/devices/system/cpu/cpu36/thermal_throttle", + "/sys/devices/system/cpu/cpu37/thermal_throttle", + "/sys/devices/system/cpu/cpu38/thermal_throttle", + "/sys/devices/system/cpu/cpu39/thermal_throttle", + "/sys/devices/system/cpu/cpu40/thermal_throttle", + "/sys/devices/system/cpu/cpu41/thermal_throttle", + "/sys/devices/system/cpu/cpu42/thermal_throttle", + "/sys/devices/system/cpu/cpu43/thermal_throttle", + "/sys/devices/system/cpu/cpu44/thermal_throttle", + "/sys/devices/system/cpu/cpu45/thermal_throttle", + "/sys/devices/system/cpu/cpu46/thermal_throttle", + "/sys/devices/system/cpu/cpu47/thermal_throttle", + "/sys/devices/system/cpu/cpu48/thermal_throttle", + "/sys/devices/system/cpu/cpu49/thermal_throttle", + "/sys/devices/system/cpu/cpu50/thermal_throttle", + "/sys/devices/system/cpu/cpu51/thermal_throttle", + "/sys/devices/system/cpu/cpu52/thermal_throttle", + "/sys/devices/system/cpu/cpu53/thermal_throttle", + "/sys/devices/system/cpu/cpu54/thermal_throttle", + "/sys/devices/system/cpu/cpu55/thermal_throttle", + "/sys/devices/system/cpu/cpu56/thermal_throttle", + "/sys/devices/system/cpu/cpu57/thermal_throttle", + "/sys/devices/system/cpu/cpu58/thermal_throttle", + "/sys/devices/system/cpu/cpu59/thermal_throttle", + "/sys/devices/system/cpu/cpu60/thermal_throttle", + "/sys/devices/system/cpu/cpu61/thermal_throttle", + "/sys/devices/system/cpu/cpu62/thermal_throttle", + "/sys/devices/system/cpu/cpu63/thermal_throttle", + "/sys/devices/system/cpu/cpu64/thermal_throttle", + "/sys/devices/system/cpu/cpu65/thermal_throttle", + "/sys/devices/system/cpu/cpu66/thermal_throttle", + "/sys/devices/system/cpu/cpu67/thermal_throttle", + "/sys/devices/system/cpu/cpu68/thermal_throttle", + "/sys/devices/system/cpu/cpu69/thermal_throttle", + "/sys/devices/system/cpu/cpu70/thermal_throttle", + "/sys/devices/system/cpu/cpu71/thermal_throttle", + "/sys/devices/system/cpu/cpu72/thermal_throttle", + "/sys/devices/system/cpu/cpu73/thermal_throttle", + "/sys/devices/system/cpu/cpu74/thermal_throttle", + "/sys/devices/system/cpu/cpu75/thermal_throttle", + "/sys/devices/system/cpu/cpu76/thermal_throttle", + "/sys/devices/system/cpu/cpu77/thermal_throttle", + "/sys/devices/system/cpu/cpu78/thermal_throttle", + "/sys/devices/system/cpu/cpu79/thermal_throttle", + "/sys/devices/system/cpu/cpu80/thermal_throttle", + "/sys/devices/system/cpu/cpu81/thermal_throttle", + "/sys/devices/system/cpu/cpu82/thermal_throttle", + "/sys/devices/system/cpu/cpu83/thermal_throttle", + "/sys/devices/system/cpu/cpu84/thermal_throttle", + "/sys/devices/system/cpu/cpu85/thermal_throttle", + "/sys/devices/system/cpu/cpu86/thermal_throttle", + "/sys/devices/system/cpu/cpu87/thermal_throttle", + "/sys/devices/system/cpu/cpu88/thermal_throttle", + "/sys/devices/system/cpu/cpu89/thermal_throttle", + "/sys/devices/system/cpu/cpu90/thermal_throttle", + "/sys/devices/system/cpu/cpu91/thermal_throttle", + "/sys/devices/system/cpu/cpu92/thermal_throttle", + "/sys/devices/system/cpu/cpu93/thermal_throttle", + "/sys/devices/system/cpu/cpu94/thermal_throttle", + "/sys/devices/system/cpu/cpu95/thermal_throttle", + "/sys/devices/system/cpu/cpu96/thermal_throttle", + "/sys/devices/system/cpu/cpu97/thermal_throttle", + "/sys/devices/system/cpu/cpu98/thermal_throttle", + "/sys/devices/system/cpu/cpu99/thermal_throttle", + "/sys/devices/system/cpu/cpu100/thermal_throttle", + "/sys/devices/system/cpu/cpu101/thermal_throttle", + "/sys/devices/system/cpu/cpu102/thermal_throttle", + "/sys/devices/system/cpu/cpu103/thermal_throttle", + "/sys/devices/system/cpu/cpu104/thermal_throttle", + "/sys/devices/system/cpu/cpu105/thermal_throttle", + "/sys/devices/system/cpu/cpu106/thermal_throttle", + "/sys/devices/system/cpu/cpu107/thermal_throttle", + "/sys/devices/system/cpu/cpu108/thermal_throttle", + "/sys/devices/system/cpu/cpu109/thermal_throttle", + "/sys/devices/system/cpu/cpu110/thermal_throttle", + "/sys/devices/system/cpu/cpu111/thermal_throttle", + "/sys/devices/system/cpu/cpu112/thermal_throttle", + "/sys/devices/system/cpu/cpu113/thermal_throttle", + "/sys/devices/system/cpu/cpu114/thermal_throttle", + "/sys/devices/system/cpu/cpu115/thermal_throttle", + "/sys/devices/system/cpu/cpu116/thermal_throttle", + "/sys/devices/system/cpu/cpu117/thermal_throttle", + "/sys/devices/system/cpu/cpu118/thermal_throttle", + "/sys/devices/system/cpu/cpu119/thermal_throttle", + "/sys/devices/system/cpu/cpu120/thermal_throttle", + "/sys/devices/system/cpu/cpu121/thermal_throttle", + "/sys/devices/system/cpu/cpu122/thermal_throttle", + "/sys/devices/system/cpu/cpu123/thermal_throttle", + "/sys/devices/system/cpu/cpu124/thermal_throttle", + "/sys/devices/system/cpu/cpu125/thermal_throttle", + "/sys/devices/system/cpu/cpu126/thermal_throttle", + "/sys/devices/system/cpu/cpu127/thermal_throttle", + "/sys/devices/system/cpu/cpu128/thermal_throttle", + "/sys/devices/system/cpu/cpu129/thermal_throttle", + "/sys/devices/system/cpu/cpu130/thermal_throttle", + "/sys/devices/system/cpu/cpu131/thermal_throttle", + "/sys/devices/system/cpu/cpu132/thermal_throttle", + "/sys/devices/system/cpu/cpu133/thermal_throttle", + "/sys/devices/system/cpu/cpu134/thermal_throttle", + "/sys/devices/system/cpu/cpu135/thermal_throttle", + "/sys/devices/system/cpu/cpu136/thermal_throttle", + "/sys/devices/system/cpu/cpu137/thermal_throttle", + "/sys/devices/system/cpu/cpu138/thermal_throttle", + "/sys/devices/system/cpu/cpu139/thermal_throttle", + "/sys/devices/system/cpu/cpu140/thermal_throttle", + "/sys/devices/system/cpu/cpu141/thermal_throttle", + "/sys/devices/system/cpu/cpu142/thermal_throttle", + "/sys/devices/system/cpu/cpu143/thermal_throttle", + "/sys/devices/system/cpu/cpu144/thermal_throttle", + "/sys/devices/system/cpu/cpu145/thermal_throttle", + "/sys/devices/system/cpu/cpu146/thermal_throttle", + "/sys/devices/system/cpu/cpu147/thermal_throttle", + "/sys/devices/system/cpu/cpu148/thermal_throttle", + "/sys/devices/system/cpu/cpu149/thermal_throttle", + "/sys/devices/system/cpu/cpu150/thermal_throttle", + "/sys/devices/system/cpu/cpu151/thermal_throttle", + "/sys/devices/system/cpu/cpu152/thermal_throttle", + "/sys/devices/system/cpu/cpu153/thermal_throttle", + "/sys/devices/system/cpu/cpu154/thermal_throttle", + "/sys/devices/system/cpu/cpu155/thermal_throttle", + "/sys/devices/system/cpu/cpu156/thermal_throttle", + "/sys/devices/system/cpu/cpu157/thermal_throttle", + "/sys/devices/system/cpu/cpu158/thermal_throttle", + "/sys/devices/system/cpu/cpu159/thermal_throttle", + "/sys/devices/system/cpu/cpu160/thermal_throttle", + "/sys/devices/system/cpu/cpu161/thermal_throttle", + "/sys/devices/system/cpu/cpu162/thermal_throttle", + "/sys/devices/system/cpu/cpu163/thermal_throttle", + "/sys/devices/system/cpu/cpu164/thermal_throttle", + "/sys/devices/system/cpu/cpu165/thermal_throttle", + "/sys/devices/system/cpu/cpu166/thermal_throttle", + "/sys/devices/system/cpu/cpu167/thermal_throttle", + "/sys/devices/system/cpu/cpu168/thermal_throttle", + "/sys/devices/system/cpu/cpu169/thermal_throttle", + "/sys/devices/system/cpu/cpu170/thermal_throttle", + "/sys/devices/system/cpu/cpu171/thermal_throttle", + "/sys/devices/system/cpu/cpu172/thermal_throttle", + "/sys/devices/system/cpu/cpu173/thermal_throttle", + "/sys/devices/system/cpu/cpu174/thermal_throttle", + "/sys/devices/system/cpu/cpu175/thermal_throttle", + "/sys/devices/system/cpu/cpu176/thermal_throttle", + "/sys/devices/system/cpu/cpu177/thermal_throttle", + "/sys/devices/system/cpu/cpu178/thermal_throttle", + "/sys/devices/system/cpu/cpu179/thermal_throttle", + "/sys/devices/system/cpu/cpu180/thermal_throttle", + "/sys/devices/system/cpu/cpu181/thermal_throttle", + "/sys/devices/system/cpu/cpu182/thermal_throttle", + "/sys/devices/system/cpu/cpu183/thermal_throttle", + "/sys/devices/system/cpu/cpu184/thermal_throttle", + "/sys/devices/system/cpu/cpu185/thermal_throttle", + "/sys/devices/system/cpu/cpu186/thermal_throttle", + "/sys/devices/system/cpu/cpu187/thermal_throttle", + "/sys/devices/system/cpu/cpu188/thermal_throttle", + "/sys/devices/system/cpu/cpu189/thermal_throttle", + "/sys/devices/system/cpu/cpu190/thermal_throttle", + "/sys/devices/system/cpu/cpu191/thermal_throttle" + ], + "ReadonlyPaths": [ + "/proc/bus", + "/proc/fs", + "/proc/irq", + "/proc/sys", + "/proc/sysrq-trigger" + ] + }, + "GraphDriver": { + "Data": { + "ID": "e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43", + "LowerDir": "/workspaces/docker-lm-memory/overlay2/ae87e1205ca05c662b82642a94d01031fb25c3926bb95f781e982a5b265427b7-init/diff:/workspaces/docker-lm-memory/overlay2/0d28ce241b571e6508c315e7bde54dc65f99caea26f26187f057fa3093f99b91/diff:/workspaces/docker-lm-memory/overlay2/e9f8871d684ff912c3c8fbdc4dee82533ac76ca92c8e7477c0a4aa898fa136d2/diff:/workspaces/docker-lm-memory/overlay2/b7889b33c65336b5a8b9801c36533ebebc05dea65535b7aecbd829e6ff4fb8b2/diff:/workspaces/docker-lm-memory/overlay2/e1119616dcb7ac8cdd1c1c969ef7daaa07f8e6f863a49a161a18268dd0eccb71/diff:/workspaces/docker-lm-memory/overlay2/5c8869c1800705555f44b666a83b4435d2ade61d2218293fa845f95fcab833e9/diff:/workspaces/docker-lm-memory/overlay2/503136c51f7a12c3c52b24c7c33409809c08c61441f6f9b3731a0b39bfd1bc40/diff:/workspaces/docker-lm-memory/overlay2/9842752423a009f16151b43d550d068db10545286086c81607c1bf3a5b9a388f/diff:/workspaces/docker-lm-memory/overlay2/be1eb62184b4ee707e4bcfb71ed658ccde9f2ecf801d4d1e79bd99292b8af97e/diff", + "MergedDir": "/workspaces/docker-lm-memory/overlay2/ae87e1205ca05c662b82642a94d01031fb25c3926bb95f781e982a5b265427b7/merged", + "UpperDir": "/workspaces/docker-lm-memory/overlay2/ae87e1205ca05c662b82642a94d01031fb25c3926bb95f781e982a5b265427b7/diff", + "WorkDir": "/workspaces/docker-lm-memory/overlay2/ae87e1205ca05c662b82642a94d01031fb25c3926bb95f781e982a5b265427b7/work" + }, + "Name": "overlay2" + }, + "Mounts": [ + { + "Type": "bind", + "Source": "/ossfs/workspace/llm-memory-editability", + "Destination": "/ossfs/workspace/llm-memory-editability", + "Mode": "", + "RW": false, + "Propagation": "rprivate" + }, + { + "Type": "bind", + "Source": "/ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05", + "Destination": "/ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05", + "Mode": "", + "RW": true, + "Propagation": "rprivate" + } + ], + "Config": { + "Hostname": "e5caba03f26a", + "Domainname": "", + "User": "", + "AttachStdin": false, + "AttachStdout": true, + "AttachStderr": true, + "Tty": false, + "OpenStdin": false, + "StdinOnce": false, + "Env": [ + "MEMORY_INTERFACE_CONTAINER=1", + "PHYSICAL_GPU=5", + "PYTHONDONTWRITEBYTECODE=1", + "OMP_NUM_THREADS=1", + "MKL_NUM_THREADS=1", + "PYTHONPATH=/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/source/src", + "XDG_CACHE_HOME=/tmp/cache", + "TORCH_HOME=/tmp/torch", + "TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor", + "TRITON_CACHE_DIR=/tmp/triton", + "PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + "PYTHONUNBUFFERED=1", + "PYTHONNOUSERSITE=1", + "NVIDIA_VISIBLE_DEVICES=all", + "NVIDIA_DRIVER_CAPABILITIES=compute,utility" + ], + "Cmd": [ + "/opt/conda/bin/python", + "-u", + "/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/source/scripts/run_memory_interface_next.py", + "container-worker", + "--config", + "/ossfs/workspace/llm-memory-editability/docs/development-artifacts/interface-editing-development-v1/frozen-config.json", + "--index", + "4", + "--gpu", + "0" + ], + "Image": "sha256:bd2a622ec8273f54786cd4029f55b717bcc488afeb688bee4f98c0bd5127bfe5", + "Volumes": null, + "WorkingDir": "/ossfs/workspace/llm-memory-editability", + "Entrypoint": null, + "Labels": { + "batch": "interface-editing-development-v1", + "org.opencontainers.image.description": "Independent dependency snapshot from the LM Memory Editability experiment environment", + "org.opencontainers.image.title": "LM Memory Interface Python 3.10 / PyTorch 2.6.0+cu126", + "org.opencontainers.image.version": "22.04", + "project": "llm-memory-editability" + } + }, + "NetworkSettings": { + "SandboxID": "", + "SandboxKey": "", + "Ports": {}, + "Networks": { + "none": { + "IPAMConfig": null, + "Links": null, + "Aliases": null, + "DriverOpts": null, + "GwPriority": 0, + "NetworkID": "f13f14be11241c5b9f6f8403f2a65314d134b2eeb59d8c184e86627519610681", + "EndpointID": "", + "Gateway": "", + "IPAddress": "", + "MacAddress": "", + "IPPrefixLen": 0, + "IPv6Gateway": "", + "GlobalIPv6Address": "", + "GlobalIPv6PrefixLen": 0, + "DNSNames": null + } + } + } + } +] diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-runtime.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-runtime.json new file mode 100644 index 0000000000000000000000000000000000000000..46bef8bda95cd25b3cdf8200ed135b755a3f6565 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/container-runtime.json @@ -0,0 +1,8 @@ +{ + "physical_gpu": 5, + "host_pid": 439632, + "container_id": "e5caba03f26a2cb71fadc864ca719d66c43efcd09a4ee17876b4002498dd0c43", + "image": "sha256:bd2a622ec8273f54786cd4029f55b717bcc488afeb688bee4f98c0bd5127bfe5", + "cpus": 4, + "memory": "16g" +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/first_familiar-00/parent-metrics.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/first_familiar-00/parent-metrics.json new file mode 100644 index 0000000000000000000000000000000000000000..4fe190c6ddea693f7be94c8c960909f025ea96f5 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/first_familiar-00/parent-metrics.json @@ -0,0 +1,175 @@ +{ + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00015221867943182588 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.200918197631836 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.37989556135770236, + "accuracy": 0.37989556135770236, + "answer_nll": 3.2733144760131836 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.314689636230469, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.38132295719844356, + "accuracy": 0.38132295719844356, + "answer_nll": 3.354184865951538 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.314689636230469, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.572458707727492e-05 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.68439483642578, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012802249693777412 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018926690972875804 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020487657457124442 + } +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/learning.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/learning.json new file mode 100644 index 0000000000000000000000000000000000000000..52a472dd5b953761f937795052631d339ed1e4a8 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/learning.json @@ -0,0 +1,12098 @@ +[ + { + "step": 0, + "branch_step": 0, + "completed_branches": 0, + "optimizer_updates": 0, + "case_id": "first_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00015221867943182588 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.200918197631836 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.37989556135770236, + "accuracy": 0.37989556135770236, + "answer_nll": 3.2733144760131836 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.314689636230469, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.38132295719844356, + "accuracy": 0.38132295719844356, + "answer_nll": 3.354184865951538 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.314689636230469, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.572458707727492e-05 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.68439483642578, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012802249693777412 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018926690972875804 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020487657457124442 + } + }, + "training_seconds": 1.0065734386444092e-05, + "wall_seconds": 3.129817955195904, + "examples": 0, + "target_supervised_tokens": 0, + "replay_distillation_positions": 0 + }, + { + "step": 1, + "branch_step": 32, + "completed_branches": 0, + "optimizer_updates": 32, + "case_id": "first_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.571473121643066 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.002053178148344159 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.34595300261096606, + "accuracy": 0.34595300261096606, + "answer_nll": 3.543071746826172 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.801485061645508, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.076171875, + "accuracy": 0.076171875, + "answer_nll": 6.0605363845825195 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.3540856031128405, + "accuracy": 0.3540856031128405, + "answer_nll": 3.685689926147461 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.801485061645508, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003664714458864182 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.140830039978027, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0041017113253474236 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.011963901109993458 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9969727547931383, + "accuracy": 0.9969727547931383, + "answer_nll": 0.015063569881021976 + } + }, + "training_seconds": 0.25270771235227585, + "wall_seconds": 3.5555561184883118, + "examples": 1056, + "target_supervised_tokens": 96, + "replay_distillation_positions": 3072 + }, + { + "step": 2, + "branch_step": 128, + "completed_branches": 0, + "optimizer_updates": 128, + "case_id": "first_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.947137832641602 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00029559535323642194 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.33550913838120106, + "accuracy": 0.33550913838120106, + "answer_nll": 3.5386509895324707 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.992690563201904, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.1026716232299805 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.3424124513618677, + "accuracy": 0.3424124513618677, + "answer_nll": 3.6800777912139893 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.992690563201904, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002729166008066386 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.00224494934082, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.003404459683224559 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00044993142364546657 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.008134312927722931 + } + }, + "training_seconds": 0.5803251899778843, + "wall_seconds": 4.0976278111338615, + "examples": 4224, + "target_supervised_tokens": 384, + "replay_distillation_positions": 12288 + }, + { + "step": 3, + "branch_step": 512, + "completed_branches": 1, + "optimizer_updates": 512, + "case_id": "first_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.754300117492676 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.0437283536884934e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3381201044386423, + "accuracy": 0.3381201044386423, + "answer_nll": 3.4997341632843018 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.953838348388672, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.068359375, + "accuracy": 0.068359375, + "answer_nll": 6.092116832733154 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.3424124513618677, + "accuracy": 0.3424124513618677, + "answer_nll": 3.6352505683898926 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.953838348388672, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021297311468515545 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.605005264282227, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0020942005794495344 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002301071654073894 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9989909182643795, + "accuracy": 0.9989909182643795, + "answer_nll": 0.004260094836354256 + } + }, + "training_seconds": 1.9138110056519508, + "wall_seconds": 5.6461631916463375, + "examples": 16896, + "target_supervised_tokens": 1536, + "replay_distillation_positions": 49152 + }, + { + "step": 4, + "branch_step": 0, + "completed_branches": 1, + "optimizer_updates": 512, + "case_id": "first_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00015221867943182588 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.200918197631836 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.37989556135770236, + "accuracy": 0.37989556135770236, + "answer_nll": 3.2733144760131836 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.314689636230469, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.38132295719844356, + "accuracy": 0.38132295719844356, + "answer_nll": 3.354184865951538 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.314689636230469, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.572458707727492e-05 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.68439483642578, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012802249693777412 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018926690972875804 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020487657457124442 + } + }, + "training_seconds": 1.9138193577528, + "wall_seconds": 5.925119020044804, + "examples": 16896, + "target_supervised_tokens": 1536, + "replay_distillation_positions": 49152 + }, + { + "step": 5, + "branch_step": 32, + "completed_branches": 1, + "optimizer_updates": 544, + "case_id": "first_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 4.172316494077677e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.558124542236328 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3537859007832898, + "accuracy": 0.3537859007832898, + "answer_nll": 3.3502275943756104 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.594359397888184, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "answer_nll": 6.239922523498535 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.35797665369649806, + "accuracy": 0.35797665369649806, + "answer_nll": 3.41935658454895 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.594359397888184, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.079949086299166e-05 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.252174377441406, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00016324379248544574 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019017186423297971 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00024649110855534673 + } + }, + "training_seconds": 2.0262766778469086, + "wall_seconds": 6.213401343673468, + "examples": 17952, + "target_supervised_tokens": 1632, + "replay_distillation_positions": 52224 + }, + { + "step": 6, + "branch_step": 128, + "completed_branches": 1, + "optimizer_updates": 640, + "case_id": "first_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.145764938177308e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 20.14537811279297 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.35117493472584854, + "accuracy": 0.35117493472584854, + "answer_nll": 3.4104361534118652 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.347126007080078, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.28305196762085 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.35797665369649806, + "accuracy": 0.35797665369649806, + "answer_nll": 3.4898080825805664 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.347126007080078, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001003709330689162 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.761280059814453, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00016300537390634418 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018940100562758744 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002483311982359737 + } + }, + "training_seconds": 2.3696904815733433, + "wall_seconds": 6.782639991492033, + "examples": 21120, + "target_supervised_tokens": 1920, + "replay_distillation_positions": 61440 + }, + { + "step": 7, + "branch_step": 512, + "completed_branches": 2, + "optimizer_updates": 1024, + "case_id": "first_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.5497195136049413e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.960634231567383 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3524804177545692, + "accuracy": 0.3524804177545692, + "answer_nll": 3.4264304637908936 + }, + "D_first_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.890569686889648, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.076171875, + "accuracy": 0.076171875, + "answer_nll": 6.296582221984863 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 257, + "answer_accuracy": 0.35797665369649806, + "accuracy": 0.35797665369649806, + "answer_nll": 3.508169174194336 + }, + "D_first_registered_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.890569686889648, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.5, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011818408529506996 + }, + "T_first_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.187925338745117, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00017772510182112455 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018935257685370743 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002512862265575677 + } + }, + "training_seconds": 3.6901340521872044, + "wall_seconds": 8.292534049600363, + "examples": 33792, + "target_supervised_tokens": 3072, + "replay_distillation_positions": 98304 + }, + { + "step": 8, + "branch_step": 0, + "completed_branches": 2, + "optimizer_updates": 1024, + "case_id": "first_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019214690837543458 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.597270965576172 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.38300653594771245, + "accuracy": 0.38300653594771245, + "answer_nll": 3.2605624198913574 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.444729804992676, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3875968992248062, + "accuracy": 0.3875968992248062, + "answer_nll": 3.3290727138519287 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.228476524353027, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.54832653910853e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.899253845214844, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001803471677703783 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001955899497261271 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020463271357584745 + } + }, + "training_seconds": 3.690142534673214, + "wall_seconds": 8.674441140145063, + "examples": 33792, + "target_supervised_tokens": 3072, + "replay_distillation_positions": 98304 + }, + { + "step": 9, + "branch_step": 32, + "completed_branches": 2, + "optimizer_updates": 1056, + "case_id": "first_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.558024406433105 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0010216975351795554 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3411764705882353, + "accuracy": 0.3411764705882353, + "answer_nll": 3.4816386699676514 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.3333333333333333, + "accuracy": 0.3333333333333333, + "answer_nll": 4.563048839569092, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.3333333333333333 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.095703125, + "accuracy": 0.095703125, + "answer_nll": 5.987454414367676 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.35658914728682173, + "accuracy": 0.35658914728682173, + "answer_nll": 3.5027971267700195 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.5397075414657593, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00031494954600930214 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.484066486358643, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00036379238008521497 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.002521935384720564 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.008230883628129959 + } + }, + "training_seconds": 3.804375823587179, + "wall_seconds": 8.975808814167976, + "examples": 34848, + "target_supervised_tokens": 3168, + "replay_distillation_positions": 101376 + }, + { + "step": 10, + "branch_step": 128, + "completed_branches": 2, + "optimizer_updates": 1152, + "case_id": "first_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.09597110748291 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002244459028588608 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3333333333333333, + "accuracy": 0.3333333333333333, + "answer_nll": 3.491532325744629 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 4.188052654266357, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.102194786071777 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3488372093023256, + "accuracy": 0.3488372093023256, + "answer_nll": 3.5371551513671875 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.5110609531402588, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00033872982021421194 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.986320495605469, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00032569622271694243 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00044676318066194654 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.0071588014252483845 + } + }, + "training_seconds": 4.157016769051552, + "wall_seconds": 9.51718471199274, + "examples": 38016, + "target_supervised_tokens": 3456, + "replay_distillation_positions": 110592 + }, + { + "step": 11, + "branch_step": 512, + "completed_branches": 3, + "optimizer_updates": 1536, + "case_id": "first_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.353710174560547 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.496695277746767e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3464052287581699, + "accuracy": 0.3464052287581699, + "answer_nll": 3.4535720348358154 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 3.8661110401153564, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.076171875, + "accuracy": 0.076171875, + "answer_nll": 6.2282304763793945 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.36046511627906974, + "accuracy": 0.36046511627906974, + "answer_nll": 3.5151524543762207 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.5785345435142517, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026308911037631333 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.598171710968018, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002590824442449957 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023043468536343426 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.004796825349330902 + } + }, + "training_seconds": 5.529620785266161, + "wall_seconds": 11.11600711941719, + "examples": 50688, + "target_supervised_tokens": 4608, + "replay_distillation_positions": 147456 + }, + { + "step": 12, + "branch_step": 0, + "completed_branches": 3, + "optimizer_updates": 1536, + "case_id": "first_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019214690837543458 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.597270965576172 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.38300653594771245, + "accuracy": 0.38300653594771245, + "answer_nll": 3.2605624198913574 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.444729804992676, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3875968992248062, + "accuracy": 0.3875968992248062, + "answer_nll": 3.3290727138519287 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.228476524353027, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.54832653910853e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.899253845214844, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001803471677703783 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001955899497261271 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020463271357584745 + } + }, + "training_seconds": 5.529633991420269, + "wall_seconds": 11.372734278440475, + "examples": 50688, + "target_supervised_tokens": 4608, + "replay_distillation_positions": 147456 + }, + { + "step": 13, + "branch_step": 32, + "completed_branches": 3, + "optimizer_updates": 1568, + "case_id": "first_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.602820692729438e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.250164031982422 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.36993464052287583, + "accuracy": 0.36993464052287583, + "answer_nll": 3.286458730697632 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.29021167755127, + "changed_answer_n": 3, + "old_answer_accuracy": 0.3333333333333333, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "answer_nll": 6.267769813537598 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3798449612403101, + "accuracy": 0.3798449612403101, + "answer_nll": 3.3681232929229736 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.821501731872559, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.406540291616693e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.618165016174316, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018058554269373417 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001958431676030159 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023225476616062224 + } + }, + "training_seconds": 5.640911936759949, + "wall_seconds": 11.671456802636385, + "examples": 51744, + "target_supervised_tokens": 4704, + "replay_distillation_positions": 150528 + }, + { + "step": 14, + "branch_step": 128, + "completed_branches": 3, + "optimizer_updates": 1664, + "case_id": "first_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.576272320060525e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.30386734008789 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.36209150326797385, + "accuracy": 0.36209150326797385, + "answer_nll": 3.289144515991211 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.895049095153809, + "changed_answer_n": 3, + "old_answer_accuracy": 0.3333333333333333, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.076171875, + "accuracy": 0.076171875, + "answer_nll": 6.24764347076416 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3643410852713178, + "accuracy": 0.3643410852713178, + "answer_nll": 3.379809856414795 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.82020902633667, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.771235297899693e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.493227005004883, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018006916798185557 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019601822714321315 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002336579782422632 + } + }, + "training_seconds": 5.994205716997385, + "wall_seconds": 12.203808948397636, + "examples": 54912, + "target_supervised_tokens": 4992, + "replay_distillation_positions": 159744 + }, + { + "step": 15, + "branch_step": 512, + "completed_branches": 4, + "optimizer_updates": 2048, + "case_id": "first_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.099436753473128e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 19.152912139892578 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.37254901960784315, + "accuracy": 0.37254901960784315, + "answer_nll": 3.292424201965332 + }, + "D_first_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.437933921813965, + "changed_answer_n": 3, + "old_answer_accuracy": 0.3333333333333333, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.252358436584473 + }, + "D_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.37209302325581395, + "accuracy": 0.37209302325581395, + "answer_nll": 3.400092124938965 + }, + "D_first_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 5.544145584106445, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.319252421846613e-05 + }, + "T_first_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.556318283081055, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019079547200817615 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001956458145286888 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023159198462963104 + } + }, + "training_seconds": 7.306268461048603, + "wall_seconds": 13.720032960176468, + "examples": 67584, + "target_supervised_tokens": 6144, + "replay_distillation_positions": 196608 + }, + { + "step": 16, + "branch_step": 0, + "completed_branches": 4, + "optimizer_updates": 2048, + "case_id": "first_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00029404606902971864 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.765908241271973 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08464566929133858, + "accuracy": 0.08464566929133858, + "answer_nll": 6.118814945220947 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.409440517425537, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001222112769028172 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002055734657915309 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002042071573669091 + } + }, + "training_seconds": 7.306277185678482, + "wall_seconds": 14.099274296313524, + "examples": 67584, + "target_supervised_tokens": 6144, + "replay_distillation_positions": 196608 + }, + { + "step": 17, + "branch_step": 32, + "completed_branches": 4, + "optimizer_updates": 2080, + "case_id": "first_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.56169605255127 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0008248264202848077 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3346354166666667, + "accuracy": 0.3346354166666667, + "answer_nll": 3.485278844833374 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.05511811023622047, + "accuracy": 0.05511811023622047, + "answer_nll": 6.774477005004883 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.1191301345825195, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3590733590733591, + "accuracy": 0.3590733590733591, + "answer_nll": 3.4158010482788086 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000296363839879632 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003384093870408833 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.004207628779113293 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9909182643794148, + "accuracy": 0.9909182643794148, + "answer_nll": 0.03359110653400421 + } + }, + "training_seconds": 7.416479639708996, + "wall_seconds": 14.388607390224934, + "examples": 68640, + "target_supervised_tokens": 6240, + "replay_distillation_positions": 199680 + }, + { + "step": 18, + "branch_step": 128, + "completed_branches": 4, + "optimizer_updates": 2176, + "case_id": "first_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.319076538085938 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002499506517779082 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3541666666666667, + "accuracy": 0.3541666666666667, + "answer_nll": 3.330434799194336 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.06496062992125984, + "accuracy": 0.06496062992125984, + "answer_nll": 6.39499568939209 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.679286003112793, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3745173745173745, + "accuracy": 0.3745173745173745, + "answer_nll": 3.2727272510528564 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018264281970914453 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002393968461547047 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005203622276894748 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9939455095862765, + "accuracy": 0.9939455095862765, + "answer_nll": 0.022324882447719574 + } + }, + "training_seconds": 7.7411646991968155, + "wall_seconds": 14.903599120676517, + "examples": 71808, + "target_supervised_tokens": 6528, + "replay_distillation_positions": 208896 + }, + { + "step": 19, + "branch_step": 512, + "completed_branches": 5, + "optimizer_updates": 2560, + "case_id": "first_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.30122184753418 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.703165414975956e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.35546875, + "accuracy": 0.35546875, + "answer_nll": 3.2593472003936768 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07480314960629922, + "accuracy": 0.07480314960629922, + "answer_nll": 6.169589996337891 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.193668365478516, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3783783783783784, + "accuracy": 0.3783783783783784, + "answer_nll": 3.2258706092834473 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00014034048945177346 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001888380793388933 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00025857597938738763 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.013321982696652412 + } + }, + "training_seconds": 9.054880701005459, + "wall_seconds": 16.39634194970131, + "examples": 84480, + "target_supervised_tokens": 7680, + "replay_distillation_positions": 245760 + }, + { + "step": 20, + "branch_step": 0, + "completed_branches": 5, + "optimizer_updates": 2560, + "case_id": "first_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00029404606902971864 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.765908241271973 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08464566929133858, + "accuracy": 0.08464566929133858, + "answer_nll": 6.118814945220947 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.409440517425537, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001222112769028172 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002055734657915309 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002042071573669091 + } + }, + "training_seconds": 9.054889298975468, + "wall_seconds": 16.649727296084166, + "examples": 84480, + "target_supervised_tokens": 7680, + "replay_distillation_positions": 245760 + }, + { + "step": 21, + "branch_step": 32, + "completed_branches": 5, + "optimizer_updates": 2592, + "case_id": "first_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.002696055569686e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.542675018310547 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3671875, + "accuracy": 0.3671875, + "answer_nll": 3.2683804035186768 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08070866141732283, + "accuracy": 0.08070866141732283, + "answer_nll": 5.959846496582031 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.872790336608887, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.36293436293436293, + "accuracy": 0.36293436293436293, + "answer_nll": 3.3518226146698 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.495093788951635e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012590641563292593 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002094946539727971 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026248267386108637 + } + }, + "training_seconds": 9.1668970733881, + "wall_seconds": 16.928510267287493, + "examples": 85536, + "target_supervised_tokens": 7776, + "replay_distillation_positions": 248832 + }, + { + "step": 22, + "branch_step": 128, + "completed_branches": 5, + "optimizer_updates": 2688, + "case_id": "first_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.7762025890988298e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.697858810424805 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3697916666666667, + "accuracy": 0.3697916666666667, + "answer_nll": 3.2703235149383545 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07874015748031496, + "accuracy": 0.07874015748031496, + "answer_nll": 5.98634672164917 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.840717315673828, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.37065637065637064, + "accuracy": 0.37065637065637064, + "answer_nll": 3.357776641845703 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.468692976748571e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012727703142445534 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002059272228507325 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00025588955031707883 + } + }, + "training_seconds": 9.493947621434927, + "wall_seconds": 17.42040303349495, + "examples": 88704, + "target_supervised_tokens": 8064, + "replay_distillation_positions": 258048 + }, + { + "step": 23, + "branch_step": 512, + "completed_branches": 6, + "optimizer_updates": 3072, + "case_id": "first_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.764281842042692e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.699031829833984 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3736979166666667, + "accuracy": 0.3736979166666667, + "answer_nll": 3.3016624450683594 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 5.996422290802002 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.699576377868652, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3745173745173745, + "accuracy": 0.3745173745173745, + "answer_nll": 3.383227825164795 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.492250344716012e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012995870201848447 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002056107041426003 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023839202185627073 + } + }, + "training_seconds": 10.782679729163647, + "wall_seconds": 18.890348106622696, + "examples": 101376, + "target_supervised_tokens": 9216, + "replay_distillation_positions": 294912 + }, + { + "step": 24, + "branch_step": 0, + "completed_branches": 6, + "optimizer_updates": 3072, + "case_id": "first_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002985746832564473 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.027355194091797 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08464566929133858, + "accuracy": 0.08464566929133858, + "answer_nll": 6.139467239379883 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.183165073394775, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001724501053104177 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018935299885924906 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020472587493713945 + } + }, + "training_seconds": 10.782688867300749, + "wall_seconds": 19.25545984879136, + "examples": 101376, + "target_supervised_tokens": 9216, + "replay_distillation_positions": 294912 + }, + { + "step": 25, + "branch_step": 32, + "completed_branches": 6, + "optimizer_updates": 3104, + "case_id": "first_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.408726692199707 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001465200330130756 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3385416666666667, + "accuracy": 0.3385416666666667, + "answer_nll": 3.451016664505005 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.05905511811023622, + "accuracy": 0.05905511811023622, + "answer_nll": 6.517915725708008 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.25, + "accuracy": 0.25, + "answer_nll": 2.9724509716033936, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.25 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.33204633204633205, + "accuracy": 0.33204633204633205, + "answer_nll": 3.5922327041625977 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002208456862717867 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0012541119940578938 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0032116067595779896 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9939455095862765, + "accuracy": 0.9939455095862765, + "answer_nll": 0.027656804770231247 + } + }, + "training_seconds": 10.89353858679533, + "wall_seconds": 19.562402188777924, + "examples": 102432, + "target_supervised_tokens": 9312, + "replay_distillation_positions": 297984 + }, + { + "step": 26, + "branch_step": 128, + "completed_branches": 6, + "optimizer_updates": 3200, + "case_id": "first_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.951956748962402 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00035124807618558407 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.34765625, + "accuracy": 0.34765625, + "answer_nll": 3.3789656162261963 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07086614173228346, + "accuracy": 0.07086614173228346, + "answer_nll": 6.355931282043457 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.25, + "accuracy": 0.25, + "answer_nll": 2.863345146179199, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.25 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3552123552123552, + "accuracy": 0.3552123552123552, + "answer_nll": 3.4813435077667236 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00016847229562699795 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0008598531130701303 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005117200780659914 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.019608113914728165 + } + }, + "training_seconds": 11.223980218172073, + "wall_seconds": 20.074461832642555, + "examples": 105600, + "target_supervised_tokens": 9600, + "replay_distillation_positions": 307200 + }, + { + "step": 27, + "branch_step": 512, + "completed_branches": 7, + "optimizer_updates": 3584, + "case_id": "first_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.078761100769043 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012683063687290996 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3606770833333333, + "accuracy": 0.3606770833333333, + "answer_nll": 3.3178493976593018 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 6.169949531555176 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.25, + "accuracy": 0.25, + "answer_nll": 2.681568145751953, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.25 + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.3993663787841797 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00014441725215874612 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004674982628785074 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00024338701041415334 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.012378166429698467 + } + }, + "training_seconds": 12.513955239206553, + "wall_seconds": 21.54251118376851, + "examples": 118272, + "target_supervised_tokens": 10752, + "replay_distillation_positions": 344064 + }, + { + "step": 28, + "branch_step": 0, + "completed_branches": 7, + "optimizer_updates": 3584, + "case_id": "first_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002985746832564473 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.027355194091797 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08464566929133858, + "accuracy": 0.08464566929133858, + "answer_nll": 6.139467239379883 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.183165073394775, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001724501053104177 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018935299885924906 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020472587493713945 + } + }, + "training_seconds": 12.513965610414743, + "wall_seconds": 21.821201507002115, + "examples": 118272, + "target_supervised_tokens": 10752, + "replay_distillation_positions": 344064 + }, + { + "step": 29, + "branch_step": 32, + "completed_branches": 7, + "optimizer_updates": 3616, + "case_id": "first_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.549708758830093e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.159041404724121 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.37109375, + "accuracy": 0.37109375, + "answer_nll": 3.28619122505188 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07283464566929133, + "accuracy": 0.07283464566929133, + "answer_nll": 6.180911064147949 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.944802284240723, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3783783783783784, + "accuracy": 0.3783783783783784, + "answer_nll": 3.326662302017212 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.357546903425828e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022512547730002552 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019035105651710182 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026584294391795993 + } + }, + "training_seconds": 12.622094303369522, + "wall_seconds": 22.1024579256773, + "examples": 119328, + "target_supervised_tokens": 10848, + "replay_distillation_positions": 347136 + }, + { + "step": 30, + "branch_step": 128, + "completed_branches": 7, + "optimizer_updates": 3712, + "case_id": "first_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.0847986231965479e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.442157745361328 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3684895833333333, + "accuracy": 0.3684895833333333, + "answer_nll": 3.2794606685638428 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 6.124974250793457 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 7.887366771697998, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.38223938223938225, + "accuracy": 0.38223938223938225, + "answer_nll": 3.3223376274108887 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.546767639927566e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023162123397924006 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019022822380065918 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002603102184366435 + } + }, + "training_seconds": 12.946688007563353, + "wall_seconds": 22.59788130968809, + "examples": 122496, + "target_supervised_tokens": 11136, + "replay_distillation_positions": 356352 + }, + { + "step": 31, + "branch_step": 512, + "completed_branches": 8, + "optimizer_updates": 4096, + "case_id": "first_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.0371154530730564e-05 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.703978538513184 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3658854166666667, + "accuracy": 0.3658854166666667, + "answer_nll": 3.290637969970703 + }, + "D_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07677165354330709, + "accuracy": 0.07677165354330709, + "answer_nll": 6.145664691925049 + }, + "D_first_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 8.082693099975586, + "changed_answer_n": 4, + "old_answer_accuracy": 0.25, + "parent_correct_n": 1, + "parent_correct_coverage": 0.25, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_first_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.36293436293436293, + "accuracy": 0.36293436293436293, + "answer_nll": 3.3474626541137695 + }, + "D_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_first_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.899228851078078e-05 + }, + "T_first_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023111338668968529 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018943121540360153 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000244557682890445 + } + }, + "training_seconds": 14.36428527161479, + "wall_seconds": 24.20458770543337, + "examples": 135168, + "target_supervised_tokens": 12288, + "replay_distillation_positions": 393216 + }, + { + "step": 32, + "branch_step": 0, + "completed_branches": 8, + "optimizer_updates": 4096, + "case_id": "second_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012134769349358976 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.636430740356445 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3803921568627451, + "accuracy": 0.3803921568627451, + "answer_nll": 3.274470806121826 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.224048614501953, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.38372093023255816, + "accuracy": 0.38372093023255816, + "answer_nll": 3.3472201824188232 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.640741348266602, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.558707875432447e-05 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.593734741210938, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001517804921604693 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019369361689314246 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020476465579122305 + } + }, + "training_seconds": 14.36429574713111, + "wall_seconds": 24.615022730082273, + "examples": 135168, + "target_supervised_tokens": 12288, + "replay_distillation_positions": 393216 + }, + { + "step": 33, + "branch_step": 32, + "completed_branches": 8, + "optimizer_updates": 4128, + "case_id": "second_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.568408012390137 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003691230376716703 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.33725490196078434, + "accuracy": 0.33725490196078434, + "answer_nll": 3.4740374088287354 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 2.059372663497925, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.09765625, + "accuracy": 0.09765625, + "answer_nll": 5.882463455200195 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3062015503875969, + "accuracy": 0.3062015503875969, + "answer_nll": 3.62312388420105 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.075825572013855, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0015875931130722165 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 3.2202439308166504, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.008105420507490635 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0024334872141480446 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.007942096330225468 + } + }, + "training_seconds": 14.474066618829966, + "wall_seconds": 24.903299134224653, + "examples": 136224, + "target_supervised_tokens": 12384, + "replay_distillation_positions": 396288 + }, + { + "step": 34, + "branch_step": 128, + "completed_branches": 8, + "optimizer_updates": 4224, + "case_id": "second_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.534400939941406 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.401333666872233e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.33725490196078434, + "accuracy": 0.33725490196078434, + "answer_nll": 3.457887887954712 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 1.6477007865905762, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.1015625, + "accuracy": 0.1015625, + "answer_nll": 5.7748517990112305 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3023255813953488, + "accuracy": 0.3023255813953488, + "answer_nll": 3.618391752243042 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.5959206223487854, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0024973060935735703 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.7128708362579346, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001812117756344378 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004004199872724712 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9979818365287588, + "accuracy": 0.9979818365287588, + "answer_nll": 0.009975049644708633 + } + }, + "training_seconds": 14.800589386373758, + "wall_seconds": 25.405830767005682, + "examples": 139392, + "target_supervised_tokens": 12672, + "replay_distillation_positions": 405504 + }, + { + "step": 35, + "branch_step": 512, + "completed_branches": 9, + "optimizer_updates": 4608, + "case_id": "second_familiar-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.885879516601562 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.682172998902388e-05 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3477124183006536, + "accuracy": 0.3477124183006536, + "answer_nll": 3.3923885822296143 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 1.7274476289749146, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.099609375, + "accuracy": 0.099609375, + "answer_nll": 5.858715534210205 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.31007751937984496, + "accuracy": 0.31007751937984496, + "answer_nll": 3.564267873764038 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.6903015971183777, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 1.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0013571196468546987 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 2.3423266410827637, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005857495707459748 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021349720191210508 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9989909182643795, + "accuracy": 0.9989909182643795, + "answer_nll": 0.004706576466560364 + } + }, + "training_seconds": 16.112911641597748, + "wall_seconds": 26.91091175749898, + "examples": 152064, + "target_supervised_tokens": 13824, + "replay_distillation_positions": 442368 + }, + { + "step": 36, + "branch_step": 0, + "completed_branches": 9, + "optimizer_updates": 4608, + "case_id": "second_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00012134769349358976 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.636430740356445 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3803921568627451, + "accuracy": 0.3803921568627451, + "answer_nll": 3.274470806121826 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.224048614501953, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.38372093023255816, + "accuracy": 0.38372093023255816, + "answer_nll": 3.3472201824188232 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.640741348266602, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.558707875432447e-05 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.593734741210938, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001517804921604693 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019369361689314246 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020476465579122305 + } + }, + "training_seconds": 16.112919963896275, + "wall_seconds": 27.183758456259966, + "examples": 152064, + "target_supervised_tokens": 13824, + "replay_distillation_positions": 442368 + }, + { + "step": 37, + "branch_step": 32, + "completed_branches": 9, + "optimizer_updates": 4640, + "case_id": "second_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.145764938177308e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 21.593019485473633 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.36209150326797385, + "accuracy": 0.36209150326797385, + "answer_nll": 3.274848699569702 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.648024559020996, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "answer_nll": 6.09093713760376 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.35271317829457366, + "accuracy": 0.35271317829457366, + "answer_nll": 3.3526952266693115 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.50772476196289, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.558629972161725e-05 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.89789581298828, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00015670707216486335 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019380914454814047 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022476584126707166 + } + }, + "training_seconds": 16.222979616373777, + "wall_seconds": 27.508607361465693, + "examples": 153120, + "target_supervised_tokens": 13920, + "replay_distillation_positions": 445440 + }, + { + "step": 38, + "branch_step": 128, + "completed_branches": 9, + "optimizer_updates": 4736, + "case_id": "second_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.0728830375228426e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 21.679336547851562 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.3607843137254902, + "accuracy": 0.3607843137254902, + "answer_nll": 3.2983474731445312 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.196398735046387, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.106545448303223 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3488372093023256, + "accuracy": 0.3488372093023256, + "answer_nll": 3.3745856285095215 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.205328941345215, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.347678133053705e-05 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.692821502685547, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00015523713955190033 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019384632469154894 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022132786398287863 + } + }, + "training_seconds": 16.54924016445875, + "wall_seconds": 28.021322026848793, + "examples": 156288, + "target_supervised_tokens": 14208, + "replay_distillation_positions": 454656 + }, + { + "step": 39, + "branch_step": 512, + "completed_branches": 10, + "optimizer_updates": 5120, + "case_id": "second_familiar-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.960462772236497e-07 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 21.54103660583496 + }, + "U_familiar": { + "n": 765, + "answer_accuracy": 0.35947712418300654, + "accuracy": 0.35947712418300654, + "answer_nll": 3.33408260345459 + }, + "D_second_familiar": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.613104820251465, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.07421875, + "accuracy": 0.07421875, + "answer_nll": 6.221883773803711 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.34108527131782945, + "accuracy": 0.34108527131782945, + "answer_nll": 3.418719530105591 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.615913391113281, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 254, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010197576193604618 + }, + "T_second_train": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.288827896118164, + "changed_answer_n": 2, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001632224302738905 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000193738320376724 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002256343577755615 + } + }, + "training_seconds": 17.876038517802954, + "wall_seconds": 29.531026232987642, + "examples": 168960, + "target_supervised_tokens": 15360, + "replay_distillation_positions": 491520 + }, + { + "step": 40, + "branch_step": 0, + "completed_branches": 10, + "optimizer_updates": 5120, + "case_id": "second_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022849810193292797 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.984991073608398 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.381201044386423, + "accuracy": 0.381201044386423, + "answer_nll": 3.2713327407836914 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.59835147857666, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3875968992248062, + "accuracy": 0.3875968992248062, + "answer_nll": 3.336871385574341 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.723405361175537, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.547718996647745e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.090730667114258, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018010844360105693 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023295919527299702 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020338958711363375 + } + }, + "training_seconds": 17.876047253608704, + "wall_seconds": 29.94312386214733, + "examples": 168960, + "target_supervised_tokens": 15360, + "replay_distillation_positions": 491520 + }, + { + "step": 41, + "branch_step": 32, + "completed_branches": 10, + "optimizer_updates": 5152, + "case_id": "second_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.766724586486816 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00011455356434453279 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3328981723237598, + "accuracy": 0.3328981723237598, + "answer_nll": 3.605962038040161 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 3.544893741607666, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.078125, + "accuracy": 0.078125, + "answer_nll": 6.5464582443237305 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3488372093023256, + "accuracy": 0.3488372093023256, + "answer_nll": 3.6588683128356934 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 3.520977020263672, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0010291781509295106 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.3770383596420288, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.010347570292651653 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0012171283597126603 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9939455095862765, + "accuracy": 0.9939455095862765, + "answer_nll": 0.019024984911084175 + } + }, + "training_seconds": 17.986954905092716, + "wall_seconds": 30.25748349353671, + "examples": 170016, + "target_supervised_tokens": 15456, + "replay_distillation_positions": 494592 + }, + { + "step": 42, + "branch_step": 128, + "completed_branches": 10, + "optimizer_updates": 5248, + "case_id": "second_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.048510551452637 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.55629628454335e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3381201044386423, + "accuracy": 0.3381201044386423, + "answer_nll": 3.5638985633850098 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.0461907386779785, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.080078125, + "accuracy": 0.080078125, + "answer_nll": 6.465437412261963 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.35271317829457366, + "accuracy": 0.35271317829457366, + "answer_nll": 3.6494903564453125 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.515507698059082, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0010555110638961196 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.0425018072128296, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.006577791180461645 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00047299504512920976 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9939455095862765, + "accuracy": 0.9939455095862765, + "answer_nll": 0.01944628171622753 + } + }, + "training_seconds": 18.32061429694295, + "wall_seconds": 30.792715299874544, + "examples": 173184, + "target_supervised_tokens": 15744, + "replay_distillation_positions": 503808 + }, + { + "step": 43, + "branch_step": 512, + "completed_branches": 11, + "optimizer_updates": 5632, + "case_id": "second_familiar-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.54419994354248 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.002696055569686e-05 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3563968668407311, + "accuracy": 0.3563968668407311, + "answer_nll": 3.4559764862060547 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.470273971557617, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 2, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.08203125, + "accuracy": 0.08203125, + "answer_nll": 6.195361137390137 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3798449612403101, + "accuracy": 0.3798449612403101, + "answer_nll": 3.5753798484802246 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 4.956199645996094, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004640327824745327 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 1.494788408279419, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 1, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0016690663760527968 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002567335614003241 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.01165843103080988 + } + }, + "training_seconds": 19.642641082406044, + "wall_seconds": 32.302090998739004, + "examples": 185856, + "target_supervised_tokens": 16896, + "replay_distillation_positions": 540672 + }, + { + "step": 44, + "branch_step": 0, + "completed_branches": 11, + "optimizer_updates": 5632, + "case_id": "second_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022849810193292797 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.984991073608398 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.381201044386423, + "accuracy": 0.381201044386423, + "answer_nll": 3.2713327407836914 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.59835147857666, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.0859375, + "accuracy": 0.0859375, + "answer_nll": 6.113542556762695 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.3875968992248062, + "accuracy": 0.3875968992248062, + "answer_nll": 3.336871385574341 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.723405361175537, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.547718996647745e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.090730667114258, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018010844360105693 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023295919527299702 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020338958711363375 + } + }, + "training_seconds": 19.64264925196767, + "wall_seconds": 32.633823823183775, + "examples": 185856, + "target_supervised_tokens": 16896, + "replay_distillation_positions": 540672 + }, + { + "step": 45, + "branch_step": 32, + "completed_branches": 11, + "optimizer_updates": 5664, + "case_id": "second_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 4.291525328881107e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.915846824645996 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3629242819843342, + "accuracy": 0.3629242819843342, + "answer_nll": 3.312042236328125 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.119400024414062, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.080078125, + "accuracy": 0.080078125, + "answer_nll": 5.91434383392334 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.36046511627906974, + "accuracy": 0.36046511627906974, + "answer_nll": 3.39713454246521 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.210580825805664, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.896919462131336e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.52652645111084, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026919221272692084 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023296690778806806 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023541248810943216 + } + }, + "training_seconds": 19.756943006068468, + "wall_seconds": 32.96565119922161, + "examples": 186912, + "target_supervised_tokens": 16992, + "replay_distillation_positions": 543744 + }, + { + "step": 46, + "branch_step": 128, + "completed_branches": 11, + "optimizer_updates": 5760, + "case_id": "second_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.145764938177308e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.750191688537598 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.36553524804177545, + "accuracy": 0.36553524804177545, + "answer_nll": 3.3123202323913574 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.425085067749023, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.083984375, + "accuracy": 0.083984375, + "answer_nll": 5.901322364807129 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.35271317829457366, + "accuracy": 0.35271317829457366, + "answer_nll": 3.402406692504883 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.528233528137207, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.815919136395678e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.973359107971191, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002514956286177039 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023332040291279554 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002349304995732382 + } + }, + "training_seconds": 20.08709491789341, + "wall_seconds": 33.55377570539713, + "examples": 190080, + "target_supervised_tokens": 17280, + "replay_distillation_positions": 552960 + }, + { + "step": 47, + "branch_step": 512, + "completed_branches": 12, + "optimizer_updates": 6144, + "case_id": "second_familiar-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.1920922133867862e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.485755920410156 + }, + "U_familiar": { + "n": 766, + "answer_accuracy": 0.3524804177545692, + "accuracy": 0.3524804177545692, + "answer_nll": 3.356189012527466 + }, + "D_second_familiar": { + "n": 2, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.692482948303223, + "changed_answer_n": 2, + "old_answer_accuracy": 0.5, + "parent_correct_n": 1, + "parent_correct_coverage": 0.5, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 2, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 512, + "answer_accuracy": 0.080078125, + "accuracy": 0.080078125, + "answer_nll": 6.060821533203125 + }, + "D_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 258, + "answer_accuracy": 0.35271317829457366, + "accuracy": 0.35271317829457366, + "answer_nll": 3.454033374786377 + }, + "D_second_registered_familiar": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.928817272186279, + "changed_answer_n": 1, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 255, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.859447891358286e-05 + }, + "T_second_train": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 14.009811401367188, + "changed_answer_n": 1, + "old_answer_accuracy": 1.0, + "parent_correct_n": 1, + "parent_correct_coverage": 1.0, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 1, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 2, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00026120684924535453 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023294429411180317 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00024426777963526547 + } + }, + "training_seconds": 21.438125617802143, + "wall_seconds": 35.104164607822895, + "examples": 202752, + "target_supervised_tokens": 18432, + "replay_distillation_positions": 589824 + }, + { + "step": 48, + "branch_step": 0, + "completed_branches": 12, + "optimizer_updates": 6144, + "case_id": "second_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023767507809679955 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.20185089111328 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.0825147347740668, + "accuracy": 0.0825147347740668, + "answer_nll": 6.143880367279053 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.523106575012207, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003829852503258735 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018166538211517036 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002050358016276732 + } + }, + "training_seconds": 21.43813467398286, + "wall_seconds": 35.56728610396385, + "examples": 202752, + "target_supervised_tokens": 18432, + "replay_distillation_positions": 589824 + }, + { + "step": 49, + "branch_step": 32, + "completed_branches": 12, + "optimizer_updates": 6176, + "case_id": "second_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 9.847870826721191 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0015637562610208988 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3111979166666667, + "accuracy": 0.3111979166666667, + "answer_nll": 3.93864369392395 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.09037328094302555, + "accuracy": 0.09037328094302555, + "answer_nll": 6.4163923263549805 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 0.9359777569770813, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3281853281853282, + "accuracy": 0.3281853281853282, + "answer_nll": 3.9360949993133545 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 0.99609375, + "accuracy": 0.99609375, + "answer_nll": 0.011355443857610226 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0020462118554860353 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.002612908836454153 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9969727547931383, + "accuracy": 0.9969727547931383, + "answer_nll": 0.019476328045129776 + } + }, + "training_seconds": 21.547887474298477, + "wall_seconds": 35.895443607121706, + "examples": 203808, + "target_supervised_tokens": 18528, + "replay_distillation_positions": 592896 + }, + { + "step": 50, + "branch_step": 128, + "completed_branches": 12, + "optimizer_updates": 6272, + "case_id": "second_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.970165252685547 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0001658063702052459 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3151041666666667, + "accuracy": 0.3151041666666667, + "answer_nll": 3.922447919845581 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.08447937131630648, + "accuracy": 0.08447937131630648, + "answer_nll": 6.33749532699585 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 0.6653055548667908, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3281853281853282, + "accuracy": 0.3281853281853282, + "answer_nll": 3.915670394897461 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 0.99609375, + "accuracy": 0.99609375, + "answer_nll": 0.02045396901667118 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0010128166759386659 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004440998309291899 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9949545913218971, + "accuracy": 0.9949545913218971, + "answer_nll": 0.02564919926226139 + } + }, + "training_seconds": 21.875350043177605, + "wall_seconds": 36.451199881732464, + "examples": 206976, + "target_supervised_tokens": 18816, + "replay_distillation_positions": 602112 + }, + { + "step": 51, + "branch_step": 512, + "completed_branches": 13, + "optimizer_updates": 6656, + "case_id": "second_strict-00", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 13.780613899230957 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.829164365422912e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3216145833333333, + "accuracy": 0.3216145833333333, + "answer_nll": 3.789095640182495 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.08447937131630648, + "accuracy": 0.08447937131630648, + "answer_nll": 6.1299357414245605 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.6666666666666666, + "accuracy": 0.6666666666666666, + "answer_nll": 0.780112087726593, + "changed_answer_n": 3, + "old_answer_accuracy": 0.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 1.0, + "old_retained_parent_correct": 0.0, + "direct_edit_success": true, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 3, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.6666666666666666 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.32432432432432434, + "accuracy": 0.32432432432432434, + "answer_nll": 3.7816081047058105 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 0.99609375, + "accuracy": 0.99609375, + "answer_nll": 0.01660745032131672 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005940796690993011 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00021518011635635048 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 0.9959636730575177, + "accuracy": 0.9959636730575177, + "answer_nll": 0.02114463597536087 + } + }, + "training_seconds": 23.195605020970106, + "wall_seconds": 37.96794322505593, + "examples": 219648, + "target_supervised_tokens": 19968, + "replay_distillation_positions": 638976 + }, + { + "step": 52, + "branch_step": 0, + "completed_branches": 13, + "optimizer_updates": 6656, + "case_id": "second_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023767507809679955 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.20185089111328 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.0825147347740668, + "accuracy": 0.0825147347740668, + "answer_nll": 6.143880367279053 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.523106575012207, + "changed_answer_n": 3, + "old_answer_accuracy": 0.6666666666666666, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0003829852503258735 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018166538211517036 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002050358016276732 + } + }, + "training_seconds": 23.195616360753775, + "wall_seconds": 38.24643938243389, + "examples": 219648, + "target_supervised_tokens": 19968, + "replay_distillation_positions": 638976 + }, + { + "step": 53, + "branch_step": 32, + "completed_branches": 13, + "optimizer_updates": 6688, + "case_id": "second_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.602820692729438e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.31685447692871 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3619791666666667, + "accuracy": 0.3619791666666667, + "answer_nll": 3.343080520629883 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.08447937131630648, + "accuracy": 0.08447937131630648, + "answer_nll": 6.171726226806641 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 11.08862590789795, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.3867855072021484 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.543671330902725e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043160279165022075 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018157975864596665 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023331541160587221 + } + }, + "training_seconds": 23.31129589304328, + "wall_seconds": 38.54672797396779, + "examples": 220704, + "target_supervised_tokens": 20064, + "replay_distillation_positions": 642048 + }, + { + "step": 54, + "branch_step": 128, + "completed_branches": 13, + "optimizer_updates": 6784, + "case_id": "second_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 3.099436753473128e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.624523162841797 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3580729166666667, + "accuracy": 0.3580729166666667, + "answer_nll": 3.336989641189575 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.07858546168958742, + "accuracy": 0.07858546168958742, + "answer_nll": 6.116759777069092 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.776130676269531, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.38223938223938225, + "accuracy": 0.38223938223938225, + "answer_nll": 3.3850295543670654 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.84516300377436e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0004213151114527136 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018197079771198332 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00023201324802357703 + } + }, + "training_seconds": 23.6443833373487, + "wall_seconds": 39.058522418141365, + "examples": 223872, + "target_supervised_tokens": 20352, + "replay_distillation_positions": 651264 + }, + { + "step": 55, + "branch_step": 512, + "completed_branches": 14, + "optimizer_updates": 7168, + "case_id": "second_strict-00", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.3841830625315197e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 18.721790313720703 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.35546875, + "accuracy": 0.35546875, + "answer_nll": 3.3603203296661377 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 509, + "answer_accuracy": 0.08055009823182711, + "accuracy": 0.08055009823182711, + "answer_nll": 6.126249313354492 + }, + "D_second_strict": { + "n": 3, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 10.22745132446289, + "changed_answer_n": 3, + "old_answer_accuracy": 1.0, + "parent_correct_n": 2, + "parent_correct_coverage": 0.6666666666666666, + "new_following_parent_correct": 0.0, + "old_retained_parent_correct": 1.0, + "direct_edit_success": false, + "necessary_atomic_correct_n": 3, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.37065637065637064, + "accuracy": 0.37065637065637064, + "answer_nll": 3.4195468425750732 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00010950291471090168 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 3, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00042052031494677067 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00018176966113969684 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002332507137907669 + } + }, + "training_seconds": 24.960568945854902, + "wall_seconds": 40.55590304732323, + "examples": 236544, + "target_supervised_tokens": 21504, + "replay_distillation_positions": 688128 + }, + { + "step": 56, + "branch_step": 0, + "completed_branches": 14, + "optimizer_updates": 7168, + "case_id": "second_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00013863079948350787 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 20.732982635498047 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08661417322834646, + "accuracy": 0.08661417322834646, + "answer_nll": 6.1103901863098145 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.353551864624023, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005739694461226463 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019493090803734958 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020470787421800196 + } + }, + "training_seconds": 24.96057802438736, + "wall_seconds": 41.0127782151103, + "examples": 236544, + "target_supervised_tokens": 21504, + "replay_distillation_positions": 688128 + }, + { + "step": 57, + "branch_step": 32, + "completed_branches": 14, + "optimizer_updates": 7200, + "case_id": "second_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 12.676973342895508 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0007515705074183643 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3450520833333333, + "accuracy": 0.3450520833333333, + "answer_nll": 3.3885650634765625 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.07874015748031496, + "accuracy": 0.07874015748031496, + "answer_nll": 6.135796546936035 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.937380790710449, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3590733590733591, + "accuracy": 0.3590733590733591, + "answer_nll": 3.4316155910491943 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0007547404384240508 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.006221436895430088 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.001526466803625226 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00447893375530839 + } + }, + "training_seconds": 25.073005627840757, + "wall_seconds": 41.34592219814658, + "examples": 237600, + "target_supervised_tokens": 21600, + "replay_distillation_positions": 691200 + }, + { + "step": 58, + "branch_step": 128, + "completed_branches": 14, + "optimizer_updates": 7296, + "case_id": "second_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 16.791215896606445 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 6.151010165922344e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3411458333333333, + "accuracy": 0.3411458333333333, + "answer_nll": 3.3625802993774414 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 6.036448955535889 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.145142078399658, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3474903474903475, + "accuracy": 0.3474903474903475, + "answer_nll": 3.417640209197998 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0010199648095294833 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.004136091098189354 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00043246199493296444 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.004087112843990326 + } + }, + "training_seconds": 25.401398818939924, + "wall_seconds": 41.87159254029393, + "examples": 240768, + "target_supervised_tokens": 21888, + "replay_distillation_positions": 700416 + }, + { + "step": 59, + "branch_step": 512, + "completed_branches": 15, + "optimizer_updates": 7680, + "case_id": "second_strict-01", + "arm": "edit", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 17.680261611938477 + }, + "E_new": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.753696753643453e-05 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3567708333333333, + "accuracy": 0.3567708333333333, + "answer_nll": 3.257891893386841 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.09251968503937008, + "accuracy": 0.09251968503937008, + "answer_nll": 5.869877338409424 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 6.890652656555176, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 4, + "operation_correct_coverage": 1.0, + "new_following_operation_correct": 0.0 + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.36293436293436293, + "accuracy": 0.36293436293436293, + "answer_nll": 3.3377602100372314 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005692985141649842 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": true, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0019438707968220115 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022011849796399474 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0016470096306875348 + } + }, + "training_seconds": 26.692283425480127, + "wall_seconds": 43.3776473402977, + "examples": 253440, + "target_supervised_tokens": 23040, + "replay_distillation_positions": 737280 + }, + { + "step": 60, + "branch_step": 0, + "completed_branches": 15, + "optimizer_updates": 7680, + "case_id": "second_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00013863079948350787 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 20.732982635498047 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3815104166666667, + "accuracy": 0.3815104166666667, + "answer_nll": 3.267082452774048 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08661417322834646, + "accuracy": 0.08661417322834646, + "answer_nll": 6.1103901863098145 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.353551864624023, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3861003861003861, + "accuracy": 0.3861003861003861, + "answer_nll": 3.335082530975342 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 7.553903560619801e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005739694461226463 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019493090803734958 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00020470787421800196 + } + }, + "training_seconds": 26.692291911691427, + "wall_seconds": 43.69863744452596, + "examples": 253440, + "target_supervised_tokens": 23040, + "replay_distillation_positions": 737280 + }, + { + "step": 61, + "branch_step": 32, + "completed_branches": 15, + "optimizer_updates": 7712, + "case_id": "second_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 2.50339189733495e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 24.997676849365234 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3723958333333333, + "accuracy": 0.3723958333333333, + "answer_nll": 3.294020414352417 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08267716535433071, + "accuracy": 0.08267716535433071, + "answer_nll": 6.065610408782959 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.186941146850586, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3783783783783784, + "accuracy": 0.3783783783783784, + "answer_nll": 3.3370625972747803 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.528054604539648e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005723041831515729 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019580601656343788 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022852483380120248 + } + }, + "training_seconds": 26.803421270102262, + "wall_seconds": 43.98217261955142, + "examples": 254496, + "target_supervised_tokens": 23136, + "replay_distillation_positions": 740352 + }, + { + "step": 62, + "branch_step": 128, + "completed_branches": 15, + "optimizer_updates": 7808, + "case_id": "second_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 1.4305104514278355e-06 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 25.415477752685547 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.3723958333333333, + "accuracy": 0.3723958333333333, + "answer_nll": 3.309083938598633 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08464566929133858, + "accuracy": 0.08464566929133858, + "answer_nll": 6.079328536987305 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.549757957458496, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3745173745173745, + "accuracy": 0.3745173745173745, + "answer_nll": 3.360058307647705 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 8.564836753066629e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0005994666134938598 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.000195094762602821 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0002257438754895702 + } + }, + "training_seconds": 27.131938084959984, + "wall_seconds": 44.53965839371085, + "examples": 257664, + "target_supervised_tokens": 23424, + "replay_distillation_positions": 749568 + }, + { + "step": 63, + "branch_step": 512, + "completed_branches": 16, + "optimizer_updates": 8192, + "case_id": "second_strict-01", + "arm": "sham", + "lr": 3e-05, + "metrics": { + "E_old": { + "n": 1, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 5.960462772236497e-07 + }, + "E_new": { + "n": 1, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 25.786056518554688 + }, + "U_familiar": { + "n": 768, + "answer_accuracy": 0.36328125, + "accuracy": 0.36328125, + "answer_nll": 3.3221004009246826 + }, + "D_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_strict": { + "n": 508, + "answer_accuracy": 0.08661417322834646, + "accuracy": 0.08661417322834646, + "answer_nll": 6.126580238342285 + }, + "D_second_strict": { + "n": 4, + "answer_accuracy": 0.0, + "accuracy": 0.0, + "answer_nll": 15.776044845581055, + "changed_answer_n": 4, + "old_answer_accuracy": 0.0, + "parent_correct_n": 0, + "parent_correct_coverage": 0.0, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 4, + "operation_correct_n": 0, + "operation_correct_coverage": 0.0, + "new_following_operation_correct": null + }, + "S_same_answer_second_strict": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_registered_familiar": { + "n": 259, + "answer_accuracy": 0.3667953667953668, + "accuracy": 0.3667953667953668, + "answer_nll": 3.3821592330932617 + }, + "D_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "S_same_answer_second_registered_familiar": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "U_train": { + "n": 256, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 9.087142097996548e-05 + }, + "T_second_train": { + "n": 0, + "accuracy": null, + "answer_accuracy": null, + "answer_nll": null, + "changed_answer_n": 0, + "old_answer_accuracy": null, + "parent_correct_n": 0, + "parent_correct_coverage": null, + "new_following_parent_correct": null, + "old_retained_parent_correct": null, + "direct_edit_success": false, + "necessary_atomic_correct_n": 0, + "operation_correct_n": 0, + "operation_correct_coverage": null, + "new_following_operation_correct": null + }, + "necessary_atomic": { + "n": 4, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.0006123624043539166 + }, + "R_atomic": { + "n": 32, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00019500541384331882 + }, + "U_atomic": { + "n": 991, + "answer_accuracy": 1.0, + "accuracy": 1.0, + "answer_nll": 0.00022667762823402882 + } + }, + "training_seconds": 28.43893926218152, + "wall_seconds": 46.06836721301079, + "examples": 270336, + "target_supervised_tokens": 24576, + "replay_distillation_positions": 786432 + } +] diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/run.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/run.json new file mode 100644 index 0000000000000000000000000000000000000000..f62b65625c3407581ca56974b7c0f83f7bd5a529 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/run.json @@ -0,0 +1,567 @@ +{ + "spec": { + "name": "development-bridge_ce-lr3e-05", + "phase": "development", + "arm": "bridge_ce", + "parent_dir": "/ossfs/workspace/llm-memory-editability/results/representation-alignment-v1/runs/development-v2-w770011-i771011-bridge_ce", + "candidate_seed": 780011, + "per_cell": 2, + "replay_n": 32, + "nodes": [ + 0, + 32, + 128, + 512 + ], + "lr": 3e-05, + "parameter_scope": "mlp", + "block_index": 0, + "replay_weight": 1.0, + "parent_checkpoint_sha256": "08c4b347e8f1bdb0c09def02d9a623d45bb7949183c6ea88285cc8152c98d680" + }, + "parent_spec": { + "phase": "development-v2", + "world": 770011, + "initialization": 771011, + "stream_seed": 772011, + "heads_n": 256, + "bridges_n": 128, + "tails_n": 64, + "familiar_n": 64, + "strict_n": 32, + "anchor_n": 32, + "holdout_fraction": 0.25, + "low_extra": "anchors", + "composition_count": 256, + "width": 128, + "heads": 4, + "layers": 1, + "repeats": 2, + "dropout": 0.0, + "batch_size": 192, + "lr": 0.001, + "weight_decay": 0.01, + "warmup": 200, + "schedule": "cosine", + "min_lr_ratio": 0.1, + "steps": 8000, + "nodes": [ + 0, + 256, + 1000, + 2000, + 4000, + 8000 + ], + "arm": "bridge_ce", + "bridge_weight": 0.3, + "alignment_weight": 0.0 + }, + "cases": [ + { + "case_id": "first_familiar-00", + "role": "first", + "stratum": "familiar", + "old_fact": [ + 57, + 15, + 316 + ], + "new_fact": [ + 57, + 15, + 306 + ], + "replay_indices": [ + 102, + 105, + 152, + 154, + 171, + 173, + 178, + 183, + 215, + 249, + 252, + 262, + 334, + 395, + 414, + 472, + 493, + 506, + 524, + 564, + 570, + 677, + 693, + 696, + 754, + 865, + 902, + 940, + 958, + 992, + 996, + 1008 + ], + "affected_untrained_n": { + "D_first_familiar": 2, + "S_same_answer_first_familiar": 0, + "D_first_strict": 0, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 2, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 2 + } + }, + { + "case_id": "first_familiar-01", + "role": "first", + "stratum": "familiar", + "old_fact": [ + 83, + 14, + 317 + ], + "new_fact": [ + 83, + 14, + 291 + ], + "replay_indices": [ + 15, + 61, + 92, + 109, + 172, + 193, + 222, + 271, + 342, + 379, + 380, + 456, + 477, + 480, + 512, + 526, + 527, + 552, + 553, + 557, + 561, + 596, + 641, + 656, + 691, + 761, + 817, + 829, + 866, + 904, + 967, + 1016 + ], + "affected_untrained_n": { + "D_first_familiar": 3, + "S_same_answer_first_familiar": 0, + "D_first_strict": 0, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 1, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 1 + } + }, + { + "case_id": "first_strict-00", + "role": "first", + "stratum": "strict", + "old_fact": [ + 92, + 15, + 344 + ], + "new_fact": [ + 92, + 15, + 351 + ], + "replay_indices": [ + 17, + 39, + 49, + 51, + 84, + 87, + 88, + 142, + 231, + 255, + 268, + 277, + 289, + 422, + 483, + 488, + 494, + 519, + 559, + 589, + 630, + 673, + 678, + 719, + 754, + 799, + 839, + 885, + 935, + 957, + 1015, + 1016 + ], + "affected_untrained_n": { + "D_first_familiar": 0, + "S_same_answer_first_familiar": 0, + "D_first_strict": 4, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 0, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 0 + } + }, + { + "case_id": "first_strict-01", + "role": "first", + "stratum": "strict", + "old_fact": [ + 113, + 16, + 348 + ], + "new_fact": [ + 113, + 16, + 367 + ], + "replay_indices": [ + 31, + 64, + 70, + 101, + 118, + 154, + 210, + 307, + 344, + 359, + 364, + 382, + 405, + 413, + 420, + 462, + 522, + 537, + 671, + 709, + 761, + 762, + 770, + 822, + 823, + 849, + 908, + 910, + 980, + 994, + 1002, + 1020 + ], + "affected_untrained_n": { + "D_first_familiar": 0, + "S_same_answer_first_familiar": 0, + "D_first_strict": 4, + "S_same_answer_first_strict": 0, + "D_first_registered_familiar": 0, + "S_same_answer_first_registered_familiar": 0, + "T_first_train": 0 + } + }, + { + "case_id": "second_familiar-00", + "role": "second", + "stratum": "familiar", + "old_fact": [ + 330, + 19, + 425 + ], + "new_fact": [ + 330, + 19, + 430 + ], + "replay_indices": [ + 55, + 78, + 107, + 163, + 207, + 219, + 228, + 270, + 274, + 277, + 340, + 383, + 385, + 433, + 453, + 475, + 543, + 551, + 618, + 669, + 671, + 681, + 762, + 841, + 857, + 880, + 893, + 977, + 985, + 998, + 1013, + 1017 + ], + "affected_untrained_n": { + "D_second_familiar": 3, + "S_same_answer_second_familiar": 0, + "D_second_strict": 0, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 1, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 2 + } + }, + { + "case_id": "second_familiar-01", + "role": "second", + "stratum": "familiar", + "old_fact": [ + 325, + 17, + 466 + ], + "new_fact": [ + 325, + 17, + 437 + ], + "replay_indices": [ + 5, + 151, + 184, + 191, + 246, + 251, + 260, + 293, + 295, + 377, + 450, + 456, + 460, + 472, + 527, + 590, + 600, + 713, + 726, + 757, + 768, + 781, + 796, + 830, + 846, + 854, + 877, + 883, + 920, + 930, + 988, + 1013 + ], + "affected_untrained_n": { + "D_second_familiar": 2, + "S_same_answer_second_familiar": 0, + "D_second_strict": 0, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 1, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 1 + } + }, + { + "case_id": "second_strict-00", + "role": "second", + "stratum": "strict", + "old_fact": [ + 356, + 19, + 429 + ], + "new_fact": [ + 356, + 19, + 407 + ], + "replay_indices": [ + 26, + 54, + 92, + 106, + 168, + 180, + 185, + 246, + 285, + 331, + 344, + 362, + 395, + 454, + 516, + 559, + 561, + 568, + 593, + 604, + 628, + 647, + 706, + 713, + 826, + 886, + 893, + 920, + 925, + 946, + 982, + 1017 + ], + "affected_untrained_n": { + "D_second_familiar": 0, + "S_same_answer_second_familiar": 0, + "D_second_strict": 3, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 0, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 0 + } + }, + { + "case_id": "second_strict-01", + "role": "second", + "stratum": "strict", + "old_fact": [ + 343, + 18, + 425 + ], + "new_fact": [ + 343, + 18, + 408 + ], + "replay_indices": [ + 10, + 41, + 62, + 97, + 121, + 156, + 320, + 365, + 368, + 387, + 457, + 505, + 556, + 604, + 618, + 624, + 629, + 699, + 727, + 746, + 755, + 774, + 796, + 810, + 815, + 874, + 884, + 901, + 947, + 973, + 1003, + 1006 + ], + "affected_untrained_n": { + "D_second_familiar": 0, + "S_same_answer_second_familiar": 0, + "D_second_strict": 4, + "S_same_answer_second_strict": 0, + "D_second_registered_familiar": 0, + "S_same_answer_second_registered_familiar": 0, + "T_second_train": 0 + } + } + ], + "qualification": { + "first_familiar": { + "candidate_addresses": 255, + "eligible_addresses": 255, + "eligible_replacements": 16050, + "untrained_queries": 768 + }, + "first_strict": { + "candidate_addresses": 128, + "eligible_addresses": 128, + "eligible_replacements": 3968, + "untrained_queries": 512 + }, + "second_familiar": { + "candidate_addresses": 252, + "eligible_addresses": 252, + "eligible_replacements": 15876, + "untrained_queries": 768 + }, + "second_strict": { + "candidate_addresses": 128, + "eligible_addresses": 128, + "eligible_replacements": 8064, + "untrained_queries": 512 + } + }, + "case_sha256": "a00a8d7805923ac7c504eba611c7bcd90409bca9116591e25dae0a810fc4fa31", + "parent_file_sha256": "08c4b347e8f1bdb0c09def02d9a623d45bb7949183c6ea88285cc8152c98d680", + "parent_model_sha256": "26d09287389d997ea2c651489fa1aa6a22a9c1b6bfbd41ff7c6531fcfabfc0d4", + "world_sha256": "26e6a732000c6913c30dd18e62894fc7c7282259ac2a02765c9225a38d7bf6c9", + "created_utc": "2026-10-03T18:42:39.705810+00:00", + "dtype": "float32", + "allow_tf32": true, + "pid": 1, + "gpu": 0, + "branches": 16, + "planned_updates": 8192, + "planned_evaluations": 64, + "learning_step_unit": "evaluation_index", + "status_step_unit": "completed_branches", + "scope_warning": "The selected MLP is shared across all repeated executions" +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/status.json b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/status.json new file mode 100644 index 0000000000000000000000000000000000000000..f9602ab649ea048f5c9f78ce444f3c80045febd5 --- /dev/null +++ b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/status.json @@ -0,0 +1,6 @@ +{ + "state": "complete", + "step": 16, + "optimizer_updates": 8192, + "budget": 16 +} diff --git a/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/worker.log b/results/interface-editing-development-v1/runs/development-bridge_ce-lr3e-05/worker.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/results/interface-editing-development-v1/tracking.log b/results/interface-editing-development-v1/tracking.log new file mode 100644 index 0000000000000000000000000000000000000000..efab607cf0dfeb9a906c0bfa236a7ee9bf6e5698 --- /dev/null +++ b/results/interface-editing-development-v1/tracking.log @@ -0,0 +1,261 @@ +wandb: [wandb.login()] Loaded credentials for https://api.wandb.ai from /root/.netrc. +wandb: Currently logged in as: zhusq20 (zsqzz) to https://api.wandb.ai. Use `wandb login --relogin` to force relogin +wandb: setting up run 8b479ccd737a9907 +wandb: Tracking run with wandb version 0.30.0 +wandb: Run data is saved locally in /ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/tracking-wandb/development-aligned_0.3-lr0.0001/wandb/run-20261004_024153-8b479ccd737a9907 +wandb: Run `wandb offline` to turn off syncing. +wandb: Syncing run development-aligned_0.3-lr0.0001 +wandb: ⭐️ View project at https://wandb.ai/zhusq20/llm-memory-editability +wandb: 🚀 View run at https://wandb.ai/zhusq20/llm-memory-editability/runs/8b479ccd737a9907 +{"run": "development-aligned_0.3-lr0.0001", "url": "https://wandb.ai/zhusq20/llm-memory-editability/runs/8b479ccd737a9907"} +wandb: setting up run 40944d888646f946 +wandb: Tracking run with wandb version 0.30.0 +wandb: Run data is saved locally in /ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/tracking-wandb/development-aligned_0.3-lr1e-05/wandb/run-20261004_024156-40944d888646f946 +wandb: Run `wandb offline` to turn off syncing. +wandb: Syncing run development-aligned_0.3-lr1e-05 +wandb: ⭐️ View project at https://wandb.ai/zhusq20/llm-memory-editability +wandb: 🚀 View run at https://wandb.ai/zhusq20/llm-memory-editability/runs/40944d888646f946 +{"run": "development-aligned_0.3-lr1e-05", "url": "https://wandb.ai/zhusq20/llm-memory-editability/runs/40944d888646f946"} +wandb: setting up run 881433eee2119540 +wandb: Tracking run with wandb version 0.30.0 +wandb: Run data is saved locally in /ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/tracking-wandb/development-aligned_0.3-lr3e-05/wandb/run-20261004_024159-881433eee2119540 +wandb: Run `wandb offline` to turn off syncing. +wandb: Syncing run development-aligned_0.3-lr3e-05 +wandb: ⭐️ View project at https://wandb.ai/zhusq20/llm-memory-editability +wandb: 🚀 View run at https://wandb.ai/zhusq20/llm-memory-editability/runs/881433eee2119540 +{"run": "development-aligned_0.3-lr3e-05", "url": "https://wandb.ai/zhusq20/llm-memory-editability/runs/881433eee2119540"} +wandb: setting up run a72f262b538c51dc +wandb: Tracking run with wandb version 0.30.0 +wandb: Run data is saved locally in /ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/tracking-wandb/development-bridge_ce-lr1e-05/wandb/run-20261004_024202-a72f262b538c51dc +wandb: Run `wandb offline` to turn off syncing. +wandb: Syncing run development-bridge_ce-lr1e-05 +wandb: ⭐️ View project at https://wandb.ai/zhusq20/llm-memory-editability +wandb: 🚀 View run at https://wandb.ai/zhusq20/llm-memory-editability/runs/a72f262b538c51dc +{"run": "development-bridge_ce-lr1e-05", "url": "https://wandb.ai/zhusq20/llm-memory-editability/runs/a72f262b538c51dc"} +wandb: updating run metadata +wandb: uploading output.log; uploading wandb-summary.json; uploading config.yaml +wandb: uploading wandb-summary.json; uploading config.yaml +wandb: uploading config.yaml +wandb: +wandb: Run history: +wandb: eval/D_first_familiar/accuracy ▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁ +wandb: eval/D_first_familiar/answer_accuracy ▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁ +wandb: eval/D_first_familiar/answer_nll ▇▃▃▃▇██▇▄▁▁▁▄▅▅▅ +wandb: eval/D_first_familiar/changed_answer_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/necessary_atomic_correct_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_operation_correct ▁▁▁▁▁█ +wandb: eval/D_first_familiar/new_following_parent_correct ▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁ +wandb: eval/D_first_familiar/old_answer_accuracy ██▃▃█████▅▅▁████ +wandb: eval/D_first_familiar/old_retained_parent_correct ██▃▃█████▅▅▁████ +wandb: +181 ... +wandb: +wandb: Run summary: +wandb: condition/arm sham +wandb: condition/case_id second_strict-01 +wandb: condition/step_unit evaluation_index +wandb: eval/D_first_familiar/accuracy 0 +wandb: eval/D_first_familiar/answer_accuracy 0 +wandb: eval/D_first_familiar/answer_nll 11.921 +wandb: eval/D_first_familiar/changed_answer_n 0 +wandb: eval/D_first_familiar/n 0 +wandb: eval/D_first_familiar/necessary_atomic_correct_n 0 +wandb: eval/D_first_familiar/new_following_operation_correct 0.33333 +wandb: +188 ... +wandb: +wandb: 🚀 View run development-aligned_0.3-lr0.0001 at: https://wandb.ai/zhusq20/llm-memory-editability/runs/8b479ccd737a9907 +wandb: ⭐️ View project at: https://wandb.ai/zhusq20/llm-memory-editability +wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s) +wandb: Find logs at: ./results/interface-editing-development-v1/tracking-wandb/development-aligned_0.3-lr0.0001/wandb/run-20261004_024153-8b479ccd737a9907/logs +wandb: updating run metadata +wandb: uploading wandb-summary.json; uploading config.yaml; uploading output.log +wandb: uploading config.yaml; uploading output.log +wandb: uploading history steps 57-63, summary, console lines 19-51 +wandb: +wandb: Run history: +wandb: eval/D_first_familiar/accuracy ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/answer_accuracy ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/answer_nll ▇▆▅▅▇███▄▃▁▁▄▄▄▄ +wandb: eval/D_first_familiar/changed_answer_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/necessary_atomic_correct_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_operation_correct ▁▁▁▁ +wandb: eval/D_first_familiar/new_following_parent_correct ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/old_answer_accuracy ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/old_retained_parent_correct ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: +181 ... +wandb: +wandb: Run summary: +wandb: condition/arm sham +wandb: condition/case_id second_strict-01 +wandb: condition/step_unit evaluation_index +wandb: eval/D_first_familiar/accuracy 0 +wandb: eval/D_first_familiar/answer_accuracy 0 +wandb: eval/D_first_familiar/answer_nll 11.8567 +wandb: eval/D_first_familiar/changed_answer_n 0 +wandb: eval/D_first_familiar/n 0 +wandb: eval/D_first_familiar/necessary_atomic_correct_n 0 +wandb: eval/D_first_familiar/new_following_operation_correct 0 +wandb: +188 ... +wandb: +wandb: 🚀 View run development-aligned_0.3-lr1e-05 at: https://wandb.ai/zhusq20/llm-memory-editability/runs/40944d888646f946 +wandb: ⭐️ View project at: https://wandb.ai/zhusq20/llm-memory-editability +wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s) +wandb: Find logs at: ./results/interface-editing-development-v1/tracking-wandb/development-aligned_0.3-lr1e-05/wandb/run-20261004_024156-40944d888646f946/logs +wandb: uploading output.log; uploading wandb-summary.json; uploading config.yaml +wandb: uploading wandb-summary.json; uploading config.yaml +wandb: uploading config.yaml +wandb: +wandb: Run history: +wandb: eval/D_first_familiar/accuracy ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/answer_accuracy ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/answer_nll ▇▅▅▄▇██▇▄▂▁▁▄▅▄▅ +wandb: eval/D_first_familiar/changed_answer_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/necessary_atomic_correct_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_operation_correct ▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_parent_correct ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/old_answer_accuracy ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/old_retained_parent_correct ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: +181 ... +wandb: +wandb: Run summary: +wandb: condition/arm sham +wandb: condition/case_id second_strict-01 +wandb: condition/step_unit evaluation_index +wandb: eval/D_first_familiar/accuracy 0 +wandb: eval/D_first_familiar/answer_accuracy 0 +wandb: eval/D_first_familiar/answer_nll 12.06079 +wandb: eval/D_first_familiar/changed_answer_n 0 +wandb: eval/D_first_familiar/n 0 +wandb: eval/D_first_familiar/necessary_atomic_correct_n 0 +wandb: eval/D_first_familiar/new_following_operation_correct 0 +wandb: +188 ... +wandb: +wandb: 🚀 View run development-aligned_0.3-lr3e-05 at: https://wandb.ai/zhusq20/llm-memory-editability/runs/881433eee2119540 +wandb: ⭐️ View project at: https://wandb.ai/zhusq20/llm-memory-editability +wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s) +wandb: Find logs at: ./results/interface-editing-development-v1/tracking-wandb/development-aligned_0.3-lr3e-05/wandb/run-20261004_024159-881433eee2119540/logs +wandb: updating run metadata +wandb: uploading config.yaml; uploading output.log; uploading wandb-summary.json +wandb: uploading output.log; uploading wandb-summary.json +wandb: uploading wandb-summary.json +wandb: +wandb: Run history: +wandb: eval/D_first_familiar/accuracy ▁▁▁▁▁▁▁▁▁▁▅█▁▁▁▁ +wandb: eval/D_first_familiar/answer_accuracy ▁▁▁▁▁▁▁▁▁▁▅█▁▁▁▁ +wandb: eval/D_first_familiar/answer_nll █▆▃▃████▇▅▁▁▇▆▆▅ +wandb: eval/D_first_familiar/changed_answer_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/necessary_atomic_correct_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_operation_correct ▁▁▅█ +wandb: eval/D_first_familiar/new_following_parent_correct ▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/old_answer_accuracy █▅▅▅████▁▁▁▁▁▃▃▃ +wandb: eval/D_first_familiar/old_retained_parent_correct █▁▁▁████ +wandb: +181 ... +wandb: +wandb: Run summary: +wandb: condition/arm sham +wandb: condition/case_id second_strict-01 +wandb: condition/step_unit evaluation_index +wandb: eval/D_first_familiar/accuracy 0 +wandb: eval/D_first_familiar/answer_accuracy 0 +wandb: eval/D_first_familiar/answer_nll 8.54327 +wandb: eval/D_first_familiar/changed_answer_n 0 +wandb: eval/D_first_familiar/n 0 +wandb: eval/D_first_familiar/necessary_atomic_correct_n 0 +wandb: eval/D_first_familiar/new_following_operation_correct 0.66667 +wandb: +188 ... +wandb: +wandb: 🚀 View run development-bridge_ce-lr1e-05 at: https://wandb.ai/zhusq20/llm-memory-editability/runs/a72f262b538c51dc +wandb: ⭐️ View project at: https://wandb.ai/zhusq20/llm-memory-editability +wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s) +wandb: Find logs at: ./results/interface-editing-development-v1/tracking-wandb/development-bridge_ce-lr1e-05/wandb/run-20261004_024202-a72f262b538c51dc/logs +wandb: setting up run 2f8d5cd4b0cd3e29 +wandb: Tracking run with wandb version 0.30.0 +wandb: Run data is saved locally in /ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/tracking-wandb/development-bridge_ce-lr0.0001/wandb/run-20261004_024310-2f8d5cd4b0cd3e29 +wandb: Run `wandb offline` to turn off syncing. +wandb: Syncing run development-bridge_ce-lr0.0001 +wandb: ⭐️ View project at https://wandb.ai/zhusq20/llm-memory-editability +wandb: 🚀 View run at https://wandb.ai/zhusq20/llm-memory-editability/runs/2f8d5cd4b0cd3e29 +{"run": "development-bridge_ce-lr0.0001", "url": "https://wandb.ai/zhusq20/llm-memory-editability/runs/2f8d5cd4b0cd3e29"} +wandb: setting up run 5fcc8102f820227b +wandb: Tracking run with wandb version 0.30.0 +wandb: Run data is saved locally in /ossfs/workspace/llm-memory-editability/results/interface-editing-development-v1/tracking-wandb/development-bridge_ce-lr3e-05/wandb/run-20261004_024313-5fcc8102f820227b +wandb: Run `wandb offline` to turn off syncing. +wandb: Syncing run development-bridge_ce-lr3e-05 +wandb: ⭐️ View project at https://wandb.ai/zhusq20/llm-memory-editability +wandb: 🚀 View run at https://wandb.ai/zhusq20/llm-memory-editability/runs/5fcc8102f820227b +{"run": "development-bridge_ce-lr3e-05", "url": "https://wandb.ai/zhusq20/llm-memory-editability/runs/5fcc8102f820227b"} +wandb: updating run metadata +wandb: uploading wandb-summary.json; uploading config.yaml; uploading output.log +wandb: uploading config.yaml; uploading output.log +wandb: uploading output.log +wandb: uploading history steps 53-63, summary +wandb: +wandb: Run history: +wandb: eval/D_first_familiar/accuracy ▁▁▁▁▁▁▁▁▁▅██▁▁▁▁ +wandb: eval/D_first_familiar/answer_accuracy ▁▁▁▁▁▁▁▁▁▅██▁▁▁▁ +wandb: eval/D_first_familiar/answer_nll █▃▂▂███▇▇▂▁▁▇▆▆▅ +wandb: eval/D_first_familiar/changed_answer_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/necessary_atomic_correct_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_operation_correct ▁▁▁▅██ +wandb: eval/D_first_familiar/new_following_parent_correct ▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/old_answer_accuracy █▅▅▅███▅▁▁▁▁▁▃▃▃ +wandb: eval/D_first_familiar/old_retained_parent_correct █▁▁▁███▁ +wandb: +181 ... +wandb: +wandb: Run summary: +wandb: condition/arm sham +wandb: condition/case_id second_strict-01 +wandb: condition/step_unit evaluation_index +wandb: eval/D_first_familiar/accuracy 0 +wandb: eval/D_first_familiar/answer_accuracy 0 +wandb: eval/D_first_familiar/answer_nll 8.43793 +wandb: eval/D_first_familiar/changed_answer_n 0 +wandb: eval/D_first_familiar/n 0 +wandb: eval/D_first_familiar/necessary_atomic_correct_n 0 +wandb: eval/D_first_familiar/new_following_operation_correct 0.66667 +wandb: +188 ... +wandb: +wandb: 🚀 View run development-bridge_ce-lr3e-05 at: https://wandb.ai/zhusq20/llm-memory-editability/runs/5fcc8102f820227b +wandb: ⭐️ View project at: https://wandb.ai/zhusq20/llm-memory-editability +wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s) +wandb: Find logs at: ./results/interface-editing-development-v1/tracking-wandb/development-bridge_ce-lr3e-05/wandb/run-20261004_024313-5fcc8102f820227b/logs +wandb: updating run metadata +wandb: uploading output.log; uploading wandb-summary.json; uploading config.yaml +wandb: uploading wandb-summary.json; uploading config.yaml +wandb: uploading config.yaml; uploading history steps 63-63, summary +wandb: uploading data +wandb: +wandb: Run history: +wandb: eval/D_first_familiar/accuracy ▁███▁▁▁▁▁▆▁▆▁▁▁▁ +wandb: eval/D_first_familiar/answer_accuracy ▁███▁▁▁▁▁▆▁▆▁▁▁▁ +wandb: eval/D_first_familiar/answer_nll █▁▁▁██▇▇▇▂▃▂▇▆▆▆ +wandb: eval/D_first_familiar/changed_answer_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/necessary_atomic_correct_n ▆▆▆▆▆▆▆▆████████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ +wandb: eval/D_first_familiar/new_following_operation_correct ███▆▁▆ +wandb: eval/D_first_familiar/new_following_parent_correct ▁███▁▁▁▁ +wandb: eval/D_first_familiar/old_answer_accuracy █▁▁▁██▅▅▁▁▁▁▁▃▃▃ +wandb: eval/D_first_familiar/old_retained_parent_correct █▁▁▁██▅▅ +wandb: +181 ... +wandb: +wandb: Run summary: +wandb: condition/arm sham +wandb: condition/case_id second_strict-01 +wandb: condition/step_unit evaluation_index +wandb: eval/D_first_familiar/accuracy 0 +wandb: eval/D_first_familiar/answer_accuracy 0 +wandb: eval/D_first_familiar/answer_nll 8.855 +wandb: eval/D_first_familiar/changed_answer_n 0 +wandb: eval/D_first_familiar/n 0 +wandb: eval/D_first_familiar/necessary_atomic_correct_n 0 +wandb: eval/D_first_familiar/new_following_operation_correct 0.33333 +wandb: +188 ... +wandb: +wandb: 🚀 View run development-bridge_ce-lr0.0001 at: https://wandb.ai/zhusq20/llm-memory-editability/runs/2f8d5cd4b0cd3e29 +wandb: ⭐️ View project at: https://wandb.ai/zhusq20/llm-memory-editability +wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s) +wandb: Find logs at: ./results/interface-editing-development-v1/tracking-wandb/development-bridge_ce-lr0.0001/wandb/run-20261004_024310-2f8d5cd4b0cd3e29/logs diff --git a/results/memory-scaling-theory-v1/checks-v1/support-graphs.json b/results/memory-scaling-theory-v1/checks-v1/support-graphs.json new file mode 100644 index 0000000000000000000000000000000000000000..c315bfa4d1746810f5efe8f90bb0bd3596dfccb0 --- /dev/null +++ b/results/memory-scaling-theory-v1/checks-v1/support-graphs.json @@ -0,0 +1,1734 @@ +{ + "scope": "Training support topology only; zero added LM training or weight evaluation", + "selection_basis": "Only available training edges and their frozen order; no model scores or test pairs select edges", + "caveat": "Incidence rank is exact for the additive calibration example, not a measured LM feature Gram rank", + "source_sha256": "2cd81822d8de24fe841fc088d83b5a856ae642bdf8aba50b07410f4165be5c4c", + "coverage_report_sha256": "d067f2804dd21be1fcc8f7d07dde2eac0f60aa2d1640233c774b5ab6ee38c7ac", + "worlds": [ + { + "world": 740101, + "data_path": "results/latent-confirmation-v1/w740101-i741101-d128-l1-r1-nall-s128000/world.npz", + "data_sha256": "769d63b471a630be5fdb9202358bec104d1487f2ac7ad0fadd8f1c31659f67fe", + "role_count": 506, + "bridge_count": 64, + "full_components": 64, + "minimum_edges_preserving_full_components": 442, + "cases": { + "prefix256": { + "chain_count": 256, + "components_including_uncovered_roles": 261, + "isolated_roles": 167, + "incidence_rank": 245, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 88, + "test_pairs_in_same_component": 42, + "test_count": 265 + }, + "role_matched384": { + "chain_count": 384, + "components_including_uncovered_roles": 137, + "isolated_roles": 0, + "incidence_rank": 369, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 254, + "test_pairs_in_same_component": 75, + "test_count": 265 + }, + "role_matched512": { + "chain_count": 512, + "components_including_uncovered_roles": 85, + "isolated_roles": 0, + "incidence_rank": 421, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 254, + "test_pairs_in_same_component": 199, + "test_count": 265 + }, + "forest_matched512": { + "chain_count": 512, + "components_including_uncovered_roles": 64, + "isolated_roles": 0, + "incidence_rank": 442, + "matches_full_component_partition": true, + "test_pairs_with_both_roles_used": 254, + "test_pairs_in_same_component": 254, + "test_count": 265 + }, + "all": { + "chain_count": 759, + "components_including_uncovered_roles": 64, + "isolated_roles": 0, + "incidence_rank": 442, + "matches_full_component_partition": true, + "test_pairs_with_both_roles_used": 254, + "test_pairs_in_same_component": 254, + "test_count": 265 + } + }, + "forest_matched512_available_composite_indices": [ + 0, + 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, + 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, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 187, + 188, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 203, + 204, + 205, + 206, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 252, + 253, + 255, + 257, + 258, + 259, + 260, + 262, + 263, + 264, + 265, + 266, + 269, + 270, + 271, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 312, + 313, + 315, + 316, + 317, + 320, + 321, + 322, + 323, + 324, + 327, + 328, + 330, + 331, + 333, + 337, + 339, + 341, + 342, + 343, + 344, + 345, + 346, + 348, + 351, + 353, + 354, + 357, + 360, + 361, + 362, + 363, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 376, + 380, + 383, + 384, + 386, + 388, + 389, + 390, + 392, + 395, + 396, + 399, + 403, + 407, + 410, + 412, + 413, + 414, + 417, + 419, + 423, + 424, + 426, + 429, + 430, + 433, + 434, + 435, + 437, + 439, + 441, + 442, + 443, + 445, + 447, + 449, + 450, + 453, + 463, + 468, + 469, + 471, + 473, + 474, + 477, + 478, + 481, + 492, + 497, + 498, + 501, + 505, + 508, + 510, + 521, + 523, + 525, + 526, + 527, + 529, + 530, + 531, + 534, + 538, + 540, + 541, + 543, + 544, + 551, + 552, + 555, + 557, + 558, + 559, + 564, + 566, + 571, + 572, + 573, + 578, + 582, + 585, + 588, + 591, + 594, + 595, + 597, + 604, + 613, + 614, + 620, + 621, + 625, + 628, + 631, + 632, + 633, + 635, + 639, + 645, + 647, + 652, + 662, + 666, + 684, + 699, + 709, + 741, + 755, + 142, + 170, + 186, + 189, + 202, + 207, + 224, + 238, + 250, + 251, + 254, + 256, + 261, + 267, + 268, + 272, + 294, + 310, + 311, + 314, + 318, + 319, + 325, + 326, + 329, + 332, + 334, + 335, + 336, + 338, + 340, + 347, + 349, + 350, + 352, + 355, + 356, + 358, + 359, + 364, + 373, + 374, + 375, + 377, + 378, + 379, + 381, + 382, + 385, + 387, + 391, + 393, + 394, + 397, + 398, + 400, + 401, + 402, + 404, + 405, + 406, + 408, + 409, + 411, + 415, + 416, + 418, + 420, + 421, + 422 + ] + }, + { + "world": 740102, + "data_path": "results/latent-confirmation-v1/w740102-i741101-d128-l1-r1-nall-s128000/world.npz", + "data_sha256": "82c69d4ead24b2ff52f2e53418e172b533be77a2237d458ed50ff9dc942c62f2", + "role_count": 497, + "bridge_count": 62, + "full_components": 63, + "minimum_edges_preserving_full_components": 434, + "cases": { + "prefix256": { + "chain_count": 256, + "components_including_uncovered_roles": 252, + "isolated_roles": 160, + "incidence_rank": 245, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 84, + "test_pairs_in_same_component": 34, + "test_count": 253 + }, + "role_matched384": { + "chain_count": 384, + "components_including_uncovered_roles": 135, + "isolated_roles": 0, + "incidence_rank": 362, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 236, + "test_pairs_in_same_component": 77, + "test_count": 253 + }, + "role_matched512": { + "chain_count": 512, + "components_including_uncovered_roles": 80, + "isolated_roles": 0, + "incidence_rank": 417, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 236, + "test_pairs_in_same_component": 181, + "test_count": 253 + }, + "forest_matched512": { + "chain_count": 512, + "components_including_uncovered_roles": 63, + "isolated_roles": 0, + "incidence_rank": 434, + "matches_full_component_partition": true, + "test_pairs_with_both_roles_used": 236, + "test_pairs_in_same_component": 232, + "test_count": 253 + }, + "all": { + "chain_count": 771, + "components_including_uncovered_roles": 63, + "isolated_roles": 0, + "incidence_rank": 434, + "matches_full_component_partition": true, + "test_pairs_with_both_roles_used": 236, + "test_pairs_in_same_component": 232, + "test_count": 253 + } + }, + "forest_matched512_available_composite_indices": [ + 0, + 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, + 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, + 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, + 175, + 176, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 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, + 245, + 246, + 247, + 249, + 250, + 251, + 252, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 266, + 267, + 268, + 269, + 271, + 273, + 276, + 277, + 279, + 282, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 308, + 310, + 312, + 313, + 315, + 316, + 318, + 320, + 321, + 322, + 324, + 325, + 327, + 328, + 329, + 331, + 332, + 334, + 336, + 338, + 340, + 341, + 342, + 343, + 344, + 345, + 347, + 349, + 350, + 354, + 356, + 357, + 358, + 359, + 360, + 363, + 364, + 366, + 367, + 370, + 372, + 373, + 375, + 376, + 378, + 379, + 380, + 383, + 387, + 389, + 390, + 391, + 394, + 395, + 397, + 398, + 401, + 404, + 405, + 406, + 409, + 410, + 414, + 416, + 421, + 422, + 423, + 424, + 425, + 428, + 429, + 430, + 431, + 433, + 434, + 441, + 442, + 443, + 444, + 445, + 450, + 453, + 456, + 459, + 461, + 462, + 464, + 468, + 470, + 474, + 477, + 478, + 479, + 482, + 488, + 489, + 490, + 492, + 493, + 497, + 498, + 503, + 504, + 505, + 508, + 509, + 511, + 513, + 520, + 523, + 525, + 526, + 537, + 546, + 550, + 556, + 558, + 559, + 566, + 568, + 571, + 583, + 590, + 593, + 594, + 597, + 605, + 609, + 611, + 616, + 622, + 623, + 627, + 630, + 651, + 659, + 662, + 669, + 677, + 699, + 715, + 718, + 721, + 731, + 735, + 742, + 753, + 754, + 762, + 112, + 144, + 174, + 177, + 186, + 202, + 210, + 218, + 244, + 248, + 253, + 265, + 270, + 272, + 274, + 275, + 278, + 280, + 281, + 283, + 298, + 306, + 307, + 309, + 311, + 314, + 317, + 319, + 323, + 326, + 330, + 333, + 335, + 337, + 339, + 346, + 348, + 351, + 352, + 353, + 355, + 361, + 362, + 365, + 368, + 369, + 371, + 374, + 377, + 381, + 382, + 384, + 385, + 386, + 388, + 392, + 393, + 396, + 399, + 400, + 402, + 403, + 407, + 408, + 411, + 412, + 413, + 415, + 417, + 418, + 419, + 420, + 426, + 427, + 432, + 435, + 436, + 437 + ] + }, + { + "world": 740103, + "data_path": "results/latent-confirmation-v1/w740103-i741101-d128-l1-r1-nall-s128000/world.npz", + "data_sha256": "8be892cc7808b66a817008280591a90613b44a410b659eee2e6b10334560fda6", + "role_count": 496, + "bridge_count": 62, + "full_components": 62, + "minimum_edges_preserving_full_components": 434, + "cases": { + "prefix256": { + "chain_count": 256, + "components_including_uncovered_roles": 252, + "isolated_roles": 163, + "incidence_rank": 244, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 97, + "test_pairs_in_same_component": 39, + "test_count": 269 + }, + "role_matched384": { + "chain_count": 384, + "components_including_uncovered_roles": 133, + "isolated_roles": 0, + "incidence_rank": 363, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 255, + "test_pairs_in_same_component": 93, + "test_count": 269 + }, + "role_matched512": { + "chain_count": 512, + "components_including_uncovered_roles": 81, + "isolated_roles": 0, + "incidence_rank": 415, + "matches_full_component_partition": false, + "test_pairs_with_both_roles_used": 255, + "test_pairs_in_same_component": 200, + "test_count": 269 + }, + "forest_matched512": { + "chain_count": 512, + "components_including_uncovered_roles": 62, + "isolated_roles": 0, + "incidence_rank": 434, + "matches_full_component_partition": true, + "test_pairs_with_both_roles_used": 255, + "test_pairs_in_same_component": 255, + "test_count": 269 + }, + "all": { + "chain_count": 755, + "components_including_uncovered_roles": 62, + "isolated_roles": 0, + "incidence_rank": 434, + "matches_full_component_partition": true, + "test_pairs_with_both_roles_used": 255, + "test_pairs_in_same_component": 255, + "test_count": 269 + } + }, + "forest_matched512_available_composite_indices": [ + 0, + 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, + 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, + 156, + 157, + 158, + 159, + 160, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 196, + 197, + 198, + 199, + 201, + 202, + 203, + 204, + 205, + 207, + 209, + 210, + 211, + 212, + 213, + 214, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 242, + 243, + 244, + 245, + 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, + 275, + 276, + 279, + 280, + 282, + 284, + 285, + 286, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 297, + 298, + 300, + 301, + 303, + 304, + 305, + 306, + 307, + 308, + 311, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 322, + 324, + 326, + 327, + 329, + 331, + 332, + 333, + 336, + 337, + 340, + 343, + 344, + 345, + 346, + 347, + 349, + 350, + 352, + 353, + 355, + 356, + 357, + 360, + 361, + 362, + 363, + 364, + 365, + 367, + 368, + 370, + 371, + 372, + 375, + 379, + 382, + 383, + 384, + 387, + 388, + 389, + 390, + 391, + 393, + 394, + 398, + 399, + 400, + 403, + 404, + 407, + 408, + 409, + 413, + 414, + 415, + 417, + 418, + 419, + 421, + 422, + 424, + 427, + 431, + 432, + 437, + 441, + 442, + 443, + 446, + 447, + 449, + 451, + 452, + 456, + 457, + 458, + 459, + 460, + 464, + 465, + 467, + 469, + 470, + 475, + 478, + 482, + 484, + 486, + 488, + 489, + 491, + 492, + 500, + 502, + 503, + 504, + 514, + 518, + 519, + 524, + 527, + 529, + 530, + 532, + 538, + 543, + 545, + 546, + 548, + 549, + 550, + 551, + 552, + 557, + 570, + 575, + 587, + 588, + 594, + 609, + 615, + 616, + 619, + 621, + 625, + 637, + 651, + 668, + 671, + 672, + 674, + 675, + 719, + 730, + 744, + 751, + 81, + 155, + 161, + 185, + 195, + 200, + 206, + 208, + 215, + 232, + 241, + 246, + 274, + 277, + 278, + 281, + 283, + 287, + 296, + 299, + 302, + 309, + 310, + 312, + 313, + 321, + 323, + 325, + 328, + 330, + 334, + 335, + 338, + 339, + 341, + 342, + 348, + 351, + 354, + 358, + 359, + 366, + 369, + 373, + 374, + 376, + 377, + 378, + 380, + 381, + 385, + 386, + 392, + 395, + 396, + 397, + 401, + 402, + 405, + 406, + 410, + 411, + 412, + 416, + 420, + 423, + 425, + 426, + 428, + 429, + 430, + 433, + 434, + 435, + 436, + 438, + 439, + 440 + ] + } + ] +} diff --git a/results/memory-scaling-theory-v1/sources/additional-manifest.json b/results/memory-scaling-theory-v1/sources/additional-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..08e0eba0b076fea53cd7ac00206b6c1f5766e94a --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/additional-manifest.json @@ -0,0 +1,44 @@ +[ + { + "key": "associative-scaling", + "url": "https://arxiv.org/html/2310.02984", + "title": "Scaling Laws for Associative Memories", + "sha256": "9c8f70f4c347961a493c8ba4653d48b5fcd70f9e88590dd73262d232ba29cb0b", + "lines": 3244 + }, + { + "key": "spectral-learning", + "url": "https://arxiv.org/html/2006.13198", + "title": "Spectral Bias and Task-Model Alignment Explain Generalization in Kernel Regression and Infinitely Wide Neural Networks", + "sha256": "f5bc56046acbf6d79aee55d316e5d80c77e163e77f4b1e833b53b4887d0eef70", + "lines": 2237 + }, + { + "key": "loop-computer", + "url": "https://arxiv.org/html/2301.13196", + "title": "Looped Transformers as Programmable Computers", + "sha256": "bcc0424f7844b1b4ae6a30f7312db14070e12e98a1d3d4d77917cc14c06b7f09", + "lines": 5448 + }, + { + "key": "mlp-keyvalue", + "url": "https://arxiv.org/html/2012.14913", + "title": "Transformer Feed-Forward Layers Are Key-Value Memories", + "sha256": "fe5cbe551d14d6cf06a28b9a0afcc60c199cc45e56c0d80632b4999af71f6f4a", + "lines": 1191 + }, + { + "key": "ntk", + "url": "https://arxiv.org/html/1806.07572", + "title": "Neural Tangent Kernel: Convergence and Generalization in Neural Networks", + "sha256": "106220d63824c81e7730b24d73ac571309a93115dd6eae4b788e1aef28f0c5b5", + "lines": 2222 + }, + { + "key": "deep-linear-learning", + "url": "https://arxiv.org/html/1312.6120", + "title": "Exact solutions to the nonlinear dynamics of learning in deep linear neural networks", + "sha256": "6e93f206fbdb4968c3679907dd6653c80169958e702d04682ef97541d4676b26", + "lines": 1894 + } +] diff --git a/results/memory-scaling-theory-v1/sources/algebraic-connectivity.metadata.json b/results/memory-scaling-theory-v1/sources/algebraic-connectivity.metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..a5bf3276f5dd849df200b6bc5c233ab5ea349994 --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/algebraic-connectivity.metadata.json @@ -0,0 +1,4 @@ +{ + "url": "https://dml.cz/bitstream/handle/10338.dmlcz/101168/CzechMathJ_23-1973-2_11.pdf", + "sha256": "246c5f338dc4ed0f9c00bff68d8111b79b1cd9c625cffb1dc512fcea661a6958" +} diff --git a/results/memory-scaling-theory-v1/sources/algebraic-connectivity.txt b/results/memory-scaling-theory-v1/sources/algebraic-connectivity.txt new file mode 100644 index 0000000000000000000000000000000000000000..c3e23b31b95b65f67f9a4eaa5e3272af9c5dd971 --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/algebraic-connectivity.txt @@ -0,0 +1,285 @@ +Czechoslovak Mathematical Journal +Miroslav Fiedler +Algebraic connectivity of graphs +Czechoslovak Mathematical Journal , Vol. 23 (1973), No. 2, 298–305 +Persistent URL: http://dml.cz/dmlcz/101168 +Terms of use: +© Institute of Mathematics AS CR, 1973 +Institute of Mathematics of the Czech Academy of Sciences provides access to digitized documents +strictly for personal use. Each copy of any part of this document must contain these Terms of use . +This document has been digitized, optimized for electronic delivery and +stamped with digital signature within the project DML-CZ: The Czech Digital +Mathematics Library http://dml.cz + +Czechoslovak Mathematical Journal, 23 (98) 1973, Praha +ALGEBRAIC CONNECTIVITY OF GRAPHS*) +MIROSLAV FIEDLER, Praha +(Received April 14, 1972) +1. INTRODUCTION +Let G = (F, E) be a non-directed finite graph without loops and multiple edges. +Having chosen a fixed ordering w^, W2, ..., w„ of the set V, we can form a square +n-rowed matrix A(G) whose off-diagonal entries are а^-^ = aj,î = — 1 if (w^-, WJ^G E +and üik = 0 otherwise and whose diagonal entries ац are equal to the valencies of +the vertices W;. This matrix Ä(G), which is frequently used to enumerate the spanning +trees of the graph G, is symmetric, singular (all the row sums are zero) and positive +semidefinite {Ä{G) = UU^ where U is the (0, 1,-1) vertex-edge adjacency matrix +of arbitrarily directed graph G). Let n ^2 and 0 = Я^ ^ Я2 = ^(^) ^ >^з ^ ••• +... g /l„ be the eigenvalues of the matrix A(G). From the Perron-Frobenius theorem +applied to the matrix (n - 1) / — Ä{G) it follows that a{G) is zero if and only if the +graph G is not connected. We shall call the second smallest eigenvalue a(G) of the +matrix Ä(G) algebraic connectivity of the graph G. It is the purpose of this paper to +find its relation to the usual vertex and edge connectivities. +We recall that many authors, e.g. A. J. HOFFMAN, M. DOOB, D. K. RAY-CHAUD- +HURi, J. J. SEIDEL have characterized graphs by means of the spectra of the (O, 1) +and (0, 1, —1) adjacency matrices. +2. NOTATION AND CONVENTIONS +The notation introduced above is used throughout the present paper. All matrices +and vectors are considered real. The transpose of a matrix M is denoted by M^, the +identity matrix by /, the vector (1, 1,..., 1)^ by e, the universal matrix ее''' by J, the +cardinality of a set 5 by |5|. +For our purpose it is convenient to denote by W the set of all column vector^ x +such that x'^x = 1, x^e = 0. Any square matrix M with all zero row sums has an +*) Presented at the Graph Theory Meeting in Zlata Idka, May 1971. +298 + +eigenvalue О and a corresponding eigenvector is e. If M is positive semidefinite then +the second smallest eigenvalue is equal to min x^Mx by the well known Courant's +theorem. We use that principle tacitly. ^^^ +Further, let us mention two common concepts. Edge connectivity of the graph G, +i.e. the minimal number of edges whose removal would result in losing connectivity +of the graph G, is denoted by e{G). Vertex connectivity which is defined analogously +(vertices together with adjacent edges are removed) is denoted by v{G). It is convenient +to put v(G) = n — 1 for the complete graph G. +Let Gl = (Fl, £i), G2 = (F2, E2). By Gi x G2 we denote the graph {V^ x F2, E) +such that ((wj, U2), (I'l, 1^2)) e £ if and only if either u^ = Vi and («2,1^2) ^ ^2 or +(wi, i^i) G Ej and и2 = V2' Let R = (r,y), S be matrices. Then by i^ x 5 the parti­ +tioned matrix {rijS) is denoted. +3. PROPERTIES OF a{G) +3.1. // Gl, G2 are edge-disjoint graphs with the same set of vertices then a(Gi) + ++ a{G2) й a{G, u G2). +Proof. We have A{G^ u G2) = ^(Gi) + A{G2). Thus a{Gi u G2) = += min (x"^ ^(Gi) X 4- x"^ ^(G2) x) ^ min x'^ A{Gi) x + min x^ ^(G2) x = Ö(GI) + +xeW xeW xeW ++ a(G2). +3.2. Corollary. The function a{G) is non-decreasing for graphs with the same set +of vertices, i.e. a(G^) ^ a(G2) if G^ Ç G2 {and Gj, G2 have the same set of vertices). +3.3. Let G be a graph, let G^ arise from G by removing к vertices from G and +all adjacent edges. Then +(1) a(Gi) ^ a{G) - k. +Proof. Let G have n vertices and let Gi arise from G by removing one vertex, +say u„. Define a new graph G' by completing in G all missing edges from м„. Then +4-)=(i?''^\-i',)- +Let V be an eigenvector of ^(Gi) corresponding to the eigenvalue Ö(GI). Since +4G')(o) = WGx)+l](o). +a(Gi) + 1 is an eigenvalue of A(G') different from zero, i.e. +ß(G') g a(Gi) + 1 . +299 + +By 3.2, a(G) ^ a(G') which implies (1) for Ä: = 1. The general case follows by +induction. +3.4. We have a{Gi x G2) = min (a(Gi), «(Оз)). +Proof. Let Gl = (Fl, £1), G2 = (Kj, £2)- Order the set V^ x V2 lexicographically. +Then ^(Gi X G2) = ^(Gi) x /2 + /1 x ^(G2), Ij being the |Fy|-rowed identity +matrix. By a well known result from the matrix theory [1] all eigenvalues of ^(Gi x +X G2) are of the form ц + v where /x, v resp. are eigenvalues of ^(Gi), ^(G2) respec­ +tively. Hence the second smallest eigenvalue of ^(Gi x G2) is either a(Gi) + 0 or +0 + a(G2). +3.5. Let G = (F, £), Vj be the valency of the j-th vertex. Then +a{G) S [nl{n - 1)] min Vi g 2|£|/(n - 1) . +i +Proof. Since n min Vi g 2]^» = ^1^1? the second inequality is true. The first is an i i +immediate consequence of the following lemma. +Lemma. Let M = (шц^ be a symmetric positive semidefinite n by n matrix such +that Me = 0. Then the second smallest eigenvalue À2 of M satisfies +(2) ^2 S ["/('î "- 1)] niin тц . i +Proof. Observe that +(3) À2 — min x^Mx . +xeW +Let us show that the matrix +M = M - À2{I - п-Ч) +is also positive semidefinite. +Let у be any vector in £„. Then у can be written in the form у = c^e -{• C2X where +xeW. Since Йе = 0, it follows that +уТ^Му = clx'^Mx = cl{x'^Mx ~ Д2) è 0 +by (3). Thus the minimum diagonal entry of Й is nonnegative: +min тц — ^2(1 — и~^) ^ О +i +and (2) is proved. +Remark. A matrix M = (m,/t) satisfying conditions of the preceding lemma l\as +also the property that the numbers ^Jm^ fulfil the polygonal inequality, i.e. +2maxmJ/^ й^т1Г i i +300 + +This follows easily from the well known fact that M can be considered as the Gram +matrix of a system of n vectors u^, ...,u„ with sum zero: +^ik = (Ui, Uk) = uJUk , X"i = ^ • i +Then we have for the lengths +l"ii ^ Zi"/c| for i = 1,..., n, +or +2 max |w,-| ^ ]^ |м^| +i i +and |wi| = (wf, u^^^' = m\l^ yields the result. +If we apply (4) to the matrix M = M — ^2(1 — (l/n) J), we obtain +2 max (m„ - [(n - l)/n] Я,)'/^ ^ Яш,, - [(n - l)/n] Я,)»'^ . +i i +In terms of the graph G, we obtain +2 max [m^, - (n - 1) a{G)Y^^ й E[nt;, - (n - 1) Û(<^)]'^' • +i i +For sake of completeness, we formulate the assertion +3.6. For the complete graph K„ with n vertices a{K^ = n. +In the following theorem, we denote by b(G), for a graph G with n vertices, the +number +b{G) = n - a{G) +where G is the complementary graph to G. +3.7. The function b{G) has following properties: +1° b{G) is the maximum eigenvalue of Ä{G) or, equivalently +(5) b{G) = max x^ A{G) x ; +xeW +we have thus +(6) a{G)ub{G), +with equality if and only if G is a complete graph or a void graph (i.e. without +edges); +T b{G) = max b{G,) +if Gj,..., G^ are all components of G; +301 + +y b{G^) й b{G2) if Gl ç G2, i.e. V^ ç V2 and E^ ç £2 ^here G^ = (F^, E^), +i= 1,2; +4° b(Gi и G2) ub{Gi) + b(G2) - a(Gi n G2) +where both graphs G^ and G2 are considered to have the same set of vertices; +5° [nl{n - 1)] max v^G) й b{G) S 2 max v^G) +i i +where i'i(G) means valency of the i-th vertex in G. +Proof. If G is the complementary graph to G (with n vertices so that G has also n +vertices) then +A{G) + A{G) = nl - J . +Since +a(G) = min x^ ^(G) x +xeW +and +x^{nl — J) X = n for xeW, +we have +max x^ A(G) X = n — min x^ A(G) x = n — a(G) = b(G) . +xeW xeW +This implies (6). Let equality be attained in (6). Then x^ A{G) x is constant on Ж +Taking first x = [n(n — i)]~i/2 (jie. — e) where e,- has all coordinates zero except +the f-th equal to one, we obtain that all the diagonal entries in A{G) are equal. +Choosing then x = 2"^^^^^ — I'^^^Cj, {i Ф k), we obtain that also all ofF-diagonal +entries of A{G) are equal, thus all equal either to — 1, or to zero. This proves 1°, +2° follows easily from 1° since A(G) is the direct sum of A{G^) if G is not connected +and Gl are components of G. +To prove 3° and 4°, we shall use (6). This impHes 3° immediately while 4° follows +from +4GI U G2) = A{G,) + ^(G2) - A{G^ n G2). +The right inequality in 5° follows from 1° and the well known fact that the maxi­ +mum modulus of the eigenvalues is less than or equal to any norm. The maximum +norm (i.e. with respect to the vector norm ||jc|| = max \xi\) of A[G) (known to be +i +max ^ \aik\) is 2 max Vi(G) which yields this result. To prove the left inequality in 5°, +i к i _ +let us apply 3.5 to the complementary graph G. We obtain +a{G) S [пЦп - 1)] min Vi{G) . +i +which can be written as +n - b{G) S [пЦп - 1)] [w - 1 - max vlG)] . . +i +This implies the inequahty and the proof is complete. +302 + +3.8. We have +a(G) ^ 2 min Vi{G) - n + 2 . +Proof. Follows immediately from the right inequahty in 5° of 3.7 used for the +complementary graph G. +3.9. Let G with n vertices contain an independent set of m vertices (i.e. no two of +them joined by an edge of G). Then +a[G) ^ n — m . +Proof. If G contains an independent set of m vertices then G contains a complete +subgraph K^, Since b{K^) = m, we have by 3° of 3.7 that +b{G) ^ m +so that a{G) = n - b{G) ^ n - m. +3.10. // G /5 a graph with n vertices which is not complete then a(G) ^ n — 2.. +Proof follows immediately from 3.9. +3.11. // Kp q denotes the complete bipartite graph the parts of which contain p +and q vertices then a[Kpq) = min (p, q). +Proof. Follows from 2° of 3.7 applied to the complement of Kp^. +3.12. Let G = (F, £), let V = V^ ^ V2 be a decomposition of V, let Gi (i = 1, 2) +be the subgraph of G generated on F^. Then +a{G) ^ min {a{G,) + iF^j, a{G2) + \V,\). +Proof. This is just a symmetric formulation of 3.3. +4. RELATIONS BETWEEN a{G), e{G) AND v{G) +4.1. Let G be a non-complete graph. Then a{G) ^ ^{G). +Proof. Let G = (F, É) and let V^ be a vertex cut such that F2 = F- Fj ф 0. +Since the subgraph G2 generated by G on V2 is not connected, we have by 3.12 + q{G), +Proof. Consider the eigenvalues (Ji ^ <Т2 ^ ... ^ c^ of the matrix S = (sij) = += / — q^^iG) Ä{G). This matrix is symmetric and stochastic (i.e. its row sums are 1 +and the entries are nonnegative so that a^ = 1). Denote by ^ the "measure of irreduc- +ibility" of S, the number min ^ s^^, where iV = {1, 2, ..., n}. Then according +1 — 0-2 à 2(1 — COS (л;/п)) 1л , +1 - СГ2 ^ 1 - 2(1 - ^) COS (тг/п) - {2fi - 1) cos (27г/п) . +We have (72 = 1 - a(G)/^(G), /x = e(G)/^(G), thus +«(G)/^(G) ^ 2(1 - cos (тг/п)) e(G)/g(G) , +a{G)lq{G) ^ 1 - 2(1 - e{G)lq{G)) cos (тс/п) - (2e(G)/g(G) - 1) cos (27г/п) , +which implies the required inequalities. +The last assertion is easy to verify. +4.4. We have the following values for some types of graphs. +graph +path +circuit +star . +complete g. +cube +(m-dimensional) +2(1- +2(1- +a(G) +— cos (n/n)) +- COS (2n/n)) +1 +n +2 +e(G) +1 +2 +1 +w- 1 +m +v(G) +1 +• 2 +1 +n- 1 +m +bound of 4.3 +2(1 - cos (n/n)) +4 sin^ (n/n) +2(1 - cos (n/n)) +2(n - 1) sin^ (n/n) +2m sin^ (n/2m) +304 + +Remark. After having finished this paper the author was informed that W. N. +ANDERSON, Jr. and T. D. MORLEY had obtained some of these results in the paper +Eigenvalues of the Laplacian of a graph, University of Maryland Technical Report +TR-71-45, October 6, 1971. +References +[1] Mc Duffee: The Theory of Matrices. Springer, Berlin 1933. +[2] M. Fiedler: Bounds for eigenvalues of doubly stochastic matrices. Linear Algebra and Its +Appl. 5 (1972), 299-310. +[3] H. Whitney: Congruent graphs and the connectivity of graphs. Amer. J. Math. 54 (1932,) +150-168. +Author's address: 115 67 Praha 1, Zitna 25, CSSR (Matematicky ustav CSAV v Praze). +305 \ No newline at end of file diff --git a/results/memory-scaling-theory-v1/sources/associative-scaling.html b/results/memory-scaling-theory-v1/sources/associative-scaling.html new file mode 100644 index 0000000000000000000000000000000000000000..3208104718de4756ee98b80c51e5e2e9de94a94d --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/associative-scaling.html @@ -0,0 +1,3317 @@ + + + +Scaling Laws for Associative Memories + + + + + + + + + + + + + + + + +
+ + arXiv is now an independent nonprofit! + Learn more + +
+ +
+ + + +
+
+
+ + License: CC BY-NC-SA 4.0 + +
+arXiv:2310.02984v2 [stat.ML] 20 Feb 2024
+
+
+

Scaling Laws for Associative Memories

+
+ +Vivien Cabannes + +Affiliation: FAIR, Meta + +   +Elvis Dohmatob + +Affiliation: FAIR, Meta + +   +Alberto Bietti + +Affiliation: Flatiron Institute +
+ +
Abstract
+ +

Learning arguably involves the discovery and memorization of abstract rules. +The aim of this paper is to study associative memory mechanisms. +Our model is based on high-dimensional matrices consisting of outer products of embeddings, which relates to the inner layers of transformer language models. +We derive precise scaling laws with respect to sample size and parameter size, and discuss the statistical efficiency of different estimators, including optimization-based algorithms. +We provide extensive numerical experiments to validate and interpret theoretical results, including fine-grained visualizations of the stored memory associations.

+ +
+
+ + + + + +
+
+
+

1 Introduction

+ +
+

As the scale of large language models (LLMs) keeps increasing, scaling laws have become a crucial tool to empirically assess and predict the behavior of these models when varying the number of parameters and training data (??). +Despite their practical impact, the underlying phenomena leading to such scaling laws remain poorly understood. +A better understanding of such phenomena could guide researchers towards improved models, algorithms, and datasets which may lead to improved scaling laws.

+
+
+

Our study focuses on a simple model that aims to be representative of LLMs in two ways. +First, we focus on heavy-tailed data distributions over discrete tokens, a natural assumption for text data (?). +Second, we consider associative memory models that store input-output pairs through outer-products of finite-dimensional embeddings, and can be seen as a proxy of the intermediate layers of transformers. +Indeed, some transformer layers have been found to behave as key-value memories (??), and more generally outer-product associative memory matrices arise naturally from training dynamics on intermediate weights (?). +Beyond simple associative recall, the combination of multiple such associative rules at different layers may lead to certain circuits with rich “reasoning” behaviors based on context (???). +For example, an intermediate layer input token may encode for the topic “linux”, leading to an output token that will trigger a specific behavior in the transformer’s following layers when processing the token “terminal”.

+
+
+

Our contributions are as follows:

+
    +
  • • +
    +

    We provide precise statistical rates for outer-product memories with random embeddings, and compare different memory storage schemes in the context of Zipf-distributed data.

    +
  • +
  • • +
    +

    We compare theoretical schemes to the weights learned by various optimization algorithms used in practice, and illustrate the role of different design choices with numerical experiments.

    +
  • +
+
+
+
Related work.
+ +
+

Associative memory models have a long history in the literature on neural computation (??????????), though the statistical insights we provide for continuous-values random embeddings and heavy-tailed tokens distributions are new, to the best of our knowledge. +Memorization behaviors have drawn a lot of attention recently, and are believed to be an important notion to understand the learning happening in deep neural network (e.g., ?????). +Building on memorization and heavy-tailed discrete data, our model bears similarities to the ones of ?, ? or ?, although we focus on practical models with finite capacity. +The discrete nature of tokens contrasts with other recent works on scaling laws that have focused on continuous Gaussian inputs (e.g., ???).

+
+
+
+
+

2 Model for Associative Memory

+ +
+
The data.
+ +
+

In the following, we consider a joint distribution p∈Δ[N]×[M]p\in\Delta_{[N]\times[M]} on inputs x∈[N]x\in[N] and outputs y∈[M]y\in[M]. +The inputs and outputs are respectively assumed to solely take NN and MM discrete values respectively. +For example, NN could be the number of potential sequences of fixed word length in the English language, while MM would be all the potential words to complete the sequence. +Abstractly, xx and yy will be referred to as tokens. +To simplify the study, we assume for now that yy is a deterministic function of xx, i.e., there is no noise in the labels. +In consistency with language modeling, we equally assume that p⁡(x)p(x) follows a Zipf law. +Formally, there exists an parameter α>0\alpha>0, a normalizing constant CαC_{\alpha}, a permutation σ∈𝔖n\sigma\in\mathfrak{S}_{n} and a function f∗:[N]→[M]f_{*}:[N]\to[M] such that

+ + + + + + + +
∀x,y∈[N]×[M],p⁡(σ⁡(x))=Cα​x−α,p⁡(y|x)=𝟏y=f∗​(x).\forall\,x,y\in[N]\times[M],\qquad\qquad p(\sigma(x))=C_{\alpha}x^{-\alpha},\qquad p(y|x)=\mathbf{1}_{y=f_{*}(x)}.(1)
+

The distribution pp is not known, but has generated TT known independent samples (xt,yt)t∈[T]∼p(x_{t},y_{t})_{t\in[T]}\sim p. +For readability sake, we will assume without restriction that σ\sigma is the identity (so that pp is decreasing).

+
+
+
+
+
Figure 1: Scaling laws with respect to model capacity dd (left), respectively the number of data seen TT (right), for various numbers of dataset size TT, respectively various model capacity dd. +This plots validates empirically the theory developed in the paper that proves scaling laws in ℰ⁡(fq)≍d−α+1+T−1+1/α{\mathcal{E}}(f_{q})\asymp d^{-\alpha+1}+T^{-1+1/\alpha} (dashed lines) under our setting with α=2\alpha=2 (1), (2), (5), and the association scheme (12) with ρ=0\rho=0 and P=d/8P=d/8. +The experiments averaged over 100100 runs, standard deviations are shown with solid color. +
+
+
+
+
The model, and the loss.
+ +
+

The input tokens are embedded into a space ℝd{\mathbb{R}}^{d} of dimension dd through an embedding map e:[N]→ℝde:[N]\to{\mathbb{R}}^{d}. +This space is used for computation purposes. +In particular, we focus on the linear transformation parameterized by a matrix W∈ℝd×dW\in{\mathbb{R}}^{d\times d} mapping xx to W​e​(x)We(x). +This latter vector is mapped back to the output space through an unembedding map u:[M]→ℝdu:[M]\to{\mathbb{R}}^{d} and the decoding rule

+ + + + + + + +
fW​(x)=arg​maxy∈[M]⁡uy⊤​Wex,W∈ℝd×d,f_{W}(x)=\argmax_{y\in[M]}u_{y}^{\top}We_{x},\qquad\qquad W\in{\mathbb{R}}^{d\times d},(2)
+

where exe_{x} and uyu_{y} are abbreviations for e⁡(x)e(x) and u⁡(y)u(y). +The model (2) can be seen as analogous to an attention layer where keys exe_{x} are tested against queries uyu_{y} through a matrix WW before going through a softmax layer, which, when the attention is peaky, identifies to an argmax. It also resembles next-token prediction from an intermediate representation W​exWe_{x}, which may itself be the output of an attention block that attends to a token xx. +The matrices WW will be expressed as associative memories. +Memory of an observed pair (x,y)(x,y) is represented as an outer product uy​ex⊤u_{y}e_{x}^{\top}. +Remembering those with respect to a probability q∈Δ[N]×[M]q\in\Delta_{[N]\times[M]} leads to the matrix

+ + + + + + + +
Wq=∑(x,y)∈[N]×[M]q⁡(x,y)​uy​ex⊤,q∈Δ[N]×[M],W_{q}=\sum_{(x,y)\in[N]\times[M]}q(x,y)u_{y}e_{x}^{\top},\qquad\qquad q\in\Delta_{[N]\times[M]},(3)
+

This representation (3) is justified as the predictions (2) are insensitive to modifications of MM outside the span of (uy​ex⊤)x,y(u_{y}e_{x}^{\top})_{x,y}. +In our deterministic setting (1) where one only observes pairs (x,f∗​(x))(x,f_{*}(x)), we shall consider the simpler model where11 + 1 + + + + + + + + It should be noted that the proof techniques behind Theorem 1 do not break when considering q=q⁡(x,y)q=q(x,y): both models would lead to similar results, with the case q=q⁡(x,y)q=q(x,y) being simpler to comprehend.

+ + + + + + + +
Wq=∑x∈[N]q⁡(x)​uf∗​(x)​ex⊤,q∈Δ[N].W_{q}=\sum_{x\in[N]}q(x)u_{f_{*}(x)}e_{x}^{\top},\qquad\qquad q\in\Delta_{[N]}.(4)
+

To simplify notations, we will write fqf_{q} for fWqf_{W_{q}} (2). +The model fqf_{q} is seen as superposing memories since all associations are mixed together in a single matrix. +The quality of a mapping ff is quantified through the generalization error

+ + + + + + + +
ℰ⁡(f)=𝔼(X,Y)∼p​[𝟏f⁡(X)≠Y],f:[N]→[M].{\mathcal{E}}(f)={\mathbb{E}}_{(X,Y)\sim p}[\mathbf{1}_{f(X)\neq Y}],\qquad\qquad f:[N]\to[M].(5)
+
+
+
+
Which questions are we interested in?
+ +
+

Several questions naturally arise from our model. +The first ones are related to scaling laws: how does the error depend on TT, the number of data? +How does it scale with dd that encodes for model capacity? +The second ones relate to the model itself: how does the error behave for different qq? +What about optimization-based algorithms?

+
+
+

Arguably, the model (2) lays out a simple model to study memorization, which could easily be extended to model more intricate memorization and training behaviors inside a transformer language model. +Indeed, memories of the form (4) were found to accurately model the behavior of weight matrices in multi-layer transformers trained by gradient methods on certain tasks (?). +Hence, we expect our study to be generalizable to more complex mechanisms in transformers, resulting in rich token interactions to predict the next token in a sequence.

+
+
+
+
+

3 Scaling laws with random embeddings

+ +
+ +
Table 1: +Summary of key elements in the study. +We are given discrete tokens x,yx,y with deterministic relation y=f∗​(x)y=f_{*}(x). +We embed tokens in ℝd{\mathbb{R}}^{d}, dd acts as a “model capacity” parameter. +We store association x→yx\to y in the matrix WW through a scheme qq and recall them through the decoding fqf_{q}. +We will first study the scaling law of the generalization error ℰ{\mathcal{E}} as a function of the number of data TT, and the model capacity dd for different schemes qq. +We will later study the scheme qq found by optimization-based algorithms. +
+
+ + + + + + + + + + + + + + + + + + + + +
TokensEmbeddingsModelScaling
yit=f∗​(xit)y_{i_{t}}=f_{*}(x_{i_{t}})ex,uy∈ℝde_{x},u_{y}\in{\mathbb{R}}^{d}W=∑xq⁡(x)​uf∗​(x)​ex⊤W=\sum_{x}q(x)u_{f_{*}(x)}e_{x}^{\top}ℰ⁡(q)=𝔼⁡[𝟏fq​(x)≠f∗​(x)]{\mathcal{E}}(q)={\mathbb{E}}[\mathbf{1}_{f_{q}(x)\neq f_{*}(x)}]
t∈{1,2,…,T}t\in\{1,2,\ldots,T\}ex∼𝒩⁡(0,I)e_{x}\sim{\mathcal{N}}(0,I)fq​(x)=arg​maxy⁡uy​Wexf_{q}(x)=\argmax_{y}u_{y}We_{x}ℰ⁡(q)=F⁡(d,T,q){\mathcal{E}}(q)=F(d,T;q)
+
Table 2: +Some insightful provable scaling laws with respect to the model capacity dd, and the number of data TT, for two schemes that store associations as (4) and random embeddings. +
+
+ + + + + + + + + + + + + + + + + +
ModelError scalingComment
q⁡(x)=p⁡(x)q(x)=p(x)d−(α−1)/2α+T−1+1/αd^{-(\alpha-1)/2\alpha}+T^{-1+1/\alpha}Found with large batches in one step
q⁡(x)=𝟏x≤dq(x)=\mathbf{1}_{x\leq d}d−α+1+T−1+1/αd^{-\alpha+1}+T^{-1+1/\alpha}Optimal scaling with random embeddings
+
+
+
Why do we make errors?
+ +
+

With a simple deterministic model, one may wonder how can we not learn perfectly the mapping f∗f_{*}. +There are two sources of error. +One is due to not having enough data to see all the potential association (x,f∗​(x))(x,f_{*}(x)), and has already been studied by ?. +The other one is due to the limited memory capacity of our model, which we illustrate in Figure 2.

+
+
+
Proposition 1 (Finite data, infinite memory).
+
+

Consider a infinite memory model f^\hat{f}, which at time TT predicts correctly all xx that were seen in the past training, i.e., x∈{Xt}t∈[T]x\in\{X_{t}\}_{t\in[T]}, where the (Xt,Yt)(X_{t},Y_{t}) were drawn independently at random from a distribution p∈Δ[N]×[M]p\in\Delta_{[N]\times[M]}. +Under the data model the generalization error reads, with respect to the random dataset 𝒟T=(Xt,Yt)t∈[T]{\mathcal{D}}_{T}=(X_{t},Y_{t})_{t\in[T]},

+ + + + + + + +
𝔼𝒟T​[ℰ⁡(f^)]≍T−1+1/α.{\mathbb{E}}_{{\mathcal{D}}_{T}}[{\mathcal{E}}(\hat{f})]\asymp T^{-1+1/\alpha}.(6)
+

Here, the notation a≍ba\asymp b means that there exist two constants c1c_{1} and c2c_{2} such that c1​b≤a≤c2​bc_{1}b\leq a\leq c_{2}b.

+
+
+
+
+

3.1 Tight error characterization

+ +
+

The case where one has infinite data but finite memory is intrinsically a deterministic problem. +However, characterizing interferences between embeddings and the corresponding generalization error is combinatorial in nature, and is hard to study without specific assumptions on the embeddings ee and uu. +A natural choice is to consider them to be random, as is the case at initialization.

+
+
+
Theorem 1 (Infinite data, finite memory).
+
+

Let M≥4M\geq 4 and d>8​log⁡(M)d>8\log(M). +For any memory weight scheme q:[N]→ℝq:[N]\to{\mathbb{R}}, when the embeddings exe_{x} are independent random variables ex∼𝒩⁡(0,I)e_{x}\sim{\mathcal{N}}(0,I), and the unembeddings are taken uniformly at random on the sphere,

+ + + + + + + +
𝔼e,u​[ℰ⁡(fq)]≤infγ2​d−γ+p⁡({x∈[N]|d​q​(x)2≤16​cγ​(Q∞+8​cγ​‖q‖22d)}),{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]\leq\inf_{\gamma}2d^{-\gamma}+p\Big(\Big\{x\in[N]\,\Big|\,dq(x)^{2}\leq 16c_{\gamma}\Big(Q_{\infty}+\frac{8c_{\gamma}\|q\|^{2}_{2}}{d}\Big)\Big\}\Big),(7)
+

where Q∞:=max⁡∑x;f∗​(x)=yy⁡q​(x)2Q_{\infty}:=\max_{y}\sum_{x;f_{*}(x)=y}q(x)^{2}, cγ=log⁡(M)+γ​log⁡(d)c_{\gamma}=\log(M)+\gamma\log(d), and p⁡(𝒳)=∑x∈𝒳p⁡(x)p({\mathcal{X}})=\sum_{x\in{\mathcal{X}}}p(x) denotes the probability of xx to belong to 𝒳⊂[N]{\mathcal{X}}\subset[N]. +In terms of lower bound,

+ + + + + + + +
𝔼e,u​[ℰ⁡(fq)]≥120​p​({x∈[N]| 3​(d+1)​q​(x)2≤Q∞}).{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]\geq\frac{1}{20}p(\{x\in[N]\,|\,3(d+1)q(x)^{2}\leq Q_{\infty}\}).(8)
+
+
+
+

Theorem 1 illustrates how the error made by a scheme qq at the input xx relates to the ratio between the signal d​q​(x)dq(x), provided by the associative memory uf∗​(x)​ex⊤u_{f_{*}(x)}e_{x}^{\top}, and the noise Q∞Q_{\infty}, which corresponds to the signal provided by the most competitive class for y∈[M]y\in[M]. +This is true up to a higher term in ‖q‖2/d\|q\|^{2}/d, which corresponds to a class y=f∗​(x)y=f_{*}(x) competing against itself when the random embeddings ex′e_{x^{\prime}} for x′x^{\prime} such that f∗​(x′)=yf_{*}(x^{\prime})=y point in the opposite direction of exe_{x}. +When dd is large and pp is regular, cγ​‖q‖22/dc_{\gamma}\|q\|^{2}_{2}/d will be dominated by Q∞Q_{\infty} and the cut-off of q​(x)2/Q∞q(x)^{2}/Q_{\infty} at 32​cγ/d32c_{\gamma}/d will behave similarly to a cut-off at 1/d1/d up to logarithmic terms. +Moreover, when qq is chosen independently of p⁡(y|x)p(y|x),22 + 2 + + + + + + + + To be more precise, one should actually choose q⁡(x)q(x) to be class dependent so to cram in memory as many xx as possible for each different class y=f∗​(x)y=f_{*}(x), ensuring that y↦∑x;f∗​(x)=yq​(x)2y\mapsto\sum_{x;f_{*}(x)=y}q(x)^{2} is constant with respect to yy. +For simplicity, we will not discuss this behavior that does not change the big picture beyond our exposition. + one can expect Q∞≈p∗​‖q‖2Q_{\infty}\approx p_{*}\|q\|^{2} where p∗=maxy∈[M]⁡p⁡(y)p_{*}=\max_{y\in[M]}p(y). +As a consequence, up to constants and logarithmic term, we get

+ + + + + + + +
𝔼⁡[ℰ⁡(fq)]≈p⁡({x∈[N]|d​q​(x)2≤p∗​‖q‖2}).{\mathbb{E}}[{\mathcal{E}}(f_{q})]\approx p(\{x\in[N]\,|\,dq(x)^{2}\leq p_{*}\|q\|^{2}\}).(9)
+
+
e1e_{1}e2e_{2}e3e_{3}u1u_{1}u2u_{2}u3u_{3} +
Figure 2: +Error due to finite memory capacity: the stacking of associative memories in a matrix WW may exhibit a pattern W=∑xuf∗​(x)​ex⊤W=\sum_{x}u_{f_{*}(x)}e_{x}^{\top} where three inputs mapped to three different outputs interact in such a way that u2⊤​W​e1=e2⊤​e1+u2⊤​u3​e3⊤​e1≥1+u1⊤​u3​e3⊤​e1=u1⊤​W​e1u_{2}^{\top}We_{1}=e_{2}^{\top}e_{1}+u_{2}^{\top}u_{3}e_{3}^{\top}e_{1}\geq 1+u_{1}^{\top}u_{3}e_{3}^{\top}e_{1}=u_{1}^{\top}We_{1}, so that fW​(x=1)=2≠1=f∗​(x=1)f_{W}(x=1)=2\neq 1=f_{*}(x=1). +In other terms, memory interference may lead to wrong prediction, illustrating the finite capacity of the model fWf_{W} (2) to store all data associations. +
+
+
+
+

3.2 Memory schemes

+ +
+

Let us now discuss several natural choices for qq and compare their corresponding performance. +The first naive choice consists in storing all the data seen at time TT in memory. +It reads

+ + + + + + + +
q^0​(x)=𝟏x∈{Xt}t∈[T],q0​(x)=1.\hat{q}_{0}(x)=\mathbf{1}_{x\in\{X_{t}\}_{t\in[T]}},\qquad q_{0}(x)=1.(10)
+

Here, q^0\hat{q}_{0} corresponds to the learned weighted scheme based on the TT data, while qq denotes an idealized limit when one has infinite data. +In the idealized setting Q∞​(q0)=N​p∗Q_{\infty}(q_{0})=Np_{*} where p∗:=maxy∈[M]⁡p⁡(y)p_{*}:=\max_{y\in[M]}p(y). +From Theorem 1, we deduce that ℰ⁡(fWq0){\mathcal{E}}(f_{W_{q_{0}}}) will follow two regimes: +an overflow regime where 3​(d+1)≤N​p∗3(d+1)\leq Np_{*} and in essence the memory Wq0W_{q_{0}} is too full to recover any signal in it, and 𝔼e,u​ℰ​(fWq0)>1/20{\mathbb{E}}_{e,u}{\mathcal{E}}(f_{W_{q_{0}}})>1/20 (8); +a infinite memory regime where d≥Nd\geq N and all associations ex​uf∗​(x)⊤e_{x}u_{f^{*}(x)}^{\top} can be stored orthogonally to one another, and the error 𝔼e,u​ℰ​(fWq0){\mathbb{E}}_{e,u}{\mathcal{E}}(f_{W_{q_{0}}}) quantifies the tiny probability that some random inputs embeddings appear to be too correlated.

+
+
+

Equipped with the knowledge that our associative memory model (2) has finite capacity, one may weight memories according to their frequencies, leading to the scheme, for ρ≥0\rho\geq 0

+ + + + + + + +
q^ρ​(x)=(1T​∑t∈[T]𝟏x=Xt)ρ,qρ​(x)=p​(x)ρ.\hat{q}_{\rho}(x)=\Big(\frac{1}{T}\sum_{t\in[T]}\mathbf{1}_{x=X_{t}}\Big)^{\rho},\qquad q_{\rho}(x)=p(x)^{\rho}.(11)
+

A better option consists in explicitly limiting the storage of our model with a simple thresholding algorithm

+ + + + + + + +
q^ρ,[P]​(x)=p^​(x)ρ​𝟏x∈topP⁡((xt)t∈[T]),qρ,[P]​(x)=p​(x)ρ​𝟏x∈[P],\hat{q}_{\rho,[P]}(x)=\hat{p}(x)^{\rho}\mathbf{1}_{x\in\operatorname{top}_{P}((x_{t})_{t\in[T]})},\qquad q_{\rho,[P]}(x)=p(x)^{\rho}\mathbf{1}_{x\in[P]},(12)
+

where topP⁡((xt))\operatorname{top}_{P}((x_{t})) denotes the set made of the PP most frequent inputs in the data (xt)(x_{t}).

+
+
+
+
+
Figure 3: Generalization error (5) as a function of dd and TT for the model (4) averaged over 100100 runs. +The data follows a Zipf law with α=0.5\alpha=0.5, N=100N=100, M=5M=5 and f∗​(x)=x​mod.⁡Mf_{*}(x)=x\operatorname{mod.}M. +Left: error for q0q_{0} (10), either dd is too small and there will be memory overflow leading to large error (red area), either it is big enough and with enough data, the error will be null (blue area). +Middle: error for q1q_{1} (11), for small dd and big TT, it avoid memory overflow allowing a smaller error then q0q_{0}; however for big dd it does not allocated enough memory to rare association, leading to a bigger error. +Those results can be interpreted mechanistically by looking at the corresponding memory matrices (see Figure 10). +Right: Generalization error when T=+∞T=+\infty, N=100N=100 and α=2\alpha=2: the scheme q0q_{0} leads to a zero-one type of plot where if d<Nd<N the error is high, and if d>Nd>N the error decreases fast to zero (in blue); the scheme q1q_{1} leads to an error decreasing in d−(α−1)/2α=d−1/4d^{-(\alpha-1)/2\alpha}=d^{-1/4} as predicted by theory (in orange); the scheme q0,Pq_{0,P} (12) with P=d/8P=d/8, decreases in d−(α−1)=d−1d^{-(\alpha-1)}=d^{-1} until reaching the tipping point when d/8>Nd/8>N (in green). +
+
+
+
Proposition 2 (Without thresholding).
+
+

Let pp be an α\alpha-Zipf distribution (1). +For ρ>0\rho>0, the performance of fρ:=fqρf_{\rho}:=f_{q_{\rho}} (11) is, up to poly-logarithm factors and constants that depends on both ρ\rho and α\alpha,

+ + + + + + + +
𝔼e,uℰ(fρ)≍(log)(dφ⁡(N))−(α−1)/2ρα,whereφ(N)={1 if ​2​ρ​α>1log⁡(N) if ​2​ρ​α=1N1−2​ρ​α if ​2​ρ​α<1.{\mathbb{E}}_{e,u}{\mathcal{E}}(f_{\rho})\overset{(\log)}{\asymp}\left(\frac{d}{\varphi(N)}\right)^{-(\alpha-1)/2\rho\alpha},\quad\text{where}\quad\varphi(N)=\left\{\begin{array}[]{cc}1&\text{ if }2\rho\alpha>1\\ +\log(N)&\text{ if }2\rho\alpha=1\\ +N^{1-2\rho\alpha}&\text{ if }2\rho\alpha<1\\ +\end{array}\right..(13)
+

In particular, when ρ=1\rho=1, 𝔼e,u​ℰ​(f0){\mathbb{E}}_{e,u}{\mathcal{E}}(f_{0}) scales in d−(α−1)/2αd^{-(\alpha-1)/2\alpha}. +In the limit where ρ=0\rho=0, 𝔼e,u​ℰ​(f0){\mathbb{E}}_{e,u}{\mathcal{E}}(f_{0}) can be understood as (d/N)−∞(d/N)^{-\infty} which will go to zero if and only if dd is bigger than NN.

+
+
+
+
Proposition 3 (With thresholding).
+
+

Assume that p⁡(x)p(x) follows a α\alpha-Zipf law (1) with N=+∞N=+\infty. +For ρ≥0\rho\geq 0, setting P≃d1/(2​α​ρ+1)P\simeq d^{1/(2\alpha\rho+1)}, the error made by the memory scheme (12) scales as

+ + + + + + + +
𝔼e,uℰ(fρ)≍(log)d−(α−1)/(2ρα+1).{\mathbb{E}}_{e,u}{\mathcal{E}}(f_{\rho})\overset{(\log)}{\asymp}d^{-(\alpha-1)/(2\rho\alpha+1)}.(14)
+
+
+
+

In particular, when ρ=0\rho=0 and P≃dP\simeq d, one gets a scaling in d−α+1d^{-\alpha+1}, which is actually optimal. +The fact that this maximum is reached for P≃dP\simeq d is reminiscent of Hopfield networks (?) which can only store d/log⁡(d)d/\log(d) patterns with a dd by dd matrix. +Similarly, our model stores at most dd associations, which, when in presence of a Zipf law, leads to an error scaling in d−(α−1)d^{-(\alpha-1)}.

+
+
+
Theorem 2 (Minimax performance).
+
+

Assume that p⁡(x)p(x) follows a α\alpha-Zipf law (1) with N=+∞N=+\infty. +For any weighting scheme qq, and p∗∈(0,1)p_{*}\in(0,1), there exists a conditional distribution p⁡(y|x)p(y|x) with p∗=maxy⁡p⁡(y)p_{*}=\max_{y}p(y) such that the error made for the distribution pp is lower bounded by

+ + + + + + +
𝔼e,u​ℰ​(fq)≥cα​(d+1)−α+1wherecα=Cα​p∗α−120​(α+1)⋅3α−1.{\mathbb{E}}_{e,u}{\mathcal{E}}(f_{q})\geq c_{\alpha}(d+1)^{-\alpha+1}\qquad\text{where}\qquad c_{\alpha}=\frac{C_{\alpha}p_{*}^{\alpha-1}}{20(\alpha+1)\cdot 3^{\alpha-1}}.
+

Moreover, this performance is reached (up to logarithms factor) by the thresholding algorithm (12) with P≃d/log⁡(d)P\simeq d/\log(d) and ρ=0\rho=0.

+
+
+
+

Finally, we prove that the scaling laws proved for dd when T=+∞T=+\infty and for TT when d=+∞d=+\infty appears jointly when both dd and TT are finite.

+
+
+
Proposition 4 (Finite data and finite memory).
+
+

For the previous bound with respect to dd, Proposition 2 and Proposition 3, considering finite data simply adds a term T−1+1/αT^{-1+1/\alpha} (up to constants and logarithmic terms), matching the optimal bound of Proposition 1. +In particular, (12) with ρ=0\rho=0 and P≃d/log⁡(d)P\simeq d/\log(d) reaches the optimal scaling in

+ + + + + + + +
𝔼e,u,(xt,yt)t∈[T]​ℰ​(fq^)≍T−1+1/α+d−α+1.{\mathbb{E}}_{e,u,(x_{t},y_{t})_{t\in[T]}}{\mathcal{E}}(f_{\hat{q}})\asymp T^{-1+1/\alpha}+d^{-\alpha+1}.(15)
+
+
+
+

The optimal scaling (15) recovers the law of ? with respect to TT, and the one of ? with respect to dd. +This is intuitive, since ? assumes memorizing exactly all previously seen data, while each memory could be seen as specifying a “quantum of knowledge” as modeled in ?, with d−α+1d^{-\alpha+1} corresponding to the risk (5) of only storing the most frequent dd tokens. +However, associative memories can be understood at different level of granularity, and while one may argue that a transformer acts as a big associative memory machine and derives LLMs scaling laws approximations as corollaries, we prefer to understand a transformer as a combination of hidden associative memories as suggested by ???? among others.

+
+
+
+
+
Figure 4: +Comparison between the error found by optimizing WW (2) with SGD on the cross-entropy loss, and its approximation with q⁡(x)q(x) (4) and the approximate update rule (20). +We consider N=100N=100, M=5M=5, f∗​(x)=x​mod.⁡Mf_{*}(x)=x\operatorname{mod.}M, α=2\alpha=2, and batch size equals one. +Left: One run with d=N=100d=N=100 with γ=10\gamma=10. +Middle: Average over 100 runs with d=N=100d=N=100 with γ=1\gamma=1. +Right: Average when d=N/10=10d=N/10=10 with γ=1\gamma=1, which implies that our approximation is not valid anymore. +The same results can be obtained for bigger batch sizes as shown in Figure 13. +
+
+
+
+
+
Figure 5: +Theoretical approximation of the association scheme found with stochastic gradient descent with batch size equals one and fixed learning rates. +Left: Plot of fn​(0)f^{n}(0) as a function of nn where ff is the effect of one gradient update on q⁡(x)q(x) (20). +Right: Plot of the resulting qγ​(x)q_{\gamma}(x) when nx∝p⁡(x)∝(x+3)−αn_{x}\propto p(x)\propto(x+3)^{-\alpha} with α=2\alpha=2 and nN=1n_{N}=1. +In dashed, we represent qρq_{\rho} (11) for ρ=0.05\rho=0.05, ρ=0.35\rho=0.35 and ρ=1\rho=1. +Those curves map well qγq_{\gamma} for γ=10\gamma=10, γ=10−1\gamma=10^{-1} and γ=10−3\gamma=10^{-3} respectively. +
+
+
+
+
+

4 Optimization-based memorization

+ +
+

This section studies memory schemes privileged by optimization-based algorithms, digging into the training dynamics behind memorization. +In terms of relevance, we argue that our model (2) is a proxy for the inner layers of a transformer that memorize patterns before matching them against new data at inference time. +As such, we want to understand how different key elements in the training of a transformer influence storage in our memory model.

+
+
+
Gradient updates.
+ +
+

We consider the cross entropy loss as a surrogate objective to minimize, and study the form of gradient updates on batches of data. +Formally, the matrix W∈ℝd×dW\in{\mathbb{R}}^{d\times d} in (2) is optimized to minimize the loss

+ + + + + + + +
ℒ⁡(W)=𝔼(X,Y)∼p​[ℓ⁡(x,y,W)],ℓ⁡(x,y,W)=−uy⊤​W​ex+log⁡(∑z∈[M]exp⁡(uz⊤​W​ex)).{\mathcal{L}}(W)={\mathbb{E}}_{(X,Y)\sim p}[\ell(x,y;W)],\qquad\ell(x,y;W)=-u_{y}^{\top}We_{x}+\log(\sum_{z\in[M]}\exp(u_{z}^{\top}We_{x})).(16)
+

The gradient of this loss with respect to WW takes the following form, as detailed in Appendix A.10:

+ + + + + + + +
∇Wℓ​(x,y,W)=−(1−pW​(y|x))​(uy−ε)​ex⊤,withε=∑z∈[M]pW​(z|x,z≠y)​uz.\nabla_{W}\ell(x,y;W)=-(1-p_{W}(y|x))(u_{y}-\varepsilon)e_{x}^{\top},\quad\text{with}\quad\varepsilon=\sum_{z\in[M]}p_{W}(z|x,z\neq y)u_{z}.(17)
+

where pW​(y|x)∝exp⁡(uy⊤​W​ex)p_{W}(y|x)\propto\exp(u_{y}^{\top}We_{x}) are model predictions for the current WW. +For a batch of nn data B=[x1,⋯,xn]B=[x_{1},\cdots,x_{n}], a gradient update with step size γt\gamma_{t} updates WtW_{t} as

+ + + + + + + +
Wt+1=Wt−γt​∑x∈B∇Wℓ​(x,f∗​(x),Wt).W_{t+1}=W_{t}-\gamma_{t}\sum_{x\in B}\nabla_{W}\ell(x,f_{*}(x);W_{t}).(18)
+
+
+
+
Approximation of the updates.
+ +
+

When pW​(z|x)p_{W}(z|x) does not change much for all z≠f∗​(x)z\neq f_{*}(x), since uzu_{z} were sampled at random in 𝒮d{\mathcal{S}}^{d}, we expect ε\varepsilon (17) to concentrate around zero with ‖ε‖2≈1/M\|\varepsilon\|^{2}\approx 1/M, hence to be negligible in front of uf∗​(x)u_{f_{*}(x)}. +As a consequence,

+ + + + + + + +
∇Wℓ​(x,f∗​(x),W)≈−(1−pW​(f∗​(x)|x))​uy​ex⊤.\nabla_{W}\ell(x,f_{*}(x);W)\approx-(1-p_{W}(f_{*}(x)|x))u_{y}e_{x}^{\top}.(19)
+

This is notably the case for W=0W=0, random WW, or if WW only stores pairs (x,f∗​(x))(x,f_{*}(x)) with d≫Nd\gg N. +With the update model above (19), TT steps of SGD with batch size one lead to an association scheme of the form (4) with (see Section A.11)

+ + + + + + + +
qγ​(x)≈fT​p​(x)​(0)=f∘f∘⋯∘f⏟T​p​(x)​ times​(0),wheref:x↦x+γ1+M−1​exp⁡(x).q_{\gamma}(x)\approx f^{Tp(x)}(0)=\underbrace{f\circ f\circ\cdots\circ f}_{Tp(x)\text{ times}}(0),\qquad\text{where}\qquad f:x\mapsto x+\frac{\gamma}{1+M^{-1}\exp(x)}.(20)
+

This equation tells us what form to expect for qq for optimization schemes with different hyperparameters. This approximation is shown in Figure 5, and is validated empirically in Figure 4.

+
+
+
+
Refer to caption
Refer to caption
Refer to caption
Refer to caption
+
Figure 6: +Gradient descent dynamics from perspective of the matrix (uy⊤​Wt​ex)y,x∈ℝM×N(u_{y}^{\top}W_{t}e_{x})_{y,x}\in{\mathbb{R}}^{M\times N} with N=10N=10, M=5M=5, α=1.5\alpha=1.5, f∗​(x)=x​mod.⁡5f_{*}(x)=x\operatorname{mod.}5, and d=5<Nd=5<N. +A lighter color in the square (y,x)(y,x) means a higher value of uy⊤​W​exu_{y}^{\top}We_{x}. +The optimal WW corresponds to two diagonal strips of yellow boxes (see Figure 15). +The matrix WtW_{t} is updated with stochastic gradient descent with batch size equal to one. +From time to time, stochastic gradient descent will hit an association that is not properly stored in memory yet (the red boxes). +It will consequently update the weight matrix Wt→Wt+1W_{t}\to W_{t+1} (side by side pairs) to store it (18). +Left pair: update with a big learning rate γ=10\gamma=10, whose risk is to erase previous memories (the light colored boxes), similarly to q0q_{0} (10). +Right pair: update with a small learning rate γ=10−1\gamma=10^{-1}, which will not store rare memory, similarly to qρq_{\rho} (11) with large ρ\rho. +
+
+
+
+
Step size effect.
+ +
+

When d>Nd>N, the updates approximation (20) and the resulting qγq_{\gamma} show how a large learning rate γ\gamma is beneficial for our problem, in particular when using SGD with batch size one. +Interestingly, the same behavior holds in the presence of limited capacity, i.e., d<Nd<N, although interferences between embeddings (Figure 2) break our approximation (19). +In those settings, we resort to numerical simulation to study how optimization manages to rearrange memories. +Figure 6 showcases two types of behaviors depending on the size of γ\gamma. +(i) When the learning rate γ\gamma is large, associations will be stored easily in memory, but will tend to overwrite previous storage. +(ii) When the learning rate γ\gamma is small, associations need to be seen often to build up in the matrix WW (4) which will take more time, but will not erase memory. +This provides another intuition explanation for why a bigger step size leads to better results on the left of Figure 7. +The previous considerations also explain the usefulness of scheduling in our simple model, which we illustrate on Figure 11: using a large learning rate enables us to store associations while there is still memory space, while reducing it later in training avoids overwriting previous storage unless an association is highly frequent.

+
+
+
+
Batch size effect.
+ +
+

Table 2 recalls how storing associations with q=1q=1 under the model (4) is better than storing them with q=pq=p. +As such, it suggests that, when processing a finite number of data TT, smaller batch size is preferable. +Intuitively, processing an input xx in a batch will reweight it by its frequency p⁡(x)p(x), while processing it by itself will update WW similarly to setting qγ​(x)=1q_{\gamma}(x)=1 if xx has not been already seen. +Indeed, in the large batch limit where |B|→+∞|B|\to+\infty, one batch update corresponds to a population gradient update, which when pW≪1p_{W}\ll 1 assimilates to ∇Wℒ(W)≈−∑xp(x)uf∗​(x)ex⊤\nabla_{W}{\mathcal{L}}(W)\approx-\sum_{x}p(x)u_{f_{*}(x)}e_{x}^{\top}. +This contrasts with many small batch updates that rather lead to an association scheme akin to (4) with q=1q=1. +In support of this line of reasoning, Figure 7 (middle) illustrates the benefits of splitting the descent with many steps, with a small batch size and large step size.

+
+
+
+

4.1 Practical considerations

+ +
+

In order to optimize our simple model the fastest, we have seen the usefulness of large step size and small batch size. +However, for large transformers such design choices are impractical. +First, large step sizes may lead to instability in realistic models (?). +Second, in order to reduce training time and improve hardware efficiency, one should process large batches (?).

+
+
+
Adam.
+ +
+

We have seen before how the update of SGD with large batch can be approximated with

+ + + + + + +
γt−1​(Wt+1−Wt−1)=∑x∈B(1−pW​(f∗​(x)|x))​uf∗​(x)​ex⊤≈∑x∈ℕ|B|​(1−pW​(f∗​(x)|x))​p​(x)​uf∗​(x)​ex⊤.\gamma_{t}^{-1}(W_{t+1}-W_{t-1})=\sum_{x\in B}(1-p_{W}(f_{*}(x)|x))u_{f_{*}(x)}e_{x}^{\top}\approx\sum_{x\in{\mathbb{N}}}|B|(1-p_{W}(f_{*}(x)|x))p(x)u_{f_{*}(x)}e_{x}^{\top}.
+

Those naive updates would lead to a model that resembles (4) with q=pρq=p^{\rho} for ρ≈1\rho\approx 1 (11). +In concordance with previous research on the matter (??), we found Adam to be helpful in our setup as well, see Figure 7 (right). +In first order approximation, Adam is approximated as signSGD (?). +Arguably, this introduces a normalization effect to the gradient, helping to reach the saturation phase of n↦fnn\mapsto f^{n} (20) shown on Figure 5, homogenizing the resulting matrix WW to behave similarly to q1=1q_{1}=1, therefore optimizing memory capacity. +Experiments to underpin this intuition are reported in Figures 15 and 16 in Appendix B.

+
+
+
+
Layer normalization.
+ +
+

Minimizing the cross-entropy loss implies setting pW​(y|x)=1p_{W}(y|x)=1, which will lead to WW diverging to infinity and unstable loss gradients. +In order to ensure numerical stability, it is natural to rescale the vector W​ex∈ℝdWe_{x}\in{\mathbb{R}}^{d}, especially since what matters for the final prediction fWf_{W} is only its direction. +This is precisely what layer-norm does, introducing the logit score

+ + + + + + +
gyLN​(x)=⟨uy,W​ex‖W​ex‖⟩,instead ofgy​(x)=uy⊤​W​ex.g^{\rm LN}_{y}(x)=\langle u_{y},\frac{We_{x}}{\|We_{x}\|}\rangle,\qquad\text{instead of}\qquad g_{y}(x)=u_{y}^{\top}We_{x}.
+

This leads to an added projection on the gradients in (17), as detailed in Section A.12, denoting W¯=W/‖W​ex‖\bar{W}=W/\|We_{x}\|,

+ + + + + + + +
∇WℓLN​(x,y,W)=∇Wℓ​(x,y,W¯)=1‖W​ex‖​(I−(W¯​ex)​(W¯​ex)⊤)​∇W¯ℓ​(x,y,W¯).\nabla_{W}\ell^{\rm LN}(x,y;W)=\nabla_{W}\ell(x,y;\bar{W})=\frac{1}{\|We_{x}\|}\left(I-(\bar{W}e_{x})(\bar{W}e_{x})^{\top}\right)\nabla_{\bar{W}}\ell(x,y;\bar{W}).(21)
+

We recognize a projection that kills the signal that already aligns with W​exWe_{x}. +We conjecture that this introduces a clipping effect on the corresponding q⁡(x)q(x), optimizing for memory storage, and explaining the good performance observed in the right of Figure 7.

+
+
+
+
+
Figure 7: +Effect of step size, batch size, layer-norm and Adam (with β1=β2=0\beta_{1}=\beta_{2}=0, which corresponds to SignGD). +All the experiments are conducted with N=100N=100, M=5M=5, α=2\alpha=2, f∗​(x)=x​mod⁡Mf_{*}(x)=x\operatorname{mod}M, averaged over ten runs. +We initialized parameters and rescale learning rates to ensure maximal feature updates, as explained in Section B.1. +To avoid confounders, we scale γ\gamma on the middle plot for the variance of the gradient updates to be independent of the batch size. +
+
+
+
+
+

4.2 The benefits of learning the embeddings

+ +
+

Taking a step back, Theorem 1 implies that our model with d2d^{2} parameters, the matrix W∈ℝd×dW\in{\mathbb{R}}^{d\times d} (4), only memorize about d/log⁡(d)d/\log(d) associations (ex,uy)∈(ℝd)2(e_{x},u_{y})\in({\mathbb{R}}^{d})^{2} of size 2​d2d. +Intriguingly, Lemma 1 below states that an exponential number of quasi-orthogonal elements can be put in ℝd{\mathbb{R}}^{d}, an event that actually holds with high probability when embeddings are random, showcasing intrinsic limitations of our “linear” model (2).

+
+
+
Definition 1 (Quasi-orthogonality).
+
+

The family (uz)z∈[P](u_{z})_{z\in[P]} with uz∈ℝdu_{z}\in{\mathbb{R}}^{d} is η\eta-quasi orthogonal if

+ + + + + + + +
∀{z,z′}⊂[P],|⟨uz,uz′⟩|≤η,and∥uz∥=1.\forall\,\{z,z^{\prime}\}\subset[P],\qquad|\langle u_{z},u_{z^{\prime}}\rangle|\leq\eta,\qquad\text{and}\qquad\|u_{z}\|=1.(22)
+
+
+
+
Lemma 1.
+
+

For any d∈ℕd\in{\mathbb{N}} and P≥3P\geq 3, there exists an embedding u:[P]→ℝdu:[P]\to{\mathbb{R}}^{d} such that the family (uz)z∈[P](u_{z})_{z\in[P]} is η=2​d−1​log⁡(P)\eta=2\sqrt{d^{-1}\log(P)}-quasi orthogonal.

+
+
+
+

As a consequence of Lemma 1, the following model

+ + + + + + + +
f1​(x)=arg​maxy⁡uy⊤​∑x′∈[P]uf∗​(x′)​σ​(ex′⊤​ex−η),f_{1}(x)=\argmax_{y}u_{y}^{\top}\sum_{x^{\prime}\in[P]}u_{f_{*}(x^{\prime})}\sigma(e_{x^{\prime}}^{\top}e_{x}-\eta),(23)
+

where σ⁡(x)=x+\sigma(x)=x_{+} is the ReLU function, can fit P=exp⁡(η2​d/4)P=\exp(\eta^{2}d/4) elements in memory, leading to a scaling in ℰ(f1)≍exp(−(α−1)η2d/4){\mathcal{E}}(f_{1})\asymp\exp(-(\alpha-1)\eta^{2}d/4) when p⁡(x)p(x) follows a α\alpha-Zipf law.33 + 3 + + + + + + + + This result follows directly from two facts. +When input embeddings are chosen at random, the probability that they are not η\eta-quasi orthogonal is bounded by P2exp(−dη2/2)P^{2}\exp(-d\eta^{2}/2). +When input embeddings are η\eta-quasi orthogonal, f1​(x)=f∗​(x)f_{1}(x)=f_{*}(x) for any x∈[P]x\in[P]. + +Similarly, one could consider higher moments of ex′⊤​exe_{x^{\prime}}^{\top}e_{x} which has been the basis for modern Hopfield networks (??). +However, implementing the model (23) requires to keep track of each of the PP vectors ex∈ℝde_{x}\in{\mathbb{R}}^{d}, leading to P​dPd parameters, in order to only store PP associations of size dd, needing compute that scales with P​dPd at inference time, rather than just d2d^{2},

+
+
+

We also note that when embeddings are learned, it is actually possible to store as many memories as desired, which can be seen from the fact that

+ + + + + + + +
W=I,∀y∈[M]uy∈𝒮d,ex=uf∗​(x)⇒f∗(x)=arg​maxyuy⊤Wex,W=I,\forall\,y\in[M]\,u_{y}\in{\mathcal{S}}^{d},e_{x}=u_{f_{*}(x)}\qquad\Rightarrow\qquad f_{*}(x)=\argmax_{y}u_{y}^{\top}We_{x},(24)
+

In particular, Figure 8 illustrates the solution found when d=2d=2 by optimization-based algorithms in order to get a zero generalization error on the task of Figure 3 where M=5M=5. +Optimizing token embeddings is probably an important element to increase memorization capacity in transformers, although enforcing ex=uf∗​(x)e_{x}=u_{f_{*}(x)} is unrealistic when embeddings are shared over different heads, and the input/output relationships to be learned differ across heads.

+
+
+
+
+
Figure 8: +Experiments with learned embeddings when α=2\alpha=2, N=100N=100 and M=5M=5 with y=f∗​(x)=x​mod.⁡My=f_{*}(x)=x\operatorname{mod.}M and d=2d=2. +Left: level lines of the function ℝ2→[5];u↦arg​maxy∈[5]⁡uy⊤​u{\mathbb{R}}^{2}\to[5];u\mapsto\argmax_{y\in[5]}u_{y}^{\top}u with uyu_{y} the learned unembedding. +Middle: scatter plot of the learned input embeddings ex∈ℝ2e_{x}\in{\mathbb{R}}^{2} for x∈[N]x\in[N] colored accordingly to f∗​(x)f_{*}(x) for exe_{x}. +It illustrates how the input embeddings match with the output ones, similarly to (24) and Proposition 5. +Right: learned input embeddings obtained with M=10M=10, and allowing again a zero generalization error. +Reaching a zero error with d=2d=2 greatly contrasts with the condition d≥Nd\geq N needed to get to a zero generalization error when the embeddings are random. +
+
+
+
+
+

5 Conclusion

+ +
+

This work considers a simple model to study memorization in transformers. +Here, memorization is seen as a valuable behavior, the network memorizing useful patterns and association rules. +We derive precise scaling laws with respect to both the number of data, and the model size, which plays the role of a model capacity. +We quantify the effect of different memorization schemes, illustrating the benefits of uniformly weighted outer products. +We leverage these theoretical results to study how different optimization algorithms commonly used for transformers may lead to more efficient memorization. +In particular, we showcase the efficacy of small batches and large learning rates, and, under the design constraints resulting from efficient hardware utilization and training stability, the usefulness of Adam and layer normalization.

+
+
+

While our study focuses on simple memorization schemes, it opens up many possible new directions. +This includes extending our study to richer models that are closer to transformers, where embeddings, attention and feed-forward layers are trained. +This could allow models of scaling laws that capture interactions between tokens, as well as hierarchical behaviors that require multiple layers. +We would equally like to leverage our framework for assessing memorization and generalization through clear metrics, and eventually automatically adapt the learning rates as a function of the “free” memory capacity left in a layer.

+
+
+
+

Bibliography

+ +
    + +
  • + +Shun-Ichi Amari. + + +Learning patterns and pattern sequences by self-organizing nets of threshold elements. + + +IEEE Transactions on Computers, 1972. + +
  • + +
  • + +Yasaman Bahri, Ethan Dyer, Jared Kaplan, Jaehoon Lee, and Utkarsh Sharma. + + +Explaining neural scaling laws. + + +arXiv preprint arXiv:2102.06701, 2021. + +
  • + +
  • + +Lukas Balles and Philipp Hennig. + + +Dissecting adam: The sign, magnitude and variance of stochastic gradients. + + +In ICML, 2018. + +
  • + +
  • + +Alberto Bietti, Vivien Cabannes, Diane Bouchacourt, Herve Jegou, and Leon Bottou. + + +Birth of a transformer: A memory viewpoint. + + +In NeurIPS, 2023. + +
  • + +
  • + +Thomas Cover and Joy Thomas. + + +Elements of Information Theory. + + +Wiley, 1991. + +
  • + +
  • + +Lukasz Debowski. + + +A simplistic model of neural scaling laws: Multiperiodic santa fe processes. + + +arXiv preprint arXiv:2302.09049, 2023. + +
  • + +
  • + +Ian Dinwoodie. + + +Mesures dominantes et théorème de sanov. + + +Annales de l’Institut Henri Poincare, 1992. + +
  • + +
  • + +Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. + + +A mathematical framework for transformer circuits. + + +Technical report, Anthropic, 2021. + +
  • + +
  • + +Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, and Christopher Olah. + + +Toy models of superposition. + + +Technical report, Anthropic, 2022. + +
  • + +
  • + +Vitaly Feldman. + + +Does learning require memorization? a short tale about a long tail. + + +In STOC, 2020. + +
  • + +
  • + +Vitaly Feldman and Chiyuan Zhang. + + +What neural networks memorize and why: Discovering the long tail via influence estimation. + + +In NeurIPS, 2020. + +
  • + +
  • + +Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. + + +Transformer feed-forward layers are key-value memories. + + +In EMNLP, 2021. + +
  • + +
  • + +Justin Gilmer, Behrooz Ghorbani, Ankush Garg, Sneha Kudugunta, Behnam Neyshabur, David Cardoze, George Edward Dahl, Zachary Nado, and Orhan Firat. + + +A loss curvature perspective on training instabilities of deep learning models. + + +In International Conference on Learning Representations, 2021. + +
  • + +
  • + +Wassily Hoeffding. + + +Probability inequalities for sums of bounded random variables. + + +Journal of the American Statistical Association, 1963. + +
  • + +
  • + +Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. + + +Training compute-optimal large language models. + + +In NeurIPS, 2022. + +
  • + +
  • + +John Hopfield. + + +Neural networks and physical systems with emergent collective computational abilities. + + +Proceedings of the National Academy of Sciences of the United States of America, 1982. + +
  • + +
  • + +Marcus Hutter. + + +Learning curve theory. + + +arXiv preprint arXiv:2102.04074, 2021. + +
  • + +
  • + +Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. + + +Scaling laws for neural language models. + + +arXiv preprint arXiv:2001.08361, 2020. + +
  • + +
  • + +Teuvo Kohonen. + + +Correlation matrix memories. + + +IEEE Transactions on Computers, 1972. + +
  • + +
  • + +Dmitry Krotov and John Hopfield. + + +Dense associative memory for pattern recognition. + + +In NeurIPS, 2016. + +
  • + +
  • + +Frederik Kunstner, Jacques Chen, Jonathan Wilder Lavington, and Mark Schmidt. + + +Noise is not the main factor behind the gap between sgd and adam on transformers, but sign descent might be. + + +In ICLR, 2023. + +
  • + +
  • + +William Little. + + +The existence of persistent states in the brain. + + +Mathematical Biosciences, 1974. + +
  • + +
  • + +Christopher Longuet-Higgins, David. Willshaw, and Peter Buneman. + + +Theories of associative recall. + + +Quarterly Reviews of Biophysics, 1970. + +
  • + +
  • + +Alexander Maloney, Daniel Roberts, and James Sully. + + +A solvable model of neural scaling laws. + + +arXiv preprint arXiv:2210.16859, 2022. + +
  • + +
  • + +Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. + + +Locating and editing factual associations in GPT. + + +In NeurIPS, 2022. + +
  • + +
  • + +Eric Michaud, Ziming Liu, Uzay Girit, and Max Tegmark. + + +The quantization model of neural scaling. + + +arXiv preprint arXiv:2303.13506, 2023. + +
  • + +
  • + +Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. + + +Pytorch: An imperative style, high-performance deep learning library. + + +In NeurIPS, 2019. + +
  • + +
  • + +Steven Piantadosi. + + +Zipf’s word frequency law in natural language: A critical review and future directions. + + +Psychonomic Bulletin and Review, 2014. + +
  • + +
  • + +Hubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl, Michael Widrich, Thomas Adler, Lukas Gruber, Markus Holzleitner, Milena Pavlović, Geir Kjetil Sandve, Victor Greiff, David Kreil, Michael Kopp, Günter Klambauer, Johannes Brandstetter, and Sepp Hochreiter. + + +Hopfield networks is all you need. + + +In ICLR, 2021. + +
  • + +
  • + +Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. + + +Linear transformers are secretly fast weight programmers. + + +In ICML, 2021. + +
  • + +
  • + +Samuel Smith, Pieter-Jan Kindermans, Chris Ying, and Quoc V. Le. + + +Don’t decay the learning rate, increase the batch size. + + +In ICLR, 2018. + +
  • + +
  • + +Paul Smolensky. + + +Tensor product variable binding and the representation of symbolic structures in connectionist systems. + + +Artifical Intelligence, 1990. + +
  • + +
  • + +Ben Sorscher, Robert Geirhos, Shashank Shekhar, Surya Ganguli, and Ari Morcos. + + +Beyond neural scaling laws: beating power law scaling via data pruning. + + +In NeurIPS, 2022. + +
  • + +
  • + +Karl Steinbuch. + + +Die Lernmatrix. + + +Kybernetik, 1961. + +
  • + +
  • + +Sainbayar Sukhbaatar, Edouard Grave, Guillaume Lample, Herve Jegou, and Armand Joulin. + + +Augmenting self-attention with persistent memory. + + +arXiv preprint arXiv:1907.01470, 2019. + +
  • + +
  • + +Juan Valle-Lisboa, Andrés Pomi, and Eduardo Mizraji. + + +Multiplicative processing in the modeling of cognitive activities in large neural networks. + + +Biophysical Reviews, 2023. + +
  • + +
  • + +David Willshaw, Peter Buneman, and Christopher Longuet-Higgins. + + +Non-holographic associative memory. + + +Nature, 1969. + +
  • + +
  • + +Yuhuai Wu, Markus Rabe, DeLesley Hutchins, and Christian Szegedy. + + +Memorizing transformers. + + +In ICLR, 2022. + +
  • + +
  • + +Greg Yang and Etai Littwin. + + +Tensor programs ivb: Adaptive optimization in the infinite-width limit. + + +arXiv preprint arXiv:2308.01814, 2023. + +
  • + +
  • + +Greg Yang, Edward Hu, Igor Babuschkin, Szymon Sidor, Xiaodong Liu, David Farhi, Nick Ryder, Jakub Pachocki, Weizhu Chen, and Jianfeng Gao. + + +Tensor programs v: Tuning large neural networks via zero-shot hyperparameter transfer. + + +In NeurIPS, 2021. + +
  • + +
  • + +Jingzhao Zhang, Sairaneeth Karimireddy, Andreas Veit, Seungyeon Kim, Sashank Reddi, Sanjiv Kumar, and Suvrit Sra. + + +Why are adaptive methods good for attention models? + + +In NeurIPS, 2020. + +
  • + +
+
+
+
+

Appendix A Proofs

+ +
+

A.1 Finite data - Proof of Proposition 1

+ +
+

Let us consider the infinite memory model, where an LLM can store in memory all previously seen associations (x,y)(x,y). +At each time tt, a random positive integer xx is drawn from some fixed probability distribution. +At time TT, the LLM would have seen x1,…,xTx_{1},\ldots,x_{T} and the associated f∗​(xt)f_{*}(x_{t}), where each xtx_{t} is a random positive integer drawn independently from pp. +As such, the LLM would have learned a map f^\hat{f}, that only miscorrects the inputs xx which are different from all the xtx_{t} for t∈[T]t\in[T]. +The generalization error reads, with respect to the random dataset 𝒟T=(Xt,Yt)t∈[T]{\mathcal{D}}_{T}=(X_{t},Y_{t})_{t\in[T]},

+ + + + + + + +
𝔼𝒟T​[f^]\displaystyle{\mathbb{E}}_{{\mathcal{D}}_{T}}[\hat{f}]=ℙX,𝒟T​(X∉{Xt}t∈[T])=∑x∈[N]p⁡(x)​P𝒟t​(x∉{Xt}t∈[T])=∑x∈[N]p⁡(x)​(1−p⁡(x))T.\displaystyle={\mathbb{P}}_{X,{\mathcal{D}}_{T}}(X\notin\{X_{t}\}_{t\in[T]})=\sum_{x\in[N]}p(x)P_{{\mathcal{D}}_{t}}(x\notin\{X_{t}\}_{t\in[T]})=\sum_{x\in[N]}p(x)(1-p(x))^{T}.
+

Using that (1−a)T=exp⁡(T​log⁡(1−a))(1-a)^{T}=\exp(T\log(1-a)) and 2​log⁡(2)​a≤log⁡(1+a)≤a2\log(2)a\leq\log(1+a)\leq a for any a≥−1/2a\geq-1/2, we get

+ + + + + + + + + + + + +
∑x∈[N]𝟏p⁡(x)≤1/2⋅p⁡(x)​exp⁡(−2​log⁡(2)​p​(x)​T)≤∑x=2Np⁡(x)​exp⁡(−2​log⁡(2)​p​(x)​T)\displaystyle\sum_{x\in[N]}\mathbf{1}_{p(x)\leq 1/2}\cdot p(x)\exp(-2\log(2)p(x)T)\leq\sum_{x=2}^{N}p(x)\exp(-2\log(2)p(x)T)
≤𝔼𝒟T​[f^]≤∑x∈[N]p⁡(x)​exp⁡(−p⁡(x)​T).\displaystyle\qquad\qquad\leq{\mathbb{E}}_{{\mathcal{D}}_{T}}[\hat{f}]\leq\sum_{x\in[N]}p(x)\exp(-p(x)T).
+

Relating this series to the corresponding integral, we have

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
∫x∈[1,N]p⁡(x)​exp⁡(−2​log⁡(2)​p​(x)​T)​⁡𝑑x−1/T\displaystyle\int_{x\in[1,N]}p(x)\exp(-2\log(2)p(x)T)\mathop{}\!\mathrm{d}x-1/T
≤∫x∈[2,p−1​(1/T)]p⁡(x−1)​exp⁡(−2​log⁡(2)​p​(x−1)​T)​⁡𝑑x\displaystyle\qquad\leq\int_{x\in[2,p^{-1}(1/T)]}p(x-1)\exp(-2\log(2)p(x-1)T)\mathop{}\!\mathrm{d}x
+∫x∈[p−1​(1/T),N]p(x)exp(−2log(2)p(x)T)dx\displaystyle\qquad\qquad+\int_{x\in[p^{-1}(1/T),N]}p(x)\exp(-2\log(2)p(x)T)\mathop{}\!\mathrm{d}x
≤∑x=2Np⁡(x)​exp⁡(−2​log⁡(2)​p​(x)​T)≤𝔼𝒟T​[f^]≤∑x∈[N]p⁡(x)​exp⁡(−p⁡(x)​T)\displaystyle\qquad\leq\sum_{x=2}^{N}p(x)\exp(-2\log(2)p(x)T)\leq{\mathbb{E}}_{{\mathcal{D}}_{T}}[\hat{f}]\leq\sum_{x\in[N]}p(x)\exp(-p(x)T)
≤∫x∈[1,N]p⁡(x)​exp⁡(−2​log⁡(2)​p​(x)​T)​⁡𝑑x+1/T\displaystyle\qquad\qquad\leq\int_{x\in[1,N]}p(x)\exp(-2\log(2)p(x)T)\mathop{}\!\mathrm{d}x+1/T
+

Letting NN goes to infinity, we get the scaling

+ + + + + + + +
𝔼𝒟T​[f^]≍∫1∞p⁡(x)​e−T​p​(x)​⁡𝑑x±1/T.{\mathbb{E}}_{{\mathcal{D}}_{T}}[\hat{f}]\asymp\int_{1}^{\infty}p(x)e^{-Tp(x)}\mathop{}\!\mathrm{d}x\pm 1/T.(25)
+

Assuming that p⁡(x)=C​f​(x)p(x)=Cf(x) for some constant CC, and a smooth strongly decreasing function f:ℝ+→ℝ+f:{\mathbb{R}}_{+}\to{\mathbb{R}}_{+} such that limx→0f⁡(x)=+∞\lim_{x\to 0}f(x)=+\infty, one may consider the change of variable u=f⁡(x)u=f(x), i.e., x=f−1​(u)x=f^{-1}(u). +If so,

+ + + + + + +
⁡d​x=⁡d​(f−1)′​(u)=⁡d​uf′∘f−1​(u).\mathop{}\!\mathrm{d}x=\mathop{}\!\mathrm{d}(f^{-1})^{\prime}(u)=\frac{\mathop{}\!\mathrm{d}u}{f^{\prime}\circ f^{-1}(u)}.
+

Hence it holds that

+ + + + + + + +
𝔼𝒟T​[f^]≍∫1∞−uf′∘f−1​(u)​e−u​T​⁡𝑑u.{\mathbb{E}}_{{\mathcal{D}}_{T}}[\hat{f}]\asymp\int_{1}^{\infty}\frac{-u}{f^{\prime}\circ f^{-1}(u)}e^{-uT}\mathop{}\!\mathrm{d}u.(26)
+

This relates to the Laplace transform of the function inside the integrand. +In particular, one can work out that when p⁡(x)∝Cα​x−αp(x)\propto C_{\alpha}x^{-\alpha}, +f−1(u)=u−1/βf^{-1}(u)=u^{-1/\beta} from which one can deduce that

+ + + + + + +
∫1∞x−α​exp⁡(−T​x−α)​⁡𝑑x=αΓ⁡(α−1α)​T−α−1α,\displaystyle\int_{1}^{\infty}x^{-\alpha}\exp(-Tx^{-\alpha})\mathop{}\!\mathrm{d}x=\frac{\alpha}{\Gamma(\frac{\alpha-1}{\alpha})}T^{-\frac{\alpha-1}{\alpha}},
+

which recovers a result of ?.

+
+
+
+

A.2 Memory capacity - Proof of Lemma 1

+ +
+

The proof of Lemma 1 concerning quasi orthogonal embeddings can be done through a reasoning on random embeddings. +Let (Xi)(X_{i}) be PP independent identically distributed random variables. +We are interested in the event where the normalized (Xi)(X_{i}) are η\eta-quasi orthogonal.

+ + + + + + + + + + + + +
ℙ(∩{i,j}⊂[P]{|⟨Xi,Xj⟩|≤η∥Xi∥∥Xj∥})\displaystyle{\mathbb{P}}(\cap_{\{i,j\}\subset[P]}\{|\langle X_{i},X_{j}\rangle|\leq\eta\|X_{i}\|\|X_{j}\|\})=1−ℙ(∪{i,j}⊂[P]{|⟨Xi,Xj⟩|≥η∥Xi∥∥Xj∥})\displaystyle=1-{\mathbb{P}}(\cup_{\{i,j\}\subset[P]}\{|\langle X_{i},X_{j}\rangle|\geq\eta\|X_{i}\|\|X_{j}\|\})
≥1−P⁡(P−1)2​ℙ​(|⟨X1,X2⟩|≥η​‖X1‖​‖X2‖).\displaystyle\geq 1-\frac{P(P-1)}{2}{\mathbb{P}}(|\langle X_{1},X_{2}\rangle|\geq\eta\|X_{1}\|\|X_{2}\|).
+

If this event can happen, it means that there exists such η\eta-quasi orthogonal samples. +As a consequence, we are looking to maximize η\eta such that

+ + + + + + + +
ℙ⁡(|⟨X1,X2⟩|≥η​‖X1‖​‖X2‖)<2P⁡(P−1).{\mathbb{P}}(|\langle X_{1},X_{2}\rangle|\geq\eta\|X_{1}\|\|X_{2}\|)<\frac{2}{P(P-1)}.(27)
+

Let us consider (Xi)(X_{i}) to be distributed accordingly to a rotation-invariant probability. +By symmetry, we have, with f1f_{1} denoting the first vector of the canonical basis in ℝd{\mathbb{R}}^{d},

+ + + + + + + +
ℙ⁡(|⟨X1,X2⟩|≥η​‖X1‖​‖X2‖)=ℙ⁡(|⟨X,f1⟩|≥η​‖X‖)=ℙ⁡(|⟨X‖X‖,f1⟩|≥η){\mathbb{P}}(|\langle X_{1},X_{2}\rangle|\geq\eta\|X_{1}\|\|X_{2}\|)={\mathbb{P}}(|\langle X,f_{1}\rangle|\geq\eta\|X\|)={\mathbb{P}}(|\langle\frac{X}{\|X\|},f_{1}\rangle|\geq\eta)(28)
+

By symmetry, the vector X/‖X‖X/\|X\| is uniform on the sphere. +Using that ℙ⁡(|⟨X,f1⟩|>η)=2​ℙ​(⟨X,f1⟩>η){\mathbb{P}}(|\langle X,f_{1}\rangle|>\eta)=2{\mathbb{P}}(\langle X,f_{1}\rangle>\eta) and

+ + + + + + + + + + + + + + + + + +
ℙ⁡(|⟨X,f1⟩|≥η)\displaystyle{\mathbb{P}}(|\langle X,f_{1}\rangle|\geq\eta)=2Vol⁡(𝒮d−1)​∫x∈𝒮d−1𝟏x1≥η​⁡𝑑x\displaystyle=\frac{2}{\vol({\mathcal{S}}^{d-1})}\int_{x\in{\mathcal{S}}^{d-1}}\mathbf{1}_{x_{1}\geq\eta}\mathop{}\!\mathrm{d}x
=2Vol⁡(𝒮d−1)​∫x1=η2Vol⁡(1−x12⋅𝒮d−2)​⁡d​x1\displaystyle=\frac{2}{\vol({\mathcal{S}}^{d-1})}\int_{x_{1}=\eta}^{2}\vol(\sqrt{1-x_{1}^{2}}\cdot{\mathcal{S}}^{d-2})\mathop{}\!\mathrm{d}x_{1}
=2​Vol⁡(𝒮d−2)Vol⁡(𝒮d−1)​∫t=η1(1−t2)d−12​⁡𝑑t=2​Γ​(d2+1)π​Γ​(d2+12)​∫t=η1(1−t2)d−12​⁡𝑑t.\displaystyle=\frac{2\vol({\mathcal{S}}^{d-2})}{\vol({\mathcal{S}}^{d-1})}\int_{t=\eta}^{1}(1-t^{2})^{\frac{d-1}{2}}\mathop{}\!\mathrm{d}t=\frac{2\Gamma(\frac{d}{2}+1)}{\sqrt{\pi}\Gamma(\frac{d}{2}+\frac{1}{2})}\int_{t=\eta}^{1}(1-t^{2})^{\frac{d-1}{2}}\mathop{}\!\mathrm{d}t.
+

To upper bound this probability, we proceed with

+ + + + + + + + + + + + +
ℙ⁡(|⟨X,f1⟩|≥η)\displaystyle{\mathbb{P}}(|\langle X,f_{1}\rangle|\geq\eta)=2​Γ​(d2+12)π​Γ​(d2+12)​∫t=η1(1−t2)d−12​⁡𝑑t≤2​(d2+1)1/2π​∫t=η1tη​(1−t2)d−12​⁡𝑑t\displaystyle=\frac{2\Gamma(\frac{d}{2}+\frac{1}{2})}{\sqrt{\pi}\Gamma(\frac{d}{2}+\frac{1}{2})}\int_{t=\eta}^{1}(1-t^{2})^{\frac{d-1}{2}}\mathop{}\!\mathrm{d}t\leq\frac{2(\frac{d}{2}+1)^{1/2}}{\sqrt{\pi}}\int_{t=\eta}^{1}\frac{t}{\eta}(1-t^{2})^{\frac{d-1}{2}}\mathop{}\!\mathrm{d}t
=2​(d2+1)1/2π​1η⁡(d+1)​(1−η2)d+12≤2π​η2​d​exp⁡(−η2​d2).\displaystyle=\frac{2(\frac{d}{2}+1)^{1/2}}{\sqrt{\pi}}\frac{1}{\eta(d+1)}(1-\eta^{2})^{\frac{d+1}{2}}\leq\frac{\sqrt{2}}{\sqrt{\pi}\sqrt{\eta^{2}d}}\exp(-\frac{\eta^{2}d}{2}).
+

The last inequality follows from the fact that

+ + + + + + +
(d+2)(d+1)2=d+1+1d+1​1d+1=1+1d+11+1d​1d≤d−1,\frac{(d+2)}{(d+1)^{2}}=\frac{d+1+1}{d+1}\frac{1}{d+1}=\frac{1+\frac{1}{d+1}}{1+\frac{1}{d}}\frac{1}{d}\leq d^{-1},
+

and that for any x∈(−1,1)x\in(-1,1), the concavity of the logarithm mean that log⁡(1+x)≤x\log(1+x)\leq x hence that

+ + + + + + +
(1+x)n=exp⁡(n​log⁡(1+x))≤exp⁡(n​x).(1+x)^{n}=\exp(n\log(1+x))\leq\exp(nx).
+

This leads to the following series of implications

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
∃(Xi)​ η-quasi orthogonal\displaystyle\exists\,(X_{i})\text{ $\eta$-quasi orthogonal}⇐1π(η2​d2)−1/2exp(−η2​d2)≥2P2\displaystyle\qquad\Leftarrow\qquad\frac{1}{\sqrt{\pi}}\big(\frac{\eta^{2}d}{2}\big)^{-1/2}\exp(-\frac{\eta^{2}d}{2})\geq\frac{2}{P^{2}}
⇔(η2​d2)1/2exp(η2​d2)≥P22​π\displaystyle\qquad\Leftrightarrow\qquad\big(\frac{\eta^{2}d}{2}\big)^{1/2}\exp(\frac{\eta^{2}d}{2})\geq\frac{P^{2}}{2\sqrt{\pi}}
⇐η2​d2≥1andexp⁡(η2​d2)>P22​π\displaystyle\qquad\Leftarrow\qquad\frac{\eta^{2}d}{2}\geq 1\quad\text{and}\quad\exp(\frac{\eta^{2}d}{2})>\frac{P^{2}}{2\sqrt{\pi}}
⇐η2​d2≥2​log⁡(P)−log⁡(2​π)≥1\displaystyle\qquad\Leftarrow\qquad\frac{\eta^{2}d}{2}\geq 2\log(P)-\log(2\sqrt{\pi})\geq 1
⇐η2​d4≥log⁡(P)≥1+log⁡(2​OPENπ)CLOSE2.\displaystyle\qquad\Leftarrow\qquad\frac{\eta^{2}d}{4}\geq\log(P)\geq\frac{1+\log(2\sqrt{\pi)}}{2}.
+

Finally, we have proven the existence of a η\eta-quasi orthogonal family for

+ + + + + + + +
η≥4​log⁡(P)​d−1,as long asP≥3.\eta\geq\sqrt{4\log(P)d^{-1}},\qquad\text{as long as}\qquad P\geq 3.(29)
+
+
+
+

A.3 Generic error decomposition

+ +
+

The error made by fWf_{W} relates to the ordering between the signals uf∗​(x)​W​ex⊤u_{f_{*}(x)}We_{x}^{\top} and the noises maxy≠f∗​(x)⁡uy​W⊤​ex\max_{y\neq f_{*}(x)}u_{y}W^{\top}e_{x}.

+
+
+

Let fqf_{q} be defined as in the main text. +We have the following sequence of equivalence, assuming uniqueness of the argument of the maximum for simplicity,

+ + + + + + + + + + + + + + + + + +
fq​(x0)≠f∗​(x0)\displaystyle f_{q}(x_{0})\neq f_{*}(x_{0})⇔arg​maxy∈[M]∑x∈[N]q(x)ex⊤ex0uf∗​(x)⊤uy≠f∗(x0)\displaystyle\qquad\Leftrightarrow\qquad\argmax_{y\in[M]}\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}u_{y}\neq f_{*}(x_{0})
⇔maxy∈[M]∑x∈[N]q(x)ex⊤ex0uf∗​(x)⊤uy>∑x∈[N]q(x)ex⊤ex0uf∗​(x)⊤uf∗​(x0)\displaystyle\qquad\Leftrightarrow\qquad\max_{y\in[M]}\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}u_{y}>\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}u_{f_{*}(x_{0})}
⇔maxy∈[M]∑x∈[N]q(x)ex⊤ex0uf∗​(x)⊤(uy−uf∗​(x0))>0.\displaystyle\qquad\Leftrightarrow\qquad\max_{y\in[M]}\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}(u_{y}-u_{f_{*}(x_{0})})>0.
+

As a consequence,

+ + + + + + + + + + + + + +
ℰ⁡(fq)\displaystyle{\mathcal{E}}(f_{q})=∑x0∈[N]p⁡(x0)​𝟏fq⁡(x0)≠f∗​(x0)\displaystyle=\sum_{x_{0}\in[N]}p(x_{0})\mathbf{1}_{f_{q(x_{0})}\neq f_{*}(x_{0})}
=∑xo∈[N]p⁡(x0)​𝟏max⁡∑x∈[N]y⁡q⁡(x)​ex⊤​ex0​uf∗​(x)⊤​(uy−uf∗​(x0))>0.\displaystyle=\sum_{x_{o}\in[N]}p(x_{0})\mathbf{1}_{\max_{y}\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}(u_{y}-u_{f_{*}(x_{0})})>0}.(30)
+

In other terms, we have proven the following characterization, which holds for any qq, even if derived from a finite number of data,

+ + + + + + + +
ℰ⁡(fq)=p⁡({x∈[N]|max⁡∑x′∈[N]y⁡q⁡(x′)​ex′⊤​ex​⟨uf∗​(x′),uy−uf∗​(x)⟩>0}).{\mathcal{E}}(f_{q})=p(\{x\in[N]\,|\,\max_{y}\sum_{x^{\prime}\in[N]}q(x^{\prime})e_{x^{\prime}}^{\top}e_{x}\langle u_{f_{*}(x^{\prime})},u_{y}-u_{f_{*}(x)}\rangle>0\}).(30)
+
+
+
+

A.4 Random embeddings - Proof of Theorem 1

+ +
+

Let us introduce randomness in the model. +If each ex∼𝒩⁡(0,I)e_{x}\sim{\mathcal{N}}(0,I) is actually an independent random Gaussian vector in ℝd{\mathbb{R}}^{d}, we continue our derivation with

+ + + + + + + + + + + + + + + + + +
𝔼e[ℰ(fq)]=∑xo∈[N]p(x0)𝔼ex0[ℙ(ex)x≠x0(fq(x0)≠f∗(x0)|ex0)]\displaystyle{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]=\sum_{x_{o}\in[N]}p(x_{0}){\mathbb{E}}_{e_{x_{0}}}[{\mathbb{P}}_{(e_{x})_{x\neq x_{0}}}(f_{q}(x_{0})\neq f_{*}(x_{0})\,|\,\mathopen{}e_{x_{0}})]
=∑xo∈[N]p(x0)𝔼ex0[ℙ(ex)x≠x0(maxy∑x∈[N]q(x)ex⊤ex0uf∗​(x)⊤(uy−uf∗​(x0))>0|ex0)]\displaystyle=\sum_{x_{o}\in[N]}p(x_{0}){\mathbb{E}}_{e_{x_{0}}}[{\mathbb{P}}_{(e_{x})_{x\neq x_{0}}}(\max_{y}\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}(u_{y}-u_{f_{*}(x_{0})})>0\,|\,\mathopen{}e_{x_{0}})]
=∑xo∈[N]p(x0)𝔼ex0[ℙ(ex)x≠x0(maxyZy>0|ex0)].\displaystyle=\sum_{x_{o}\in[N]}p(x_{0}){\mathbb{E}}_{e_{x_{0}}}[{\mathbb{P}}_{(e_{x})_{x\neq x_{0}}}(\max_{y}Z_{y}>0\,|\,\mathopen{}e_{x_{0}})].
+

Here, we have introduced the random variables ZyZ_{y} for y≠f∗​(x0)y\neq f_{*}(x_{0}), inheriting their randomness from (e|ex0)(e|e_{x_{0}}), and defined by

+ + + + + + + +
Zy=∑x∈[N]q⁡(x)​ex⊤​ex0​uf∗​(x)⊤​(uy−uf∗​(x0)).Z_{y}=\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}(u_{y}-u_{f_{*}(x_{0})}).(31)
+

Those are projections of Gaussian variables, hence are Gaussian. +Using the fact that 𝔼⁡[ex]=0{\mathbb{E}}[e_{x}]=0, their mean is

+ + + + + + + +
μy:=𝔼⁡[Zy]=q⁡(x0)​‖ex0‖2​uf∗​(x0)⊤​(uy−uf∗​(x0)).\mu_{y}:={\mathbb{E}}[Z_{y}]=q(x_{0})\|e_{x_{0}}\|^{2}u_{f_{*}(x_{0})}^{\top}(u_{y}-u_{f_{*}(x_{0})}).(32)
+

Those variables are correlated. +Using the characterization of the mean, we deduce that their covariance reads

+ + + + + + + + + + + + + + + + + + + + + + +
Σy1,y2\displaystyle\Sigma_{y_{1},y_{2}}:=𝔼⁡[(Zy1−𝔼⁡[Zy1])​(Zy2−𝔼⁡[Zy2])]\displaystyle:={\mathbb{E}}[(Z_{y_{1}}-{\mathbb{E}}[Z_{y_{1}}])(Z_{y_{2}}-{\mathbb{E}}[Z_{y_{2}}])]
=∑x,x′≠x0q⁡(x)​q​(x′)​𝔼​[ex⊤​ex0​ex′⊤​ex0]​uf∗​(x)⊤​(uy1−uf∗​(x0))​uf∗​(x′)⊤​(uy2−uf∗​(x0))\displaystyle=\sum_{x,x^{\prime}\neq x_{0}}q(x)q(x^{\prime}){\mathbb{E}}[e_{x}^{\top}e_{x_{0}}e_{x^{\prime}}^{\top}e_{x_{0}}]u_{f_{*}(x)}^{\top}(u_{y_{1}}-u_{f_{*}(x_{0})})u_{f_{*}(x^{\prime})}^{\top}(u_{y_{2}}-u_{f_{*}(x_{0})})
=(uy1−uf∗​(x0))​(∑x≠x0q​(x)2​ex0⊤​𝔼​[ex​ex⊤]​ex0​uf∗​(x)​uf∗​(x)⊤)​(uy2−uf∗​(x0)).\displaystyle=(u_{y_{1}}-u_{f_{*}(x_{0})})(\sum_{x\neq x_{0}}q(x)^{2}e_{x_{0}}^{\top}{\mathbb{E}}[e_{x}e_{x}^{\top}]e_{x_{0}}u_{f_{*}(x)}u_{f_{*}(x)}^{\top})(u_{y_{2}}-u_{f_{*}(x_{0})}).
=(uy1−uf∗​(x0))​(∑x≠x0q​(x)2​‖ex0‖2​uf∗​(x)​uf∗​(x)⊤)​(uy2−uf∗​(x0)).\displaystyle=(u_{y_{1}}-u_{f_{*}(x_{0})})(\sum_{x\neq x_{0}}q(x)^{2}\|e_{x_{0}}\|^{2}u_{f_{*}(x)}u_{f_{*}(x)}^{\top})(u_{y_{2}}-u_{f_{*}(x_{0})}).
+

Finally, we obtain the following covariance

+ + + + + + + +
Σy,y′=‖ex0‖2​(uy−uf∗​(x0))⊤​(∑x≠x0q​(x)2​uf∗​(x)​uf∗​(x)⊤)​(uy′−uf∗​(x0)).\Sigma_{y,y^{\prime}}=\|e_{x_{0}}\|^{2}(u_{y}-u_{f_{*}(x_{0})})^{\top}(\sum_{x\neq x_{0}}q(x)^{2}u_{f_{*}(x)}u_{f_{*}(x)}^{\top})(u_{y^{\prime}}-u_{f_{*}(x_{0})}).(33)
+

We are left with the computation of the probability that the maximum of the nn correlated, non-centered, exchangeable, Gaussian variables (Zy)(Z_{y}) is bigger than zero.

+
+
+
Generic upper bound.
+ +
+

Since we do not care about the scaling with respect to MM, we proceed with

+ + + + + + + +
maxy∈[M]⁡ℙ⁡(Zy≤0)≤ℙ⁡(max⁡Zy≤0)≤∑y∈[M]ℙ⁡(Zy≤0)≤M​maxy∈[M]⁡ℙ⁡(Zy≤0),\max_{y\in[M]}{\mathbb{P}}(Z_{y}\leq 0)\leq{\mathbb{P}}(\max Z_{y}\leq 0)\leq\sum_{y\in[M]}{\mathbb{P}}(Z_{y}\leq 0)\leq M\max_{y\in[M]}{\mathbb{P}}(Z_{y}\leq 0),(34)
+

which leads to

+ + + + + + + + + + + + + + + + + +
ℙ(ex)x≠x0​(max⁡∑x∈[N]y⁡q⁡(x)​ex⊤​ex0​uf∗​(x)⊤​(uy−uf∗​(x0))>0|e⁡(x0))\displaystyle{\mathbb{P}}_{(e_{x})_{x\neq x_{0}}}(\max_{y}\sum_{x\in[N]}q(x)e_{x}^{\top}e_{x_{0}}u_{f_{*}(x)}^{\top}(u_{y}-u_{f_{*}(x_{0})})>0|e(x_{0}))
≤∑y≠f∗​(x0)exp⁡(−𝟏μy<0​μy22​Σy,y)\displaystyle\leq\sum_{y\neq f_{*}(x_{0})}\exp(-\mathbf{1}_{\mu_{y}<0}\frac{\mu_{y}^{2}}{2\Sigma_{y,y}})
=∑y≠f∗​(x0)exp(−𝟏⟨uf∗​(x0),uy−uf∗​(x0)⟩<0‖ex0‖22⋅q​(x0)2​⟨uf∗​(x0),uy−uf∗​(x0)⟩2∑x≠x0q​(x)2​⟨uf∗​(x),uy−uf∗​(x0)⟩2).\displaystyle=\sum_{y\neq f_{*}(x_{0})}\exp(-\mathbf{1}_{\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle<0}\frac{\|e_{x_{0}}\|^{2}}{2}\cdot\frac{q(x_{0})^{2}\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}{\sum_{x\neq x_{0}}q(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}).
+

Finally, recognizing a χ2\chi^{2}-variable with dd degrees of freedom, for any a>0a>0,

+ + + + + + +
𝔼[exp(−a∥ex0∥2)]=(1+2a)−d/2=exp(−d2log(1+2a)).{\mathbb{E}}[\exp(-a\|e_{x_{0}}\|^{2})]=(1+2a)^{-d/2}=\exp(-\frac{d}{2}\log(1+2a)).
+

This leads to the final bound, with χu,x=miny∈[M]⁡𝟏⟨uf∗​(x),uy−uf∗​(x)⟩≤0\chi_{u,x}=\min_{y\in[M]}\mathbf{1}_{\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x)}\rangle\leq 0}.

+ + + + + + + +
𝔼e[ℰ(fq)]≤∑x∈[N]p(x)min{1,∑y≠f∗​(x)(1+q​(x)2​⟨uf∗​(x),uy−uf∗​(x)⟩2∑x′≠xq​(x′)2​⟨uf∗​(x′),uy−uf∗​(x)⟩2)−d2⋅χu,x}.{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]\leq\sum_{x\in[N]}p(x)\min\{1,\sum_{y\neq f_{*}(x)}\big(1+\frac{q(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x)}\rangle^{2}}{\sum_{x^{\prime}\neq x}q(x^{\prime})^{2}\langle u_{f_{*}(x^{\prime})},u_{y}-u_{f_{*}(x)}\rangle^{2}}\big)^{-\frac{d}{2}\cdot\chi_{u,x}}\}.(35)
+

This holds for any unembedding uu and associative weight scheme qq. +In the following, we will assume that the unembedding uu are such that χu,x=1\chi_{u,x}=1, which is notably the case when the uyu_{y} are normalized (i.e., uy∈𝒮d−1u_{y}\in{\mathcal{S}}^{d-1}).

+
+
+
+
Matching lower bound.
+ +
+

Going back to (34), one can get a matching lower bound.

+ + + + + + + + + + + + + + + + + +
𝔼e​[ℰ​(fq)]\displaystyle{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]≥∑x∈[N]p⁡(x)​𝔼ex​[maxy≠f∗​(x)⁡ℙ⁡(Zy≤0|ex)]\displaystyle\geq\sum_{x\in[N]}p(x){\mathbb{E}}_{e_{x}}[\max_{y\neq f_{*}(x)}{\mathbb{P}}(Z_{y}\leq 0|e_{x})]
≥∑x∈[N]p⁡(x)​maxy≠f∗​(x)​𝔼ex​[ℙ⁡(Zy≤0|ex)]\displaystyle\geq\sum_{x\in[N]}p(x)\max_{y\neq f_{*}(x)}{\mathbb{E}}_{e_{x}}[{\mathbb{P}}(Z_{y}\leq 0|e_{x})]
=12​∑x∈[N]p⁡(x)​(1−maxy≠f∗​(x)⁡𝔼ex​[erf⁡(μy2​Σy,y)]).\displaystyle=\frac{1}{2}\sum_{x\in[N]}p(x)(1-\max_{y\neq f_{*}(x)}{\mathbb{E}}_{e_{x}}[{\rm erf}(\frac{\mu_{y}}{\sqrt{2\Sigma_{y,y}}})]).
+

To conclude, we need an inequality of anti-concentration for Gaussian variables. +In essence, we should distinguish two type of inputs x∈[N]x\in[N]:

+
    +
  • • +
    +

    the ones where μy/Σy,y\mu_{y}/\Sigma_{y,y} will be large enough to store the association uf∗​(x)​ex⊤u_{f_{*}(x)}e_{x}^{\top}, which will lead to an error decreasing exponentially fast;

    +
  • +
  • • +
    +

    the ones where the same ratio is too small and that we should count in the lower bound.

    +
  • +
+

Following this split, one can go for the simple “survival” lower bound

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
𝔼e​[ℰ⁡(fq)]≥supt>01−erf⁡(t)2​∑x0∈[N]p⁡(x0)​maxy≠f∗​(x0)​𝔼ex0​[𝟏μy2≤2​Σy,y​t2]\displaystyle{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]\geq\sup_{t>0}\frac{1-\rm{erf}(t)}{2}\sum_{x_{0}\in[N]}p(x_{0})\max_{y\neq f_{*}(x_{0})}{\mathbb{E}}_{e_{x_{0}}}[\mathbf{1}_{\mu_{y}^{2}\leq 2\Sigma_{y,y}t^{2}}]
=supt>01−erf⁡(t)2∑x0∈[N]p(x0)maxy≠f∗​(x0)⋯\displaystyle=\sup_{t>0}\frac{1-\rm{erf}(t)}{2}\sum_{x_{0}\in[N]}p(x_{0})\max_{y\neq f_{*}(x_{0})}\cdots
ℙex0​(‖ex0‖2​q​(x0)2​⟨uf∗​(x0),uy−uf∗​(x0)⟩2≤2​t2​∑x≠x0q​(x)2​⟨uf∗​(x),uy−uf∗​(x0)⟩2).\displaystyle\qquad{\mathbb{P}}_{e_{x_{0}}}(\|e_{x_{0}}\|^{2}q(x_{0})^{2}\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}\leq 2t^{2}\sum_{x\neq x_{0}}q(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}).
≥supt,s>01−erf⁡(t)2∑x0∈[N]p(x0)ℙex0(∥ex0∥2≤s)maxy≠f∗​(x0)⋯\displaystyle\geq\sup_{t,s>0}\frac{1-\rm{erf}(t)}{2}\sum_{x_{0}\in[N]}p(x_{0}){\mathbb{P}}_{e_{x_{0}}}(\|e_{x_{0}}\|^{2}\leq s)\max_{y\neq f_{*}(x_{0})}\cdots
𝟏s​q​(x0)2​⟨uf∗​(x0),uy−uf∗​(x0)⟩2≤2​t2​∑x≠x0q​(x)2​⟨uf∗​(x),uy−uf∗​(x0)⟩2.\displaystyle\qquad\mathbf{1}_{sq(x_{0})^{2}\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}\leq 2t^{2}\sum_{x\neq x_{0}}q(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}.
+

Without optimizing for constants, taking t=1/2t=1/\sqrt{2} and s=ds=d, we get the simple “survival bound” that there exists a constant cc such that

+ + + + + + + +
𝔼e​[ℰ⁡(fq)]≥c​∑x∈[N]p⁡(x)​𝟏d​q​(x)2​⟨uf∗​(x),uy−uf∗​(x)⟩2≤∑x′≠xq​(x′)2​⟨uf∗​(x′),uy−uf∗​(x)⟩2.{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]\geq c\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x)}\rangle^{2}\leq\sum_{x^{\prime}\neq x}q(x^{\prime})^{2}\langle u_{f_{*}(x^{\prime})},u_{y}-u_{f_{*}(x)}\rangle^{2}}.(36)
+

The constant can be computed explicitly as

+ + + + + + +
c=1−erf⁡(1/2)2⋅ℙ⁡(‖ex0‖2≤d)>0.158⋅1/2=0.079,c=\frac{1-\rm{erf}(1/\sqrt{2})}{2}\cdot{\mathbb{P}}(\|e_{x_{0}}\|^{2}\leq d)>0.158\cdot 1/2=0.079,
+

where we have used that ‖ex0‖2\|e_{x_{0}}\|^{2} is a χ2\chi^{2}-variable with mean dd hence smaller median, which implies that ℙ⁡(‖ex0‖2<d)>1/2{\mathbb{P}}(\|e_{x_{0}}\|^{2}<d)>1/2.

+
+
+
+
Quasi-orthogonal output embeddings.
+ +
+

Let us consider u:[M]→ℝdu:[M]\to{\mathbb{R}}^{d} such that (uy)y∈[M](u_{y})_{y\in[M]} is η\eta-quasi orthogonal.

+
+
+

Upper bound. +Going back to (35), we can work out a lower bound with

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
q​(x0)2​⟨uf∗​(x0),uy−uf∗​(x0)⟩2∑x≠x0q​(x)2​⟨uf∗​(x),uy−uf∗​(x0)⟩2\displaystyle\frac{q(x_{0})^{2}\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}{\sum_{x\neq x_{0}}q(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}
≥q​(x0)2​(1−η)2∑x≠x0q​(x)2​(𝟏f∗​(x)=y​(1+η)2+𝟏f∗​(x)=f∗​(x0)​(1−η)2+𝟏f∗​(x)∉{y,f∗​(x0)}​4​η2)\displaystyle\geq\frac{q(x_{0})^{2}(1-\eta)^{2}}{\sum_{x\neq x_{0}}q(x)^{2}(\mathbf{1}_{f_{*}(x)=y}(1+\eta)^{2}+\mathbf{1}_{f_{*}(x)=f_{*}(x_{0})}(1-\eta)^{2}+\mathbf{1}_{f_{*}(x)\notin\{y,f_{*}(x_{0})\}}4\eta^{2})}
≥q​(x0)2​(1−η)24​∑x≠x0q​(x)2​(𝟏f∗​(x)=y+𝟏f∗​(x)=f∗​(x0)+𝟏f∗​(x)∉{y,f∗​(x0)}​η2)\displaystyle\geq\frac{q(x_{0})^{2}(1-\eta)^{2}}{4\sum_{x\neq x_{0}}q(x)^{2}(\mathbf{1}_{f_{*}(x)=y}+\mathbf{1}_{f_{*}(x)=f_{*}(x_{0})}+\mathbf{1}_{f_{*}(x)\notin\{y,f_{*}(x_{0})\}}\eta^{2})}
=14​q​(x0)2​(1−η)2∑xq​(x)2​((1−η2)​𝟏f∗​(x)∈{y,f∗​(x0)}+η2)−q​(x0)2\displaystyle=\frac{1}{4}\frac{q(x_{0})^{2}(1-\eta)^{2}}{\sum_{x}q(x)^{2}((1-\eta^{2})\mathbf{1}_{f_{*}(x)\in\{y,f_{*}(x_{0})\}}+\eta^{2})-q(x_{0})^{2}}
=14​q​(x0)2​(1−η)2η2​‖q‖2+(1−η2)​∑x;f∗​(x)∈{y,f∗​(x0)}q​(x)2−q​(x0)2\displaystyle=\frac{1}{4}\frac{q(x_{0})^{2}(1-\eta)^{2}}{\eta^{2}\|q\|^{2}+(1-\eta^{2})\sum_{x;f_{*}(x)\in\{y,f_{*}(x_{0})\}}q(x)^{2}-q(x_{0})^{2}}
=14​q​(x0)2​(1−η)2η2​‖q‖2+(1−η2)​(Qy+Qf∗​(x))−q​(x0)2.\displaystyle=\frac{1}{4}\frac{q(x_{0})^{2}(1-\eta)^{2}}{\eta^{2}\|q\|^{2}+(1-\eta^{2})(Q_{y}+Q_{f_{*}(x)})-q(x_{0})^{2}}.
+

Here, we have used that for the numerator

+ + + + + + +
⟨uf∗​(x0),uy−uf∗​(x0)⟩2=(⟨uf∗​(x0),uy⟩−1)2≥(1−η)2,\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}=(\langle u_{f_{*}(x_{0})},u_{y}\rangle-1)^{2}\geq(1-\eta)^{2},
+

and the same for the term in the denominator (since their ratio cancels out), as well as

+ + + + + + +
⟨uy,uy−uf∗​(x0)⟩2≤(1+η)2,⟨uf∗​(x),uy−uf∗​(x0)⟩2≤(2​η)2.\langle u_{y},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}\leq(1+\eta)^{2},\qquad\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}\leq(2\eta)^{2}.
+

Moreover, we have introduced

+ + + + + + + +
Qy=∑x′;f⁡(x′)=yq​(x′)2.Q_{y}=\sum_{x^{\prime};f(x^{\prime})=y}q(x^{\prime})^{2}.(37)
+

Using the fact that (1+x)d=exp⁡(d​log⁡(1+x))≤exp⁡(d​x)(1+x)^{d}=\exp(d\log(1+x))\leq\exp(dx), an upper bound directly follows from those derivations,

+ + + + + + + +
𝔼e​[ℰ⁡(fq)]≤∑x0∈[N]p⁡(x0)​min​{1,M​exp⁡(−d​(1−η)22​q​(x0)24​η2​‖q‖22+2​Q∞)},{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]\leq\sum_{x_{0}\in[N]}p(x_{0})\min\{1,M\exp\big(-\frac{d(1-\eta)^{2}}{2}\frac{q(x_{0})^{2}}{4\eta^{2}\|q\|_{2}^{2}+2Q_{\infty}}\big)\},(38)
+

where

+ + + + + + + +
Q∞=maxy∈[M]⁡Qy=max⁡∑x;f∗​(x)=yy∈[M]⁡q​(x)2.Q_{\infty}=\max_{y\in[M]}Q_{y}=\max_{y\in[M]}\sum_{x;f_{*}(x)=y}q(x)^{2}.(39)
+
+
+

Matching lower bound. +Similarly, one can work out a lower bound with

+ + + + + + + + + + + + +
q​(x0)2​⟨uf∗​(x0),uy−uf∗​(x0)⟩2∑x≠x0q​(x)2​⟨uf∗​(x),uy−uf∗​(x0)⟩2\displaystyle\frac{q(x_{0})^{2}\langle u_{f_{*}(x_{0})},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}{\sum_{x\neq x_{0}}q(x)^{2}\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2}}≤q​(x0)2​(1+η)2∑x≠x0q​(x)2​(𝟏f∗​(x)=y​(1−η)2+𝟏f∗​(x)=f∗​(x0)​(1+η)2CLOSE\displaystyle\leq\frac{q(x_{0})^{2}(1+\eta)^{2}}{\sum_{x\neq x_{0}}q(x)^{2}(\mathbf{1}_{f_{*}(x)=y}(1-\eta)^{2}+\mathbf{1}_{f_{*}(x)=f_{*}(x_{0})}(1+\eta)^{2}}
≤q​(x0)21−η1+η​Qy+Qf∗​(x)−q​(x0)2.\displaystyle\leq\frac{q(x_{0})^{2}}{\frac{1-\eta}{1+\eta}Q_{y}+Q_{f_{*}(x)}-q(x_{0})^{2}}.
+

Combining this with (36), we get the lower bound, with c=.079c=.079,

+ + + + + + + +
𝔼e​[ℰ⁡(fq)]≥c​∑x∈[N]p⁡(x)​𝟏(d+1)​q​(x)2≤1−η1+η​Q∞.{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]\geq c\sum_{x\in[N]}p(x)\mathbf{1}_{(d+1)q(x)^{2}\leq\frac{1-\eta}{1+\eta}Q_{\infty}}.(40)
+

Remark that in the previous lower bound, we have dropped the previous factor η2​‖q‖2\eta^{2}\|q\|^{2} that appears in the upper bound. +We expect this term to actually be present in a tighter error characterization. +In essence, we expect the embeddings to fill the full space 𝒮d−1{\mathcal{S}}^{d-1} so that most of the difference ⟨uf∗​(x),uy−uf∗​(x0)⟩2\langle u_{f_{*}(x)},u_{y}-u_{f_{*}(x_{0})}\rangle^{2} typically behave as η2\eta^{2}. +However, quantifying this precisely is beyond the scope of this paper.

+
+
+
+
Random output embeddings.
+ +
+

In the case where the output embeddings are random, we can distinguish two cases. The cases where the embeddings are η\eta-quasi orthogonal, where one can retake the previous derivations, and the case where they are not, which will have a small probability if η\eta is large enough.

+
+
+

Consider uu to be random embeddings taking uniformly on the unit sphere. +Let us introduce the event

+ + + + + + +
Eη={u is η-quasi orthogonal}.E_{\eta}=\{\text{$u$ is $\eta$-quasi orthogonal}\}.
+

We have seen in the proof of Lemma 1 that

+ + + + + + + +
1−ℙ⁡(Eη)≤M22​π​2η2​d​exp⁡(−η2​d2).1-{\mathbb{P}}(E_{\eta})\leq\frac{M^{2}}{2\sqrt{\pi}}\sqrt{\frac{2}{\eta^{2}d}}\exp(-\frac{\eta^{2}d}{2}).(41)
+

For any random variable ZZ that is bounded by one, we have the bounds

+ + + + + + + +
ℙ⁡(E)​𝔼​[Z|E]≤𝔼⁡[Z]=(1−ℙ⁡(E))​𝔼​[Z|¬E]+ℙ⁡(E)​𝔼​[Z|E]≤(1−ℙ⁡(E))+𝔼⁡[Z|E].{\mathbb{P}}(E){\mathbb{E}}[Z|E]\leq{\mathbb{E}}[Z]=(1-{\mathbb{P}}(E)){\mathbb{E}}[Z|\neg E]+{\mathbb{P}}(E){\mathbb{E}}[Z|E]\leq(1-{\mathbb{P}}(E))+{\mathbb{E}}[Z|E].(42)
+

The upper bound of Theorem 1 directly follows from plugging (38) and (41) into this last equation

+ + + + + + + +
𝔼e,u​[ℰ⁡(fq)]≤M22​π​2η2​d​exp⁡(−η2​d2)+∑x∈[N]p⁡(x0)​∑y≠f∗​(x0)(1+(1−η)24​q​(x0)2‖q‖22)−d2.{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]\leq\frac{M^{2}}{2\sqrt{\pi}}\sqrt{\frac{2}{\eta^{2}d}}\exp(-\frac{\eta^{2}d}{2})+\sum_{x\in[N]}p(x_{0})\sum_{y\neq f_{*}(x_{0})}\big(1+\frac{(1-\eta)^{2}}{4}\frac{q(x_{0})^{2}}{\|q\|_{2}^{2}}\big)^{-\frac{d}{2}}.(43)
+

Since this is true for any η\eta, one can consider the infimum in the upper bound.

+
+
+

In term of lower bound, retaking (40),

+ + + + + + + +
𝔼e,u​[ℰ⁡(fq)]≥supη≥0c⁡(1−M22​π​2η2​d​exp⁡(−η2​d2))​∑x∈[N]p⁡(x)​𝟏(d+1)​q​(x)2≤2​1−η1+η​Q∞.{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]\geq\sup_{\eta\geq 0}c(1-\frac{M^{2}}{2\sqrt{\pi}}\sqrt{\frac{2}{\eta^{2}d}}\exp(-\frac{\eta^{2}d}{2}))\sum_{x\in[N]}p(x)\mathbf{1}_{(d+1)q(x)^{2}\leq 2\frac{1-\eta}{1+\eta}Q_{\infty}}.(44)
+

In particular, when d>8​log⁡(M)d>8\log(M) one can consider η<1/2\eta<1/2 such that η2​d>4​log⁡(M)\eta^{2}d>4\log(M), which leads to (η−1)/(η+1)>1/3(\eta-1)/(\eta+1)>1/3, and, if M≥4M\geq 4

+ + + + + + +
1−M22​π​2η2​d​exp⁡(−η2​d2)≥1−12​π​12​log⁡(M)>2/3.1-\frac{M^{2}}{2\sqrt{\pi}}\sqrt{\frac{2}{\eta^{2}d}}\exp(-\frac{\eta^{2}d}{2})\geq 1-\frac{1}{2\sqrt{\pi}}\frac{1}{\sqrt{2\log(M)}}>2/3.
+

All together we have proven that, as long as M≥4M\geq 4 and d≥8​log⁡(M)d\geq 8\log(M) with c1>.079⋅2/3>.052c_{1}>.079\cdot 2/3>.052 and c2>1/3c_{2}>1/3,

+ + + + + + + +
𝔼e,u​[ℰ⁡(fq)]≥c1​∑x∈[N]p⁡(x)​𝟏(d+1)​q​(x)2≤c2​Q∞.{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]\geq c_{1}\sum_{x\in[N]}p(x)\mathbf{1}_{(d+1)q(x)^{2}\leq c_{2}Q_{\infty}}.(45)
+
+
+
+
Writing upper bounds as survival bounds.
+ +
+

Until now, we have written the upper bounds as the sum of exponential (38) and the lower bounds as a sum of missed associations (45), which we called “survival” bound. +In order to best read how tight our characterization is, one can rewrite the upper bounds as survival bounds. +In particular, as we did in the lower bound, we will dissociate xx corresponding to a small exponential and the other ones. +Using the fact that the p⁡(x)p(x) sum to one, we get, when the output embeddings are η\eta-quasi orthogonal,

+ + + + + + + + + + + + + + + + + +
𝔼e​[ℰ​(fq)]\displaystyle{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]≤∑x0∈[N]p⁡(x0)​min⁡{1,M​exp⁡(−d​(1−η)22​q​(x0)24​η2​‖q‖22+2​Q∞)}\displaystyle\leq\sum_{x_{0}\in[N]}p(x_{0})\min\{1,M\exp\big(-\frac{d(1-\eta)^{2}}{2}\frac{q(x_{0})^{2}}{4\eta^{2}\|q\|_{2}^{2}+2Q_{\infty}}\big)\}
≤∑x0∈[N]p⁡(x0)​inft>0M​exp⁡(−t​(1−η)24)+𝟏d​q​(x0)2≤t⁡(2​η2​‖q‖22+Q∞)\displaystyle\leq\sum_{x_{0}\in[N]}p(x_{0})\inf_{t>0}M\exp\big(-\frac{t(1-\eta)^{2}}{4}\big)+\mathbf{1}_{dq(x_{0})^{2}\leq t(2\eta^{2}\|q\|_{2}^{2}+Q_{\infty})}
≤inft>0exp⁡(−t​(1−η)24+log⁡(M))+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤t⁡(2​η2​‖q‖22+Q∞).\displaystyle\leq\inf_{t>0}\exp\big(-\frac{t(1-\eta)^{2}}{4}+\log(M)\big)+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq t(2\eta^{2}\|q\|_{2}^{2}+Q_{\infty})}.
+

To simplify the bound, consider the constraints

+ + + + + + + +
η2≤Q∞/‖q‖22,andη<1/2,\eta^{2}\leq Q_{\infty}/\|q\|_{2}^{2},\qquad\text{and}\qquad\eta<1/2,(46)
+

we get, using t=16​(log⁡(M)+γ​log⁡(d))t=16(\log(M)+\gamma\log(d)) for γ>0\gamma>0, we get

+ + + + + + + + + + + + + + + + + +
𝔼e​[ℰ​(fq)]\displaystyle{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]≤inft>0exp⁡(−t​(1−η)24+log⁡(M))+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤t⁡(2​η2​‖q‖22+Q∞)\displaystyle\leq\inf_{t>0}\exp\big(-\frac{t(1-\eta)^{2}}{4}+\log(M)\big)+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq t(2\eta^{2}\|q\|_{2}^{2}+Q_{\infty})}
≤inft>0exp⁡(−t+16​log⁡(M)16)+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤3​t​Q∞\displaystyle\leq\inf_{t>0}\exp\big(\frac{-t+16\log(M)}{16}\big)+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq 3tQ_{\infty}}
≤exp⁡(−γ​log⁡(d))+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤48​(log⁡(M)+γ​log⁡(d))​Q∞.\displaystyle\leq\exp(-\gamma\log(d))+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq 48(\log(M)+\gamma\log(d))Q_{\infty}}.
+

Finally, when the output embedding are η\eta-quasi orthogonal with η\eta satisfying (46), we get

+ + + + + + + +
𝔼e​[ℰ⁡(fq)]≤infγ>0d−γ+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤48​(log⁡(M)+γ​log⁡(d))​Q∞.{\mathbb{E}}_{e}[{\mathcal{E}}(f_{q})]\leq\inf_{\gamma>0}d^{-\gamma}+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq 48(\log(M)+\gamma\log(d))Q_{\infty}}.(47)
+
+
+

When the unembeddings are chosen at random, when d>8​log⁡(M)d>8\log(M), one can choose η<1/2\eta<1/2, and (43) is cast as, chosen d​η2=4​log⁡(M)+2​γ​log⁡(d)d\eta^{2}=4\log(M)+2\gamma\log(d),

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
𝔼e,u​[ℰ⁡(fq)]\displaystyle{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]≤infη,γM22​π​2η2​d​exp⁡(−η2​d2)\displaystyle\leq\inf_{\eta,\gamma}\frac{M^{2}}{2\sqrt{\pi}}\sqrt{\frac{2}{\eta^{2}d}}\exp(-\frac{\eta^{2}d}{2})
+d−γ+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤16​(log⁡(M)+γ​log⁡(d))​(2​η2​‖q‖22+Q∞)\displaystyle\qquad+d^{-\gamma}+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq 16(\log(M)+\gamma\log(d))(2\eta^{2}\|q\|^{2}_{2}+Q_{\infty})}
≤infγd−γ2​π​2​log⁡(M)+γ​log⁡(d)\displaystyle\leq\inf_{\gamma}\frac{d^{-\gamma}}{2\sqrt{\pi}\sqrt{2\log(M)+\gamma\log(d)}}
+d−γ+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤16​(log⁡(M)+γ​log⁡(d))​(8​log⁡(M)+4​γ​log⁡(d)d​‖q‖22+Q∞)\displaystyle\qquad+d^{-\gamma}+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq 16(\log(M)+\gamma\log(d))(\frac{8\log(M)+4\gamma\log(d)}{d}\|q\|^{2}_{2}+Q_{\infty})}
≤infγ2​d−γ+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≤16​(log⁡(M)+γ​log⁡(d))​(8​log⁡(M)+4​γ​log⁡(d)d​‖q‖22+Q∞).\displaystyle\leq\inf_{\gamma}2d^{-\gamma}+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\leq 16(\log(M)+\gamma\log(d))(\frac{8\log(M)+4\gamma\log(d)}{d}\|q\|^{2}_{2}+Q_{\infty})}.
+

Finally, we have shown that when the embeddings are taken at random

+ + + + + + + +
𝔼e,u​[ℰ⁡(fq)]≤infγ2​d−γ+∑x∈[N]p⁡(x)​𝟏d​q​(x)2≥16​(log⁡(M)+γ​log⁡(d))​(8​log⁡(M)+4​γ​log⁡(d)d​‖q‖22+Q∞).{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{q})]\leq\inf_{\gamma}2d^{-\gamma}+\sum_{x\in[N]}p(x)\mathbf{1}_{dq(x)^{2}\geq 16(\log(M)+\gamma\log(d))(\frac{8\log(M)+4\gamma\log(d)}{d}\|q\|^{2}_{2}+Q_{\infty})}.(48)
+
+
+
+
+

A.5 Proof of Proposition 2

+ +
+

When p⁡(x)≃x−αp(x)\simeq x^{-\alpha}, q⁡(x)=p​(x)ρ≃x−ρ​αq(x)=p(x)^{\rho}\simeq x^{-\rho\alpha}, hence,

+ + + + + + +
p({x∈[N]|dq(x)2≤p∗∥q∥2})≃p({x∈[N]|x≤(d∥q∥−2)1/2​ρ​α})≃(d∥q∥−2)−(α−1)/2ρα).p(\{x\in[N]\,|\,dq(x)^{2}\leq p_{*}\|q\|^{2}\})\simeq p(\{x\in[N]\,|\,x\leq(d\|q\|^{-2})^{1/2\rho\alpha}\})\simeq(d\|q\|^{-2})^{-(\alpha-1)/2\rho\alpha}).
+

We are left with the computation of φ⁡(N):=‖q‖2≃∫1Nq​(x)2​⁡𝑑x≃∫1Nx−2​ρ​α​⁡𝑑x\varphi(N):=\|q\|^{2}\simeq\int_{1}^{N}q(x)^{2}\mathop{}\!\mathrm{d}x\simeq\int_{1}^{N}x^{-2\rho\alpha}\mathop{}\!\mathrm{d}x. +When 2​ρ​α>12\rho\alpha>1, this integral reads 1−N−2​α​ρ+11-N^{-2\alpha\rho+1} which is bounded by one.

+
+
+
+

A.6 Proof of Proposition 3

+ +
+

When p⁡(x)≃x−αp(x)\simeq x^{-\alpha}, q⁡(x)=𝟏x∈[P]​p​(x)ρ≃𝟏x∈[P]​x−ρ​αq(x)=\mathbf{1}_{x\in[P]}p(x)^{\rho}\simeq\mathbf{1}_{x\in[P]}x^{-\rho\alpha}, we get

+ + + + + + + + + + + + +
p⁡({x∈[N]|d​q​(x)2≤p∗​‖q‖2})\displaystyle p(\{x\in[N]\,|\,dq(x)^{2}\leq p_{*}\|q\|^{2}\})=p({x∈[P]|dq(x)2≤p∗∥q∥2})+p({x>P})\displaystyle=p(\{x\in[P]\,|\,dq(x)^{2}\leq p_{*}\|q\|^{2}\})+p(\{x>P\})
≃(dφ⁡(P))−(α−1)/2ρα+P−α+1.\displaystyle\simeq\big(\frac{d}{\varphi(P)}\big)^{-(\alpha-1)/2\rho\alpha}+P^{-\alpha+1}.
+

The optimal threshold PP is set by equalizing the two terms, which we compute as

+ + + + + + + + + + + + + + + + + + + + + + +
(dφ⁡(P))−(α−1)/2ρα=P−α+1\displaystyle\big(\frac{d}{\varphi(P)}\big)^{-(\alpha-1)/2\rho\alpha}=P^{-\alpha+1}
⇔−α+12​ρ​αlog(d)−−α+12​ρ​αlog(P)=(−α+1)log(P)\displaystyle\qquad\Leftrightarrow\qquad\frac{-\alpha+1}{2\rho\alpha}\log(d)-\frac{-\alpha+1}{2\rho\alpha}\log(P)=(-\alpha+1)\log(P)
⇔log(d)−log(P)=2ραlog(P)\displaystyle\qquad\Leftrightarrow\qquad\log(d)-\log(P)=2\rho\alpha\log(P)
⇔P=d1/(2​ρ​α+1).\displaystyle\qquad\Leftrightarrow\qquad P=d^{1/(2\rho\alpha+1)}.
+

This choice of PP leads to a scaling in, with fρ,[P]=fqρ,[P]f_{\rho,[P]}=f_{q_{\rho,[P]}},

+ + + + + + +
𝔼e,u[ℰ(fρ,[P])≍(log)p({x∈[N]|dq(x)2≤p∗∥q∥2})≃P−(α−1)=d−(α−1)/(2ρα+1).{\mathbb{E}}_{e,u}[{\mathcal{E}}(f_{\rho,[P]})\overset{(\log)}{\asymp}p(\{x\in[N]\,|\,dq(x)^{2}\leq p_{*}\|q\|^{2}\})\simeq P^{-(\alpha-1)}=d^{-(\alpha-1)/(2\rho\alpha+1)}.
+
+
+
+

A.7 Proof of Theorem 2

+ +
+

The lower bound directly follows from (8) together with Q∞=p∗​‖q‖2Q_{\infty}=p_{*}\|q\|^{2} and the fact that qq is invariant to rescaling, so the best we can do is fit as much memories PP as we can until reaching 3​(d+1)=p∗​P3(d+1)=p_{*}P leading to a scaling in ∫P∞p⁡(x)​⁡𝑑x=Cα​P−α+1/(α+1)\int_{P}^{\infty}p(x)\mathop{}\!\mathrm{d}x=C_{\alpha}P^{-\alpha+1}/(\alpha+1).

+
+
+
+

A.8 Proof of Proposition 4

+ +
+

In order to get scaling with both finite data and finite memory simultaneously, we used a simple strategy:

+
    +
  • • +
    +

    With high probability 1−c​T−1+1/α1-cT^{-1+1/\alpha} for some constant cc, q^\hat{q} is similar to qq.

    +
  • +
  • • +
    +

    When q^\hat{q} is similar to qq, the scaling with dd derived from Theorem 1 is left unchanged by substituting qq by q^\hat{q}.

    +
  • +
+

Rather than using a uniform concentration inequality on the full q^\hat{q}, we will proceed individually on each q^​(x)\hat{q}(x). +Denoting by 𝒟T{\mathcal{D}}_{T} the random dataset of TT data, for any sequence of set (Ex)x∈[N](E_{x})_{x\in[N]} –typically we will choose Ex={q^(x)>q(x)/2}E_{x}=\{\hat{q}(x)>q(x)/2\},

+ + + + + + + + + + + + +
𝔼u,e,𝒟T​[ℰ⁡(fq^)]\displaystyle{\mathbb{E}}_{u,e,{\mathcal{D}}_{T}}[{\mathcal{E}}(f_{\hat{q}})]=∑p⁡(x)​ℙu,e,𝒟T​(f⁡(x)≠f∗​(x))\displaystyle=\sum p(x){\mathbb{P}}_{u,e,{\mathcal{D}}_{T}}(f(x)\neq f_{*}(x))
≤∑p⁡(x)​ℙu,e,T​(q^∉Ex)+∑p⁡(x)​ℙu,e,T​(f⁡(x)≠f∗​(x)|q^∈Ex).\displaystyle\leq\sum p(x){\mathbb{P}}_{u,e,T}(\hat{q}\notin E_{x})+\sum p(x){\mathbb{P}}_{u,e,T}(f(x)\neq f_{*}(x)\,|\,\hat{q}\in E_{x}).
+

The second term has been worked out before, using that Q∞≤‖q‖22Q_{\infty}\leq\|q\|_{2}^{2}

+ + + + + + + + + + + + +
ℙu,e,T​(f⁡(x)≠f∗​(x)|q^∈Ex)\displaystyle{\mathbb{P}}_{u,e,T}(f(x)\neq f_{*}(x)\,|\,\hat{q}\in E_{x})≤infγ2​d−γ+ℙT​(d​q^​(x)2≤16​cγ​(Q^∞+8​cγ​‖q^‖22d)|q^∈Ex).\displaystyle\leq\inf_{\gamma}2d^{-\gamma}+{\mathbb{P}}_{T}(d\hat{q}(x)^{2}\leq 16c_{\gamma}(\hat{Q}_{\infty}+\frac{8c_{\gamma}\|\hat{q}\|^{2}_{2}}{d})\,|\,\hat{q}\in E_{x}).
≤infγ2​d−γ+ℙT​(d​q^​(x)2≤cγ′​‖q^‖22|q^∈Ex),\displaystyle\leq\inf_{\gamma}2d^{-\gamma}+{\mathbb{P}}_{T}(d\hat{q}(x)^{2}\leq c^{\prime}_{\gamma}\|\hat{q}\|_{2}^{2}\,|\,\hat{q}\in E_{x}),
+

where cγ′=16​cγ​(1+8​cγd)c^{\prime}_{\gamma}=16c_{\gamma}(1+\frac{8c_{\gamma}}{d}).

+
+
+
Without thresholding.
+ +
+

Let us first start with the scheme (11), with ρ>0\rho>0

+ + + + + + +
q^​(x)=(1T​∑t∈[T]𝟏x=Xt)ρ,q⁡(x)=p​(x)ρ.\hat{q}(x)=(\frac{1}{T}\sum_{t\in[T]}\mathbf{1}_{x=X_{t}})^{\rho},\qquad q(x)=p(x)^{\rho}.
+

Using a simplification of Chernoff bound for Bernoulli variables (see e.g., ?), we get the probability bound (the randomness being due to the data),

+ + + + + + + +
ℙT​(q^​(x)<q⁡(x)21/ρ)\displaystyle{\mathbb{P}}_{T}(\hat{q}(x)<\frac{q(x)}{2^{1/\rho}})=ℙT(p^(x)<p⁡(x)2)≤exp(−Tp(x)/8).\displaystyle={\mathbb{P}}_{T}(\hat{p}(x)<\frac{p(x)}{2})\leq\exp(-Tp(x)/8).
+

As a consequence, reusing the proof of Proposition 1, when pp follows a Zipf law (1),

+ + + + + + + + + + + + + + + + + +
𝔼⁡[ℰ⁡(fq^)]\displaystyle{\mathbb{E}}[{\mathcal{E}}(f_{\hat{q}})]=∑p⁡(x)​ℙ​(f⁡(x)≠f∗​(x))\displaystyle=\sum p(x){\mathbb{P}}(f(x)\neq f_{*}(x))
≤∑p(x)exp(−Tp(x)/8)+∑p(x)ℙ(f(x)≠f∗(x)|q^(x)>q(x)/21/ρ)\displaystyle\leq\sum p(x)\exp(-Tp(x)/8)+\sum p(x){\mathbb{P}}(f(x)\neq f_{*}(x)\,|\,\hat{q}(x)>q(x)/2^{1/\rho})
≲T−1+1/α+∑p⁡(x)​ℙ​(f⁡(x)≠f∗​(x)|q^​(x)>q⁡(x)/21/ρ).\displaystyle\lesssim T^{-1+1/\alpha}+\sum p(x){\mathbb{P}}(f(x)\neq f_{*}(x)\,|\,\hat{q}(x)>q(x)/2^{1/\rho}).
+

We are left with the computation of the second term, denote cρ=2−1/ρc_{\rho}=2^{-1/\rho}, we have

+ + + + + + +
𝔼u,e​ℙT​(f⁡(x)≠f∗​(x)|q^​(x)>cρ​q​(x))≤infγ2​d−γ+ℙT​(d​q^​(x)2≤cγ′​‖q^‖22|q^≥q⁡(x)/2).{\mathbb{E}}_{u,e}{\mathbb{P}}_{T}(f(x)\neq f_{*}(x)\,|\,\hat{q}(x)>c_{\rho}q(x))\leq\inf_{\gamma}2d^{-\gamma}+{\mathbb{P}}_{T}(d\hat{q}(x)^{2}\leq c^{\prime}_{\gamma}\|\hat{q}\|_{2}^{2}\,|\,\hat{q}\geq q(x)/2).
+

By definition of q^\hat{q}, together with Jensen’s inequality when ρ≤1/2\rho\leq 1/2

+ + + + + + +
1N=1N​∑x∈[N](q​(x)2)1/2​ρ≥(1N​‖q‖22)1/2​ρ,\frac{1}{N}=\frac{1}{N}\sum_{x\in[N]}(q(x)^{2})^{1/2\rho}\geq(\frac{1}{N}\|q\|_{2}^{2})^{1/2\rho},
+

hence ‖q‖2≤N1−2​ρ\|q\|^{2}\leq N^{1-2\rho}. +When ρ>1/2\rho>1/2, the worst value of ‖q‖\|q\| is when all the mass is concentrated on one q⁡(x′)q(x^{\prime}), in which case ‖q‖2≤1\|q\|^{2}\leq 1. +With the corresponding ψ⁡(N)\psi(N), we get

+ + + + + + +
𝔼u,e​ℙT​(f⁡(x)≠f∗​(x)|q^​(x)>cρ​q​(x))≤infγ2​d−γ+𝟏d​cρ2​q​(x)2≤cγ′​φ​(N).{\mathbb{E}}_{u,e}{\mathbb{P}}_{T}(f(x)\neq f_{*}(x)\,|\,\hat{q}(x)>c_{\rho}q(x))\leq\inf_{\gamma}2d^{-\gamma}+\mathbf{1}_{dc_{\rho}^{2}q(x)^{2}\leq c^{\prime}_{\gamma}\varphi(N)}.
+

Finally, reusing the proof of Proposition 2, and hiding logarithmic factors,

+ + + + + + + + + + + + + + + + + +
𝔼⁡[ℰ⁡(fq^)]\displaystyle{\mathbb{E}}[{\mathcal{E}}(f_{\hat{q}})]=∑p⁡(x)​ℙ​(f⁡(x)≠f∗​(x))\displaystyle=\sum p(x){\mathbb{P}}(f(x)\neq f_{*}(x))
≲T−1+1/α+infγ2d−γ+p({x|dcρ2q(x)2≤cγ′ψ(N)}).\displaystyle\lesssim T^{-1+1/\alpha}+\inf_{\gamma}2d^{-\gamma}+p(\{x\,|\,\mathopen{}dc_{\rho}^{2}q(x)^{2}\leq c^{\prime}_{\gamma}\psi(N)\}).
≲T−1+1/α+(dψ⁡(N))−(α−1)/2ρα.\displaystyle\lesssim T^{-1+1/\alpha}+(\frac{d}{\psi(N)})^{-(\alpha-1)/2\rho\alpha}.
+

The case ρ=0\rho=0, can be easily treated by considering an error if and only if the number of seen elements |{xt|t∈[T]}|\left|\{x_{t}\,|\,t\in[T]\}\right| is smaller than dd.

+
+
+
+
With thresholding.
+ +
+

Let us now consider the thresholding scheme (12), with P∈ℕP\in{\mathbb{N}} and ρ≥0\rho\geq 0

+ + + + + + +
q^​(x)=p^​(x)ρ​𝟏x∈topP⁡((xt)t∈[T]),q⁡(x)=p​(x)ρ​𝟏x∈[P].\hat{q}(x)=\hat{p}(x)^{\rho}\mathbf{1}_{x\in\operatorname{top}_{P}((x_{t})_{t\in[T]})},\qquad q(x)=p(x)^{\rho}\mathbf{1}_{x\in[P]}.
+

We basically proceed with the same technique but with the event ExE_{x} the probability that xx belongs to the top PP of the empirical frequencies. +When dealing with a binomial distribution, one can enumerate all possible outcomes for the empirical frequencies. +For a template a∈Δ[N]a\in\Delta_{[N]}, we said that a sequence (xt)(x_{t}) is of type aa if its empirical frequency is equal to aa,

+ + + + + + +
𝒯(a)={(xt)∈[N]T|∀x∈[N],∑t∈[T]𝟏xt=x=Ta(x)}.{\mathcal{T}}(a)=\{(x_{t})\in[N]^{T}\,|\,\quad\forall\,x\in[N],\sum_{t\in[T]}\mathbf{1}_{x_{t}=x}=Ta(x)\}.
+

Some enumeration arguments that can be found in ?, Chapter 11 leads to

+ + + + + + +
ℙ𝒟T((xt)∈𝒯(a))=|𝒯(a)|exp(−T(H(a)+DKL(a∥p)))≤exp(−T⋅DKL(a∥p))).{\mathbb{P}}_{{\mathcal{D}}_{T}}((x_{t})\in{\mathcal{T}}(a))=\left|{\mathcal{T}}(a)\right|\exp(-T(H(a)+D_{\rm KL}(a\|p)))\leq\exp(-T\cdot D_{\rm KL}(a\|p))).
+

Hence, the probability that xx does not belong to the top PP of the empirical frequencies of (xt)(x_{t}) is bounded by

+ + + + + + +
ℙ𝒟T(x∉topP(xt)∈𝒯(a))≤∑a∈𝒜exp(−T⋅DKL(a∥p))),{\mathbb{P}}_{{\mathcal{D}}_{T}}(x\notin\operatorname{top}_{P}(x_{t})\in{\mathcal{T}}(a))\leq\sum_{a\in{\mathcal{A}}}\exp(-T\cdot D_{\rm KL}(a\|p))),
+

where 𝒜{\mathcal{A}} is the set of all templates aa where xx is not in the top PP of (a⁡(x′))x′∈[N](a(x^{\prime}))_{x^{\prime}\in[N]}. +With TT samples over NN elements there are at most (N+1)T(N+1)^{T} different type templates, hence

+ + + + + + +
∑a∈𝒜exp⁡(ca⋅T)≤(T+1)N​supa∈𝒜exp⁡(ca⋅T)=supa∈𝒜exp⁡(ca⋅T+N​log⁡(T+1)).\sum_{a\in{\mathcal{A}}}\exp(c_{a}\cdot T)\leq(T+1)^{N}\sup_{a\in{\mathcal{A}}}\exp(c_{a}\cdot T)=\sup_{a\in{\mathcal{A}}}\exp(c_{a}\cdot T+N\log(T+1)).
+

As a consequence,

+ + + + + + +
ℙ𝒟T(x∉topP(xt)∈𝒯(a))≤supa∈𝒜exp(−T⋅DKL(a∥p))+Nlog(T+1)){\mathbb{P}}_{{\mathcal{D}}_{T}}(x\notin\operatorname{top}_{P}(x_{t})\in{\mathcal{T}}(a))\leq\sup_{a\in{\mathcal{A}}}\exp(-T\cdot D_{\rm KL}(a\|p))+N\log(T+1))
+

Now, it is actually to possible to remove the N​log⁡(T+1)N\log(T+1) in the exponential and extends this type of result to generic Polish spaces (see, e.g. ?).

+ + + + + + +
ℙ𝒟T(x∉topP(xt)∈𝒯(a))≤supa∈𝒜exp(−T⋅DKL(a∥p))){\mathbb{P}}_{{\mathcal{D}}_{T}}(x\notin\operatorname{top}_{P}(x_{t})\in{\mathcal{T}}(a))\leq\sup_{a\in{\mathcal{A}}}\exp(-T\cdot D_{\rm KL}(a\|p)))
+
+
+

We are left with the computation of the “information projection distance” between pp and the set of distribution where xx does not belong to the top PP. +In order to get xx out of the top PP of pp one should switch p⁡(x)p(x) with p⁡(P)p(P), which leads to (without caring for exact constants)

+ + + + + + +
DKL(p′∥p)≃p(x)log(p(x)/p(P))+p(P)log(p(P)/p(x))=(p(x)−p(P))log(p(x)/p(P))D_{\rm KL}(p^{\prime}\|p)\simeq p(x)\log(p(x)/p(P))+p(P)\log(p(P)/p(x))=(p(x)-p(P))\log(p(x)/p(P))
+

When considering x<P/2x<P/2 and pp following a Zipf law we get

+ + + + + + +
DKL(p′∥p)≳(p(x)−p(2x))log(p(P/2)/p(P))≥cαx−α(1−2−α)αlog(2)=cα′p(x)D_{\rm KL}(p^{\prime}\|p)\gtrsim(p(x)-p(2x))\log(p(P/2)/p(P))\geq c_{\alpha}x^{-\alpha}(1-2^{-\alpha})\alpha\log(2)=c_{\alpha}^{\prime}p(x)
+

where cα′=cα​(1−2−α)​α​log⁡(2)c_{\alpha}^{\prime}=c_{\alpha}(1-2^{-\alpha})\alpha\log(2). +As a consequence, for any P∈ℕP\in{\mathbb{N}},

+ + + + + + + + + + + + + + + + + +
𝔼𝒟T​[ℰ⁡(fq^)]≤c0​P−α+1+∑x∈[P/2]p⁡(x)​ℙ​(f⁡(x)≠f∗​(x)).\displaystyle{\mathbb{E}}_{{\mathcal{D}}_{T}}[{\mathcal{E}}(f_{\hat{q}})]\leq c_{0}P^{-\alpha+1}+\sum_{x\in[P/2]}p(x){\mathbb{P}}(f(x)\neq f_{*}(x)).
≤c0​P−α+1+∑x∈[P/2]p⁡(x)​(exp⁡(−T​cα′​p​(x))+ℙ⁡(f⁡(x)≠f∗​(x)|x∈topP⁡((xt)))CLOSE\displaystyle\leq c_{0}P^{-\alpha+1}+\sum_{x\in[P/2]}p(x)(\exp(-Tc_{\alpha}^{\prime}p(x))+{\mathbb{P}}(f(x)\neq f_{*}(x)\,|\,x\in\operatorname{top}_{P}((x_{t})))
≤c0​P−α+1+exp⁡(−2α​T​cα′​P−α)+∑x∈[P/2]p⁡(x)​ℙ​(f⁡(x)≠f∗​(x)|x∈topP⁡((xt))CLOSE.\displaystyle\leq c_{0}P^{-\alpha+1}+\exp(-2^{\alpha}Tc_{\alpha}^{\prime}P^{-\alpha})+\sum_{x\in[P/2]}p(x){\mathbb{P}}(f(x)\neq f_{*}(x)\,|\,x\in\operatorname{top}_{P}((x_{t})).
+

When ρ=0\rho=0, setting P=min(c1d,T−1/α/log(T))P=\min(c_{1}d,T^{-1/\alpha}/\log(T)) with c1c_{1} chosen so that all xx stored in memory lead to f∗​(x)=f​(x)f_{*}(x)=f(x) gives to the right scaling with both TT and dd: up to logarithmic factors,

+ + + + + + +
𝔼⁡[ℰ⁡(fq^)]≲d−α+1+T−1+1/α+exp⁡(−c3​log⁡(T)α).\displaystyle{\mathbb{E}}[{\mathcal{E}}(f_{\hat{q}})]\lesssim d^{-\alpha+1}+T^{-1+1/\alpha}+\exp(-c_{3}\log(T)^{\alpha}).
+

Because α>1\alpha>1, the last term decreases faster than any polynomial power of TT, hence ends up being negligible in front of T−1+1/αT^{-1+1/\alpha}.

+
+
+

For the case ρ∈(0,1]\rho\in(0,1] one can dissociate two events: the event where xx belongs to the top P/2P/2 empirical frequencies; the event where p^​(x)>p​(x)/2\hat{p}(x)>p(x)/2; and conclude with similar derivations as precedently

+ + + + + + + + + + + + +
𝔼⁡[ℰ⁡(fq^)]\displaystyle{\mathbb{E}}[{\mathcal{E}}(f_{\hat{q}})]≤c0​P−α+1+exp⁡(−2α​T​cα′​P−α)+c4​T−1+1/α\displaystyle\leq c_{0}P^{-\alpha+1}+\exp(-2^{\alpha}Tc_{\alpha}^{\prime}P^{-\alpha})+c_{4}T^{-1+1/\alpha}
+∑x∈[P/2]p(x)ℙ(f(x)≠f∗(x)|x∈topP((xt)),p^(x)>p(x)/2).\displaystyle\qquad\qquad+\sum_{x\in[P/2]}p(x){\mathbb{P}}(f(x)\neq f_{*}(x)\,|\,x\in\operatorname{top}_{P}((x_{t})),\hat{p}(x)>p(x)/2).
+

Retaking previous arguments leads to the same scalings as the ones of Proposition 3 with respect to dd and a scaling in T−1+1/αT^{-1+1/\alpha} with respect to TT. +This ends the proof of the mixed scaling with both finite data and finite memory capacity.

+
+
+
+
+

A.9 Learning the inputs embeddings

+ +
+

In instances where the embeddings are learned within the linear model (2), one may optimize them by merging all input token embeddings that are associated with the same output, which is what we actually observed in practice in Figure 8. +Proposition 5 captures the resulting theoretical performance.

+
+
+
Proposition 5 (Improvement for learned inputs embeddings).
+
+

Let the input embeddings be set to ex=uf∗​(x)e_{x}=u_{f_{*}(x)}. +Assume without restrictions that p⁡(y)p(y) is decreasing with yy. +Consider the unembeddings where (uy)y∈[P](u_{y})_{y\in[P]} are η\eta-quasi orthogonal, and uy=0u_{y}=0 if yy is not among the PP-th most frequent classes. +Let q0∈ℝNq_{0}\in{\mathbb{R}}^{N}, and set q∈ℝMq\in{\mathbb{R}}^{M} as q⁡(y)=∑x;f∗​(x)=yq0​(x)q(y)=\sum_{x;f_{*}(x)=y}q_{0}(x), then

+ + + + + + + +
ℰ⁡(fWq0)≤p⁡({x| 1f∗​(x)∉[P]​q​(f∗​(x))<2​η​‖q‖∞+2​η2​‖q‖1}).{\mathcal{E}}(f_{W_{q_{0}}})\leq p(\{x\,|\,\mathbf{1}_{f_{*}(x)\notin[P]}q(f_{*}(x))<2\eta\|q\|_{\infty}+2\eta^{2}\|q\|_{1}\}).(49)
+

In particular, it is possible to consider a thresholding associative scheme q∗q_{*} such that, if yy follows a Zipf law p⁡(y)=Cβ​y−βp(y)=C_{\beta}y^{-\beta}, +ℰ⁡(fWq∗)=O⁡((d/log⁡(d))−β+1).{\mathcal{E}}(f_{W_{q_{*}}})=O((d/\log(d))^{-\beta+1}).

+
+
+
+

Proposition 5 shows that when learning the input embeddings one can expect to replace the scaling in d−α+1d^{-\alpha+1} that depends on the law of xx, by a scaling that depends on the law of yy. +It illustrates the usefulness to learn embeddings when the law of xx is well factored by the law of yy. +This is typically the case when xx are news articles associated with a few topics yy.

+
+
+
Proof.
+
+

When ee can be optimized, it is natural to set exe_{x} to be a constant for all xx that are associated with the same output. +Let q0∈Δ[N]q_{0}\in\Delta_{[N]} be an associative scheme,

+ + + + + + +
𝟏fWq0​(x0)≠f∗​(x0)=𝟏max⁡∑x∈[N]y≠f∗​(x0)⁡q0​(x)​ex0⊤​ex​ux⊤​(uy−uf∗​(x0))>0.\mathbf{1}_{f_{W_{q_{0}}}(x_{0})\neq f_{*}(x_{0})}=\mathbf{1}_{\max_{y\neq f^{*}(x_{0})}\sum_{x\in[N]}q_{0}(x)e_{x_{0}}^{\top}e_{x}u_{x}^{\top}(u_{y}-u_{f_{*}(x_{0})})>0}.
+

In order to lower the probability, one wants to minimize the left expression, which leads to the will to maximize ex0⊤​ex​uf∗​(x)⊤​uf∗​(x0)e_{x_{0}}^{\top}e_{x}u_{f_{*}(x)}^{\top}u_{f_{*}(x_{0})}. +This can be done by setting

+ + + + + + + +
∀x,x′∈[N],ex⊤​ex′=uf∗​(x)⊤​uf∗​(x′).\forall\,x,x^{\prime}\in[N],\qquad e_{x}^{\top}e_{x^{\prime}}=u_{f_{*}(x)}^{\top}u_{f_{*}(x^{\prime})}.(50)
+

Such an isometry can be built by setting ex=uf∗​(x)e_{x}=u_{f_{*}(x)}, leading to the new characterization

+ + + + + + +
𝟏fWq0​(x0)≠f∗​(x0)=𝟏max⁡∑z∈[M]y≠y0⁡q0​(z)​uy0⊤​uz​uz⊤​(uy−uy0)>0,\mathbf{1}_{f_{W_{q_{0}}}(x_{0})\neq f_{*}(x_{0})}=\mathbf{1}_{\max_{y\neq y_{0}}\sum_{z\in[M]}q_{0}(z)u_{y_{0}}^{\top}u_{z}u_{z}^{\top}(u_{y}-u_{y_{0}})>0},
+

where y0=f∗​(x0)y_{0}=f_{*}(x_{0}) and

+ + + + + + + +
q⁡(y):=∑x;f∗​(x)=yq0​(x).q(y):=\sum_{x;f_{*}(x)=y}q_{0}(x).(51)
+

When uu are η\eta-quasi orthogonal for its first PP values and set to zero otherwise, we have

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
∑z∈[M]q⁡(z)​uy0⊤​uz​uz⊤​(uy−uy0)=q⁡(y0)​(uy0⊤​uy−1)+q⁡(y)​(uy0⊤​uy−(uy0⊤​uy)2)\displaystyle\sum_{z\in[M]}q(z)u_{y_{0}}^{\top}u_{z}u_{z}^{\top}(u_{y}-u_{y_{0}})=q(y_{0})(u_{y_{0}}^{\top}u_{y}-1)+q(y)(u_{y_{0}}^{\top}u_{y}-(u_{y_{0}}^{\top}u_{y})^{2})
+∑z∈[M]≠{y,y0}q(z)uy0⊤uz(uz⊤uy−uz⊤uy0)\displaystyle\qquad+\sum_{z\in[M]\neq\{y,y_{0}\}}q(z)u_{y_{0}}^{\top}u_{z}(u_{z}^{\top}u_{y}-u_{z}^{\top}u_{y_{0}})
≤−q⁡(y0)+|q⁡(y0)​|η+|​q​(y)|η+∑z∈[M]≠{y,y0}|q⁡(z)|​η​(η+η)\displaystyle\leq-q(y_{0})+|q(y_{0})|\eta+|q(y)|\eta+\sum_{z\in[M]\neq\{y,y_{0}\}}|q(z)|\eta(\eta+\eta)
≤−q⁡(y0)+2​η​supz≠y0|q⁡(z)|+2​η2​∑z∈[M]|q⁡(z)|\displaystyle\leq-q(y_{0})+2\eta\sup_{z\neq y_{0}}|q(z)|+2\eta^{2}\sum_{z\in[M]}|q(z)|
=−q⁡(y0)+2​η​‖q‖∞+2​η2​‖q‖1.\displaystyle=-q(y_{0})+2\eta\|q\|_{\infty}+2\eta^{2}\|q\|_{1}.
+

As a consequence, we get

+ + + + + + +
ℰ⁡(fWq0)≤∑x∈[N]p⁡(x)​𝟏q⁡(f∗​(x))≤2​η​‖q‖∞+2​η2​‖q‖1.\displaystyle{\mathcal{E}}(f_{W_{q_{0}}})\leq\sum_{x\in[N]}p(x)\mathbf{1}_{q(f_{*}(x))\leq 2\eta\|q\|_{\infty}+2\eta^{2}\|q\|_{1}}.
+

Using that, for any A:[M]→ℝdA:[M]\to{\mathbb{R}}^{d}, ∑xp⁡(x)​A​(f∗​(x))=∑x∑yp⁡(x,y)​A​(y)=∑yp⁡(y)​A​(y)\sum_{x}p(x)A(f_{*}(x))=\sum_{x}\sum_{y}p(x,y)A(y)=\sum_{y}p(y)A(y),

+ + + + + + + +
ℰ⁡(fWq0)≤∑y∈[M]p⁡(y)​𝟏q⁡(y)≤2​η​‖q‖∞+2​η2​‖q‖1.{\mathcal{E}}(f_{W_{q_{0}}})\leq\sum_{y\in[M]}p(y)\mathbf{1}_{q(y)\leq 2\eta\|q\|_{\infty}+2\eta^{2}\|q\|_{1}}.(52)
+

Note that when the embeddings uu are chosen uniformly at random on the sphere, and d>4​log⁡(M)d>4\log(M), a similar bound will hold up to an extra higher-order term as seen in the proof of Theorem 1.

+
+
+

When uu is defined to be zero on [M]∖[P][M]\setminus[P], and only η\eta-quasi orthogonal for (uy)y∈[P](u_{y})_{y\in[P]}, the same characterization holds with

+ + + + + + + +
ℰ⁡(fWq0)≤∑y∈[M]∖[P]p⁡(y)+∑y∈[P]p⁡(y)​𝟏q⁡(y)≤2​η​‖q‖∞+2​η2​‖q‖1.{\mathcal{E}}(f_{W_{q_{0}}})\leq\sum_{y\in[M]\setminus[P]}p(y)+\sum_{y\in[P]}p(y)\mathbf{1}_{q(y)\leq 2\eta\|q\|_{\infty}+2\eta^{2}\|q\|_{1}}.(53)
+
+
+

Finally,if η2\eta^{2} is set to 1/4​P1/4P, and q∗=𝟏y∈[P]q_{*}=\mathbf{1}_{y\in[P]}, we get the upper bound

+ + + + + + +
ℰ⁡(fWq0)≤p⁡({x|f∗​(x)>P}).{\mathcal{E}}(f_{W_{q_{0}}})\leq p(\{x\,|f_{*}(x)>P\}).
+

The best PP that one can consider is that such d/4​P=η2​d=4​log⁡(P)d/4P=\eta^{2}d=4\log(P). +Setting P=d/16​log⁡(d)P=d/16\log(d), and bounding ∑y>Py−β≤∫P∞t−β​⁡𝑑t\sum_{y>P}y^{-\beta}\leq\int_{P}^{\infty}t^{-\beta}\mathop{}\!\mathrm{d}t ends the proof. +∎

+
+
+
+

A.9.1 Discussion on compensation mechanisms

+ +
+

When optimizing the embeddings, one may turn the negative interference mechanisms illustrated in Figure 2 into positive ones.

+
+
+

Assume that ex=uf∗​(x)e_{x}=u_{f_{*}(x)}, our model (4) become, denoting uf∗​(x)=u0u_{f_{*}(x)}=u_{0} for simplicity,

+ + + + + + + +
f⁡(x)=arg​maxy∈[M]⁡uy⊤​Wu0;W=∑y′∈[M]q⁡(y′)​uy′​uy′⊤.f(x)=\argmax_{y\in[M]}u_{y}^{\top}Wu_{0};\qquad W=\sum_{y^{\prime}\in[M]}q(y^{\prime})u_{y^{\prime}}u_{y^{\prime}}^{\top}.(54)
+

Similarly as before an error is made when

+ + + + + + + +
max⁡∑y′∈[M]y∈[M]⁡q⁡(y′)​(uy−u0)⊤​uy′​uy′⊤​u0>0.\max_{y\in[M]}\sum_{y^{\prime}\in[M]}q(y^{\prime})(u_{y}-u_{0})^{\top}u_{y^{\prime}}u_{y^{\prime}}^{\top}u_{0}>0.(55)
+

When the output embeddings are learned, one can optimize them to induce compensation mechanisms. +For example, when M=3M=3, and y1y_{1} is competing when y0=f∗​(x)y_{0}=f_{*}(x) as the argmax of (54) due to a large storage of q⁡(y1)q(y_{1}) compared to q⁡(y0)q(y_{0}), one could benefit of q⁡(y2)q(y_{2}) to ensure that

+ + + + + + + + + + + + +
q⁡(y0)​(u1⊤​u0−1)+q⁡(y1)​(1−u1⊤​u0)​u1⊤​u0+q⁡(y2)​(u1−u0)⊤​u2​u2⊤​u0\displaystyle q(y_{0})(u_{1}^{\top}u_{0}-1)+q(y_{1})(1-u_{1}^{\top}u_{0})u_{1}^{\top}u_{0}+q(y_{2})(u_{1}-u_{0})^{\top}u_{2}u_{2}^{\top}u_{0}
<0<q⁡(y0)​(u1⊤​u0−1)+q⁡(y1)​(1−u1⊤​u0)​u1⊤​u0.\displaystyle\qquad\qquad<0<q(y_{0})(u_{1}^{\top}u_{0}-1)+q(y_{1})(1-u_{1}^{\top}u_{0})u_{1}^{\top}u_{0}.
+

In this situation, the score u0⊤​W​exu_{0}^{\top}We_{x} of y0y_{0} would be higher then uy1⊤​W​exu_{y_{1}}^{\top}We_{x} ensuring that we do not make an error when predicting f⁡(x)f(x) (54).

+
+
+

We refer the interested reader to ? for related investigation.

+
+
+
+
+

A.10 Loss gradient

+ +
+

The cross-entropy loss is written as

+ + + + + + +
ℓ⁡((x,y,W)=−log⁡(exp⁡(uy⊤​W​ex)∑z∈[M]exp⁡(uz⊤​W​ex))=−uy⊤​W​ex+log⁡(∑z∈[M]exp⁡(uz⊤​W​ex))CLOSE.\ell((x,y,W)=-\log(\frac{\exp(u_{y}^{\top}We_{x})}{\sum_{z\in[M]}\exp(u_{z}^{\top}We_{x})})=-u_{y}^{\top}We_{x}+\log(\sum_{z\in[M]}\exp(u_{z}^{\top}We_{x})).
+

Hence stochastic gradient descent will update the matrix WW by adding terms of the form

+ + + + + + + + + + + + + + + + + + + + + + +
∂Wℓ⁡((x,y),W)\displaystyle\partial_{W}\ell((x,y),W)=−uy​ex⊤+∑z∈[M]exp⁡(uz⊤​W​ex)​uz​ex⊤∑y∈[M]exp⁡(uy⊤​W​ex)\displaystyle=-u_{y}e_{x}^{\top}+\frac{\sum_{z\in[M]}\exp(u_{z}^{\top}We_{x})u_{z}e_{x}^{\top}}{\sum_{y\in[M]}\exp(u_{y}^{\top}We_{x})}
=−uy​ex⊤+∑z∈[M]pW​(z|x)​uz​ex⊤\displaystyle=-u_{y}e_{x}^{\top}+\sum_{z\in[M]}p_{W}(z|x)u_{z}e_{x}^{\top}
=−(1−pW​(y|x))​uy​ex⊤+∑z≠ypW​(z|x)​uz​ex⊤\displaystyle=-(1-p_{W}(y|x))u_{y}e_{x}^{\top}+\sum_{z\neq y}p_{W}(z|x)u_{z}e_{x}^{\top}
=−(1−pW​(y|x))​(uy​ex⊤−∑z≠ypW​(z|x)1−pW​(y|x)​uz​ex⊤).\displaystyle=-(1-p_{W}(y|x))(u_{y}e_{x}^{\top}-\sum_{z\neq y}\frac{p_{W}(z|x)}{1-p_{W}(y|x)}u_{z}e_{x}^{\top}).
+

Note that pW​(z|x)/(1−pW​(y|x))p_{W}(z|x)/(1-p_{W}(y|x)) corresponds the the probability of the zz conditioned with respect to xx under the event that zz is not yy, formally

+ + + + + + +
pW​(z|x)1−pW​(y|x)=p⁡(z|x,z≠y).\frac{p_{W}(z|x)}{1-p_{W}(y|x)}=p(z|x,z\neq y).
+

Finally,

+ + + + + + + + + + + + +
∂Wℓ⁡((x,y),W)\displaystyle\partial_{W}\ell((x,y),W)=−(1−pW​(y|x))​(uy​ex⊤−∑z≠ypW​(z|x,z≠y)​uz​ex⊤)\displaystyle=-(1-p_{W}(y|x))(u_{y}e_{x}^{\top}-\sum_{z\neq y}p_{W}(z|x,z\neq y)u_{z}e_{x}^{\top})
=−(1−pW(y|x))(uyex⊤−𝔼z∼pW[uz|x,z≠y]ex⊤).\displaystyle=-(1-p_{W}(y|x))(u_{y}e_{x}^{\top}-{\mathbb{E}}_{z\sim p_{W}}[u_{z}|x,z\neq y]e_{x}^{\top}).
+

While, it is clear that the model (4) does not describe the solution found by cross entropy, one might hope that the term 𝔼⁡[uz]​ex⊤{\mathbb{E}}[u_{z}]e_{x}^{\top} will somewhat cancel themselves out and be an order of magnitude smaller than the leading term uy​ex⊤u_{y}e_{x}^{\top}.

+
+
+
+

A.11 Approximate updates

+ +
+

The formula (20) is justified by the fact that a matrix Wt=WqtW_{t}=W_{q_{t}} will lead to an update (18) at time tt according to the rule (19), assuming exp⁡(uz​W​ex)≈1\exp(u_{z}We_{x})\approx 1 for any z≠f∗​(x)z\neq f_{*}(x),

+ + + + + + +
qt+1​(x)−qt​(x)=𝟏xt=x​γ⋅(1−pWqt​(f∗​(x)|x))≈𝟏xt=x​γ1+(M−1)−1​exp⁡(qt​(x)),q_{t+1}(x)-q_{t}(x)=\mathbf{1}_{x_{t}=x}\gamma\cdot(1-p_{W_{q_{t}}}(f_{*}(x)|x))\approx\frac{\mathbf{1}_{x_{t}=x}\gamma}{1+(M-1)^{-1}\exp(q_{t}(x))},
+

together with the fact that xx will be seen T​p​(x)Tp(x) times on average in TT samples.

+
+
+

Similarly, very large batch size b=|B|b=\left|B\right| and T/bT/b update steps, each xx will appear in each batch about b​p​(x)bp(x) times, which leads to the rough approximation

+ + + + + + + +
qγ,b​(x)=fT/b​(0)=f∘f∘⋯∘f⏟T/b​ times​(0),wheref:x↦x+γ​b​p​(x)1+M−1​exp⁡(x).q_{\gamma,b}(x)=f^{T/b}(0)=\underbrace{f\circ f\circ\cdots\circ f}_{T/b\text{ times}}(0),\qquad\text{where}\qquad f:x\mapsto x+\frac{\gamma bp(x)}{1+M^{-1}\exp(x)}.(56)
+

In practice, we can approximate the effect of a batch by counting how many times xx was in this batch and setting b​p​(x)bp(x) to be the exact count, which will lead to tighter approximation. +This is this approximation that we plot on Figure 13.

+
+
+
+

A.12 Gradient for layer norm

+ +
+

Let x∈[N]x\in[N], y∈[M]y\in[M] and W∈ℝd×dW\in{\mathbb{R}}^{d\times d}. +When processing the input xx, layer norm adds a normalization layer

+ + + + + + +
f:W↦W¯=W‖W​ex‖.f:W\mapsto\bar{W}=\frac{W}{\|We_{x}\|}.
+

Using the chain rule, with DD denoting the Jacobian operator,

+ + + + + + +
∇Wℓ​(x,y,f⁡(W))=(DW​f​(W))⊤​∇f⁡(W)ℓ​(x,y,f⁡(W))=(DW​f​(W))⊤​∇W¯ℓ​(x,y,W¯).\nabla_{W}\ell(x,y;f(W))=(D_{W}f(W))^{\top}\nabla_{f(W)}\ell(x,y;f(W))=(D_{W}f(W))^{\top}\nabla_{\bar{W}}\ell(x,y;\bar{W}).
+

We are left with the computation of the Jacobian. +We proceed with chain rule

+ + + + + + +
f⁡(W)=f1​(f2​(f3​(W)))⋅W,f1:t∈ℝ↦t−1,f2:e∈ℝd↦‖e‖,f3:W∈ℝd×d↦W​ex.f(W)=f_{1}(f_{2}(f_{3}(W)))\cdot W,\quad f_{1}:t\in{\mathbb{R}}\mapsto t^{-1},f_{2}:e\in{\mathbb{R}}^{d}\mapsto\|e\|,f_{3}:W\in{\mathbb{R}}^{d\times d}\mapsto We_{x}.
+ + + + + + + + + + + + + + + + + +
DW​f​(W)⊤=∇W(f1∘f2∘f3)​(W)​W⊤+f1​(f2​(f3​(W)))⋅I\displaystyle D_{W}f(W)^{\top}=\nabla_{W}(f_{1}\circ f_{2}\circ f_{3})(W)W^{\top}+f_{1}(f_{2}(f_{3}(W)))\cdot I
=−∇W(f2∘f3)​(W)f2​(f3​(W))2​W⊤+1‖W​ex‖⋅I=−f3​(W)​(DW​f3​(W))‖f3​(W)‖​‖W​ex‖2​W⊤+1‖W​ex‖⋅I\displaystyle=\frac{-\nabla_{W}(f_{2}\circ f_{3})(W)}{f_{2}(f_{3}(W))^{2}}W^{\top}+\frac{1}{\|We_{x}\|}\cdot I=\frac{-f_{3}(W)(D_{W}f_{3}(W))}{\|f_{3}(W)\|\|We_{x}\|^{2}}W^{\top}+\frac{1}{\|We_{x}\|}\cdot I
=−W​ex​ex⊤‖W​ex‖3​W⊤+1‖W​ex‖⋅I=1‖W​ex‖​(I−W¯​ex​ex⊤​W¯⊤).\displaystyle=\frac{-We_{x}e_{x}^{\top}}{\|We_{x}\|^{3}}W^{\top}+\frac{1}{\|We_{x}\|}\cdot I=\frac{1}{\|We_{x}\|}(I-\bar{W}e_{x}e_{x}^{\top}\bar{W}^{\top}).
+

This proves the formula written in the main text.

+
+
+
+
+

Appendix B Experimental details

+ +
+

B.1 Maximal Parameters Updates

+ +
+

In order to carefully choose step-sizes that scale well with width dd in optimization algorithms, we follow ? and consider learning rates consistent with maximal feature learning updates. +Here we consider the following initializations:

+
    +
  • • +
    +

    WW is initialized as a Gaussian random matrix with 𝒩⁡(0,1d)\mathcal{N}(0,\frac{1}{d}) entries.

    +
  • +
  • • +
    +

    Input embeddings exe_{x} and output embeddings uyu_{y} are initialized as either random on the unit-sphere in dd dimensions, or with Gaussian 𝒩⁡(0,1d)\mathcal{N}(0,\frac{1}{d}) entries. In both cases, every embedding has norm ≈1\approx 1.

    +
  • +
+
+
+
Updates to WW.
+ +
+

The updates to the matrix WW look as follows:

+
    +
  • • +
    +

    SGD with step-size ηW\eta_{W}:

    + + + + + + +
    W′=W+ηW​δ​W,δ​W=∑jαj​uyj​exj⊤,W^{\prime}=W+\eta_{W}\delta W,\quad\delta W=\sum_{j}\alpha_{j}u_{y_{j}}e_{x_{j}}^{\top},
    +

    with αj=Θd​(1)\alpha_{j}=\Theta_{d}(1), and a dimension-independent number of elements in the sum. Choosing ηW=Θ⁡(1)\eta_{W}=\Theta(1) then ensures that for any input embedding exe_{x}, we have ‖W′​ex‖=Θ⁡(1)\|W^{\prime}e_{x}\|=\Theta(1) as desired.

    +
  • +
  • • +
    +

    Adam (idealized here as signSGD) with step-size η\eta:

    + + + + + + +
    W′=W+ηW​sign⁡(δ​W),sign⁡(δ​W)i​j=δ​Wi​j|δ​Wi​j|.W^{\prime}=W+\eta_{W}\sign(\delta W),\quad\sign(\delta W)_{ij}=\frac{\delta W_{ij}}{|\delta W_{ij}|}.
    +

    The coordinates of sign⁡(δ​W)\sign(\delta W) are now Θ⁡(1)\Theta(1) instead of Θ⁡(1/d)\Theta(1/d), thus the step-size needs to be taken as ηW=Θ⁡(1/d)\eta_{W}=\Theta(1/d) in order to satisfy ‖W′​ex‖=Θ⁡(1)\|W^{\prime}e_{x}\|=\Theta(1) (see (??) for more details)

    +
  • +
+
+
+
+
Updates to embeddings.
+ +
+

The updates to embeddings look as follows:

+
    +
  • • +
    +

    SGD updates:

    + + + + + + + + + + + + +
    uy′\displaystyle u_{y}^{\prime}=uy+ηu​δ​uy,δ​uy=∑jαj​W​exj,\displaystyle=u_{y}+\eta_{u}\delta u_{y},\quad\delta u_{y}=\sum_{j}\alpha_{j}We_{x_{j}},
    ex′\displaystyle e_{x}^{\prime}=ex+ηe​δ​ex,δ​ex=∑jαj′​W⊤​uyj,\displaystyle=e_{x}+\eta_{e}\delta e_{x},\quad\delta e_{x}=\sum_{j}\alpha_{j}^{\prime}W^{\top}u_{y_{j}},
    +

    with αj=Θ⁡(1)\alpha_{j}=\Theta(1) and a dimension-independent number of jjs. +Since the algorithm ensures ‖W​exj‖=Θ⁡(1)\|We_{x_{j}}\|=\Theta(1) and ‖W⊤​uyj‖=Θ⁡(1)\|W^{\top}u_{y_{j}}\|=\Theta(1) throughout training, choosing ηu,ηe=Θ⁡(1)\eta_{u},\eta_{e}=\Theta(1) ensures that these conditions continue to hold after each update.

    +
  • +
  • • +
    +

    Adam/signSGD updates:

    + + + + + + + + + + + + +
    uy′\displaystyle u_{y}^{\prime}=uy+ηu​sign⁡(δ​uy),(sign⁡(δ​uy))i=(δ​uy)i|(δ​uy)i|,\displaystyle=u_{y}+\eta_{u}\sign(\delta u_{y}),\quad(\sign(\delta u_{y}))_{i}=\frac{(\delta u_{y})_{i}}{|(\delta u_{y})_{i}|},
    ex′\displaystyle e_{x}^{\prime}=ex+ηe​sign⁡(δ​ex),(sign⁡(δ​ex))i=(δ​ex)i|(δ​ex)i|.\displaystyle=e_{x}+\eta_{e}\sign(\delta e_{x}),\quad(\sign(\delta e_{x}))_{i}=\frac{(\delta e_{x})_{i}}{|(\delta e_{x})_{i}|}.
    +

    Since the updates have coordinates of order Θ⁡(1)\Theta(1), in order to ensure that embeddings remain of norm Θ⁡(1)\Theta(1) after each update, we thus need ηu,ηe=Θ⁡(1/d)\eta_{u},\eta_{e}=\Theta(1/\sqrt{d}).

    +
  • +
+
+
+
+
+

B.2 Additional figures

+ +
+

Our theory predicted optimal scaling laws in d−1+αd^{-1+\alpha}. +However, there are some catches behind the proof:

+
    +
  • • +
    +

    The lower bound is true when d≪N=100d\ll N=100, otherwise the error can actually reach zero when dd becomes larger than a tipping number dtd_{t} which compares to NN. +This fact was illustrated on Figure 3. +Increasing NN augments the tipping point dtd_{t}, rectifying the learning curve as illustrated on Figure 9.

    +
  • +
  • • +
    +

    This was proven for models where q⁡(x,y)=q⁡(x)q(x,y)=q(x), and where q⁡(x)q(x) is not optimized with respect to f∗​(x)f_{*}(x). +As such, it is not clear if those lower bounds hold for optimization-based algorithms, although we argue that we do not expect different mechanisms to take place in the proofs. +We illustrate this empirically in the left of Figure 12.

    +
  • +
+
+
+
Figure 9: Same figure as the right one of Figure 3 yet with a bigger NN, here N=1000N=1000. +The dashed curves represent ℰ=.35⋅d−1/4{\mathcal{E}}=.35\cdot d^{-1/4} (orange) and ℰ=3.5⋅d−1{\mathcal{E}}=3.5\cdot d^{-1} (green). +They validate the scaling predicted by theory where we used N=+∞N=+\infty to get tight polynomial scalings of ℰ{\mathcal{E}} (5) with respect to dd.
+
+
+
+
Refer to caption
Refer to caption
Refer to caption
Refer to caption
+
Figure 10: Representation of the weight matrix (uy⊤​W​ex)y,x∈ℝM×N(u_{y}^{\top}We_{x})_{y,x}\in{\mathbb{R}}^{M\times N} for N=10N=10, M=5M=5, f∗​(x)=x​mod.⁡Mf_{*}(x)=x\operatorname{mod.}M. +The data xx follows a Zipf-law with α=1\alpha=1 and T=103T=10^{3}. +The matrix WW is obtained according to (4) together with the scheme (11). +Left: ρ=0\rho=0 (10), d=10d=10, there is not enough memory capacity, and the model does not succeed to store memories, leading to a large generalization error. Middle left: ρ=0\rho=0 (10), d=50d=50, there is enough memory capacity, we learn the right association y=x​mod.⁡My=x\operatorname{mod.}M. Middle right: ρ=1\rho=1 (11), d=10d=10, the weighting qq allows to store the most important memories beside having a small memory capacity. Right: ρ=1\rho=1 (11), d=50d=50, the weighting qq is too strong which does not allow to store memory associated with rare association (bottom of the matrix). +
+
+
+
+
+
Figure 11: +Learning curve of the generalization error ℰ{\mathcal{E}} (5) with respect to the number of data processed by stochastic gradient descent in the setting of Figure 6. +Left: comparison on a single run. +A big step size allows to store more memory at the risk of overwriting past association, which explains the higher variance of the blue curve but its overall better performance. +A small step size will avoid loss spikes due to memory overwriting, but will take more time to store rare associations, leading to worse performance. +By decreasing the learning rates along training, e.g., with the “StepLR” scheduler (?), one can get the best of both world, i.e., store memories fast at the beginning of training when storage capacity is underused, while being more cautious at the end of training when there is no more “free” memory space. +Right: Similar plot with N=30N=30 averaged over one hundred runs. +
+
+
+

Similarly, the unreasonable effect of learning the embeddings would be highly disappointing if those were hard to optimize in practice. +The right of Figure 12 illustrates how with a few steps, one can achieve a zero generalization error when learning the embeddings.

+
+
+
+
+
Figure 12: +Scalings with respect to dd for optimization-based algorithms, in the setting of Figure 3. +Left: optimization-based algorithms beat the best algorithm designed by hands with q⁡(x,y)=q⁡(x)q(x,y)=q(x). +Note how the curve seems to have the same optimal exponent ℰ≍d−α+1{\mathcal{E}}\asymp d^{-\alpha+1} (the left part of the figure show similar slopes for all curves) yet with smaller constant in front, leading to earlier typing point before reaching zero generalization error due to full storage of all the associations. +Middle: Comparison of learning the sole matrix WW (blue), or learning the embeddings ee and uu (orange), together with the possibility to use non-linear model uy​ReLU⁡(ex)u_{y}\operatorname{ReLU}(e_{x}) with ee and uu learned (green). +All curves are obtained after 10310^{3} updates with batch size 10310^{3}. +Right: Comparison with the same setting as Figure 7. +Learning the embeddings or going non-linear allows to impressively optimize memory storage, leading to better exponent with respect to dd and earlier tipping point for a fixed number of updates. +
+
+
+

In order to better understand gradient updates, Figure 14 shows the dynamic of the association memory WW updated with SGD and a large step size. +To validate the approximation (20), Figure 4 plots the generalization error associated with SGD and its theoretical approximation, while Figure 5 illustrates the idealized association scheme qγq_{\gamma} associated with a step size γ\gamma, batch size one and a Zipf law on x∈[N]x\in[N].

+
+
+
+
+
Figure 13: +Same as Figure 4 yet with batch size equals one thousands |B|=103|B|=10^{3}. +
+
+
+
+
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
+
Figure 14: +Gradient descent dynamics similar to Figure 6 with d=10d=10 and a fixed step size γ=10\gamma=10. +From time to time, we represent here t∈{0,4,5,6,8,9,11,30,32,37,49,62,75,90}t\in\{0,4,5,6,8,9,11,30,32,37,49,62,75,90\}, stochastic gradient descent will hit an association that is not properly stored in memory yet (the red boxes). +It will consequently update the weight matrix Wt→Wt+1W_{t}\to W_{t+1} (side by side pairs) to store it. +When dd is big enough, here d=10d=10, WW will end by storing correctly all associations, leading to perfect generalization for future examples.
+
+
+

In order to understand the effect of Adam, we compare it with plain SGD and SGD with rescaled variance on population data. +That is, we consider gradient descent with ∇Wℒ​(W)\nabla_{W}{\mathcal{L}}(W) (16). +The rescale variance SGD, consists in dividing the gradient by the variance of ∇Wℓ​(X,f∗​(X),W)\nabla_{W}\ell(X,f_{*}(X);W) (17) when X∼pX\sim p (1). +For simplicity, we consider Adam with β1=β2=0\beta_{1}=\beta_{2}=0, in which case, it equates sign SGD, i.e., SGD when considering the sign of each entries of ∇Wℒ​(W)\nabla_{W}{\mathcal{L}}(W) in the updates Wt→Wt+1W_{t}\to W_{t+1}. +Figures 15 and 16 underpins our intuition that the usefulness of Adam lies in its ability to rescale gradient updates, an effect that could equally be obtained by tuning the learning rate.

+
+
+
+
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
+
Figure 15: +Comparison between SGD, signSGD and SGD with normalized variance on population gradient seen from the association matrix WtW_{t} at different times in the setting of Figure 14. +The different rows correspond to the matrices WtW_{t} at time t∈{1,2,3,7,100}t\in\{1,2,3,7,100\}. +Left: Plain SGD. +Middle: Adam with β1=β2=0\beta_{1}=\beta_{2}=0, i.e., SignSGD. +Right: SGD with normalized variance. +
+
+
+
+
+
Figure 16: +Left: Generalization error in the setting of Figure 15. +Observe how SGD with rescaled variance (in green), an effect that can be done with SGD after adapting the learning rate, actually performs better than sign SGD (i.e., Adam with β1=β2=0\beta_{1}=\beta_{2}=0). +Right: Variance of SGD along the training. +As the training goes, SGD is losing momentum due to smaller gradient variances, hence smaller updates. +
+
+
+
+
+
+
+
+ + + + + +
+ diff --git a/results/memory-scaling-theory-v1/sources/composition-scaling.html b/results/memory-scaling-theory-v1/sources/composition-scaling.html new file mode 100644 index 0000000000000000000000000000000000000000..547ea4ca799a4fc5f817d580c038883cb9fd0b8b --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/composition-scaling.html @@ -0,0 +1,3446 @@ + + + +Scaling can lead to compositional generalization + + + + + + + + + + + + + + + + +
+ + arXiv is now an independent nonprofit! + Learn more + +
+ +
+ + + +
+
+
+ + License: CC BY-NC-SA 4.0 + +
+arXiv:2507.07207v2 [cs.LG] 23 Oct 2025
+
+
+

Scaling can lead to compositional generalization

+
+ +Florian Redhardt +††thanks: Equal contribution +Affiliation: ETH Zurich + +   +Yassir Akram11footnotemark: + 1 + + + + + +Affiliation: ETH Zurich + +   +Simon Schug +††thanks: Correspondence to sschug@princeton.edu. +Affiliation: [0.5ex] +Princeton University +
+ +
Abstract
+ +

Can neural networks systematically capture discrete, compositional task structure despite their continuous, distributed nature? +The impressive capabilities of large-scale neural networks suggest that the answer to this question is yes. +However, even for the most capable models, there are still frequent failure cases that raise doubts about their compositionality. +Here, we seek to understand what it takes for a standard neural network to generalize over tasks that share compositional structure. +We find that simply scaling data and model size leads to compositional generalization. +We show that this holds across different task encodings as long as the training distribution sufficiently covers the task space. +In line with this finding, we prove that standard multilayer perceptrons can approximate a general class of compositional task families to arbitrary precision using only a linear number of neurons with respect to the number of task modules. +Finally, we uncover that if networks successfully compositionally generalize, the constituents of a task can be linearly decoded from their hidden activations. +We show that this metric correlates with failures of text-to-image generation models to compose known concepts. + +
Code available at https://github.com/smonsays/scale-compositionality

+ +
+
+

1 Introduction

+ +
+

The ability to understand and produce novel combinations from familiar constituents is a key faculty of intelligence. +It has been debated for decades whether neural networks are ever able to truly achieve such compositional generalization [1]. +Regardless of these theoretical considerations, scaling neural networks continues to result in increasingly capable models [2, 3, 4]. +Naturally, as models are scaled up, their capacity to memorize grows, and it is perhaps unsurprising that as a result of training on ever larger datasets their ability to recall more information grows too [5]. +However, the nature of compositionality is an exponential growth and ultimately any attempt to exhaustively capture this breadth by scaling the training data will be confronted with physical constraints.

+
+
+

Many works therefore advocate that neural network architectures should be explicitly endowed with compositional structure [6, 7, 8, 9, e.g.,] to allow making infinite use of their finite means [10, 11]. +Capturing the underlying compositional procedure of the data is a more efficient pathway to generalize. +In particular, the algorithmic complexity of this generalizing solution is much smaller than the complexity of the memorizing solution [12]. +But does this mean that architectures need to explicitly factorize according to the data’s underlying compositional mechanisms +[9]? +For instance, monolithic networks have been shown to discover modular subnetworks which may enable compositionality without specialized symbolic mechanisms [13]. +Maybe simply scaling the data and size of neural networks is then enough to achieve compositionality.

+
+
+
Figure 1: Scaling can lead to compositional generalization. We consider compositional task families that compose KK out of MM modules into tasks, each of which is modeled as a function. This gives rise to an exponential number of 𝒪⁡(MK)\mathcal{O}(M^{K}) tasks. We train standard feedforward networks on a subset of tasks and evaluate compositional generalization on held-out tasks. We find that scaling the size of the model and the data leads to compositional generalization.
+
+
+

Here, we attempt to answer this question:

+ +Do neural networks compositionally generalize at scale? + +
+
+
+

Our main contributions are as follows

+
    +
  • • +
    +

    We demonstrate that standard multilayer perceptrons compositionally generalize on a variety of tasks as data and model size are scaled across task encodings if the training distribution sufficiently covers the task space.

    +
  • +
  • • +
    +

    We prove that multilayer perceptrons can approximate a general class of compositional task families to arbitrary precision using only a linear number of neurons with respect to the number of task modules.

    +
  • +
  • • +
    +

    We show that task constituents can be (linearly) decoded from the hidden activations of models that compositionally generalize, and demonstrate that this metric correlates with failures of image generation models to compose known concepts.

    +
  • +
+
+
+
+

2 Compositionality and compositional generalization

+ +
+

We begin by formalizing compositionality and compositional generalization with the goal of capturing a variety of compositional data types including visual scenes, abstract reasoning and behavior policies.

+
+
+

2.1 Compositional task family

+ +
+

Specifically, we will consider compositional task families that specify a generative procedure over tasks with shared compositional structure. +In a similar vein to [14], our definition uses algorithmic complexity theory, in particular the notion of Kolmogorov complexity, see [15] for a formal treatment. +This definition is a modified version of the definition introduced by [16].11 + 1 + + + + For the sake of simplicity, we are stating the definition slightly informally. For the asymptotic behavior over KK used in condition (ii) to be defined, we are technically considering a family of compositional task families.

+
+
+
Definition 2.1 (Compositional task family).
+
+

A compositional task family is a tuple 𝒯=(C,p:𝒛↦p(𝒛),p:𝒙↦p(𝒙))\mathcal{T}=(C,p:\bm{z}\mapsto p(\bm{z}),p:\bm{x}\mapsto p(\bm{x})), where:

+
    +
  • • +
    +

    The task constituent space is a set 𝒵⊆{𝒛∈[0,1]M:1≤‖𝒛‖0≤K≤M}\mathcal{Z}\subseteq\{\bm{z}\in[0,1]^{M}:1\leq\|\bm{z}\|_{0}\leq K\leq M\} with corresponding task distribution p⁡(𝒛)p(\bm{z}). KK is the number of task components and MM is the number of task modules.

    +
  • +
  • • +
    +

    A task is a function f𝒛:𝒳→𝒴f_{\bm{z}}:\mathcal{X}\to\mathcal{Y} that labels data points 𝒙∼p⁡(𝒙)\bm{x}\sim p(\bm{x}).

    +
  • +
  • • +
    +

    The composition operator is a mapping C:𝒵→(X→Y)C:\mathcal{Z}\to(X\to Y) that takes as input task constituents 𝒛∈𝒵\bm{z}\in\mathcal{Z} and maps them to a task, C⁡(𝒛)≔f𝒛C(\bm{z})\coloneqq f_{\bm{z}} for which the following conditions hold:

    +
      +
    1. (i) +
      +

      C⁡(𝒛)≠C⁡(𝒛′)C(\bm{z})\neq C(\bm{z}^{\prime}) for all 𝒛≠𝒛′\bm{z}\neq\bm{z}^{\prime} with 𝒛,𝒛′∈𝒵\bm{z},\bm{z}^{\prime}\in\mathcal{Z}, i.e. CC is injective.

      +
    2. +
    3. (ii) +
      +

      The length of the shortest program that implements CC as a function of KK grows sub-exponentially in KK.

      +
    4. +
    +
  • +
+
+
+
+

In the discrete case, where 𝒵⊆{𝒛∈{0,1}M:1≤‖𝒛‖0≤K≤M}\mathcal{Z}\subseteq\{\bm{z}\in\{0,1\}^{M}:1\leq\|\bm{z}\|_{0}\leq K\leq M\} is restricted to the set of binary, KK-hot vectors, Definition 2.1 essentially states that a compositional task family compactly captures exponentially many tasks. +Condition (i) ensures that all task components functionally enter the composition, while condition (ii) excludes the case where compositions are purely context-sensitive, ensuring that there is shared structure between tasks. +For a more detailed discussion of this definition, please refer to [16].

+
+
+

The notion of a task is used in a general sense here and allows to capture different types of compositional data. +For instance, a task could refer to a visual scene, where modules are the set of possible objects and the composition operator renders a selection of such objects into a scene. +Similarly, a task could refer to a behavior policy, where modules consist of different reward functions, a subset of which is combined by the composition operator to induce an optimal policy.

+
+
+
+

2.2 Task encoding

+ +
+

Before we can continue to define compositional generalization using Definition 2.1, we must first specify how to present the model with information about its current task, as captured by the task constituents 𝒛\bm{z}. +In practice, such a task description might not be the task constituents themselves, but rather some encoding thereof. +For example, a task could be described through a natural language instruction or by presenting example data points (xi,f𝒛​(xi))i(x_{i},f_{\bm{z}}(x_{i}))_{i}. +To model this aspect, we define the task encoder as the mapping

+ + + + + + +
φ:(𝒵,ℕ)→𝒵′\displaystyle\varphi:(\mathcal{Z},\mathbb{N})\rightarrow\mathcal{Z}^{\prime}
+

that maps task constituents 𝒛∈𝒵\bm{z}\in\mathcal{Z} and a random seed r∈ℕr\in\mathbb{N} to a task encoding. +Throughout the paper, we mostly focus on settings where the task is unambiguously specified, i.e. where the task encoding φ\varphi is information-preserving and therefore injective.

+
+
+
+

2.3 Compositional generalization

+ +
+

With Definition 2.1 at hand, we can now formalize compositional generalization for a model that learns to perform tasks from a compositional task family, given a task encoding φ\varphi. +This definition is a slightly modified version of the definition presented in [16].

+
+
+
Definition 2.2 (Compositional generalization).
+
+

A model parameterized by 𝜽\bm{\theta} is said to compositionally generalize with respect to the compositional task family 𝒯=(𝒵,C,p⁡(𝒛),p⁡(𝒙))\mathcal{T}=(\mathcal{Z},C,p(\bm{z}),p(\bm{x})) if there exists a discrete training distribution 𝒛↦ptrain​(𝒛)\bm{z}\mapsto p^{\mathrm{train}}(\bm{z}) with finite support such that the number of points in the support grows sub-exponentially in KK and it holds that

+ + + + + + + + + + + + +
𝜽∗\displaystyle\bm{\theta}^{*}∈arg​min𝜽⁡𝔼𝐳∼ptrain​(𝐳)​[𝔼𝐱∼p⁡(𝐱)​[l⁡(𝜽,𝐱,𝐳)]]\displaystyle\in\argmin_{\bm{\theta}}\mathbb{E}_{\bm{z}\sim p^{\mathrm{train}}(\bm{z})}\left[\mathbb{E}_{\bm{x}\sim p(\bm{x})}\left[l(\bm{\theta},\bm{x},\bm{z})\right]\right]
⇒𝜽∗\displaystyle\Rightarrow\bm{\theta}^{*}∈arg​min𝜽𝔼𝐳∼p⁡(𝐳)[𝔼𝐱∼p⁡(𝐱)[l(𝜽,𝐱,𝐳)]],\displaystyle\in\argmin_{\bm{\theta}}\quad\mathbb{E}_{\bm{z}\sim p(\bm{z})}\left[\mathbb{E}_{\bm{x}\sim p(\bm{x})}\left[l(\bm{\theta},\bm{x},\bm{z})\right]\right],
+

where l⁡(𝜽,𝒙,𝒛)=l⁡(f𝒛​(𝒙),g𝜽​(𝒙,φ⁡(𝒛))CLOSEl(\bm{\theta},\bm{x},\bm{z})=l\left(f_{\bm{z}}(\bm{x}),g_{\bm{\theta}}(\bm{x},\varphi(\bm{z})\right) is a loss function that measures the discrepancy between model predictions and the outputs of a task f𝒛​(𝒙)f_{\bm{z}}(\bm{x}) for a given datum 𝒙\bm{x} and task encoding φ⁡(𝒛)\varphi(\bm{z}).

+
+
+
+

Note, that we are not considering fixed-size datasets but are sampling directly from the data distribution which reflects the nowadays common single-epoch training regime of large-scale foundation models [3, e.g.,].

+
+
+
+

2.4 Hyperteachers: A general class of compositional task families

+ +
+

For the purpose of this study, it will be useful to instantiate a concrete but nevertheless general class of compositional task families according to Definition 2.1. +Given that neural networks are flexible function approximators and thus able to cover a wide range of behaviors, we parameterize both the composition operator as well as the task functions using neural networks. +The resulting system, a composable neural network that generates another neural network, can be interpreted as a hypernetwork [17]. +Indeed, hypernetworks have previously been used to study compositional generalization [18].

+
+
+

Following [18], we consider a linear hypernetwork that sums KK out of MM possible weight matrices to parameterize a single hidden layer task network. +We define the task constituent space to be 𝒵⊆{𝒛∈{0.5,0.6,…,1.0}M:1≤‖𝒛‖0≤K≤M}\mathcal{Z}\subseteq\{\bm{z}\in\{0.5,0.6,\dots,1.0\}^{M}:1\leq\|\bm{z}\|_{0}\leq K\leq M\} and the composition operator as

+ + + + + + + +
C(𝒛)=𝒙↦𝛀ReLU(∑k:zk≠0zk𝚯k𝒙),\displaystyle C(\bm{z})=\bm{x}\mapsto\bm{\Omega}\;\mathrm{ReLU}\left(\sum_{k:z_{k}\neq 0}z_{k}\bm{\Theta}_{k}\bm{x}\right),(1)
+

where we have MM sets of neural network parameters {𝚯m∈ℝI×H}m=1M\{\bm{\Theta}_{m}\in\mathbb{R}^{I\times H}\}_{m=1}^{M} with II input neurons and HH hidden neurons, 𝛀∈ℝH×O\bm{\Omega}\in\mathbb{R}^{H\times O} is a shared readout projection with OO output neurons and we sample 𝒙∈ℝI\bm{x}\in\mathbb{R}^{I} from the uniform distribution p⁡(𝒙)=𝒰​[−1,1]Ip(\bm{x})=\mathcal{U}[-1,1]^{I}. +Each module 𝚯m\bm{\Theta}_{m} also has an associated bias vector which we omit here for conciseness. +The resulting task functions, f𝒛:ℝI→ℝOf_{\bm{z}}:\mathbb{R}^{I}\to\mathbb{R}^{O}, are thus single hidden layer ReLU networks.

+
+
+
+
+

3 Scaling can lead to compositional generalization

+ +
+
+
+
Figure 2: Scaling data and model size leads to compositional generalization. Top-left Scaling the number of training tasks by increasing the number of modules, task components or decreasing the fraction of tasks held-out from training leads to compositional generalization on the hyperteacher task family. Top-right The number of training tasks required to achieve compositional generalization, here defined as a R2>0.95R^{2}>0.95, scales sub-exponentially as the number of total tasks in the task family grows. Bottom Scaling model size by increasing the number of hidden neurons and the number of hidden layers leads to compositional generalization on the hyperteacher across different task encodings. Error bars denote SEM over three seeds.
+
+
+

In the following, we will investigate if and under what circumstances standard multilayer perceptrons compositionally generalize. +We will show that simply scaling the number of tasks in the training distribution as well as scaling model size leads to compositional generalization. +The results presented in this section focus on various parameterizations of the hyperteacher compositional task family presented in Section 2.4. +We reproduce all findings of this section on the compositional preference task family introduced by [18]. +This task family requires learning optimal policies in a grid world with compositional reward functions. +We present the corresponding results in Appendix B.1 in Figures 7, 8, 9 and Table 2. +For additional experimental details, please refer to Appendix C.

+
+
+

While there exist various architectures specialized for compositionality, here we are interested in understanding if a standard fully connected neural network, a multilayer perceptron, can compositionally generalize. +Fully connected layers are common building blocks of virtually all standard architectures, including transformers or recurrent neural networks. +Specifically, we consider a multilayer perceptron with ReLU nonlinearities that accepts the concatenation of 𝒙\bm{x} and φ⁡(𝒛,r)\varphi(\bm{z},r) as input.

ReLU MLP𝒙\bm{x}φ⁡(𝒛,r)\varphi(\bm{z},r)𝒚\bm{y} +

In order to measure a model’s ability to compositionally generalize, we will hold out tasks from training and evaluate the model’s performance on these tasks.

+
+
+

3.1 Scaling the number of compositional tasks leads to compositional generalization

+ +
+

To investigate the main question of how scale affects compositional generalization, we will vary both data and model size. +The former can be accomplished along two different dimensions: +We can vary the total number of tasks in the compositional task family by changing both the number of modules MM and the number of components KK, and we can vary the fraction of distinct tasks that are held-out from training. +Since the number of possible tasks grows exponentially, 𝒪⁡(MK)\mathcal{O}(M^{K}), the compositional task families we consider can easily contain a very large number of distinct tasks. +The top-left of Figure 2 shows that as we scale the number of tasks, compositional generalization improves. +Notably, the required number of training tasks to achieve compositional generalization grows more slowly than the total number of tasks as shown on the top-right of Figure 2. +This implies that compositional generalization with a sub-exponential number of tasks, as in Definition 2.2, is indeed achievable at scale. +In Appendix B, we further demonstrate that this scaling relationship is even more favorable for transformers and similarly holds for the compositional preference task family as well as a hyperteacher with a deep target network.

+
+
+

In addition to scaling the data, we would like to understand how scaling model size affects compositional generalization. +Shown at the bottom of Figure 2, we vary both the number of hidden layers and the size of the hidden layers for various possible task encodings φ⁡(𝒛,r)\varphi(\bm{z},r) (more details on the task encodings will follow in Section 3.3). +We find that, given sufficient data, increasing model size consistently improves compositional generalization. +This is noteworthy, given that increasing model size in principle increases the capacity to memorize training tasks without capturing the underlying compositional structure required for compositional generalization. +As we will argue in the following however, these results can be interpreted as evidence that deep neural networks tend to prefer solutions of low algorithmic complexity [19].

+
+
+
+

3.2 Complexity of generalizing solution dominates memorizing solution asymptotically

+ +
+

Memorizing all tasks of a compositional task family by definition requires exponential network capacity. +Intuitively, a solution that captures the underlying compositional structure and thus generalizes should be more efficient. +A priori, it is however not clear whether such a solution exists for a finite-sized, multilayer perceptron. +As we have argued before, hyperteachers can be regarded as a general class of compositional task families. +It is therefore instructive to consider whether a finite-sized multilayer perceptron can implement any hyperteacher without having to memorize the exponential number of possible tasks. +The following theorem answers this question in the affirmative.

+
+
+
Theorem 3.1.
+
+

Let (𝚯m∈ℝI×H)\left(\bm{\Theta}_{m}\in\mathbb{R}^{I\times H}\right) be a sequence of uniformly bounded matrices. +Then, for any M∈ℕM\in\mathbb{N}, ε>0\varepsilon>0, and on any compact input set, 𝒳×𝒵\mathcal{X}\times\mathcal{Z} with 𝒵={𝐳:‖𝐳‖1≤1}\mathcal{Z}=\{\bm{z}:\|\bm{z}\|_{1}\leq 1\}, there exists a ReLU multilayer perceptron that approximates a hyperteacher to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm using 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons.

+
+
+
+

The corresponding constructive proof is presented in Appendix A.2 along with an extension to hyperteachers with multiple layers. +Theorem 3.1 notably states that the number of neurons required for the generalizing solution scales linearly in the number of modules MM. +Consistent with our experimental findings, this means that as MM grows, the simplicity of the fully generalizing solution will increasingly dominate the naive memorizing solution.

+
+
+
+

3.3 Compositional generalization emerges across task encodings

+ +
+
Figure 3: Task encodings. Illustration of the different task encodings φ⁡(𝒛,r)\varphi(\bm{z},r) used in Table 1. The first three encodings are linear with respect to the task constituents while the last three are nonlinear.
+
+
+
Table 1: Compositional generalization emerges across task encodings. Comparison of the decodability of the task constituents from the hidden activations of the third layer (Task decoder) and compositional generalization performance for various task encodings for a hyperteacher with M=16M=16, K=3K=3. We additionally show the linear decodability of the task constituents directly from the task encoding itself (Input decoder), which allows to distinguish linear from nonlinear task encodings. ±\pm SEM over three seeds.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Task encodingTask decoder (R²)Input decoder (R²)Comp. gen. (R²)
Identity0.95±0.0120.95\pm 0.0121.00±0.0001.00\pm 0.0001.00±0.0001.00\pm 0.000
Orthogonal0.96±0.0020.96\pm 0.0021.00±0.0001.00\pm 0.0001.00±0.0001.00\pm 0.000
Language0.99±0.0000.99\pm 0.0001.00±0.0001.00\pm 0.0001.00±0.0001.00\pm 0.000
Invertible NN0.94±0.0010.94\pm 0.0010.56±0.0000.56\pm 0.0000.95±0.0000.95\pm 0.000
Interval shuffle0.96±0.0110.96\pm 0.0110.73±0.0820.73\pm 0.0820.98±0.0100.98\pm 0.010
Few shot0.90±0.0040.90\pm 0.004−0.23±0.008-0.23\pm 0.0080.97±0.0010.97\pm 0.001
+
+
+

We now turn to the question, to what extent the way in which the task is specified to the model matters for its ability to compositionally generalize. +Specifically, one might suspect that certain ways of encoding a task are better suited to leveraging compositional structure than others. +For instance, [20] argue that language in particular encodes task structure in a way that is beneficial for learning compositional representations. +To study this question in the context of our setup, we experiment with different task encodings φ⁡(𝒛,r)\varphi(\bm{z},r) illustrated in Figure 3.

+
+
+

Generally, we find that all task encodings lead to compositional generalization, including nonlinear encodings, although some require more model capacity as shown at the bottom of Figure 2 and Table 1 (also see Table 2 in the appendix for corresponding results on the compositional preference task family). +Specifically, we observe no benefit of directly using the identity task encoding φ⁡(𝒛,r)=𝒛\varphi(\bm{z},r)=\bm{z}, over +a random but fixed orthogonal projection φ⁡(𝒛,r)=𝑸​𝒛\varphi(\bm{z},r)=\bm{Q}\bm{z} where 𝑸∈ℝM×M\bm{Q}\in\mathbb{R}^{M\times M} is an orthogonal matrix. +In the same way, encoding each task through a language instruction poses no issues. +The latter is consistent with the observation that the task constituents can be linearly decoded from such instructions. +Interestingly, even nonlinear encodings such as specifying the task through examples (denoted fewshot), via an invertible neural network or from the highly nonlinear interval shuffle function (see Algorithm 1 in the appendix for a definition) lead to compositional generalization if the model size is sufficiently large. +One possible explanation for these findings is that regardless of the task encoding, the model internally infers the task constituents up to a linear transformation after which Theorem 3.1 guarantees that a generalizing solution that scales linearly in the number of modules MM exists.

+
+
+

To verify this hypothesis, we train a linear decoder to predict the task constituents based on the hidden activations of the model solving the task. +We report the ability of this task decoder to predict the task constituents on the held-out compositional generalization tasks in Table 1. +Indeed, we find that also for nonlinear task encodings the task constituents can be linearly decoded from the hidden activations providing evidence that the models internally linearize the task constituents to achieve compositional generalization. +We will expand on this finding in Section 4.

+
+
+
+

3.4 The support of the training distribution needs to sufficiently cover the task space

+ +
+
Figure 4: The support of the training distribution needs to sufficiently cover the task space.: Left Illustration of the different types of task support for the special case of a compositional task family with two components. Turquoise tiles denote module combinations that are part of the training distribution, red tiles are reserved for evaluation. Right Compositional generalization as a function of the different types of task support on the hyperteacher for M=16M=16 and K=3K=3.
+
+
+

In principle, it is easy to come up with degenerate training distributions that make compositional generalization impossible. +For instance, if a module is consistently absent from all training tasks, the model has no opportunity to learn this module and will generally fail to generalize to tasks that contain this module. +In this sense, the support of the training distribution ptrain​(𝒛)p^{\mathrm{train}}(\bm{z}) needs to sufficiently cover the full constituent space for compositional generalization to succeed. +In this section we investigate how various conditions over the training support affect compositional generalization.

+
+
+

Prior work has studied how the training distribution affects compositional generalization [21, 22, 18, e.g.,]. +Following [21] we refer to the condition of having non-zero support for each module in the training distribution as compositional support . +For the class of hyperteacher task families, the additional condition of connected support needs to be satisfied, which states that no subset of modules should appear solely in isolation from the rest. +[18] show that in a teacher-student setting where both the teacher and the student are hypernetworks, this condition is required to guarantee compositional generalization. +We can extend this result to the more general case of any kind of student, including the ReLU multilayer perceptron. +The proof follows immediately by constructing examples of multiple different hyperteachers that have an identical training distribution if the training support is not connected. +Please refer to Appendix A.1 for more details.

+
+
+

Figure 4 illustrates the different types of training support we consider here as well as their effect on compositional generalization in the hyperteacher. +For a more detailed description for how each training support is constructed, please refer to Appendix C.3. +Our findings empirically confirm that violating compositional and connected support interferes with compositional generalization. +Interestingly, having a small set of popular modules who appear more frequently poses no issue for achieving compositional generalization. +The converse of having a small set of unpopular modules that are rarely encountered however does lead to a noticeable drop. +These findings are consistent with prior work that find that module imbalance hampers compositional generalization [23, 24]. +However, our experiments further suggest that such failures are due to underrepresentation of certain modules and not simply due to an asymmetry in module popularity. +Intuitively, if a module is seen only a constant number of times during training, it can be memorized with constant capacity.

+
+
+
+
+

4 Task constituents are linearly decodable in models that compositionally generalize

+ +
+

Section 3.3 has revealed that in cases where compositional generalization succeeds, the task constituents can be linearly decoded from the hidden activations. +This prompts the question whether models that succeed to compositionally generalize typically form an internal linear representation of the task constituents. +Generally speaking, we can show that for any model that compositionally generalizes to most tasks, the task constituents must be decodable.

+
+
+
Theorem 4.1 (Decodability under compositional generalization).
+
+

For any δ>0\delta>0, assume we have a student gg that predicts labels f𝐳​(𝐱)=𝐲f_{\bm{z}}(\bm{x})=\bm{y} given a task encoding φ⁡(𝐳,r)\varphi(\bm{z},r) and inputs 𝐱\bm{x}. +Then there exists a decoder map ϕ\phi that decodes φ⁡(𝐳,r)\varphi(\bm{z},r) to 𝐳\bm{z} with probability at least 1−δ1-\sqrt{\delta}, if:

+
    +
  1. (i) +
    +

    ℙ𝒛,𝒙[g(φ(𝒛,r),𝒙)=C(𝒛)(𝒙)]>1−δ\mathbb{P}_{\bm{z},\bm{x}}[g(\varphi(\bm{z},r),\bm{x})=C(\bm{z})(\bm{x})]>1-\delta

    +
  2. +
  3. (ii) +
    +

    For each 𝒛≠𝒛′\bm{z}\neq\bm{z}^{\prime}, ℙ𝒙[C(𝒛)(𝒙)=C(𝒛′)(𝒙)]<1−2δ\mathbb{P}_{\bm{x}}[C(\bm{z})(\bm{x})=C(\bm{z}^{\prime})(\bm{x})]<1-2\sqrt{\delta}

    +
  4. +
+
+
+
+

We provide the proof in Appendix A.3. +In practice, we observe an even stronger version of this statement, namely that the task constituents are linearly decodable from the hidden activations in multilayer perceptrons that successfully compositionally generalize.

+
+
+

4.1 Compositional generalization correlates with linear decodability of task constituents

+ +
+
+
+
Figure 5: Compositional generalization correlates with linear decodability of task constituents. Top Relationship between linear decodability of the task constituents and compositional generalization across hyperteachers with M=8M=8 modules and varying KK. Bottom Relationship between linear decodability of the task constituents and compositional generalization across different task encodings for varying model sizes on the hyperteacher with M=16M=16, K=3K=3. Error bars denote SEM over three seeds. Top/Bottom We report the R2R^{2} and corresponding p-value for an ordinary least square estimator in the facet titles.
+
+
+

To further illuminate the connection between the observed linear decodability of the task constituents and compositional generalization, we attempt to decode the task constituents in models that (partially) fail to fully compositionally generalize. +Figure 5 shows a remarkably clear correlation between decodability and compositional generalization across different data scales (top) and model sizes and task encodings (bottom). +Particularly interesting is the case where the unmodified task constituents are provided to the model, i.e. where the task encoding is the identity. +In this case, the task constituents are of course trivially linearly decodable from the input. +However, training the decoder on the hidden activations of deeper layers, this information is lost in networks that do not compositionally generalize. +In line with previous research, this implies that having access to a disentangled task representation is by itself not sufficient to achieve compositional generalization [25, 26].

+
+
+
+

4.2 Task constituents can be linearly decoded when image composition succeeds

+ +
+
+
Refer to caption
+
Figure 6: Task constituents can be linearly decoded when image composition succeeds. Top Example tasks to test compositionality of image generation models as well as an overview of the pipeline used to decode task constituents and judge model outputs. Bottom Relationship between average constituent decodability and image generation success rate across image composition task families for four different image generation models. We report the R2R^{2} and corresponding p-value for an ordinary least square estimator in the facet titles.
+
+
+

Finally, can we leverage the decodability of task constituents to gain insights into the successes and failures of image generation models at composing scenes from text prompts? +22 + 2 + + + + Code for image composition experiments available at https://github.com/florian-toll/compgen-vision +Image generation models have come a long way, displaying impressive abilities in creating novel compositions of known concepts [24]. +Nevertheless, there are still systematic failure cases [27, 28]. +Can such failures be related to the ability to infer the task constituents from the model’s hidden activations?

+
+
+

To answer this question, we construct a large number of compositional tasks that require composing several concepts. +Two examples are shown in the top-left of Figure 6. +For an extensive list of all the tasks we consider, as well as more details on the task construction, see Appendix C.7. +Using these tasks, we evaluate the ability of several diffusion-based image generation models to systematically generate image compositions [29, 30]. +We use a vision-language model to label whether a given generation was successful and train a linear decoder to decode the task constituents based on the model’s hidden activations. +The full pipeline is shown in the top-right of Figure 6. +Please refer to Appendix C.7 for further details. +The results of this analysis are shown at the bottom of Figure 6. +We observe a clear correlation between the average task constituent decodability and the average generation success rate across models, with the relative task difficulty being similar across models, as shown in Figure 12 of the Appendix. +This provides evidence that models which succeed at systematically composing known concepts into scenes form an internal representation of the task constituents.

+
+
+
+
+

5 Related work

+ +
+

The study of compositional generalization in neural networks has a long and rich history, with early critiques highlighting the challenges of connectionist models to exhibit systematicity and compositionality [1, 31, 32, 33, e.g.,] and numerous work that in response explored mechanisms for representing and processing structured information using distributed representations [34, 35, e.g.,]. +In recent years, theoretical progress has been made in showing that compositional generalization can provably be achieved with neural networks in specific settings [36, 18, 37, 38, 22, 39]. +This typically requires constraining the model architecture and the data generating process. +Consistent with our results, the statistics of the training data play a crucial rule in enabling compositional generalization [21, 22, 18, 39].

+
+
+

We aim to complement this work by showing how scaling generic neural networks can lead to compositional generalization in the absence of stronger architectural constraints. +This is motivated by the finding that scaling neural networks can break the curse of dimensionality [40], and consistently results in improvements in model performance [2, 41] with new capabilities emerging as models are scaled up [3, 4, 42]. +Compositional abilities in particular have therefore seemingly moved within grasp in practice [43, 44, 45, 46, 47, 48]. +However, even at larger scales, models often display a compositional generalization gap which does not close as scale increases [49, 50, 51, 52, 53, 54, 55, 56, 57], despite standard transformers showing compositionality in controlled settings [58, 59, 60].

+
+
+

Image generation models in particular have made impressive leaps in their ability to create novel image compositions [29, 61, 30, 62]. +Compositional abilities have been shown to emerge in such diffusion-based models on synthetic tasks in an order determined by the underlying data processes and with performance showing sudden emergence due to multiplicative dependencies [24, 63]. +Consistent with our finding that the task constituents are linearly decodable in models that successfully compositionally generalize, [64] find that diffusion image generation models learn factorized representations on a number of synthetic tasks. +However, as the number of concepts that need to be composed grows, the performance of image generation models starts to deteriorate, showing the limits of their productivity to arbitrarily complex compositions [27, 28].

+
+
+
+

6 Discussion

+ +
+

We have shown that simply scaling standard multilayer perceptrons can lead to compositional generalization challenging the position that stronger architectural priors are necessary to endow neural networks with compositionality [6, 7, 8, 9]. +That being said, architectural priors do matter when it comes to data efficiency, as highlighted by the improved scaling of transformers over multilayer perceptrons (see Appendix B). +Our findings also emphasize that the particular structure of the training data plays a critical role, demonstrating that not any type of scaling will lead to compositional generalization.

+
+
+

Interestingly, we find that when the training distribution is appropriately chosen, a wide range of task encodings support compositional generalization, including language but crucially also nonlinear task encodings such as specifying each task through examples. +Prior work posits that language compositionally structures neural representations and thereby aids rapid adaptation to novel compositional tasks [20]. +Our results indicate that in fact any information-preserving mapping of the underlying task constituents suffices to achieve compositional generalization. +This might help explain why animals that do not use sophisticated languages can compositionally generalize [65, e.g.,].

+
+
+

Surprisingly, regardless of whether task encodings are linear or nonlinear, we consistently find that the degree to which a model compositionally generalizes is related to the task constituents being linearly decodable from its hidden activations. +In particular, we show that this metric correlates with the success rate of image generation models at composing novel scenes from known constituents. +This finding suggests that, even though nonlinear representations would in principle be possible, successful compositional generalization in neural networks depends on linear representations of compositional structure.

+
+
+
Limitations
+ +
+

While Theorem3.1 reveals the existence of a solution that enables compositional generalization without requiring an exponential number of neurons, identifying the theoretical conditions under which one can show that this solution is guaranteed to be discovered by stochastic gradient descent is an open question. +Prior results indicate that deep neural networks trained with stochastic gradient descent often display a preference towards simple solutions [66, 67, 68, 19]. +In the context of compositional generalization, the complexity of the memorizing solution is by definition exponential in the number of modules which might help explain why empirically we observe the discovery of the generalizing solution which in contrast scales linearly in the number of modules.

+
+
+

We have focused on settings, where the task is fully specified through the task encoding. +In practice, a task specification might be ambiguous or incomplete, requiring models to handle uncertainty and infer the task at hand. +The strong in-context learning abilities of transformers that might allow extracting localized, and even cross-modal task vectors could play an important role in this context [69, 70, 71].

+
+
+

More generally, scaling the data in a way that precisely controls the coverage of the training distribution requires an understanding of the true generative process underlying the compositional data. +For this reason, our scaling experiments rely on synthetic data generation that gives us the required experimental control. +On real-world data, the underlying generative process is mostly unknown and accordingly identifying training distributions that can support compositional generalization remains an open question.

+
+
+
+
Broader impacts
+ +
+

This paper conducts foundational research aiming to illuminate under what circumstances neural networks compositionally generalize. +While we foresee no immediate negative societal impact, we hope that it may improve our understanding of this widely deployed technology.

+
+
+
+
Acknowledgments
+ +
+

We would like to thank Seijin Kobayashi, Angelika Steger, Jack Brady and Brenden Lake for vital discussions and fruitful feedback. +Simon Schug was supported by a Postdoc.Mobility grant (P500PT_225369) from the Swiss National Science Foundation.

+
+
+
+
+
+

References

+ +
    + +
  • [1] + +Jerry A. Fodor and Zenon W. Pylyshyn. + + +Connectionism and cognitive architecture: A critical analysis. + + +Cognition, 28(1-2):3–71, March 1988. + + +ISSN 00100277. + + +doi: 10.1016/0010-0277(88)90031-5. + + +URL https://linkinghub.elsevier.com/retrieve/pii/0010027788900315. + +
  • + +
  • [2] + +Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B. Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. + + +Scaling Laws for Neural Language Models, January 2020. + + +URL http://arxiv.org/abs/2001.08361. + + +arXiv:2001.08361 [cs]. + +
  • + +
  • [3] + +Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. + + +Language models are few-shot learners. + + +In Proceedings of the 34th International Conference on Neural Information Processing Systems, NIPS ’20, pages 1877–1901, Red Hook, NY, USA, December 2020. Curran Associates Inc. + + +ISBN 978-1-7138-2954-6. + +
  • + +
  • [4] + +Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, Ed H. Chi, Tatsunori Hashimoto, Oriol Vinyals, Percy Liang, Jeff Dean, and William Fedus. + + +Emergent Abilities of Large Language Models. + + +Transactions on Machine Learning Research, 2022. + + +ISSN 2835-8856. + + +URL https://openreview.net/forum?id=yzkSU5zdwD. + +
  • + +
  • [5] + +Dhruv Mahajan, Ross Girshick, Vignesh Ramanathan, Kaiming He, Manohar Paluri, Yixuan Li, Ashwin Bharambe, and Laurens van der Maaten. + + +Exploring the Limits of Weakly Supervised Pretraining. + + +In Proceedings of the European Conference on Computer Vision (ECCV), September 2018. + +
  • + +
  • [6] + +Akhilan Boopathy, Sunshine Jiang, William Yue, Jaedong Hwang, Abhiram Iyer, and Ila R. Fiete. + + +Breaking Neural Network Scaling Laws with Modularity. + + +In The Thirteenth International Conference on Learning Representations, 2025. + + +URL https://openreview.net/forum?id=5Qxx5KpFms. + +
  • + +
  • [7] + +Peter W. Battaglia, Jessica B. Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, Caglar Gulcehre, Francis Song, Andrew Ballard, Justin Gilmer, George Dahl, Ashish Vaswani, Kelsey Allen, Charles Nash, Victoria Langston, Chris Dyer, Nicolas Heess, Daan Wierstra, Pushmeet Kohli, Matt Botvinick, Oriol Vinyals, Yujia Li, and Razvan Pascanu. + + +Relational inductive biases, deep learning, and graph networks, October 2018. + + +URL http://arxiv.org/abs/1806.01261. + + +arXiv:1806.01261 [cs, stat]. + +
  • + +
  • [8] + +Jacob Russin, Randall C. O’Reilly, Jason Jo, and Yoshua Bengio. + + +Systematicity in a Recurrent Neural Network by Factorizing Syntax andSemantics. + + +Proceedings of the Annual Meeting of the Cognitive Science Society, 42(0), 2020. + + +URL https://escholarship.org/uc/item/3c0462ph. + +
  • + +
  • [9] + +Yilun Du and Leslie Pack Kaelbling. + + +Compositional Generative Modeling: A Single Model is Not All You Need. + + +In Forty-first International Conference on Machine Learning, 2024. + + +URL https://openreview.net/forum?id=SoNexFx8qz. + +
  • + +
  • [10] + +Wilhelm Von Humboldt. + + +Humboldt:’On language’: On the diversity of human language construction and its influence on the mental development of the human species. + + +Cambridge University Press, 1836. + +
  • + +
  • [11] + +Noam Chomsky. + + +Aspects of the Theory of Syntax. + + +Number 11. MIT press, 1965. + +
  • + +
  • [12] + +Yi Ren and Danica J. Sutherland. + + +Understanding Simplicity Bias towards Compositional Mappings via Learning Dynamics. + + +In NeurIPS 2024 Workshop on Compositional Learning: Perspectives, Methods, and Paths Forward, 2024. + + +URL https://openreview.net/forum?id=TOEv2N7RuG. + +
  • + +
  • [13] + +Michael Lepori, Thomas Serre, and Ellie Pavlick. + + +Break It Down: Evidence for Structural Compositionality in Neural Networks. + + +In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 42623–42660. Curran Associates, Inc., 2023. + + +URL https://proceedings.neurips.cc/paper_files/paper/2023/file/85069585133c4c168c865e65d72e9775-Paper-Conference.pdf. + +
  • + +
  • [14] + +Eric Elmoznino, Thomas Jiralerspong, Yoshua Bengio, and Guillaume Lajoie. + + +A Complexity-Based Theory of Compositionality, February 2025. + + +URL http://arxiv.org/abs/2410.14817. + + +arXiv:2410.14817 [cs]. + +
  • + +
  • [15] + +Ming Li and Paul Vitányi. + + +An Introduction to Kolmogorov Complexity and Its Applications. + + +Texts in Computer Science. Springer, Cham, 4th ed. 2019 edition, 2019. + + +ISBN 978-3-030-11298-1. + + +doi: 10.1007/978-3-030-11298-1. + +
  • + +
  • [16] + +Simon Schug. + + +Meta-Learning & Compositional Generalization in Neural Networks. + + +Doctoral Thesis, ETH Zurich, 2025. + + +URL https://www.research-collection.ethz.ch/handle/20.500.11850/738789. + +
  • + +
  • [17] + +David Ha, Andrew M. Dai, and Quoc V. Le. + + +HyperNetworks. + + +In International Conference on Learning Representations, 2017. + + +URL https://openreview.net/forum?id=rkpACe1lx. + +
  • + +
  • [18] + +Simon Schug, Seijin Kobayashi, Yassir Akram, Maciej Wolczyk, Alexandra Maria Proca, Johannes von Oswald, Razvan Pascanu, Joao Sacramento, and Angelika Steger. + + +Discovering modular solutions that generalize compositionally. + + +In The Twelfth International Conference on Learning Representations, 2024. + + +URL https://openreview.net/forum?id=H98CVcX1eh. + +
  • + +
  • [19] + +Andrew Gordon Wilson. + + +Deep Learning is Not So Mysterious or Different, March 2025. + + +URL http://arxiv.org/abs/2503.02113. + + +arXiv:2503.02113 [cs]. + +
  • + +
  • [20] + +Reidar Riveland and Alexandre Pouget. + + +Natural language instructions induce compositional generalization in networks of neurons. + + +Nature Neuroscience, pages 1–12, March 2024. + + +ISSN 1546-1726. + + +doi: 10.1038/s41593-024-01607-5. + + +URL https://www.nature.com/articles/s41593-024-01607-5. + + +Publisher: Nature Publishing Group. + +
  • + +
  • [21] + +Thaddäus Wiedemer, Prasanna Mayilvahanan, Matthias Bethge, and Wieland Brendel. + + +Compositional Generalization from First Principles. + + +November 2023. + + +URL https://openreview.net/forum?id=LqOQ1uJmSx. + +
  • + +
  • [22] + +Samuel Lippl and Kim Stachenfeld. + + +When does compositional structure yield compositional generalization? A kernel theory. + + +October 2024. + + +URL https://openreview.net/forum?id=FPBce2P1er&name=pdf. + +
  • + +
  • [23] + +Yuren Cong, Martin Renqiang Min, Li Erran Li, Bodo Rosenhahn, and Michael Ying Yang. + + +Attribute-Centric Compositional Text-to-Image Generation, January 2023. + + +URL http://arxiv.org/abs/2301.01413. + + +arXiv:2301.01413 [cs]. + +
  • + +
  • [24] + +Maya Okawa, Ekdeep S Lubana, Robert Dick, and Hidenori Tanaka. + + +Compositional Abilities Emerge Multiplicatively: Exploring Diffusion Models on a Synthetic Task. + + +In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 50173–50195. Curran Associates, Inc., 2023. + + +URL https://proceedings.neurips.cc/paper_files/paper/2023/file/9d0f188c7947eacb0c07f709576824f6-Paper-Conference.pdf. + +
  • + +
  • [25] + +Milton Montero, Jeffrey Bowers, Rui Ponte Costa, Casimir Ludwig, and Gaurav Malhotra. + + +Lost in Latent Space: Examining failures of disentangled models at combinatorial generalisation. + + +In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 10136–10149. Curran Associates, Inc., 2022. + + +URL https://proceedings.neurips.cc/paper_files/paper/2022/file/41ca8a0eb2bc4927a499b910934b9b81-Paper-Conference.pdf. + +
  • + +
  • [26] + +Seijin Kobayashi, Simon Schug, Yassir Akram, Florian Redhardt, Johannes von Oswald, Razvan Pascanu, Guillaume Lajoie, and João Sacramento. + + +When can transformers compositionally generalize in-context?, July 2024. + + +URL http://arxiv.org/abs/2407.12275. + + +arXiv:2407.12275 [cs]. + +
  • + +
  • [27] + +Martha Lewis, Nihal Nayak, Peilin Yu, Jack Merullo, Qinan Yu, Stephen Bach, and Ellie Pavlick. + + +Does CLIP Bind Concepts? Probing Compositionality in Large Image Models. + + +In Yvette Graham and Matthew Purver, editors, Findings of the Association for Computational Linguistics: EACL 2024, pages 1487–1500, St. Julian’s, Malta, March 2024. Association for Computational Linguistics. + + +URL https://aclanthology.org/2024.findings-eacl.101/. + +
  • + +
  • [28] + +Xindi Wu, Dingli Yu, Yangsibo Huang, Olga Russakovsky, and Sanjeev Arora. + + +ConceptMix: A Compositional Image Generation Benchmark with Controllable Difficulty. + + +November 2024. + + +URL https://openreview.net/forum?id=MU2s9wwWLo#discussion. + +
  • + +
  • [29] + +Black Forest Labs. + + +black-forest-labs/FLUX.1-dev · Hugging Face, April 2025. + + +URL https://huggingface.co/black-forest-labs/FLUX.1-dev. + +
  • + +
  • [30] + +Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, Kyle Lacey, Alex Goodwin, Yannik Marek, and Robin Rombach. + + +Scaling Rectified Flow Transformers for High-Resolution Image Synthesis, March 2024. + + +URL http://arxiv.org/abs/2403.03206. + + +arXiv:2403.03206 [cs]. + +
  • + +
  • [31] + +Paul Smolensky. + + +Connectionism, Constituency and the Language of Thought. + + +In Barry M. Loewer and Georges Rey, editors, Meaning in Mind: Fodor and His Critics. Blackwell, 1991. + +
  • + +
  • [32] + +Robert F Hadley. + + +Systematicity in connectionist language learning. + + +Mind & Language, 9(3):247–272, 1994. + + +Publisher: Wiley Online Library. + +
  • + +
  • [33] + +Steven Phillips. + + +Connectionism and the problem of systematicity. + + +PhD Thesis, University of Queensland, 1995. + +
  • + +
  • [34] + +Paul Smolensky. + + +Tensor product variable binding and the representation of symbolic structures in connectionist systems. + + +Artificial Intelligence, 46(1):159–216, November 1990. + + +ISSN 0004-3702. + + +doi: 10.1016/0004-3702(90)90007-M. + + +URL https://www.sciencedirect.com/science/article/pii/000437029090007M. + +
  • + +
  • [35] + +Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. + + +Neural Module Networks. + + +In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016. + +
  • + +
  • [36] + +Devon Jarvis, Richard Klein, Benjamin Rosman, and Andrew M. Saxe. + + +On The Specialization of Neural Modules. + + +In The Eleventh International Conference on Learning Representations, 2023. + + +URL https://openreview.net/forum?id=Fh97BDaR6I. + +
  • + +
  • [37] + +Thaddäus Wiedemer, Jack Brady, Alexander Panfilov, Attila Juhos, Matthias Bethge, and Wieland Brendel. + + +Provable Compositional Generalization for Object-Centric Learning. + + +In The Twelfth International Conference on Learning Representations, 2024. + + +URL https://openreview.net/forum?id=7VPTUWkiDQ. + +
  • + +
  • [38] + +Jin Hwa Lee, Stefano Sarao Mannelli, and Andrew M Saxe. + + +Why Do Animals Need Shaping? A Theory of Task Composition and Curriculum Learning. + + +In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 26837–26855. PMLR, July 2024. + + +URL https://proceedings.mlr.press/v235/lee24r.html. + +
  • + +
  • [39] + +Jack Brady, Julius von Kügelgen, Sebastien Lachapelle, Simon Buchholz, Thomas Kipf, and Wieland Brendel. + + +Interaction Asymmetry: A General Principle for Learning Composable Abstractions. + + +In The Thirteenth International Conference on Learning Representations, 2025. + + +URL https://openreview.net/forum?id=cCl10IU836. + +
  • + +
  • [40] + +Francesco Cagnetta, Leonardo Petrini, Umberto M. Tomasini, Alessandro Favero, and Matthieu Wyart. + + +How Deep Neural Networks Learn Compositional Data: The Random Hierarchy Model. + + +Physical Review X, 14(3):031001, July 2024. + + +doi: 10.1103/PhysRevX.14.031001. + + +URL https://link.aps.org/doi/10.1103/PhysRevX.14.031001. + + +Publisher: American Physical Society. + +
  • + +
  • [41] + +Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Tom Hennigan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Oriol Vinyals, Jack W. Rae, and Laurent Sifre. + + +Training compute-optimal large language models. + + +In Proceedings of the 36th International Conference on Neural Information Processing Systems, NIPS ’22, pages 30016–30030, Red Hook, NY, USA, November 2022. Curran Associates Inc. + + +ISBN 978-1-7138-7108-8. + +
  • + +
  • [42] + +Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam R. Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, Agnieszka Kluska, Aitor Lewkowycz, Akshat Agarwal, Alethea Power, Alex Ray, Alex Warstadt, Alexander W. Kocurek, Ali Safaya, Ali Tazarv, Alice Xiang, Alicia Parrish, Allen Nie, Aman Hussain, Amanda Askell, Amanda Dsouza, Ambrose Slone, Ameet Rahane, Anantharaman S. Iyer, Anders Johan Andreassen, Andrea Madotto, Andrea Santilli, Andreas Stuhlmüller, Andrew M. Dai, Andrew La, Andrew Lampinen, Andy Zou, Angela Jiang, Angelica Chen, Anh Vuong, Animesh Gupta, Anna Gottardi, Antonio Norelli, Anu Venkatesh, Arash Gholamidavoodi, Arfa Tabassum, Arul Menezes, Arun Kirubarajan, Asher Mullokandov, Ashish Sabharwal, Austin Herrick, Avia Efrat, Aykut Erdem, Ayla Karakaş, B. Ryan Roberts, Bao Sheng Loe, Barret Zoph, Bart\lomiej Bojanowski, Batuhan Özyurt, Behnam Hedayatnia, Behnam Neyshabur, Benjamin Inden, Benno Stein, Berk Ekmekci, Bill Yuchen Lin, Blake +Howald, Bryan Orinion, Cameron Diao, Cameron Dour, Catherine Stinson, Cedrick Argueta, Cesar Ferri, Chandan Singh, Charles Rathkopf, Chenlin Meng, Chitta Baral, Chiyu Wu, Chris Callison-Burch, Christopher Waites, Christian Voigt, Christopher D. Manning, Christopher Potts, Cindy Ramirez, Clara E. Rivera, Clemencia Siro, Colin Raffel, Courtney Ashcraft, Cristina Garbacea, Damien Sileo, Dan Garrette, Dan Hendrycks, Dan Kilman, Dan Roth, C. Daniel Freeman, Daniel Khashabi, Daniel Levy, Daniel Moseguí González, Danielle Perszyk, Danny Hernandez, Danqi Chen, Daphne Ippolito, Dar Gilboa, David Dohan, David Drakard, David Jurgens, Debajyoti Datta, Deep Ganguli, Denis Emelin, Denis Kleyko, Deniz Yuret, Derek Chen, Derek Tam, Dieuwke Hupkes, Diganta Misra, Dilyar Buzan, Dimitri Coelho Mollo, Diyi Yang, Dong-Ho Lee, Dylan Schrader, Ekaterina Shutova, Ekin Dogus Cubuk, Elad Segal, Eleanor Hagerman, Elizabeth Barnes, Elizabeth Donoway, Ellie Pavlick, Emanuele Rodolà, Emma Lam, Eric Chu, Eric Tang, Erkut Erdem, Ernie +Chang, Ethan A. Chi, Ethan Dyer, Ethan Jerzak, Ethan Kim, Eunice Engefu Manyasi, Evgenii Zheltonozhskii, Fanyue Xia, Fatemeh Siar, Fernando Martínez-Plumed, Francesca Happé, Francois Chollet, Frieda Rong, Gaurav Mishra, Genta Indra Winata, Gerard de Melo, Germán Kruszewski, Giambattista Parascandolo, Giorgio Mariani, Gloria Xinyue Wang, Gonzalo Jaimovitch-Lopez, Gregor Betz, Guy Gur-Ari, Hana Galijasevic, Hannah Kim, Hannah Rashkin, Hannaneh Hajishirzi, Harsh Mehta, Hayden Bogar, Henry Francis Anthony Shevlin, Hinrich Schuetze, Hiromu Yakura, Hongming Zhang, Hugh Mee Wong, Ian Ng, Isaac Noble, Jaap Jumelet, Jack Geissinger, Jackson Kernion, Jacob Hilton, Jaehoon Lee, Jaime Fernández Fisac, James B. Simon, James Koppel, James Zheng, James Zou, Jan Kocon, Jana Thompson, Janelle Wingfield, Jared Kaplan, Jarema Radom, Jascha Sohl-Dickstein, Jason Phang, Jason Wei, Jason Yosinski, Jekaterina Novikova, Jelle Bosscher, Jennifer Marsh, Jeremy Kim, Jeroen Taal, Jesse Engel, Jesujoba Alabi, Jiacheng Xu, Jiaming +Song, Jillian Tang, Joan Waweru, John Burden, John Miller, John U. Balis, Jonathan Batchelder, Jonathan Berant, Jörg Frohberg, Jos Rozen, Jose Hernandez-Orallo, Joseph Boudeman, Joseph Guerr, Joseph Jones, Joshua B. Tenenbaum, Joshua S. Rule, Joyce Chua, Kamil Kanclerz, Karen Livescu, Karl Krauth, Karthik Gopalakrishnan, Katerina Ignatyeva, Katja Markert, Kaustubh Dhole, Kevin Gimpel, Kevin Omondi, Kory Wallace Mathewson, Kristen Chiafullo, Ksenia Shkaruta, Kumar Shridhar, Kyle McDonell, Kyle Richardson, Laria Reynolds, Leo Gao, Li Zhang, Liam Dugan, Lianhui Qin, Lidia Contreras-Ochando, Louis-Philippe Morency, Luca Moschella, Lucas Lam, Lucy Noble, Ludwig Schmidt, Luheng He, Luis Oliveros-Colón, Luke Metz, Lütfi Kerem Senel, Maarten Bosma, Maarten Sap, Maartje Ter Hoeve, Maheen Farooqi, Manaal Faruqui, Mantas Mazeika, Marco Baturan, Marco Marelli, Marco Maru, Maria Jose Ramirez-Quintana, Marie Tolkiehn, Mario Giulianelli, Martha Lewis, Martin Potthast, Matthew L. Leavitt, Matthias Hagen, Mátyás +Schubert, Medina Orduna Baitemirova, Melody Arnaud, Melvin McElrath, Michael Andrew Yee, Michael Cohen, Michael Gu, Michael Ivanitskiy, Michael Starritt, Michael Strube, Michal Swedrowski, Michele Bevilacqua, Michihiro Yasunaga, Mihir Kale, Mike Cain, Mimee Xu, Mirac Suzgun, Mitch Walker, Mo Tiwari, Mohit Bansal, Moin Aminnaseri, Mor Geva, Mozhdeh Gheini, Mukund Varma T, Nanyun Peng, Nathan Andrew Chi, Nayeon Lee, Neta Gur-Ari Krakover, Nicholas Cameron, Nicholas Roberts, Nick Doiron, Nicole Martinez, Nikita Nangia, Niklas Deckers, Niklas Muennighoff, Nitish Shirish Keskar, Niveditha S. Iyer, Noah Constant, Noah Fiedel, Nuan Wen, Oliver Zhang, Omar Agha, Omar Elbaghdadi, Omer Levy, Owain Evans, Pablo Antonio Moreno Casares, Parth Doshi, Pascale Fung, Paul Pu Liang, Paul Vicol, Pegah Alipoormolabashi, Peiyuan Liao, Percy Liang, Peter W. Chang, Peter Eckersley, Phu Mon Htut, Pinyu Hwang, Piotr Milkowski, Piyush Patil, Pouya Pezeshkpour, Priti Oli, Qiaozhu Mei, Qing Lyu, Qinlang Chen, Rabin Banjade, +Rachel Etta Rudolph, Raefer Gabriel, Rahel Habacker, Ramon Risco, Raphaël Millière, Rhythm Garg, Richard Barnes, Rif A. Saurous, Riku Arakawa, Robbe Raymaekers, Robert Frank, Rohan Sikand, Roman Novak, Roman Sitelew, Ronan Le Bras, Rosanne Liu, Rowan Jacobs, Rui Zhang, Russ Salakhutdinov, Ryan Andrew Chi, Seungjae Ryan Lee, Ryan Stovall, Ryan Teehan, Rylan Yang, Sahib Singh, Saif M. Mohammad, Sajant Anand, Sam Dillavou, Sam Shleifer, Sam Wiseman, Samuel Gruetter, Samuel R. Bowman, Samuel Stern Schoenholz, Sanghyun Han, Sanjeev Kwatra, Sarah A. Rous, Sarik Ghazarian, Sayan Ghosh, Sean Casey, Sebastian Bischoff, Sebastian Gehrmann, Sebastian Schuster, Sepideh Sadeghi, Shadi Hamdan, Sharon Zhou, Shashank Srivastava, Sherry Shi, Shikhar Singh, Shima Asaadi, Shixiang Shane Gu, Shubh Pachchigar, Shubham Toshniwal, Shyam Upadhyay, Shyamolima Shammie Debnath, Siamak Shakeri, Simon Thormeyer, Simone Melzi, Siva Reddy, Sneha Priscilla Makini, Soo-Hwan Lee, Spencer Torene, Sriharsha Hatwar, Stanislas Dehaene, Stefan +Divic, Stefano Ermon, Stella Biderman, Stephanie Lin, Stephen Prasad, Steven Piantadosi, Stuart Shieber, Summer Misherghi, Svetlana Kiritchenko, Swaroop Mishra, Tal Linzen, Tal Schuster, Tao Li, Tao Yu, Tariq Ali, Tatsunori Hashimoto, Te-Lin Wu, Théo Desbordes, Theodore Rothschild, Thomas Phan, Tianle Wang, Tiberius Nkinyili, Timo Schick, Timofei Kornev, Titus Tunduny, Tobias Gerstenberg, Trenton Chang, Trishala Neeraj, Tushar Khot, Tyler Shultz, Uri Shaham, Vedant Misra, Vera Demberg, Victoria Nyamai, Vikas Raunak, Vinay Venkatesh Ramasesh, vinay uday prabhu, Vishakh Padmakumar, Vivek Srikumar, William Fedus, William Saunders, William Zhang, Wout Vossen, Xiang Ren, Xiaoyu Tong, Xinran Zhao, Xinyi Wu, Xudong Shen, Yadollah Yaghoobzadeh, Yair Lakretz, Yasaman Bahri, Yejin Choi, Yichi Yang, Yiding Hao, Yifu Chen, Yonatan Belinkov, Yu Hou, Yufang Hou, Yuntao Bai, Zachary Seid, Zhuoye Zhao, Zijian Wang, Zijie J. Wang, Zirui Wang, and Ziyi Wu. + + +Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models. + + +Transactions on Machine Learning Research, 2023. + + +ISSN 2835-8856. + + +URL https://openreview.net/forum?id=uyTL5Bvosj. + +
  • + +
  • [43] + +Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Claire Cui, Olivier Bousquet, Quoc V. Le, and Ed H. Chi. + + +Least-to-Most Prompting Enables Complex Reasoning in Large Language Models. + + +In The Eleventh International Conference on Learning Representations, 2023. + + +URL https://openreview.net/forum?id=WZH7099tgfM. + +
  • + +
  • [44] + +A. Emin Orhan. + + +Compositional generalization in semantic parsing with pretrained transformers, December 2022. + + +URL http://arxiv.org/abs/2109.15101. + + +arXiv:2109.15101 [cs]. + +
  • + +
  • [45] + +Daniel Furrer, Marc van Zee, Nathan Scales, and Nathanael Schärli. + + +Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architectures, September 2021. + + +URL http://arxiv.org/abs/2007.08970. + + +arXiv:2007.08970 [cs]. + +
  • + +
  • [46] + +Róbert Csordás, Kazuki Irie, and Juergen Schmidhuber. + + +The Devil is in the Detail: Simple Tricks Improve Systematic Generalization of Transformers. + + +In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 619–634, Online and Punta Cana, Dominican Republic, 2021. Association for Computational Linguistics. + + +doi: 10.18653/v1/2021.emnlp-main.49. + + +URL https://aclanthology.org/2021.emnlp-main.49. + +
  • + +
  • [47] + +Linlu Qiu, Peter Shaw, Panupong Pasupat, Tianze Shi, Jonathan Herzig, Emily Pitler, Fei Sha, and Kristina Toutanova. + + +Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsing. + + +In Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang, editors, Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 9157–9179, Abu Dhabi, United Arab Emirates, December 2022. Association for Computational Linguistics. + + +doi: 10.18653/v1/2022.emnlp-main.624. + + +URL https://aclanthology.org/2022.emnlp-main.624/. + +
  • + +
  • [48] + +Jackson Petty, Sjoerd Steenkiste, Ishita Dasgupta, Fei Sha, Dan Garrette, and Tal Linzen. + + +The Impact of Depth on Compositional Generalization in Transformer Language Models. + + +In Kevin Duh, Helena Gomez, and Steven Bethard, editors, Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 7239–7252, Mexico City, Mexico, June 2024. Association for Computational Linguistics. + + +doi: 10.18653/v1/2024.naacl-long.402. + + +URL https://aclanthology.org/2024.naacl-long.402/. + +
  • + +
  • [49] + +Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D. Hwang, Soumya Sanyal, Sean Welleck, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, and Yejin Choi. + + +Faith and Fate: Limits of Transformers on Compositionality, June 2023. + + +URL http://arxiv.org/abs/2305.18654. + + +arXiv:2305.18654 [cs]. + +
  • + +
  • [50] + +Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah A. Smith, and Mike Lewis. + + +Measuring and Narrowing the Compositionality Gap in Language Models, May 2023. + + +URL http://arxiv.org/abs/2210.03350. + + +arXiv:2210.03350 [cs]. + +
  • + +
  • [51] + +Arian Hosseini, Alessandro Sordoni, Daniel Kenji Toyama, Aaron Courville, and Rishabh Agarwal. + + +Not All LLM Reasoners Are Created Equal. + + +In The 4th Workshop on Mathematical Reasoning and AI at NeurIPS’24, 2024. + + +URL https://openreview.net/forum?id=RcqAmkDJfI. + +
  • + +
  • [52] + +Zhuoyan Xu, Zhenmei Shi, and Yingyu Liang. + + +Do Large Language Models Have Compositional Ability? An Investigation into Limitations and Scalability. + + +In ICLR 2024 Workshop on Mathematical and Empirical Understanding of Foundation Models, 2024. + + +URL https://openreview.net/forum?id=4XPeF0SbJs. + +
  • + +
  • [53] + +Seyed Iman Mirzadeh, Keivan Alizadeh, Hooman Shahrokhi, Oncel Tuzel, Samy Bengio, and Mehrdad Farajtabar. + + +GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models. + + +In The Thirteenth International Conference on Learning Representations, 2025. + + +URL https://openreview.net/forum?id=AjXkRZIvjB. + +
  • + +
  • [54] + +Boshi Wang, Xiang Yue, Yu Su, and Huan Sun. + + +Grokking of Implicit Reasoning in Transformers: A Mechanistic Journey to the Edge of Generalization. + + +In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, editors, Advances in Neural Information Processing Systems, volume 37, pages 95238–95265. Curran Associates, Inc., 2024. + + +URL https://proceedings.neurips.cc/paper_files/paper/2024/file/ad217e0c7fecc71bdf48660ad6714b07-Paper-Conference.pdf. + +
  • + +
  • [55] + +Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva, and Sebastian Riedel. + + +Do Large Language Models Latently Perform Multi-Hop Reasoning? + + +In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10210–10229, Bangkok, Thailand, August 2024. Association for Computational Linguistics. + + +doi: 10.18653/v1/2024.acl-long.550. + + +URL https://aclanthology.org/2024.acl-long.550/. + +
  • + +
  • [56] + +Lukas Berglund, Meg Tong, Maximilian Kaufmann, Mikita Balesni, Asa Cooper Stickland, Tomasz Korbak, and Owain Evans. + + +The Reversal Curse: LLMs trained on “A is B” fail to learn “B is A”. + + +In The Twelfth International Conference on Learning Representations, 2024. + + +URL https://openreview.net/forum?id=GPKTIktA0k. + +
  • + +
  • [57] + +Apoorv Khandelwal and Ellie Pavlick. + + +How Do Language Models Compose Functions?, October 2025. + + +URL http://arxiv.org/abs/2510.01685. + + +arXiv:2510.01685 [cs]. + +
  • + +
  • [58] + +Brenden M. Lake and Marco Baroni. + + +Human-like systematic generalization through a meta-learning neural network. + + +Nature, 623(7985):115–121, November 2023. + + +ISSN 1476-4687. + + +doi: 10.1038/s41586-023-06668-3. + + +URL https://www.nature.com/articles/s41586-023-06668-3. + + +Publisher: Nature Publishing Group. + +
  • + +
  • [59] + +Simon Schug, Seijin Kobayashi, Yassir Akram, Joao Sacramento, and Razvan Pascanu. + + +Attention as a Hypernetwork. + + +In The Thirteenth International Conference on Learning Representations, 2025. + + +URL https://openreview.net/forum?id=V4K9h1qNxE. + +
  • + +
  • [60] + +Ryoma Kumon and Hitomi Yanaka. + + +Analyzing the Inner Workings of Transformers in Compositional Generalization. + + +In Luis Chiruzzo, Alan Ritter, and Lu Wang, editors, Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 8529–8540, Albuquerque, New Mexico, April 2025. Association for Computational Linguistics. + + +ISBN 979-8-89176-189-6. + + +URL https://aclanthology.org/2025.naacl-long.432/. + +
  • + +
  • [61] + +James Betker, Gabriel Goh, Li Jing, Tim Brooks, Jianfeng Wang, Linjie Li, Long Ouyang, Juntang Zhuang, Joyce Lee, Yufei Guo, and others. + + +Improving image generation with better captions. + + +Computer Science. https://cdn. openai. com/papers/dall-e-3. pdf, 2(3):8, 2023. + +
  • + +
  • [62] + +Imagen-Team-Google, Jason Baldridge, Jakob Bauer, Mukul Bhutani, Nicole Brichtova, Andrew Bunner, Lluis Castrejon, Kelvin Chan, Yichang Chen, Sander Dieleman, Yuqing Du, Zach Eaton-Rosen, Hongliang Fei, Nando de Freitas, Yilin Gao, Evgeny Gladchenko, Sergio Gómez Colmenarejo, Mandy Guo, Alex Haig, Will Hawkins, Hexiang Hu, Huilian Huang, Tobenna Peter Igwe, Christos Kaplanis, Siavash Khodadadeh, Yelin Kim, Ksenia Konyushkova, Karol Langner, Eric Lau, Rory Lawton, Shixin Luo, Soňa Mokrá, Henna Nandwani, Yasumasa Onoe, Aäron van den Oord, Zarana Parekh, Jordi Pont-Tuset, Hang Qi, Rui Qian, Deepak Ramachandran, Poorva Rane, Abdullah Rashwan, Ali Razavi, Robert Riachi, Hansa Srinivasan, Srivatsan Srinivasan, Robin Strudel, Benigno Uria, Oliver Wang, Su Wang, Austin Waters, Chris Wolff, Auriel Wright, Zhisheng Xiao, Hao Xiong, Keyang Xu, Marc van Zee, Junlin Zhang, Katie Zhang, Wenlei Zhou, Konrad Zolna, Ola Aboubakar, Canfer Akbulut, Oscar Akerlund, Isabela Albuquerque, Nina Anderson, Marco Andreetto, Lora +Aroyo, Ben Bariach, David Barker, Sherry Ben, Dana Berman, Courtney Biles, Irina Blok, Pankil Botadra, Jenny Brennan, Karla Brown, John Buckley, Rudy Bunel, Elie Bursztein, Christina Butterfield, Ben Caine, Viral Carpenter, Norman Casagrande, Ming-Wei Chang, Solomon Chang, Shamik Chaudhuri, Tony Chen, John Choi, Dmitry Churbanau, Nathan Clement, Matan Cohen, Forrester Cole, Mikhail Dektiarev, Vincent Du, Praneet Dutta, Tom Eccles, Ndidi Elue, Ashley Feden, Shlomi Fruchter, Frankie Garcia, Roopal Garg, Weina Ge, Ahmed Ghazy, Bryant Gipson, Andrew Goodman, Dawid Górny, Sven Gowal, Khyatti Gupta, Yoni Halpern, Yena Han, Susan Hao, Jamie Hayes, Jonathan Heek, Amir Hertz, Ed Hirst, Emiel Hoogeboom, Tingbo Hou, Heidi Howard, Mohamed Ibrahim, Dirichi Ike-Njoku, Joana Iljazi, Vlad Ionescu, William Isaac, Reena Jana, Gemma Jennings, Donovon Jenson, Xuhui Jia, Kerry Jones, Xiaoen Ju, Ivana Kajic, Christos Kaplanis, Burcu Karagol Ayan, Jacob Kelly, Suraj Kothawade, Christina Kouridi, Ira Ktena, Jolanda Kumakaw, Dana +Kurniawan, Dmitry Lagun, Lily Lavitas, Jason Lee, Tao Li, Marco Liang, Maggie Li-Calis, Yuchi Liu, Javier Lopez Alberca, Matthieu Kim Lorrain, Peggy Lu, Kristian Lum, Yukun Ma, Chase Malik, John Mellor, Thomas Mensink, Inbar Mosseri, Tom Murray, Aida Nematzadeh, Paul Nicholas, Signe Nørly, João Gabriel Oliveira, Guillermo Ortiz-Jimenez, Michela Paganini, Tom Le Paine, Roni Paiss, Alicia Parrish, Anne Peckham, Vikas Peswani, Igor Petrovski, Tobias Pfaff, Alex Pirozhenko, Ryan Poplin, Utsav Prabhu, Yuan Qi, Matthew Rahtz, Cyrus Rashtchian, Charvi Rastogi, Amit Raul, Ali Razavi, Sylvestre-Alvise Rebuffi, Susanna Ricco, Felix Riedel, Dirk Robinson, Pankaj Rohatgi, Bill Rosgen, Sarah Rumbley, Moonkyung Ryu, Anthony Salgado, Tim Salimans, Sahil Singla, Florian Schroff, Candice Schumann, Tanmay Shah, Eleni Shaw, Gregory Shaw, Brendan Shillingford, Kaushik Shivakumar, Dennis Shtatnov, Zach Singer, Evgeny Sluzhaev, Valerii Sokolov, Thibault Sottiaux, Florian Stimberg, Brad Stone, David Stutz, Yu-Chuan Su, Eric +Tabellion, Shuai Tang, David Tao, Kurt Thomas, Gregory Thornton, Andeep Toor, Cristian Udrescu, Aayush Upadhyay, Cristina Vasconcelos, Alex Vasiloff, Andrey Voynov, Amanda Walker, Luyu Wang, Miaosen Wang, Simon Wang, Stanley Wang, Qifei Wang, Yuxiao Wang, Ágoston Weisz, Olivia Wiles, Chenxia Wu, Xingyu Federico Xu, Andrew Xue, Jianbo Yang, Luo Yu, Mete Yurtoglu, Ali Zand, Han Zhang, Jiageng Zhang, Catherine Zhao, Adilet Zhaxybay, Miao Zhou, Shengqi Zhu, Zhenkai Zhu, Dawn Bloxwich, Mahyar Bordbar, Luis C. Cobo, Eli Collins, Shengyang Dai, Tulsee Doshi, Anca Dragan, Douglas Eck, Demis Hassabis, Sissie Hsiao, Tom Hume, Koray Kavukcuoglu, Helen King, Jack Krawczyk, Yeqing Li, Kathy Meier-Hellstern, Andras Orban, Yury Pinsky, Amar Subramanya, Oriol Vinyals, Ting Yu, and Yori Zwols. + + +Imagen 3, December 2024. + + +URL http://arxiv.org/abs/2408.07009. + + +arXiv:2408.07009 [cs]. + +
  • + +
  • [63] + +Yongyi Yang, Core Francisco Park, Ekdeep Singh Lubana, Maya Okawa, Wei Hu, and Hidenori Tanaka. + + +Swing-by Dynamics in Concept Learning and Compositional Generalization, March 2025a. + + +URL http://arxiv.org/abs/2410.08309. + + +arXiv:2410.08309 [cs]. + +
  • + +
  • [64] + +Qiyao Liang, Ziming Liu, Mitchell Ostrow, and Ila Fiete. + + +How Diffusion Models Learn to Factorize and Compose. + + +In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, editors, Advances in Neural Information Processing Systems, volume 37, pages 15121–15148. Curran Associates, Inc., 2024. + + +URL https://proceedings.neurips.cc/paper_files/paper/2024/file/1b60893887328a6a50dd00ae0d5ed51a-Paper-Conference.pdf. + +
  • + +
  • [65] + +Lucas Y. Tian, Kedar U. Garzón, Adam G. Rouse, Mark A. G. Eldridge, Marc H. Schieber, Xiao-Jing Wang, Joshua B. Tenenbaum, and Winrich A. Freiwald. + + +Neural representation of action symbols in primate frontal cortex, March 2025. + + +URL http://biorxiv.org/lookup/doi/10.1101/2025.03.03.641276. + +
  • + +
  • [66] + +Pedro Savarese, Itay Evron, Daniel Soudry, and Nathan Srebro. + + +How do infinite width bounded norm networks look in function space? + + +In Proceedings of the Thirty-Second Conference on Learning Theory, pages 2667–2690. PMLR, June 2019. + + +URL https://proceedings.mlr.press/v99/savarese19a.html. + + +ISSN: 2640-3498. + +
  • + +
  • [67] + +Lénaïc Chizat and Francis Bach. + + +Implicit Bias of Gradient Descent for Wide Two-layer Neural Networks Trained with the Logistic Loss. + + +In Proceedings of Thirty Third Conference on Learning Theory, pages 1305–1338. PMLR, July 2020. + + +URL https://proceedings.mlr.press/v125/chizat20a.html. + + +ISSN: 2640-3498. + +
  • + +
  • [68] + +Etienne Boursier, Loucas Pillaud-Vivien, and Nicolas Flammarion. + + +Gradient flow dynamics of shallow ReLU networks for square loss and orthogonal inputs. + + +Advances in Neural Information Processing Systems, 35:20105–20118, December 2022. + + +URL https://papers.nips.cc/paper_files/paper/2022/hash/7eeb9af3eb1f48e29c05e8dd3342b286-Abstract-Conference.html. + +
  • + +
  • [69] + +Roee Hendel, Mor Geva, and Amir Globerson. + + +In-Context Learning Creates Task Vectors. + + +In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, pages 9318–9333, Singapore, December 2023. Association for Computational Linguistics. + + +doi: 10.18653/v1/2023.findings-emnlp.624. + + +URL https://aclanthology.org/2023.findings-emnlp.624/. + +
  • + +
  • [70] + +Grace Luo, Trevor Darrell, and Amir Bar. + + +Vision-Language Models Create Cross-Modal Task Representations, May 2025. + + +URL http://arxiv.org/abs/2410.22330. + + +arXiv:2410.22330 [cs]. + +
  • + +
  • [71] + +Liu Yang, Ziqian Lin, Kangwook Lee, Dimitris Papailiopoulos, and Robert Nowak. + + +Task Vectors in In-Context Learning: Emergence, Formation, and Benefit, January 2025b. + + +URL http://arxiv.org/abs/2501.09240. + + +arXiv:2501.09240 [cs]. + +
  • + +
  • [72] + +Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. + + +Density estimation using Real NVP. + + +February 2017. + + +URL https://openreview.net/forum?id=HkpbnH9lx. + +
  • + +
  • [73] + +Ilya Loshchilov and Frank Hutter. + + +Decoupled Weight Decay Regularization, January 2019. + + +URL http://arxiv.org/abs/1711.05101. + + +arXiv:1711.05101 [cs, math]. + +
  • + +
  • [74] + +Stability AI. + + +stabilityai/stable-diffusion-xl-base-1.0 · Hugging Face, January 2025a. + + +URL https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0. + +
  • + +
  • [75] + +Stability AI. + + +stabilityai/stable-diffusion-3-medium · Hugging Face, January 2025b. + + +URL https://huggingface.co/stabilityai/stable-diffusion-3-medium. + +
  • + +
  • [76] + +Stability AI. + + +stabilityai/stable-diffusion-3.5-medium · Hugging Face, January 2025c. + + +URL https://huggingface.co/stabilityai/stable-diffusion-3.5-medium. + +
  • + +
  • [77] + +Google Deepmind. + + +Gemini 2.0 Flash, 2025. + + +URL https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-0-flash. + +
  • + +
  • [78] + +James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. + + +JAX: composable transformations of Python+NumPy programs, 2018. + + +URL http://github.com/google/jax. + +
  • + +
  • [79] + +Jonathan Heek, Anselm Levskaya, Avital Oliver, Marvin Ritter, Bertrand Rondepierre, Andreas Steiner, and Marc van Zee. + + +Flax: A neural network library and ecosystem for JAX, 2023. + + +URL http://github.com/google/flax. + +
  • + +
  • [80] + +Igor Babuschkin, Kate Baumli, Alison Bell, Surya Bhupatiraju, Jake Bruce, Peter Buchlovsky, David Budden, Trevor Cai, Aidan Clark, Ivo Danihelka, Antoine Dedieu, Claudio Fantacci, Jonathan Godwin, Chris Jones, Ross Hemsley, Tom Hennigan, Matteo Hessel, Shaobo Hou, Steven Kapturowski, Thomas Keck, Iurii Kemaev, Michael King, Markus Kunesch, Lena Martens, Hamza Merzic, Vladimir Mikulik, Tamara Norman, George Papamakarios, John Quan, Roman Ring, Francisco Ruiz, Alvaro Sanchez, Rosalia Schneider, Eren Sezener, Stephen Spencer, Srivatsan Srinivasan, Wojciech Stokowiec, Luyu Wang, Guangyao Zhou, and Fabio Viola. + + +The DeepMind JAX Ecosystem, 2020. + + +URL http://github.com/deepmind. + +
  • + +
  • [81] + +Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. + + +PyTorch: an imperative style, high-performance deep learning library. + + +In Advances in Neural Information Processing Systems, 2019. + +
  • + +
  • [82] + +Simon Willison. + + +llm: CLI utility and Python library for interacting with Large Language Models from organizations like OpenAI, Anthropic and Gemini plus local models installed on your own machine., 2023. + + +URL https://github.com/simonw/llm. + +
  • + +
  • [83] + +F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. + + +Scikit-learn: Machine Learning in Python. + + +Journal of Machine Learning Research, 12:2825–2830, 2011. + +
  • + +
  • [84] + +Lukas Biewald. + + +Experiment Tracking with Weights and Biases, 2020. + + +URL https://www.wandb.com/. + +
  • + +
  • [85] + +Plotly Technologies Inc. + + +Collaborative data science, 2015. + + +URL https://plot.ly. + + +Place: Montreal, QC Publisher: Plotly Technologies Inc. + +
  • + +
  • [86] + +Charlie Marsh. + + +uv: An extremely fast Python package and project manager, written in Rust., 2024. + + +URL https://pypi.org/project/uv/. + +
  • + +
+
+
+
+

Appendix

+ +
+

Appendix A Proofs

+ +
+

A.1 Connected support

+ +
+

We briefly state the definition of connected support as introduced by [18] using our notation.

+
+
+
Definition A.1 (Connected support).
+
+

Let 𝒯=(C,p:𝒛↦p(𝒛),p:𝒙↦p(𝒙))\mathcal{T}=(C,p:\bm{z}\mapsto p(\bm{z}),p:\bm{x}\mapsto p(\bm{x})) be a compositional task family, and let 𝒛↦ptrain​(𝒛)\bm{z}\mapsto p^{\text{train}}(\bm{z}) be a distribution over 𝒵\mathcal{Z} with discrete support supp​(ptrain)⊆𝒵\text{supp}(p^{\text{train}})\subseteq\mathcal{Z}. +We say that supp​(ptrain)\text{supp}(p^{\text{train}}) is connected if the graph G=(V,E)G=(V,E) is connected, where V={𝒛∈𝒵∣ptrain​(𝒛)>0}V=\{\bm{z}\in\mathcal{Z}\mid p^{\text{train}}(\bm{z})>0\} is the set of vertices and E={(𝒛,𝒛′)∈V×V∣∃i∈{1,2,…,M}​ such that ​zi=zi′}E=\{(\bm{z},\bm{z}^{\prime})\in V\times V\mid\exists i\in\{1,2,\ldots,M\}\text{ such that }z_{i}=z^{\prime}_{i}\} is the set of edges.

+
+
+
+

In other words, two training task constituents are connected by an edge if and only if they share at least one element at the same position. +Section A.3 of [18] provides an example that demonstrates how a student hypernetwork can perfectly fit the training distribution of a different teacher hypernetwork if the task support is compositional but disconnected. +This implies that there exist two distinct hyperteachers that have the same training distribution. +In such cases, any student, including the multilayer perceptron considered here, is not guaranteed to generalize even when perfectly fitting the training tasks. +To avoid those cases, connected support is generally required for the hyperteacher.

+
+
+
+

A.2 Proof of Theorem 3.1

+ +
+

In the following, we will show that a multilayer perceptron can approximate a hyperteacher using a linear number of neurons in the number of task modules. +We first state the result for the single layer hyperteacher we primarily consider in the main text, before extending the result to hyperteachers with multiple layers.

+
+
+
A.2.1 Single layer hyperteacher
+ +
+

Let us recall the definition of the hyperteacher in Equation 1 with MM modules, II input neurons, HH hidden neurons and OO output neurons,

+ + + + + + +
(𝒙,𝒛)↦𝛀​ReLU​(∑m=1M∑i=1I𝚯m,i​zm​xi),\displaystyle(\bm{x},\bm{z})\mapsto\bm{\Omega}\;\mathrm{ReLU}\left(\sum_{m=1}^{M}\sum_{i=1}^{I}\bm{\Theta}_{m,i}z_{m}x_{i}\right),
+

where {𝚯m∈ℝI×H}m=1M\{\bm{\Theta}_{m}\in\mathbb{R}^{I\times H}\}_{m=1}^{M} are the modules, 𝛀∈ℝH×O\bm{\Omega}\in\mathbb{R}^{H\times O} is a readout projection and 𝒛∈[0,1]M\bm{z}\in[0,1]^{M} are the task constituents. +We are restating Theorem 3.1 here for convenience.

+
+
+
Theorem 0 3.1.
+
+

Let (𝚯m∈ℝI×H)\left(\bm{\Theta}_{m}\in\mathbb{R}^{I\times H}\right) be a sequence of uniformly bounded matrices. +Then, for any M∈ℕM\in\mathbb{N}, ε>0\varepsilon>0, and on any compact input set, 𝒳×𝒵\mathcal{X}\times\mathcal{Z} with 𝒵={𝐳:‖𝐳‖1≤1}\mathcal{Z}=\{\bm{z}:\|\bm{z}\|_{1}\leq 1\}, there exists a ReLU multilayer perceptron that approximates a hyperteacher to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm using 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons.

+
+
+
+
Proof.
+
+

We will prove the statement, by providing an explicit construction of a ReLU multilayer perceptron that approximates a hyperteacher. +The construction relies on two key lemmas: in Lemma A.2, we show that the square function can be approximated in a ReLU multilayer perceptron, which we use in Lemma A.3 to show how the multiplication of two numbers can be approximated. +Based on these building blocks, we then provide the construction of the full hyperteacher approximation.

+
+
+
Lemma A.2.
+
+

For any ε>0\varepsilon>0, there exists a ReLU multilayer perceptron that approximates

+ + + + + + +
square:={[0,1]→ℝx↦x2\mathrm{square}:=\left\{\begin{array}[]{clc}[0,1]&\to&\mathbb{R}\\ +x&\mapsto&x^{2}\end{array}\right.
+

to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm using 𝒪⁡(1/ε2)\mathcal{O}(1/\varepsilon^{2}) neurons.

+
+
+
+
Proof.
+
+

Let us first consider how any function ff can be approximated by a piecewise linear function LL matching ff on xi≔inx_{i}\coloneqq\frac{i}{n} for i∈{0,1,…,n}i\in\{0,1,\dots,n\}, where nn is a fixed integer. We define

+ + + + + + + +
L:x↦f⁡(0)+∑i(CLOSE\displaystyle L:x\mapsto f(0)+\sum_{i}\Big(OPENf⁡(xi+1)−f⁡(xi)xi+1−xi​ReLU​(x−xi)−f⁡(xi)−f⁡(xi−1)xi−xi−1​ReLU​(x−xi−1))\displaystyle\frac{f(x_{i+1})-f(x_{i})}{x_{i+1}-x_{i}}\mathrm{ReLU}(x-x_{i})-\frac{f(x_{i})-f(x_{i-1})}{x_{i}-x_{i-1}}\mathrm{ReLU}(x-x_{i-1})\Big)
+

where f⁡(x0)−f⁡(x−1)x0−x−1\frac{f(x_{0})-f(x_{-1})}{x_{0}-x_{-1}} is set to 0 by convention.

+
+
+

It can easily be verified that LL is linear on any interval [xi,xi+1][x_{i},x_{i+1}] for i∈{0,1,…,n}i\in\{0,1,\dots,n\}, and coincides with ff on {in,i∈{0,1,…,n}}\left\{\frac{i}{n},i\in\{0,1,\dots,n\}\right\}. +We now want to bound ‖f−L‖∞\|f-L\|_{\infty}. +While more general results can be shown for f∈𝒞2f\in\mathcal{C}^{2}, for f=squaref=\mathrm{square} we can derive our result in the following simple way: +for any xx on any interval [xi,xi+1][x_{i},x_{i+1}],

+ + + + + + +
L⁡(x)=f⁡(xi+1)−f⁡(xi)xi+1−xi​(x−xi)+f⁡(xi)L(x)=\frac{f(x_{i+1})-f(x_{i})}{x_{i+1}-x_{i}}(x-x_{i})+f(x_{i})
+

so

+ + + + + + + + + + + + + + + + + + + +
|L⁡(x)−f⁡(x)|\displaystyle|L(x)-f(x)|=|xi+12−xi2xi+1−xi​(x−xi)+xi2−x2|\displaystyle=\left|\frac{x_{i+1}^{2}-x_{i}^{2}}{x_{i+1}-x_{i}}(x-x_{i})+x_{i}^{2}-x^{2}\right|
=(x−xi)​(xi+1−x)\displaystyle=(x-x_{i})(x_{i+1}-x)
≤ε\displaystyle\leq\varepsilonfor ​n≥1/ε\displaystyle\text{for }n\geq 1/\sqrt{\varepsilon}
+

∎

+
+
+
+

An immediate corollary is that this result holds on any fixed bounded set. +We now show how to multiply two numbers using a ReLU multilayer perceptron:

+
+
+
Lemma A.3.
+
+

For any ε>0\varepsilon>0, there exists a ReLU multilayer perceptron that approximates

+ + + + + + +
multiply:={[0,1]2→ℝ(x,y)↦x​y\mathrm{multiply}:=\left\{\begin{array}[]{clc}[0,1]^{2}&\to&\mathbb{R}\\ +(x,y)&\mapsto&xy\end{array}\right.
+

to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm using 𝒪⁡(1/ε2)\mathcal{O}(1/\varepsilon^{2}) neurons.

+
+
+
+
Proof.
+
+

Using the polarization identity x​y=(x+y)2−(x−y)24xy=\frac{(x+y)^{2}-(x-y)^{2}}{4}, we can approximate multiply⁡(x,y)\mathrm{multiply}(x,y) with a ReLU multilayer perceptron as follows:

+ + + + + + +
(x,y)↦(x+y,x−y)↦((x+y)2,(x−y)2)↦x​y(x,y)\mapsto(x+y,x-y)\mapsto((x+y)^{2},(x-y)^{2})\mapsto xy
+

∎

+
+
+
+

Again, this result holds on any fixed bounded set.

+
+
+

We can now state a construction for a multilayer perceptron that approximates the preactivation of the hyperteacher, namely (𝒙,𝒛)↦∑m=1M∑i=1I𝚯m,i​zm​xi(\bm{x},\bm{z})\mapsto\sum_{m=1}^{M}\sum_{i=1}^{I}\bm{\Theta}_{m,i}z_{m}x_{i} using a linear number of neurons in the number of task modules.

+
+
+
Lemma A.4.
+
+

Let (𝚯m∈ℝI×H)\left(\bm{\Theta}_{m}\in\mathbb{R}^{I\times H}\right) be a sequence of uniformly bounded matrices. +Then, for any M∈ℕM\in\mathbb{N}, ε>0\varepsilon>0, and on any compact input set, 𝒳×𝒵\mathcal{X}\times\mathcal{Z} with 𝒵={𝐳:‖𝐳‖1≤1}\mathcal{Z}=\{\bm{z}:\|\bm{z}\|_{1}\leq 1\}, there exists a ReLU multilayer perceptron that approximates (𝐱,𝐳)↦∑m=1M∑i=1I𝚯m,i​zm​xi(\bm{x},\bm{z})\mapsto\sum_{m=1}^{M}\sum_{i=1}^{I}\bm{\Theta}_{m,i}z_{m}x_{i} to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm using 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons.

+
+
+
+
Proof.
+
+

We construct our multilayer perceptron layer by layer, tracking the number of neurons required for each layer and the error it incurs in the approximation:

+
    +
  • • +
    +

    The first layer copies the input 𝒙\bm{x} and computes (𝒙,𝒛)↦(∑m=1Mzm​Θm,i,h)i,h(\bm{x},\bm{z})\mapsto(\sum_{m=1}^{M}z_{m}\Theta_{m,i,h})_{i,h} for each i∈{1,…,I}i\in\{1,\ldots,I\} and h∈{1,…,O}h\in\{1,\ldots,O\}, canceling the ReLUs by adjusting the biases accordingly given that the input is bounded. This requires 𝒪⁡(M)\mathcal{O}(M) neurons.

    +
  • +
  • • +
    +

    Using Lemma A.3 with error εI\frac{\varepsilon}{I}, the next three layers multiply ∑m=1Mzm​Θm,i,h\sum_{m=1}^{M}z_{m}\Theta_{m,i,h} by xix_{i} for each i∈{1,…,I}i\in\{1,\ldots,I\} and h∈{1,…,O}h\in\{1,\ldots,O\}, using 𝒪⁡(1/ε)\mathcal{O}(1/\sqrt{\varepsilon}) neurons.

    +
  • +
  • • +
    +

    The next layer sums over ii for each h∈{1,…,O}h\in\{1,\ldots,O\}, again canceling the ReLU nonlinearity by adjusting the biases. +This requires MM neurons and incurs a final error of at most ε\varepsilon since each output neuron sums the error coming from II neurons.

    +
  • +
+

In total, this construction uses 𝒪⁡(M)+𝒪⁡(1ε)+𝒪⁡(M)=𝒪⁡(1ε+M)\mathcal{O}(M)+\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}\right)+\mathcal{O}(M)=\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons. +∎

+
+
+
+

Since ReLU\mathrm{ReLU} is a contracting function, the output error after applying the ReLU\mathrm{ReLU} activation is also ε\varepsilon. +Finally, we can straightforwardly apply the output projection 𝛀\bm{\Omega} using a constant number of neurons, scaling the error by a constant. +∎

+
+
+
+
+
A.2.2 Multilayer hyperteacher
+ +
+

We now consider a multilayer hyperteacher, where a linear hypernetwork configures a multilayer perceptron with LL layers, HlH_{l} neurons for layer ll, H0=IH_{0}=I input neurons and HL=OH_{L}=O output neurons. +In this case, we have C⁡(𝒛)≔𝛀​𝒉LC(\bm{z})\coloneqq\bm{\Omega}\bm{h}_{L}, a sequence of hidden layers,

+ + + + + + +
𝒉l+1=ReLU(∑m=1Mzm​𝚯l,m⏟=:𝑾l​(𝒛)𝒉l),\displaystyle\bm{h}_{l+1}=\mathrm{ReLU}\Big(\underbrace{\sum_{m=1}^{M}z_{m}\bm{\Theta}_{l,m}}_{=:\bm{W}_{l}(\bm{z})}\bm{h}_{l}\Big),
+

with input 𝒉0=𝒙\bm{h}_{0}=\bm{x}, a sequence of modules for each layer, {𝚯l,m∈ℝHl×Hl+1}l=1,…,Lm=1,…,M\left\{\bm{\Theta}_{l,m}\in\mathbb{R}^{H_{l}\times H_{l+1}}\right\}_{\begin{subarray}{c}l=1,\ldots,L\\ +m=1,\ldots,M\end{subarray}}, and output projection 𝛀∈ℝHL−1×O\bm{\Omega}\in\mathbb{R}^{H_{L-1}\times O}.

+
+
+
Theorem A.5.
+
+

Let (𝚯l,m∈ℝHl×Hl+1)\left(\bm{\Theta}_{l,m}\in\mathbb{R}^{H_{l}\times H_{l+1}}\right) be a sequence of uniformly bounded matrices. +Then, for any M∈ℕM\in\mathbb{N}, ε>0\varepsilon>0, fixed LL and on any compact input set, 𝒳×𝒵\mathcal{X}\times\mathcal{Z} with 𝒵={𝐳:‖𝐳‖1≤1}\mathcal{Z}=\{\bm{z}:\|\bm{z}\|_{1}\leq 1\}, there exists a ReLU multilayer perceptron that approximates an LL-layer hyperteacher to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm using 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons.

+
+
+
+
Proof.
+
+

First, observe that we can copy the task constituents 𝒛\bm{z} to each layer using MM neurons per layer. +Because of this, we will assume that we have access to the task constituents at each layer. +The proof then follows a similar approach to the proof of the single layer case of Theorem 3.1 but we must now consider how the error propagates through each layer. +For the sake of simplicity, we will ignore the readout projection (i.e. assume 𝛀=𝑰\bm{\Omega}=\bm{I}), since this part of the proof is identical.

+
+
+

We prove by induction on the number of layers LL that we can approximate 𝒉L\bm{h}_{L} to within ε\varepsilon error in the ∥⋅∥∞\|\cdot\|_{\infty} norm with 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons. +The base case for L=0L=0 holds by definition, i.e. 𝒉0=𝒙\bm{h}_{0}=\bm{x}. +Now, assume the result holds for an LL-layer hyperteacher. +Let ε>0\varepsilon>0 and 𝒳\mathcal{X}, 𝒵\mathcal{Z} be compact sets with 𝒵={𝒛:‖𝒛‖1≤1}\mathcal{Z}=\{\bm{z}:\|\bm{z}\|_{1}\leq 1\}. +By the induction hypothesis, let h^L\hat{h}_{L} be a multilayer perceptron that approximates 𝒉L\bm{h}_{L} on the compact set 𝒳×𝒵\mathcal{X}\times\mathcal{Z}, up to error ε\varepsilon in the ∥⋅∥∞\|\cdot\|_{\infty} norm.

+
+
+

By Lemma A.4, let gg be a multilayer perceptron that approximates +(𝒙,𝒛)↦∑m=1Mzm​𝚯L+1,m​𝒙(\bm{x},\bm{z})\mapsto\sum_{m=1}^{M}z_{m}\bm{\Theta}_{L+1,m}\bm{x} +on B¯ε×𝒵\bar{B}_{\varepsilon}\times\mathcal{Z}, where B¯ε\bar{B}_{\varepsilon} is the closed ε\varepsilon-ball around h^L​(𝒳×𝒵)\hat{h}_{L}(\mathcal{X}\times\mathcal{Z}). +Since the image of a compact set formed by a continuous map is compact and the closed epsilon ball around a compact set in a finite-dimensional space is compact, B¯ε\bar{B}_{\varepsilon} is also a compact set.

+
+
+

Let us now show that (𝒙,𝒛)↦ReLU⁡(g⁡(h^L​(𝒙,𝒛),𝒛))(\bm{x},\bm{z})\mapsto\mathrm{ReLU}\left(g(\hat{h}_{L}(\bm{x},\bm{z}),\bm{z})\right) approximates 𝒉L+1\bm{h}_{L+1} on 𝒳×𝒵\mathcal{X}\times\mathcal{Z} up to error 𝒪⁡(ε)\mathcal{O}(\varepsilon). +We define 𝚫L≔h^L​(𝒙,𝒛)−𝒉L\bm{\Delta}_{L}\coloneqq\hat{h}_{L}(\bm{x},\bm{z})-\bm{h}_{L} for LL layers. +Then, for L+1L+1 layers it holds that,

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
‖𝚫L+1‖∞\displaystyle\|\bm{\Delta}_{L+1}\|_{\infty}=‖ReLU⁡(g⁡(𝒉L+𝚫L,𝒛))−𝒉L+1‖∞\displaystyle=\|\mathrm{ReLU}(g(\bm{h}_{L}+\bm{\Delta}_{L},\bm{z}))-\bm{h}_{L+1}\|_{\infty}
=∥g(𝒉L+𝚫L,𝒛)−𝑾L(𝒛)𝒉L∥∞(since ReLU is contracting)\displaystyle=\|g(\bm{h}_{L}+\bm{\Delta}_{L},\bm{z})-\bm{W}_{L}(\bm{z})\bm{h}_{L}\|_{\infty}\quad\quad\text{(since }\mathrm{ReLU}\text{ is contracting)}
=‖g⁡(𝒉L+𝚫L,𝒛)−𝑾L​(𝒛)​(𝒉L+𝚫L)+𝑾L​(𝒛)​𝚫L‖∞\displaystyle=\|g(\bm{h}_{L}+\bm{\Delta}_{L},\bm{z})-\bm{W}_{L}(\bm{z})(\bm{h}_{L}+\bm{\Delta}_{L})+\bm{W}_{L}(\bm{z})\bm{\Delta}_{L}\|_{\infty}
≤‖g⁡(𝒉L+𝚫L,𝒛)−𝑾L​(𝒛)​(𝒉L+𝚫L)‖∞+‖𝑾L​(𝒛)‖∞→∞​‖𝚫L‖∞\displaystyle\leq\|g(\bm{h}_{L}+\bm{\Delta}_{L},\bm{z})-\bm{W}_{L}(\bm{z})(\bm{h}_{L}+\bm{\Delta}_{L})\|_{\infty}+\|\bm{W}_{L}(\bm{z})\|_{\infty\to\infty}\|\bm{\Delta}_{L}\|_{\infty}
=ε+𝒪⁡(ε)=𝒪⁡(ε),\displaystyle=\varepsilon+\mathcal{O}(\varepsilon)=\mathcal{O}(\varepsilon),
+

where ∥⋅∥∞→∞\|\cdot\|_{\infty\to\infty} is the operator norm induced by the ∥⋅∥∞\|\cdot\|_{\infty} norm. +The final error can be reduced to be at most ε\varepsilon by adjusting the number of neurons by a constant factor.

+
+
+

Finally, let us bound the number of neurons required for the full construction. +We used 𝒪⁡(M)\mathcal{O}(M) neurons for copying 𝒛\bm{z} to each layer, 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons for the construction of h^L\hat{h}_{L}, and 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons for the construction of gg, which sums up to 𝒪⁡(1ε+M)\mathcal{O}\left(\frac{1}{\sqrt{\varepsilon}}+M\right) neurons. +∎

+
+
+
+
+
+

A.3 Proof of Theorem 4.1

+ +
+
Proof.
+
+

Let X,Z,RX,Z,R be independent random variables sampled according to their respective distributions. +We define the event made of the set of pairs of task constituents 𝒛\bm{z} and seeds rr such that the accuracy is higher than 1−δ1-\sqrt{\delta}:

+ + + + + + + + + + + + +
A\displaystyle A≔[𝔼[𝟙{g(φ(Z,R),X)=C(Z)(X)}|Z,R]≥1−δ]\displaystyle\coloneqq\left[\mathbb{E}\left[\mathbbm{1}\{g(\varphi(Z,R),X)=C(Z)(X)\}|Z,R\right]\geq 1-\sqrt{\delta}\right]
={(𝒛,r)∈𝒵×ℕ∣ℙ[g(φ(𝒛,r),X)=C(𝒛)(X)]≥1−δ}\displaystyle=\left\{(\bm{z},r)\in\mathcal{Z}\times\mathbb{N}\mid\mathbb{P}[g(\varphi(\bm{z},r),X)=C(\bm{z})(X)]\geq 1-\sqrt{\delta}\right\}
+
+
+

where the expectation is taken over XX. +By Markov’s inequality, and the first assumption, this set can’t be too small. Indeed,

+ + + + + + + + + + + + + + + + +
ℙ⁡[¬A]\displaystyle\mathbb{P}[\neg A]<𝔼[𝟙{g(φ(Z,R),X)≠C(Z)(X)}]δ\displaystyle<\frac{\mathbb{E}\left[\mathbbm{1}\{g(\varphi(Z,R),X)\neq C(Z)(X)\}\right]}{\sqrt{\delta}}by Markov’s inequality
<δ\displaystyle<\sqrt{\delta}by the first assumption
+
+
+

We now show that for all (𝒛,r),(𝒛′,r′)∈A⊂𝒵×ℕ(\bm{z},r),(\bm{z^{\prime}},r^{\prime})\in A\subset\mathcal{Z}\times\mathbb{N}

+ + + + + + +
φ⁡(𝒛,r)=φ⁡(𝒛′,r′)⟹𝒛=𝒛′.\varphi(\bm{z},r)=\varphi(\bm{z^{\prime}},r^{\prime})\implies\bm{z}=\bm{z^{\prime}}.
+
+
+

Indeed, let (𝒛,r),(𝒛′,r′)∈A⊂𝒵×ℕ(\bm{z},r),(\bm{z^{\prime}},r^{\prime})\in A\subset\mathcal{Z}\times\mathbb{N}, with 𝒛^≔φ⁡(𝒛,r)=φ⁡(𝒛′,r′)\bm{\hat{z}}\coloneqq\varphi(\bm{z},r)=\varphi(\bm{z^{\prime}},r^{\prime}).

+
+
+

We have, by definition of AA,

+ + + + + + + + + + +
ℙ[g(𝒛^,X)=C(𝒛)(X)]≥1−δ\displaystyle\mathbb{P}[g(\bm{\hat{z}},X)=C(\bm{z})(X)]\geq 1-\sqrt{\delta}
ℙ[g(𝒛^,X)=C(𝒛′)(X)]≥1−δ\displaystyle\mathbb{P}[g(\bm{\hat{z}},X)=C(\bm{z^{\prime}})(X)]\geq 1-\sqrt{\delta}
+
+
+

so by union-bound, it holds

+
+
+ + + + + + +
ℙ[C(𝒛)(X)=C(𝒛′)(X)]≥1−2δ\mathbb{P}[C(\bm{z})(X)=C(\bm{z^{\prime}})(X)]\geq 1-2\sqrt{\delta}
+
+
+

which is only possible if 𝒛=𝒛′\bm{z}=\bm{z^{\prime}} given the second assumption.

+
+
+

We now define

+ + + + + + +
ϕ:{𝒵′→𝒵𝒛^↦𝒛 for any ​(𝒛,r)∈φ−1​(𝒛^) if ​𝒛^∈φ⁡(A)𝒛^↦𝟎 otherwise\phi:\left\{\begin{array}[]{cccll}\mathcal{Z^{\prime}}&\to&\mathcal{Z}&\\ +\bm{\hat{z}}&\mapsto&\bm{z}&\text{ for any }(\bm{z},r)\in\varphi^{-1}(\bm{\hat{z}})&\text{ if }\bm{\hat{z}}\in\varphi(A)\\ +\bm{\hat{z}}&\mapsto&\bm{0}&&\text{ otherwise}\end{array}\right.
+
+
+

ϕ\phi is uniquely defined because of the previous property.

+
+
+

We have

+ + + + + + +
ℙ[ϕ(φ(Z,R))=Z]≥ℙ[(Z,R)∈A]≥1−δ\mathbb{P}[\phi(\varphi(Z,R))=Z]\geq\mathbb{P}[(Z,R)\in A]\geq 1-\sqrt{\delta}
+

which proves our statement. +∎

+
+
+
+
+
+
+

Appendix B Additional results

+ +
+

B.1 Compositional generalization on the preference grid

+ +
+

The findings in Section 3 and Section 4.1 focus on the hyperteacher task family. +In the following, we show that all findings can be reproduced on the compositional preference family introduced by [18].

+
+
+

In Figure 7 we show, that scaling data and model size leads to compositional generalization on the compositional preference task family. +This holds for various linear and nonlinear task encodings as further shown in Table 2. +Note, that we are not able to evaluate the fewshot task encoding of the main text since the resulting input dimension is prohibitively large. +Figure 8 shows that non-compositional and disconnected task support as well as rarely encountering a few modules interferes with compositional generalization. +And finally, Figure 9 demonstrates that also on the compositional preference task family, compositional generalization and linear decodability of the task constituents from the hidden activations of the model are correlated.

+
+
+
+
+
Figure 7: Scaling data and model size leads to compositional generalization. Top Scaling the number of training tasks by increasing the number of modules, task components or decreasing the fraction of tasks held-out from training leads to compositional generalization on the compositional preference task family. Bottom Scaling model size by increasing the number of hidden neurons or the number of hidden layers leads to compositional generalization on the compositional preference task family across different task encodings. Error bars denote SEM over three seeds.
+
+
+
Table 2: Compositional generalization emerges across task encodings. Comparison of the decodability of the task constituents from the hidden activations (Task decoder) and compositional generalization performance for linear and nonlinear task encodings on the compositional preference task family with M=16M=16, K=3K=3. For the linear Identity, Orthogonal and Language task encoding, we report the decodability of task constituents from the first layer whereas for the nonlinear Invertible NN (with 2 layers) and Interval shuffle encodings we report it for the second layer. As opposed to linear task encodings, for nonlinear task encodings the decodability of task constituents is higher in the second layer compared to the first layer suggesting that the first layer is used to linearize the task constituents. We additionally show the linear decodability of the task constituents directly from the task encoding itself (Input decoder), which allows to distinguish linear from nonlinear task encodings. ±\pm SEM over three seeds.
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Task encodingTask decoder (R²)Embedding decoder (R²)Comp. gen. (acc.)
Identity0.95±0.0120.95\pm 0.0121.00±0.0001.00\pm 0.0000.92±0.0040.92\pm 0.004
Orthogonal0.96±0.0080.96\pm 0.0081.00±0.0001.00\pm 0.0000.92±0.0060.92\pm 0.006
Language0.98±0.0040.98\pm 0.0041.00±0.0001.00\pm 0.0000.92±0.0040.92\pm 0.004
Invertible NN0.93±0.0050.93\pm 0.0050.74±0.0180.74\pm 0.0180.82±0.0090.82\pm 0.009
Interval shuffle0.90±0.0220.90\pm 0.0220.72±0.0830.72\pm 0.0830.84±0.0170.84\pm 0.017
+
+
+
Figure 8: The support of the training distribution needs to sufficiently cover the task space.: Compositional generalization as a function of the different types of task support on the compositional preference task family for M=16M=16 and K=3K=3.
+
+
+
+
+
Figure 9: Compositional generalization correlates with linear decodability of task constituents. Top Relationship between linear decodability of the task constituents and compositional generalization across instantiations of the compositional preference task family with M=8M=8 preferences and varying KK. Bottom Relationship between linear decodability of the task constituents and compositional generalization across different task encodings for varying model sizes on the compositional preference task family with M=16M=16, K=3K=3. Error bars denote SEM over three seeds. Top/Bottom We report the R2R^{2} and corresponding p-value for an ordinary least square estimator in the facet titles.
+
+
+
+

B.2 Scaling data leads to compositional generalization in transformers

+ +
+

In addition to using multilayer perceptrons as done in the main text, we investigate whether the widely used transformer architecture similarly achieves compositional generalization through scale. +For this purpose, we train a decoder-only transformer that takes a sequence consisting of the task constituents followed by the task inputs as input and predicts the corresponding labels. +Given that the transformer contains multilayer perceptrons in the feedforward blocks, we expect it to be similarly capable of compositional generalization at scale.

+
+
+

The top of Figure 10 confirms this, showing that scaling data similarly leads to compositional generalization in transformers. +Compared to the multilayer perceptron, the transformer requires less distinct training tasks to achieve compositional generalization, as can be observed at the bottom of Figure 10.

+
+
+
+
+
Figure 10: Scaling data leads to compositional generalization in transformers. Top Scaling the number of training tasks by increasing the number of modules, task components or decreasing the fraction of tasks held-out from training leads to compositional generalization in transformers on the hyperteacher task family. Bottom Transformers require less training tasks to achieve compositional generalization (R2>0.95R^{2}>0.95) compared to multilayer perceptrons (MLP).
+
+
+
+

B.3 Scaling data leads to compositional generalization in a deep hyperteacher

+ +
+

In the main text, we focus on a hyperteacher with a task network with a single hidden layer. +A natural question is how increasing the difficulty of the hyperteacher by equipping the task network with multiple hidden layers affects our results. +For this purpose, we reproduce the data scaling plot shown in Figure 2 of Section 3 for a hyperteacher with three hidden layers, each with 1616 hidden neurons. +Figure 11 demonstrates that while this makes the task noticeably more difficult, it reproduces our finding that scaling data leads to compositional generalization.

+
+
+
Figure 11: Scaling data leads to compositional generalization on a deep hyperteacher. Scaling the number of training tasks by increasing the number of modules, task components or decreasing the fraction of tasks held-out from training leads to compositional generalization on the hyperteacher task family with a deep task network with three hidden layers.
+
+
+
+

B.4 Difficulty of image composition task family

+ +
+
+
Refer to caption
Refer to caption
+
Figure 12: Image composition task difficulties sorted by linear decodability of task constituents. Left Average image generation success for each image composition task family for different text-to-image generation models. Left Average linear decodability of constituents +from hidden activations for each image composition task family for different text-to-image generation models.
+
+
+

To complement Figure 6 of the main text, Figure 12 shows the task difficulty as well as the average linear decodability of the task constituents from the hidden activations for all the image composition task families and text-to-image generation models we consider.

+
+
+
+
+

Appendix C Experimental details

+ +
+

C.1 Task families

+ +
+

We create the hyperteacher task family described in Section 2.4 with I=16I=16 input neurons, H=16H=16 hidden neurons and O=16O=16 output neurons to create a family of compositional regression tasks to be learned by a student. +We sample teacher modules from a truncated normal distribution with zero mean and standard deviation 3I\sqrt{\frac{\sqrt{3}}{I}}. +Each teacher module also has a bias term that is sampled from the uniform distribution over the interval [0,0.5][0,0.5]. +We sample the fixed readout matrix shared by all tasks from a truncated normal distribution with zero mean and standard deviation 3H\sqrt{\frac{\sqrt{3}}{H}}. +These values have been picked as to ensure that the hyperteacher creates tasks of sufficient diversity and difficulty.

+
+
+

For the definition of the compositional preference task family, please refer to [18]. +Following the notation of the hyperteacher, we denote the number of possible preferences as MM and the maximum number of preferences combined into a task as KK. +[18] uses M=8M=8 number of possible preferences throughout. +We increase the difficulty of the tasks by increasing the number of preference features to M=16M=16 in Figure 7 bottom, Figure 8 and Figure 9 and to M=32M=32 in Figure 7 top.

+
+
+
+

C.2 Task encoding

+ +
+

We employ the invertible neural network introduced by [72] with 55 layers (33 for the compositional preference task family) that consists of a series of bijective transformations, to obtain a nonlinear but information-preserving encoding of the task constituents. +In addition, we use the Interval Shift function defined in Algorithm 1 as another example of a nonlinear but bijective task encoding.

+
+
+
Algorithm 1 Interval Shift
+
+
+ 1: + + + Number of intervals: NN + +
+
+ 2: + + + function φ\varphi(z,rz,r) + +
+
+ 3: + + +   π←GeneratePermutation​(N,r)\pi\leftarrow\text{GeneratePermutation}(N,r) ⊳\triangleright Generate permutation of [0,N-1] using seed r + +
+
+ 4: + + +   i←⌊N⋅z⌋i\leftarrow\lfloor N\cdot z\rfloor ⊳\triangleright Determine which interval zz belongs to + +
+
+ 5: + + +   α←N⋅z−i\alpha\leftarrow N\cdot z-i ⊳\triangleright Fractional position within interval + +
+
+ 6: + + +   j←π⁡(i)j\leftarrow\pi(i) ⊳\triangleright Apply permutation + +
+
+ 7: + + +   return j+αN\frac{j+\alpha}{N} ⊳\triangleright Preserve relative position within new interval + +
+
+ 8: + + + end function +
+
+
+
+
+

C.3 Training task support

+ +
+

We investigate the effect of various procedures to construct the training task support on compositional generalization, which we describe in the following. +For this purpose, consider the graph G=(V,E)G=(V,E) where V={𝒛∈𝒵∣ptrain​(𝒛)>0}V=\{\bm{z}\in\mathcal{Z}\mid p^{\text{train}}(\bm{z})>0\} is the set of vertices and E={(𝒛,𝒛′)∈V×V∣∃i∈{1,2,…,K}​ such that ​zi=zi′}E=\{(\bm{z},\bm{z}^{\prime})\in V\times V\mid\exists i\in\{1,2,\ldots,K\}\text{ such that }z_{i}=z^{\prime}_{i}\} is the set of edges.

+
+
+
    +
  • • +
    +

    Random: Samples a random subset of vertices until a graph that is both compositional and connected is found.

    +
  • +
  • • +
    +

    Balanced: Similar to Random, but ensures that each module appears with equal frequency in the training distribution using a greedy search over vertices.

    +
  • +
  • • +
    +

    Non-compositional: Holds out all tasks that contain one random but fixed module.

    +
  • +
  • • +
    +

    Disconnected: Divides modules into two disjoint subsets and only uses vertices that use modules from either subset but do not contain modules from both subsets.

    +
  • +
  • • +
    +

    Popular modules: +Defines a set of PP popular modules and only includes vertices that contain at least one popular module. PP is determined such that the fraction of held-out tasks can be satisfied as specified. If it cannot be exactly satisfied, one module that is not in the set of popular modules receives additional vertices. Additionally ensures that the resulting set is compositional and connected.

    +
  • +
  • • +
    +

    Unpopular modules: +Defines a set of UU unpopular modules and includes all vertices that do not contain any unpopular module. For each unpopular module, one vertex that includes the unpopular module and otherwise only not unpopular modules is added. UU is determined such that the fraction of held-out tasks can be satisfied as specified. If it cannot be exactly satisfied, one unpopular module receives additional vertices. Additionally ensures that the resulting set is compositional and connected.

    +
  • +
+
+
+
+

C.4 Task constituent decoding

+ +
+

On the hyperteacher and compositional preference task family, we fit a linear decoder using ridge regression to predict the task constituents given the hidden activations of a particular layer of the multilayer perceptron solving the task. +For this purpose, we train on pairs of hidden activations and ground truth task constituents from the training distribution, ptrain​(𝒛)p^{\text{train}}(\bm{z}), and evaluate the performance of the decoder on held-out tasks, reporting the coefficient of determination (R2R^{2} score). +Throughout, we employ a regularizer of λ=1.0\lambda=1.0 for the ridge regression.

+
+
+
+

C.5 Architecture

+ +
+

Unless specified otherwise, we use a multilayer perceptron with four hidden layers with 10241024 hidden neurons each for the hyperteacher and with two hidden layers for the compositional preference task family.

+
+
+

The transformer in Section B is causally masked and consists of 44 layers with 44 attention heads, a model dimension of 256256, a feedforward dimension of 10241024 and separate projection matrices for the task constituents, inputs and the output.

+
+
+
+

C.6 Hyperparameters

+ +
+

Throughout our experiments, we use the AdamW optimizer [73] with a batch size of 128128. +On the hyperteacher task family, we use a mean-squared error loss, on the compositional preference task family, we use a cross-entropy loss. +We performed an initial grid search over the learning rate and weight decay to find a common set of hyperparameters for all experiments on the hyperteacher task family and a common set of hyperparameters for all experiments on the compositional preference tasks respectively. +We report the search grid in Table 3.

+
+
+
Table 3: Hyperparameters for experiments on the hyperteacher task family and compositional preference task family. Lists of values denote parameters explored via grid search with a bold number indicating the value found to perform best and used throughout the experiments.
+ + + + + + + + + + + + + + + + + +
ParameterHyperteacherCompositional preferences
learning_rate[0.001,0.003,0.0001,0.0003][0.001,0.003,0.0001,\bm{0.0003}][0.001,0.003,0.0001,0.0003][0.001,0.003,\bm{0.0001},0.0003]
weight_decay[0.003,0.001,0.0003][\bm{0.003},0.001,0.0003][0.003,0.001,0.0003][0.003,\bm{0.001},0.0003]
+
+
+
+

C.7 Compositional text-to-image generation

+ +
+
Models
+ +
+

We compare four open-weight text-to-image generation models: FLUX.1-dev [29, FLUX.1 dev Non-Commercial License], SD XL base 1.0 [74, Open RAIL++-M License], SD 3.0 medium [75, Stability AI Community License] SD 3.5 medium [76, Stability AI Community License].

+
+
+
+
Experimental setup
+ +
+

In the following, we describe the experimental setup illustrated in Figure 6. +For each image composition task family listed below, we prompt each model on all possible image combinations to generate an image using 4040 inference steps. +During this process, we collect their hidden activations to be used by the image constituent decoder (see below). +We then prompt a VLM to judge whether the image constituents have been correctly combined into a coherent image by asking it to readout the image constituents given the image and the full set of possible constituents. +We count an image generation as successful if the image constituents generated by the VLM exhaustively match the ground truth constituents. +Here, we report results using Gemini 2.0 Flash [77] as the judge.

+
+
+
+
Image constituent decoder
+ +
+

We train standard logistic regression classifiers to predict image constituents given the hidden activations of the text-to-image generation models and report their F1 scores on held-out image compositions. +Not all layers of the respective models contain this information and we need to carefully choose layers depending on the model architecture. +In particular, the image constituents can trivially be linearly decoded from early layers of the model that encode the text prompt, as well as any layers that are directly connected to the text encoding either via residual connections or via cross-attention. +For this reason, we select layers that require the model to explicitly learn to pass information about image constituents to. +In the transformer-based models FLUX.1-dev, SD 3.5 medium and SD 3.0 medium, we probe the hidden activation of the penultimate transformer block’s MLP. +SD XL base 1.0 contains a bottleneck block, so we probe the hidden activations at the final layer of the bottleneck. +Since the models we are considering are diffusion models that run inference over several time steps, we must specify at what time during the inference process to collect the hidden activations. +In our experiments, we run 30 inference steps and collect hidden activations at time steps 9, 15, 21, and 30, as well as the average hidden activation over all time steps. +We concatenate all hidden activations for a given model and image and use them as the input to the linear decoder.

+
+
+
+
Image composition task families
+ +
+

We create a variety of image composition task families that each consist of a combinatorial space of objects and attributes that need to be combined into a coherent image. +Specifically, each task has the following structure with a corresponding prompt template:

+
    +
  • • +
    +

    task_name: Prompt template specifying how to compose {component1} and {component2}.

    +
      +
    • – +
      +

      component1: module1, module2, …

      +
    • +
    • – +
      +

      component2: module1, module2, …

      +
    • +
    +
  • +
+
+
+

We list all the tasks in the following:

+
    +
  • • +
    +

    animals_with_colours: A {colour} {animal}

    +
      +
    • – +
      +

      animal: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      colour: red, blue, green, yellow, orange, purple, pink, brown, black, white

      +
    • +
    +
  • +
  • • +
    +

    animals_with_style: A {animal} illustrated in {style} style

    +
      +
    • – +
      +

      animal: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      style: watercolor, pixel art, oil painting, sketch, cartoon, origami, stained glass, pop art, charcoal, clay sculpture

      +
    • +
    +
  • +
  • • +
    +

    animals_with_locations: A {animal} in the {location}

    +
      +
    • – +
      +

      animal: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      location: top left, top center, top right, middle left, center, middle right, bottom left, bottom center, bottom right

      +
    • +
    +
  • +
  • • +
    +

    animals_with_descriptor: A {descriptor} {animal}

    +
      +
    • – +
      +

      animal: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      descriptor: furry, scaly, feathered, leathery, smooth, wrinkled, young, old, three-legged, spotted

      +
    • +
    +
  • +
  • • +
    +

    animals_with_adjectives: A image of a {adjective} {animal}

    +
      +
    • – +
      +

      adjective: happy, sad, angry, sleepy, curious, playful, scared, proud, surprised, bored

      +
    • +
    • – +
      +

      animal: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    fruits_with_verbs: A {fruit} is {verb}

    +
      +
    • – +
      +

      fruit: apple, banana, orange, grape, strawberry, watermelon, pineapple, mango, blueberry, peach

      +
    • +
    • – +
      +

      verb: dancing, flying, bouncing, sleeping, swimming, rolling, climbing, stretching, spinning, hiding

      +
    • +
    +
  • +
  • • +
    +

    counting_animals: An image with exactly {number} {animal}

    +
      +
    • – +
      +

      number: one, two, three, four, five, six, seven, eight, nine, ten

      +
    • +
    • – +
      +

      animal: lions, elephants, giraffes, crocodiles, bears, snakes, eagles, cows, zebras, tigers

      +
    • +
    +
  • +
  • • +
    +

    animals_with_verbs: A {animal} is {verb}

    +
      +
    • – +
      +

      animal: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      verb: eating, sleeping, running, jumping, flying, swimming, climbing, dancing, playing, hiding

      +
    • +
    +
  • +
  • • +
    +

    counting_objects: An image with exactly {number} {object}

    +
      +
    • – +
      +

      number: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen, twenty

      +
    • +
    • – +
      +

      object: tomatoes, onions, oranges, wolves, bears, apples, bananas, carrots, cucumbers, strawberries, lemons, cherries, grapes, peaches, pears, foxes, rabbits, cats, dogs, sheep

      +
    • +
    +
  • +
  • • +
    +

    nested_containment_animals: A {animal_outer} containing a {animal_middle} containing an {animal_inner}

    +
      +
    • – +
      +

      animal_outer: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_middle: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_inner: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    three_animals_three_materials: {animal_fire} made of fire, {animal_ice} made of ice, and {animal_wood} made of wood

    +
      +
    • – +
      +

      animal_fire: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_ice: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_wood: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    three_animals_three_verbs: {animal_singing} singing, {animal_eating} eating, and {animal_sleeping} sleeping

    +
      +
    • – +
      +

      animal_singing: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_eating: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_sleeping: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    three_animals_three_adjectives: A sad {animal_happy}, a happy {animal_sad}, and an angry {animal_angry}

    +
      +
    • – +
      +

      animal_happy: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_sad: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_angry: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    animals_with_clothes: {animal} wearing {clothing}

    +
      +
    • – +
      +

      animal: cat, dog, bear, lion, elephant, giraffe, monkey, zebra, tiger, panda

      +
    • +
    • – +
      +

      clothing: hat, pair of sunglasses, scarf, bowtie, jacket, crown, tie, cape, sweater, necklace

      +
    • +
    +
  • +
  • • +
    +

    animals_with_clothes_and_food: {animal} wearing {clothing} eating {food}

    +
      +
    • – +
      +

      animal: cat, dog, bear, lion, elephant, giraffe, monkey, zebra, tiger, panda

      +
    • +
    • – +
      +

      clothing: hat, pair of sunglasses, scarf, bowtie, jacket, crown, tie, cape, pair of pants, pair of boots

      +
    • +
    • – +
      +

      food: pizza, banana, ice cream, cake, hamburger, apple, watermelon, donut, sandwich, salad

      +
    • +
    +
  • +
  • • +
    +

    animals_with_food_eyes_and_clothes: A {animal} with {food} as eyes wearing {clothing}

    +
      +
    • – +
      +

      animal: cat, bear, lion, elephant, giraffe, monkey, zebra, panda, wolf, rabbit

      +
    • +
    • – +
      +

      food: strawberries, oranges, burgers, watermelons, donuts, cookies, cupcakes, pizza, lemons, tomatoes

      +
    • +
    • – +
      +

      clothing: crown, cowboy hat, scarf, cape, hawaiian shirt, leather jacket, pair of pants, tuxedo, raincoat, sunglasses

      +
    • +
    +
  • +
  • • +
    +

    stacked_foods: {food_top} on top of {food_middle} on top of {food_bottom}

    +
      +
    • – +
      +

      food_top: burger, pizza, salad, Sushi, taco, donut, Ice cream, pancake, Spaghetti, sandwich

      +
    • +
    • – +
      +

      food_middle: burger, pizza, salad, sushi, taco, donut, ice cream, pancake, spaghetti, sandwich

      +
    • +
    • – +
      +

      food_bottom: burger, pizza, salad, sushi, taco, donut, ice cream, pancake, spaghetti, sandwich

      +
    • +
    +
  • +
  • • +
    +

    stacked_animals: {animal_top} on top of {animal_middle} on top of {animal_bottom}

    +
      +
    • – +
      +

      animal_top: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_middle: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_bottom: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    animals_chasing_chain: {animal1} chasing {animal2} chasing {animal3}

    +
      +
    • – +
      +

      animal1: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal2: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal3: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    nested_containment: A {container1} containing a {container2} containing a {object}

    +
      +
    • – +
      +

      container1: transparent cube, glass jar, wooden box, metal safe, woven basket, leather bag, ceramic pot, copper kettle, crystal sphere, rubber ball

      +
    • +
    • – +
      +

      container2: small treasure chest, porcelain teacup, silk pouch, stone bowl, paper envelope, cardboard tube, tin can, shell, gold locket, velvet case

      +
    • +
    • – +
      +

      object: diamond, living butterfly, ticking clock, miniature planet, flickering flame, drop of mercury, hologram, glowing ember, snowflake, single cell organism

      +
    • +
    +
  • +
  • • +
    +

    impossible_materials: A {object} made entirely of {material} sitting on a {surface}

    +
      +
    • – +
      +

      object: chair, bicycle, bookshelf, piano, computer, refrigerator, watch, umbrella, camera, guitar

      +
    • +
    • – +
      +

      material: liquid water, fire, smoke, mirrors, ice, tree bark, glass noodles, gelatin, paper, soap bubbles

      +
    • +
    • – +
      +

      surface: clouds, ocean waves, melting ice, sand dunes, moss, broken glass, spiderwebs, lily pads, autumn leaves, foam

      +
    • +
    +
  • +
  • • +
    +

    three_animals_three_fixed_styles: A {animal_pixel} in pixel art, a {animal_oil} in oil painting, and a {animal_cartoon} in cartoon style

    +
      +
    • – +
      +

      animal_pixel: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_oil: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_cartoon: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    three_animals_three_fixed_descriptors: A {animal_furry} with fur, a {animal_scaly} with scales, and a {animal_feathered} with feathers

    +
      +
    • – +
      +

      animal_furry: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_scaly: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    • – +
      +

      animal_feathered: lion, elephant, giraffe, crocodile, bear, snake, eagle, cow, zebra, tiger

      +
    • +
    +
  • +
  • • +
    +

    animals_long: An image with {one {animal}}1,2,3

    +
      +
    • – +
      +

      animals: giraffe, lion, elephant, crocodile, bear, snake, eagle, cow, zebra, tiger, rhino, hippo, wolf, fox, deer, monkey, panda, koala, kangaroo, penguin

      +
    • +
    +
  • +
  • • +
    +

    objects_three_colours: An image with {one {object}}1,2,3

    +
      +
    • – +
      +

      objects: red cube, green cube, blue cube, blue sphere, orange sphere, red sphere, green cylinder, purple cylinder, yellow cylinder, yellow cone, blue cone, green cone, purple pyramid, red pyramid, orange pyramid, orange cuboid, yellow cuboid, blue cuboid

      +
    • +
    +
  • +
  • • +
    +

    fruits_veggies_long: An image with {one {fruit_veggie}}1,2,3

    +
      +
    • – +
      +

      fruits_veggies: apple, banana, orange, grape, strawberry, watermelon, pineapple, mango, blueberry, peach, lemon, cherry, carrot, broccoli, tomato, cucumber, potato, onion, pepper, lettuce

      +
    • +
    +
  • +
  • • +
    +

    animals_vegetables_shapes: An image with {one {element}}1,2,3

    +
      +
    • – +
      +

      animals_vegetables_shapes: lion, elephant, giraffe, tiger, bear, zebra, monkey, carrot, broccoli, potato, tomato, cucumber, onion, pepper, cube, sphere, cylinder, cone, pyramid, triangular prism

      +
    • +
    +
  • +
+
+
+
+
+
+

Appendix D Additional details

+ +
+

D.1 Compute resources

+ +
+

We used a Linux workstation with two Nvidia RTX 3090 GPUs with 24GB of memory each for development and conducted hyperparameter searches and experiments on an internal Slurm cluster using Nvidia RTX 4090 GPUs and Nvidia A100 GPUs.

+
+
+

A single run of a hyperteacher experiment takes 4-10 minutes on a RTX 4090 depending on model size, a single run of a compositional preference experiment takes 50-100 minutes. +In total, reproducing all experiments reported for the hyperteacher task family with around 1000 distinct runs takes about 7 GPU days and reproducing all corresponding experiments for the compositional preference task family takes about 70 GPU days.

+
+
+

Generating the images for one of the image composition task families takes 8 GPU hours on an A100 for the Flux.1-dev model and 4 GPU hours on an RTX 4090 for each of the SD models. +Running all 27 tasks for all models takes a total of 23 GPU days.

+
+
+
+

D.2 Software and libraries

+ +
+

For the results obtained in this paper we built on free and open-source software. +We implemented our experiments in Python using JAX [78, Apache License 2.0], Flax [79, Apache License 2.0], the Deepmind Jax Ecosystem [80, Apache License 2.0], PyTorch [81, BSD-style license], LLM [82, Apache License 2.0] and Scikit-learn [83, BSD 3-Clause License]. +We utilized WandB [84, MIT license] to monitor the progress and results of experiments, and Plotly [85, MIT license] for generating the plots. +We use uv for Python project dependency management [86, MIT License].

+
+
+
+
+
+
+
+
+ + + + + +
+ diff --git a/results/memory-scaling-theory-v1/sources/factual-recall.html b/results/memory-scaling-theory-v1/sources/factual-recall.html new file mode 100644 index 0000000000000000000000000000000000000000..7850fd770747564e657442ba145234ffc4b53734 --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/factual-recall.html @@ -0,0 +1,4967 @@ + + + +Understanding Factual Recall in Transformers via Associative Memories + + + + + + + + + + + + + + + + +
+ + arXiv is now an independent nonprofit! + Learn more + +
+ +
+ + + +
+
+
+ + License: arXiv.org perpetual non-exclusive license + +
+arXiv:2412.06538v1 [cs.LG] 09 Dec 2024
+
+
+

Understanding Factual Recall in Transformers via Associative Memories

+
+ +Eshaan Nichani +††thanks: eshnich@princeton.edu. This work was conducted while EN was an intern at the Flatiron Institute. +Affiliation: Princeton University + +   +Jason D. Lee + +Affiliation: Princeton University + +   +Alberto Bietti + +Affiliation: Flatiron Institute +
+ +
Abstract
+ +

Large language models have demonstrated an impressive ability to perform factual recall. Prior work has found that transformers trained on factual recall tasks can store information at a rate proportional to their parameter count. In our work, we show that shallow transformers can use a combination of associative memories to obtain such near optimal storage capacity. We begin by proving that the storage capacities of both linear and MLP associative memories scale linearly with parameter count. We next introduce a synthetic factual recall task, and prove that a transformer with a single layer of self-attention followed by an MLP can obtain 100% accuracy on the task whenever either the total number of self-attention parameters or MLP parameters scales (up to log factors) linearly with the number of facts. In particular, the transformer can trade off between using the value matrices or the MLP as an associative memory to store the dataset of facts. We complement these expressivity results with an analysis of the gradient flow trajectory of a simplified linear attention model trained on our factual recall task, where we show that the model exhibits sequential learning behavior.

+ +
+
+

1 Introduction

+ +
+

One hallmark capability of transformer-based large language models (LLMs) is factual recall [40, 21, 43]. Given a prompt of the form “In what year was George Washington born?” an LLM will correctly respond with “1732.” Language models thus act as databases, storing somewhere in their parameters mappings of the form (George Washington, birth year) ↦(1732)\mapsto(1732) which can be easily accessed during inference time.

+
+
+

Prior work [2] has observed that transformers trained on factual recall tasks can store information at a rate proportional to their parameter count. Other studies [35, 12, 38, 29, e.g.,] have sought to understand the specific mechanism by which transformers implement factual recall, probing models to understand specifically which transformer blocks “contain” certain facts. However, these studies do not consider the memorization capacity of such constructions, and it is thus an open question to understand how transformers optimally encode such factual information within their weights.

+
+
+

In this work, we show that shallow transformers can use a combination of associative memories to obtain near-optimal storage capacity for factual recall tasks. Associative memories store pairs of input-output embeddings through their outer products, and are thus well-suited for modeling the weight matrices of a transformer. Prior work [5] has shown that this associative memory model is a key primitive towards understanding both the representational capacity and optimization dynamics of transformers on synthetic tasks.

+
+
+

Our specific contributions are as follows:

+
    +
  • • +
    +

    In Section 3 we begin by studying the ability of linear and MLP associative memory models to store associations between discrete vocabularies. We prove that when the embeddings are sampled randomly over the sphere, these models can store a number of associations proportional to their parameter count, significantly improving over the case where the embeddings are orthogonal.

    +
  • +
  • • +
    +

    In Section 4, we introduce a synthetic next-token prediction task which models factual recall. The data distribution consists of prompts containing a subject token ss and relation token rr hidden amongst a set of noise tokens, which the learner must map to a ground truth answer a∗​(s,r)a^{*}(s,r). Our main theorem is that a transformer consisting of a single multi-head self-attention layer followed by an MLP can obtain 100% accuracy when either the number of self-attention parameters or MLP parameters scales (up to logs) proportionally with the dataset size.

    +
  • +
  • • +
    +

    In Section 5, we study the gradient descent dynamics of a single linear self-attention head trained on the synthetic task. We prove that the model undergoes a sequential learning dynamics, consisting of a “hallucination” stage where the model outputs the conditional distribution for the answer based on only the relation.

    +
  • +
  • • +
    +

    Finally, in Section 6 we complement our constructions with lower bounds, showing that they are optimal up to logarithmic factors.

    +
  • +
+

Overall, our work makes progress towards understanding the mechanism by which transformers learn and store factual information.

+
+
+
+

2 Related Work

+ +
+

Associative memories.

+ +
+

Associative memories have a long history in the neural computation literature [16, 24, 49]. +More recently there has been renewed interest in extensions of such models with larger capacity [25, 8, 28]. These have been linked to the attention blocks in Transformers [42, 44], with [26, 15] in particular using the connection between self-attention and associative memories to design new variants of the attention module. [41] show that overparameterized autoencoders can also behave as associative memories. However, these connections differs from our work, where we consider instead the role of both self-attention and MLP weights as associative memories, in a similar vein to [5, 7].

+
+
+
+

Memorization and factual recall.

+ +
+

Large language models are known to store vast amounts of factual knowledge in their weights [21, 43, 11]. +Several recent works in the mechanistic interpretability literature have attempted to understand how transformers store facts [35, 12, 38, 29]. +Allen-Zhu and Li [2] empirically studied the memorization capacity for Transformer language models of different sizes trained on synthetic factual recall tasks, and observed near-linear scaling with the number of parameters. Jiang et al. [20] demonstrate how shallow transformers can solve a related latent concept association task by viewing the weight matrices as associative memories. At a more basic level, several works have studied the memorization capacity of neural networks, using constructions that differ from our associative memory approach, both in the context of regression [6, 47, 30] and (next) token prediction [33, 22, 23, 31].

+
+
+
+

Gradient dynamics.

+ +
+

Training dynamics of transformer models on various tasks has been a popular recent line of research [18, 45, 27, 5, 46, 39]. Zhang et al. [50], Mahankali et al. [32] studied training dynamics of transformers with linear attention on in-context learning tasks. Ghosal et al. [13] studied the fine-tuning dynamics on a similar factual recall task, showing how training on lesser-known facts may hurt performance. Our emphasis differs in that we consider non-orthogonal embeddings, and require the model to additionally filter out the relevant subject and relation tokens from the noise tokens, which requires learning of the key and query matrices.

+
+
+
+
+

3 Associative Memories

+ +
+

In this section, we show that associative memories have a storage capacity on the order of the number of parameters (up to logarithmic factors), which is near-optimal (as we show in Section 6).

+
+
+

Setup.

+ +
+

Our setting follows that of Cabannes et al. [7]. Let [N][N] be the set of input tokens, and [M][M] be the set of output tokens. Our goal is to store a set of associations given by the function f∗:[N]→[M]f^{*}:[N]\rightarrow[M]. For each input token x∈[N]x\in[N] we assign a corresponding embedding vector 𝒆x∈ℝd{\bm{e}}_{x}\in{\mathbb{R}}^{d}, and likewise for each output token y∈[M]y\in[M] we associate an unembedding vector 𝒖y∈ℝd{\bm{u}}_{y}\in{\mathbb{R}}^{d}. We primarily focus on the setting where the embeddings {𝒆x}x∈[N]\{{\bm{e}}_{x}\}_{x\in[N]} and {𝒖y}y∈[M]\{{\bm{u}}_{y}\}_{y\in[M]} are drawn i.i.d uniformly from the sphere of radius 1. Let F:ℝd→ℝdF:\mathbb{R}^{d}\rightarrow\mathbb{R}^{d} be our model which “stores” the associations f∗f^{*}. Given such an FF, the prediction f^​(x)\hat{f}(x) for f∗​(x)f^{*}(x) is given by the arg-max decoding f^​(x):=arg⁡maxy∈[M]​𝒖y⊤​F​(𝒆x)\hat{f}(x):=\arg\max_{y\in[M]}{\bm{u}}_{y}^{\top}F({\bm{e}}_{x}).

+
+
+
+

3.1 Linear Associative Memories

+ +
+

We first consider the case where FF is a linear map F⁡(𝒆x)=𝑾​𝒆xF({\bm{e}}_{x})={\bm{W}}{\bm{e}}_{x}.

+
+
+
Theorem 1.
+
+

Assume that f∗f^{*} is injective. If d2≳N​poly⁡log⁡Nd^{2}\gtrsim N\poly\log N, then with high probability over the draw of the embeddings, there exists a 𝐖{\bm{W}} such that

+ + + + + + + +
arg⁡maxy∈[M]​𝒖y⊤​𝑾​𝒆x=f∗​(x)for all​x∈[N].\displaystyle\arg\max_{y\in[M]}{\bm{u}}_{y}^{\top}{\bm{W}}{\bm{e}}_{x}=f^{*}(x)\quad\text{for all}~x\in[N].(1)
+

This capacity is obtained by the construction 𝐖=∑x∈[N]𝐮f∗​(x)​𝐞x⊤{\bm{W}}=\sum_{x\in[N]}{\bm{u}}_{f^{*}(x)}{\bm{e}}_{x}^{\top}. Furthermore, if 𝐖{\bm{W}} is restricted to be a rank mm matrix, then such a 𝐖{\bm{W}} exists when m​d≳N​poly⁡log​Nmd\gtrsim N\poly\log N; this construction is 𝐖=∑x∈[N]𝐮f∗​(x)​𝐞x⊤​∑i=1m𝐯i​𝐯i⊤{\bm{W}}=\sum_{x\in[N]}{\bm{u}}_{f^{*}(x)}{\bm{e}}_{x}^{\top}\sum_{i=1}^{m}{\bm{v}}_{i}{\bm{v}}_{i}^{\top}, where 𝐯i∈ℝd{\bm{v}}_{i}\in\mathbb{R}^{d} are drawn i.i.d from the standard Gaussian.

+
+
+
+

Since 𝑾{\bm{W}} has d2d^{2} parameters, Theorem 1 shows that the number of associations that can be stored scales (up to log factors) linearly in the number of parameters. We note that in this linear case, the injectivity assumption on f∗f^{*} is important, as otherwise the capacity may be as low as dd, as in [7]. Additionally, we remark that these constructions are easily obtained by gradient descent; the general 𝑾{\bm{W}} construction corresponds to one-step of GD on the correlation loss L(𝑾)=−∑x𝒖f∗​(x)⊤𝑾𝒆xL({\bm{W}})=-\sum_{x}{\bm{u}}_{f^{*}(x)}^{\top}{\bm{W}}{\bm{e}}_{x}, while the low-rank construction corresponds to parameterizing 𝑾=𝑼​𝑽⊤{\bm{W}}={\bm{U}}{\bm{V}}^{\top} for 𝑼,𝑽∈ℝd×m{\bm{U}},{\bm{V}}\in\mathbb{R}^{d\times m}, and taking one step of GD on 𝑼{\bm{U}} while 𝑽{\bm{V}} is fixed to random Gaussian initialization. The proof of Theorem 1 is deferred to Appendix B.

+
+
+

Remarks.

+ +
+

Our setting bears similarity to associative Hopfield networks [16], yet differs in that we decode to a fixed discrete set of output tokens [M][M] rather than exactly matching the target output. This more closely resembles the language modeling framework, and allows us to improve the memorization capacity from dd to d2d^{2} [34]. Next, we note that non-orthogonality of the embeddings is necessary for Theorem 1, as the optimal storage capacity for one-hot embeddings is only N=dN=d. Since our constructions are in the regime N≫dN\gg d, the associative memory 𝑾{\bm{W}} is a superposition [10] of the outer products 𝒖f∗​(x)​𝒆x⊤{\bm{u}}_{f^{*}(x)}{\bm{e}}_{x}^{\top}. Finally, we remark that the random, rather than trainable, embeddings setting was also studied in Cabannes et al. [7]. The embeddings can be viewed as global quantities in a larger network, of which the associative memory is implementing some subtask, and is thus not able to optimize these embeddings in order to solve its specific task.

+
+
+
+
+

3.2 MLP Associative Memories

+ +
+

Next, we consider the case where FF is a two-layer neural network with hidden width mm; that is F⁡(𝒆x)=𝑽⊤​σ​(𝑾​𝒆x)F({\bm{e}}_{x})={\bm{V}}^{\top}\sigma({\bm{W}}{\bm{e}}_{x}) for 𝑽,𝑾∈ℝm×d{\bm{V}},{\bm{W}}\in{\mathbb{R}}^{m\times d}.

+
+
+
Theorem 2 (Informal).
+
+

If m​d≳N​poly⁡log​Nmd\gtrsim N\poly\log N, then with high probability over the draw of the embeddings, there exists 𝐕,𝐖{\bm{V}},{\bm{W}} such that

+ + + + + + + +
arg⁡maxy∈[M]​𝒖y⊤​𝑽⊤​σ​(𝑾​𝒆x)=f∗​(x)for all​x∈[N].\displaystyle\arg\max_{y\in[M]}{\bm{u}}_{y}^{\top}{\bm{V}}^{\top}\sigma({\bm{W}}{\bm{e}}_{x})=f^{*}(x)\quad\text{for all}~x\in[N].(2)
+
+
+
+

Since the MLP has 2​m​d2md parameters, Theorem 2 shows that the MLP associative memory scheme has storage capacity which is (nearly) linear in the parameter count.

+
+
+

Proof Sketch.

+ +
+

The construction for Theorem 2 mimics that of Theorem 1, after an appropriate random feature transformation. First, sample the rows of 𝑾{\bm{W}} from the standard Gaussian. Then, set each 𝒗i=m−1​∑x𝒖f∗​(x)​hk​(⟨𝒘i,𝒆x⟩){\bm{v}}_{i}=m^{-1}\sum_{x}{\bm{u}}_{f^{*}(x)}h_{k}(\langle{\bm{w}}_{i},{\bm{e}}_{x}\rangle), where hkh_{k} is the kkth Hermite polynomial (see Section F.1). We then see that

+ + + + + + + +
F⁡(𝒆x)=1m​∑i=1m∑x′∈[N]𝒖f∗​(x′)​hk​(⟨𝒘i,𝒆x′⟩)​σ​(⟨𝒘i,𝒆x⟩)≈∑x′∈[N]𝒖f∗​(x′)​⟨𝒆x,𝒆x′⟩k.\displaystyle F({\bm{e}}_{x})=\frac{1}{m}\sum_{i=1}^{m}\sum_{x^{\prime}\in[N]}{\bm{u}}_{f^{*}(x^{\prime})}h_{k}(\langle{\bm{w}}_{i},{\bm{e}}_{x^{\prime}}\rangle)\sigma(\langle{\bm{w}}_{i},{\bm{e}}_{x}\rangle)\approx\sum_{x^{\prime}\in[N]}{\bm{u}}_{f^{*}(x^{\prime})}\langle{\bm{e}}_{x},{\bm{e}}_{x^{\prime}}\rangle^{k}.(3)
+

for sufficiently large mm. Such polynomial associative memory is reminiscent of that in Krotov and Hopfield [25], and can store many more associations for large kk. By choosing k≈logd​mk\approx\log_{d}m and appropriately dealing with concentration, one can obtain the O~​(m​d)\tilde{O}(md) storage capacity (for technical reasons, we must also use the Neural Tangent Kernel [17] rather the random feature model). The full proof of Theorem 2 is deferred to Appendix B.

+
+
+
+

On Optimal Storage Capacity.

+ +
+

Prior works [6, 30, 31] studying the memorization capacity of neural networks focus on the regression setting, and thus do not directly apply to our setup with multiple outputs and a discrete set of output tokens. Other works [47, 22, 23] show that one can memorize NN arbitrary labels with O~​(N)\tilde{O}(\sqrt{N}) parameters, at the expense of using a bit complexity of Ω~​(N)\tilde{\Omega}(\sqrt{N}). Such networks still require Ω⁡(N)\Omega(N) bits, which matches our lower bounds in Section 6. These constructions, however, are unwieldy, and are not learnable if we restrict the precision to be poly⁡log⁡N\poly\log N. Instead, our constructions are learnable – the linear construction results from one step of GD, while the ReLU construction uses the NTK and can thus be learned via GD on a convex loss. In Corollary 2, we show that a quantized version of the construction from Theorem 1 indeed succeeds with bit precision O~​(1)\tilde{O}(1), and thus more accurately captures realistic training regimes where models do seem to succeed with low precision [9, 2].

+
+
+
+
+
Figure 1: We train linear and MLP associative memories to store the association f∗​(x)=xf^{*}(x)=x. (Left) A linear associative memory requires d2∝N​log⁡Nd^{2}\propto N\log N parameters to store NN associations. (Right) The MLP associative memory requires m​d∝N​log⁡Nmd\propto N\log N parameters to store NN associations, as predicted by Theorem 2.
+
+
+
+

Empirical Validation.

+ +
+

In Figure 1, we train both linear and MLP associative memories to store the association f∗​(x)=xf^{*}(x)=x. Given a fixed model size (d,m)(d,m), we fit datasets with increasing values of NN using the cross entropy loss, and plot the largest value of NN for which we can obtain at least 99% accuracy. We observe that the linear associative memory can store Θ~​(d2)\tilde{\Theta}(d^{2}) associations, while the MLP associative memory can store Θ~​(m​d)\tilde{\Theta}(md) associations. See Appendix A for additional experiments where the number of output tokens MM does not scale with NN.

+
+
+
+
+
+

4 A Synthetic Task for Factual Recall

+ +
+

In this section we introduce a synthetic factual recall task, and show that one-layer transformers constructed via associative memories can store a number of facts proportional to parameter count.

+
+
+

4.1 The Task

+ +
+

We first define a global dictionary of facts. Let 𝒮{\mathcal{S}} be a set of subject tokens and ℛ{\mathcal{R}} be a set of relation tokens, where S=|𝒮|,R=|ℛ|S=\absolutevalue{\gS},R=\absolutevalue{\gR}. Let 𝒜{\mathcal{A}} be the set of answer tokens. We let a∗:𝒮×ℛ→𝒜a^{*}:{\mathcal{S}}\times{\mathcal{R}}\rightarrow{\mathcal{A}} be the ground truth association function, which maps subject-relation tuples (s,r)(s,r) to their corresponding answer a∗​(s,r)a^{*}(s,r)11 + 1 + + + + + + + + We focus on one-to-one relations, where each (s,r)(s,r) pair corresponds to a unique a∗a^{*}. This is in contrast to the one-to-many setting, where each (s,r)(s,r) maps to many possible answers (for example, s=s= “France,” rr = “city,” a∗∈{“Paris”,“Toulouse”,⋯}a^{*}\in\{\text{``Paris"},\text{``Toulouse"},\cdots\}). A similar such task was considered in Petroni et al. [40], Ghosal et al. [13].

+
+
+

Define 𝒜r{\mathcal{A}}_{r} to be the set of answers corresponding to a relation rr, i.e 𝒜r:={a∗​(s,r):s∈𝒮}{\mathcal{A}}_{r}:=\{a^{*}(s,r):s\in{\mathcal{S}}\}. Define 𝒜s:={a∗​(s,r):r∈ℛ}{\mathcal{A}}_{s}:=\{a^{*}(s,r):r\in{\mathcal{R}}\} analogously. We assume that each relation corresponds to a disjoint set of answers:

+
+
+
Assumption 1.
+
+

𝒜r∩𝒜r′=∅{\mathcal{A}}_{r}\cap{\mathcal{A}}_{r^{\prime}}=\emptyset for r,r′∈ℛr,r^{\prime}\in{\mathcal{R}} with r≠r′r\neq r^{\prime}. Furthermore, define D:=maxr∈ℛ⁡|𝒜r|D:=\max_{r\in{\mathcal{R}}}\absolutevalue{\gA_r}.

+
+
+
+

For example, 𝒮{\mathcal{S}} could be the set of all countries, while ℛ{\mathcal{R}} could be {president,capital}\{\mathrm{president},\mathrm{capital}\}; in this case, the set of all presidents and set of all capitals are disjoint.

+
+
+

We next define our data distribution 𝒟\mathcal{D} over sequences. Let T>0T>0 be the context length. Let 𝒩{\mathcal{N}} be a set of noise tokens, and define the vocabulary to be 𝒱:=𝒮∪ℛ∪𝒜∪𝒩∪{EOS}{\mathcal{V}}:={\mathcal{S}}\cup{\mathcal{R}}\cup{\mathcal{A}}\cup{\mathcal{N}}\cup\{\mathrm{EOS}\}, where EOS\mathrm{EOS} is a special “end-of-sequence” token. The data distribution is over length T+1T+1 sequences z1:T+1:=(z1,z2,…,zT,zT+1)∈𝒱T+1z_{1:T+1}:=(z_{1},z_{2},\dots,z_{T},z_{T+1})\in{\mathcal{V}}^{T+1}, generated via the following procedure:

+
    +
  1. 1. +
    +

    First, sample a subject and relation tuple (s,r)(s,r) from some distribution pp over 𝒮×ℛ{\mathcal{S}}\times{\mathcal{R}}.

    +
  2. +
  3. 2. +
    +

    Next, sample two distinct indices i,j∈[T−1]i,j\in[T-1]. Set zi=sz_{i}=s and zj=rz_{j}=r.

    +
  4. +
  5. 3. +
    +

    For the remainder of tokens zkz_{k} where k∈[T−1]∖{i,j}k\in[T-1]\setminus\{i,j\}, draw zkz_{k} uniformly at random from the noise tokens 𝒩{\mathcal{N}}.

    +
  6. +
  7. 4. +
    +

    Set zT=EOSz_{T}=\mathrm{EOS}.

    +
  8. +
  9. 5. +
    +

    Finally, set zT+1=a∗​(s,r)z_{T+1}=a^{*}(s,r).

    +
  10. +
+
+
+

The goal of this task is to predict zT+1z_{T+1} from (z1,…,zT)(z_{1},\dots,z_{T}). A model which can successfully do so must (1) be able to isolate the relevant subject and relation tokens from the noise tokens and (2) store all of the associations (s,r)↦a∗​(s,r)(s,r)\mapsto a^{*}(s,r). See Figure 2 for a diagram of the task.

+
+
+
Figure 2: A diagram of the synthetic factual recall task.
+
+
+
+

4.2 The Model: One-Layer Transformer

+ +
+

Our learner for the task is a single layer of multi-head self attention followed by an MLP. Define dd to be the embedding dimension. The input to the transformer is a sequence of vectors 𝑿:=(𝒙1,…,𝒙T)⊤∈ℝT×d{\bm{X}}:=({\bm{x}}_{1},\dots,{\bm{x}}_{T})^{\top}\in{\mathbb{R}}^{T\times d}. Each self attention head is parameterized by the key, query, and value matrices 𝑾K,𝑾Q,𝑾V∈ℝdh×d{\bm{W}}_{K},{\bm{W}}_{Q},{\bm{W}}_{V}\in{\mathbb{R}}^{d_{h}\times d}, where dhd_{h} is the head dimension. The self attention head is then a map attn⁡(⋅,𝑾K,𝑾Q,𝑾V):ℝT×d→ℝdh\attn(~\cdot~;{\bm{W}}_{K},{\bm{W}}_{Q},{\bm{W}}_{V}):{\mathbb{R}}^{T\times d}\rightarrow{\mathbb{R}}^{d_{h}}, which operates as

+ + + + + + + +
attn⁡(𝑿,𝑾K,𝑾Q,𝑾V)=𝑾V​𝑿⊤​𝒮​(𝑿​𝑾K⊤​𝑾Q​𝒙T),\displaystyle\attn({\bm{X}};{\bm{W}}_{K},{\bm{W}}_{Q},{\bm{W}}_{V})={\bm{W}}_{V}{\bm{X}}^{\top}\mathcal{S}\quantity(\mX\mW_K^\top\mW_Q\vx_T),(4)
+

where 𝒮​(𝒛)i=exp⁡(zi)∑jexp⁡(zj)\mathcal{S}({\bm{z}})_{i}=\frac{\exp(z_i)}{\sum_{j}\exp(z_j)} is the softmax operator.

+
+
+

A multi-head self-attention layer with HH heads is parameterized by HH different key, query, and value matrices, along with HH output matrices. Let 𝜽:={(𝑾K(h),𝑾Q(h),𝑾V(h),𝑾O(h))}h∈[H]{\bm{\theta}}:=\{({\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V},{\bm{W}}^{(h)}_{O})\}_{h\in[H]}, where 𝑾K(h),𝑾Q(h),𝑾V(h),𝑾O(h)∈ℝdh×d{\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V},{\bm{W}}^{(h)}_{O}\in{\mathbb{R}}^{d_{h}\times d}. A multi-head self-attention layer is then a map FMHSA​(⋅,𝜽):ℝT×d→ℝdF_{\mathrm{MHSA}}(~\cdot~;{\bm{\theta}}):{\mathbb{R}}^{T\times d}\rightarrow{\mathbb{R}}^{d} given by

+ + + + + + + +
FMHSA​(𝑿,𝜽)=∑h∈[H]𝑾O(h)⊤​attn⁡(𝑿,𝑾K(h),𝑾Q(h),𝑾V(h)).\displaystyle F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})=\sum_{h\in[H]}{{\bm{W}}^{(h)}_{O}}^{\top}\attn({\bm{X}};{\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V}).(5)
+

Finally, a single-layer transformer combines a multi-head self-attention layer with an MLP. Let mm be the MLP width. Let 𝑽,𝑾∈ℝm×d{\bm{V}},{\bm{W}}\in{\mathbb{R}}^{m\times d} be the MLP parameters, and define 𝜽TF:=𝜽∪{𝑽,𝑾}{\bm{\theta}}_{\mathrm{TF}}:={\bm{\theta}}\cup\{{\bm{V}},{\bm{W}}\}. Then, a single-layer transformer is the map FTF​(⋅,𝜽TF):ℝT×d→ℝdF_{\mathrm{TF}}(~\cdot~;{\bm{\theta}}_{\mathrm{TF}}):{\mathbb{R}}^{T\times d}\rightarrow{\mathbb{R}}^{d} given by

+ + + + + + + +
FTF​(𝑿,𝜽TF)=FMHSA​(𝑿,𝜽)+𝑽⊤​σ​(𝑾​FMHSA​(𝑿,𝜽)).\displaystyle F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}})=F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})+{\bm{V}}^{\top}\sigma\quantity(\mW F_{\mathrm{MHSA}}(\mX; \vtheta)).(6)
+
+
+

A single-layer transformer is parameterized by the tuple of hyperparameters (d,H,dh,m)(d,H,d_{h},m). The model has 4​H​d​dh4Hdd_{h} self-attention parameters, and 2​m​d2md MLP parameters.

+
+
+
+

4.3 One-Layer Transformers have (Almost) Linear Storage Capacity

+ +
+

We next characterize how large a single-layer transformer must be in order to obtain 100% accuracy on the synthetic task. For each token z∈𝒱z\in{\mathcal{V}}, sample its embedding vectors 𝝋⁡(z)∈ℝd{\bm{\varphi}}(z)\in\mathbb{R}^{d} i.i.d uniformly over the sphere of radius 1. An input sequence (z1,…,zT)(z_{1},\dots,z_{T}) gets embedded as 𝑿=(𝝋⁡(z1),…,𝝋⁡(zT))⊤{\bm{X}}=({\bm{\varphi}}(z_{1}),\dots,{\bm{\varphi}}(z_{T}))^{\top}. We use argmax decoding to predict the next token; that is,

+ + + + + + + +
f^(z1:T)=argmaxz∈𝒱𝝋(z)⊤FTF(𝑿;𝜽TF).\displaystyle\hat{f}(z_{1:T})=\arg\max_{z\in{\mathcal{V}}}{\bm{\varphi}}(z)^{\top}F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}}).(7)
+
+
+

Our first result is that there exists an attention-only single-layer transformer that obtain 100% accuracy on the factual recall task, as long as the total number of self-attention parameters 4​H​d​dh4Hdd_{h} scales (up to logarithmic factors) linearly with the dataset size S​RSR.

+
+
+
Theorem 3 (Attention-only, informal).
+
+

Assume that d≥Ω~​(max⁡(R,D))d\geq\tilde{\Omega}(\max(R,D)) and H​dh≥Ω~​(S+R)Hd_{h}\geq\tilde{\Omega}(S+R). With high probability over the embeddings, there exists a single-layer attention-only transformer FTF​(⋅,𝛉TF)F_{\mathrm{TF}}(~\cdot~;{\bm{\theta}}_{\mathrm{TF}}) with embedding dimension dd, number of heads HH and head dimension dhd_{h} such that

+ + + + + + + +
ℙz1:T+1∼𝒟[argmaxz∈𝒱𝝋(z)⊤FTF(𝑿;𝜽TF)=zT+1]=1.\displaystyle\mathbb{P}_{z_{1:T+1}\sim\mathcal{D}}\left[\arg\max_{z\in{\mathcal{V}}}{\bm{\varphi}}(z)^{\top}F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}})=z_{T+1}\right]=1.(8)
+
+
+
+

We next show that a single-layer transformer with an MLP can obtain 100% accuracy on the factual recall task, if the number of MLP parameters m​dmd scales linearly with the dataset size:

+
+
+
Theorem 4 (Attention + MLP, informal).
+
+

Assume that σ\sigma is a polynomial of sufficiently large degree. Define C(a)=|{(s,r):a∗​(s,r)=a}|C(a)=\absolutevalue{\{(s, r) : a^*(s, r) = a\}}. +Let (d,H,dh,m)(d,H,d_{h},m) satisfy

+ + + + + + + +
d≥Ω~​(1)H​dh≥Ω~​(S+R)m≥Ω~​(maxa⁡C⁡(a))m​d≥Ω~​(S​R).\displaystyle d\geq\tilde{\Omega}(1)\qquad Hd_{h}\geq\tilde{\Omega}(S+R)\qquad m\geq\tilde{\Omega}(\max_{a}C(a))\qquad md\geq\tilde{\Omega}(SR).(9)
+

Then with high probability over the embeddings there exists a single-layer transformer FTF​(⋅,𝛉TF)F_{\mathrm{TF}}(~\cdot~;{\bm{\theta}}_{\mathrm{TF}}) with embedding dimension dd, number of heads HH, head dimension dhd_{h}, and MLP width mm such that

+ + + + + + + +
ℙz1:T+1∼𝒟[argmaxz∈𝒱𝝋(z)⊤FTF(𝑿;𝜽TF)=zT+1]=1.\displaystyle\mathbb{P}_{z_{1:T+1}\sim\mathcal{D}}\left[\arg\max_{z\in{\mathcal{V}}}{\bm{\varphi}}(z)^{\top}F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}})=z_{T+1}\right]=1.(10)
+
+
+
+

The proofs of Theorem 3 and Theorem 4 are deferred to Appendix C.

+
+
+

Remarks.

+ +
+

Theorems 3 and 4 each have two main constraints on the size of the architecture needed to obtain 100% accuracy. First, the quantity H​dhHd_{h} must be larger than S+RS+R. This corresponds to self-attention having sufficient capacity to filter out the tokens in 𝒮∪ℛ{\mathcal{S}}\cup{\mathcal{R}} from the noise tokens 𝒩{\mathcal{N}}. For the attention-only architecture, we additionally require d=Ω~​(max⁡(R,D))d=\tilde{\Omega}(\max(R,D)). When R≥DR\geq D, the total number of parameters H​d​dhHdd_{h} is (up to logs) at least the total number of facts S​RSR. For the MLP construction, the second condition is that the number of MLP parameters, m​dmd, scales nearly linearly with the number of facts S​RSR. As such, as long as either the total number of self-attention parameters or the total number of MLP parameters is large enough, 100% accuracy can be obtained. The single-layer transformer can thus trade off MLP and self-attention parameters while still maintaining perfect accuracy. This phenomenon is reflected in the experiments in Section 4.4. We remark that it is straightforward to extend our construction to the case where we only need to store a size MM subset of 𝒮×ℛ{\mathcal{S}}\times{\mathcal{R}}, where the constraints now become H​d​dh,m​d=Ω~​(M)Hdd_{h},md=\tilde{\Omega}(M).

+
+
+
+
+
Figure 3: Both the Attention-only and Attention+MLP constructions for the factual recall task.
+
+
+
+

Proof Sketch.

+ +
+

Theorems 3 and 4 both utilize the associative memory framework of Section 3. First, the key and query matrices of each self-attention head act as a denoiser, selecting the relevant subject and relation tokens in z1:Tz_{1:T} while ignoring the noise tokens. To the hhth attention head, we associate a subset 𝒮(h)⊂𝒮∪ℛ{\mathcal{S}}^{(h)}\subset{\mathcal{S}}\cup{\mathcal{R}} of subject and relation tokens. Then, setting

+ + + + + + + +
𝑾K(h)⊤​𝑾Q(h)≈β​∑z∈𝒮(h)𝝋⁡(z)​𝝋​(EOS)⊤\displaystyle{{\bm{W}}_{K}^{(h)}}^{\top}{\bm{W}}_{Q}^{(h)}\approx\beta\sum_{z\in{\mathcal{S}}^{(h)}}{\bm{\varphi}}(z){\bm{\varphi}}(\mathrm{EOS})^{\top}(11)
+

for a large constant β\beta, we see that the hhth head will only attend to the tokens in the subset 𝒮(h){\mathcal{S}}^{(h)}. We remark that since the embeddings are dd-dimensional, at most d/poly⁡log⁡(d)d/\poly\log(d) embeddings can be in superposition, and thus we must have |𝒮(h)|≤d/poly⁡log⁡(d)\absolutevalue{\gS^{(h)}}\leq d/\poly\log(d).

+
+
+

For the attention-only construction, the output-value matrix 𝑾O(h)⊤​𝑾V(h){{\bm{W}}_{O}^{(h)}}^{\top}{\bm{W}}_{V}^{(h)} acts as a linear associative memory, mapping each zz in 𝒮(h){\mathcal{S}}^{(h)} to a superposition of all possible answers associated with the subject/relation zz. Letting PhP_{h} be a projection onto a random dhd_{h}-dimensional subspace of ℝd\mathbb{R}^{d}, we set

+ + + + + + + +
𝑾O(h)⊤​𝑾V(h)∝∑z∈𝒮(h)∑a∈𝒜z𝝋⁡(a)​𝝋​(z)⊤​Ph.\displaystyle{{\bm{W}}_{O}^{(h)}}^{\top}{\bm{W}}_{V}^{(h)}\propto\sum_{z\in{\mathcal{S}}^{(h)}}\sum_{a\in{\mathcal{A}}_{z}}{\bm{\varphi}}(a){\bm{\varphi}}(z)^{\top}P_{h}.(12)
+

In Lemma 2, we show that this construction stores at most dhd_{h} tokens per head (i.e |𝒮(h)|≲dh\absolutevalue{\gS^{(h)}}\lesssim d_{h}), and requires the dimension to scale with the number of elements in superposition (i.e |𝒜z|≲d\absolutevalue{\gA^z}\lesssim d). Since |𝒜z|≤R+D\absolutevalue{\gA^z}\leq R+D, and the 𝒮(h){\mathcal{S}}^{(h)} partition 𝒮∪ℛ{\mathcal{S}}\cup{\mathcal{R}}, it suffices to take d≳R+Dd\gtrsim R+D and H​dh≳S+RHd_{h}\gtrsim S+R.

+
+
+

For the MLP construction, we instead associate the subset 𝒮(h){\mathcal{S}}^{(h)} with ⌈d/dh⌉\lceil d/d_{h}\rceil attention heads. This is equivalent to having a single full-rank attention head per subset. We set the aggregate output-value matrix to the identity, so that the output of the self-attention layer is FMHSA​(𝑿,𝜽)=𝝋⁡(s)+𝝋⁡(r)F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})={\bm{\varphi}}(s)+{\bm{\varphi}}(r). Finally, the MLP layer acts as an MLP associative memory, mapping 𝝋⁡(s)+𝝋⁡(r){\bm{\varphi}}(s)+{\bm{\varphi}}(r) to 𝝋​(a∗​(s,r)){\bm{\varphi}}(a^{*}(s,r)) for each (s,r)(s,r) pair. Via a similar computation to Theorem 2, it suffices to make the total number of parameters m​dmd be m​d=Ω~​(S​R)md=\tilde{\Omega}(SR). Since the 𝒮(h){\mathcal{S}}^{(h)} partition 𝒮∪ℛ{\mathcal{S}}\cup{\mathcal{R}}, it suffices to take H​dh≳S+RHd_{h}\gtrsim S+R as well. See Figure 3 for a diagram describing both constructions.

+
+
+
+
+

4.4 Empirical Validation

+ +
+

We next empirically validate the claims of Theorems 3 and 4 that 100% accuracy can be obtained as long as either the total number of self-attention or MLP parameters scales with S​RSR. We further observe that 100% accuracy can be achieved as long as the total number of parameters scales with S​RSR, providing evidence that the model can simultaneously use attention and the MLP to store facts.

+
+
+

In Figure 4, we train a wide range of models of various “shapes” on datasets of varying sizes. A model shape is defined by the tuple (α,β,H)(\alpha,\beta,H)22 + 2 + + + + + + + + The “standard” transformer scaling takes α=1,β=4\alpha=1,\beta=4., and corresponds to the family of models satisfying H​dh=α​dHd_{h}=\alpha d and m=β​dm=\beta d. The total number of model parameters is 4​H​dh​d+2​m​d=(4​α+2​β)​d24Hd_{h}d+2md=(4\alpha+2\beta)d^{2}, which can thus be varied by increasing dd. For a fixed model size (d,H,dh,m)(d,H,d_{h},m), we binary search on the largest dataset size that can be memorized. Specifically, we fix D=8D=8 and vary S,RS,R jointly as S=RS=R. Experiments with different scalings are considered in Appendix A. For each (S,R,D)(S,R,D), the fact dataset is generated at random by selecting |𝒜|=R​D\absolutevalue{\gA}=RD, |𝒩|=S+R\absolutevalue{\gN}=S+R, and for each ss sampling a∗​(s,r)a^{*}(s,r) uniformly at random from {(r−1)​D+1,…,r​D}\{(r-1)D+1,\dots,rD\}. We say the dataset was successfully memorized, and as such S​RSR facts were stored, if the model can obtain an accuracy of at least 99%.

+
+
+

On the left panel of Figure 4 we observe that, across different model shapes, the maximum number of facts stored scales linearly with the total number of parameters. On the right panel, we consider a specific dataset with S=32,R=32,D=8S=32,R=32,D=8, and plot the accuracy as the number of parameters vary. We observe that the model can trade off MLP parameters for self-attention parameters, while still maintaining an accuracy of near 1. However, we do still require the total number of attention parameters to be large enough; this corresponds to the H​dh=Ω~​(S+R)Hd_{h}=\tilde{\Omega}(S+R) constraint.

+
+
+
+
Refer to caption
+
Figure 4: (Left) The number of facts stored scales linearly with the total number of parameters, for a wide range of model sizes. (Right) For a fixed dataset, the model can trade off MLP parameters for attention parameters to obtain 100% accuracy. The heatmap color corresponds to model accuracy.
+
+
+
+
+

5 Optimization Dynamics

+ +
+

We next study the optimization dynamics of the factual recall task. To simplify the model, we consider a linear attention transformer (i.e., the softmax is replaced with the identity map) with orthogonal embeddings. We set d=|𝒱|d=\absolutevalue{\gV}, and let the embedding vectors {𝝋⁡(z)}z∈𝒱\{{\bm{\varphi}}(z)\}_{z\in{\mathcal{V}}} satisfy ⟨𝝋⁡(z),𝝋⁡(z′)⟩=δz=z′\langle{\bm{\varphi}}(z),{\bm{\varphi}}(z^{\prime})\rangle=\delta_{z=z^{\prime}}. Such linear attention or orthogonal embeddings assumptions are common in prior works studying the gradient descent dynamics of transformers [27, 48, 1, 32, 50, 39].

+
+
+

The linear attention model is given by

+ + + + + + + +
Flin​(𝑿,𝜽):=𝑾O​V​𝑿⊤​𝑿​𝑾K​Q​𝒙T,\displaystyle F_{\mathrm{lin}}({\bm{X}};{\bm{\theta}}):={\bm{W}}_{OV}{\bm{X}}^{\top}{\bm{X}}{\bm{W}}_{KQ}{\bm{x}}_{T},(13)
+

where we set dh=dd_{h}=d and let 𝑾O​V:=𝑾O⊤​𝑾V{\bm{W}}_{OV}:={\bm{W}}_{O}^{\top}{\bm{W}}_{V}, 𝑾K​Q:=𝑾K⊤​𝑾Q{\bm{W}}_{KQ}:={\bm{W}}_{K}^{\top}{\bm{W}}_{Q} denote the non-factorized output-value and key-query matrices. +Let p^(⋅∣z1:T)∈Δ𝒜\hat{p}(\cdot\mid z_{1:T})\in\Delta_{{\mathcal{A}}} be the predicted next token distribution on an input sequence z1:Tz_{1:T}, i.e

+ + + + + + + +
p^(a∣z1:T):=exp⁡(⟨𝝋⁡(a),Flin​(𝑿,𝜽)⟩)∑a′∈𝒜exp⁡(⟨𝝋⁡(a′),Flin​(𝑿,𝜽)⟩).\displaystyle\hat{p}(a\mid z_{1:T}):=\frac{\exp\quantity(\langle\vphi(a), F_{\mathrm{lin}}(\mX; \vtheta) \rangle)}{\sum_{a^{\prime}\in{\mathcal{A}}}\exp\quantity(\langle\vphi(a'), F_{\mathrm{lin}}(\mX; \vtheta) \rangle)}.(14)
+

One can then rewrite the cross entropy loss as

+ + + + + + + +
L(𝜽)=𝔼z1:T+1[−logp^(zT+1∣z1:T)].\displaystyle L({\bm{\theta}})=\mathbb{E}_{z_{1:T+1}}\quantity[-\log\hat p(z_{T+1} \mid z_{1:T})].(15)
+
+
+

We would like to characterize the output of running gradient flow, (i.e 𝜽˙=−∇L​(𝜽)\dot{\bm{\theta}}=-\nabla L({\bm{\theta}})) with respect to the non-factorized parameters 𝜽:={𝑾O​V,𝑾K​Q}{\bm{\theta}}:=\{{\bm{W}}_{OV},{\bm{W}}_{KQ}\} on the cross-entropy loss (15). For notational convenience, we denote 𝑾O​V​(a,z):=𝝋​(a)⊤​𝑾O​V​𝝋​(z),𝑾K​Q​(z):=𝝋​(z)⊤​𝑾K​Q​𝝋​(EOS){\bm{W}}_{OV}(a,z):={\bm{\varphi}}(a)^{\top}{\bm{W}}_{OV}{\bm{\varphi}}(z),{\bm{W}}_{KQ}(z):={\bm{\varphi}}(z)^{\top}{\bm{W}}_{KQ}{\bm{\varphi}}(\mathrm{EOS}), and note that by isometry gradient flow on 𝜽{\bm{\theta}} is equivalent to gradient flow on these quantities.

+
+
+

Let us assume that we start from the following “balanced” initialization.

+
+
+
Assumption 2.
+
+

Given an initialization scale α>0\alpha>0, set 𝐖O​V​(a,z)=α{\bm{W}}_{OV}(a,z)=\alpha and 𝐖K​Q​(z)=α​|𝒜|+1{\bm{W}}_{KQ}(z)=\alpha\sqrt{\absolutevalue{\gA}+1} for each a∈𝒜,z∈𝒱a\in{\mathcal{A}},z\in{\mathcal{V}}.

+
+
+
+

Our first result is that the gradient flow indeed converges to zero loss. As a consequence, the predicted next token probabilities p^(zT+1∣z1:T)\hat{p}(z_{T+1}\mid z_{1:T}) converge to 𝟏​(zT+1=a∗​(s,r))\mathbf{1}(z_{T+1}=a^{*}(s,r)), where s,rs,r are the subject and relation contained in the sequnece z1:Tz_{1:T}.

+
+
+
Theorem 5 (Global Convergence).
+
+

For t≥0t\geq 0, let 𝛉⁡(t){\bm{\theta}}(t) be the output of running gradient flow for tt time. For any δ>0\delta>0, there exists a time tδt_{\delta} such that for t≥tδt\geq t_{\delta}, L⁡(𝛉⁡(t))≤δL({\bm{\theta}}(t))\leq\delta.

+
+
+
+

We next show that the model undergoes a sequential learning dynamics. Let us assume that the number of subjects SS is much greater than the number of facts RR. We show that during the first stage of training only the 𝑾O​V​(a,r){\bm{W}}_{OV}(a,r) and 𝑾K​Q​(r){\bm{W}}_{KQ}(r) components grow for relations r∈ℛr\in{\mathcal{R}}, while the remainder of the parameters stay close to zero. As such, the model gets close to outputting the best predictor based on just the relation token rr. Define p∗(⋅∣r)p^{*}(\cdot\mid r) to be the conditional distribution of the answer, given the relation rr, i.e p∗​(a∣r):=∑s∈𝒮p⁡(s∣r)​𝟏​(a=a∗​(s,r)).p^{*}(a\mid r):=\sum_{s\in{\mathcal{S}}}p(s\mid r)\mathbf{1}(a=a^{*}(s,r)).

+
+
+
Theorem 6 (Sequential Learning).
+
+

Assume that S≥8​R​2​DS\geq 8R\sqrt{2D}, and |𝒩|≥4​R​2​D​T\absolutevalue{\gN}\geq 4R\sqrt{2D}T. Let p⁡(s,r)=1S​Rp(s,r)=\frac{1}{SR}. Pick ϵ>0\epsilon>0. There exists runtime T∗T^{*} and initialization scale α\alpha (both depending on ϵ\epsilon) such that:

+
    +
  1. 1. +
    +

    For all t≤T∗t\leq T^{*} and z∈𝒮∪𝒩,a∈𝒜z\in{\mathcal{S}}\cup{\mathcal{N}},a\in{\mathcal{A}}, we have |𝑾O​V​(a,z)|,|𝑾K​Q​(z)|≤α1/2\absolutevalue{\mW_{OV}(a, z)},\absolutevalue{\mW_{KQ}(z)}\leq\alpha^{1/2}

    +
  2. +
  3. 2. +
    +

    There exists t≤T∗t\leq T^{*} such that, for any input sequence z1:Tz_{1:T} containing a relation rr,

    + + + + + + + +
    ∑a∈𝒜(p∗(a∣r)−p^(a∣z1:T))2≤ϵ2.\displaystyle\sum_{a\in{\mathcal{A}}}\quantity(p^*(a \mid r) - \hat p(a \mid z_{1:T}))^{2}\leq\epsilon^{2}.(16)
    +
  4. +
+
+
+
+

Proofs of Theorems 5 and 6 are deferred to Appendix D.

+
+
+

Remarks.

+ +
+

Theorem 6 tells us that at some intermediate time, the prediction of the model p^(⋅∣z1:T)\hat{p}(\cdot\mid z_{1:T}) is approximately equal to p∗(⋅∣r)p^{*}(\cdot\mid r), the conditional distribution of the answer given the relation rr. At this stage, the model ignores all other tokens in the sequence z1:Tz_{1:T} – including the useful subject token ss – and predicts based only on the relation rr. For example, if 𝒮{\mathcal{S}} is the set of all countries and rr is the relation “capital,” then on the prompt “What is the capital of France?” the model will output a random countries’ capital. We view this as an instance of hallucination: the model is outputting a plausible, yet ultimately incorrect, answer to the prompt. We remark that without the assumption that S≫RS\gg R, it is possible for this intermediate hallucination stage to exhibit different behavior.

+
+
+
+
+
Figure 5: (Left) Loss of the linear attention model with orthogonal embeddings. There is an intermediate hallucination stage where the loss plateaus and the model predicts based on only the relation. (Right) Loss of the softmax attention model with random embeddings. We again observe an intermediate hallucination stage, where the relation-only loss is zero but the total loss is still large.
+
+
+
+

Empirical Validation.

+ +
+

We next empirically verify Theorems 5 and 6. We first train the linear attention model with orthogonal embeddings (15) with S=16,R=4S=16,R=4 and D=8D=8, and plot the loss over time. In the left pane of Figure 5, we observe three distinct stages. At the start of training, the prediction is close to uniform over all possible answers, and the model obtains a loss of log⁡|𝒜|\log\absolutevalue{\gA}. Next, the loss plateaus at log⁡D\log D, and the model outputs the conditional distribution of aa given the relation rr. Finally, as training continues, the model escapes the plateau and converges to zero loss. +We include the “relation-only loss” in the plot, defined as 𝔼z1:T+1[−log(∑a∈𝒜rp(a∣z1:T))]\mathbb{E}_{z_{1:T+1}}\quantity[-\log\qty(\sum_{a \in\gA_r}p(a \mid z_{1:T}))], where any probability mass assigned to an answer which is valid for the relation rr is considered to be correct; the subject-only loss is defined analogously.

+
+
+

In the right pane of Figure 5, we plot the loss of a single softmax attention head with random embeddings trained on the same factual recall task. We observe similar phenomenology as for linear attention, and identify an intermediate “hallucination” stage where the relation-only loss drops to zero, but the subject-only loss is still far from zero.

+
+
+
+
+

6 Lower Bounds

+ +
+

In this section, we argue via information-theoretic arguments that the results from Sections 3 and 4 are optimal up to logarithmic factors. Proofs are deferred to Appendix E.

+
+
+

Associative Memories.

+ +
+

Let [N][N] and [M][M] be the input and output vocabularies, respectively. To establish a lower bound, we must consider a distribution over association functions f∗f^{*}. For each x∈[N]x\in[N], assume that the output f∗​(x)f^{*}(x) is sampled independently from the uniform distribution over [M][M]. We model the learning protocol as follows. At train time, the learner observes the randomly sampled ground truth f∗f^{*}, and writes down a BB bit model 𝑭{\bm{F}}. At test time, the learner generates a set of predictions f^∈ℝN×M\hat{f}\in\mathbb{R}^{N\times M} from 𝑭{\bm{F}}, where f^​(x)∈ΔM\hat{f}(x)\in\Delta_{M} is the prediction for f∗​(x)f^{*}(x). Both the mappings f∗→𝑭f^{*}\rightarrow{\bm{F}} and 𝑭→f^{\bm{F}}\rightarrow\hat{f} can be randomized. Let pp be a probability distribution over the input space [N][N]; assume WLOG that p⁡(1)≥p⁡(2)≥⋯≥p⁡(N)p(1)\geq p(2)\geq\cdots\geq p(N). The goal of the learner is to minimize the cross entropy loss L(f^)=−∑x∈[N]p(x)logf^(x)f∗​(x).L(\hat{f})=-\sum_{x\in[N]}p(x)\log\hat{f}(x)_{f^{*}(x)}.

+
+
+
Theorem 7.
+
+

The expected loss of the learner can be lower bounded by

+ + + + + + + +
𝔼f∗,f^​[L⁡(f^)]≥log⁡M⋅∑x≥⌈Blog⁡M⌉p⁡(x).\displaystyle\mathbb{E}_{f^{*},\hat{f}}\quantity[L(\hat f)]\geq\log M\cdot\sum_{x\geq\lceil\frac{B}{\log M}\rceil}p(x).(17)
+
+
+
+

We thus see that in order to obtain zero loss, the learner must use B≥N​log⁡MB\geq N\log M bits; this matches the construction from Theorem 2 up to log factors. As a corollary of Theorem 7, we can obtain scaling law lower bounds with respect to model size.

+
+
+
Corollary 1.
+
+

Assume that pp is a power law, i.e p⁡(x)∝x−αp(x)\propto x^{-\alpha} for α>1\alpha>1. Then 𝔼f∗,f^​[L⁡(f^)]≳B1−α\mathbb{E}_{f^{*},\hat{f}}\quantity[L(\hat f)]\gtrsim B^{1-\alpha}.

+
+
+
+

This lower bound is obtained by the MLP associative memory by storing the most probable O~​(B)\tilde{O}(B) associations. This matches the scaling law with respect to model size considered in Michaud et al. [36], Cabannes et al. [7], which also considered storing the O~​(B)\tilde{O}(B) most frequent associations.

+
+
+
+

Remark.

+ +
+

The constructions in Section 3 require storing O~​(N)\tilde{O}(N) network parameters, along with input and output embeddings. We view 𝑭{\bm{F}} in Theorem 7 as containing only the network parameters, while the embeddings are “global” quantities, independent of the ground truth f∗f^{*}, used to compute the predictions f^\hat{f}. This matches our interpretation of the embeddings as fixed global quantities which cannot be modified by the associative memory. We remark that the associative memory constructions from Section 3 match the lower bound, since they hold for O~​(1)\tilde{O}(1)-bit precision (Corollary 2).

+
+
+
+

Factual Recall.

+ +
+

We next prove a lower bound for the factual recall task; a similar bound was proven in Allen-Zhu and Li [2]. Let 𝒮{\mathcal{S}} and ℛ{\mathcal{R}} be the fixed set of subjects and relations and 𝒱{\mathcal{V}} be the full vocabulary, where |𝒱|≫|𝒮|,|ℛ|\absolutevalue{\gV}\gg\absolutevalue{\gS},\absolutevalue{\gR}. The association function a∗:𝒮×ℛ→𝒱a^{*}:{\mathcal{S}}\times{\mathcal{R}}\rightarrow{\mathcal{V}} is sampled randomly as follows. First, for each relation r∈ℛr\in{\mathcal{R}}, the answer set 𝒜r{\mathcal{A}}_{r} is chosen to be a uniformly random size DD subset of 𝒱{\mathcal{V}}, conditional on all subsets 𝒜r{\mathcal{A}}_{r} being disjoint. For each s∈𝒮s\in{\mathcal{S}}, the answer a∗​(s,r)a^{*}(s,r) is sampled uniformly at random from 𝒜r{\mathcal{A}}_{r}. The learner sees the association a∗a^{*}, writes down a BB bit model 𝑭{\bm{F}}, and from 𝑭{\bm{F}} generates a set of predictions f^∈ℝS×R×|𝒱|\hat{f}\in\mathbb{R}^{S\times R\times\absolutevalue{\gV}}, where f^​(s,r)∈Δ𝒱\hat{f}(s,r)\in\Delta_{{\mathcal{V}}} is the prediction for a∗​(s,r)a^{*}(s,r). We lower bound 𝑳{\bm{L}}, the expected cross entropy loss with respect to a distribution p⁡(s,r)p(s,r) over 𝒮×ℛ{\mathcal{S}}\times{\mathcal{R}}, defined as follows:

+ + + + + + + +
𝑳:=𝔼a∗,f^​[L⁡(f^)]=𝔼a∗,f^​[−∑s,rp(s,r)logf^(s,r)a∗​(s,r)].\displaystyle{\bm{L}}:=\mathbb{E}_{a^{*},\hat{f}}\quantity[L(\hat f)]=\mathbb{E}_{a^{*},\hat{f}}\quantity[-\sum_{s, r}p(s, r)\log\hat f(s, r)_{a^*(s, r)}].(18)
+
+
+
Theorem 8.
+
+

Assume that |𝒱|≥2​R​D\absolutevalue{\gV}\geq 2RD and S≥C​D​log⁡(2​D2​log⁡|V|)S\geq CD\log(2D^2\log\abs{V}) for sufficiently large constant CC. There exists a constant c∈(0,1)c\in(0,1) such that, if 𝐋=0{\bm{L}}=0, the number of bits BB must satisfy

+ + + + + + + +
B≥S​R​log⁡D+(1−c)​R​D​log⁡(|𝒱|/D)\displaystyle B\geq SR\log D+(1-c)RD\log\quantity(\abs{\gV}/D)(19)
+
+
+
+

We thus see that O~​(S​R)\tilde{O}(SR) parameters are needed to achieve a loss of zero. For this lower bound, the learner knows the sets 𝒮{\mathcal{S}} and ℛ{\mathcal{R}} and does not have to distinguish them from the noise tokens 𝒩{\mathcal{N}}, making it a strictly easier problem than the factual recall task in Section 4.

+
+
+
+
+

7 Discussion

+ +
+

In this work, we showed that shallow transformers can use associative memories to obtain near optimal storage capacity for factual recall tasks. Furthermore, by studying the optimization dynamics of a simplified model, we also showed that transformers undergo an intermediate hallucination stage. One interesting direction of future work is to better understand the role of the embeddings, and whether there exists an optimal choice of (non-random) embeddings leading to more efficient constructions. Another important direction is to understand the implication of our results towards understanding empirical LLM scaling laws [14]. In particular, does there exist a scaling law lower bound for the factual recall task? Finally, it would be very interesting to understand the extent to which larger models utilize similar associative memory constructions, and if one can probe whether specific “facts” are stored in either the self-attention matrices or the MLP.

+
+
+
+

Acknowledgements

+ +
+

JDL acknowledges support of NSF CCF 2002272, NSF IIS 2107304, NSF CIF 2212262, ONR Young Investigator Award, and NSF CAREER Award 2144994. This work was conducted in part at the Simons Institute.

+
+
+
+

References

+ +
    + +
  • [1] + +Kwangjun Ahn, Xiang Cheng, Hadi Daneshmand, and Suvrit Sra. + + +Transformers learn to implement preconditioned gradient descent for in-context learning. + + +Advances in Neural Information Processing Systems, 36, 2024. + +
  • + +
  • [2] + +Zeyuan Allen-Zhu and Yuanzhi Li. + + +Physics of language models: Part 3.3, knowledge capacity scaling laws. + + +arXiv preprint arXiv:2404.05405, 2024. + +
  • + +
  • [3] + +William Beckner. + + +Inequalities in fourier analysis. + + +Annals of Mathematics, 102(1):159–182, 1975. + + +ISSN 0003486X, 19398980. + + +URL http://www.jstor.org/stable/1970980. + +
  • + +
  • [4] + +William Beckner. + + +Sobolev inequalities, the poisson semigroup, and analysis on the sphere sn. + + +Proceedings of the National Academy of Sciences of the United States of America, 89(11):4816–4819, 1992. + + +ISSN 00278424, 10916490. + + +URL http://www.jstor.org/stable/2359537. + +
  • + +
  • [5] + +Alberto Bietti, Vivien Cabannes, Diane Bouchacourt, Herve Jegou, and Leon Bottou. + + +Birth of a transformer: A memory viewpoint. + + +In Advances in Neural Information Processing Systems (NeurIPS), 2023. + +
  • + +
  • [6] + +Sébastien Bubeck, Ronen Eldan, Yin Tat Lee, and Dan Mikulincer. + + +Network size and size of the weights in memorization with two-layers neural networks. + + +In Advances in Neural Information Processing Systems, 2020. + +
  • + +
  • [7] + +Vivien Cabannes, Elvis Dohmatob, and Alberto Bietti. + + +Scaling laws for associative memories. + + +In International Conference on Learning Representations (ICLR), 2024. + +
  • + +
  • [8] + +Mete Demircigil, Judith Heusel, Matthias Löwe, Sven Upgang, and Franck Vermet. + + +On a model of associative memory with huge storage capacity. + + +Journal of Statistical Physics, 168:288–299, 2017. + +
  • + +
  • [9] + +Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. + + +Gpt3. int8 (): 8-bit matrix multiplication for transformers at scale. + + +Advances in Neural Information Processing Systems, 35:30318–30332, 2022. + +
  • + +
  • [10] + +Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, and Christopher Olah. + + +Toy models of superposition. + + +Transformer Circuits Thread, 2022. + + +URL https://transformer-circuits.pub/2022/toy_model/index.html. + +
  • + +
  • [11] + +Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. + + +Transformer feed-forward layers are key-value memories. + + +In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2021. + +
  • + +
  • [12] + +Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. + + +Dissecting recall of factual associations in auto-regressive language models. + + +In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2023. + +
  • + +
  • [13] + +Gaurav Ghosal, Tatsunori Hashimoto, and Aditi Raghunathan. + + +Understanding finetuning for factual knowledge extraction. + + +arXiv preprint arXiv:2406.14785, 2024. + +
  • + +
  • [14] + +Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. + + +Training compute-optimal large language models. + + +arXiv preprint arXiv:2203.15556, 2022. + +
  • + +
  • [15] + +Benjamin Hoover, Yuchen Liang, Bao Pham, Rameswar Panda, Hendrik Strobelt, Duen Horng Chau, Mohammed Zaki, and Dmitry Krotov. + + +Energy transformer. + + +Advances in Neural Information Processing Systems, 36, 2023. + +
  • + +
  • [16] + +John J Hopfield. + + +Neural networks and physical systems with emergent collective computational abilities. + + +Proceedings of the national academy of sciences, 79(8):2554–2558, 1982. + +
  • + +
  • [17] + +Arthur Jacot, Franck Gabriel, and Clément Hongler. + + +Neural tangent kernel: Convergence and generalization in neural networks. + + +Advances in neural information processing systems, 31, 2018. + +
  • + +
  • [18] + +Samy Jelassi, Michael Sander, and Yuanzhi Li. + + +Vision transformers provably learn spatial structure. + + +In Advances in Neural Information Processing Systems (NeurIPS), 2022. + +
  • + +
  • [19] + +Samy Jelassi, Clara Mohri, David Brandfonbrener, Alex Gu, Nikhil Vyas, Nikhil Anand, David Alvarez-Melis, Yuanzhi Li, Sham M Kakade, and Eran Malach. + + +Mixture of parrots: Experts improve memorization more than reasoning. + + +arXiv preprint arXiv:2410.19034, 2024. + +
  • + +
  • [20] + +Yibo Jiang, Goutham Rajendran, Pradeep Ravikumar, and Bryon Aragam. + + +Do llms dream of elephants (when told not to)? latent concept association and associative memory in transformers. + + +arXiv preprint arXiv:2406.18400, 2024. + +
  • + +
  • [21] + +Zhengbao Jiang, Frank F Xu, Jun Araki, and Graham Neubig. + + +How can we know what language models know? + + +Transactions of the Association for Computational Linguistics, 8:423–438, 2020. + +
  • + +
  • [22] + +Tokio Kajitsuka and Issei Sato. + + +Are transformers with one layer self-attention using low-rank weight matrices universal approximators? + + +arXiv preprint arXiv:2307.14023, 2023. + +
  • + +
  • [23] + +Tokio Kajitsuka and Issei Sato. + + +Optimal memorization capacity of transformers. + + +arXiv preprint arXiv:2409.17677, 2024. + +
  • + +
  • [24] + +Teuvo Kohonen. + + +Correlation matrix memories. + + +IEEE Transactions on Computers, 1972. + +
  • + +
  • [25] + +Dmitry Krotov and John J Hopfield. + + +Dense associative memory for pattern recognition. + + +Advances in neural information processing systems, 29, 2016. + +
  • + +
  • [26] + +Hung Le, Truyen Tran, and Svetha Venkatesh. + + +Self-attentive associative memory. + + +In International conference on machine learning, pages 5682–5691. PMLR, 2020. + +
  • + +
  • [27] + +Yuchen Li, Yuanzhi Li, and Andrej Risteski. + + +How do transformers learn topic structure: Towards a mechanistic understanding. + + +In Proceedings of the International Conference on Machine Learning (ICML), 2023. + +
  • + +
  • [28] + +Carlo Lucibello and Marc Mézard. + + +Exponential capacity of dense associative memories. + + +Physical Review Letters, 132(7):077301, 2024. + +
  • + +
  • [29] + +Ang Lv, Kaiyi Zhang, Yuhan Chen, Yulong Wang, Lifeng Liu, Ji-Rong Wen, Jian Xie, and Rui Yan. + + +Interpreting key mechanisms of factual recall in transformer-based language models. + + +arXiv preprint arXiv:2403.19521, 2024. + +
  • + +
  • [30] + +Liam Madden and Christos Thrampoulidis. + + +Memory capacity of two layer neural networks with smooth activations. + + +SIAM Journal on Mathematics of Data Science, 6(3):679–702, 2024. + +
  • + +
  • [31] + +Liam Madden, Curtis Fox, and Christos Thrampoulidis. + + +Upper and lower memory capacity bounds of transformers for next-token prediction. + + +arXiv preprint arXiv:2405.13718, 2024. + +
  • + +
  • [32] + +Arvind Mahankali, Tatsunori B Hashimoto, and Tengyu Ma. + + +One step of gradient descent is provably the optimal in-context learner with one layer of linear self-attention. + + +In Proceedings of the International Conference on Learning Representations (ICLR), 2024. + +
  • + +
  • [33] + +Sadegh Mahdavi, Renjie Liao, and Christos Thrampoulidis. + + +Memorization capacity of multi-head attention in transformers. + + +arXiv preprint arXiv:2306.02010, 2023. + +
  • + +
  • [34] + +R. McEliece, E. Posner, E. Rodemich, and S. Venkatesh. + + +The capacity of the hopfield associative memory. + + +IEEE Transactions on Information Theory, 33(4):461–482, 1987. + + +doi: 10.1109/TIT.1987.1057328. + +
  • + +
  • [35] + +Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. + + +Locating and editing factual associations in gpt. + + +In Advances in Neural Information Processing Systems (NeurIPS), 2022. + +
  • + +
  • [36] + +Eric Michaud, Ziming Liu, Uzay Girit, and Max Tegmark. + + +The quantization model of neural scaling. + + +Advances in Neural Information Processing Systems, 36, 2023. + +
  • + +
  • [37] + +Ashley Montanaro. + + +Some applications of hypercontractive inequalities in quantum information theory. + + +Journal of Mathematical Physics, 53(12), 2012. + +
  • + +
  • [38] + +Neel Nanda, S Rajamanoharan, J Kramár, and R Shah. + + +Fact finding: Attempting to reverse-engineer factual recall on the neuron level. + + +AI Alignment Forum, 2023. + + +URL https://www.alignmentforum.org/posts/iGuwZTHWb6DFY3sKB/fact-finding-attempting-to-reverse-engineer-factual-recall. + +
  • + +
  • [39] + +Eshaan Nichani, Alex Damian, and Jason D Lee. + + +How transformers learn causal structure with gradient descent. + + +In Proceedings of the International Conference on Machine Learning (ICML), 2024. + +
  • + +
  • [40] + +Fabio Petroni, Tim Rocktäschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H Miller, and Sebastian Riedel. + + +Language models as knowledge bases? + + +In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2019. + +
  • + +
  • [41] + +Adityanarayanan Radhakrishnan, Mikhail Belkin, and Caroline Uhler. + + +Overparameterized neural networks implement associative memory. + + +Proceedings of the National Academy of Sciences, 117(44):27162–27170, 2020. + +
  • + +
  • [42] + +Hubert Ramsauer, Bernhard Schäfl, Johannes Lehner, Philipp Seidl, Michael Widrich, Thomas Adler, Lukas Gruber, Markus Holzleitner, Milena Pavlović, Geir Kjetil Sandve, et al. + + +Hopfield networks is all you need. + + +arXiv preprint arXiv:2008.02217, 2020. + +
  • + +
  • [43] + +Adam Roberts, Colin Raffel, and Noam Shazeer. + + +How much knowledge can you pack into the parameters of a language model? + + +In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2020. + +
  • + +
  • [44] + +Imanol Schlag, Kazuki Irie, and Jürgen Schmidhuber. + + +Linear transformers are secretly fast weight programmers. + + +In Proceedings of the International Conference on Machine Learning (ICML), 2021. + +
  • + +
  • [45] + +Charlie Snell, Ruiqi Zhong, Dan Klein, and Jacob Steinhardt. + + +Approximating how single head attention learns. + + +arXiv preprint arXiv:2103.07601, 2021. + +
  • + +
  • [46] + +Yuandong Tian, Yiping Wang, Beidi Chen, and Simon Du. + + +Scan and snap: Understanding training dynamics and token composition in 1-layer transformer. + + +In Advances in Neural Information Processing Systems (NeurIPS), 2023. + +
  • + +
  • [47] + +Gal Vardi, Gilad Yehudai, and Ohad Shamir. + + +On the optimal memorization power of relu neural networks. + + +arXiv preprint arXiv:2110.03187, 2021. + +
  • + +
  • [48] + +Johannes Von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento, Alexander Mordvintsev, Andrey Zhmoginov, and Max Vladymyrov. + + +Transformers learn in-context by gradient descent. + + +In International Conference on Machine Learning, pages 35151–35174. PMLR, 2023. + +
  • + +
  • [49] + +David J Willshaw, O Peter Buneman, and Hugh Christopher Longuet-Higgins. + + +Non-holographic associative memory. + + +Nature, 222(5197):960–962, 1969. + +
  • + +
  • [50] + +Ruiqi Zhang, Spencer Frei, and Peter L Bartlett. + + +Trained transformers learn linear models in-context. + + +Journal of Machine Learning Research, 25(49):1–55, 2024. + +
  • + +
+
+
+
+

Appendix A Additional Experiments

+ +
+

A.1 MLP Associative Memory

+ +
+

In Figure 6, we train MLP associative memories to store the association f∗​(x)=xmodMf^{*}(x)=x\mod M. We fix M=32M=32 throughout. In this case, we see that the number of associations NN which can be stored by a model with m​dmd parameters scales as N∝m​dN\propto md. This linear scaling in the absence of logarithmic factors is due to the fact that the number of output tokens MM is a constant, and does not scale with the number of input tokens NN.

+
+
+
Figure 6: We train an MLP associative memory to store the association f∗​(x)=xmod32f^{*}(x)=x\mod 32. Empirically, m​d∝Nmd\propto N parameters are required to store NN associations.
+
+
+
+

A.2 Factual Recall

+ +
+

In Figures 7, 8 and 9, we repeat the experiment in the left pane of Figure 4, for different choices of HH and scalings of (S,R,D)(S,R,D). In all plots, we observe the general trend that the number of facts stored scales proportionally to the number of model parameters.

+
+
+
+
+
Figure 7: We repeat the experiment in Figure 4, varying the number of head to be 4 (Left) or 16 (Right). In both cases, we observe that the number of facts stored scales linear with the parameter count.
+
+
+
+
+
Figure 8: We repeat Figure 4 on factual recall tasks where each subject and relation map to a distinct answer (i.e D=SD=S).
+
+
+
+
+
Figure 9: We repeat Figure 4 on factual recall tasks where the number of subjects is much larger than the number of relations; specifically, we take S=R2S=R^{2}.
+
+
+
+

A.3 Experimental Details

+ +
+

Figures 1, 6:

+ +
+

For the MLP associative memory experiments, for each choice of m,d,Nm,d,N, we first sample random embeddings {𝒆x}x∈[N],{𝒖y}y∈[M]\{{\bm{e}}_{x}\}_{x\in[N]},\{{\bm{u}}_{y}\}_{y\in[M]} i.i.d uniformly over the sphere. We train a two-layer neural network on the cross entropy loss to predict the association f∗​(x)=xf^{*}(x)=x. We use standard parameterization and initialization, and the activation σ=ReLU\sigma=\mathrm{ReLU}. The network is trained using ADAM with a learning rate of 10−210^{-2} for 2142^{14} steps. We compute the maximum accuracy the network achieves over the training run, and say that the network has “stored” the dataset if the highest accuracy is at least 99%99\%. We repeat this procedure to binary search over NN, to find the largest value of NN such that the network achieves an accuracy of at least 99%99\%. Error bars are shown for 5 random seeds.

+
+
+
+

Figures 4, 7, 8, 9:

+ +
+

We consider a fixed prompt length of T=32T=32, and train the models via online batch gradient descent with batch size 1024 on the population loss (i.e we sample an independent batch at each timestep). We use standard parameterization and initialization for both self-attention and the MLP. For a fixed model size, we binary search over the maximum value of S​RSR such that the model achieves an accuracy of at least 99%99\%. All models were trained using ADAM for 2142^{14} steps, with a sweep over learning rates in {.001,.003,.01}\{.001,.003,.01\} (where we consider the best performing model over all learning rates).

+
+
+
+

Figure 5:

+ +
+

In the left pane we train a linear attention head with orthogonal embeddings. The weights are all initialized to be equal to 10−510^{-5}. In the right plot, we train a softmax attention head with random embeddings, which are fixed throughout training.

+
+
+
+
+
+

Appendix B Proofs for Section 3

+ +
+
Proof of Theorem 1.
+
+

Let us set 𝑾=∑z∈[N]𝒖f∗​(z)​𝒆z⊤{\bm{W}}=\sum_{z\in[N]}{\bm{u}}_{f^{*}(z)}{\bm{e}}_{z}^{\top}. For y≠f∗​(x)y\neq f^{*}(x), define the quantity γx​y\gamma_{xy} by

+ + + + + + +
γx​y=(𝒖f∗​(x)−𝒖y)⊤​𝑾​𝒆x.\displaystyle\gamma_{xy}=({\bm{u}}_{f^{*}(x)}-{\bm{u}}_{y})^{\top}{\bm{W}}{\bm{e}}_{x}.
+

We first see that (where the expectation is taken over the randomness of the embedding vectors)

+ + + + + + + + + + + + + + + + + +
𝔼⁡[γx​y]\displaystyle\mathbb{E}[\gamma_{xy}]=∑z∈[N]𝔼​[(𝒖f∗​(x)−𝒖y)⊤​𝒖f∗​(z)]​𝔼​[𝒆z⊤​𝒆x]\displaystyle=\sum_{z\in[N]}\mathbb{E}\quantity[(\vu_{f^*(x)} - \vu_y)^\top\vu_{f^*(z)}]\mathbb{E}\quantity[\ve_z^\top\ve_x]
=𝔼​[(𝒖f∗​(x)−𝒖y)⊤​𝒖f∗​(x)]\displaystyle=\mathbb{E}\quantity[(\vu_{f^*(x)} - \vu_y)^\top\vu_{f^*(x)}]
=1.\displaystyle=1.
+

We can next compute the second moment of γx​y\gamma_{xy}. Since the 𝒆z{\bm{e}}_{z} are drawn uniformly on the sphere, the 𝒆z⊤​𝒆x{\bm{e}}_{z}^{\top}{\bm{e}}_{x} terms for z≠xz\neq x are independent and mean zero. Therefore

+ + + + + + + + + + + + + + + + + + + + + + +
𝔼⁡[γx​y2]\displaystyle\mathbb{E}[\gamma_{xy}^{2}]=∑z∈[N]𝔼​[((𝒖f∗​(x)−𝒖y)⊤​𝒖f∗​(z))2]​𝔼​[(𝒆z⊤​𝒆x)2]\displaystyle=\sum_{z\in[N]}\mathbb{E}\quantity[\qty((\vu_{f^*(x)} - \vu_y)^\top\vu_{f^*(z)})^2]\mathbb{E}\quantity[\qty(\ve_z^\top\ve_x)^2]
=𝔼​[(1−𝒖f∗​(x)⊤​𝒖y)2]+1d​∑z≠x𝔼​[((𝒖f∗​(x)−𝒖y)⊤​𝒖f∗​(z))2]\displaystyle=\mathbb{E}\quantity[\qty(1 - \vu_{f^*(x)}^\top\vu_y)^2]+\frac{1}{d}\sum_{z\neq x}\mathbb{E}\quantity[\qty((\vu_{f^*(x)} - \vu_y)^\top\vu_{f^*(z)})^2]
=1+1d+1d​∑z≠x(2d⋅𝟏​(f∗​(z)≠y)+(1+1d)⋅𝟏​(f∗​(z)=y))\displaystyle=1+\frac{1}{d}+\frac{1}{d}\sum_{z\neq x}\quantity(\frac{2}{d}\cdot\mathbf{1}(f^*(z) \neq y) + \qty(1 + \frac{1}{d})\cdot\mathbf{1}(f^*(z) = y))
=(1+1d)2+2​(N−2)d2.\displaystyle=\quantity(1 + \frac{1}{d})^{2}+\frac{2(N-2)}{d^{2}}.
+

Therefore

+ + + + + + +
Var⁡(γx​y)=2d+1d2+2​(N−2)d2≲1d+Nd2.\displaystyle\mathrm{Var}(\gamma_{xy})=\frac{2}{d}+\frac{1}{d^{2}}+\frac{2(N-2)}{d^{2}}\lesssim\frac{1}{d}+\frac{N}{d^{2}}.
+
+
+

Let δ\delta be a fixed failure probability, and let δ′=δN​M\delta^{\prime}=\frac{\delta}{NM}. Observe that γx​y\gamma_{xy} is a degree 4 polynomial. By Lemma 14, by choosing d≥C​log4⁡(1/δ′)d\geq C\log^{4}(1/\delta^{\prime}) and d2≥C​N​log4⁡(1/δ′)d^{2}\geq CN\log^{4}(1/\delta^{\prime}) for a sufficiently large constant CC, we have that 16​e−1​log4⁡(1/δ)​Var​(γx​y)(𝔼​γx​y)2≤1\frac{16e^{-1}\log^{4}(1/\delta)\mathrm{Var}(\gamma_{xy})}{(\mathbb{E}\gamma_{xy})^{2}}\leq 1, and thus ℙ⁡(γx​y≤0)≤δ′\mathbb{P}(\gamma_{xy}\leq 0)\leq\delta^{\prime}.

+
+
+

Therefore union bounding over all (x,y)(x,y) pairs with y≠f∗​(x)y\neq f^{*}(x), we have that

+ + + + + + +
ℙ​(∃γx​y≤0)≤N⁡(M−1)​δ′≤δ.\displaystyle\mathbb{P}\quantity(\exists~\gamma_{xy} \le 0)\leq N(M-1)\delta^{\prime}\leq\delta.
+

Thus with probability 1−δ1-\delta, γx​y>0\gamma_{xy}>0 for all xx and y≠f∗​(x)y\neq f^{*}(x), and on this event arg⁡maxy∈[M]​𝒖y⊤​𝑾​𝒆x=f∗​(x)\arg\max_{y\in[M]}{\bm{u}}_{y}^{\top}{\bm{W}}{\bm{e}}_{x}=f^{*}(x) for all x∈[N]x\in[N].

+
+
+

∎

+
+
+
+

For Theorem 2, we need the following assumption on the activation σ\sigma.

+
+
+
Assumption 3.
+
+

σ\sigma is a polynomial of degree qq. Furthermore, if σ⁡(z)=∑k=0qck​hk​(z)\sigma(z)=\sum_{k=0}^{q}c_{k}h_{k}(z) is the Hermite decomposition of σ\sigma, then ck≠0c_{k}\neq 0 for all 0≤k≤q0\leq k\leq q.

+
+
+
+

We prove the following formal version of Theorem 2.

+
+
+
Theorem 9.
+
+

Let ϵ∈(0,1)\epsilon\in(0,1) be a fixed constant. Assume that d≥Nϵd\geq N^{\epsilon} and N≥C1​(ϵ)N\geq C_{1}(\epsilon), where C1​(ϵ)C_{1}(\epsilon) is a constant depending only on ϵ\epsilon. Assume that qq in Assumption 3 satisfies q=C2ϵq=\frac{C_{2}}{\epsilon} for some C2>2C_{2}>2. Then, if m​d≳N​(C3​log⁡(M​N/δ))C4/ϵmd\gtrsim N\quantity(C_3\log(MN/\delta))^{C_{4}/\epsilon}, with probability 1−δ1-\delta over the draw of the embeddings, there exists 𝐕,𝐖{\bm{V}},{\bm{W}} such that

+ + + + + + + +
arg⁡maxy∈[M]​𝒖y⊤​𝑽⊤​σ​(𝑾​𝒆x)=f∗​(x)\displaystyle\arg\max_{y\in[M]}{\bm{u}}_{y}^{\top}{\bm{V}}^{\top}\sigma({\bm{W}}{\bm{e}}_{x})=f^{*}(x)(20)
+

for all x∈[N]x\in[N].

+
+
+
+
Proof of Theorem 2.
+
+

Let us consider the linearization, or Neural Tangent Kernel, of FF:

+ + + + + + +
FNTK​(𝒛)=𝑽⊤​(σ′​(𝑾0​𝒛)⊙(𝑾−𝑾0)​𝒛)=∑i∈[m]𝒗i​σ′​(⟨𝒘i0,𝒛⟩)​⟨𝒘i−𝒘i0,𝒛⟩.\displaystyle F_{\mathrm{NTK}}({\bm{z}})={\bm{V}}^{\top}\quantity(\sigma'(\mW^0\vz) \odot(\mW- \mW^0)\vz)=\sum_{i\in[m]}{\bm{v}}_{i}\sigma^{\prime}(\langle{\bm{w}}^{0}_{i},{\bm{z}}\rangle)\langle{\bm{w}}_{i}-{\bm{w}}^{0}_{i},{\bm{z}}\rangle.
+

where 𝑾0{\bm{W}}^{0} is the initialization which we are linearizing with respect to. By rescaling the parameters as 𝑾−𝑾0←ϵ⁡(𝑾−𝑾0){\bm{W}}-{\bm{W}}^{0}\leftarrow\epsilon({\bm{W}}-{\bm{W}}^{0}) and 𝑽←ϵ−1​𝑽{\bm{V}}\leftarrow\epsilon^{-1}{\bm{V}}, we see that F→FNTKF\rightarrow F_{\mathrm{NTK}} as ϵ→0\epsilon\rightarrow 0. It thus suffices to work with FNTKF_{\mathrm{NTK}} instead of FF. For ease of notation, we redefine 𝑾0{\bm{W}}^{0} as 𝑾{\bm{W}}, and 𝑾−𝑾0{\bm{W}}-{\bm{W}}^{0} as 𝑸{\bm{Q}}, so that

+ + + + + + +
F⁡(𝒛)=∑i∈[m]𝒗i​σ′​(⟨𝒘i,𝒛⟩)​⟨𝒒i,𝒛⟩\displaystyle F({\bm{z}})=\sum_{i\in[m]}{\bm{v}}_{i}\sigma^{\prime}(\langle{\bm{w}}_{i},{\bm{z}}\rangle)\langle{\bm{q}}_{i},{\bm{z}}\rangle
+

Let kk be a even integer, to be chosen later. Assume without loss of generality that ck+1>0c_{k+1}>0 (if it is negative, we can simply negate all the 𝒒i{\bm{q}}_{i} in the construction below). Set

+ + + + + + +
𝒒i=1m​∑z∈[N]hk​(⟨𝒆z,𝒘i⟩)​⟨𝒗i,𝒖f∗​(z)⟩​𝒆z,{\bm{q}}_{i}=\frac{1}{m}\sum_{z\in[N]}h_{k}(\langle{\bm{e}}_{z},{\bm{w}}_{i}\rangle)\langle{\bm{v}}_{i},{\bm{u}}_{f^{*}(z)}\rangle{\bm{e}}_{z},
+

where hkh_{k} is the kkth Hermite polynomial. Then

+ + + + + + +
F⁡(𝒆x)=1m​∑i∈[m],z∈[N]𝒗i​⟨𝒗i,𝒖f∗​(z)⟩​σ′​(⟨𝒘i,𝒆x⟩)​hk​(⟨𝒆z,𝒘i⟩)​⟨𝒆x,𝒆z⟩\displaystyle F({\bm{e}}_{x})=\frac{1}{m}\sum_{i\in[m],z\in[N]}{\bm{v}}_{i}\langle{\bm{v}}_{i},{\bm{u}}_{f^{*}(z)}\rangle\sigma^{\prime}(\langle{\bm{w}}_{i},{\bm{e}}_{x}\rangle)h_{k}(\langle{\bm{e}}_{z},{\bm{w}}_{i}\rangle)\langle{\bm{e}}_{x},{\bm{e}}_{z}\rangle
+

As in the proof of Theorem 1, define the margin between xx and some y≠f∗​(x)y\neq f^{*}(x) as

+ + + + + + + + + + + + +
γx​y\displaystyle\gamma_{xy}=(𝒖f∗​(x)−𝒖y)⊤​F​(𝒆x)\displaystyle=({\bm{u}}_{f^{*}(x)}-{\bm{u}}_{y})^{\top}F({\bm{e}}_{x})
=1m​∑i∈[m],z∈[N]⟨𝒗i,𝒖f∗​(x)−𝒖y⟩​⟨𝒗i,𝒖f∗​(z)⟩​σ′​(⟨𝒘i,𝒆x⟩)​hk​(⟨𝒆z,𝒘i⟩)​⟨𝒆x,𝒆z⟩.\displaystyle=\frac{1}{m}\sum_{i\in[m],z\in[N]}\langle{\bm{v}}_{i},{\bm{u}}_{f^{*}(x)}-{\bm{u}}_{y}\rangle\langle{\bm{v}}_{i},{\bm{u}}_{f^{*}(z)}\rangle\sigma^{\prime}(\langle{\bm{w}}_{i},{\bm{e}}_{x}\rangle)h_{k}(\langle{\bm{e}}_{z},{\bm{w}}_{i}\rangle)\langle{\bm{e}}_{x},{\bm{e}}_{z}\rangle.
+

We will show that, with high probability over the draw of the embeddings over the sphere, and the 𝒗i,𝒘i{\bm{v}}_{i},{\bm{w}}_{i} independently from the standard Gaussian, that γx​y>0\gamma_{xy}>0 for all y≠f∗​(x)y\neq f^{*}(x).

+
+
+

The expectation of the margin is

+ + + + + + + + + + + + + + + + + +
𝔼​[γx​y]\displaystyle\mathbb{E}\quantity[\gamma_{xy}]=∑z𝔼​[⟨𝒗i,𝒖f∗​(x)−𝒖y⟩​⟨𝒗i,𝒖f∗​(z)⟩​σ′​(⟨𝒘i,𝒆x⟩)​hk​(⟨𝒆z,𝒘i⟩)​⟨𝒆x,𝒆z⟩]\displaystyle=\sum_{z}\mathbb{E}\quantity[\langle\vv_i, \vu_{f^*(x)} - \vu_y \rangle\langle\vv_i, \vu_{f^*(z)}\rangle\sigma'(\langle\vw_i, \ve_x \rangle)h_k(\langle\ve_z, \vw_i\rangle) \langle\ve_x, \ve_z \rangle]
=ck+1​∑z𝔼​[⟨𝒖f∗​(x)−𝒖y,𝒖f∗​(z)⟩​⟨𝒆z,𝒆x⟩k+1]\displaystyle=c_{k+1}\sum_{z}\mathbb{E}\quantity[\langle\vu_{f^*(x)} - \vu_y, \vu_{f^*(z)}\rangle\langle\ve_z, \ve_x \rangle^{k+1}]
=ck+1.\displaystyle=c_{k+1}.
+

We next compute the variance. Define ωi​zx​y\omega_{iz}^{xy} as

+ + + + + + +
ωi​zx​y=⟨𝒗i,𝒖f∗​(x)−𝒖y⟩​⟨𝒗i,𝒖f∗​(z)⟩​σ′​(⟨𝒘i,𝒆x⟩)​hk​(⟨𝒆z,𝒘i⟩)​⟨𝒆x,𝒆z⟩,\displaystyle\omega_{iz}^{xy}=\langle{\bm{v}}_{i},{\bm{u}}_{f^{*}(x)}-{\bm{u}}_{y}\rangle\langle{\bm{v}}_{i},{\bm{u}}_{f^{*}(z)}\rangle\sigma^{\prime}(\langle{\bm{w}}_{i},{\bm{e}}_{x}\rangle)h_{k}(\langle{\bm{e}}_{z},{\bm{w}}_{i}\rangle)\langle{\bm{e}}_{x},{\bm{e}}_{z}\rangle,
+

so that γx​y=1m​∑i,zωi​zx​y\gamma_{xy}=\frac{1}{m}\sum_{i,z}\omega_{iz}^{xy}. First, observe that when z≠z′z\neq z^{\prime}, we have 𝔼​[ωi​zx​y​ωj​z′x​y]=0\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{jz'}^{xy}]=0, since kk is even. For i≠ji\neq j, we have that

+ + + + + + +
𝔼​[ωi​zx​y​ωj​zx​y]=ck+12​𝔼​[⟨𝒖f∗​(x)−𝒖y,𝒖f∗​(z)⟩2]​𝔼​[⟨𝒆z,𝒆x⟩2​(k+1)]\displaystyle\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{jz}^{xy}]=c_{k+1}^{2}\mathbb{E}\quantity[\langle\vu_{f^*(x)} - \vu_y, \vu_{f^*(z)}\rangle^2]\mathbb{E}[\langle{\bm{e}}_{z},{\bm{e}}_{x}\rangle^{2(k+1)}]
+

First, by Lemma 12 we have that

+ + + + + + + +
𝔼⁡[⟨𝒆z,𝒆x⟩2​(k+1)]\displaystyle\mathbb{E}[\langle{\bm{e}}_{z},{\bm{e}}_{x}\rangle^{2(k+1)}]≤{1x=z(2​k+2)k+1​d−(k+1)x≠z.\displaystyle\leq\begin{cases}1&~x=z\\ +(2k+2)^{k+1}d^{-(k+1)}&~x\neq z\end{cases}.
+

Next, we see that

+ + + + + + +
𝔼​[⟨𝒖f∗​(x)−𝒖y,𝒖f∗​(z)⟩2]={1+1df∗​(x)=f∗​(z)​or​y=f∗​(z)2dotherwise.\displaystyle\mathbb{E}\quantity[\langle\vu_{f^*(x)} - \vu_y, \vu_{f^*(z)}\rangle^2]=\begin{cases}1+\frac{1}{d}&~f^{*}(x)=f^{*}(z)~\text{or}~y=f^{*}(z)\\ +\frac{2}{d}&~\text{otherwise}\end{cases}.
+

Finally, we have that

+ + + + + + + + + + + + +
𝔼​[ωi​zx​y​ωi​zx​y]\displaystyle\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{iz}^{xy}]=𝔼​[⟨𝒗i,𝒖f∗​(x)−𝒖y⟩2​⟨𝒗i,𝒖f∗​(z)⟩2​σ′​(⟨𝒘i,𝒆x⟩)2​hk​(⟨𝒆z,𝒘i⟩)2​⟨𝒆x,𝒆z⟩2]\displaystyle=\mathbb{E}\quantity[\langle\vv_i, \vu_{f^*(x)} - \vu_y \rangle^2 \langle\vv_i, \vu_{f^*(z)}\rangle^2 \sigma'(\langle\vw_i, \ve_x \rangle)^2h_k(\langle\ve_z, \vw_i\rangle)^2 \langle\ve_x, \ve_z \rangle^2]
=𝔼​[⟨𝒗i,𝒖f∗​(x)−𝒖y⟩2​⟨𝒗i,𝒖f∗​(z)⟩2]​𝔼​[σ′​(⟨𝒘i,𝒆x⟩)2​hk​(⟨𝒆z,𝒘i⟩)2​⟨𝒆x,𝒆z⟩2].\displaystyle=\mathbb{E}\quantity[\langle\vv_i, \vu_{f^*(x)} - \vu_y \rangle^2 \langle\vv_i, \vu_{f^*(z)}\rangle^2]\mathbb{E}\quantity[ \sigma'(\langle\vw_i, \ve_x \rangle)^2h_k(\langle\ve_z, \vw_i\rangle)^2 \langle\ve_x, \ve_z \rangle^2].
+

The first quantity can be bounded as

+ + + + + + + + + + + + +
𝔼​[⟨𝒗i,𝒖f∗​(x)−𝒖y⟩2​⟨𝒗i,𝒖f∗​(z)⟩2]\displaystyle\mathbb{E}\quantity[\langle\vv_i, \vu_{f^*(x)} - \vu_y \rangle^2 \langle\vv_i, \vu_{f^*(z)}\rangle^2]≤𝔼​[⟨𝒗i,𝒖f∗​(x)−𝒖y⟩4]1/2​𝔼​[⟨𝒗i,𝒖f∗​(z)⟩4]1/2\displaystyle\leq\mathbb{E}\quantity[\langle\vv_i, \vu_{f^*(x)} - \vu_y \rangle^4]^{1/2}\mathbb{E}\quantity[\langle\vv_i, \vu_{f^*(z)}\rangle^4]^{1/2}
≤2⋅3⋅3=6.\displaystyle\leq 2\cdot\sqrt{3}\cdot\sqrt{3}=6.
+

The second term is bounded as

+ + + + + + + +
𝔼​[σ′​(⟨𝒘i,𝒆x⟩)2​hk​(⟨𝒆z,𝒘i⟩)2​⟨𝒆x,𝒆z⟩2]\displaystyle\mathbb{E}\quantity[ \sigma'(\langle\vw_i, \ve_x \rangle)^2h_k(\langle\ve_z, \vw_i\rangle)^2 \langle\ve_x, \ve_z \rangle^2]≤𝔼​[σ′​(⟨𝒘i,𝒆x⟩)8]1/4​𝔼​[hk​(⟨𝒆z,𝒘i⟩)8]1/4​𝔼​[⟨𝒆x,𝒆z⟩4]1/2\displaystyle\leq\mathbb{E}\quantity[ \sigma'(\langle\vw_i, \ve_x \rangle)^8]^{1/4}\mathbb{E}\quantity[h_k(\langle\ve_z, \vw_i\rangle)^8]^{1/4}\mathbb{E}\quantity[\langle\ve_x, \ve_z \rangle^4]^{1/2}
+

By Gaussian hypercontractivity (Lemma 13),

+ + + + + + +
𝔼​[σ′​(⟨𝒘i,𝒆x⟩)8]1/4=‖σ′‖L82≤8q​‖σ′‖L22≲8q,\displaystyle\mathbb{E}\quantity[ \sigma'(\langle\vw_i, \ve_x \rangle)^8]^{1/4}=\|\sigma^{\prime}\|_{L^{8}}^{2}\leq 8^{q}\|\sigma^{\prime}\|_{L^{2}}^{2}\lesssim 8^{q},
+

and likewise

+ + + + + + +
𝔼​[hk​(⟨𝒆z,𝒘i⟩)8]1/4≤8k.\displaystyle\mathbb{E}\quantity[h_k(\langle\ve_z, \vw_i\rangle)^8]^{1/4}\leq 8^{k}.
+

Finally, 𝔼​[⟨𝒆x,𝒆z⟩4]1/2≤4​d−1\mathbb{E}\quantity[\langle\ve_x, \ve_z \rangle^4]^{1/2}\leq 4d^{-1} if x≠zx\neq z, and 1 otherwise. Altogether,

+ + + + + + +
𝔼​[ωi​zx​y​ωi​zx​y]≲23​q+3​k​(d−1+𝟏​(x=z)).\displaystyle\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{iz}^{xy}]\lesssim 2^{3q+3k}\quantity(d^{-1} + \mathbf{1}(x = z)).
+
+
+

Altogether, we get that

+ + + + + + +
𝔼​[γx​y2]=m−1m​∑z𝔼​[ωi​zx​y​ωj​zx​y]+1m​∑z𝔼​[ωi​zx​y​ωi​zx​y].\displaystyle\mathbb{E}\quantity[\gamma_{xy}^2]=\frac{m-1}{m}\sum_{z}\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{jz}^{xy}]+\frac{1}{m}\sum_{z}\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{iz}^{xy}].
+

The first quantity is

+ + + + + + +
∑z𝔼​[ωi​zx​y​ωj​zx​y]≤(1+1d)​ck+12+ck+12​(2​k+2)k+1​d−(k+1)⋅2​N.\displaystyle\sum_{z}\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{jz}^{xy}]\leq\quantity(1 + \frac{1}{d})c_{k+1}^{2}+c_{k+1}^{2}(2k+2)^{k+1}d^{-(k+1)}\cdot 2N.
+

The second quantity is

+ + + + + + +
∑z𝔼​[ωi​zx​y​ωi​zx​y]≤23​q+3​k​(1+Nd).\displaystyle\sum_{z}\mathbb{E}\quantity[\omega_{iz}^{xy}\omega_{iz}^{xy}]\leq 2^{3q+3k}\quantity(1 + \frac{N}{d}).
+

Therefore

+ + + + + + +
Var⁡(γx​y)≲1d+(2​k)k+1​Ndk+1+23​q+3​k​Nm​d.\displaystyle\mathrm{Var}(\gamma_{xy})\lesssim\frac{1}{d}+\frac{(2k)^{k+1}N}{d^{k+1}}+\frac{2^{3q+3k}N}{md}.
+

Choose k=2​⌈1ϵ⌉k=2\lceil\frac{1}{\epsilon}\rceil; then

+ + + + + + +
dk(2​k)k+1​N≥N(4/ϵ)1+2/ϵ≥1\frac{d^{k}}{(2k)^{k+1}N}\geq\frac{N}{(4/\epsilon)^{1+2/\epsilon}}\geq 1
+

for N≥C1​(ϵ)N\geq C_{1}(\epsilon), and so

+ + + + + + +
Var⁡(γx​y)≲1d+23​q+3​k​Nm​d.\displaystyle\mathrm{Var}(\gamma_{xy})\lesssim\frac{1}{d}+\frac{2^{3q+3k}N}{md}.
+

Observe that γx​y\gamma_{xy} is a degree 2​q+2​k+4≤4​q+42q+2k+4\leq 4q+4 polynomial. If m​d≳N⋅C3q​log4​q+4⁡(1/δ′)md\gtrsim N\cdot C_{3}^{q}\log^{4q+4}(1/\delta^{\prime}) for unspecified constant C3C_{3}, then 24​q+4​e−1​log4​q+4⁡(1/δ′)​Var​(γx​y)(𝔼​γx​y)2≤1\frac{2^{4q+4}e^{-1}\log^{4q+4}(1/\delta^{\prime})\mathrm{Var}(\gamma_{xy})}{(\mathbb{E}\gamma_{xy})^{2}}\leq 1, and thus by Lemma 14, we have that ℙ⁡(γx​y≤0)≤δ′\mathbb{P}(\gamma_{xy}\leq 0)\leq\delta^{\prime}. Choosing δ′=δM​N\delta^{\prime}=\frac{\delta}{MN} and union bounding over all (x,y)(x,y) pairs with y≠f∗​(x)y\neq f^{*}(x) yields the desired result.

+
+
+

∎

+
+
+
+

B.1 Bounded Bit Complexity

+ +
+
Corollary 2.
+
+

Under the setting of Theorem 1, if d2≳N​poly⁡log⁡Nd^{2}\gtrsim N\poly\log N, then with high probability there exists a quantized weight matrix 𝐖~\tilde{\bm{W}}, where each weight requires O⁡(log⁡d)O(\log d) bits to store, such that

+ + + + + + + +
arg⁡maxy∈[M]​𝒖y⊤​𝑾~​𝒆x=f∗​(x)for all​x∈[N].\displaystyle\arg\max_{y\in[M]}{\bm{u}}_{y}^{\top}\tilde{\bm{W}}{\bm{e}}_{x}=f^{*}(x)\quad\text{for all}~x\in[N].(21)
+
+
+
+
Proof.
+
+

One sees from the proof of Theorem 1 that, with high probability over the embeddings, the weight matrix 𝑾=∑z∈[N]𝒖f∗​(z)​𝒆z⊤{\bm{W}}=\sum_{z\in[N]}{\bm{u}}_{f^{*}(z)}{\bm{e}}_{z}^{\top} has a margin γx​y\gamma_{xy} satisfies γx​y≥12\gamma_{xy}\geq\frac{1}{2} for all y≠f∗​(x)y\neq f^{*}(x). Each entry of 𝑾{\bm{W}} lies in the interval [−N,N][-N,N]. For some ϵ>0\epsilon>0, define 𝑾~\tilde{\bm{W}} by rounding each entry of 𝑾{\bm{W}} to the nearest multiple of ϵ\epsilon. By definition, ‖𝑾−𝑾~‖∞≤ϵ\norm{\mW- \tilde\mW}_{\infty}\leq\epsilon. We also see that

+ + + + + + +
|𝒖y⊤​(𝑾−𝑾~)​𝒆x|≤‖𝑾−𝑾~‖∞​‖𝒖y​𝒆x⊤‖1≤d​ϵ.\displaystyle\absolutevalue{\vu_y^\top(\mW- \tilde\mW)\ve_x}\leq\norm{\mW- \tilde\mW}_{\infty}\norm{\vu_y\ve_x^\top}_{1}\leq d\epsilon.
+

Thus choosing ϵ<18​d\epsilon<\frac{1}{8d}, the margin of the quantized network satisfies

+ + + + + + + + + + + + + + + + + + + + + + +
γ~x​y\displaystyle\tilde{\gamma}_{xy}:=(𝒖f∗​(x)−𝒖y)⊤​𝑾~​𝒆x\displaystyle:=({\bm{u}}_{f^{*}(x)}-{\bm{u}}_{y})^{\top}\tilde{\bm{W}}{\bm{e}}_{x}
≥(𝒖f∗​(x)−𝒖y)⊤​𝑾​𝒆x−|(𝒖f∗​(x)−𝒖y)⊤​(𝑾−𝑾~)​𝒆x|\displaystyle\geq({\bm{u}}_{f^{*}(x)}-{\bm{u}}_{y})^{\top}{\bm{W}}{\bm{e}}_{x}-\absolutevalue{(\vu_{f^*(x)} - \vu_y)^\top(\mW- \tilde\mW) \ve_x}
≥12−2​d​ϵ\displaystyle\geq\frac{1}{2}-2d\epsilon
>0.\displaystyle>0.
+

Finally, the number of bits required to store each weight is log⁡(2​N/ϵ)=log⁡(16​N​d)=O⁡(log⁡d)\log(2N/\epsilon)=\log(16Nd)=O(\log d). +∎

+
+
+
+

We remark that a similar quantization argument was proven in Jelassi et al. [19].

+
+
+
+
+

Appendix C Proofs for Section 4

+ +
+
Lemma 1.
+
+

Let 𝒱(h)⊂𝒮∪ℛ\mathcal{V}^{(h)}\subset\mathcal{S}\cup\mathcal{R}. Assume that d≳|𝒱(h)|​log⁡(|𝒱|/δ)d\gtrsim\absolutevalue{\mathcal{V}^{(h)}}\log(\abs{\gV}/\delta). Define 𝐯:=∑z∈𝒱(h)𝛗⁡(z)+12​𝛗​(EOS){\bm{v}}:=\sum_{z\in{\mathcal{V}}^{(h)}}{\bm{\varphi}}(z)+\frac{1}{2}{\bm{\varphi}}(\mathrm{EOS}). Then, with probability 1−δ1-\delta over the draw of the embeddings,

+ + + + + + +
⟨𝒗,𝝋⁡(z)⟩>⟨𝒗,𝝋⁡(EOS)⟩+14>⟨𝒗,𝝋⁡(z′)⟩+12\displaystyle\langle{\bm{v}},{\bm{\varphi}}(z)\rangle>\langle{\bm{v}},{\bm{\varphi}}(\mathrm{EOS})\rangle+\frac{1}{4}>\langle{\bm{v}},{\bm{\varphi}}(z^{\prime})\rangle+\frac{1}{2}
+

for any z∈𝒱(h)z\in{\mathcal{V}}^{(h)} and z′∉𝒱(h)z^{\prime}\not\in{\mathcal{V}}^{(h)}.

+
+
+
+
Proof.
+
+

Define γz\gamma_{z} as

+ + + + + + +
γz:={⟨𝒗,𝝋⁡(z)⟩−1z∈𝒱(h)⟨𝒗,𝝋⁡(EOS)⟩−12z=EOS⟨𝒗,𝝋⁡(z)⟩z∉𝒱(h)\displaystyle\gamma_{z}:=\begin{cases}\langle{\bm{v}},{\bm{\varphi}}(z)\rangle-1&z\in{\mathcal{V}}^{(h)}\\ +\langle{\bm{v}},{\bm{\varphi}}(\mathrm{EOS})\rangle-\frac{1}{2}&z=\mathrm{EOS}\\ +\langle{\bm{v}},{\bm{\varphi}}(z)\rangle&z\not\in{\mathcal{V}}^{(h)}\end{cases}
+

We first see that 𝔼​[γz]=0\mathbb{E}\quantity[\gamma_z]=0.

+
+
+

Next, observe that

+ + + + + + +
γz={∑z′∈𝒱(h)⟨𝝋⁡(z),𝝋⁡(z′)⟩z∉𝒱(h)∑z′∈𝒱(h)∖{z}⟨𝝋⁡(z),𝝋⁡(z′)⟩z∈𝒱(h)\displaystyle\gamma_{z}=\begin{cases}\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}}\langle{\bm{\varphi}}(z),{\bm{\varphi}}(z^{\prime})\rangle&z\not\in{\mathcal{V}}^{(h)}\\ +\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}\setminus\{z\}}\langle{\bm{\varphi}}(z),{\bm{\varphi}}(z^{\prime})\rangle&z\in{\mathcal{V}}^{(h)}\end{cases}
+

Since each of the ⟨𝝋⁡(z),𝝋⁡(z′)⟩\langle{\bm{\varphi}}(z),{\bm{\varphi}}(z^{\prime})\rangle are independent subGaussian variables with variance proxy 1/d1/d, by Hoeffding’s inequality we have that, with probability 1−δ′1-\delta^{\prime},

+ + + + + + +
|γz|≲|𝒱(h)|⋅log⁡(1/δ′)d.\displaystyle\absolutevalue{\gamma_z}\lesssim\sqrt{\frac{\absolutevalue{\gV^{(h)}}\cdot\log(1/\delta')}{d}}.
+

Setting δ′=δ/|𝒱|\delta^{\prime}=\delta/\absolutevalue{\gV} and union bounding over all z∈𝒱z\in{\mathcal{V}} yields the desired result. +∎

+
+
+
+

C.1 Construction via Self-Attention

+ +
+
Lemma 2.
+
+

Let 𝒱(h)⊂𝒱{\mathcal{V}}^{(h)}\subset{\mathcal{V}}, and for each z∈𝒱(h)z\in{\mathcal{V}}^{(h)}, let 𝒜z⊂𝒱{\mathcal{A}}^{z}\subset{\mathcal{V}}. Assume that d≳maxz∈𝒱(h)⁡|𝒜z|​log6⁡(|𝒱|/δ)d\gtrsim\max_{z\in{\mathcal{V}}^{(h)}}\absolutevalue{\gA^z}\log^{6}(\absolutevalue{\gV}/\delta) and dh≳|𝒱(h)|​log6⁡(|𝒱|/δ)d_{h}\gtrsim\absolutevalue{\gV^{(h)}}\log^{6}(\absolutevalue{\gV}/\delta) +Define

+ + + + + + +
𝑾:=ddh​∑z∈𝒱(h)∑a∈𝒜z∑i=1dh𝝋⁡(a)​𝝋​(z)⊤​𝒘i​𝒘i⊤,{\bm{W}}:=\frac{d}{d_{h}}\sum_{z\in{\mathcal{V}}^{(h)}}\sum_{a\in{\mathcal{A}}^{z}}\sum_{i=1}^{d_{h}}{\bm{\varphi}}(a){\bm{\varphi}}(z)^{\top}{\bm{w}}_{i}{\bm{w}}_{i}^{\top},
+

where 𝐰i{\bm{w}}_{i} are chosen uniformly on the sphere of radius 1, conditioned on being orthogonal to 𝛗⁡(EOS).{\bm{\varphi}}(\mathrm{EOS}). Then, with probability 1−δ1-\delta over the draw of the embeddings and the 𝐰i{\bm{w}}_{i},

+ + + + + + +
|𝝋​(a)⊤​𝑾​𝝋​(z)−𝟏​(a∈𝒜z)|≤15\displaystyle\absolutevalue{\vphi(a)^\top\mW\vphi(z) - \mathbf{1}(a \in\gA^z)}\leq\frac{1}{5}
+

for all z∈𝒱(h)z\in{\mathcal{V}}^{(h)}, a∈𝒱a\in{\mathcal{V}}.

+
+
+
+
Proof.
+
+

Define

+ + + + + + +
γa​z:=𝝋​(a)⊤​𝑾​𝝋​(z).\displaystyle\gamma_{az}:={\bm{\varphi}}(a)^{\top}{\bm{W}}{\bm{\varphi}}(z).
+

We first see that

+ + + + + + +
𝔼​[γa​z]=𝔼​[∑z′∈𝒱(h)∑a′∈𝒜z⟨𝝋⁡(a),𝝋⁡(a′)⟩​⟨𝝋⁡(z),P𝝋⁡(EOS)⟂​𝝋​(z′)⟩]=d−1d⋅𝟏​(a∈𝒜z).\displaystyle\mathbb{E}\quantity[\gamma_{az}]=\mathbb{E}\quantity[\sum_{z' \in\gV^{(h)}}\sum_{a' \in\gA^z}\langle\vphi(a), \vphi(a')\rangle\langle\vphi(z), P_{\vphi(\mathrm{EOS})}^\perp\vphi(z')\rangle]=\frac{d-1}{d}\cdot\mathbf{1}(a\in{\mathcal{A}}^{z}).
+

We next compute the variance. For a∉𝒜za\not\in\mathcal{A}^{z},

+ + + + + + +
𝔼​[γa​z2]=d2dh2​𝔼​[(∑z′∈𝒱(h)∑a′∈𝒜z′∑i=1dh⟨𝝋⁡(a),𝝋⁡(a′)⟩​⟨𝝋⁡(z),𝒘i⟩​⟨𝒘i,𝝋⁡(z′)⟩)2]\displaystyle\mathbb{E}\quantity[\gamma_{az}^2]=\frac{d^{2}}{d_{h}^{2}}\mathbb{E}\quantity[\qty(\sum_{z' \in\gV^{(h)}}\sum_{a'\in\gA^{z'}}\sum_{i=1}^{d_h} \langle\vphi(a), \vphi(a')\rangle\langle\vphi(z), \vw_i\rangle\langle\vw_i, \vphi(z')\rangle)^2]
+

Define ωa′​z′​i=⟨𝝋⁡(a),𝝋⁡(a′)⟩​⟨𝝋⁡(z),𝒘i⟩​⟨𝒘i,𝝋⁡(z′)⟩\omega_{a^{\prime}z^{\prime}i}=\langle{\bm{\varphi}}(a),{\bm{\varphi}}(a^{\prime})\rangle\langle{\bm{\varphi}}(z),{\bm{w}}_{i}\rangle\langle{\bm{w}}_{i},{\bm{\varphi}}(z^{\prime})\rangle. We see that 𝔼​[ωa1​z1​i​ωa2​z2​j]\mathbb{E}\quantity[\omega_{a_1z_1i}\omega_{a_2z_2j}] is nonzero only if a1=a2a_{1}=a_{2} and z1=z2z_{1}=z_{2}. For i≠ji\neq j, we have that

+ + + + + + + + + + + + + + + + + +
𝔼​[ωa′​z′​i​ωa′​z′​j]\displaystyle\mathbb{E}\quantity[\omega_{a'z'i}\omega_{a'z'j}]=𝔼​[⟨𝝋⁡(a),𝝋⁡(a′)⟩2​⟨𝝋⁡(z),𝒘i⟩​⟨𝒘i,𝝋⁡(z′)⟩​⟨𝝋⁡(z),𝒘j⟩​⟨𝒘j,𝝋⁡(z′)⟩]\displaystyle=\mathbb{E}\quantity[\langle\vphi(a), \vphi(a')\rangle^2 \langle\vphi(z), \vw_i\rangle\langle\vw_i, \vphi(z')\rangle\langle\vphi(z), \vw_j\rangle\langle\vw_j, \vphi(z')\rangle]
=d−2​𝔼​[⟨𝝋⁡(a),𝝋⁡(a′)⟩2]​𝔼​[⟨𝝋⁡(z),P𝝋⁡(EOS)⟂​𝝋​(z′)⟩2]\displaystyle=d^{-2}\mathbb{E}\quantity[\langle\vphi(a), \vphi(a')\rangle^2]\mathbb{E}\quantity[\langle\vphi(z), P_{\vphi(\mathrm{EOS})}^\perp\vphi(z')\rangle^2]
≤d−2​ρa​a′​ρz​z′,\displaystyle\leq d^{-2}\rho_{aa^{\prime}}\rho_{zz^{\prime}},
+

where ρi​j={1i=jd−1i≠j.\rho_{ij}=\begin{cases}1&i=j\\ +d^{-1}&i\neq j\end{cases}. +Also,

+ + + + + + + +
𝔼​[ωa′​z′​i2]\displaystyle\mathbb{E}\quantity[\omega_{a'z'i}^2]=𝔼​[⟨𝝋⁡(a),𝝋⁡(a′)⟩2​⟨𝝋⁡(z),𝒘i⟩2​⟨𝒘i,𝝋⁡(z′)⟩2].\displaystyle=\mathbb{E}\quantity[\langle\vphi(a), \vphi(a')\rangle^2 \langle\vphi(z), \vw_i\rangle^2 \langle\vw_i, \vphi(z')\rangle^2].
+

Since 𝔼​[𝒘i⊗4]=3(d−1)​(d+1)​Sym​((P𝝋⁡(EOS)⟂)⊗2)\mathbb{E}\quantity[\vw_i^{\otimes 4}]=\frac{3}{(d-1)(d+1)}\text{Sym}\quantity((P_{\vphi(\mathrm{EOS})}^\perp)^{\otimes 2}),

+ + + + + + + + + + + + +
𝔼​[ωa′​z′​i2]\displaystyle\mathbb{E}\quantity[\omega_{a'z'i}^2]≤(d2−1)−1​𝔼​[⟨𝝋⁡(a),𝝋⁡(a′)⟩2]​(𝔼​[‖P𝝋⁡(EOS)⟂​𝝋​(z)‖2]2+2​𝔼​[⟨𝝋⁡(z),P𝝋⁡(EOS)⟂​𝝋​(z′)⟩2])\displaystyle\leq(d^{2}-1)^{-1}\mathbb{E}\quantity[\langle\vphi(a), \vphi(a')\rangle^2]\quantity(\mathbb{E}\qty[\norm{P_{\vphi(\mathrm{EOS})}^\perp\vphi(z)}^2]^2 + 2\mathbb{E}\qty[\langle\vphi(z), P_{\vphi(\mathrm{EOS})}^\perp\vphi(z')\rangle^2])
≤d−2​ρa​a′​(1+2​ρz​z′).\displaystyle\leq d^{-2}\rho_{aa^{\prime}}(1+2\rho_{zz^{\prime}}).
+

Altogether,

+ + + + + + + + + + + + + + + + + + + + + + +
𝔼​[γa​z2]\displaystyle\mathbb{E}\quantity[\gamma_{az}^2]=d2dh2​∑z′∈𝒱(h)∑a′∈𝒜z′∑i,j=1dh𝔼​[ωa′​z′​i​ωa′​z′​j]\displaystyle=\frac{d^{2}}{d_{h}^{2}}\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}}\sum_{a^{\prime}\in{\mathcal{A}}^{z^{\prime}}}\sum_{i,j=1}^{d_{h}}\mathbb{E}\quantity[\omega_{a'z'i}\omega_{a'z'j}]
≤∑z′∈𝒱(h)∑a′∈𝒜z′(dh−1dh​ρa​a′​ρz​z′+1dh​ρa​a′​(1+2​ρz​z′))\displaystyle\leq\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}}\sum_{a^{\prime}\in{\mathcal{A}}^{z^{\prime}}}\quantity(\frac{d_h - 1}{d_h} \rho_{aa'}\rho_{zz'} + \frac{1}{d_h}\rho_{aa'}(1 + 2\rho_{zz'}))
=dh+2dh​∑a′∈𝒜zρa​a′+d+dh+1d​dh​∑z′∈𝒱(h)∖{z}∑a′∈𝒜z′ρa​a′\displaystyle=\frac{d_{h}+2}{d_{h}}\sum_{a^{\prime}\in{\mathcal{A}}^{z}}\rho_{aa^{\prime}}+\frac{d+d_{h}+1}{dd_{h}}\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}\setminus\{z\}}\sum_{a^{\prime}\in{\mathcal{A}}^{z^{\prime}}}\rho_{aa^{\prime}}
≤(dh+2dh)​(𝟏​(a∈𝒜z)+|𝒜z|d)+d+dh+1d​dh⋅∑z′∈𝒱(h)∖{z}(𝟏​(a∈𝒜z′)+|𝒜z′|d),\displaystyle\leq\quantity(\frac{d_h + 2}{d_h})\quantity(\mathbf{1}(a \in\gA^z) + \frac{\abs{\gA^z}}{d})+\frac{d+d_{h}+1}{dd_{h}}\cdot\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}\setminus\{z\}}\quantity(\mathbf{1}(a \in\mathcal{A}^{z'}) + \frac{\abs{\gA^{z'}}}{d}),
+

and thus

+ + + + + + + + + + + + + + + + + +
Var⁡(γa​z)\displaystyle\mathrm{Var}(\gamma_{az})=𝔼​[γa​z2]−d−1d⋅𝟏​(a∈𝒜z)\displaystyle=\mathbb{E}\quantity[\gamma_{az}^2]-\frac{d-1}{d}\cdot\mathbf{1}(a\in{\mathcal{A}}^{z})
≲|𝒜z|d+1dh​∑z′∈𝒱(h)(𝟏​(a∈𝒜z′)+|𝒜z′|d)\displaystyle\lesssim\frac{\absolutevalue{\gA^z}}{d}+\frac{1}{d_{h}}\sum_{z^{\prime}\in{\mathcal{V}}^{(h)}}\quantity(\mathbf{1}(a \in\mathcal{A}^{z'}) + \frac{\abs{\gA^{z'}}}{d})
≲maxz∈𝒱(h)⁡|𝒜z|d+|𝒱(h)|dh,\displaystyle\lesssim\frac{\max_{z\in{\mathcal{V}}^{(h)}}\absolutevalue{\gA^z}}{d}+\frac{\absolutevalue{\gV^{(h)}}}{d_{h}},
+

since d≥|𝒜z|,dh≥|𝒱(h)|d\geq\absolutevalue{\gA^z},d_{h}\geq\absolutevalue{\gV^{(h)}} +Next, since γa​z\gamma_{az} is a degree 6 polynomial, with probability 1−δ|𝒱|​|𝒱(h)|1-\frac{\delta}{\absolutevalue{\gV}\absolutevalue{\gV^{(h)}}} we have that

+ + + + + + + + + + + + + + + + + +
|γa​z−𝟏​(a∈𝒜z)|\displaystyle\absolutevalue{\gamma_{az} - \mathbf{1}(a \in\gA^z)}≲Var⁡(γa​z)​log6⁡(|𝒱|/δ)\displaystyle\lesssim\sqrt{\mathrm{Var}(\gamma_{az})\log^{6}(\absolutevalue{\gV}/\delta)}
≲maxz∈𝒱(h)⁡|𝒜z|​log6⁡(|𝒱|/δ)d+|𝒱(h)|​log6​(|𝒱|/δ)dh\displaystyle\lesssim\sqrt{\frac{\max_{z\in{\mathcal{V}}^{(h)}}\absolutevalue{\gA^z}\log^{6}(\absolutevalue{\gV}/\delta)}{d}+\frac{\absolutevalue{\gV^{(h)}}\log^{6}(\absolutevalue{\gV}/\delta)}{d_{h}}}
≤15.\displaystyle\leq\frac{1}{5}.
+

Union bounding over all z∈𝒱(h)z\in{\mathcal{V}}^{(h)}, a∈𝒱a\in{\mathcal{V}} yields the desired result. +∎

+
+
+
+

Let us state the formal version of Theorem 3 which we aim to prove:

+
+
+
Theorem 10.
+
+

Assume that d≳max⁡(R,D)⋅log6⁡(|𝒱|​S​R/δ)d\gtrsim\max(R,D)\cdot\log^{6}(\absolutevalue{\gV}SR/\delta) and H​dh≳S​log6⁡(|𝒱|​S​R/δ)Hd_{h}\gtrsim S\log^{6}(\absolutevalue{\gV}SR/\delta). Then, with probability 1−δ1-\delta, there exists a single-layer attention-only transformer FTF​(⋅,𝛉TF)F_{\mathrm{TF}}(~\cdot~;{\bm{\theta}}_{\mathrm{TF}}) with embedding dimension dd, number of heads HH and head dimension dhd_{h}such that

+ + + + + + +
ℙz1:T+1∼𝒟[argmaxz∈𝒱𝝋(z)⊤FTF(𝑿;𝜽TF)=zT+1]=1.\displaystyle\mathbb{P}_{z_{1:T+1}\sim\mathcal{D}}\left[\arg\max_{z\in{\mathcal{V}}}{\bm{\varphi}}(z)^{\top}F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}})=z_{T+1}\right]=1.
+
+
+
+

Remark.

+ +
+

When R≥DR\geq D, one can obtain an accuracy of 100% whenever the total parameter count is

+ + + + + + +
H​d​dh≳S​R​poly⁡log⁡(|𝒱|​S​R/δ).\displaystyle Hdd_{h}\gtrsim SR\poly\log(\abs{\gV}SR/\delta).
+
+
+
Proof of Theorem 10.
+
+

Partition 𝒮\mathcal{S} into the sets 𝒮(1),…,𝒮(NS)\mathcal{S}^{(1)},\dots,\mathcal{S}^{(N_{S})} and ℛ\mathcal{R} into the sets ℛ(1),…,ℛ(NR)\mathcal{R}^{(1)},\dots,\mathcal{R}^{(N_{R})}, such that |𝒮(i)|,|ℛ(j)|≤M\absolutevalue{\gS^{(i)}},\absolutevalue{\gR^{(j)}}\leq M and NS=⌈SM⌉,NR=⌈RM⌉N_{S}=\lceil\frac{S}{M}\rceil,N_{R}=\lceil\frac{R}{M}\rceil.

+
+
+

Let us choose MM so that d≥dh≳M​log6⁡(|𝒱|/δ)d\geq d_{h}\gtrsim M\log^{6}(\absolutevalue{\gV}/\delta). The total number of attention heads is then

+ + + + + + +
H=NS+NR≳S​log6​(|𝒱|/δ)dh.\displaystyle H=N_{S}+N_{R}\gtrsim\frac{S\log^{6}(\absolutevalue{\gV}/\delta)}{d_{h}}.
+
+
+

For each i∈[NS]i\in[N_{S}], we construct the attention head ii as follows. First, let

+ + + + + + +
𝑾K(i)⊤​𝑾Q(i)=β​∑z∈𝒮(i)𝝋⁡(z)​𝝋​(EOS)⊤+β2​𝝋​(EOS)​𝝋​(EOS)⊤\displaystyle{{\bm{W}}^{(i)}_{K}}^{\top}{\bm{W}}^{(i)}_{Q}=\beta\sum_{z\in{\mathcal{S}}^{(i)}}{\bm{\varphi}}(z){\bm{\varphi}}(\mathrm{EOS})^{\top}+\frac{\beta}{2}{\bm{\varphi}}(\mathrm{EOS}){\bm{\varphi}}(\mathrm{EOS})^{\top}
+

for a large constant β\beta. Next, set

+ + + + + + +
𝑾O(i)⊤​𝑾V(i)=ddh​∑z∈𝒮(i)∑a∈𝒜z∑i=1dh𝝋⁡(a)​𝝋​(z)⊤​𝒘i​𝒘i⊤,\displaystyle{{\bm{W}}^{(i)}_{O}}^{\top}{\bm{W}}^{(i)}_{V}=\frac{d}{d_{h}}\sum_{z\in{\mathcal{S}}^{(i)}}\sum_{a\in{\mathcal{A}}_{z}}\sum_{i=1}^{d_{h}}{\bm{\varphi}}(a){\bm{\varphi}}(z)^{\top}{\bm{w}}_{i}{\bm{w}}_{i}^{\top},
+

for 𝒘i{\bm{w}}_{i} sampled uniformly on the sphere, orthogonal to 𝝋⁡(EOS){\bm{\varphi}}(\mathrm{EOS}).

+
+
+

Consider an input sequence (z1,…,zT)(z_{1},\dots,z_{T}), and let ss be the subject token in this sequence. On the event that Lemma 1 holds, if s∉𝒮(i)s\not\in{\mathcal{S}}^{(i)}, then zt∉𝒮(i)z_{t}\not\in{\mathcal{S}}^{(i)}, and thus

+ + + + + + +
𝝋​(zt)⊤​𝑾K(i)⊤​𝑾Q(i)​𝝋​(EOS)<𝝋​(EOS)⊤​𝑾K(i)⊤​𝑾Q(i)​𝝋​(EOS)−β2\displaystyle{\bm{\varphi}}(z_{t})^{\top}{{\bm{W}}^{(i)}_{K}}^{\top}{\bm{W}}^{(i)}_{Q}{\bm{\varphi}}(\mathrm{EOS})<{\bm{\varphi}}(\mathrm{EOS})^{\top}{{\bm{W}}^{(i)}_{K}}^{\top}{\bm{W}}^{(i)}_{Q}{\bm{\varphi}}(\mathrm{EOS})-\frac{\beta}{2}
+

for all t<Tt<T. As β→∞\beta\rightarrow\infty, the self-attention module fully attends to the EOS\mathrm{EOS} token. On the other hand, if s∈𝒮(i)s\in{\mathcal{S}}^{(i)}, then if zt∗=sz_{t^{*}}=s we have

+ + + + + + +
𝝋​(zt)⊤​𝑾K(i)⊤​𝑾Q(i)​𝝋​(EOS)<𝝋​(zt∗)⊤​𝑾K(i)⊤​𝑾Q(i)​𝝋​(EOS)−β2\displaystyle{\bm{\varphi}}(z_{t})^{\top}{{\bm{W}}^{(i)}_{K}}^{\top}{\bm{W}}^{(i)}_{Q}{\bm{\varphi}}(\mathrm{EOS})<{\bm{\varphi}}(z_{t^{*}})^{\top}{{\bm{W}}^{(i)}_{K}}^{\top}{\bm{W}}^{(i)}_{Q}{\bm{\varphi}}(\mathrm{EOS})-\frac{\beta}{2}
+

for all t≠t∗t\neq t^{*}. Likewise, as β→∞\beta\rightarrow\infty, the softmax converges to a hardmax on the zt∗z_{t^{*}} token. Altogether, we get that

+ + + + + + +
𝑿⊤​𝒮​(𝑿​𝑾K(i)⊤​𝑾Q(i)​𝒙T)={𝝋⁡(EOS)s∉𝒮(i)𝝋⁡(s)s∈𝒮(i).\displaystyle{\bm{X}}^{\top}{\mathcal{S}}\quantity(\mX{\mW^{(i)}_K}^\top\mW^{(i)}_Q \vx_T)=\begin{cases}{\bm{\varphi}}(\mathrm{EOS})&s\not\in{\mathcal{S}}^{(i)}\\ +{\bm{\varphi}}(s)&s\in{\mathcal{S}}^{(i)}\end{cases}.
+

Next, on the event that Lemma 2 holds, since d≳R​log6⁡(|𝒱|/δ)≥|𝒜s|​log6⁡(|𝒱|/δ)d\gtrsim R\log^{6}(\absolutevalue{\gV}/\delta)\geq\absolutevalue{\gA_s}\log^{6}(\absolutevalue{\gV}/\delta), we have that

+ + + + + + +
|𝝋​(a)⊤​𝑾O(i)⊤​𝑾V(i)​𝝋​(s)−𝟏​(a∈𝒜s)|≤16\displaystyle\absolutevalue{\vphi(a)^\top{\mW^{(i)}_O}^\top\mW^{(i)}_V \vphi(s) - \mathbf{1}(a \in\gA_s)}\leq\frac{1}{6}
+

for s∈𝒮(i)s\in{\mathcal{S}}^{(i)}. Defining attni:=𝑾O(i)⊤​𝑾V(i)​𝒮​(𝑿​𝑾K(i)⊤​𝑾Q(i)​𝒙T)\attn_{i}:={{\bm{W}}^{(i)}_{O}}^{\top}{\bm{W}}^{(i)}_{V}{\mathcal{S}}\quantity(\mX{\mW^{(i)}_K}^\top\mW^{(i)}_Q \vx_T), we have that

+ + + + + + +
𝝋​(a)⊤​attni∈{{0}s∉𝒮(i)[−15,15]s∈𝒮(i),a∉𝒜s[45,65]s∈𝒮(i),a∈𝒜s.\displaystyle{\bm{\varphi}}(a)^{\top}\attn_{i}\in\begin{cases}\{0\}&s\not\in{\mathcal{S}}^{(i)}\\ +[-\frac{1}{5},\frac{1}{5}]&s\in{\mathcal{S}}^{(i)},a\not\in{\mathcal{A}}_{s}\\ +[\frac{4}{5},\frac{6}{5}]&s\in{\mathcal{S}}^{(i)},a\in{\mathcal{A}}_{s}\end{cases}.
+

By an identical construction, for each j∈[NR]j\in[N_{R}], with probability 1−2​δ1-2\delta we can construct the attention head NS+jN_{S}+j such that

+ + + + + + +
𝝋​(a)⊤​attnNS+j∈{{0}r∉ℛ(i)[−15,15]r∈ℛ(i),a∉𝒜r[45,65]r∈ℛ(i),a∈𝒜r,\displaystyle{\bm{\varphi}}(a)^{\top}\attn_{N_{S}+j}\in\begin{cases}\{0\}&r\not\in{\mathcal{R}}^{(i)}\\ +[-\frac{1}{5},\frac{1}{5}]&r\in{\mathcal{R}}^{(i)},a\not\in{\mathcal{A}}_{r}\\ +[\frac{4}{5},\frac{6}{5}]&r\in{\mathcal{R}}^{(i)},a\in{\mathcal{A}}_{r}\end{cases},
+

as long as d≳D​log6⁡(|𝒱|/δ)≥|𝒜r|​log6⁡(|𝒱|/δ)d\gtrsim D\log^{6}(\absolutevalue{\gV}/\delta)\geq\absolutevalue{\gA_r}\log^{6}(\absolutevalue{\gV}/\delta). Therefore by a union bound, with probability 1−2​S​R​δ1-2SR\delta we have that (where s∈𝒮(i)s\in{\mathcal{S}}^{(i)} and r∈𝒮(j)r\in{\mathcal{S}}^{(j)}

+ + + + + + + + + + + + +
𝝋​(a)⊤​FMHSA​(𝑿,𝜽)\displaystyle{\bm{\varphi}}(a)^{\top}F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})=∑h=1NS+NR𝝋​(a)⊤​attnh\displaystyle=\sum_{h=1}^{N_{S}+N_{R}}{\bm{\varphi}}(a)^{\top}\attn_{h}
=𝝋​(a)⊤​attni+𝝋​(a)⊤​attnNS+j\displaystyle={\bm{\varphi}}(a)^{\top}\attn_{i}+{\bm{\varphi}}(a)^{\top}\attn_{N_{S}+j}
+

If a=a∗​(s,r)a=a^{*}(s,r), then a∈𝒜s∩𝒜ra\in{\mathcal{A}}_{s}\cap{\mathcal{A}}_{r}, and thus

+ + + + + + +
𝝋​(a)⊤​FMHSA​(𝑿,𝜽)≥45+45=85.\displaystyle{\bm{\varphi}}(a)^{\top}F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})\geq\frac{4}{5}+\frac{4}{5}=\frac{8}{5}.
+

Otherwise, either 𝝋​(a)⊤​attni{\bm{\varphi}}(a)^{\top}\attn_{i} or 𝝋​(a)⊤​attnNS+j{\bm{\varphi}}(a)^{\top}\attn_{N_{S}+j} is ≤15\leq\frac{1}{5} and thus

+ + + + + + +
𝝋​(a)⊤​FMHSA​(𝑿,𝜽)≥65+15=75.\displaystyle{\bm{\varphi}}(a)^{\top}F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})\geq\frac{6}{5}+\frac{1}{5}=\frac{7}{5}.
+

Therefore arg⁡maxa∈𝒱​𝝋​(a)⊤​FMHSA​(𝑿,𝜽)=a∗​(s,r)\arg\max_{a\in\mathcal{V}}{\bm{\varphi}}(a)^{\top}F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})=a^{*}(s,r). Replacing 2​S​R​δ2SR\delta with δ\delta yields the desired result. +∎

+
+
+
+
+
+

C.2 Construction via MLP

+ +
+
Lemma 3.
+
+

Let ϵ\epsilon be a fixed constant. Assume that qq in Assumption 3 satisfies q=C2ϵq=\frac{C_{2}}{\epsilon} for some C2>2C_{2}>2. Assume that d≥Sϵ,Rϵd\geq S^{\epsilon},R^{\epsilon}. Define C(a)=|{(s,r):a∗​(s,r)=a}|C(a)=\absolutevalue{\{(s, r) : a^*(s, r) = a\}}.

+
+
+

Let dd be odd, and let P,QP,Q be orthogonal ⌊d/2⌋\lfloor d/2\rfloor dimensional subspaces of ℝd\mathbb{R}^{d}. Define 𝛗~​(s)=ΠP​𝛗​(s),𝛗~​(r)=ΠQ​𝛗​(r)\tilde{\bm{\varphi}}(s)=\Pi_{P}{\bm{\varphi}}(s),\tilde{\bm{\varphi}}(r)=\Pi_{Q}{\bm{\varphi}}(r).

+
+
+

There exists universal constants C3,C4C_{3},C_{4} such that if

+ + + + + + + + + + + + + + + + + +
d\displaystyle d≳(C3​log⁡(|𝒱|/δ)/ϵ)C4/ϵ\displaystyle\gtrsim(C_{3}\log(\abs{\mathcal{V}}/\delta)/\epsilon)^{C_{4}/\epsilon}
m\displaystyle m≳(C3​log⁡(|𝒱|/δ))C4/ϵ⋅maxa⁡C⁡(a)\displaystyle\gtrsim(C_{3}\log(\abs{\mathcal{V}}/\delta))^{C_{4}/\epsilon}\cdot\max_{a}C(a)
m​d\displaystyle md≳(C3​log⁡(|𝒱|/δ))C4/ϵ⋅S​R,\displaystyle\gtrsim(C_{3}\log(\abs{\mathcal{V}}/\delta))^{C_{4}/\epsilon}\cdot SR,
+

then with probability 1−δ1-\delta over the draw of the embeddings there exists a two-layer neural network F⁡(𝐳)=∑i∈[m]𝐯i​σ​(𝐰i⊤​𝐳)F({\bm{z}})=\sum_{i\in[m]}{\bm{v}}_{i}\sigma({\bm{w}}_{i}^{\top}{\bm{z}}) of width mm satisfying

+ + + + + + +
arg⁡maxa∈𝒱​𝝋​(a)⊤​F​(𝝋~​(s)+𝝋~​(r))=a∗​(s,r)\displaystyle\arg\max_{a\in{\mathcal{V}}}{\bm{\varphi}}(a)^{\top}F(\tilde{\bm{\varphi}}(s)+\tilde{\bm{\varphi}}(r))=a^{*}(s,r)
+

for all s∈𝒮,r∈ℛs\in{\mathcal{S}},r\in{\mathcal{R}}.

+
+
+
+
Proof.
+
+

For odd integers p,kp,k to be determined later, let us set

+ + + + + + +
𝒗i=1m​∑s,r⟨𝑯​𝒆p+k​(𝒘i),𝝋~​(s)⊗p⊗𝝋~​(r)⊗k⟩⋅𝝋⁡(a∗​(s,r)),\displaystyle{\bm{v}}_{i}=\frac{1}{m}\sum_{s,r}\langle{\bm{\mathsfit{He}}}_{p+k}({\bm{w}}_{i}),\tilde{\bm{\varphi}}(s)^{\otimes p}\otimes\tilde{\bm{\varphi}}(r)^{\otimes k}\rangle\cdot{\bm{\varphi}}(a^{*}(s,r)),
+

where 𝑯​𝒆p+k:ℝd→(ℝd)⊗(p+k){\bm{\mathsfit{He}}}_{p+k}:\mathbb{R}^{d}\rightarrow(\mathbb{R}^{d})^{\otimes(p+k)} is the Hermite tensor of degree p+kp+k (see Section F.1). Assume without loss of generality that cp+k:=𝔼​[σ(p+k)​(z)]c_{p+k}:=\mathbb{E}\quantity[\sigma^{(p + k)}(z)], the (p+k)(p+k)th Hermite coefficient of σ\sigma is positive (the negative case can be handled by negating all the 𝒗i{\bm{v}}_{i} in the construction)

+
+
+

For some (s,r)(s,r), the margin for some a≠a∗​(s,r)a\neq a^{*}(s,r) is

+ + + + + + + + + + + + + + + + + +
γs​r​a\displaystyle\gamma_{sra}=⟨𝝋(a∗(s,r))−𝝋(a),F(𝝋~(s)+𝝋~(r))\displaystyle=\langle{\bm{\varphi}}(a^{*}(s,r))-{\bm{\varphi}}(a),F(\tilde{\bm{\varphi}}(s)+\tilde{\bm{\varphi}}(r))
=1m​∑i∈[m]∑s′,r′σ⁡(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)​⟨𝑯​𝒆p+k​(𝒘i),𝝋​(s′)⊗p⊗𝝋~​(r′)⊗k⟩\displaystyle=\frac{1}{m}\sum_{i\in[m]}\sum_{s^{\prime},r^{\prime}}\sigma(\langle{\bm{w}}_{i},\tilde{\bm{\varphi}}(s)+\tilde{\bm{\varphi}}(r)\rangle)\langle{\bm{\mathsfit{He}}}_{p+k}({\bm{w}}_{i}),{\bm{\varphi}}(s^{\prime})^{\otimes p}\otimes\tilde{\bm{\varphi}}(r^{\prime})^{\otimes k}\rangle
⋅⟨𝝋⁡(a∗​(s′,r′)),𝝋⁡(a∗​(s,r))−𝝋⁡(a)⟩.\displaystyle\qquad\cdot\langle{\bm{\varphi}}(a^{*}(s^{\prime},r^{\prime})),{\bm{\varphi}}(a^{*}(s,r))-{\bm{\varphi}}(a)\rangle.
+

We first see that

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
𝔼​[γs​r​a]\displaystyle\mathbb{E}\quantity[\gamma_{sra}]
=∑s′​r′𝔼​[σ⁡(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)​⟨𝑯​𝒆p+k​(𝒘i),𝝋​(s′)⊗p⊗𝝋~​(r′)⊗k⟩]\displaystyle=\sum_{s^{\prime}r^{\prime}}\mathbb{E}\quantity[\sigma(\langle\vw_i, \vtphi(s) + \vtphi(r)\rangle)\langle\tHe_{p+k}(\vw_i), \vphi(s')^{\otimes p} \otimes\vtphi(r')^{\otimes k}\rangle]
⋅(𝟏​(a∗​(s,r)=a∗​(s′,r′))−𝟏​(a=a∗​(s′,r′)))\displaystyle\qquad\cdot\quantity(\mathbf{1}(a^*(s, r) = a^*(s', r')) - \mathbf{1}(a = a^*(s', r')))
=∑s′​r′𝔼​[σ(p+k)​(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)​⟨(𝝋~​(s)+𝝋~​(r))⊗(p+k),𝝋​(s′)⊗p⊗𝝋~​(r′)⊗k⟩]\displaystyle=\sum_{s^{\prime}r^{\prime}}\mathbb{E}\quantity[\sigma^{(p + k)}(\langle\vw_i, \vtphi(s) + \vtphi(r)\rangle)\langle(\vtphi(s) + \vtphi(r))^{\otimes(p + k)}, \vphi(s')^{\otimes p} \otimes\vtphi(r')^{\otimes k} \rangle]
⋅(𝟏​(a∗​(s,r)=a∗​(s′,r′))−𝟏​(a=a∗​(s′,r′)))\displaystyle\qquad\cdot\quantity(\mathbf{1}(a^*(s, r) = a^*(s', r')) - \mathbf{1}(a = a^*(s', r')))
+

If either s′≠ss^{\prime}\neq s or r≠r′r\neq r^{\prime}, we see that conditioned on 𝝋~​(s),𝝋~​(r)\tilde{\bm{\varphi}}(s),\tilde{\bm{\varphi}}(r), the quantity 𝝋​(s′)⊗p⊗𝝋~​(r′)⊗k{\bm{\varphi}}(s^{\prime})^{\otimes p}\otimes\tilde{\bm{\varphi}}(r^{\prime})^{\otimes k} is mean zero. Therefore the only nonzero term in the sum is when (s,r)=(s′,r′)(s,r)=(s^{\prime},r^{\prime}), and so

+ + + + + + +
𝔼​[γs​r​a]=𝔼Z∼𝒩⁡(0,1)​[σ(p+k)​(Z​‖𝝋~​(s)‖2+‖𝝋~​(r)‖2)⋅‖𝝋~​(s)‖2​p​‖𝝋~​(r)‖2​k]\displaystyle\mathbb{E}\quantity[\gamma_{sra}]=\mathbb{E}_{Z\sim\mathcal{N}(0,1)}\quantity[\sigma^{(p + k)}\qty(Z\sqrt{\norm{\vtphi(s)}^2 + \norm{\vtphi(r)}^2})\cdot\norm{\vtphi(s)}^{2p}\norm{\vtphi(r)}^{2k}]
+

The quantities ‖𝝋~​(s)‖2−12,‖𝝋~​(r)‖2−12\norm{\vtphi(s)}^{2}-\frac{1}{2},\norm{\vtphi(r)}^{2}-\frac{1}{2} are subexponential random variables with Orlicz norm 1/d1/d, and therefore we can bound

+ + + + + + +
|𝔼​[γs​r​a]−cp+k​2−p−k|≲1d\displaystyle\absolutevalue{\mathbb{E}\qty[\gamma_{sra}] - c_{p + k}2^{-p - k}}\lesssim\frac{1}{d}
+
+
+

We next compute the variance. Define ωi​s′​r′\omega_{is^{\prime}r^{\prime}} by

+ + + + + + + +
ωi​s′​r′\displaystyle\omega_{is^{\prime}r^{\prime}}=σ⁡(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)​⟨𝑯​𝒆p+k​(𝒘i),𝝋​(s′)⊗p⊗𝝋~​(r′)⊗k⟩⋅⟨𝝋⁡(a∗​(s′,r′)),𝝋⁡(a∗​(s,r))−𝝋⁡(a)⟩\displaystyle=\sigma(\langle{\bm{w}}_{i},\tilde{\bm{\varphi}}(s)+\tilde{\bm{\varphi}}(r)\rangle)\langle{\bm{\mathsfit{He}}}_{p+k}({\bm{w}}_{i}),{\bm{\varphi}}(s^{\prime})^{\otimes p}\otimes\tilde{\bm{\varphi}}(r^{\prime})^{\otimes k}\rangle\cdot\langle{\bm{\varphi}}(a^{*}(s^{\prime},r^{\prime})),{\bm{\varphi}}(a^{*}(s,r))-{\bm{\varphi}}(a)\rangle
+

We first observe that 𝔼​[ωi​s1​r1​ωj​s2​r2]\mathbb{E}\quantity[\omega_{is_1r_1}\omega_{js_2r_2}] is zero, unless s1=s2s_{1}=s_{2} and r1=r2r_{1}=r_{2}. Next, we compute the expectation of ωi​s′​r′\omega_{is^{\prime}r^{\prime}}, conditioned on the embeddings (i.e with respect to the randomness 𝒘i{\bm{w}}_{i}):

+ + + + + + + + + + + + + + + + + + + + + + +
𝔼​[ωi​s′​r′|𝝋]\displaystyle\mathbb{E}\quantity[\omega_{is'r'} \mid\vphi]
=𝔼𝒘i​[σ(p+k)​(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)]⋅⟨(𝝋~​(s)+𝝋~​(r))⊗(p+k),𝝋~​(s′)⊗p⊗𝝋~​(r′)⊗k⟩\displaystyle=\mathbb{E}_{{\bm{w}}_{i}}\quantity[\sigma^{(p + k)}(\langle\vw_i, \vtphi(s) + \vtphi(r)\rangle)]\cdot\langle(\tilde{\bm{\varphi}}(s)+\tilde{\bm{\varphi}}(r))^{\otimes(p+k)},\tilde{\bm{\varphi}}(s^{\prime})^{\otimes p}\otimes\tilde{\bm{\varphi}}(r^{\prime})^{\otimes k}\rangle
⋅⟨𝝋⁡(a∗​(s′,r′)),𝝋⁡(a∗​(s,r))−𝝋⁡(a)⟩\displaystyle\qquad\cdot\langle{\bm{\varphi}}(a^{*}(s^{\prime},r^{\prime})),{\bm{\varphi}}(a^{*}(s,r))-{\bm{\varphi}}(a)\rangle
=𝔼Z∼𝒩⁡(0,1)​[σ(p+k)​(Z​‖𝝋~​(s)‖2+‖𝝋~​(r)‖2)]⋅⟨𝝋~​(s),𝝋~​(s′)⟩p⋅⟨𝝋~​(r),𝝋~​(r′)⟩k⋅⟨𝝋⁡(a∗​(s′,r′)),𝝋⁡(a∗​(s,r))−𝝋⁡(a)⟩.\displaystyle=\mathbb{E}_{Z\sim\mathcal{N}(0,1)}\quantity[\sigma^{(p + k)}\qty(Z\sqrt{\norm{\vtphi(s)}^2 + \norm{\vtphi(r)}^2})]\cdot\langle\tilde{\bm{\varphi}}(s),\tilde{\bm{\varphi}}(s^{\prime})\rangle^{p}\cdot\langle\tilde{\bm{\varphi}}(r),\tilde{\bm{\varphi}}(r^{\prime})\rangle^{k}\cdot\langle{\bm{\varphi}}(a^{*}(s^{\prime},r^{\prime})),{\bm{\varphi}}(a^{*}(s,r))-{\bm{\varphi}}(a)\rangle.
+

Therefore for i≠ji\neq j,

+ + + + + + + + + + + + +
𝔼​[ωi​s′​r′​ωj​s′​r′]\displaystyle\mathbb{E}\quantity[\omega_{is'r'}\omega_{js'r'}]=𝔼​[𝔼​[ωi​s′​r′|𝝋]2]\displaystyle=\mathbb{E}\quantity[\mathbb{E}\qty[\omega_{is'r'} \mid\vphi]^2]
≲cp+k2​𝔼​[⟨𝝋~​(s),𝝋⁡(s′)⟩2​p]​𝔼​[⟨𝝋~​(r),𝝋~​(r′)⟩2​k]​𝔼​[⟨𝝋⁡(a∗​(s′,r′)),𝝋⁡(a∗​(s,r))−𝝋⁡(a)⟩2].\displaystyle\lesssim c_{p+k}^{2}\mathbb{E}\quantity[\langle\vtphi(s), \vphi(s')\rangle^{2p}]\mathbb{E}\quantity[\langle\vtphi(r), \vtphi(r')\rangle^{2k}]\mathbb{E}\quantity[\langle\vphi(a^*(s',r')), \vphi(a^*(s,r)) - \vphi(a)\rangle^2].
+

When (s,r)=(s′,r′)(s,r)=(s^{\prime},r^{\prime}), then

+ + + + + + + + + + + + +
𝔼​[ωi​s​r​ωj​s​r]\displaystyle\mathbb{E}\quantity[\omega_{isr}\omega_{jsr}]=𝔼​[𝔼Z∼𝒩⁡(0,1)​[σ(p+k)​(Z​‖𝝋~​(s)‖2+‖𝝋~​(r)‖2)]2​‖𝝋~​(s)‖4​p​‖𝝋~​(r)‖4​k]⋅(1+d−1)\displaystyle=\mathbb{E}\quantity[\mathbb{E}_{Z \sim\mathcal{N}(0, 1)}\qty[\sigma^{(p + k)}\qty(Z\sqrt{\norm{\vtphi(s)}^2 + \norm{\vtphi(r)}^2})]^2\norm{\vtphi(s)}^{4p}\norm{\vtphi(r)}^{4k}]\cdot\quantity(1 + d^{-1})
=cp+k2​2−2​p−2​k+O⁡(1/d)\displaystyle=c_{p+k}^{2}2^{-2p-2k}+O(1/d)
+
+
+

Next, define the quantities

+ + + + + + + + + + + + + + + + + +
ρs​s′\displaystyle\rho_{ss^{\prime}}=𝔼​[⟨𝝋~​(s),𝝋~​(s′)⟩2​p]\displaystyle=\mathbb{E}\quantity[\langle\vtphi(s), \vtphi(s')\rangle^{2p}]
ρr​r′\displaystyle\rho_{rr^{\prime}}=𝔼​[⟨𝝋~​(r),𝝋~​(r′)⟩2​k]\displaystyle=\mathbb{E}\quantity[\langle\vtphi(r), \vtphi(r')\rangle^{2k}]
ρa​a′\displaystyle\rho_{aa^{\prime}}=𝔼​[⟨𝝋⁡(a),𝝋⁡(a′)⟩2],\displaystyle=\mathbb{E}\quantity[\langle\vphi(a), \vphi(a')\rangle^2],
+

so that

+ + + + + + +
𝔼​[ωi​s′​r′​ωj​s′​r′]≲cp+k2​ρs​s′​ρr​r′​(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′)).\displaystyle\mathbb{E}\quantity[\omega_{is'r'}\omega_{js'r'}]\lesssim c^{2}_{p+k}\rho_{ss^{\prime}}\rho_{rr^{\prime}}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')}).
+
+
+

We see that for s≠s′,r≠r′,a≠a′s\neq s^{\prime},r\neq r^{\prime},a\neq a^{\prime},

+ + + + + + + + + + + + + + + + + +
ρs​s′\displaystyle\rho_{ss^{\prime}}≤(2​p)p​(d/2)−p=(4​p)p​d−p\displaystyle\leq(2p)^{p}(d/2)^{-p}=(4p)^{p}d^{-p}
ρr​r′\displaystyle\rho_{rr^{\prime}}≤(2​k)k​(d/2)−k=(4​k)k​d−k\displaystyle\leq(2k)^{k}(d/2)^{-k}=(4k)^{k}d^{-k}
ρa​a′\displaystyle\rho_{aa^{\prime}}≤d−1\displaystyle\leq d^{-1}
+
+
+

Next, see that

+ + + + + + + + + + + + + + + + + + + + + + +
𝔼​[ωi​s′​r′2]\displaystyle\mathbb{E}\quantity[\omega_{is'r'}^2]
=𝔼​[σ​(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)2​⟨𝑯​𝒆p+k​(𝒘i),𝝋~​(s′)⊗p⊗𝝋~​(r′)⊗k⟩2]​𝔼​[⟨𝝋⁡(a∗​(s′,r′)),𝝋⁡(a∗​(s,r))−𝝋⁡(a)⟩2]\displaystyle=\mathbb{E}\quantity[\sigma(\langle\vw_i, \vtphi(s) + \vtphi(r)\rangle)^2\langle\tHe_{p+k}(\vw_i), \vtphi(s')^{\otimes p} \otimes\vtphi(r')^{\otimes k} \rangle^2]\mathbb{E}\quantity[\langle\vphi(a^*(s', r')), \vphi(a^*(s, r)) - \vphi(a)\rangle^2]
≤𝔼​[σ​(⟨𝒘i,𝝋~​(s)+𝝋~​(r)⟩)4]1/2​𝔼​[⟨𝑯​𝒆p+k​(𝒘i),𝝋~​(s′)⊗p⊗𝝋~​(r′)⊗k⟩4]1/2​(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′))\displaystyle\leq\mathbb{E}\quantity[\sigma(\langle\vw_i, \vtphi(s) + \vtphi(r)\rangle)^4]^{1/2}\mathbb{E}\quantity[ \langle\tHe_{p+k}(\vw_i), \vtphi(s')^{\otimes p} \otimes\vtphi(r')^{\otimes k} \rangle^4]^{1/2}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')})
≤24​q​(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′)),\displaystyle\leq 2^{4q}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')}),
+

where we have applied Lemma 13 to the first two expectations. +Altogether, we have that

+ + + + + + + + + + + + +
𝔼​[γs​r​a2]\displaystyle\mathbb{E}\quantity[\gamma_{sra}^2]=∑s′,r′(m−1m​𝔼​[ωi​s′​r′​ωj​s′​r′]+1m​𝔼​[ωi​s′​r′2])\displaystyle=\sum_{s^{\prime},r^{\prime}}\quantity(\frac{m-1}{m} \mathbb{E}\qty[\omega_{is'r'}\omega_{js'r'}] + \frac{1}{m}\mathbb{E}\qty[\omega_{is'r'}^2])
=m−1m​𝔼​[ωi​s​r​ωj​s​r]+m−1m​∑(s′,r′)≠(s,r)𝔼​[ωi​s′​r′​ωj​s′​r′]+1m​∑s′,r′𝔼​[ωi​s′​r′2],\displaystyle=\frac{m-1}{m}\mathbb{E}\quantity[\omega_{isr}\omega_{jsr}]+\frac{m-1}{m}\sum_{(s^{\prime},r^{\prime})\neq(s,r)}\mathbb{E}\quantity[\omega_{is'r'}\omega_{js'r'}]+\frac{1}{m}\sum_{s^{\prime},r^{\prime}}\mathbb{E}\quantity[\omega^2_{is'r'}],
+

and thus

+ + + + + + + + + + + + +
Var⁡(γs​r​a)\displaystyle\mathrm{Var}(\gamma_{sra})=𝔼​[γs​r​a2]−cp+k2\displaystyle=\mathbb{E}\quantity[\gamma_{sra}^2]-c_{p+k}^{2}
≲cp+k2​∑(s′,r′)≠(s,r)ρs​s′​ρr​r′​(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′))+24​qm​∑s′,r′(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′))\displaystyle\lesssim c_{p+k}^{2}\sum_{(s^{\prime},r^{\prime})\neq(s,r)}\rho_{ss^{\prime}}\rho_{rr^{\prime}}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')})+\frac{2^{4q}}{m}\sum_{s^{\prime},r^{\prime}}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')})
+

For the first sum, we can bound

+ + + + + + + + + + + + +
∑(s′,r′)≠(s,r)ρs​s′​ρr​r′​(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′))\displaystyle\sum_{(s^{\prime},r^{\prime})\neq(s,r)}\rho_{ss^{\prime}}\rho_{rr^{\prime}}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')})≤∑(s′,r′)≠(s,r)ρs​s′​ρr​r′\displaystyle\leq\sum_{(s^{\prime},r^{\prime})\neq(s,r)}\rho_{ss^{\prime}}\rho_{rr^{\prime}}
≤S​R⋅(4​p)p​(4​k)k​d−p−k+S​(4​p)p​d−p+R​(4​k)k​d−k\displaystyle\leq SR\cdot(4p)^{p}(4k)^{k}d^{-p-k}+S(4p)^{p}d^{-p}+R(4k)^{k}d^{-k}
+
+
+

For the second sum, we get that

+ + + + + + +
∑s′,r′(ρa​a∗​(s′,r′)+ρa∗​(s,r)​a∗​(s′​r′))≤C⁡(a)+C⁡(a∗​(s,r))+2​S​Rd\displaystyle\sum_{s^{\prime},r^{\prime}}\quantity(\rho_{aa^*(s',r')} + \rho_{a^*(s,r)a^*(s'r')})\leq C(a)+C(a^{*}(s,r))+\frac{2SR}{d}
+
+
+

Altogether,

+ + + + + + +
Var⁡(γs​r​a)𝔼​[γs​r​a]2≲S​(4​p)pdp+R​(4​k)kdk+S​(4​p)pdp⋅R​(4​k)kdk+24​q​(C⁡(a)+C⁡(a∗​(s,r)))m​cp+k2+24​q​S​Rm​d​cp+k2.\displaystyle\frac{\mathrm{Var}(\gamma_{sra})}{\mathbb{E}[\gamma_{sra}]^{2}}\lesssim\frac{S(4p)^{p}}{d^{p}}+\frac{R(4k)^{k}}{d^{k}}+\frac{S(4p)^{p}}{d^{p}}\cdot\frac{R(4k)^{k}}{d^{k}}+\frac{2^{4q}\quantity(C(a) + C(a^*(s,r)))}{mc_{p+k}^{2}}+\frac{2^{4q}SR}{mdc_{p+k}^{2}}.
+

Let δ′\delta^{\prime} be a fixed failure probability. We see that, for p=2​⌈1ϵ⌉+1p=2\lceil\frac{1}{\epsilon}\rceil+1

+ + + + + + +
24​q​log4​q+2⁡(1/δ′)​S​(4​p)pdp≲24​C2ϵ​log4​C2ϵ+2⁡(1/δ′)​(8ϵ)2/ϵd1ϵ≲1,\displaystyle\frac{2^{4q}\log^{4q+2}(1/\delta^{\prime})S(4p)^{p}}{d^{p}}\lesssim\frac{2^{\frac{4C_{2}}{\epsilon}}\log^{\frac{4C_{2}}{\epsilon}+2}(1/\delta^{\prime})(\frac{8}{\epsilon})^{2/\epsilon}}{d^{\frac{1}{\epsilon}}}\lesssim 1,
+

whenever d≳(C3​log⁡(1/δ′)/ϵ)C4/ϵd\gtrsim(C_{3}\log(1/\delta')/\epsilon)^{C_{4}/\epsilon} for appropriately chosen constants C3,C4C_{3},C_{4}. Likewise, setting k=2​⌈1ϵ⌉+1k=2\lceil\frac{1}{\epsilon}\rceil+1, we get that

+ + + + + + +
24​q​log4​q+2⁡(1/δ′)​R​(4​k)kdk≲1.\displaystyle\frac{2^{4q}\log^{4q+2}(1/\delta^{\prime})R(4k)^{k}}{d^{k}}\lesssim 1.
+

Next, setting m≳28​q+2​log4​q+2⁡(1/δ′)​cp+k−2⋅maxa⁡C⁡(a)m\gtrsim 2^{8q+2}\log^{4q+2}(1/\delta^{\prime})c_{p+k}^{-2}\cdot\max_{a}C(a) and m​d≳28​q+2​log4​q+2⁡(1/δ′)​cp+k−2​S​Rmd\gtrsim 2^{8q+2}\log^{4q+2}(1/\delta^{\prime})c_{p+k}^{-2}SR yields

+ + + + + + + + + + + + +
24​q+2​log4​q+2⁡(1/δ′)⋅24​q​(C⁡(a)+C⁡(a∗​(s,r)))m​cp+k2\displaystyle 2^{4q+2}\log^{4q+2}(1/\delta^{\prime})\cdot\frac{2^{4q}\quantity(C(a) + C(a^*(s,r)))}{mc_{p+k}^{2}}≲1\displaystyle\lesssim 1
24​q+2​log4​q+2⁡(1/δ′)⋅24​q​S​Rm​d​cp+k2\displaystyle 2^{4q+2}\log^{4q+2}(1/\delta^{\prime})\cdot\frac{2^{4q}SR}{mdc_{p+k}^{2}}≲1.\displaystyle\lesssim 1.
+

Altogether, by choosing constants appropriately, we get that

+ + + + + + +
24​q+2​log4​q+2⁡(1/δ′)​e−1⋅Var⁡(γs​r​a)𝔼​[γs​r​a]2≤1.\displaystyle 2^{4q+2}\log^{4q+2}(1/\delta^{\prime})e^{-1}\cdot\frac{\mathrm{Var}(\gamma_{sra})}{\mathbb{E}[\gamma_{sra}]^{2}}\leq 1.
+

Therefore by Lemma 14, with probability 1−δ′1-\delta^{\prime} we have that γs​r​a>0\gamma_{sra}>0. Union bounding over all s,r,as,r,a and setting δ′=δS​R​|𝒱|\delta^{\prime}=\frac{\delta}{SR\absolutevalue{\mathcal{V}}} yields the desired result. +∎

+
+
+
+

We next state the formal version of Theorem 4, which we wish to prove:

+
+
+
Theorem 11.
+
+

Let ϵ\epsilon be a fixed constant. Assume that σ\sigma is a degree qq polynomial, where q=C1/ϵq=C_{1}/\epsilon for some C1>2C_{1}>2. Assume that d≥Sϵ,Rϵd\geq S^{\epsilon},R^{\epsilon}. Define C(a)=|{(s,r):a∗​(s,r)=a}|C(a)=\absolutevalue{\{(s, r) : a^*(s, r) = a\}}.

+
+
+

Let (d,H,dh,m)(d,H,d_{h},m) satisfy

+ + + + + + + + + + + + + + + + + + + + + + +
d\displaystyle d≳(C2​log⁡(|𝒱|/δ)/ϵ)C3/ϵ\displaystyle\gtrsim(C_{2}\log(\abs{\mathcal{V}}/\delta)/\epsilon)^{C_{3}/\epsilon}
H​dh\displaystyle Hd_{h}≳(S+R)​log⁡(|𝒱|/δ)\displaystyle\gtrsim(S+R)\log\quantity(\abs{\gV}/\delta)
m\displaystyle m≳(C2​log⁡(|𝒱|/δ))C3/ϵ⋅maxa⁡C⁡(a)\displaystyle\gtrsim(C_{2}\log(\abs{\mathcal{V}}/\delta))^{C_{3}/\epsilon}\cdot\max_{a}C(a)
m​d\displaystyle md≳(C2​log⁡(|𝒱|/δ))C3/ϵ⋅S​R,\displaystyle\gtrsim(C_{2}\log(\abs{\mathcal{V}}/\delta))^{C_{3}/\epsilon}\cdot SR,
+
+
+

Then, with probability 1−δ1-\delta, there exists a single-layer transformer FTF​(⋅,𝛉TF)F_{\mathrm{TF}}(~\cdot~;{\bm{\theta}}_{\mathrm{TF}}) with embedding dimension dd, number of heads HH, head dimension dhd_{h}, and MLP width mm such that

+ + + + + + +
ℙz1:T+1∼𝒟[argmaxz∈𝒱𝝋(z)⊤FTF(𝑿;𝜽TF)=zT+1]=1.\displaystyle\mathbb{P}_{z_{1:T+1}\sim\mathcal{D}}\left[\arg\max_{z\in{\mathcal{V}}}{\bm{\varphi}}(z)^{\top}F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}})=z_{T+1}\right]=1.
+
+
+
+

Remark.

+ +
+

Ignoring polylog factors, and treating ϵ\epsilon as a constant, the constraints on the architecture size become

+ + + + + + +
H​dh≳S+R​ and ​m≳C⁡(a)​ and ​m​d≳S​R.\displaystyle Hd_{h}\gtrsim S+R\mbox{\quad and\quad}m\gtrsim C(a)\mbox{\quad and\quad}md\gtrsim SR.
+

We first note that C⁡(a)≤SC(a)\leq S, and so m≳Sm\gtrsim S is sufficient. It is possible for C⁡(a)C(a) to be much smaller; on average we expect C⁡(a)≈S/DC(a)\approx S/D, and we also note that it is possible for C⁡(a)=1C(a)=1. The main constraint is that m​d≳S​Rmd\gtrsim SR, i.e that the number of MLP parameters scales linearly with the number of facts that need to be stored.

+
+
+
Proof of Theorem 11.
+
+

Partition 𝒮\mathcal{S} into the sets 𝒮(1),…,𝒮(NS)\mathcal{S}^{(1)},\dots,\mathcal{S}^{(N_{S})} and ℛ\mathcal{R} into the sets ℛ(1),…,ℛ(NR)\mathcal{R}^{(1)},\dots,\mathcal{R}^{(N_{R})}, such that |𝒮(i)|,|ℛ(j)|≤M\absolutevalue{\gS^{(i)}},\absolutevalue{\gR^{(j)}}\leq M and NS=⌈SM⌉,NR=⌈RM⌉N_{S}=\lceil\frac{S}{M}\rceil,N_{R}=\lceil\frac{R}{M}\rceil. Assume that d=Θ​(M​log⁡(|𝒱|/δ′))d=\Theta\quantity( M\log(\abs{\gV}/\delta'))

+
+
+

Let H=⌈d/dh⌉H=\lceil d/d_{h}\rceil. For each i∈[NS]i\in[N_{S}], we construct the H′H^{\prime} attention heads corresponding to h∈{(i−1)​H′+1,…,i​H′}h\in\{(i-1)H^{\prime}+1,\dots,iH^{\prime}\} as follows. First, for all such hh, let

+ + + + + + +
𝑾K(h)⊤​𝑾Q(h)=β​∑z∈𝒮(i)𝝋⁡(z)​𝝋​(EOS)⊤+β2​𝝋​(EOS)​𝝋​(EOS)⊤\displaystyle{{\bm{W}}^{(h)}_{K}}^{\top}{\bm{W}}^{(h)}_{Q}=\beta\sum_{z\in{\mathcal{S}}^{(i)}}{\bm{\varphi}}(z){\bm{\varphi}}(\mathrm{EOS})^{\top}+\frac{\beta}{2}{\bm{\varphi}}(\mathrm{EOS}){\bm{\varphi}}(\mathrm{EOS})^{\top}
+

for a large constant β\beta. By an identical argument to as in Theorem 3, on the event that Lemma 1 holds we have that

+ + + + + + +
𝑿⊤​𝒮​(𝑿​𝑾K(h)⊤​𝑾Q(h)​𝒙T)={𝝋⁡(EOS)s∉𝒮(i)𝝋⁡(s)s∈𝒮(i).\displaystyle{\bm{X}}^{\top}{\mathcal{S}}\quantity(\mX{\mW^{(h)}_K}^\top\mW^{(h)}_Q \vx_T)=\begin{cases}{\bm{\varphi}}(\mathrm{EOS})&s\not\in{\mathcal{S}}^{(i)}\\ +{\bm{\varphi}}(s)&s\in{\mathcal{S}}^{(i)}\end{cases}.
+

The total contribution from these attention heads is then

+ + + + + + +
∑h=(i−1)​H′+1i​H′𝑾O(h)⊤​attn⁡(𝑿,𝑾K(h),𝑾Q(h),𝑾V(h))=(∑h=(i−1)​H′+1i​H′𝑾O(h)⊤​𝑾V(h))⋅{𝝋⁡(EOS)s∉𝒮(i)𝝋⁡(s)s∈𝒮(i)\displaystyle\sum_{h=(i-1)H^{\prime}+1}^{iH^{\prime}}{{\bm{W}}_{O}^{(h)}}^{\top}\attn({\bm{X}};{\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V})=\quantity(\sum_{h = (i-1)H' + 1}^{iH'}{\mW_O^{(h)}}^\top\mW_V^{(h)})\cdot\begin{cases}{\bm{\varphi}}(\mathrm{EOS})&s\not\in{\mathcal{S}}^{(i)}\\ +{\bm{\varphi}}(s)&s\in{\mathcal{S}}^{(i)}\end{cases}
+

Since H′​dh≥dH^{\prime}d_{h}\geq d, we can let ∑h=(i−1)​H′+1i​H′𝑾O(h)⊤​𝑾V(h)\sum_{h=(i-1)H^{\prime}+1}^{iH^{\prime}}{{\bm{W}}_{O}^{(h)}}^{\top}{\bm{W}}_{V}^{(h)} be a projection onto a ⌈d/2⌉\lceil d/2\rceil dimensional subspace PP, orthogonal to 𝝋⁡(EOS){\bm{\varphi}}(\mathrm{EOS}), and thus

+ + + + + + +
∑h=(i−1)​H′+1i​H′𝑾O(h)⊤​attn⁡(𝑿,𝑾K(h),𝑾Q(h),𝑾V(h))={0s∉𝒮(i)ΠP​𝝋​(s)s∈𝒮(i)\displaystyle\sum_{h=(i-1)H^{\prime}+1}^{iH^{\prime}}{{\bm{W}}_{O}^{(h)}}^{\top}\attn({\bm{X}};{\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V})=\begin{cases}0&s\not\in{\mathcal{S}}^{(i)}\\ +\Pi_{P}{\bm{\varphi}}(s)&s\in{\mathcal{S}}^{(i)}\end{cases}
+

Altogether, if the sequence (z1,…,zT)(z_{1},\dots,z_{T}) contains the subject ss, then

+ + + + + + +
∑h=1H′​NS𝑾O(h)⊤​attn⁡(𝑿,𝑾K(h),𝑾Q(h),𝑾V(h))=ΠP​𝝋​(s)\displaystyle\sum_{h=1}^{H^{\prime}N_{S}}{{\bm{W}}_{O}^{(h)}}^{\top}\attn({\bm{X}};{\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V})=\Pi_{P}{\bm{\varphi}}(s)
+

Similarly, if we let QQ be a ⌈d/2⌉\lceil d/2\rceil dimensional subspace orthogonal to PP and 𝝋⁡(EOS){\bm{\varphi}}(\mathrm{EOS}), then we can construct the attention heads h∈{H′​NS+1,…,H′​NS+H′​NR}h\in\{H^{\prime}N_{S}+1,\dots,H^{\prime}N_{S}+H^{\prime}N_{R}\} such that

+ + + + + + +
∑h=H′​NS+1H′​NS+H′​NR𝑾O(h)⊤​attn⁡(𝑿,𝑾K(h),𝑾Q(h),𝑾V(h))=ΠQ​𝝋​(r),\displaystyle\sum_{h=H^{\prime}N_{S}+1}^{H^{\prime}N_{S}+H^{\prime}N_{R}}{{\bm{W}}_{O}^{(h)}}^{\top}\attn({\bm{X}};{\bm{W}}^{(h)}_{K},{\bm{W}}^{(h)}_{Q},{\bm{W}}^{(h)}_{V})=\Pi_{Q}{\bm{\varphi}}(r),
+

where rr is the relation in the sequence (z1,…,zT)(z_{1},\dots,z_{T}). Such a construction exists with probability 1−(NS+NR)​δ′1-(N_{S}+N_{R})\delta^{\prime}. The total number of heads is

+ + + + + + +
H=H′​NS+H′​NR∝d⁡(S+R)dh​M∝(S+R)​log⁡(|𝒱|/δ′)dh.\displaystyle H=H^{\prime}N_{S}+H^{\prime}N_{R}\propto\frac{d(S+R)}{d_{h}M}\propto\frac{(S+R)\log(\abs{\gV}/\delta')}{d_{h}}.
+
+
+

The output of the self-attention component is then

+ + + + + + +
FMHSA​(𝑿,𝜽)=ΠP​𝝋​(s)+ΠQ​𝝋​(r)=𝝋~​(s)+𝝋~​(r).\displaystyle F_{\mathrm{MHSA}}({\bm{X}};{\bm{\theta}})=\Pi_{P}{\bm{\varphi}}(s)+\Pi_{Q}{\bm{\varphi}}(r)=\tilde{\bm{\varphi}}(s)+\tilde{\bm{\varphi}}(r).
+

On the event that Lemma 3 holds, we have that there exists a two-layer neural network F⁡(𝒛)=∑i∈[m]𝒗i​σ​(𝒘i⊤​𝒛)F({\bm{z}})=\sum_{i\in[m]}{\bm{v}}_{i}\sigma({\bm{w}}_{i}^{\top}{\bm{z}}) of width mm such that

+ + + + + + +
arg⁡maxa​𝝋​(a)⊤​F​(𝝋​(s)+𝝋~​(r))=a∗​(s,r).\displaystyle\arg\max_{a}{\bm{\varphi}}(a)^{\top}F\quantity(\vphi(s) + \tilde\vphi(r))=a^{*}(s,r).
+

Scaling 𝑽{\bm{V}} by a large enough constant ensures that

+ + + + + + +
arg⁡maxz∈𝒱​𝝋​(z)⊤​FTF​(𝑿,𝜽TF)=a∗​(s,r).\displaystyle\arg\max_{z\in{\mathcal{V}}}{\bm{\varphi}}(z)^{\top}F_{\mathrm{TF}}({\bm{X}};{\bm{\theta}}_{\mathrm{TF}})=a^{*}(s,r).
+

Union bounding over all the high probability events and setting δ=δ′/(NS+NR+1)\delta=\delta^{\prime}/(N_{S}+N_{R}+1) yields the desired result. +∎

+
+
+
+
+
+
+

Appendix D Proofs for Section 5

+ +
+

D.1 Preliminaries

+ +
+

Recall that the parameters are 𝜽:={𝑾O​V​(a,z)}a∈𝒜,z∈𝒱∪{𝑾K​Q​(z)}z∈𝒱{\bm{\theta}}:=\{{\bm{W}}_{OV}(a,z)\}_{a\in{\mathcal{A}},z\in{\mathcal{V}}}\cup\{{\bm{W}}_{KQ}(z)\}_{z\in{\mathcal{V}}}, and that the cross entropy loss is

+ + + + + + +
L(𝜽):=𝔼z1:T+1[−⟨𝝋⁡(zT+1),Flin​(𝑿,𝜽)⟩+log⁡(∑a∈𝒜exp⁡(⟨𝝋⁡(a),Flin​(𝑿,𝜽)⟩))]\displaystyle L({\bm{\theta}}):=\mathbb{E}_{z_{1:T+1}}\quantity[-\langle\vphi(z_{T+1}), F_{\mathrm{lin}}(\mX; \vtheta) \rangle+ \log\qty(\sum_{a \in\gA}\exp\qty(\langle\vphi(a), F_{\mathrm{lin}}(\mX; \vtheta) \rangle)) ]
+

where

+ + + + + + +
𝝋​(a)⊤​Flin​(𝑿,𝜽)=∑t=1T𝑾O​V​(a,zt)​𝑾K​Q​(zt).\displaystyle{\bm{\varphi}}(a)^{\top}F_{\mathrm{lin}}({\bm{X}};{\bm{\theta}})=\sum_{t=1}^{T}{\bm{W}}_{OV}(a,z_{t}){\bm{W}}_{KQ}(z_{t}).
+

We consider running gradient flow:

+ + + + + + +
𝜽˙=−∇L​(𝜽)\displaystyle\dot{\bm{\theta}}=-\nabla L({\bm{\theta}})
+

from the initialization 𝑾O​V​(a,z)=α{\bm{W}}_{OV}(a,z)=\alpha, 𝑾K​Q​(z)=α​|𝒜|+1{\bm{W}}_{KQ}(z)=\alpha\sqrt{\absolutevalue{\gA}+1} for some α>0\alpha>0.

+
+
+

We also define 𝚯{\bm{\Theta}} by

+ + + + + + +
𝚯⁡(a,z)=𝑾K​Q​(z)​𝑾O​V​(a,z),\displaystyle{\bm{\Theta}}(a,z)={\bm{W}}_{KQ}(z){\bm{W}}_{OV}(a,z),
+

and remark that the loss LL is convex in 𝚯{\bm{\Theta}}.

+
+
+
Lemma 4 (Balancedness).
+
+

Let C(z1:T,z)C(z_{1:T},z) denote the number of tokens in z1:Tz_{1:T} equal to zz. The loss gradients are given by

+ + + + + + + + + + + + +
∂𝑾V​O​(a,z)L⁡(𝜽)\displaystyle\partial_{{\bm{W}}_{VO}(a,z)}L({\bm{\theta}})=−𝑾K​Q(z)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))]\displaystyle=-{\bm{W}}_{KQ}(z)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))]
∂𝑾K​Q​(z)L⁡(𝜽)\displaystyle\partial_{{\bm{W}}_{KQ}(z)}L({\bm{\theta}})=−∑a𝑾O​V(a,z)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))]\displaystyle=-\sum_{a}{\bm{W}}_{OV}(a,z)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))]
+

As such, the quantity

+ + + + + + +
𝑾K​Q​(z)2−∑a∈𝒜𝑾V​O​(a,z)2\displaystyle{\bm{W}}_{KQ}(z)^{2}-\sum_{a\in{\mathcal{A}}}{\bm{W}}_{VO}(a,z)^{2}
+

is constant throughout the gradient flow trajectory.

+
+
+
+
Proof.
+
+

We first see that

+ + + + + + +
∂𝑾V​O​(a,z)(𝝋​(a′)⊤​Flin​(𝑿,𝜽))=𝟏(a=a′)⋅C(z1:T,z)⋅𝑾K​Q(z),\displaystyle\partial_{{\bm{W}}_{VO}(a,z)}\quantity(\vphi(a')^\top F_{\mathrm{lin}}(\mX; \vtheta))=\mathbf{1}(a=a^{\prime})\cdot C(z_{1:T},z)\cdot{\bm{W}}_{KQ}(z),
+

Similarly,

+ + + + + + +
∂𝑾K​Q​(z)(𝝋​(a′)⊤​Flin​(𝑿,𝜽))=C(z1:T,z)⋅𝑾O​V(a′,z).\displaystyle\partial_{{\bm{W}}_{KQ}(z)}\quantity(\vphi(a')^\top F_{\mathrm{lin}}(\mX; \vtheta))=C(z_{1:T},z)\cdot{\bm{W}}_{OV}(a^{\prime},z).
+

Therefore

+ + + + + + + + + + + + + + + + + +
∂𝑾V​O​(a,z)L⁡(𝜽)\displaystyle\partial_{{\bm{W}}_{VO}(a,z)}L({\bm{\theta}})
=𝑾K​Q(z)⋅𝔼[−𝟏(zT+1=a)⋅C(z1:T,z)+∑a′∈𝒜exp(⟨𝝋⁡(a′),Flin​(𝑿,𝜽)⟩)⋅𝟏(a=a′)⋅C(z1:T,z)∑a′∈𝒜exp⁡(⟨𝝋⁡(a′),Flin​(𝑿,𝜽)⟩)]\displaystyle={\bm{W}}_{KQ}(z)\cdot\mathbb{E}\quantity[- \mathbf{1}(z_{T+1} = a) \cdot C(z_{1:T}, z) + \frac{\sum_{a' \in\gA}\exp\qty(\langle\vphi(a'), F_{\mathrm{lin}}(\mX; \vtheta) \rangle)\cdot\mathbf{1}(a = a')\cdot C(z_{1:T}, z)}{\sum_{a' \in\gA}\exp\qty(\langle\vphi(a'), F_{\mathrm{lin}}(\mX; \vtheta) \rangle)}]
=−𝑾K​Q(z)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))].\displaystyle=-{\bm{W}}_{KQ}(z)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))].
+

By a similar computation,

+ + + + + + + + + + + + + + + + + + + + + + +
∂𝑾K​Q​(z)L⁡(𝜽)\displaystyle\partial_{{\bm{W}}_{KQ}(z)}L({\bm{\theta}})
=𝔼z1:T[−𝑾O​V(zT+1,z)⋅C(z1:T,z)+∑ap^(a∣z1:T)𝑾O​V(a,z)⋅C(z1:T,z)]\displaystyle=\mathbb{E}_{z_{1:T}}\quantity[-\mW_{OV}(z_{T+1}, z)\cdot C(z_{1:T}, z) + \sum_{a}\hat p(a \mid z_{1:T}) \mW_{OV}(a, z)\cdot C(z_{1:T}, z)]
=𝔼z1:T[C(z1:T,z)⋅(−𝑾O​V(a∗(z1:T),z)+∑ap^(a∣z1:T)𝑾O​V(a,z))]\displaystyle=\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(-\mW_{OV}(a^*(z_{1:T}), z) + \sum_a \hat p(a \mid z_{1:T}) \mW_{OV}(a, z))]
=−∑a𝑾O​V(a,z)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))].\displaystyle=-\sum_{a}{\bm{W}}_{OV}(a,z)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))].
+

Under gradient flow, we see that

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
12​dd​t​(𝑾K​Q​(z)2−∑a∈𝒜𝑾V​O​(a,z)2)\displaystyle\frac{1}{2}\frac{d}{dt}\quantity(\mW_{KQ}(z)^2 - \sum_{a \in\gA}\mW_{VO}(a, z)^2)
=𝑾K​Q​(z)⋅dd​t​𝑾K​Q​(z)−∑a∈𝒜𝑾V​O​(a,z)⋅dd​t​𝑾V​O​(a,z)\displaystyle={\bm{W}}_{KQ}(z)\cdot\frac{d}{dt}{\bm{W}}_{KQ}(z)-\sum_{a\in{\mathcal{A}}}{\bm{W}}_{VO}(a,z)\cdot\frac{d}{dt}{\bm{W}}_{VO}(a,z)
=−𝑾K​Q(z)⋅∂𝑾K​Q​(z)L(𝜽)+∑a∈𝒜𝑾V​O(a,z)⋅∂𝑾V​O​(a,z)L(𝜽)\displaystyle=-{\bm{W}}_{KQ}(z)\cdot\partial_{{\bm{W}}_{KQ}(z)}L({\bm{\theta}})+\sum_{a\in{\mathcal{A}}}{\bm{W}}_{VO}(a,z)\cdot\partial_{{\bm{W}}_{VO}(a,z)}L({\bm{\theta}})
=𝑾K​Q(z)∑a𝑾O​V(a,z)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))]\displaystyle={\bm{W}}_{KQ}(z)\sum_{a}{\bm{W}}_{OV}(a,z)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))]
−∑a∈𝒜𝑾O​V(a,z)𝑾K​Q(z)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))]\displaystyle\qquad-\sum_{a\in\mathcal{A}}{\bm{W}}_{OV}(a,z){\bm{W}}_{KQ}(z)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))]
=0.\displaystyle=0.
+

∎

+
+
+
+
Corollary 3.
+
+

Throughout the gradient flow trajectory, 𝐖K​Q​(z)≥α{\bm{W}}_{KQ}(z)\geq\alpha.

+
+
+
+
Proof.
+
+

At initialization, 𝑾K​Q​(z)2−∑a∈𝒜𝑾V​O​(a,z)2=α2{\bm{W}}_{KQ}(z)^{2}-\sum_{a\in{\mathcal{A}}}{\bm{W}}_{VO}(a,z)^{2}=\alpha^{2}. Since this quantity is an invariant of gradient flow, it is impossible for 𝑾K​Q​(z)=0{\bm{W}}_{KQ}(z)=0, and thus 𝑾K​Q​(z)>0{\bm{W}}_{KQ}(z)>0 throughout the entire trajectory. Furthermore,

+ + + + + + +
𝑾K​Q​(z)2=∑a∈𝒜𝑾V​O​(a,z)2+α2≥α2,\displaystyle{\bm{W}}_{KQ}(z)^{2}=\sum_{a\in{\mathcal{A}}}{\bm{W}}_{VO}(a,z)^{2}+\alpha^{2}\geq\alpha^{2},
+

and thus 𝑾K​Q​(z)≥α{\bm{W}}_{KQ}(z)\geq\alpha. +∎

+
+
+
+
+

D.2 Proof of Theorem 5

+ +
+
Proof of Theorem 5.
+
+

Let us select

+ + + + + + +
ϵ≤min⁡(12​α​p​(s,r)​|𝒜|−1​T−2​|𝒩|−(T−3),12​α​|𝒜|−1​S−1​R−1​δ).\displaystyle\epsilon\leq\min\quantity(\frac 12\alpha p(s,r) \abs{\gA}^{-1}T^{-2}\abs{\gN}^{-(T-3)}, \frac 12\alpha\abs{\gA}^{-1}S^{-1}R^{-1}\delta).
+

There exists a time TϵT_{\epsilon} such that for all t≥Tϵt\geq T_{\epsilon}, ‖∇𝜽L​(𝜽​(t))‖≤ϵ\norm{\nabla_{\vtheta} L(\vtheta(t))}\leq\epsilon. Let us set tδ=Tϵt_{\delta}=T_{\epsilon}. Now, consider some iterate 𝜽:=𝜽⁡(t){\bm{\theta}}:={\bm{\theta}}(t) for t≥tδt\geq t_{\delta}.

+
+
+

First, see that for s∈𝒮s\in{\mathcal{S}},

+ + + + + + + + + + + + +
∂𝑾O​V​(a,s)L⁡(𝜽)\displaystyle\partial_{{\bm{W}}_{OV}(a,s)}L({\bm{\theta}})=−𝑾K​Q(s)⋅𝔼z1:T[C(z1:T,z)⋅(𝟏(a=a∗(z1:T))−p^(a∣z1:T))]\displaystyle=-{\bm{W}}_{KQ}(s)\cdot\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}))]
=−𝑾K​Q(s)⋅p(s)⋅𝔼z1:T[𝟏(a=a∗(z1:T))−p^(a∣z1:T)∣s∈z1:T].\displaystyle=-{\bm{W}}_{KQ}(s)\cdot p(s)\cdot\mathbb{E}_{z_{1:T}}\quantity[\mathbf{1}(a = a^*(z_{1:T})) - \hat p(a \mid z_{1:T}) \mid s \in z_{1:T}].
+

Consider some a∉𝒜sa\not\in{\mathcal{A}}_{s}. Then 𝔼z1:T[𝟏(a=a∗(z1:T))∣s∈z1:T]=0\mathbb{E}_{z_{1:T}}\quantity[\mathbf{1}(a = a^*(z_{1:T})) \mid s \in z_{1:T}]=0, and thus

+ + + + + + + + + + + + +
∂𝑾O​V​(a,s)L⁡(𝜽)\displaystyle\partial_{{\bm{W}}_{OV}(a,s)}L({\bm{\theta}})=𝑾K​Q(s)⋅p(s)⋅𝔼z1:T[p^(a∣z1:T)∣s∈z1:T]\displaystyle={\bm{W}}_{KQ}(s)\cdot p(s)\cdot\mathbb{E}_{z_{1:T}}\quantity[\hat p(a \mid z_{1:T}) \mid s \in z_{1:T}]
=𝑾K​Q(s)∑r∈ℛp(s,r)⋅𝔼z1:T[p^(a∣z1:T)∣s,r∈z1:T]\displaystyle={\bm{W}}_{KQ}(s)\sum_{r\in{\mathcal{R}}}p(s,r)\cdot\mathbb{E}_{z_{1:T}}\quantity[\hat p(a \mid z_{1:T}) \mid s, r \in z_{1:T}]
+

As such, since |∂𝑾O​V​(a,s)L⁡(𝜽)|≤ϵ\absolutevalue{\partial_{\mW_{OV}(a, s)}L(\vtheta)}\leq\epsilon,

+ + + + + + +
𝔼z1:T[p^(a∣z1:T)∣s,r∈z1:T]≤ϵα−1p(s,r)−1.\displaystyle\mathbb{E}_{z_{1:T}}\quantity[\hat p(a \mid z_{1:T}) \mid s, r \in z_{1:T}]\leq\epsilon\alpha^{-1}p(s,r)^{-1}.
+

By an identical argument, since |∂𝑾O​V​(a,r)L⁡(𝜽)|≤ϵ\absolutevalue{\partial_{\mW_{OV}(a, r)}L(\vtheta)}\leq\epsilon, then for a∉𝒜ra\not\in{\mathcal{A}}_{r}

+ + + + + + +
𝔼z1:T[p^(a∣z1:T)∣s,r∈z1:T]≤ϵα−1p(s,r)−1.\displaystyle\mathbb{E}_{z_{1:T}}\quantity[\hat p(a \mid z_{1:T}) \mid s, r \in z_{1:T}]\leq\epsilon\alpha^{-1}p(s,r)^{-1}.
+

For any a≠a∗​(s,r)a\neq a^{*}(s,r), either a∉𝒜sa\not\in{\mathcal{A}}_{s} or a∉𝒜ra\not\in{\mathcal{A}}_{r}. Therefore 𝔼z1:T[p^(a∣z1:T)∣s,r∈z1:T]≤ϵα−1p(s,r)−1\mathbb{E}_{z_{1:T}}\quantity[\hat p(a \mid z_{1:T}) \mid s, r \in z_{1:T}]\leq\epsilon\alpha^{-1}p(s,r)^{-1} for all a≠a∗​(s,r)a\neq a^{*}(s,r), and thus

+ + + + + + +
𝔼z1:T[p^(a∗(s,r)∣z1:T)∣s,r∈z1:T]≥1−ϵα−1p(s,r)−1|𝒜|.\displaystyle\mathbb{E}_{z_{1:T}}\quantity[\hat p(a^*(s,r) \mid z_{1:T}) \mid s, r \in z_{1:T}]\geq 1-\epsilon\alpha^{-1}p(s,r)^{-1}\absolutevalue{\gA}.
+

There are at most T2​|𝒩|T−3T^{2}\absolutevalue{\gN}^{T-3} sequences z1:Tz_{1:T} containing (s,r)(s,r), each of which occurs with equal probability. Therefore

+ + + + + + +
p^(a∗(s,r)∣z1:T)≥1−T2|𝒩|T−3⋅ϵα−1p(s,r)−1|𝒜|\displaystyle\hat{p}(a^{*}(s,r)\mid z_{1:T})\geq 1-T^{2}\absolutevalue{\gN}^{T-3}\cdot\epsilon\alpha^{-1}p(s,r)^{-1}\absolutevalue{\gA}
+

for all such z1:Tz_{1:T}. Then, bounding −log⁡(1−z)≤2​z-\log(1 - z)\leq 2z for z∈[0,12]z\in[0,\frac{1}{2}],

+ + + + + + + + + + + + +
𝔼[−logp^(a∗(s,r)∣z1:T)∣s,r∈z1:T]\displaystyle\mathbb{E}\quantity[-\log\hat p(a^*(s, r) \mid z_{1:T}) \mid s, r \in z_{1:T}]≤2𝔼[1−p^(a∗(s,r)∣z1:T))∣s,r∈z1:T]\displaystyle\leq 2\mathbb{E}\quantity[1 - \hat p(a^*(s, r) \mid z_{1:T})) \mid s, r \in z_{1:T}]
≤2​ϵ​α−1​p​(s,r)−1​|𝒜|.\displaystyle\leq 2\epsilon\alpha^{-1}p(s,r)^{-1}\absolutevalue{\gA}.
+

Altogether, the loss is

+ + + + + + + + + + + + + + + + + +
𝔼[−logp^(zT+1∣z1:T)]\displaystyle\mathbb{E}\quantity[-\log\hat p(z_{T+1} \mid z_{1:T})]=∑s,rp(s,r)⋅𝔼[−logp^(a∗(s,r)∣z1:T)∣s,r∈z1:T]\displaystyle=\sum_{s,r}p(s,r)\cdot\mathbb{E}\quantity[-\log\hat p(a^*(s, r) \mid z_{1:T}) \mid s, r \in z_{1:T}]
≤2​ϵ​α−1​|𝒜|​S​R\displaystyle\leq 2\epsilon\alpha^{-1}\absolutevalue{\gA}SR
≤δ,\displaystyle\leq\delta,
+

as desired. +∎

+
+
+
+
+

D.3 Sequential Learning

+ +
+

The goal of this section is to show that the model learns sequentially; first, the relation components grow, then the subject components grow. This is given formally by Theorem 6

+
+
+

We first prove that weights corresponding to the subject and noise tokens stay bounded during the beginning of the trajectory.

+
+
+
Lemma 5.
+
+

For s∈𝒮s\in{\mathcal{S}},

+ + + + + + +
𝑾K​Q​(z)≤exp⁡(2​p​(s)​t)⋅α​|𝒜|+1.\displaystyle{\bm{W}}_{KQ}(z)\leq\exp(2p(s)t)\cdot\alpha\sqrt{\absolutevalue{\gA}+1}.
+

Likewise, for z∈𝒩z\in{\mathcal{N}},

+ + + + + + +
𝑾K​Q​(z)≤exp⁡(2​T​t/|𝒩|)⋅α​|𝒜|+1.\displaystyle{\bm{W}}_{KQ}(z)\leq\exp(2Tt/\abs{\gN})\cdot\alpha\sqrt{\absolutevalue{\gA}+1}.
+
+
+
+
Proof.
+
+

Recall that the update for 𝑾K​Q​(s){\bm{W}}_{KQ}(s) is

+ + + + + + + + + + + + + + + + + + + + + + +
𝑾˙K​Q​(s)\displaystyle\dot{\bm{W}}_{KQ}(s)=p(s)⟨𝑾O​V(⋅,s),p∗(⋅∣s)−𝔼z1:T[p^(⋅∣z1:T)∣s∈z1:T]⟩\displaystyle=p(s)\langle{\bm{W}}_{OV}(\cdot,s),p^{*}(\cdot\mid s)-\mathbb{E}_{z_{1:T}}\quantity[\hat p(\cdot\mid z_{1:T}) \mid s \in z_{1:T}]\rangle
≤p(s)‖𝑾O​V​(⋅,s)‖‖p∗(⋅∣s)−𝔼z1:T[p^(⋅∣z1:T)∣s∈z1:T]‖\displaystyle\leq p(s)\norm{\mW_{OV}(\cdot, s)}\norm{p^*(\cdot\mid s) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid s \in z_{1:T}]}
≤2​p​(s)​‖𝑾O​V​(⋅,s)‖\displaystyle\leq 2p(s)\norm{\mW_{OV}(\cdot, s)}
≤2​p​(s)​𝑾K​Q​(s)\displaystyle\leq 2p(s){\bm{W}}_{KQ}(s)
+

Therefore by Gronwall’s inequality,

+ + + + + + +
𝑾K​Q​(s)≤exp⁡(2​p​(s)​t)⋅α​|𝒜|+1.\displaystyle{\bm{W}}_{KQ}(s)\leq\exp(2p(s)t)\cdot\alpha\sqrt{\absolutevalue{\gA}+1}.
+

Similarly, the update for 𝑾K​Q​(z){\bm{W}}_{KQ}(z) for z∈𝒩z\in{\mathcal{N}} is

+ + + + + + + + + + + + + + + + + + + + + + +
𝑾˙K​Q​(z)\displaystyle\dot{\bm{W}}_{KQ}(z)=⟨𝑾O​V(⋅,z),𝔼z1:T[C(z1:T,z)⋅(𝟏(⋅=a∗(z1:T))−p^(⋅∣z1:T))]⟩\displaystyle=\langle{\bm{W}}_{OV}(\cdot,z),\mathbb{E}_{z_{1:T}}\quantity[C(z_{1:T}, z)\cdot\qty(\mathbf{1}(\cdot= a^*(z_{1:T})) - \hat p(\cdot\mid z_{1:T}))]\rangle
≤‖𝑾O​V​(⋅,z)‖⋅𝔼[C(z1:T,z)‖𝟏(⋅=a∗(z1:T))−p^(⋅∣z1:T)‖]\displaystyle\leq\norm{\mW_{OV}(\cdot, z)}\cdot\mathbb{E}\quantity[C(z_{1:T}, z)\norm{\mathbf{1}(\cdot= a^*(z_{1:T})) - \hat p(\cdot\mid z_{1:T})}]
≤2𝑾O​V(⋅,z)𝔼[C(z1:T,z)]\displaystyle\leq 2{\bm{W}}_{OV}(\cdot,z)\mathbb{E}\quantity[C(z_{1:T}, z)]
≤2​T|𝒩|​𝑾K​Q​(z).\displaystyle\leq\frac{2T}{\absolutevalue{\gN}}{\bm{W}}_{KQ}(z).
+

Again by Gronwall’s inequality,

+ + + + + + +
𝑾K​Q​(z)≤exp⁡(2​T​t/|𝒩|)⋅α​|𝒜|+1.\displaystyle{\bm{W}}_{KQ}(z)\leq\exp(2Tt/\abs{\gN})\cdot\alpha\sqrt{\absolutevalue{\gA}+1}.
+

∎

+
+
+
+

The following lemma is our key result, and shows that, assuming that the subject and noise weights stay bounded, the relation weights grow until the output of the model approximates the best relation-only prediction.

+
+
+
Lemma 6.
+
+

Let αs​m,ϵ>0\alpha_{sm},\epsilon>0 be arbitrary parameters satisfying

+ + + + + + + + + + + + +
αs​m2​T\displaystyle\alpha_{sm}^{2}T≤1150​log⁡(ϵ2α2​(|𝒜|+1))−1⋅minr⁡‖p∗(⋅∣r)−p0‖.\displaystyle\leq\frac{1}{150}\log\quantity(\frac{\epsilon^2}{\alpha^2(\abs{\gA} + 1)})^{-1}\cdot\min_{r}\norm{p^*(\cdot\mid r) - p_0}.
ϵ2\displaystyle\epsilon^{2}≤150​(|𝒜|+1)⋅minr⁡‖p∗(⋅∣r)−p0‖\displaystyle\leq\frac{1}{50(\absolutevalue{\gA}+1)}\cdot\min_{r}\norm{p^*(\cdot\mid r) - p_0}
+

For a target accuracy ϵm​i​n>0\epsilon_{min}>0, define T∗T^{*} by

+ + + + + + +
T∗=maxr⁡p​(r)−1​‖p∗(⋅∣r)−p0‖−1​log​(ϵα​|𝒜|+1)+100​(|𝒜|+1)​log​|𝒜|​ϵ−2​ϵm​i​n−2\displaystyle T^{*}=\max_{r}p(r)^{-1}\norm{p^*(\cdot\mid r) - p_0}^{-1}\log\quantity(\frac{\epsilon}{\alpha\sqrt{\abs{\gA} + 1}})+100(\absolutevalue{\gA}+1)\log\absolutevalue{\gA}\epsilon^{-2}\epsilon_{min}^{-2}
+

Assume that for z∈𝒮∪𝒩z\in{\mathcal{S}}\cup{\mathcal{N}} that 𝐖K​Q​(z)≤αs​m{\bm{W}}_{KQ}(z)\leq\alpha_{sm}. Then, there exists t≤T∗t\leq T^{*} such that

+ + + + + + +
∑rp(r)2‖p∗(⋅∣r)−𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]‖2≤ϵm​i​n2.\displaystyle\sum_{r}p(r)^{2}\norm{p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}]}^{2}\leq\epsilon^{2}_{min}.
+
+
+
+
Proof.
+
+

The proof proceeds in three stages. First, we bound the time required for the relation weights to escape the origin. Next, we prove that the relation weights stay large. Finally, we show convergence.

+
+
+
+

Stage 1: Escaping the origin.

+ +
+

The gradient flow update on 𝑾O​V​(a,r){\bm{W}}_{OV}(a,r) is

+ + + + + + +
𝑾˙O​V(a,r)=𝑾K​Q(r)⋅p(r)(p∗(a∣r)−𝔼z1:T[p^(a∣z1:T)∣r∈z1:T])\displaystyle\dot{\bm{W}}_{OV}(a,r)={\bm{W}}_{KQ}(r)\cdot p(r)\quantity(p^*(a \mid r) - \mathbb{E}_{z_{1:T}}[\hat p(a \mid z_{1:T}) \mid r \in z_{1:T}])
+

We thus have

+ + + + + + + +
‖𝑾˙O​V​(⋅,r)−𝑾K​Q​(r)⋅p⁡(r)​(p∗(⋅∣r)−p0(a))‖\displaystyle\norm{\dot\mW_{OV}(\cdot, r) - \mW_{KQ}(r) \cdot p(r)\qty(p^*(\cdot\mid r) - p_0(a))}≤𝑾K​Q(r)⋅p(r)‖𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]−p0‖\displaystyle\leq{\bm{W}}_{KQ}(r)\cdot p(r)\norm{\mathbb{E}_{z_{1:T}}[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}] - p_0}
+

Define p0=1|𝒜|​𝟏𝒜p_{0}=\frac{1}{\absolutevalue{\gA}}\mathbf{1}_{{\mathcal{A}}}. Observe that

+ + + + + + + + + + + + + + + + + + + + + + +
‖𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]−p0‖\displaystyle\norm{\mathbb{E}_{z_{1:T}}[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}] - p_0}≤𝔼z1:T[‖[p^(a∣z1:T)−p0‖∣r∈z1:T]\displaystyle\leq\mathbb{E}_{z_{1:T}}[\norm{[\hat p(a \mid z_{1:T}) - p_0}\mid r\in z_{1:T}]
≤𝔼z1:T[∑t𝑾K​Q(zt)‖𝑾O​V​(⋅,zt)‖∣r∈z1:T]\displaystyle\leq\mathbb{E}_{z_{1:T}}\quantity[\sum_t \mW_{KQ}(z_t)\norm{\mW_{OV}(\cdot, z_t)} \mid r \in z_{1:T}]
≤𝑾K​Q​(r)​‖𝑾O​V​(⋅,r)‖+T​αs​m2\displaystyle\leq{\bm{W}}_{KQ}(r)\norm{\mW_{OV}(\cdot, r)}+T\alpha_{sm}^{2}
≤𝑾K​Q​(r)2+T​αs​m2.\displaystyle\leq{\bm{W}}_{KQ}(r)^{2}+T\alpha_{sm}^{2}.
+

Thus

+ + + + + + +
‖𝑾˙O​V​(⋅,r)−𝑾K​Q​(r)⋅p⁡(r)​(p∗(⋅∣r)−p0(a))‖≤p⁡(r)​𝑾K​Q​(r)​(𝑾K​Q​(r)2+T​αs​m2)\displaystyle\norm{\dot\mW_{OV}(\cdot, r) - \mW_{KQ}(r) \cdot p(r)\qty(p^*(\cdot\mid r) - p_0(a))}\leq p(r){\bm{W}}_{KQ}(r)\quantity(\mW_{KQ}(r)^2 + T\alpha_{sm}^2)
+

Likewise,

+ + + + + + +
𝑾˙K​Q(r)=p(r)⟨𝑾O​V(⋅,r),(p∗(⋅∣r)−𝔼z1:T[p^(a∣z1:T)∣r∈z1:T])⟩,\displaystyle\dot{\bm{W}}_{KQ}(r)=p(r)\langle{\bm{W}}_{OV}(\cdot,r),\quantity(p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}[\hat p(a \mid z_{1:T}) \mid r \in z_{1:T}])\rangle,
+

and thus

+ + + + + + + + + + + + +
|𝑾˙K​Q​(r)−p⁡(r)​⟨𝑾O​V​(⋅,r),(p∗(⋅∣r)−p0)⟩|\displaystyle\absolutevalue{\dot\mW_{KQ}(r) - p(r) \langle\mW_{OV}(\cdot, r), \qty(p^*(\cdot\mid r) - p_0)\rangle}≤p(r)‖𝑾O​V​(⋅,r)‖‖𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]−p0‖\displaystyle\leq p(r)\norm{\mW_{OV}(\cdot, r)}\norm{\mathbb{E}_{z_{1:T}}[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}] - p_0}
≤p⁡(r)​𝑾K​Q​(r)​(𝑾K​Q​(r)2+T​αs​m2)\displaystyle\leq p(r){\bm{W}}_{KQ}(r)\quantity(\mW_{KQ}(r)^2 + T\alpha_{sm}^2)
+
+
+

Define the vector 𝒖∈ℝ2{\bm{u}}\in\mathbb{R}^{2} by

+ + + + + + +
𝒖=[𝑾K​Q​(r)⟨𝑾O​V​(⋅,r),p∗(⋅∣r)−p0‖p∗(⋅∣r)−p0‖⟩]\displaystyle{\bm{u}}=\begin{bmatrix}{\bm{W}}_{KQ}(r)\\ +\langle{\bm{W}}_{OV}(\cdot,r),\frac{p^{*}(\cdot\mid r)-p_{0}}{\norm{p^*(\cdot\mid r) - p_0}}\rangle\end{bmatrix}
+

We see that

+ + + + + + +
‖𝒖˙−p⁡(r)​‖p∗(⋅∣r)−p0‖⋅[0110]​𝒖‖≤2​p​(r)​𝑾K​Q​(r)​(𝑾K​Q​(r)2+T​αs​m2)\displaystyle\norm{\dot\vu- p(r)\norm{p^*(\cdot\mid r) - p_0}\cdot\begin{bmatrix} 0 & 1\\ +1 & 0 +\end{bmatrix}\vu}\leq 2p(r){\bm{W}}_{KQ}(r)\quantity(\mW_{KQ}(r)^2 + T\alpha_{sm}^2)
+

Therefore

+ + + + + + + + + + + + + + + + + + + + + + +
dd​t​(‖𝒖‖2)\displaystyle\frac{d}{dt}(\norm{\vu}^{2})≤2​⟨𝒖˙,𝒖⟩\displaystyle\leq 2\langle\dot{\bm{u}},{\bm{u}}\rangle
≤2​p​(r)​‖p∗(⋅∣r)−p0‖​‖𝒖‖2+4​p​(r)​‖𝒖‖​𝑾K​Q​(r)​(𝑾K​Q​(r)2+T​αs​m2)\displaystyle\leq 2p(r)\norm{p^*(\cdot\mid r) - p_0}\norm{\vu}^{2}+4p(r)\norm{\vu}{\bm{W}}_{KQ}(r)\quantity(\mW_{KQ}(r)^2 + T\alpha_{sm}^2)
≤2​p​(r)​‖p∗(⋅∣r)−p0‖​‖𝒖‖2+4​p​(r)​‖𝒖‖2​(‖𝒖‖2+T​αs​m2)\displaystyle\leq 2p(r)\norm{p^*(\cdot\mid r) - p_0}\norm{\vu}^{2}+4p(r)\norm{\vu}^{2}\quantity(\norm{\vu}^2 + T\alpha_{sm}^2)
≤2​p​(r)​(‖p∗(⋅∣r)−p0‖+2​T​αs​m2)​‖𝒖‖2+4​p​(r)​‖𝒖‖4.\displaystyle\leq 2p(r)\quantity(\norm{p^*(\cdot\mid r) - p_0} + 2T\alpha_{sm}^2)\norm{\vu}^{2}+4p(r)\norm{\vu}^{4}.
+

where the last inequality bounds 𝑾K​Q2​(r)≤‖𝒖‖2{\bm{W}}_{KQ}^{2}(r)\leq\norm{\vu}^{2}.

+
+
+

Define γr:=2​p​(r)​(‖p∗(⋅∣r)−p0‖+2​T​αs​m2)\gamma_{r}:=2p(r)\quantity(\norm{p^*(\cdot\mid r) - p_0} + 2T\alpha_{sm}^2). By Lemma 7 we have that for

+ + + + + + +
t<γr−1​log⁡(γr4​p​(r)​‖𝒖0‖2+1),\displaystyle t<\gamma_{r}^{-1}\log\quantity(\frac{\gamma_r}{4p(r)\norm{\vu_0}^2} + 1),
+ + + + + + +
‖𝒖‖2≤γr​‖𝒖0‖2​exp⁡(γr​t)γr+4​p​(r)2​(1−exp⁡(γr​t))\displaystyle\norm{\vu}^{2}\leq\frac{\gamma_{r}\norm{\vu_0}^{2}\exp(\gamma_r t)}{\gamma_{r}+4p(r)^{2}(1-\exp(\gamma_r t))}
+
+
+

Let TϵT_{\epsilon} be the first time that ‖𝒖‖≥ϵ\norm{\vu}\geq\epsilon. If Tϵ<γr−1​log⁡(γr4​p​(r)​‖𝒖0‖2+1)T_{\epsilon}<\gamma_{r}^{-1}\log\quantity(\frac{\gamma_r}{4p(r)}\norm{\vu_0}^2 + 1), then

+ + + + + + +
ϵ2≤‖𝒖‖2≤γr​‖𝒖0‖2​exp⁡(γr​Tϵ)γr+4​p​(r)2​(1−exp⁡(γr​Tϵ))≤γr​α2​(|𝒜|+1)​exp⁡(γr​Tϵ)γr+4​p​(r)2​(1−exp⁡(γr​Tϵ)).\displaystyle\epsilon^{2}\leq\norm{\vu}^{2}\leq\frac{\gamma_{r}\norm{\vu_0}^{2}\exp(\gamma_r T_\epsilon)}{\gamma_{r}+4p(r)^{2}(1-\exp(\gamma_r T_\epsilon))}\leq\frac{\gamma_{r}\alpha^{2}(\absolutevalue{\gA}+1)\exp(\gamma_r T_\epsilon)}{\gamma_{r}+4p(r)^{2}(1-\exp(\gamma_r T_\epsilon))}.
+

Therefore

+ + + + + + +
Tϵ≥γr−1​log⁡(ϵ2​γr+4​p​(r)​ϵ2​α2​(|𝒜|+1)α2​(|𝒜|+1)​γr+4​p​(r)​ϵ2​α2​(|𝒜|+1))≥γr−1​log⁡(ϵ22​α2​(|𝒜|+1))\displaystyle T_{\epsilon}\geq\gamma_{r}^{-1}\log\quantity(\frac{\epsilon^2 \gamma_r + 4 p(r) \epsilon^2 \alpha^2(\abs{\gA} + 1)}{\alpha^2(\abs{\gA} + 1) \gamma_r + 4 p(r) \epsilon^2 \alpha^2(\abs{\gA} + 1)})\geq\gamma_{r}^{-1}\log\quantity(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)})
+

for ϵ2≤γr4​p​(r)\epsilon^{2}\leq\frac{\gamma_{r}}{4p(r)} On this assumption, ϵ22​α2​(|𝒜|+1)≤γr4​p​(r)​‖𝒖0‖2\frac{\epsilon^{2}}{2\alpha^{2}(\absolutevalue{\gA}+1)}\leq\frac{\gamma_{r}}{4p(r)\norm{\vu_0}^{2}}, and thus we always have Tϵ≥γr−1​log⁡(ϵ22​α2​(|𝒜|+1))T_{\epsilon}\geq\gamma_{r}^{-1}\log\quantity(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)}).

+
+
+

Define LrL_{r} by

+ + + + + + +
Lr(𝜽):=p(r)𝔼z1:T+1[−⟨𝝋(zT+1),Flin(𝑿;𝜽)⟩+log(∑a∈𝒜exp⁡(⟨𝝋⁡(a),Flin​(𝑿,𝜽)⟩))∣r∈z1:T]\displaystyle L_{r}({\bm{\theta}}):=p(r)\mathbb{E}_{z_{1:T+1}}\quantity[-\langle\vphi(z_{T+1}), F_{\mathrm{lin}}(\mX; \vtheta) \rangle+ \log\qty(\sum_{a \in\gA}\exp\qty(\langle\vphi(a), F_{\mathrm{lin}}(\mX; \vtheta) \rangle))\mid r \in z_{1:T}]
+

Let us define the relation-only model as

+ + + + + + +
𝝋​(a)⊤​Frel​(𝑿,𝜽)=𝑾O​V​(a,r)​𝑾K​Q​(r)\displaystyle{\bm{\varphi}}(a)^{\top}F_{\mathrm{rel}}({\bm{X}};{\bm{\theta}})={\bm{W}}_{OV}(a,r){\bm{W}}_{KQ}(r)
+

where r∈z1:Tr\in z_{1:T}. We see that

+ + + + + + +
|𝝋​(a)⊤​Frel​(𝑿,𝜽)−𝝋​(a)⊤​Flin​(𝑿,𝜽)|≤(T−1)​αs​m2.\displaystyle\absolutevalue{ \vphi(a)^\top F_{\mathrm{rel}}(\mX; \vtheta) - \vphi(a)^\top F_{\mathrm{lin}}(\mX; \vtheta)}\leq(T-1)\alpha_{sm}^{2}.
+

Define g:ℝ|𝒜|→ℝg:\mathbb{R}^{\absolutevalue{\gA}}\rightarrow\mathbb{R} by g⁡(𝒛)=log⁡(∑aexp⁡(𝒛a))g({\bm{z}})=\log\quantity(\sum_a \exp(\vz_a)). We see that ∇𝒛g​(𝒛)=𝒮​(𝒛)\nabla_{{\bm{z}}}g({\bm{z}})={\mathcal{S}}({\bm{z}}), where 𝒮{\mathcal{S}} is the softmax, and thus

+ + + + + + +
|g⁡(𝒛1)−g⁡(𝒛2)|≤sup𝒛‖∇𝒛g​(𝒛)‖1⋅‖g⁡(𝒛1)−g⁡(𝒛2)‖∞≤‖g⁡(𝒛1)−g⁡(𝒛2)‖∞.\displaystyle\absolutevalue{g(\vz_1) - g(\vz_2)}\leq\sup_{\bm{z}}\norm{\nabla_{\vz}g(\vz)}_{1}\cdot\norm{g(\vz_1) - g(\vz_2)}_{\infty}\leq\norm{g(\vz_1) - g(\vz_2)}_{\infty}.
+

Therefore defining the relation-only loss L¯r\bar{L}_{r} as

+ + + + + + + + + + + + +
L¯r​(𝜽)\displaystyle\bar{L}_{r}({\bm{\theta}}):=p⁡(r)​𝔼s​[−⟨𝝋(a∗(s,r),Frel(r;𝜽)⟩+log(∑a∈𝒜exp⁡(⟨𝝋⁡(a),Flin​(r,𝜽)⟩))]\displaystyle:=p(r)\mathbb{E}_{s}\quantity[-\langle\vphi(a^*(s,r), F_{\mathrm{rel}}(r; \vtheta) \rangle+ \log\qty(\sum_{a \in\gA}\exp\qty(\langle\vphi(a), F_{\mathrm{lin}}(r; \vtheta) \rangle))]
=−p(r)∑ap(a∣r)𝑾O​V(a∗(s,r),r)𝑾K​Q(r)+p(r)log(∑a∈𝒜exp⁡(𝑾O​V​(a,r)​𝑾K​Q​(r))),\displaystyle=-p(r)\sum_{a}p(a\mid r){\bm{W}}_{OV}(a^{*}(s,r),r){\bm{W}}_{KQ}(r)+p(r)\log\quantity(\sum_{a \in\gA}\exp\qty(\mW_{OV}(a, r)\mW_{KQ}(r))),
+

we see that

+ + + + + + +
|Lr​(𝜽)−L¯r​(𝜽)|≤2​(T−1)​αs​m2.\displaystyle\absolutevalue{L_r(\vtheta) - \bar L_r(\vtheta)}\leq 2(T-1)\alpha_{sm}^{2}.
+
+
+

Since log-sum-exp is 1-strongly-convex, recalling that 𝚯⁡(a,r):=𝑾O​V​(a,r)​𝑾K​Q​(r){\bm{\Theta}}(a,r):={\bm{W}}_{OV}(a,r){\bm{W}}_{KQ}(r),

+ + + + + + +
log⁡(∑aexp⁡(𝚯⁡(a,r)))≤log⁡(|𝒜|)+∑a1|𝒜|​𝚯​(a,r)+12​‖𝚯⁡(⋅,r)‖2.\displaystyle\log\quantity(\sum_a\exp(\mTheta(a, r)))\leq\log(\abs{\gA})+\sum_{a}\frac{1}{\absolutevalue{\gA}}{\bm{\Theta}}(a,r)+\frac{1}{2}\norm{\mTheta(\cdot, r)}^{2}.
+

Therefore

+ + + + + + + + + + + + +
L¯r\displaystyle\bar{L}_{r}≤p(r)log|𝒜|−p(r)⟨𝚯(⋅,r),p∗(⋅∣r)−p0⟩+12p(r)‖𝚯⁡(⋅,r)‖2\displaystyle\leq p(r)\log\absolutevalue{\gA}-p(r)\langle{\bm{\Theta}}(\cdot,r),p^{*}(\cdot\mid r)-p_{0}\rangle+\frac{1}{2}p(r)\norm{\mTheta(\cdot, r)}^{2}
=Lr,0−p⁡(r)​‖p∗(⋅∣r)−p0‖⋅𝒖1​𝒖2+12​p​(r)​‖𝚯⁡(⋅,r)‖2.\displaystyle=L_{r,0}-p(r)\norm{p^*(\cdot\mid r) - p_0}\cdot{\bm{u}}_{1}{\bm{u}}_{2}+\frac{1}{2}p(r)\norm{\mTheta(\cdot, r)}^{2}.
+
+
+

We next track the evolution of 𝒖1​𝒖2{\bm{u}}_{1}{\bm{u}}_{2}:

+ + + + + + + + + + + + + + + + + + + + + + +
dd​t​(𝒖1​𝒖2)\displaystyle\frac{d}{dt}\quantity(\vu_1\vu_2)=𝒖˙1​𝒖2+𝒖1​𝒖˙2\displaystyle=\dot{\bm{u}}_{1}{\bm{u}}_{2}+{\bm{u}}_{1}\dot{\bm{u}}_{2}
≥p⁡(r)​‖p∗(⋅∣r)−p0‖​‖𝒖‖2−4​p​(r)​‖𝒖‖2​(‖𝒖‖2+(T−1)​αs​m2)\displaystyle\geq p(r)\norm{p^*(\cdot\mid r) - p_0}\norm{\vu}^{2}-4p(r)\norm{\vu}^{2}\quantity(\norm{\vu}^2 + (T-1)\alpha_{sm}^2)
≥p⁡(r)​(‖p∗(⋅∣r)−p0‖−4​‖𝒖‖2−4​(T−1)​αs​m2)​‖𝒖‖2\displaystyle\geq p(r)\quantity(\norm{p^*(\cdot\mid r) - p_0} - 4\norm{\vu}^2 - 4(T-1)\alpha_{sm}^2)\norm{\vu}^{2}
≥p⁡(r)​(‖p∗(⋅∣r)−p0‖−4​T​αs​m2)​‖𝒖‖2−4​p​(r)​‖𝒖‖4.\displaystyle\geq p(r)\quantity(\norm{p^*(\cdot\mid r) - p_0} - 4T\alpha_{sm}^2)\norm{\vu}^{2}-4p(r)\norm{\vu}^{4}.
+

for t≤Tϵt\leq T_{\epsilon}. Since ‖𝒖‖≤ϵ\norm{\vu}\leq\epsilon, this is increasing in ‖𝒖‖\norm{\vu}.

+
+
+

We first have the bound ‖𝒖‖2≥𝑾K​Q​(r)2≥α2\norm{\vu}^{2}\geq{\bm{W}}_{KQ}(r)^{2}\geq\alpha^{2}. Next, we have the bound ‖𝒖‖2≥2​𝒖1​𝒖2\norm{\vu}^{2}\geq 2{\bm{u}}_{1}{\bm{u}}_{2}. Pick some time τ≤Tϵ\tau\leq T_{\epsilon}. Define γr−:=2​p​(r)​(‖p∗(⋅∣r)−p0‖−4​T​αs​m2)\gamma^{-}_{r}:=2p(r)\quantity(\norm{p^*(\cdot\mid r) - p_0} - 4T\alpha_{sm}^2). We see that

+ + + + + + +
(𝒖1​𝒖2)​(τ)≥(12​γr−​α2−4​p​(r)​α4)​τ≥14​γr−​α2​τ\displaystyle({\bm{u}}_{1}{\bm{u}}_{2})(\tau)\geq\quantity(\frac 12\gamma^-_r \alpha^2 - 4p(r)\alpha^4)\tau\geq\frac{1}{4}\gamma^{-}_{r}\alpha^{2}\tau
+

Next, by Lemma 7, for t≤Tϵt\leq T_{\epsilon} we have

+
+
+ + + + + + +
(𝒖1​𝒖2)​(t)≥γr−​(𝒖1​𝒖2)​(τ)​exp⁡(γr−​(t−τ))γr−+8​p​(r)​(𝒖1​𝒖2)​(τ)​exp⁡(γr−​(t−τ)).\displaystyle({\bm{u}}_{1}{\bm{u}}_{2})(t)\geq\frac{\gamma^{-}_{r}({\bm{u}}_{1}{\bm{u}}_{2})(\tau)\exp(\gamma^-_r (t - \tau))}{\gamma^{-}_{r}+8p(r)({\bm{u}}_{1}{\bm{u}}_{2})(\tau)\exp(\gamma^-_r (t - \tau))}.
+

Plugging in t=γr−1​log⁡(ϵ22​α2​(|𝒜|+1))t=\gamma_{r}^{-1}\log\quantity(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)}),

+ + + + + + +
(𝒖1​𝒖2)​(τ)​exp⁡(γr−​(t−τ))≥14​γr−​α2​τ​exp⁡(−γr−​τ)⋅exp⁡(γr−γr​log⁡(ϵ22​α2​(|𝒜|+1)))\displaystyle({\bm{u}}_{1}{\bm{u}}_{2})(\tau)\exp(\gamma^-_r (t - \tau))\geq\frac{1}{4}\gamma^{-}_{r}\alpha^{2}\tau\exp(-\gamma^-_r \tau)\cdot\exp\quantity(\frac{\gamma^-_r}{\gamma_r}\log\qty(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)}))
+

Selecting τ=1/γr−\tau=1/\gamma_{r}^{-}, we get

+ + + + + + + + + + + + + + + + + + + + + + +
(𝒖1​𝒖2)​(τ)​exp⁡(γr−​(t−τ))\displaystyle({\bm{u}}_{1}{\bm{u}}_{2})(\tau)\exp(\gamma^-_r (t - \tau))≥α24​e⋅exp⁡(‖p∗(⋅∣r)−p0‖−4​T​αs​m2‖p∗(⋅∣r)−p0‖+2​T​αs​m2​log⁡(ϵ22​α2​(|𝒜|+1)))\displaystyle\geq\frac{\alpha^{2}}{4e}\cdot\exp\quantity(\frac{\norm{p^*(\cdot\mid r) - p_0} - 4T\alpha_{sm}^2}{\norm{p^*(\cdot\mid r) - p_0} + 2T\alpha_{sm}^2}\log\qty(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)}))
≥α24​e⋅ϵ22​α2​(|𝒜|+1)⋅exp⁡(−6​T​αs​m2‖p∗(⋅∣r)−p0‖+2​T​αs​m2​log⁡(ϵ22​α2​(|𝒜|+1)))\displaystyle\geq\frac{\alpha^{2}}{4e}\cdot\frac{\epsilon^{2}}{2\alpha^{2}(\absolutevalue{\gA}+1)}\cdot\exp\quantity(\frac{- 6T\alpha_{sm}^2}{\norm{p^*(\cdot\mid r) - p_0} + 2T\alpha_{sm}^2}\log\qty(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)}))
≥α24​e⋅ϵ22​α2​(|𝒜|+1)⋅(1−6​T​αs​m2‖p∗(⋅∣r)−p0‖+2​T​αs​m2​log⁡(ϵ22​α2​(|𝒜|+1)))\displaystyle\geq\frac{\alpha^{2}}{4e}\cdot\frac{\epsilon^{2}}{2\alpha^{2}(\absolutevalue{\gA}+1)}\cdot\quantity(1 - \frac{ 6T\alpha_{sm}^2}{\norm{p^*(\cdot\mid r) - p_0} + 2T\alpha_{sm}^2}\log\qty(\frac{\epsilon^2}{2\alpha^2(\abs{\gA} + 1)}))
≥ϵ250​(|𝒜|+1).\displaystyle\geq\frac{\epsilon^{2}}{50(\absolutevalue{\gA}+1)}.
+

whenever T​αs​m2‖p∗(⋅∣r)−p0‖+2​T​αs​m2​log⁡(ϵ2α2​(|𝒜|+1))≤1150\frac{T\alpha_{sm}^{2}}{\norm{p^*(\cdot\mid r) - p_0}+2T\alpha_{sm}^{2}}\log\quantity(\frac{\epsilon^2}{\alpha^2(\abs{\gA} + 1)})\leq\frac{1}{150}.

+
+
+

Therefore

+ + + + + + + + + + + + + + + + + +
(𝒖1​𝒖2)​(t)\displaystyle({\bm{u}}_{1}{\bm{u}}_{2})(t)≥ϵ250​(|𝒜|+1)⋅11+8​p⁡(r)γr−​ϵ250​(|𝒜|+1)\displaystyle\geq\frac{\epsilon^{2}}{50(\absolutevalue{\gA}+1)}\cdot\frac{1}{1+8\frac{p(r)}{\gamma_{r}^{-}}\frac{\epsilon^{2}}{50(\absolutevalue{\gA}+1)}}
≥ϵ250​(|𝒜|+1)⋅11+4​ϵ2‖p∗(⋅∣r)−p0‖​50​(|𝒜|+1)\displaystyle\geq\frac{\epsilon^{2}}{50(\absolutevalue{\gA}+1)}\cdot\frac{1}{1+\frac{4\epsilon^{2}}{\norm{p^*(\cdot\mid r) - p_0}50(\absolutevalue{\gA}+1)}}
≥ϵ2100​(|𝒜|+1),\displaystyle\geq\frac{\epsilon^{2}}{100(\absolutevalue{\gA}+1)},
+
+
+

Altogether, we get that the loss is

+ + + + + + + + + + + + +
L¯r\displaystyle\bar{L}_{r}≤Lr,0−p⁡(r)​‖p∗(⋅∣r)−p0‖⋅ϵ2100​(|𝒜|+1)+12​p​(r)​ϵ4\displaystyle\leq L_{r,0}-p(r)\norm{p^*(\cdot\mid r) - p_0}\cdot\frac{\epsilon^{2}}{100(\absolutevalue{\gA}+1)}+\frac{1}{2}p(r)\epsilon^{4}
≤Lr,0−p⁡(r)​‖p∗(⋅∣r)−p0‖⋅ϵ2200​(|𝒜|+1)\displaystyle\leq L_{r,0}-p(r)\norm{p^*(\cdot\mid r) - p_0}\cdot\frac{\epsilon^{2}}{200(\absolutevalue{\gA}+1)}
+

whenever ϵ2≤‖p∗(⋅∣r)−p0‖100​(|𝒜|+1)\epsilon^{2}\leq\frac{\norm{p^*(\cdot\mid r) - p_0}}{100(\absolutevalue{\gA}+1)}.

+
+
+
+

Stage 2: Norm stays large

+ +
+

Next, we want to show that 𝑾K​Q​(r){\bm{W}}_{KQ}(r) stays large. We first show that the relation-only loss L¯\bar{L} is decreasing. We can compute that

+ + + + + + +
dd​t​L¯r​(𝜽)=⟨∇𝜽L¯r,∇𝜽Lr⟩\displaystyle\frac{d}{dt}\bar{L}_{r}({\bm{\theta}})=\langle\nabla_{\bm{\theta}}\bar{L}_{r},\nabla_{\bm{\theta}}L_{r}\rangle
+

Define p^(⋅∣r)\hat{p}(\cdot\mid r) by

+ + + + + + +
p^​(a∣r)=exp⁡(𝑾K​Q​(r)​𝑾O​V​(a,r))∑a′exp⁡(𝑾K​Q​(r)​𝑾O​V​(a′,r)).\displaystyle\hat{p}(a\mid r)=\frac{\exp(\mW_{KQ}(r)\mW_{OV}(a, r))}{\sum_{a^{\prime}}\exp(\mW_{KQ}(r)\mW_{OV}(a', r))}.
+

We observe that

+ + + + + + + + + + + + +
∂𝑾O​V​(⋅,r)L¯r\displaystyle\partial_{{\bm{W}}_{OV}(\cdot,r)}\bar{L}_{r}=𝑾K​Q​(r)​p​(r)​(p∗(⋅∣r)−p^(⋅∣r))\displaystyle={\bm{W}}_{KQ}(r)p(r)\quantity(p^*(\cdot\mid r) - \hat p(\cdot\mid r))
∂𝑾O​V​(⋅,r)Lr\displaystyle\partial_{{\bm{W}}_{OV}(\cdot,r)}L_{r}=𝑾K​Q(r)p(r)(p∗(⋅∣r)−𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T])\displaystyle={\bm{W}}_{KQ}(r)p(r)\quantity(p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}])
+

and thus

+ + + + + + + + + + + + +
‖∂𝑾O​V​(⋅,r)L¯r−∂𝑾O​V​(⋅,r)Lr‖\displaystyle\norm{\partial_{\mW_{OV}(\cdot, r)}\bar L_r - \partial_{\mW_{OV}(\cdot, r)}L_r}≤𝑾K​Q(r)p(r)‖𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]−p^(⋅∣r)‖\displaystyle\leq{\bm{W}}_{KQ}(r)p(r)\norm{\mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}] - \hat p(\cdot\mid r)}
≤𝑾K​Q​(r)​p​(r)​T​αs​m2.\displaystyle\leq{\bm{W}}_{KQ}(r)p(r)T\alpha_{sm}^{2}.
+

Likewise,

+ + + + + + + + + + + + + + + + + +
|∂𝑾K​Q​(r)L¯r−∂𝑾K​Q​(r)Lr|\displaystyle\absolutevalue{\partial_{\mW_{KQ}(r)}\bar L_r - \partial_{\mW_{KQ}(r)}L_r}=p(r)|⟨𝑾O​V(⋅,r),𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]−p^(⋅∣r)⟩|\displaystyle=p(r)\absolutevalue{\langle\mW_{OV}(\cdot, r), \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}] - \hat p(\cdot\mid r) \rangle}
≤p(r)‖𝑾O​V​(⋅,r)‖‖𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]−p^(⋅∣r)‖\displaystyle\leq p(r)\norm{\mW_{OV}(\cdot, r)}\norm{\mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}] - \hat p(\cdot\mid r)}
≤𝑾K​Q​(r)​p​(r)​T​αs​m2.\displaystyle\leq{\bm{W}}_{KQ}(r)p(r)T\alpha_{sm}^{2}.
+

Therefore

+ + + + + + + + + + + + +
dd​t​Lr​(𝜽)\displaystyle\frac{d}{dt}L_{r}({\bm{\theta}})≥‖∇𝜽L¯r‖2−‖∇𝜽L¯r‖​‖∇𝜽L¯r−∇𝜽Lr‖\displaystyle\geq\norm{\nabla_\vtheta\bar L_r}^{2}-\norm{\nabla_\vtheta\bar L_r}\norm{\nabla_\vtheta\bar L_r - \nabla_\vtheta L_r}
≥‖∇𝜽L¯r‖2−‖∇𝜽L¯r‖​2​𝑾K​Q​(r)​p​(r)​T​αs​m2.\displaystyle\geq\norm{\nabla_\vtheta\bar L_r}^{2}-\norm{\nabla_\vtheta\bar L_r}\sqrt{2}{\bm{W}}_{KQ}(r)p(r)T\alpha_{sm}^{2}.
+

Assume that dd​t​Lr​(𝜽)<0\frac{d}{dt}L_{r}({\bm{\theta}})<0. Then

+ + + + + + +
2​𝑾K​Q​(r)​p​(r)​T​αs​m2≥‖∇𝜽L¯r‖≥𝑾K​Q​(r)​p​(r)​‖p∗(⋅∣r)−p^(⋅∣r)‖,\displaystyle\sqrt{2}{\bm{W}}_{KQ}(r)p(r)T\alpha_{sm}^{2}\geq\norm{\nabla_\vtheta\bar L_r}\geq{\bm{W}}_{KQ}(r)p(r)\norm{p^*(\cdot\mid r) - \hat p(\cdot\mid r)},
+

i.e

+ + + + + + +
‖p∗(⋅∣r)−p^(⋅∣r)‖≤2​T​αs​m2.\displaystyle\norm{p^*(\cdot\mid r) - \hat p(\cdot\mid r)}\leq\sqrt{2}T\alpha_{sm}^{2}.
+

Assuming that 2​T​αs​m2<12​S\sqrt{2}T\alpha_{sm}^{2}<\frac{1}{2S}, since p∗​(a∣r)>1Sp^{*}(a\mid r)>\frac{1}{S} for p∗(a∣r)>0p*(a\mid r)>0 we have that

+ + + + + + +
|p∗​(a∣r)​log⁡p∗​(a∣r)p^​(a∣r)|=p∗​(a∣r)​|log⁡(1+p^​(a∣r)−p∗​(a∣r)p∗​(a∣r))|≤2​|p^​(a∣r)−p∗​(a∣r)|\displaystyle\absolutevalue{p^*(a \mid r)\log\frac{p^*(a \mid r)}{\hat p(a \mid r)}}=p^{*}(a\mid r)\absolutevalue{\log\qty(1 + \frac{\hat p(a \mid r) - p^*(a \mid r)}{p^*(a \mid r)})}\leq 2\absolutevalue{\hat p(a \mid r) - p^*(a \mid r)}
+

Therefore L¯r−p(r)H(p∗(⋅∣r))≤2p(r)‖p^(⋅∣r)−p∗(⋅∣r)‖1≤2Tαs​m2D\bar{L}_{r}-p(r)H(p^{*}(\cdot\mid r))\leq 2p(r)\norm{\hat p(\cdot\mid r) - p^*(\cdot\mid r)}_{1}\leq\sqrt{2}T\alpha_{sm}^{2}D. As such, we have that L¯r\bar{L}_{r} stays below Lr,0−p⁡(r)​‖p∗(⋅∣r)−p0‖⋅ϵ2200​(|𝒜|+1)L_{r,0}-p(r)\norm{p^*(\cdot\mid r) - p_0}\cdot\frac{\epsilon^{2}}{200(\absolutevalue{\gA}+1)} for the remainder of the gradient flow trajectory.

+
+
+

By convexity in 𝚯{\bm{\Theta}} space,

+ + + + + + + + + + + + + + + + + +
Lr,0−L¯r​(𝚯)\displaystyle L_{r,0}-\bar{L}_{r}({\bm{\Theta}})≤−⟨∇𝚯⁡(⋅,r)L¯​(𝟎),𝚯⁡(⋅,r)⟩\displaystyle\leq-\langle\nabla_{{\bm{\Theta}}(\cdot,r)}\bar{L}(\mathbf{0}),{\bm{\Theta}}(\cdot,r)\rangle
≤‖∇𝚯⁡(⋅,r)L¯​(𝟎)‖​‖𝚯⁡(⋅,r)‖\displaystyle\leq\norm{\nabla_{\mTheta(\cdot, r)}\bar L(\mathbf{0})}\norm{\mTheta(\cdot, r)}
≤p⁡(r)⋅‖p∗(⋅∣r)−p0‖⋅‖𝚯⁡(⋅,r)‖.\displaystyle\leq p(r)\cdot\norm{p^*(\cdot\mid r) - p_0}\cdot\norm{\mTheta(\cdot, r)}.
+

Therefore

+ + + + + + +
‖𝚯⁡(⋅,r)‖≥ϵ2100​(|𝒜|+1)\displaystyle\norm{\mTheta(\cdot, r)}\geq\frac{\epsilon^{2}}{100(\absolutevalue{\gA}+1)}
+
+
+
+

Stage 3: Convergence.

+ +
+

Next, we can bound the loss decrease by

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
dd​t​L​(𝜽)\displaystyle\frac{d}{dt}L({\bm{\theta}})=−‖∇𝜽L‖2\displaystyle=-\norm{\nabla_\vtheta L}^{2}
≤−∑r‖∂𝑾O​V​(⋅,r)L‖2\displaystyle\leq-\sum_{r}\norm{\partial_{\mW_{OV}(\cdot, r)}L}^{2}
=−∑r‖∂𝑾O​V​(⋅,r)Lr‖2\displaystyle=-\sum_{r}\norm{\partial_{\mW_{OV}(\cdot, r)}L_r}^{2}
=−∑r𝑾K​Q(r)2p(r)2‖p∗(⋅∣r)−𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]‖\displaystyle=-\sum_{r}{\bm{W}}_{KQ}(r)^{2}p(r)^{2}\norm{p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}]}
≤−∑r‖𝚯⁡(⋅,r)‖p(r)2‖p∗(⋅∣r)−𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]‖2\displaystyle\leq-\sum_{r}\norm{\mTheta(\cdot, r)}p(r)^{2}\norm{p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}]}^{2}
≤−ϵ2200​(|𝒜|+1)∑rp(r)2‖p∗(⋅∣r)−𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]‖2\displaystyle\leq-\frac{\epsilon^{2}}{200(\absolutevalue{\gA}+1)}\sum_{r}p(r)^{2}\norm{p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}]}^{2}
+
+
+

Since L⁡(𝚯)≤L⁡(𝚯0)=log⁡|𝒜|L({\bm{\Theta}})\leq L({\bm{\Theta}}_{0})=\log\absolutevalue{\gA}, and L⁡(𝚯)≥0L({\bm{\Theta}})\geq 0, there exists some t≤maxr⁡t∗+100​(|𝒜|+1)​log⁡|𝒜|​ϵ−2​ϵm​i​n−2t\leq\max_{r}t^{*}+100(\absolutevalue{\gA}+1)\log\absolutevalue{\gA}\epsilon^{-2}\epsilon_{min}^{-2} such that

+ + + + + + +
∑rp(r)2‖p∗(⋅∣r)−𝔼z1:T[p^(⋅∣z1:T)∣r∈z1:T]‖2≤ϵm​i​n2,\displaystyle\sum_{r}p(r)^{2}\norm{p^*(\cdot\mid r) - \mathbb{E}_{z_{1:T}}\qty[\hat p(\cdot\mid z_{1:T}) \mid r \in z_{1:T}]}^{2}\leq\epsilon^{2}_{min},
+

as desired. +∎

+
+
+

To conclude, we must set α,αs​m,T∗\alpha,\alpha_{sm},T^{*} appropriately in terms of ϵ\epsilon in order to apply Lemma 6.

+
+
+
Proof of Theorem 6.
+
+

Let ϵ=ϵm​i​n≤1100​(|𝒜|+1)⋅minr⁡‖p∗(⋅∣r)−p0‖\epsilon=\epsilon_{min}\leq\frac{1}{100(\absolutevalue{\gA}+1)}\cdot\min_{r}\norm{p^*(\cdot\mid r) - p_0} be the target accuracy. +Let us choose the initialization α\alpha so that log⁡(ϵα​|𝒜|+1)=ι\log\quantity(\frac{\epsilon}{\alpha\sqrt{\abs{\gA} + 1}})=\iota, where ι\iota is chosen so that

+ + + + + + +
ι≥100​(|𝒜|+1)​log⁡|𝒜|​ϵ−4​p​(r)​‖p∗(⋅∣r)−p0‖.\displaystyle\iota\geq 100(\absolutevalue{\gA}+1)\log\absolutevalue{\gA}\epsilon^{-4}p(r)\norm{p^*(\cdot\mid r) - p_0}.
+

In this case, we see that

+ + + + + + +
T∗≤2​ι​maxr​(p​(r)−1​‖p∗(⋅∣r)−p0‖−1).\displaystyle T^{*}\leq 2\iota\max_{r}\quantity( p(r)^{-1}\norm{p^*(\cdot\mid r) - p_0}^{-1}).
+

Since p∗(⋅∣r)p^{*}(\cdot\mid r) is supported on at most DD elements, and |𝒜|≥2​D\absolutevalue{\gA}\geq 2D, we have ‖p∗(⋅∣r)−p0‖−1≤2​D\norm{p^*(\cdot\mid r) - p_0}^{-1}\leq\sqrt{2D}. Therefore T∗≤2​R​D⋅ιT^{*}\leq 2R\sqrt{D}\cdot\iota. +Let us compute αs​m\alpha_{sm}. +We see that, since S≥8​R​2​DS\geq 8R\sqrt{2D},

+ + + + + + + + + + + + + + + + + + + + + + +
𝑾K​Q​(s)\displaystyle{\bm{W}}_{KQ}(s)≤exp⁡(4​R​DS​ι)⋅α​|A|+1\displaystyle\leq\exp\quantity(\frac{4R\sqrt{D}}{S} \iota)\cdot\alpha\sqrt{\absolutevalue{A}+1}
≤exp⁡(12​ι)​α​|A|+1\displaystyle\leq\exp(\frac 12\iota)\alpha\sqrt{\absolutevalue{A}+1}
=ϵ​α⋅(|𝒜|+1)1/4\displaystyle=\sqrt{\epsilon\alpha}\cdot(\absolutevalue{\gA}+1)^{1/4}
≤α\displaystyle\leq\sqrt{\alpha}
+

Similarly, since 𝒩≥4​R​2​D​T{\mathcal{N}}\geq 4R\sqrt{2D}T,

+ + + + + + + + + + + + + + + + + +
𝑾K​Q​(s)\displaystyle{\bm{W}}_{KQ}(s)≤exp⁡(4​R​D​T|𝒩|​ι)⋅α​|A|+1\displaystyle\leq\exp\quantity(\frac{4R\sqrt{D}T}{\abs{\gN}} \iota)\cdot\alpha\sqrt{\absolutevalue{A}+1}
≤exp⁡(12​ι)​α​|A|+1\displaystyle\leq\exp(\frac 12\iota)\alpha\sqrt{\absolutevalue{A}+1}
≤α\displaystyle\leq\sqrt{\alpha}
+

Therefore the assumption holds for αs​m=α\alpha_{sm}=\sqrt{\alpha}. To conclude, we must verify that

+ + + + + + +
T​α≤1300​ι−1⋅minr⁡‖p∗(⋅∣r)−p0‖.\displaystyle T\alpha\leq\frac{1}{300}\iota^{-1}\cdot\min_{r}\norm{p^*(\cdot\mid r) - p_0}.
+

But since α=ϵ|𝒜|+1​e−ι\alpha=\frac{\epsilon}{\sqrt{\absolutevalue{\gA}+1}}e^{-\iota}, the RHS scales with e−ιe^{-\iota} and the RHS scales with ι\iota, and thus the condition can be obtained for choosing ι\iota sufficiently large.

+
+
+

Under the setting of paramters the conditions of Lemma 6 are satisfied, and thus the claim holds. +∎

+
+
+
+
+
+

D.4 Helper Lemma

+ +
+
Lemma 7.
+
+

Let z⁡(t)≥0z(t)\geq 0 satisfy

+ + + + + + +
z˙≤A​z+B​z2.\displaystyle\dot{z}\leq Az+Bz^{2}.
+

for positive constants A,BA,B. Then

+ + + + + + +
z⁡(t)≤A​z​(0)​eA​tA+B​z​(0)​(1−eA​t).\displaystyle z(t)\leq\frac{Az(0)e^{At}}{A+Bz(0)(1-e^{At})}.
+

Furthermore, if

+ + + + + + +
z˙≥A​z−B​z2,\displaystyle\dot{z}\geq Az-Bz^{2},
+

and z∈[0,A2​B]z\in[0,\frac{A}{2B}] on the interval [0,T][0,T], +then

+ + + + + + +
z⁡(t)≥A​z​(0)​eA​tA+B​z​(0)​(eA​t−1).\displaystyle z(t)\geq\frac{Az(0)e^{At}}{A+Bz(0)(e^{At}-1)}.
+

for all t∈[0,T]t\in[0,T].

+
+
+
+

Both claims follow from the Bihari-LaSalle inequality.

+
+
+
+
+

Appendix E Proofs from Section 6

+ +
+

E.1 Associative Memories

+ +
+
Proof of Theorem 7.
+
+

f∗→𝑭→f^f^{*}\rightarrow{\bm{F}}\rightarrow\hat{f} is a Markov chain, so by the data processing inequality,

+ + + + + + +
I⁡(f∗,f^)≤I⁡(f∗,𝑭).\displaystyle I(f^{*};\hat{f})\leq I(f^{*};{\bm{F}}).
+

Also, by definition of mutual information

+ + + + + + +
I⁡(f∗,𝑭)≤H⁡(𝑭)≤B,\displaystyle I(f^{*};{\bm{F}})\leq H({\bm{F}})\leq B,
+

where the last inequality follows since 𝑭{\bm{F}} is an BB-bit message. Thus I⁡(f∗,f^)≤BI(f^{*};\hat{f})\leq B.

+
+
+

Let qx(⋅∣f^)q_{x}(\cdot\mid\hat{f}) be the conditional distribution of f∗​(x)f^{*}(x) given f^\hat{f}. Consider some fixed f^\hat{f}. f^​(x)\hat{f}(x) is also a probability distribution over [M][M], and thus by Gibbs’ inequality

+ + + + + + + +
𝔼y∼qx(⋅∣f^)[−log⁡f^​(x)y]\displaystyle\mathbb{E}_{y\sim q_{x}(\cdot\mid\hat{f})}\quantity[-\log\hat f(x)_y]≥𝔼y∼qx(⋅∣f^)[−log⁡qx​(y∣f^)].\displaystyle\geq\mathbb{E}_{y\sim q_{x}(\cdot\mid\hat{f})}\quantity[-\log q_x(y \mid\hat f)].
+

Therefore, letting qq be the marginal distribution over f^\hat{f} and qxq_{x} the marginal over f∗​(x)f^{*}(x),

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
𝔼f∗,f^​[−log⁡f^​(x)f∗​(x)]\displaystyle\mathbb{E}_{f^{*},\hat{f}}\quantity[- \log\hat f(x)_{f^*(x)}]=𝔼f^​[𝔼y∼qx(⋅∣f^)[−log⁡f^​(x)y]]\displaystyle=\mathbb{E}_{\hat{f}}\quantity[\mathbb{E}_{y \sim q_x(\cdot\mid\hat f)}\qty[-\log\hat f(x)_y]]
≥𝔼f^​[𝔼y∼qx(⋅∣f^)[−log⁡qx​(y∣f^)]]\displaystyle\geq\mathbb{E}_{\hat{f}}\quantity[\mathbb{E}_{y \sim q_x(\cdot\mid\hat f)}\qty[-\log q_x(y \mid\hat f)]]
=𝔼f∗,f^​[−log⁡qx​(f∗​(x)∣f^)]\displaystyle=\mathbb{E}_{f^{*},\hat{f}}\quantity[-\log q_x(f^*(x) \mid\hat f)]
=𝔼f∗,f^​[−log⁡qx​(f∗​(x),f^)q⁡(f^)​qx​(f∗​(x))−log⁡qx​(f∗​(x))]\displaystyle=\mathbb{E}_{f^{*},\hat{f}}\quantity[-\log\frac{q_x(f^*(x), \hat f)}{q(\hat f)q_x(f^*(x))} - \log q_x(f^*(x))]
=−I⁡(f∗​(x),f^)+log⁡M.\displaystyle=-I(f^{*}(x);\hat{f})+\log M.
+

where in the last step we use the fact that qxq_{x} is uniform over [M][M], and plug in the definition of mutual information. The total loss is thus

+ + + + + + + +
𝔼f∗,f^​[L⁡(f^)]≥∑x∈[N]p⁡(x)​(−I⁡(f∗​(x),f^)+log⁡M).\displaystyle\mathbb{E}_{f^{*},\hat{f}}\quantity[L(\hat f)]\geq\sum_{x\in[N]}p(x)\quantity(- I(f^*(x); \hat f) + \log M).(22)
+

Since the yiy_{i} are independent,

+ + + + + + +
B≥I⁡(f∗,f^)≥∑x∈[N]I⁡(f∗​(x),f^).\displaystyle B\geq I(f^{*};\hat{f})\geq\sum_{x\in[N]}I(f^{*}(x);\hat{f}).
+

Also, 0≤I⁡(f∗​(x),f^)≤H⁡(f∗​(x))=log⁡M0\leq I(f^{*}(x);\hat{f})\leq H(f^{*}(x))=\log M. Therefore equation 22 is minimized when I⁡(f∗​(x),f^)=log⁡MI(f^{*}(x);\hat{f})=\log M for the B/log⁡MB/\log M most frequent tokens. Altogether,

+ + + + + + +
𝔼f∗,f^​[L⁡(f^)]≥log⁡M⋅∑x>⌈Blog⁡M⌉p⁡(x).\displaystyle\mathbb{E}_{f^{*},\hat{f}}\quantity[L(\hat f)]\geq\log M\cdot\sum_{x>\lceil\frac{B}{\log M}\rceil}p(x).
+

∎

+
+
+
+
Proof of Corollary 1.
+
+

Let p⁡(x)=Zα​x−αp(x)=Z_{\alpha}x^{-\alpha}, where Zα=∑x∈[N]x−αZ_{\alpha}=\sum_{x\in[N]}x^{-\alpha}. We can bound

+ + + + + + +
∑x=knp⁡(x)=∑x=knx−α∑x=1nx−α≍k1−α.\displaystyle\sum_{x=k}^{n}p(x)=\frac{\sum_{x=k}^{n}x^{-\alpha}}{\sum_{x=1}^{n}x^{-\alpha}}\asymp k^{1-\alpha}.
+

Therefore

+ + + + + + +
𝔼f∗,f^​[L⁡(f^)]≥log⁡M⋅∑x>⌈Blog⁡M⌉p⁡(x)≳log⁡M​(Blog⁡M)1−α≳B1−α.\displaystyle\mathbb{E}_{f^{*},\hat{f}}\quantity[L(\hat f)]\geq\log M\cdot\sum_{x>\lceil\frac{B}{\log M}\rceil}p(x)\gtrsim\log M\quantity(\frac{B}{\log M})^{1-\alpha}\gtrsim B^{1-\alpha}.
+

∎

+
+
+
+
+

E.2 Factual Recall

+ +
+
Proof.
+
+

Define ℓ⁡(s,r):=𝔼𝒟,f^​[−log⁡f^​(s,r)a∗​(s,r)]\ell(s,r):=\mathbb{E}_{\mathcal{D},\hat{f}}\quantity[-\log\hat f(s, r)_{a^*(s, r)}] so that

+ + + + + + +
𝐋=p⁡(s,r)⋅ℓ⁡(s,r).\displaystyle\mathbf{L}=p(s,r)\cdot\ell(s,r).
+
+
+

Let us define the expanded dataset 𝒟:={𝒜r}r∈ℛ∪{a∗​(s,r)}s∈𝒮,r∈ℛ\mathcal{D}:=\{\mathcal{A}_{r}\}_{r\in\mathcal{R}}\cup\{a^{*}(s,r)\}_{s\in\mathcal{S},r\in\mathcal{R}}. We observe that 𝒟→a∗→𝑭→f^\mathcal{D}\rightarrow a^{*}\rightarrow{\bm{F}}\rightarrow\hat{f} is a Markov chain, and thus by the data processing inequality

+ + + + + + +
B≥I⁡(𝒟,f^).\displaystyle B\geq I(\mathcal{D};\hat{f}).
+

Next, by the chain rule, we can decompose

+ + + + + + + + + + + + + + + + + +
I⁡(𝒟,f^)\displaystyle I(\mathcal{D};\hat{f})=I(𝒜1,…,𝒜R;f^)+I(a∗;f^∣𝒜1,…,𝒜R)\displaystyle=I(\mathcal{A}_{1},\dots,\mathcal{A}_{R};\hat{f})+I(a^{*};\hat{f}\mid\mathcal{A}_{1},\dots,\mathcal{A}_{R})
≥I(𝒜1,…,𝒜R;f^)+∑s,rI(a∗(s,r);f^∣𝒜1,…,𝒜R)\displaystyle\geq I(\mathcal{A}_{1},\dots,\mathcal{A}_{R};\hat{f})+\sum_{s,r}I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{1},\dots,\mathcal{A}_{R})
=I⁡(𝒜1,…,𝒜R,f^)+∑s,rI⁡(a∗​(s,r);f^∣𝒜r),\displaystyle=I(\mathcal{A}_{1},\dots,\mathcal{A}_{R};\hat{f})+\sum_{s,r}I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{r}),
+

where the first inequality uses the fact that the a∗​(s,r)a^{*}(s,r) are conditionally independent given the 𝒜r\mathcal{A}_{r}, and the second uses that a∗​(s,r)a^{*}(s,r) is independent of 𝒜r′\mathcal{A}_{r^{\prime}} given 𝒜r\mathcal{A}_{r}, for r≠r′r\neq r^{\prime}.

+
+
+

We can decompose the first mutual information term, using the fact that the 𝒜r\mathcal{A}_{r} are nearly independent:

+
+
+
Lemma 8.
+
+

Assume that |𝒱|≥2​R​D\absolutevalue{\mathcal{V}}\geq 2RD. Then

+ + + + + + +
I⁡(𝒜1,…,𝒜R,f^)≥∑rI⁡(𝒜r,f^)−2​R2​D2|𝒱|.\displaystyle I(\mathcal{A}_{1},\dots,\mathcal{A}_{R};\hat{f})\geq\sum_{r}I(\mathcal{A}_{r};\hat{f})-\frac{2R^{2}D^{2}}{\absolutevalue{\mathcal{V}}}.
+
+
+
+

We next relate I⁡(𝒜r,f^)I(\mathcal{A}_{r};\hat{f}) to the loss. The intuition for this lemma is that for a fixed rr the quantity ∑sℓ⁡(s,r)\sum_{s}\ell(s,r) is small, then the predictor f^\hat{f} must contain information about the answer set 𝒜r{\mathcal{A}}_{r}.

+
+
+
Lemma 9.
+
+

Assume that |𝒱|≥2​D\absolutevalue{\mathcal{V}}\geq 2D. Define η:=C​DS​log⁡(2​D2​log⁡|𝒱|)\eta:=C\sqrt{\frac{D}{S}\log(2D^2\log\abs{\mathcal{V}})} for a sufficiently large constant CC, and assume that η≤1\eta\leq 1. Then

+ + + + + + +
I(𝒜r;f^)≥−(1+η)DS⋅∑s∈[S]ℓ(s,r)+Dlog|𝒱|D−2​D​log⁡|𝒱||𝒱|−2​D2|𝒱|−η​D−1⏟lower order term\displaystyle I(\mathcal{A}_{r};\hat{f})\geq-(1+\eta)\frac{D}{S}\cdot\sum_{s\in[S]}\ell(s,r)+D\log\frac{\absolutevalue{\mathcal{V}}}{D}\underbrace{-\frac{2D\log\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}}-\frac{2D^{2}}{\absolutevalue{\mathcal{V}}}-\eta D-1}_{\text{lower order term}}
+
+
+
+

Finally, we relate I⁡(a∗​(s,r);f^∣𝒜r)I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{r}) to the loss. Similarly, the intuition for this lemma is that if the loss ℓ⁡(s,r)\ell(s,r) is small, then f^\hat{f} must contain information about the true association a∗​(s,r)a^{*}(s,r).

+
+
+
Lemma 10.
+
+

For all s,rs,r,

+ + + + + + +
I⁡(a∗​(s,r);f^∣𝒜r)≥log⁡D−ℓ⁡(s,r).\displaystyle I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{r})\geq\log D-\ell(s,r).
+
+
+
+

The proofs for Lemmas 8, 9 and 10 are deferred to Section E.3.

+
+
+

Combining Lemmas 8, 9 and 10, we get

+ + + + + + + + + + + + + + + + + + + + + + +
B\displaystyle B≥I⁡(𝒜1,…,𝒜R,f^)+∑s,rI⁡(a∗​(s,r);f^∣𝒜r)\displaystyle\geq I(\mathcal{A}_{1},\dots,\mathcal{A}_{R};\hat{f})+\sum_{s,r}I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{r})
=−(1+η)DS∑s,rℓ(s,r)+RDlog|𝒱|D−2​R​D​log⁡|𝒱||𝒱|−2​R​D2|𝒱|−η​R​D−R−2​R2​D2|𝒱|⏟lower order term\displaystyle=-(1+\eta)\frac{D}{S}\sum_{s,r}\ell(s,r)+RD\log\frac{\absolutevalue{\mathcal{V}}}{D}\underbrace{-\frac{2RD\log\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}}-\frac{2RD^{2}}{\absolutevalue{\mathcal{V}}}-\eta RD-R-\frac{2R^{2}D^{2}}{\absolutevalue{\mathcal{V}}}}_{\text{lower order term}}
+S​R​log⁡D−∑s,rℓ⁡(s,r)\displaystyle\quad+SR\log D-\sum_{s,r}\ell(s,r)
=−((1+η)​DS+1)∑s,rℓ(s,r)+SRlogD+RDlog|𝒱|D−εl​o​t,\displaystyle=-\quantity((1 + \eta)\frac{D}{S} + 1)\sum_{s,r}\ell(s,r)+SR\log D+RD\log\frac{\absolutevalue{\mathcal{V}}}{D}-\varepsilon_{lot},
+

where εl​o​t:=2​R​D​log⁡|𝒱||𝒱|+2​R​D2|𝒱|+η​R​D+R+2​R2​D2|𝒱|≪R​D​log⁡|𝒱|D\varepsilon_{lot}:=\frac{2RD\log\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}}+\frac{2RD^{2}}{\absolutevalue{\mathcal{V}}}+\eta RD+R+\frac{2R^{2}D^{2}}{\absolutevalue{\mathcal{V}}}\ll RD\log\frac{\absolutevalue{\mathcal{V}}}{D} is a lower order term.

+
+
+

Altogether, we see that in order for all the losses ℓ⁡(s,r)\ell(s,r) to equal zero, we require

+ + + + + + +
B≥S​R​log⁡D+R​D​log​|𝒱|D−ϵl​o​t≥S​R​log​D+(1−c)​R​D​log​|𝒱|D\displaystyle B\geq SR\log D+RD\log\frac{\absolutevalue{\gV}}{D}-\epsilon_{lot}\geq SR\log D+(1-c)RD\log\frac{\absolutevalue{\gV}}{D}
+

Furthermore, when p⁡(s,r)=1R​Sp(s,r)=\frac{1}{RS}, then 𝐋=1S​R​∑s,rℓ⁡(s,r)\mathbf{L}=\frac{1}{SR}\sum_{s,r}\ell(s,r), and the bound becomes

+ + + + + + + + + + + + +
B\displaystyle B≥−((1+η)​R​D+R​S)⋅𝐋+SRlogD+RDlog|𝒱|D−εl​o​t\displaystyle\geq-\quantity((1 + \eta)RD + RS)\cdot\mathbf{L}+SR\log D+RD\log\frac{\absolutevalue{\mathcal{V}}}{D}-\varepsilon_{lot}
−((1+c)​R​D+R​S)⋅𝐋+SRlogD+(1−c)RDlog|𝒱|D.\displaystyle-\quantity((1 + c)RD + RS)\cdot\mathbf{L}+SR\log D+(1-c)RD\log\frac{\absolutevalue{\mathcal{V}}}{D}.
+

∎

+
+
+
+
+

E.3 Auxiliary Lemmas

+ +
+
Lemma 11.
+
+

For random variables X,Y,ZX,Y,Z,

+ + + + + + +
I⁡(X,Y,Z)≥I⁡(X,Z)+I⁡(Y,Z)−I⁡(X,Y)\displaystyle I(X,Y;Z)\geq I(X;Z)+I(Y;Z)-I(X;Y)
+
+
+
+
Proof.
+
+

By standard properties of mutual information:

+ + + + + + + + + + + + + + + + + + + + + + +
I⁡(X,Y,Z)−I⁡(X,Z)−I⁡(Y,Z)\displaystyle I(X,Y;Z)-I(X;Z)-I(Y;Z)
=H⁡(X,Y)−H⁡(X,Y∣Z)−H⁡(X)+H⁡(X∣Z)−H⁡(Y)+H⁡(Y∣Z)\displaystyle=H(X,Y)-H(X,Y\mid Z)-H(X)+H(X\mid Z)-H(Y)+H(Y\mid Z)
=I⁡(X;Y∣Z)−I⁡(X,Y)\displaystyle=I(X;Y\mid Z)-I(X;Y)
≥−I⁡(X,Y).\displaystyle\geq-I(X;Y).
+

∎

+
+
+
+
Proof of Lemma 8.
+
+

By Lemma 11,

+ + + + + + + + + + + + + + + + + +
I⁡(𝒜1,…,𝒜R,f^)\displaystyle I(\mathcal{A}_{1},\dots,\mathcal{A}_{R};\hat{f})≥∑rI⁡(𝒜r,f^)−∑rI⁡(𝒜r,𝒜1,…,𝒜r−1)\displaystyle\geq\sum_{r}I(\mathcal{A}_{r};\hat{f})-\sum_{r}I(\mathcal{A}_{r};\mathcal{A}_{1},\dots,\mathcal{A}_{r-1})
=∑rI⁡(𝒜r,f^)−(∑rH⁡(𝒜r)+H⁡(𝒜1,…,𝒜r−1)−H⁡(𝒜1,…,𝒜r))\displaystyle=\sum_{r}I(\mathcal{A}_{r};\hat{f})-\quantity(\sum_r H(\mathcal{A}_r) + H(\mathcal{A}_1, \dots, \mathcal{A}_{r-1}) - H(\mathcal{A}_1, \dots, \mathcal{A}_r))
=∑rI⁡(𝒜r,f^)−∑rH⁡(𝒜r)+H⁡(𝒜1,…,𝒜R).\displaystyle=\sum_{r}I(\mathcal{A}_{r};\hat{f})-\sum_{r}H(\mathcal{A}_{r})+H(\mathcal{A}_{1},\dots,\mathcal{A}_{R}).
+

Since each 𝒜r\mathcal{A}_{r} is a uniformly random subset of 𝒱\mathcal{V}, we have H⁡(𝒜r)=log⁡(|𝒱|D)H(\mathcal{A}_{r})=\log\binom{\absolutevalue{\mathcal{V}}}{D}. Also, we can bound

+ + + + + + +
H⁡(𝒜1,…,𝒜R)=log⁡((|𝒱|D)(|𝒱|−DD)⋯(|𝒱|−(R−1)​DD)).\displaystyle H(\mathcal{A}_{1},\dots,\mathcal{A}_{R})=\log\quantity(\binom{\abs{\mathcal{V}}}{D}\binom{\abs{\mathcal{V}} - D}{D}\cdots\binom{\abs{\mathcal{V}} - (R-1)D}{D})\binom{\absolutevalue{\mathcal{V}}-D}{D}\cdots\binom{\absolutevalue{\mathcal{V}}-(R-1)D}{D}.
+

Thus

+ + + + + + + + + + + + + + + + + + + + + + +
∑rH⁡(𝒜r)−H⁡(𝒜1,…,𝒜R)\displaystyle\sum_{r}H(\mathcal{A}_{r})-H(\mathcal{A}_{1},\dots,\mathcal{A}_{R})≤R​log⁡(|𝒱|D)(|𝒱|−(R−1)​DD)\displaystyle\leq R\log\frac{\binom{\absolutevalue{\mathcal{V}}}{D}}{\binom{\absolutevalue{\mathcal{V}}-(R-1)D}{D}}
=R​log⁡|𝒱|!​(|𝒱|−R​D)!(|𝒱|−D)!​(|𝒱|−(R−1)​D)!\displaystyle=R\log\frac{\absolutevalue{\mathcal{V}}!(\absolutevalue{\mathcal{V}}-RD)!}{(\absolutevalue{\mathcal{V}}-D)!(\absolutevalue{\mathcal{V}}-(R-1)D)!}
≤R​D​log⁡|𝒱||𝒱|−R​D\displaystyle\leq RD\log\frac{\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}-RD}
≤2​R2​D2|𝒱|,\displaystyle\leq\frac{2R^{2}D^{2}}{\absolutevalue{\mathcal{V}}},
+

where we used the bound log⁡11−x≤2​x\log\frac{1}{1-x}\leq 2x on (0,12)(0,\frac{1}{2}). Plugging in yields the desired bound. +∎

+
+
+
+
Proof of Lemma 9.
+
+

Let (z1,…,zD)(z_{1},\dots,z_{D}) be a random permutation of 𝒜r\mathcal{A}_{r}. We first aim to relate I⁡(𝒜,f^)I(\mathcal{A};\hat{f}) to I⁡(zi,f^)I(z_{i};\hat{f}). By the data processing inequality,

+ + + + + + +
I⁡(𝒜r,f^)≥I⁡(z1,…,zD,f^).\displaystyle I(\mathcal{A}_{r};\hat{f})\geq I(z_{1},\dots,z_{D};\hat{f}).
+

By Lemma 11,

+ + + + + + + + + + + + +
I⁡(z1,…,zD,f^)\displaystyle I(z_{1},\dots,z_{D};\hat{f})≥∑iI⁡(zi,f^)−∑iI⁡(zi,z1,…,zi−1)\displaystyle\geq\sum_{i}I(z_{i};\hat{f})-\sum_{i}I(z_{i};z_{1},\dots,z_{i-1})
=∑iI⁡(zi,f^)−∑iH⁡(zi)+H⁡(z1,…,zD).\displaystyle=\sum_{i}I(z_{i};\hat{f})-\sum_{i}H(z_{i})+H(z_{1},\dots,z_{D}).
+

The tuple (z1,…,zD)(z_{1},\dots,z_{D}) is chosen uniformly at random from 𝒱D\mathcal{V}^{D}, conditioned on all the ziz_{i} being distinct. Therefore H⁡(zi)=log⁡|𝒱|H(z_{i})=\log\absolutevalue{\mathcal{V}}, and H⁡(z1,…,zD)=log⁡(|𝒱|⋯(|𝒱|−D+1))H(z_{1},\dots,z_{D})=\log\quantity(\abs{\mathcal{V}}\cdots(\abs{\mathcal{V}} - D + 1)). Thus

+ + + + + + + + + + + + + + + + + +
∑iH⁡(zi)−H⁡(z1,…,zD)\displaystyle\sum_{i}H(z_{i})-H(z_{1},\dots,z_{D})=log⁡(|𝒱|D|𝒱|⋯(|𝒱|−D+1))\displaystyle=\log\quantity(\frac{\abs{\mathcal{V}}^D}{\abs{\mathcal{V}}\cdots(\abs{\mathcal{V}} - D + 1)})
≤D​log⁡|𝒱||𝒱|−D\displaystyle\leq D\log\frac{\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}-D}
≤2​D2|𝒱|.\displaystyle\leq\frac{2D^{2}}{\absolutevalue{\mathcal{V}}}.
+

Altogether,

+ + + + + + +
I⁡(𝒜r,f^)≥∑iI⁡(zi,f^)−2​D2|𝒱|.\displaystyle I(\mathcal{A}_{r};\hat{f})\geq\sum_{i}I(z_{i};\hat{f})-\frac{2D^{2}}{\absolutevalue{\mathcal{V}}}.
+

Next, using the definition of mutual information and Gibbs’ inequality,

+ + + + + + +
I⁡(zi,f^)=𝔼zi,f^​[log⁡ℙ⁡(zi∣f^)ℙ⁡(zi)]≥𝔼zi,f^​[log⁡q⁡(zi∣f^)ℙ⁡(zi)]\displaystyle I(z_{i};\hat{f})=\mathbb{E}_{z_{i},\hat{f}}\quantity[\log\frac{\mathbb{P}(z_i \mid\hat f)}{\mathbb{P}(z_i)}]\geq\mathbb{E}_{z_{i},\hat{f}}\quantity[\log\frac{q(z_i \mid\hat f)}{\mathbb{P}(z_i)}]
+

for any probability distribution qq. Let us define qq as follows. First, define f~​(s,r):=(1−ϵ)​f^​(s,r)+ϵ|𝒱|​𝟏∈Δ𝒱\tilde{f}(s,r):=(1-\epsilon)\hat{f}(s,r)+\frac{\epsilon}{\absolutevalue{\mathcal{V}}}\mathbf{1}\in\Delta_{\mathcal{V}}, for a small constant ϵ\epsilon to be chosen later. Next, define

+ + + + + + +
q⁡(z∣f^):=1S​∑sf~​(s,r)z.\displaystyle q(z\mid\hat{f}):=\frac{1}{S}\sum_{s}\tilde{f}(s,r)_{z}.
+

Plugging in, and observing that ℙ⁡(zi)=1|𝒱|\mathbb{P}(z_{i})=\frac{1}{\absolutevalue{\mathcal{V}}}, we get that

+ + + + + + +
I⁡(zi,f^)≥𝔼zi,f^​[log⁡(1S​∑sf~​(s,r)zi)]+log⁡|𝒱|.\displaystyle I(z_{i};\hat{f})\geq\mathbb{E}_{z_{i},\hat{f}}\quantity[\log\qty(\frac{1}{S}\sum_s \tilde f(s, r)_{z_i})]+\log\absolutevalue{\mathcal{V}}.
+

Define 𝒩z:={s:a∗​(s,r)=z}\mathcal{N}_{z}:=\{s:a^{*}(s,r)=z\}. Let ℰ\mathcal{E} be the event that |𝒩z|≥M\absolutevalue{\mathcal{N}_z}\geq M for all z∈𝒜z\in\mathcal{A}. On the event ℰ\mathcal{E}, we can bound

+ + + + + + + + + + + + + + + + + + + + + + +
log⁡(1S​∑sf~​(s,r)zi)\displaystyle\log\quantity(\frac{1}{S}\sum_s \tilde f(s, r)_{z_i})≥log⁡(1S​∑s∈𝒩zif~​(s,r)a∗​(s,r))\displaystyle\geq\log\quantity(\frac{1}{S}\sum_{s \in\mathcal{N}_{z_i}} \tilde f(s, r)_{a^*(s, r)})
=log⁡(1|𝒩zi|​∑s∈𝒩zif~​(s,r)a∗​(s,r))+log⁡|𝒩zi|S\displaystyle=\log\quantity(\frac{1}{\abs{\mathcal{N}_{z_i}}}\sum_{s \in\mathcal{N}_{z_i}} \tilde f(s, r)_{a^*(s, r)})+\log\frac{\absolutevalue{\mathcal{N}_{z_i}}}{S}
≥1|𝒩zi|​∑s∈𝒩zilog⁡f~​(s,r)a∗​(s,r)+log⁡|𝒩zi|S\displaystyle\geq\frac{1}{\absolutevalue{\mathcal{N}_{z_i}}}\sum_{s\in\mathcal{N}_{z_{i}}}\log\tilde{f}(s,r)_{a^{*}(s,r)}+\log\frac{\absolutevalue{\mathcal{N}_{z_i}}}{S}
≥1M​∑s∈𝒩zilog⁡f~​(s,r)a∗​(s,r)+log⁡MS.\displaystyle\geq\frac{1}{M}\sum_{s\in\mathcal{N}_{z_{i}}}\log\tilde{f}(s,r)_{a^{*}(s,r)}+\log\frac{M}{S}.
+

Thus

+ + + + + + + + + + + + + + + + + +
∑i∈[D]log⁡(1S​∑sf~​(s,r)zi)\displaystyle\sum_{i\in[D]}\log\quantity(\frac{1}{S}\sum_s \tilde f(s, r)_{z_i})≥1M​∑i∈[D]∑s∈𝒩zilog⁡f~​(s,r)a∗​(s,r)+D​log⁡MS\displaystyle\geq\frac{1}{M}\sum_{i\in[D]}\sum_{s\in\mathcal{N}_{z_{i}}}\log\tilde{f}(s,r)_{a^{*}(s,r)}+D\log\frac{M}{S}
=1M​∑s∈[S]log⁡f~​(s,r)a∗​(s,r)+D​log⁡MS\displaystyle=\frac{1}{M}\sum_{s\in[S]}\log\tilde{f}(s,r)_{a^{*}(s,r)}+D\log\frac{M}{S}
≥1−ϵM​∑s∈[S]log⁡f^​(s,r)a∗​(s,r)−S​ϵM​log⁡|𝒱|+D​log⁡MS.\displaystyle\geq\frac{1-\epsilon}{M}\sum_{s\in[S]}\log\hat{f}(s,r)_{a^{*}(s,r)}-\frac{S\epsilon}{M}\log\absolutevalue{\mathcal{V}}+D\log\frac{M}{S}.
+

On ℰ¯\overline{\mathcal{E}}, we have the naive bound

+ + + + + + + +
∑i∈[D]log⁡(1S​∑sf~​(s,r)zi)\displaystyle\sum_{i\in[D]}\log\quantity(\frac{1}{S}\sum_s \tilde f(s, r)_{z_i})≥D​log⁡ϵ|𝒱|.\displaystyle\geq D\log\frac{\epsilon}{\absolutevalue{\mathcal{V}}}.
+

Altogether, we have

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
∑i∈[D]I⁡(zi,f^)\displaystyle\sum_{i\in[D]}I(z_{i};\hat{f})
≥𝔼zi,f^​[∑i∈[D]log⁡(1S​∑sf~​(s,r)zi)]+D​log⁡|𝒱|\displaystyle\geq\mathbb{E}_{z_{i},\hat{f}}\quantity[\sum_{i \in[D]}\log\qty(\frac{1}{S}\sum_s \tilde f(s, r)_{z_i})]+D\log\absolutevalue{\mathcal{V}}
≥𝔼zi,f^​[𝟏​(ℰ)⋅(1−ϵM​∑s∈[S]log⁡f^​(s,r)a∗​(s,r)−S​ϵM​log⁡|𝒱|+D​log⁡MS)]\displaystyle\geq\mathbb{E}_{z_{i},\hat{f}}\quantity[\mathbf{1}(\mathcal{E})\cdot\qty(\frac{1 - \epsilon}{M}\sum_{s \in[S]} \log\hat f(s, r)_{a^*(s, r)} - \frac{S\epsilon}{M}\log\abs{\mathcal{V}} + D\log\frac{M}{S})]
+ℙ(ℰ¯)⋅Dlogϵ|𝒱|+Dlog|𝒱|\displaystyle\quad+\mathbb{P}(\overline{\mathcal{E}})\cdot D\log\frac{\epsilon}{\absolutevalue{\mathcal{V}}}+D\log\absolutevalue{\mathcal{V}}
≥1M​𝔼zi,f^​[∑s∈[S]log⁡f^​(s,r)a∗​(s,r)]−S​ϵM​log​|𝒱|+D​log​MS+ℙ⁡(ℰ¯)⋅D​log​ϵ|𝒱|+D​log​|𝒱|\displaystyle\geq\frac{1}{M}\mathbb{E}_{z_{i},\hat{f}}\quantity[\sum_{s \in[S]} \log\hat f(s, r)_{a^*(s, r)}]-\frac{S\epsilon}{M}\log\absolutevalue{\mathcal{V}}+D\log\frac{M}{S}+\mathbb{P}(\overline{\mathcal{E}})\cdot D\log\frac{\epsilon}{\absolutevalue{\mathcal{V}}}+D\log\absolutevalue{\mathcal{V}}
=−1M⋅∑s∈[S]ℓ(s,r)−S​ϵMlog|𝒱|+DlogMS+ℙ(ℰ¯)⋅Dlogϵ|𝒱|+Dlog|𝒱|\displaystyle=-\frac{1}{M}\cdot\sum_{s\in[S]}\ell(s,r)-\frac{S\epsilon}{M}\log\absolutevalue{\mathcal{V}}+D\log\frac{M}{S}+\mathbb{P}(\overline{\mathcal{E}})\cdot D\log\frac{\epsilon}{\absolutevalue{\mathcal{V}}}+D\log\absolutevalue{\mathcal{V}}
+

By Bernstein’s inequality and a union bound (a similar such concentration argument was used in the lower bound proof in Allen-Zhu and Li [2]), there exists a constant CC such that ℙ⁡(ℰ)≥1−δ\mathbb{P}(\mathcal{E})\geq 1-\delta for

+ + + + + + +
M=SD−C​SD​log⁡(D/δ),\displaystyle M=\frac{S}{D}-C\sqrt{\frac{S}{D}\log(D/\delta)},
+

as long as S≥D​log⁡(D/δ)S\geq D\log(D/\delta). Set ϵ=1|𝒱|\epsilon=\frac{1}{\absolutevalue{\mathcal{V}}}, δ=12​D​log⁡|𝒱|\delta=\frac{1}{2D\log\absolutevalue{\mathcal{V}}}, and define η:=2​C​DS​log⁡(2​D2​log⁡|𝒱|)≤1\eta:=2C\sqrt{\frac{D}{S}\log(2D^2\log\abs{\mathcal{V}})}\leq 1. We have that

+ + + + + + +
MS=1D​(1−C​DS​log⁡(D/δ))=1D​(1−η2),\displaystyle\frac{M}{S}=\frac{1}{D}\quantity(1 - C\sqrt{\frac{D}{S}\log(D/\delta)})=\frac{1}{D}\quantity(1 - \frac{\eta}{2}),
+

and thus

+ + + + + + +
SM=D1−η/2≤D⁡(1+η).\displaystyle\frac{S}{M}=\frac{D}{1-\eta/2}\leq D(1+\eta).
+

Therefore

+ + + + + + + + + + + + +
∑i∈[D]I⁡(zi,f^)\displaystyle\sum_{i\in[D]}I(z_{i};\hat{f})≥−(1+η)DS⋅∑s∈[S]ℓ(s,r)−(1+η)D​log⁡|𝒱||𝒱|+Dlog|𝒱|D+Dlog⁡(1−η/2)−1\displaystyle\geq-(1+\eta)\frac{D}{S}\cdot\sum_{s\in[S]}\ell(s,r)-(1+\eta)\frac{D\log\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}}+D\log\frac{\absolutevalue{\mathcal{V}}}{D}+D\log(1 - \eta/2)-1
≥−(1+η)DS⋅∑s∈[S]ℓ(s,r)+Dlog|𝒱|D−2​D​log⁡|𝒱||𝒱|−ηD−1.\displaystyle\geq-(1+\eta)\frac{D}{S}\cdot\sum_{s\in[S]}\ell(s,r)+D\log\frac{\absolutevalue{\mathcal{V}}}{D}-\frac{2D\log\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}}-\eta D-1.
+

Altogether, we have

+ + + + + + + + + + + + +
I⁡(𝒜r,f^)\displaystyle I(\mathcal{A}_{r};\hat{f})≥∑iI⁡(zi,f^)−2​D2|𝒱|\displaystyle\geq\sum_{i}I(z_{i};\hat{f})-\frac{2D^{2}}{\absolutevalue{\mathcal{V}}}
≥−(1+η)DS⋅∑s∈[S]ℓ(s,r)+Dlog|𝒱|D−2​D​log⁡|𝒱||𝒱|−2​D2|𝒱|−ηD−1,\displaystyle\geq-(1+\eta)\frac{D}{S}\cdot\sum_{s\in[S]}\ell(s,r)+D\log\frac{\absolutevalue{\mathcal{V}}}{D}-\frac{2D\log\absolutevalue{\mathcal{V}}}{\absolutevalue{\mathcal{V}}}-\frac{2D^{2}}{\absolutevalue{\mathcal{V}}}-\eta D-1,
+

as desired. +∎

+
+
+
+
Proof of Lemma 10.
+
+

By the definition of mutual information and Gibbs’ inequality,

+ + + + + + + + + + + + + + + + + +
I⁡(a∗​(s,r);f^∣𝒜r)\displaystyle I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{r})=𝔼𝒜r​[𝔼a∗​(s,r),f^|𝒜r​[log⁡ℙ⁡(a∗​(s,r)∣f^,𝒜r)ℙ⁡(a∗​(s,r)∣𝒜r)]]\displaystyle=\mathbb{E}_{\mathcal{A}_{r}}\quantity[\mathbb{E}_{a^*(s, r), \hat f \mid\mathcal{A}_r}\qty[\log\frac{\mathbb{P}(a^*(s, r) \mid\hat f, \mathcal{A}_r)}{\mathbb{P}(a^*(s, r) \mid\mathcal{A}_r)}]]
=𝔼𝒜r​[𝔼a∗​(s,r),f^|𝒜r​[log⁡ℙ⁡(a∗​(s,r)∣f^,𝒜r)]]+log⁡D\displaystyle=\mathbb{E}_{\mathcal{A}_{r}}\quantity[\mathbb{E}_{a^*(s, r), \hat f \mid\mathcal{A}_r}\qty[\log\mathbb{P}(a^*(s, r) \mid\hat f, \mathcal{A}_r)]]+\log D
≥𝔼𝒜r​[𝔼a∗​(s,r),f^|𝒜r​[log⁡q⁡(a∗​(s,r)∣f^,𝒜r)]]+log⁡D\displaystyle\geq\mathbb{E}_{\mathcal{A}_{r}}\quantity[\mathbb{E}_{a^*(s, r), \hat f \mid\mathcal{A}_r}\qty[\log q(a^*(s, r) \mid\hat f, \mathcal{A}_r)]]+\log D
+

where q(⋅∣f^,𝒜r)q(\cdot\mid\hat{f},\mathcal{A}_{r}) is any distribution over 𝒱\mathcal{V}. Let us define qq to be

+ + + + + + +
q⁡(a∣f^,𝒜r)∝f^​(s,r)a⋅𝟏​(a∈𝒜r)\displaystyle q(a\mid\hat{f},\mathcal{A}_{r})\propto\hat{f}(s,r)_{a}\cdot\mathbf{1}(a\in\mathcal{A}_{r})
+

Since a∗​(s,r)∈𝒜ra^{*}(s,r)\in\mathcal{A}_{r} always, we have that q⁡(a∗​(s,r)∣f^,𝒜r)≥f^​(s,r)a∗​(s,r)q(a^{*}(s,r)\mid\hat{f},\mathcal{A}_{r})\geq\hat{f}(s,r)_{a^{*}(s,r)}, and thus

+ + + + + + + + + + + + + + + + + +
I⁡(a∗​(s,r);f^∣𝒜r)\displaystyle I(a^{*}(s,r);\hat{f}\mid\mathcal{A}_{r})≥𝔼𝒜r​[𝔼a∗​(s,r),f^|𝒜r​[log⁡f^​(s,r)a∗​(s,r)]]+log⁡D\displaystyle\geq\mathbb{E}_{\mathcal{A}_{r}}\quantity[\mathbb{E}_{a^*(s, r), \hat f \mid\mathcal{A}_r}\qty[\log\hat f(s, r)_{a^*(s, r)}]]+\log D
=𝔼𝒟​[log⁡f^​(s,r)a∗​(s,r)]+log⁡D\displaystyle=\mathbb{E}_{\mathcal{D}}\quantity[\log\hat f(s, r)_{a^*(s, r)}]+\log D
=log⁡D−ℓ⁡(s,r).\displaystyle=\log D-\ell(s,r).
+

∎

+
+
+
+
+
+

Appendix F Technical Lemmas

+ +
+
Lemma 12.
+
+

Let u,vu,v be drawn uniformly over the dd-dimensional sphere of radius 1. Then

+ + + + + + +
𝔼​[⟨u,v⟩2​p]≤(2​p)p​d−p\displaystyle\mathbb{E}\quantity[\langle u, v \rangle^{2p}]\leq(2p)^{p}d^{-p}
+
+
+
+
Lemma 13 (Hypercontractivity for product distributions).
+
+

Let f:(𝕊d−1)k×ℝm→ℝf:(\mathbb{S}^{d-1})^{k}\times\mathbb{R}^{m}\rightarrow\mathbb{R} be a polynomial of total degree at most pp. Then

+ + + + + + +
‖f‖Lq​(νd⊗k⊗μm)≤(q−1)p/2​‖f‖L2​(ν⊗k⊗μm),\displaystyle\norm{f}_{L^{q}(\nu_{d}^{\otimes k}\otimes\mu_{m})}\leq(q-1)^{p/2}\norm{f}_{L^{2}(\nu^{\otimes k}\otimes\mu_{m})},
+

where νd\nu_{d} is the uniform distribution over the sphere 𝕊d−1\mathbb{S}^{d-1}, and μm\mu_{m} is the standard Gaussian in mm dimensions.

+
+
+
+

Hypercontractivity for the Boolean hypercube (which implies hypercontractivity for Gaussian space) and for the sphere are consequences of Beckner [3], Beckner [4]. To show Lemma 13, one can use similar techniques to the proof of Corollary 12 in Montanaro [37].

+
+
+
Lemma 14.
+
+

Let f:(𝕊d−1)k×ℝm→ℝf:(\mathbb{S}^{d-1})^{k}\times\mathbb{R}^{m}\rightarrow\mathbb{R} be a polynomial of total degree at most pp. Assume that 𝔼​f≥0\mathbb{E}f\geq 0, where the expectation is taken with respect to νd⊗k⊗μm\nu_{d}^{\otimes k}\otimes\mu_{m}. Then if

+ + + + + + +
2p​e−1​logp⁡(1/δ)​Var​(f)(𝔼​f)2≤1,\displaystyle\frac{2^{p}e^{-1}\log^{p}(1/\delta)\mathrm{Var}(f)}{(\mathbb{E}f)^{2}}\leq 1,
+

f≤0f\leq 0 with probability at most δ\delta.

+
+
+
+
Proof.
+
+

By Markov’s inequality,

+ + + + + + + + + + + + + + + + + +
ℙ⁡(f≤0)\displaystyle\mathbb{P}(f\leq 0)≤ℙ⁡(|f−𝔼​f|≥𝔼​f)\displaystyle\leq\mathbb{P}(\absolutevalue{f - \mathbb{E}f}\geq\mathbb{E}f)
≤ℙ⁡(|f−𝔼​f|q≥(𝔼​f)q)\displaystyle\leq\mathbb{P}(\absolutevalue{f - \mathbb{E}f}^{q}\geq(\mathbb{E}f)^{q})
≤𝔼​[|f−𝔼​f|q](𝔼​f)q.\displaystyle\leq\frac{\mathbb{E}\quantity[\abs{f - \mathbb{E}f}^q]}{(\mathbb{E}f)^{q}}.
+

Since ff is a degree pp polynomial, by Lemma 13 we have that

+ + + + + + +
𝔼​[|f−𝔼​f|q]1/q≤qp/2​Var​(f)1/2.\displaystyle\mathbb{E}\quantity[\abs{f - \mathbb{E}f}^q]^{1/q}\leq q^{p/2}\mathrm{Var}(f)^{1/2}.
+

Therefore

+ + + + + + +
ℙ⁡(f≤0)≤(qp​Var​(f)(𝔼​f)2)q/2.\displaystyle\mathbb{P}(f\leq 0)\leq\quantity(\frac{q^p\Var(f)}{(\mathbb{E}f)^2})^{q/2}.
+

Setting q=2​log⁡(1/δ)q=2\log(1/\delta), we see that whenever

+ + + + + + +
2p​e−1​logp⁡(1/δ)​Var​(f)(𝔼​f)2≤1,\displaystyle\frac{2^{p}e^{-1}\log^{p}(1/\delta)\mathrm{Var}(f)}{(\mathbb{E}f)^{2}}\leq 1,
+

we have

+ + + + + + +
ℙ⁡(f≤0)≤(qp​Var​(f)(𝔼​f)2)q/2≤δ,\displaystyle\mathbb{P}(f\leq 0)\leq\quantity(\frac{q^p\Var(f)}{(\mathbb{E}f)^2})^{q/2}\leq\delta,
+

as desired. +∎

+
+
+
+

F.1 Hermite Polynomials

+ +
+

Let μ\mu be the standard Gaussian in 1 dimension, and let L2​(μ)L^{2}(\mu) be the function space of square-integrable functions with respect to this Gaussian measure. The Hermite polynomials {hk}k≥0\{h_{k}\}_{k\geq 0} form an orthonormal basis of L2​(μ)L^{2}(\mu). In particular, hkh_{k} is a degree kk polynomial, satisfying

+ + + + + + +
⟨hi,hk⟩L2​(μ)=δi​j.\displaystyle\langle h_{i},h_{k}\rangle_{L^{2}(\mu)}=\delta_{ij}.
+

One useful property of Hermite polynomials is the following:

+
+
+
Lemma 15.
+
+

Let 𝐮,𝐰∈ℝd{\bm{u}},{\bm{w}}\in\mathbb{R}^{d} with ‖𝐮‖=‖𝐰‖=1\norm{\vu}=\norm{\vw}=1, and let 𝐱∼𝒩⁡(0,𝐈d){\bm{x}}\sim{\mathcal{N}}(0,{\bm{I}}_{d}). Then

+ + + + + + +
𝔼𝒙​[hk​(⟨𝒖,𝒙⟩)​hk​(⟨𝒘,𝒙⟩)]=⟨𝒖,𝒘⟩k.\displaystyle\mathbb{E}_{{\bm{x}}}\quantity[h_k(\langle\vu, \vx\rangle)h_k(\langle\vw, \vx\rangle)]=\langle{\bm{u}},{\bm{w}}\rangle^{k}.
+
+
+
+

Next, let μd\mu_{d} be the standard Gaussian in dd dimensions. The function space L2​(μd)L^{2}(\mu_{d}) has an orthonormal basis of Hermite tensors {𝑯​𝒆k}k≥0\{{\bm{\mathsfit{He}}}_{k}\}_{k\geq 0}, where 𝑯​𝒆k:ℝm→(ℝd)⊗k{\bm{\mathsfit{He}}}_{k}:\mathbb{R}^{m}\rightarrow\quantity(\mathbb{R}^d)^{\otimes k}:

+
+
+
Definition 1.
+
+

Let the kkth Hermite tensor 𝑯​𝒆k:ℝm→(ℝd)⊗k{\bm{\mathsfit{He}}}_{k}:\mathbb{R}^{m}\rightarrow\quantity(\mathbb{R}^d)^{\otimes k} be defined as

+ + + + + + +
𝑯​𝒆k​(𝒙)=(−1)k​∇kμd​(𝒙)μd​(𝒙),\displaystyle{\bm{\mathsfit{He}}}_{k}({\bm{x}})=(-1)^{k}\frac{\nabla^{k}\mu_{d}({\bm{x}})}{\mu_{d}({\bm{x}})},
+

where μm(𝐱)=(2π)−d/2exp⁡(−12​‖𝐱‖2)\mu_{m}({\bm{x}})=(2\pi)^{-d/2}\exp(-\frac 12\norm{\vx}^2) is the Gaussian density. We remark that each entry of 𝑯​𝒆k​(𝐱){\bm{\mathsfit{He}}}_{k}({\bm{x}}) is a degree kk polynomial in 𝐱{\bm{x}}, and

+
+
+
+

The Hermite tensors satisfy the following useful properties:

+
+
+
Lemma 16 (Properties of Hermite Tensors).
+
+
    +
  • • +
    +

    (Connection to Hermite Polynomials) If 𝒘∈ℝd,‖𝒘‖=1{\bm{w}}\in\mathbb{R}^{d},\norm{\vw}=1, then

    + + + + + + +
    hk​(⟨𝒘,𝒙⟩)=⟨𝑯​𝒆k​(𝒙),𝒘⊗k⟩\displaystyle h_{k}(\langle{\bm{w}},{\bm{x}}\rangle)=\langle{\bm{\mathsfit{He}}}_{k}({\bm{x}}),{\bm{w}}^{\otimes k}\rangle
    +
  • +
  • • +
    +

    (Stein’s Lemma) For 𝒙∼𝒩⁡(0,𝑰d){\bm{x}}\sim{\mathcal{N}}(0,{\bm{I}}_{d}), f∈L2​(μd)f\in L^{2}(\mu_{d}),

    + + + + + + +
    𝔼𝒙​[f⁡(𝒙)​𝑯​𝒆k​(𝒙)]=𝔼𝒙​[∇kf​(𝒙)].\displaystyle\mathbb{E}_{\bm{x}}\quantity[f(\vx)\tHe_k(\vx)]=\mathbb{E}_{\bm{x}}\quantity[\nabla^k f(\vx)].
    +
  • +
+
+
+
+
+
+
+
+
+ + + + + +
+ diff --git a/results/memory-scaling-theory-v1/sources/hopfield.txt b/results/memory-scaling-theory-v1/sources/hopfield.txt new file mode 100644 index 0000000000000000000000000000000000000000..573be02bcf4ebaf32ae2ecfd37bf7c65895aa5e5 --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/hopfield.txt @@ -0,0 +1,12994 @@ +Hopfield Networks is All You Need +Report GitHub Issue +× +Title: +Content selection saved. Describe the issue below: +Description: +Submit without GitHub +Submit in GitHub +arXiv is now an independent nonprofit! +Learn more +× +Back to arXiv +Why HTML? +Report Issue +Back to Abstract +Download PDF +Abstract +1 +Introduction +2 +Modern Hopfield Nets with Continuous States +New energy function for continuous state Hopfield networks. +Metastable states and one global fixed point. +Hopfield update rule is attention of the transformer. +3 +New Hopfield Layers for Deep Learning +Types of neural networks. +Types of new Hopfield layers. +Additional functionality of new Hopfield layers. +4 +Experiments +Analysis of transformer and BERT models. +Multiple Instance Learning Datasets. +UCI Benchmark Collection. +A +Appendix +A.1 +Continuous State Modern Hopfield Networks (A New Concept) +A.1.1 +Introduction +A.1.2 +New Energy Function +A.1.3 +New Update Rule +A.1.4 +Global Convergence of the Update Rule +A.1.5 +Local Convergence of the Update Rule: Fixed Point Iteration +A.1.5.1 +General Bound on the Jacobian of the Iteration. +A.1.5.2 +One Stable State: Fixed Point Near the Mean of the Patterns. +A.1.5.3 +Many Stable States: Fixed Points Near Stored Patterns. +A.1.5.4 +Metastable States: Fixed Points Near Mean of Similar Patterns. +A.1.6 +Properties of Fixed Points Near Stored Pattern +A.1.6.1 +Exponentially Many Patterns can be Stored. +A.1.6.2 +Retrieval of Patterns with One Update and Small Retrieval Error. +A.1.7 +Learning Associations +A.1.7.1 +Association of Raw Patterns – No Mapping in an Associative Space. +A.1.7.2 +Learning an Association Matrix – Only One Set is Mapped in an Associative Space. +A.1.7.3 +Learning Two Association Mappings – Both Sets are Mapped in an Associative Space. +A.1.8 +Infinite Many Patterns and Forgetting Patterns +A.1.8.1 +Infinite Many Patterns. +A.1.8.2 +Forgetting Patterns. +A.1.9 +Number of Spurious States +A.2 +Properties of Softmax, Log-Sum-Exponential, Legendre Transform, Lambert W Function +A.3 +Modern Hopfield Networks: Binary States (Krotov and Hopfield) +A.3.1 +Modern Hopfield Networks: Introduction +A.3.1.1 +Additional Memory and Attention for Neural Networks. +A.3.1.2 +Modern Hopfield networks: Overview. +A.3.2 +Energy and Update Rule for Binary Modern Hopfield Networks +A.4 +Hopfield Update Rule is Attention of The Transformer +A.5 +Experiments +A.5.1 +Experiment 1: Attention in Transformers described by Hopfield dynamics +A.5.1.1 +Analysis of operating modes of the heads of a pre-trained BERT model. +A.5.1.2 +Experimental Setup. +A.5.1.3 +Hopfield Operating Classes of Transformer and BERT Models. +A.5.1.4 +Learning Dynamics of Transformer and BERT Models. +A.5.1.5 +Attention Heads Replaced by Gaussian Averaging Layers. +A.5.2 +Experiment 2: Multiple Instance Learning Datasets. +A.5.2.1 +Immune Repertoire Classification. +A.5.2.2 +Multiple Instance Learning Benchmark Datasets. +A.5.3 +Experiment 3: Classification on Small UCI Benchmark Datasets +A.5.3.1 +Motivation. +A.5.3.2 +Methods compared. +A.5.3.3 +Experimental design and implementation details. +A.5.3.4 +Results. +A.5.4 +Experiment 4: Drug Design Benchmark Datasets +A.5.4.1 +Experimental design and implementation details. +A.5.4.2 +Results. +A.6 +PyTorch Implementation of Hopfield Layers +A.6.1 +Introduction +A.6.2 +Functionality +A.6.3 +Usage +References +License: arXiv.org perpetual non-exclusive license +arXiv:2008.02217v3 [cs.NE] 28 Apr 2021 +Hopfield Networks is All You Need +Hubert Ramsauer +1 +1 +footnotemark: +1 +Bernhard Schäfl +1 +1 +footnotemark: +1 +Johannes Lehner +1 +1 +footnotemark: +1 +Philipp Seidl +1 +1 +footnotemark: +1 +Michael Widrich +1 +1 +footnotemark: +1 +Thomas Adler +1 +1 +footnotemark: +1 +Lukas Gruber +1 +1 +footnotemark: +1 +Markus Holzleitner +1 +1 +footnotemark: +1 +Milena Pavlović +3 +3 +footnotemark: +3 +4 +4 +footnotemark: +4 +Geir Kjetil Sandve +4 +4 +footnotemark: +4 +Victor Greiff +3 +3 +footnotemark: +3 +David Kreil +2 +2 +footnotemark: +2 +Michael Kopp +2 +2 +footnotemark: +2 +Günter Klambauer +1 +1 +footnotemark: +1 +Johannes Brandstetter +1 +1 +footnotemark: +1 +Sepp Hochreiter +1 +1 +footnotemark: +1 +2 +2 +footnotemark: +2 +1 +1 +footnotemark: +1 +ELLIS Unit Linz, LIT AI Lab, Institute for Machine Learning,  Johannes Kepler University Linz, Austria +2 +2 +footnotemark: +2 +Institute of Advanced Research in +Artificial Intelligence (IARAI) +3 +3 +footnotemark: +3 +Department of Immunology, University of Oslo, Norway +4 +4 +footnotemark: +4 +Department of Informatics, University of Oslo, Norway +Abstract +We introduce a modern Hopfield network +with continuous states and a corresponding update rule. +The new Hopfield network can store +exponentially (with the dimension of the +associative space) many patterns, +retrieves the pattern with +one update, and has exponentially small retrieval errors. +It has three types of energy minima (fixed points of the update): +(1) global fixed point averaging over all patterns, +(2) metastable states averaging over a subset of patterns, and +(3) fixed points which store a single pattern. +The new update rule +is equivalent to the attention mechanism used in transformers. +This equivalence enables a +characterization of the heads of transformer models. +These heads perform in the first layers preferably +global averaging and in higher layers partial averaging +via metastable states. +The new modern Hopfield network can be integrated +into deep learning architectures +as layers to allow the storage of and access to +raw input data, intermediate results, or learned prototypes. +These Hopfield layers enable new ways of deep learning, +beyond +fully-connected, convolutional, or recurrent networks, +and provide pooling, memory, association, and attention mechanisms. +We demonstrate the broad applicability of the Hopfield layers +across various domains. +Hopfield layers improved state-of-the-art on three out of four +considered multiple instance learning problems as well as +on immune repertoire +classification with several hundreds of thousands of instances. +On the UCI benchmark collections of small classification tasks, +where deep learning methods typically struggle, +Hopfield layers yielded a new state-of-the-art +when compared to different machine learning methods. +Finally, Hopfield layers achieved state-of-the-art +on two drug design datasets. +The implementation is available at: +https://github.com/ml-jku/hopfield-layers +1 +Introduction +The deep learning community +has been looking for alternatives to recurrent neural networks (RNNs) +for storing information. +For example, linear memory networks use a linear autoencoder for sequences +as a memory +( +Carta et al., 2020 +) +. +Additional memories for RNNs like +holographic reduced representations +( +Danihelka et al., 2016 +) +, +tensor product representations +( +Schlag & Schmidhuber, 2018 +; +Schlag et al., 2019 +) +and classical associative memories +(extended to fast weight approaches) +( +Schmidhuber, 1992 +; +Ba et al., 2016a +; +Ba et al., 2016b +; +Zhang & Zhou, 2017 +; +Schlag et al., 2021 +) +have been suggested. +Most approaches to new memories are based on attention. +The neural Turing machine (NTM) is equipped with an +external memory and an attention process +( +Graves et al., 2014 +) +. +Memory networks +( +Weston et al., 2014 +) +use an +$\arg\max$ +attention +by first mapping a query and patterns into a space and +then retrieving the pattern with the largest dot product. +End to end memory networks (EMN) make this attention scheme differentiable +by replacing +$\arg\max$ +through a +$\mathrm{softmax}$ +( +Sukhbaatar et al., 2015a +; +Sukhbaatar et al., 2015b +) +. +EMN with dot products became very popular and implement a key-value +attention +( +Daniluk et al., 2017 +) +for self-attention. +An enhancement of EMN is the transformer +( +Vaswani et al., 2017a +; +Vaswani et al., 2017b +) +and its extensions +( +Dehghani et al., 2018 +) +. +The transformer has had a great impact on the natural language processing +(NLP) community, in particular via the BERT models +( +Devlin et al., 2018 +; +Devlin et al., 2019 +) +. +Contribution of this work: +(i) introducing novel deep learning layers that are equipped +with a memory via modern Hopfield networks, +(ii) introducing a novel energy function and a novel update rule for +continuous modern Hopfield networks that are differentiable and +typically retrieve patterns after one update. +Differentiability is required for gradient descent parameter updates and +retrieval with one update is compatible with activating the layers of deep networks. +We suggest using modern Hopfield networks +to store information or learned prototypes in different +layers of neural networks. +Binary Hopfield networks +were introduced as associative memories +that can store and retrieve patterns +( +Hopfield, 1982 +) +. +A query pattern can retrieve the pattern to which it is most similar +or an average over similar patterns. +Hopfield networks seem to be an ancient technique, +however, new energy functions improved +their properties. +The stability of spurious states or metastable states +was sensibly reduced +( +Barra et al., 2018 +) +. +The largest and most impactful successes are reported +on increasing the storage capacity of Hopfield networks. +In a +$d$ +-dimensional space, +the standard Hopfield model can store +$d$ +uncorrelated patterns +without errors but only +$Cd/\log(d)$ +random patterns with +$C<1/2$ +for a fixed stable pattern or +$C<1/4$ +if all patterns +are stable +( +McEliece et al., 1987 +) +. +The same bound holds for nonlinear learning rules +( +Mazza, 1997 +) +. +Using tricks-of-trade and allowing +small retrieval errors, the storage capacity +is about +$0.138d$ +( +Crisanti et al., 1986 +; +Hertz et al., 1991 +; +Torres et al., 2002 +) +. +If the learning rule is not related to the Hebb rule, then up to +$d$ +patterns can be stored +( +Abu-Mostafa & StJacques, 1985 +) +. +For Hopfield networks with non-zero diagonal matrices, +the storage can be +increased to +$Cd\log(d)$ +( +Folli et al., 2017 +) +. +In contrast to the storage capacity, the number of energy minima +(spurious states, stable states) of Hopfield networks +is exponential in +$d$ +( +Tanaka & Edwards, 1980 +; +Bruck & Roychowdhury, 1990 +; +Wainrib & Touboul, 2013 +) +. +The standard binary Hopfield network has +an energy function that can be expressed as +the sum of interaction functions +$F$ +with +$F(x)=x^{2}$ +. +Modern Hopfield networks, also called +“dense associative memory” (DAM) models, +use an energy function with interaction functions +of the form +$F(x)=x^{n}$ +and, thereby, achieve +a storage capacity proportional to +$d^{n-1}$ +( +Krotov & Hopfield, 2016 +; +Krotov & Hopfield, 2018 +) +. +The energy function of modern Hopfield networks +makes them robust against adversarial attacks +( +Krotov & Hopfield, 2018 +) +. +Modern binary Hopfield networks with energy functions based on +interaction functions of the form +$F(x)=\exp(x)$ +even lead +to storage capacity of +$2^{d/2}$ +, +where all stored binary patterns are fixed points but the radius of +attraction vanishes +( +Demircigil et al., 2017 +) +. +However, in order to integrate Hopfield networks into deep learning +architectures, it is necessary to make them differentiable, that is, +we require continuous Hopfield networks +( +Hopfield, 1984 +; +Koiran, 1994 +) +. +Therefore, we generalize the +energy function of +Demircigil et al. (2017) +that builds on exponential interaction functions +to continuous patterns and states and obtain +a new modern Hopfield network. +We also propose a new update rule which +ensures global +convergence to stationary points of the energy (local minima or saddle points). +We prove that our new modern Hopfield network typically +retrieves patterns in one update step ( +$\epsilon$ +-close to the fixed point) +with an exponentially low error +and has a storage capacity proportional to +$c^{\frac{d-1}{4}}$ +(reasonable settings for +$c=1.37$ +and +$c=3.15$ +are given in Theorem +3 +). +The retrieval of patterns with one update is important to integrate +Hopfield networks in deep learning architectures, +where layers are activated only once. +Surprisingly, our new update rule is also +the key-value attention +as used in transformer and BERT models (see Fig. +1 +). +Our modern Hopfield networks can be integrated as a new layer +in deep learning architectures for pooling, memory, prototype learning, and attention. +We test these new layers on different benchmark datasets and tasks like +immune repertoire classification. +Figure 1: +We generalize +the energy +of binary modern Hopfield networks to continuous states +while keeping fast convergence and +storage capacity properties. +We also propose a new update +rule that minimizes the energy. +The new update rule is the attention mechanism of the transformer. +Formulae are modified to express +$\mathrm{softmax}$ +as row vector. +“ +$=$ +”-sign means “keeps the properties”. +2 +Modern Hopfield Nets with Continuous States +New energy function for continuous state Hopfield networks. +In order to integrate modern Hopfield networks into deep learning +architectures, we have to make them continuous. +To allow for continuous states, we propose a new energy function that is +a modification of the energy of modern Hopfield networks +( +Demircigil et al., 2017 +) +. +We also propose a new update rule which +can be proven to converge to +stationary points of the energy (local minima or saddle points). +We have +$N$ +stored (key) patterns +$\bm{x}_{i}\in\mathbb{R}^{d}$ +represented by the matrix +$\bm{X}=\left(\bm{x}_{1},\ldots,\bm{x}_{N}\right)$ +with +the largest pattern +$M=\max_{i}{{\left\|\bm{x}_{i}\right\|}}$ +. +The state (query) pattern is +$\bm{\xi}\in\mathbb{R}^{d}$ +. +For exponential interaction functions, +we need the +log-sum-exp function +( +$\mathrm{lse}$ +) for +$0<\beta$ +$\displaystyle\mathrm{lse}(\beta,\bm{x})\ $ +$\displaystyle=\ \beta^{-1}\log\left(\sum_{i=1}^{N}\exp(\beta x_{i})\right)\ ,$ +(1) +which is convex (see appendix Eq. ( +461 +), +and Lemma +A22 +). +The energy function +$\mathrm{E}$ +of the +modern Hopfield networks for binary patterns +$\bm{x}_{i}$ +and a binary state pattern +$\bm{\xi}$ +is +$\mathrm{E}=-\sum_{i=1}^{N}F\left(\bm{\xi}^{T}\bm{x}_{i}\right)$ +( +Krotov & Hopfield, 2016 +) +. +Here, +$F(x)=x^{n}$ +is the interaction function, where +$n=2$ +gives the classical +Hopfield network. +The storage capacity is proportional to +$d^{n-1}$ +( +Krotov & Hopfield, 2016 +) +. +This model was generalized by +Demircigil et al. (2017) +to exponential interaction functions +$F(x)=\exp(x)$ +which gives the energy +$\mathrm{E}=-\exp(\mathrm{lse}(1,\bm{X}^{T}\bm{\xi}))$ +. +This energy leads to an exponential +storage capacity of +$N=2^{d/2}$ +for binary patterns. +Furthermore, with a single update, the fixed point +is recovered with high probability for random patterns. +However, still this modern Hopfield network has binary states. +We generalize this energy function to continuous-valued patterns +while keeping the properties of the modern Hopfield networks like +the exponential storage capacity and the extremely fast convergence +(see Fig. +1 +). +For the new energy we take the logarithm +of the negative energy of modern Hopfield networks +and add a quadratic term of the current state. +The quadratic term ensures that the +norm of the state vector +$\bm{\xi}$ +remains finite and the energy is bounded. +Classical Hopfield networks do not require to bound the norm of their state vector, +since it is binary and has fixed length. +We define the novel energy function +$\mathrm{E}$ +as +$\displaystyle\mathrm{E}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\log N\ +\ \frac{1}{2}M^{2}\ .$ +(2) +We have +$0\leqslant\mathrm{E}\leqslant 2M^{2}$ +(see appendix Lemma +A1 +). +Using +$\bm{p}=\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})$ +, we define a novel update rule +(see Fig. +1 +): +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ f(\bm{\xi})\ =\ \bm{X}\bm{p}\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ .$ +(3) +The next theorem states that the +update rule Eq. ( +3 +) +converges globally. +The proof uses the Concave-Convex Procedure (CCCP) +( +Yuille & Rangarajan, 2002 +; +Yuille & Rangarajan, 2003 +) +, +which is equivalent +to Legendre minimization +( +Rangarajan et al., 1996 +; +Rangarajan et al., 1999 +) +algorithms +( +Yuille & Rangarajan, 2003 +) +. +Theorem 1 +. +The update rule Eq. ( +3 +) +converges globally: +For +$\bm{\xi}^{t+1}=f(\bm{\xi}^{t})$ +, +the energy +$\mathrm{E}(\bm{\xi}^{t})\to\mathrm{E}(\bm{\xi}^{*})$ +for +$t\to\infty$ +and a fixed point +$\bm{\xi}^{*}$ +. +Proof. +The update rule in Eq. ( +3 +) +is the CCCP for minimizing the energy +$\mathrm{E}$ +, which is the sum of the convex +$1/2\bm{\xi}^{T}\bm{\xi}$ +and concave +$-\mathrm{lse}$ +(see details in appendix Theorem +1 +). +Theorem 2 in +Yuille & Rangarajan (2002) +yields the global convergence property. +Also, in Theorem 2 in +Sriperumbudur & Lanckriet (2009) +the global convergence of CCCP is proven +via a rigorous analysis using Zangwill’s global convergence theory +of iterative algorithms. +∎ +The global convergence theorem only assures that +for the energy +$\mathrm{E}(\bm{\xi}^{t})\to\mathrm{E}(\bm{\xi}^{*})$ +for +$t\to\infty$ +but not +$\bm{\xi}^{t}\to\bm{\xi}^{*}$ +. +The next theorem strengthens +Zangwill’s global convergence theorem +( +Meyer, 1976 +) +and gives convergence results similar to +those known for expectation maximization +( +Wu, 1983 +) +. +Theorem 2 +. +For the iteration Eq. ( +3 +) +we have +$\mathrm{E}\left(\bm{\xi}^{t}\right)\to\mathrm{E}\left(\bm{\xi}^{*}\right)=\mathrm{E}^{*}$ +as +$t\to\infty$ +, for some stationary point +$\bm{\xi}^{*}$ +. +Furthermore, +${{\left\|\bm{\xi}^{t+1}-\bm{\xi}^{t}\right\|}}\to 0$ +and +either +$\{\bm{\xi}^{t}\}_{t=0}^{\infty}$ +converges +or, in the other case, the set of limit points of +$\{\bm{\xi}^{t}\}_{t=0}^{\infty}$ +is a connected and compact subset of +$\mathcal{L}\left(\mathrm{E}^{*}\right)$ +, where +$\mathcal{L}\left(a\right)=\{\bm{\xi}\in\mathcal{L}\mid\mathrm{E}\left(\bm{\xi}\right)=a\}$ +and +$\mathcal{L}$ +is the set of stationary points of the iteration Eq. ( +3 +). +If +$\mathcal{L}\left(\mathrm{E}^{*}\right)$ +is finite, +then any sequence +$\{\bm{\xi}^{t}\}_{t=0}^{\infty}$ +generated by the iteration Eq. ( +3 +) +converges to some +$\bm{\xi}^{*}\in\mathcal{L}\left(\mathrm{E}^{*}\right)$ +. +For a proof, see appendix Theorem +2 +. +Therefore, all the limit points of any sequence generated by +the iteration Eq. ( +3 +) are +stationary points (local minima or saddle points) of the +energy function +$\mathrm{E}$ +. Either the iteration converges or, +otherwise, the set of limit points +is a connected and compact set. +The next theorem gives the results on the storage capacity +of our new continuous state modern Hopfield network. +We first define what we mean by storing and retrieving patterns +using a modern Hopfield network with continuous states. +Definition 1 +(Pattern Stored and Retrieved) +. +We assume that around every pattern +$\bm{x}_{i}$ +a sphere +$\mathrm{S}_{i}$ +is given. +We say +$\bm{x}_{i}$ +is stored if there is a single fixed point +$\bm{x}_{i}^{*}\in\mathrm{S}_{i}$ +to +which all points +$\bm{\xi}\in\mathrm{S}_{i}$ +converge, +and +$\mathrm{S}_{i}\cap\mathrm{S}_{j}=\emptyset$ +for +$i\not=j$ +. +We say +$\bm{x}_{i}$ +is retrieved for a given +$\epsilon$ +if +iteration (update rule) Eq. ( +3 +) gives +a point +$\tilde{\bm{x}}_{i}$ +that is at least +$\epsilon$ +-close to the single fixed point +$\bm{x}_{i}^{*}\in\mathrm{S}_{i}$ +. +The retrieval error is +${{\left\|\tilde{\bm{x}}_{i}-\bm{x}_{i}\right\|}}$ +. +As with classical Hopfield networks, we consider patterns on the sphere, +i.e. patterns with a fixed norm. +For randomly chosen patterns, the number of patterns that can be stored +is exponential in the dimension +$d$ +of the space of the patterns ( +$\bm{x}_{i}\in\mathbb{R}^{d}$ +). +Theorem 3 +. +We assume a failure probability +$01.27$ +) +and proven for +$c\geq 1.3718$ +with +$\beta=1$ +, +$K=1$ +, +$d=75$ +, and +$p=0.001$ +( +$a+\ln(b)<-0.94$ +). +For a proof, see appendix Theorem +A5 +. +The next theorem states that the update rule typically +retrieves patterns after one update. +Retrieval of a pattern +$\bm{x}_{i}$ +for fixed point +$\bm{x}_{i}^{*}$ +and query +$\bm{\xi}$ +is defined via an +$\epsilon$ +by +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}<\epsilon$ +, +that is, the update is +$\epsilon$ +-close to the fixed point. +Retrieval with one update +is crucial to integrate modern Hopfield networks into +deep learning architectures, where layers are activated only once. +First we need the concept of separation of a pattern. +For pattern +$\bm{x}_{i}$ +we define its separation +$\Delta_{i}$ +to other patterns by: +$\displaystyle\Delta_{i}\ $ +$\displaystyle:=\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \bm{x}_{i}^{T}\bm{x}_{i}\ -\ \max_{j,j\not=i}\bm{x}_{i}^{T}\bm{x}_{j}\ .$ +(5) +The update rule retrieves patterns +with one update for well separated patterns, that is, patterns with large +$\Delta_{i}$ +. +Theorem 4 +. +With query +$\bm{\xi}$ +, after one update the distance of the new point +$f(\bm{\xi})$ +to the fixed point +$\bm{x}_{i}^{*}$ +is exponentially small in the separation +$\Delta_{i}$ +. +The precise bounds using the Jacobian +$\mathrm{J}=\frac{\partial f(\bm{\xi})}{\partial\bm{\xi}}$ +and its value +$\mathrm{J}^{m}$ +in the mean value +theorem are: +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}\ ,$ +(6) +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(7) +For given +$\epsilon$ +and +sufficient large +$\Delta_{i}$ +, we have +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}<\epsilon$ +, +that is, retrieval with one update. +See proof in appendix Theorem +A8 +. +At the same time, +the retrieval error decreases exponentially with the separation +$\Delta_{i}$ +. +Theorem 5 +(Exponentially Small Retrieval Error) +. +The retrieval error +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}\right\|}}$ +of pattern +$\bm{x}_{i}$ +is bounded by +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}\right\|}}\ $ +$\displaystyle\leqslant\ 2\ (N-1)\ \exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ M$ +(8) +and for +${{\left\|\bm{x}_{i}-\bm{x}_{i}^{*}\right\|}}\leqslant\frac{1}{2\ \beta\ M}$ +together with +${{\left\|\bm{x}_{i}-\bm{\xi}\right\|}}\leqslant\frac{1}{2\ \beta\ M}$ +by +$\displaystyle{{\left\|\bm{x}_{i}\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle\leqslant\ 2\ e\ (N-1)\ M\ \exp(-\ \beta\ \Delta_{i})\ .$ +(9) +See proof in appendix Theorem +A9 +. +Metastable states and one global fixed point. +So far, we considered patterns +$\bm{x}_{i}$ +that are well separated +and the iteration converges to a fixed point which is +near a pattern +$\bm{x}_{i}$ +. +If no pattern +$\bm{x}_{i}$ +is well separated from the others, +then the iteration converges to a global fixed point close to +the arithmetic mean of the vectors. +In this case the +$\mathrm{softmax}$ +vector +$\bm{p}$ +is close to uniform, that is, +$p_{i}=1/N$ +. +If some vectors are similar to each other and well separated from all +other vectors, then a metastable state near the similar +vectors exists. Iterations that start near the metastable state converge +to this metastable state, also if initialized by one of the similar patterns. +For convergence proofs to one global fixed point +and to metastable states see appendix +Lemma +A7 +and Lemma +A12 +, respectively. +Hopfield update rule is attention of the transformer. +The Hopfield network update rule +is the attention mechanism used +in transformer and BERT models +(see Fig. +1 +). +To see this, we assume +$N$ +stored (key) patterns +$\bm{y}_{i}$ +and +$S$ +state (query) patterns +$\bm{r}_{i}$ +that are mapped to the +Hopfield space of dimension +$d_{k}$ +. +We set +$\bm{x}_{i}=\bm{W}_{K}^{T}\bm{y}_{i}$ +, +$\bm{\xi}_{i}=\bm{W}_{Q}^{T}\bm{r}_{i}$ +, +and multiply the result of our update rule with +$\bm{W}_{V}$ +. +The matrices +$\bm{Y}=(\bm{y}_{1},\ldots,\bm{y}_{N})^{T}$ +and +$\bm{R}=(\bm{r}_{1},\ldots,\bm{r}_{S})^{T}$ +combine the +$\bm{y}_{i}$ +and +$\bm{r}_{i}$ +as row vectors. +We define the matrices +$\bm{X}^{T}=\bm{K}=\bm{Y}\bm{W}_{K}$ +, +$\bm{\Xi}^{T}=\bm{Q}=\bm{R}\bm{W}_{Q}$ +, +and +$\bm{V}=\bm{Y}\bm{W}_{K}\bm{W}_{V}=\bm{X}^{T}\bm{W}_{V}$ +, where +$\bm{W}_{K}\in\mathbb{R}^{d_{y}\times d_{k}},\bm{W}_{Q}\in\mathbb{R}^{d_{r}\times d_{k}},\bm{W}_{V}\in\mathbb{R}^{d_{k}\times d_{v}}$ +. +If +$\beta=1/\sqrt{d_{k}}$ +and +$\mathrm{softmax}\in\mathbb{R}^{N}$ +is changed to a row vector, we obtain +for the update rule Eq. ( +3 +) multiplied by +$\bm{W}_{V}$ +: +$\displaystyle\bm{Z}\ =\ \mathrm{softmax}\left(1/\sqrt{d_{k}}\ \bm{Q}\ \bm{K}^{T}\right)\ \bm{V}\ =\ \mathrm{softmax}\left(\beta\ \bm{R}\ \bm{W}_{\bm{Q}}\ \bm{W}_{\bm{K}}^{T}\bm{Y}^{T}\right)\ \bm{Y}\ \bm{W}_{\bm{K}}\bm{W}_{\bm{V}}\ .$ +(10) +The left part of Eq. ( +10 +) +is the transformer attention. In the transformer self-attention +$\bm{R}=\bm{Y}$ +, and +$\bm{W}_{\bm{K}}\bm{W}_{\bm{V}}$ +replaced by just +$\bm{W}_{\bm{V}}$ +. +Besides the attention mechanism, +Hopfield networks allow for other functionalities +in deep network architectures, +which we introduce via specific layers +in the next section. +The right part of Eq. ( +10 +) +serves to explain these specific layers. +3 +New Hopfield Layers for Deep Learning +Modern Hopfield networks with continuous states +can be integrated into deep learning +architectures, because they are continuous and +differentiable with respect to their parameters. +Furthermore, they typically retrieve patterns with +one update, which is conform to deep learning layers +that are activated only once. +For these two reasons, modern Hopfield networks +can serve as specialized layers in +deep networks to equip them with memories. +Below, we introduce three types of Hopfield layers: +Hopfield +, +HopfieldPooling +, and +HopfieldLayer +. +Possible applications of Hopfield layers +in deep network architectures comprise: +• +multiple instance learning (MIL) +( +Dietterich et al., 1997 +) +, +• +processing of and learning with point sets +( +Qi et al., 2017a +; +Qi et al., 2017b +; +Xu et al., 2018 +) +, +• +set-based and permutation invariant learning +( +Guttenberg et al., 2016 +; +Ravanbakhsh et al., 2016 +; +Zaheer et al., 2017 +; +Korshunova et al., 2018 +; +Ilse et al., 2018 +; +Zhai et al., 2020 +) +, +• +attention-based learning +( +Vaswani et al., 2017a +) +, +• +deep learning with associative memories +( +Graves et al., 2014 +; +Weston et al., 2014 +; +Ba et al., 2016a +; +Ba et al., 2016b +; +Schlag & Schmidhuber, 2018 +; +Schlag et al., 2019 +) +, +• +natural language processing +( +Devlin et al., 2018 +; +Devlin et al., 2019 +) +, +• +sequence analysis and time series prediction +( +Hochreiter, 1991 +; +Hochreiter & Schmidhuber, 1997 +; +Cho et al., 2014 +) +, and +• +storing and retrieving reference data, e.g. the training data, outliers, high error data points, +prototypes or cluster centers, support vectors & border cases. +Hopfield network layers can substitute +existing layers like +pooling layers, +permutation equivariant layers +( +Guttenberg et al., 2016 +; +Ravanbakhsh et al., 2016 +) +, +GRU +( +Cho et al., 2014 +) +& +LSTM +( +Hochreiter, 1991 +; +Hochreiter & Schmidhuber, 1997 +) +layers, and +attention layers +( +Vaswani et al., 2017a +; +Vaswani et al., 2017b +; +Bahdanau et al., 2014 +) +. +Figure 2: +Left: A standard deep network with layers +( +$\blacksquare$ +) propagates +either a vector or a set of vectors from the input to the output. +Right: A deep network, where layers ( +$\blacksquare$ +) +are equipped with associative memories +via Hopfield layers ( +$\blacksquare$ +). +Types of neural networks. +We consider two types of feed-forward neural networks: +(I) Neural networks that propagate an activation vector from the input layer +to the output layer. Examples are fully-connected or convolutional neural networks. +(II) Neural networks that propagate a set of vectors from the input layer to +the output layer, where each layer applies the same operation to each element of the set +and the output layer may summarize the set via a vector. +An example is the transformer. +Recurrent neural networks are networks of type (I), +which are iteratively applied to a set or a sequence, +where intermediate results are stored in a memory and can be reused. +Modern Hopfield networks can be integrated into both types of +neural network architectures and enable to equip each of their layers +with associative memories. See Fig. +2 +. +Types of new Hopfield layers. +We introduce three types of Hopfield layers: +Hopfield +, +HopfieldPooling +, and +HopfieldLayer +. +The continuous modern Hopfield network +results in a plethora of new deep learning architectures, +since we can +(a) propagate sets or single vectors, +(b) propagate queries, stored patterns, or both, +(c) learn static queries or stored patterns, +(d) fill the memory by training sets, prototypes, or external data. +Next, we provide three useful types of Hopfield layers. +The implementation is available at: +https://github.com/ml-jku/hopfield-layers +(1) +Layer +Hopfield +for networks that +propagate sets of vectors via +state (query) patterns +$\bm{R}$ +and stored (key) patterns +$\bm{Y}$ +. +The layer +Hopfield +is the realization of +formula ( +10 +). +The memory of the +Hopfield +layer can be +filled with sets from the input or previous layers +, +see Fig. +3 +. +The memory may be filled with a reference set, +which is covered by providing the reference set as additional input. +Thus, the layer +Hopfield +allows the association of two sets. +A prominent example of a layer that performs such association +is the transformer attention mechanism, +which associates keys and queries, e.g. two point sets that have to be compared. +This layer allows for different kinds of +sequence-to-sequence learning, +point set operations, +and retrieval-based methods. +The layer +Hopfield +with skip connections in a ResNet architecture +is identical to the popular transformer and BERT models. +In the experiments, we analyzed these Hopfield layers in transformer architectures. +In our experiments in which we compare machine learning methods +on small datasets of the UCI benchmark collection +the layer +Hopfield +is also used. +Figure 3: +The layer +Hopfield +allows the association of two sets +$\bm{R}$ +( +$\blacksquare$ +) and +$\bm{Y}$ +( +$\blacksquare$ +). +It can be integrated into deep networks that propagate sets of vectors. +The Hopfield memory +is filled +with a set from either the input or previous layers. +The output is a set of vectors +$\bm{Z}$ +( +$\blacksquare$ +). +(2) +Layer +HopfieldPooling +for networks that +propagate patterns via the stored (key) patterns +$\bm{Y}$ +. +This layer performs +a pooling or summarization of sets +$\bm{Y}$ +obtained +from queries in previous layers or the input. +The memory of the +HopfieldPooling +layer is +filled with sets from the input or previous layers +. +The +HopfieldPooling +layer uses the queries to search for +patterns in the memory, the stored set. +If more patterns are similar to +a particular search pattern (query), then the result is an average +over these patterns. +The state (query) patterns of each layer are static and can be learned. +Multiple queries supply a set to the next layer, where each query +corresponds to one element of the set. +Thus, the layer +HopfieldPooling +enables +fixed pattern search, +pooling operations, +and memories like LSTMs or GRUs. +The static pattern functionality is typically needed if particular +patterns must be identified in the data. +A single +HopfieldPooling +layer allows for +multiple instance learning. +Static state (query) patterns together with position encoding in the +keys allows for performing pooling operations. The position encoding can +be two-dimensional, where standard convolutional filters can be +constructed as in convolutional neural networks (CNNs). +The +HopfieldPooling +layer can substitute pooling, averaging, LSTM, +and permutation equivariant layers. +See Fig. +4 +. +The layer +HopfieldPooling +is used for +experiments with multiple instance learning tasks, e.g. for immune repertoire classification in the experiments. +Figure 4: +The layer +HopfieldPooling +enables +pooling or summarization of sets, +which are obtained from the input or from previous layers. +The input +$\bm{Y}$ +( +$\blacksquare$ +) +can be either a set or a sequence. +The query patterns of each layer are static and can be learned. +The output is a set of vectors +$\bm{Z}$ +( +$\blacksquare$ +), +where the number of vectors equals the number of query patterns. +The layer +HopfieldPooling +can realize multiple instance learning. +(3) +Layer +HopfieldLayer +for networks that +propagate a vector or a set of vectors via state (query) patterns +$\bm{R}$ +. +The queries +$\bm{R}$ +can be input vectors or queries +that are computed from the output of previous layers. +The memory of the +HopfieldLayer +layer is +filled with a fixed set +, which can be the training set, +a reference set, prototype set, or a learned set (a learned matrix). +The stored (key) patterns are static and can be learned. +If the training set is stored in the memory, +then each layer constructs a new set of queries based on the +query results of previous layers. +The stored patterns can be initialized by the training set or +a reference set and then learned, in which case they deviate from the training set. +The stored patterns can be interpreted as weights from the state (query) +to hidden neurons that have a softmax activation function +( +Krotov & Hopfield, 2020 +) +. +The layer +HopfieldLayer +can substitute a fully connected layer, +see Fig. +5 +. +A single +HopfieldLayer +layer also allows for +approaches similar to support vector machines (SVMs), +approaches similar to +$k$ +-nearest neighbor, +approaches similar to learning vector quantization, +and pattern search. +For classification, the raw data +$\bm{y}_{i}=(\bm{z}_{i},\bm{t}_{i})$ +can be the concatenation of input +$\bm{z}_{i}$ +and target +$\bm{t}_{i}$ +. +In this case, the matrices +$\bm{W}_{K}$ +and +$\bm{W}_{V}$ +can be designed such that +inside the softmax the input +$\bm{z}_{i}$ +is used and outside the softmax +the target +$\bm{t}_{i}$ +. +Thus, the softmax provides a weighted average of the target vectors +based on the similarity between the query and the inputs. +Also SVM models, +$k$ +-nearest neighbor, and learning vector quantization can +be considered as weighted averages of the targets. +The encoder-decoder attention layer of the transformers +are a +HopfieldLayer +layer, where the memory is filled +with the encoder output set. +In our experiments with the drug design benchmark datasets, +the layer +HopfieldLayer +has been applied and compared to +other machine learning methods. +Figure 5: +The layer +HopfieldLayer +enables +multiple queries of the training set, +a reference set, prototype set, or a learned set (a learned matrix). +The queries for each layer are computed from the results of previous layers. +The input is a set of vectors +$\bm{R}$ +( +$\blacksquare$ +). The output is also a set of vectors +$\bm{Z}$ +( +$\blacksquare$ +), +where the number of output vectors equals the number of input vectors. +The layer +HopfieldLayer +can realize +SVM models, +$k$ +-nearest neighbor, and LVQ. +Additional functionality of new Hopfield layers. +The insights about energy, convergence, and storage properties +provide all new Hopfield layers with additional functionalities: +i) +multiple updates +to control how +precise fixed points are found without additional parameters needed. +ii) +variable +$\beta$ +to determine the kind of fixed points +such as the size of metastable states. +The variable +$\beta$ +controls over how many patterns is averaged. +As observed in the experiments, +the variable is relevant in combination with the learning rate to steer the learning +dynamics. +The parameter +$\beta$ +governs the fixed point dynamics +and can be learned, too. +iii) +controlling the storage capacity +via the dimension of the +associative space. The storage capacity can be relevant +for tasks with a huge number of instances as in +the immune repertoire classification experiment. +iv) +pattern normalization +controls, like the layernorm, +the fixed point dynamics by the norm and shift of the patterns. +For more details see appendix, Section +A.6 +. +4 +Experiments +We show that our proposed Hopfield layers can be applied successfully +to a wide range of tasks. +The tasks are from natural language processing, +contain multiple instance learning problems, +a collection of small classification tasks, +and drug design problems. +Analysis of transformer and BERT models. +Transformer and BERT models can be implemented by the layer +Hopfield +. +The kind of fixed point of the Hopfield net is determined by +how the pattern +$\bm{x}_{i}$ +is separated from others patterns. +(a) +a global fixed point +: no separation of a pattern from the others, +(b) +a fixed point close to a single pattern +: pattern is +separated from other patterns, +(c) +metastable state +: some patterns are similar +to each other and well separated from all other vectors. +We observed that the attention heads of transformer and BERT models +are predominantly in metastable states, which +are categorized into four classes: +(I) averaging over a very large number of patterns (very large metastable state or fixed point (a)), +(II) averaging over a large number of patterns (large metastable state), +(III) averaging over a medium number of patterns (medium metastable state), +(IV) averaging over a small number of patterns (small metastable state or fixed point (c)). +For analyzing the metastable states, we calculated +the minimal number +$k$ +of +$\mathrm{softmax}$ +values required to sum up to +$0.90$ +. +Hence, +$k$ +indicates the size of a metastable state. +To determine in which of the four classes a head is mainly operating, +we computed the distribution of +$k$ +across sequences. +Concretely, for +$N$ +tokens and for +$\bar{k}$ +as the median of the distribution, +a head is classified +as operating in class (I) if +$1/2N<\bar{k}$ +, +as operating in class (II) if +$1/8N<\bar{k}\leqslant 1/2N$ +, +as operating in class (III) if +$1/32N<\bar{k}\leqslant 1/8N$ +, and +as operating in class (IV) if +$\bar{k}\leqslant 1/32N$ +. +We analyzed pre-trained BERT models from Hugging +Face Inc. +( +Wolf et al., 2019 +) +according to these operating classes. +In Fig. +A.3 +in the appendix the distribution of the pre-trained +bert-base-cased +model is depicted (for other models see +appendix Section +A.5.1.4 +). +Operating classes (II) (large metastable states) and +(IV) (small metastable states) +are often observed in the middle layers. +Operating class (I) (averaging over a very large number of patterns) +is abundant in lower layers. +Similar observations have been reported in other studies +( +Toneva & Wehbe, 2019a +; +Toneva & Wehbe, 2019b +; +Tay et al., 2020 +) +. +Operating class (III) (medium metastable states) is predominant in the last layers. +Multiple Instance Learning Datasets. +For multiple instance learning (MIL) +( +Dietterich et al., 1997 +) +, +we integrate our new Hopfield network +via the layer +HopfieldPooling +into deep learning architectures. +Recently, deep learning methods +have been applied to MIL problems +( +Ilse et al., 2018 +) +, but still +the performance on many datasets lacks improvement. +Thus, MIL datasets still pose an +interesting challenge, in which Hopfield layers equipped with memory +are a promising approach. +• +Immune Repertoire Classification. +The first MIL task is immune repertoire classification, +where a deep learning architecture with +HopfieldPooling +(DeepRC) was used +( +Widrich et al., 2020a +; +Widrich et al., 2020b +) +. +Immune repertoire classification +( +Emerson et al., 2017 +) +typically requires +to extract few patterns from a large set of sequences, the repertoire, +that are indicative for the respective immune status. +The datasets contain +$\approx$ +300,000 instances per immune repertoire, +which represents one of the largest multiple instance +learning experiments ever conducted +( +Carbonneau et al., 2018 +) +. +Most MIL methods fail due the large number of instances. +This experiment comprises real-world and simulated datasets. +Simulated datasets are generated by implanting +sequence motifs +( +Akbar et al., 2019 +; +Weber et al., 2020 +) +with low +frequency into simulated or experimentally-observed immune receptor sequences. +The performance of +DeepRC was compared with other machine learning methods: +(i) known motif, +(ii) SVM using +$k$ +-mers +and MinMax or Jaccard kernel, +(iii) +$K$ +-Nearest Neighbor (KNN) with +$k$ +-mers, +(iv) logistic regression with +$k$ +-mers, +(v) burden test with +$k$ +-mers, and +(vi) logistic multiple instance learning (lMIL). +On the real-world dataset DeepRC achieved +an AUC of +$0.832\pm 0.022$ +, followed by +the SVM with MinMax kernel (AUC +$0.825\pm 0.022$ +) and the burden +test with an AUC of +$0.699\pm 0.041$ +. +Across datasets, DeepRC outperformed all competing methods +with respect to average AUC +( +Widrich et al., 2020a +; +Widrich et al., 2020b +) +. +• +MIL benchmark datasets. +We apply Hopfield layers to further +MIL datasets +( +Ilse et al., 2018 +; +Küçükaşcı & +Baydoğan, 2018 +; +Cheplygina et al., 2016 +) +: +Elephant, Fox and Tiger +for image annotation +( +Andrews et al., 2003 +) +. +These datasets consist of color images from the Corel dataset +that have been preprocessed and +segmented. An image consists +of a set of segments (or blobs), +each characterized by color, texture and shape +descriptors. +The datasets have 100 positive and 100 negative +example images. +The latter have been randomly drawn from a pool of photos of +other animals. +Elephant comprises 1,391 instances and 230 features, +Fox 1,320 instances and 230 features, and +Tiger has 1,220 instances and 230 features. +Furthermore, we use the +UCSB breast cancer classification +( +Kandemir et al., 2014 +) +dataset, which consists of 2,002 instances across 58 input objects. An instance +represents a patch of a histopathological image of cancerous or normal tissue. +The layer +HopfieldPooling +is used, which allows for +computing a per-input-object representation by extracting an +average of instances that are indicative for one of the two classes. +The input to the layer +HopfieldPooling +is a set of embedded instances +$\bm{Y}$ +. +A trainable but fixed state (query) pattern +$\bm{Q}$ +is used for averaging +over class-indicative instances. +This averaging enables a compression of variable-sized bags to a +fixed-sized representation to discriminate the bags. +More details in appendix Sec. +A.5.2 +. +Our approach has set a new state-of-the-art and has +outperformed other methods +( +Küçükaşcı & +Baydoğan, 2018 +; +Carbonneau et al., 2016 +) +on the datasets Tiger, Elephant and UCSB Breast Cancer +(see Table +1 +). +Method +tiger +fox +elephant +UCSB +Hopfield (ours) +$\mathbf{91.3\pm 0.5}$ +$64.05\pm 0.4$ +$\mathbf{94.9\pm 0.3}$ +$\mathbf{89.5\pm 0.8}$ +Path encoding +( +Küçükaşcı & +Baydoğan, 2018 +) +$91.0\pm 1.0$ +a +$71.2\pm 1.4$ +a +$94.4\pm 0.7$ +a +$88.0\pm 2.2$ +a +MInD +( +Cheplygina et al., 2016 +) +$85.3\pm 1.1$ +a +$70.4\pm 1.6$ +a +$93.6\pm 0.9$ +a +$83.1\pm 2.7$ +a +MILES +( +Chen et al., 2006 +) +$87.2\pm 1.7$ +b +$\mathbf{73.8\pm 1.6}$ +a +$92.7\pm 0.7$ +a +$83.3\pm 2.6$ +a +APR +( +Dietterich et al., 1997 +) +$77.8\pm 0.7$ +b +$54.1\pm 0.9$ +b +$55.0\pm 1.0$ +b +— +Citation-kNN +( +Wang, 2000 +) +$85.5\pm 0.9$ +b +$63.5\pm 1.5$ +b +$89.6\pm 0.9$ +b +$70.6\pm 3.2$ +a +DD +( +Maron & Lozano-Pérez, 1998 +) +$84.1$ +b +$63.1$ +b +$90.7$ +b +— +Table 1: +Results for MIL datasets Tiger, Fox, Elephant, and +UCSB Breast Cancer in terms of AUC. +Results for all methods except the first are taken from either +a +( +Küçükaşcı & +Baydoğan, 2018 +) +or +b +( +Carbonneau et al., 2016 +) +, +depending on which reports the higher AUC. +UCI Benchmark Collection. +So far deep learning struggled with small datasets. +However, Hopfield networks are promising for handling small datasets, +since they can store the training data points or their representations +to perform similarity-based, nearest neighbor, or +learning vector quantization methods. +Therefore, we test the Hopfield layer +Hopfield +on the small datasets of +the UC Irvine (UCI) Machine Learning Repository that +have been used to benchmark +supervised learning methods +( +Fernández-Delgado et al., 2014 +; +Wainberg et al., 2016 +; +Khan et al., 2018 +) +and also feed-forward neural networks +( +Klambauer et al., 2017a +; +Wu et al., 2018 +) +, where +our Hopfield networks could exploit their memory. +The whole 121 datasets in the collection +vary strongly with respect to their size, number of +features, and difficulties +( +Fernández-Delgado et al., 2014 +) +, such that they have +been divided into 75 “small datasets” with less than 1,000 samples and +45 “large datasets” with more than or equal +to 1,000 samples in +Klambauer et al. (2017a) +. +Method +avg. rank diff. +$p$ +-value +Hopfield (ours) +$\mathbf{-3.92}$ +— +SVM +$-3.23$ +$0.15$ +SNN +$-2.85$ +$0.10$ +RandomForest +$-2.79$ +$0.05$ +… +… +… +Stacking +$8.73$ +$1.2$ +e +$-11$ +Table 2: +Results on 75 small datasets of the UCI benchmarks +given as difference to average rank. +On the 75 small datasets, +Random Forests (RFs) and Support Vector Machines (SVM) are highly accurate, whereas +on the large datasets, deep learning methods and neural networks are in the lead +( +Klambauer et al., 2017a +; +Klambauer et al., 2017b +; +Wu et al., 2018 +) +. +We applied a modern Hopfield network via the layer +HopfieldLayer +, +where a self-normalizing net (SNN) maps the +input vector to +$\bm{Y}$ +and +$\bm{R}$ +. +The output +$\bm{Z}$ +of +HopfieldLayer +enters +a softmax output. +We compared our modern Hopfield networks against deep learning methods +(e.g. SNNs, resnet), +RFs, SVMs, boosting, bagging, and many other machine +learning methods of +Fernández-Delgado et al. (2014) +. +Since for each method, multiple variants and implementations had been included, we +used method groups and representatives as defined by +Klambauer et al. (2017a) +. +For each dataset, a ranking of the methods was calculated which is presented in +Table +2 +. +We found that Hopfield networks outperform all other methods on the +small datasets, setting a new state-of-the-art for 10 datasets. +The difference is significant except for the first three runner-up methods +(Wilcoxon signed rank test). +See appendix Section +A.5.3 +for details. +Drug Design Benchmark Datasets. +We test the Hopfield layer +HopfieldLayer +, on four drug design datasets. +These datasets represent four main areas of modeling tasks in drug design, +concretely to develop accurate models for predicting +a) new anti-virals (HIV) by the Drug Therapeutics Program (DTP) AIDS Antiviral Screen, +b) new protein inhibitors, concretely human +$\beta$ +-secretase (BACE) inhibitors by +Subramanian et al. (2016) +, +c) metabolic effects as blood-brain barrier permeability (BBBP) +( +Martins et al., 2012 +) +and +d) side effects of a chemical compound from the Side Effect Resource (SIDER) +Kuhn et al. (2016) +. +We applied the Hopfield layer +HopfieldLayer +, +where the training data is used +as stored patterns +$\bm{Y}$ +, the input vector as state pattern +$\bm{R}$ +, and +the corresponding training label to project the output of +the Hopfield layer +$\bm{Y}\bm{W}_{V}$ +. +Our architecture with +HopfieldLayer +has reached state-of-the-art +for predicting side +effects on SIDER +$0.672\pm 0.019$ +as well as for predicting +$\beta$ +-secretase BACE +$0.902\pm 0.023$ +. +For details, see Table +A.5 +in the appendix. +Conclusion. +We have introduced a modern Hopfield network with continuous states +and the corresponding new update rule. +This network can store exponentially many patterns, retrieves patterns with +one update, and has exponentially small retrieval errors. +We analyzed the attention heads of BERT models. +The new modern Hopfield networks have been integrated +into deep learning architectures +as layers to allow the storage of and access to +raw input data, intermediate results, or learned prototypes. +These Hopfield layers enable new ways of deep learning, beyond +fully-connected, convolutional, or recurrent networks, +and provide pooling, memory, association, and attention mechanisms. +Hopfield layers that equip neural network layers with memories +improved state-of-the-art +in three out of four +considered multiple instance learning problems and +on immune repertoire classification, and +on two drug design dataset. +They yielded the best results among +different machine learning methods on +the UCI benchmark collections of small classification tasks. +Acknowledgments +The ELLIS Unit Linz, the LIT AI Lab and the +Institute for Machine Learning are supported by +the Land Oberösterreich, +LIT grants DeepToxGen (LIT-2017-3-YOU-003), +and AI-SNN (LIT-2018-6-YOU-214), the Medical Cognitive Computing Center (MC3), +Janssen Pharmaceutica, +UCB Biopharma, +Merck Group, +Audi.JKU Deep Learning Center, Audi Electronic Venture GmbH, +TGW, +Primal, S3AI (FFG-872172), +Silicon Austria Labs (SAL), +Anyline, +FILL, +EnliteAI, +Google Brain, +ZF Friedrichshafen AG, +Robert Bosch GmbH, +TÜV Austria, +DCS, +and the NVIDIA Corporation. +IARAI is supported by Here Technologies. +Appendix A +Appendix +This appendix consists of six sections (A.1–A.6). +Section A.1 introduces the new modern Hopfield network with continuous +states and its update rule. Furthermore, Section A.1 provides +a thorough and profound theoretical analysis of +this new Hopfield network. +Section A.2 provides the mathematical background for Section A.1. +Section A.3 reviews +binary +Modern Hopfield Networks of Krotov & +Hopfield. +Section A.4 shows that the Hopfield update rule is the attention +mechanism of the transformer. +Section A.5 gives details on the +experiments. +Section A.6 describes the PyTorch implementation of +layers based on the new Hopfield networks and how to use them. +Contents of the appendix +1 +Introduction +2 +Modern Hopfield Nets with Continuous States +3 +New Hopfield Layers for Deep Learning +4 +Experiments +A +Appendix +A.1 +Continuous State Modern Hopfield Networks (A New Concept) +A.1.1 +Introduction +A.1.2 +New Energy Function +A.1.3 +New Update Rule +A.1.4 +Global Convergence of the Update Rule +A.1.5 +Local Convergence of the Update Rule: Fixed Point Iteration +A.1.6 +Properties of Fixed Points Near Stored Pattern +A.1.7 +Learning Associations +A.1.8 +Infinite Many Patterns and Forgetting Patterns +A.1.9 +Number of Spurious States +A.2 +Properties of Softmax, Log-Sum-Exponential, Legendre Transform, Lambert W Function +A.3 +Modern Hopfield Networks: Binary States (Krotov and Hopfield) +A.3.1 +Modern Hopfield Networks: Introduction +A.3.2 +Energy and Update Rule for Binary Modern Hopfield Networks +A.4 +Hopfield Update Rule is Attention of The Transformer +A.5 +Experiments +A.5.1 +Experiment 1: Attention in Transformers described by Hopfield dynamics +A.5.2 +Experiment 2: Multiple Instance Learning Datasets. +A.5.3 +Experiment 3: Classification on Small UCI Benchmark Datasets +A.5.4 +Experiment 4: Drug Design Benchmark Datasets +A.6 +PyTorch Implementation of Hopfield Layers +A.6.1 +Introduction +A.6.2 +Functionality +A.6.3 +Usage +References +List of theorems +Theorem 1 +. +Theorem 2 +. +Definition 1 +(Pattern Stored and Retrieved) +. +Theorem 3 +. +Theorem 4 +. +Theorem 5 +(Exponentially Small Retrieval Error) +. +Lemma A1 +. +Theorem A1 +(Global Convergence (Zangwill): Energy) +. +Theorem A2 +(Global Convergence: Stationary Points) +. +Lemma A2 +. +Definition 2 +(Separation of Patterns) +. +Lemma A3 +. +Lemma A4 +. +Definition 3 +(Sphere +$\mathrm{S}_{i}$ +) +. +Lemma A5 +. +Lemma A6 +. +Lemma A7 +. +Lemma A8 +. +Lemma A9 +. +Definition 4 +(Sphere +$\mathrm{S}_{m}$ +) +. +Lemma A10 +. +Lemma A11 +. +Lemma A12 +. +Definition 5 +(Pattern Stored and Retrieved) +. +Theorem A3 +(Storage Capacity (M=2): Placed Patterns) +. +Theorem A4 +(Storage Capacity (M=5): Placed Patterns) +. +Lemma A13 +( +( +Brauchart et al., 2018 +) +) +. +Lemma A14 +. +Lemma A15 +. +Theorem A5 +(Storage Capacity (Main): Random Patterns) +. +Corollary A1 +. +Theorem A6 +(Storage Capacity (d computed): Random Patterns) +. +Corollary A2 +. +Lemma A16 +(Proposition 3.6 in +Brauchart et al. (2018) +) +. +Lemma A17 +. +Theorem A7 +(Storage Capacity (expected separation): Random Patterns) +. +Theorem A8 +(Pattern Retrieval with One Update) +. +Theorem A9 +(Exponentially Small Retrieval Error) +. +Definition A1 +(Softmax) +. +Definition A2 +(Log-Sum-Exp Function) +. +Lemma A18 +. +Lemma A19 +. +Lemma A20 +. +Lemma A21 +. +Lemma A22 +. +Lemma A23 +. +Lemma A24 +. +Lemma A25 +. +Lemma A26 +. +Definition A3 +(Convex Conjugate) +. +Definition A4 +(Legendre Transform) +. +Definition A5 +(Epi-Sum) +. +Lemma A27 +. +Lemma A28 +. +Lemma A29 +. +Definition A6 +(Lambert Function) +. +Lemma A30 +. +Lemma A31 +. +Lemma A32 +(Mean Value Theorem) +. +Theorem A10 +(Storage Capacity for Binary Modern Hopfield Nets (Demircigil et al. 2017)) +. +List of definitions +Theorem 1 +. +Theorem 2 +. +Definition 1 +(Pattern Stored and Retrieved) +. +Theorem 3 +. +Theorem 4 +. +Theorem 5 +(Exponentially Small Retrieval Error) +. +Lemma A1 +. +Theorem A1 +(Global Convergence (Zangwill): Energy) +. +Theorem A2 +(Global Convergence: Stationary Points) +. +Lemma A2 +. +Definition 2 +(Separation of Patterns) +. +Lemma A3 +. +Lemma A4 +. +Definition 3 +(Sphere +$\mathrm{S}_{i}$ +) +. +Lemma A5 +. +Lemma A6 +. +Lemma A7 +. +Lemma A8 +. +Lemma A9 +. +Definition 4 +(Sphere +$\mathrm{S}_{m}$ +) +. +Lemma A10 +. +Lemma A11 +. +Lemma A12 +. +Definition 5 +(Pattern Stored and Retrieved) +. +Theorem A3 +(Storage Capacity (M=2): Placed Patterns) +. +Theorem A4 +(Storage Capacity (M=5): Placed Patterns) +. +Lemma A13 +( +( +Brauchart et al., 2018 +) +) +. +Lemma A14 +. +Lemma A15 +. +Theorem A5 +(Storage Capacity (Main): Random Patterns) +. +Corollary A1 +. +Theorem A6 +(Storage Capacity (d computed): Random Patterns) +. +Corollary A2 +. +Lemma A16 +(Proposition 3.6 in +Brauchart et al. (2018) +) +. +Lemma A17 +. +Theorem A7 +(Storage Capacity (expected separation): Random Patterns) +. +Theorem A8 +(Pattern Retrieval with One Update) +. +Theorem A9 +(Exponentially Small Retrieval Error) +. +Definition A1 +(Softmax) +. +Definition A2 +(Log-Sum-Exp Function) +. +Lemma A18 +. +Lemma A19 +. +Lemma A20 +. +Lemma A21 +. +Lemma A22 +. +Lemma A23 +. +Lemma A24 +. +Lemma A25 +. +Lemma A26 +. +Definition A3 +(Convex Conjugate) +. +Definition A4 +(Legendre Transform) +. +Definition A5 +(Epi-Sum) +. +Lemma A27 +. +Lemma A28 +. +Lemma A29 +. +Definition A6 +(Lambert Function) +. +Lemma A30 +. +Lemma A31 +. +Lemma A32 +(Mean Value Theorem) +. +Theorem A10 +(Storage Capacity for Binary Modern Hopfield Nets (Demircigil et al. 2017)) +. +List of figures +1We generalize +the energy +of binary modern Hopfield networks to continuous states +while keeping fast convergence and +storage capacity properties. +We also propose a new update +rule that minimizes the energy. +The new update rule is the attention mechanism of the transformer. +Formulae are modified to express + + softmax + + as row vector. +“ + + = + + ”-sign means “keeps the properties”. +2Left: A standard deep network with layers +( + + ■ + + ) propagates +either a vector or a set of vectors from the input to the output. +Right: A deep network, where layers ( + + ■ + + ) +are equipped with associative memories +via Hopfield layers ( + + ■ + + ). +3The layer Hopfield allows the association of two sets + + R + + ( + + ■ + + ) and + + Y + + ( + + ■ + + ). +It can be integrated into deep networks that propagate sets of vectors. +The Hopfield memory +is filled +with a set from either the input or previous layers. +The output is a set of vectors + + Z + + ( + + ■ + + ). +4The layer HopfieldPooling enables +pooling or summarization of sets, +which are obtained from the input or from previous layers. +The input + + Y + + ( + + ■ + + ) +can be either a set or a sequence. +The query patterns of each layer are static and can be learned. +The output is a set of vectors + + Z + + ( + + ■ + + ), +where the number of vectors equals the number of query patterns. +The layer HopfieldPooling can realize multiple instance learning. +5The layer HopfieldLayer enables +multiple queries of the training set, +a reference set, prototype set, or a learned set (a learned matrix). +The queries for each layer are computed from the results of previous layers. +The input is a set of vectors + + R + + ( + + ■ + + ). The output is also a set of vectors + + Z + + ( + + ■ + + ), +where the number of output vectors equals the number of input vectors. +The layer HopfieldLayer can realize +SVM models, + + k + + -nearest neighbor, and LVQ. +A.1The three cases of fixed points +A.2From binary Hopfield network to transformer +A.3Analysis of operating modes of the heads of a pre-trained BERT model. +For each head in each layer, the distribution of the minimal number + + + k + + of patterns required to sum up the + + softmax + + values to + + 0.90 + + is displayed as a violin plot in a panel. + + + k + + indicates the size of a metastable state. +The bold number in the center of each panel gives the median + + + ¯ + k + + + of the distribution. +The heads in each layer are sorted according to + + + ¯ + k + + + . +Attention heads belong to the class they mainly operate in. +Class (IV) in blue: +Small metastable state or fixed point close to a single pattern, which +is abundant in the middle layers (6, 7, and 8). +Class (II) in orange: Large metastable state, which is +prominent in middle layers (3, 4, and 5). +Class (I) in red: Very large metastable state or global fixed point, +which is predominant in the first layer. +These heads can potentially be replaced by averaging operations. +Class (III) in green: Medium metastable state, +which is frequently observed in higher layers. +We hypothesize that these heads are used to collect information required to +perform the respective task. +These heads should be the main target to improve transformer and BERT models. +A.4Ridge plots of the distribution of counts +A.5Change of count density during training +A.6Attentions of a Gaussian averaging heads +A.7A flowchart of the Hopfield layer +List of tables +1Results for MIL datasets Tiger, Fox, Elephant, and +UCSB Breast Cancer in terms of AUC. +Results for all methods except the first are taken from either +a( + , + ) or b( + , + ), +depending on which reports the higher AUC. +2Results on 75 small datasets of the UCI benchmarks +given as difference to average rank. +A.1Results of immune repertoire classification across all datasets +A.2Hyperparameter selection for MIL datasets +A.3Hyperparameter selection for small UCI benchmark datasets +A.4Hyperparameter selection for drug design datasets +A.5Results on drug design benchmark datasets +A.1 +Continuous State Modern Hopfield Networks (A New Concept) +A.1.1 +Introduction +In Section +A.1 +our new modern Hopfield network is introduced. +In Subsection +A.1.2 +we present the new energy function. +Then in Subsection +A.1.3 +, +our new update rule is introduced. +In Subsection +A.1.4 +, we show that this update rule +ensures global convergence. +We show that all the limit points of any sequence generated by +the update rule are the +stationary points (local minima or saddle points) of the +energy function. +In Section +A.1.5 +, we consider the local convergence +of the update rule and see that patterns are retrieved with one update. +In Subsection +A.1.6 +, we consider the +properties of the fixed points that are associated with the +stored patterns. +In Subsection +A.1.6.1 +, +we show that exponentially many patterns can be stored. +The main result is given in Theorem +A5 +: +For random patterns on a sphere we can store and retrieve +exponentially (in the dimension of the Hopfield space) many patterns. +Subsection +A.1.6.2 +reports that +patterns are typically retrieved with one update step and that the +retrieval error is exponentially small. +In Subsection +A.1.7 +, we consider how +associations for the new Hopfield networks can be learned. +In Subsection +A.1.7.2 +, we analyze if the +association is learned directly by a bilinear form. +In Subsection +A.1.7.3 +, we analyze if +stored patterns and query patterns are mapped to the space of +the Hopfield network. Therefore, we treat the architecture of +the transformer and BERT. +In Subsection +A.1.8 +, we introduce +a temporal component into the new Hopfield network that +leads to a forgetting behavior. +The forgetting allows us to treat infinite memory capacity +in Subsection +A.1.8.1 +. +In Subsection +A.1.8.2 +, we consider the controlled +forgetting behavior. +In Section +A.2 +, we provide the mathematical +background that is needed for our proofs. +In particular we give lemmas on +properties of the softmax, +the log-sum-exponential, the Legendre transform, and the +Lambert +$W$ +function. +In Section +A.3 +, we review the new Hopfield network +as introduced by Krotov and Hopfield in 2016. +However in contrast to our new Hopfield network, +the Hopfield network of Krotov and Hopfield is binary, that is, a network with binary states. +In Subsection +A.3.1 +, we give an introduction to +neural networks equipped with associative memories and new Hopfield networks. +In Subsection +A.3.1.1 +, we discuss neural networks that are +enhanced by an additional external memory and by attention mechanisms. +In Subsection +A.3.1.2 +, we give an overview over +the modern Hopfield networks. +Finally, in Subsection +A.3.2 +, we present +the energy function and the update rule for the modern, binary +Hopfield networks. +A.1.2 +New Energy Function +We have patterns +$\bm{x}_{1},\ldots,\bm{x}_{N}$ +that are represented by the matrix +$\displaystyle\bm{X}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\ldots,\bm{x}_{N}\right)\ .$ +(11) +The largest norm of a pattern is +$\displaystyle M\ $ +$\displaystyle=\ \max_{i}{{\left\|\bm{x}_{i}\right\|}}\ .$ +(12) +The query or state of the Hopfield network is +$\bm{\xi}$ +. +The energy function +$\mathrm{E}$ +in the new type of Hopfield models of Krotov and Hopfield +is +$\mathrm{E}=-\sum_{i=1}^{N}F\left(\bm{\xi}^{T}\bm{x}_{i}\right)$ +for binary patterns +$\bm{x}_{i}$ +and binary state +$\bm{\xi}$ +with interaction function +$F(x)=x^{n}$ +, where +$n=2$ +gives classical +Hopfield model +( +Krotov & Hopfield, 2016 +) +. +The storage capacity is proportional to +$d^{n-1}$ +( +Krotov & Hopfield, 2016 +) +. +This model was generalized by Demircigil et al. +( +Demircigil et al., 2017 +) +to exponential interaction functions +$F(x)=\exp(x)$ +, which gives the energy +$\mathrm{E}=-\exp(\mathrm{lse}(1,\bm{X}^{T}\bm{\xi}))$ +. +This energy leads to an exponential +storage capacity of +$N=2^{d/2}$ +for binary patterns. +Furthermore, with a single update the fixed point +is recovered with high probability. See more details in Section +A.3 +. +In contrast to the these binary modern Hopfield networks, +we focus on modern Hopfield networks +with +continuous state +s that can store +continuous patterns +. +We generalize the energy of Demircigil et al. +( +Demircigil et al., 2017 +) +to continuous states while keeping the +$\mathrm{lse}$ +properties which +ensure high storage capacity and fast convergence. +Our new energy +$\mathrm{E}$ +for a continuous query or state +$\bm{\xi}$ +is defined as +$\displaystyle\mathrm{E}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}M^{2}$ +(13) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}M^{2}$ +(14) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\frac{1}{N}\ \sum_{i=1}^{N}\exp\left(-\ \frac{1}{2}\ \beta\ \left(M^{2}\ -\ {{\left\|\bm{x}_{i}\right\|}}^{2}\right)\right)\ \exp\left(-\ \frac{1}{2}\ \beta\ {{\left\|\bm{x}_{i}\ -\ \bm{\xi}\right\|}}^{2}\right)\right)\ .$ +(15) +First let us collect and prove some properties of +$\mathrm{E}$ +. +The next lemma gives bounds on the energy +$\mathrm{E}$ +. +Lemma A1 +. +The energy +$\mathrm{E}$ +is larger than zero: +$\displaystyle 0\ $ +$\displaystyle\leqslant\ \mathrm{E}\ .$ +(16) +For +$\bm{\xi}$ +in the simplex defined by the patterns, +the energy +$\mathrm{E}$ +is upper bounded by: +$\displaystyle\mathrm{E}\ $ +$\displaystyle\leqslant\ \beta^{-1}\ln N\ +\ \frac{1}{2}\ M^{2}\ ,$ +(17) +$\displaystyle\mathrm{E}\ $ +$\displaystyle\leqslant\ 2\ M^{2}\ .$ +(18) +Proof. +We start by deriving the lower bound of zero. +The pattern most similar to query or state +$\bm{\xi}$ +is +$\bm{x}_{\bm{\xi}}$ +: +$\displaystyle\bm{x}_{\bm{\xi}}\ $ +$\displaystyle=\ \bm{x}_{k}\ ,\quad k\ =\ \arg\max_{i}\bm{\xi}^{T}\bm{x}_{i}\ .$ +(19) +We obtain +$\displaystyle\mathrm{E}\ $ +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ M^{2}$ +(20) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\frac{1}{N}\ \sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ M^{2}$ +$\displaystyle\geq\ -\ \beta^{-1}\ln\left(\frac{1}{N}\ \sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ \bm{x}_{\bm{\xi}}^{T}\bm{x}_{\bm{\xi}}$ +$\displaystyle\geq\ -\ \beta^{-1}\ln\left(\exp(\beta\bm{x}_{\bm{\xi}}^{T}\bm{\xi})\right)\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ \bm{x}_{\bm{\xi}}^{T}\bm{x}_{\bm{\xi}}$ +$\displaystyle=\ -\ \bm{x}_{\bm{\xi}}^{T}\bm{\xi}\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ \bm{x}_{\bm{\xi}}^{T}\bm{x}_{\bm{\xi}}$ +$\displaystyle=\frac{1}{2}\ \left(\bm{\xi}\ -\ \bm{x}_{\bm{\xi}}\right)^{T}\left(\bm{\xi}\ -\ \bm{x}_{\bm{\xi}}\right)\ =\ \frac{1}{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{\bm{\xi}}\right\|}}^{2}\ \geq\ 0\ .$ +The energy is zero and, therefore, the bound attained, if all +$\bm{x}_{i}$ +are equal, +that is, +$\bm{x}_{i}=\bm{x}$ +for all +$i$ +and +$\bm{\xi}=\bm{x}$ +. +For deriving upper bounds on the energy +$\mathrm{E}$ +, +we require the the query +$\bm{\xi}$ +to be in the simplex defined by the patterns, that is, +$\displaystyle\bm{\xi}\ =\ \sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\ ,\quad\sum_{i=1}^{N}p_{i}\ =\ 1\ ,\quad\forall_{i}:\ 0\ \leqslant\ p_{i}\ .$ +(21) +The first upper bound is. +$\displaystyle\mathrm{E}\ =\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\ M^{2}$ +(22) +$\displaystyle\leqslant\ -\sum_{i=1}^{N}p_{i}\ (\bm{x}_{i}^{T}\bm{\xi})\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\ M^{2}$ +$\displaystyle=\ -\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\ M^{2}\ \leqslant\ \beta^{-1}\ln N\ +\ \frac{1}{2}\ M^{2}\ .$ +For the first inequality we applied +Lemma +A19 +to +$-\mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})$ +with +$\bm{z}=\bm{p}$ +giving +$\displaystyle-\ \mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})\ $ +$\displaystyle\leqslant\ -\ \sum_{i=1}^{N}p_{i}\ (\bm{x}_{i}^{T}\bm{\xi})\ +\ \beta^{-1}\sum_{i=1}^{N}p_{i}\ln p_{i}\ \leqslant\ -\ \sum_{i=1}^{N}p_{i}\ (\bm{x}_{i}^{T}\bm{\xi})\ ,$ +(23) +as the term involving the logarithm is non-positive. +Next we derive the second upper bound, for which +we need the mean +$\bm{m}_{\bm{x}}$ +of the patterns +$\displaystyle\bm{m}_{\bm{x}}\ $ +$\displaystyle=\ \frac{1}{N}\ \sum_{i=1}^{N}\bm{x}_{i}\ .$ +(24) +We obtain +$\displaystyle\mathrm{E}\ =\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\ M^{2}$ +(25) +$\displaystyle\leqslant\ -\sum_{i=1}^{N}\frac{1}{N}\ \bm{x}_{i}^{T}\bm{\xi}\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ M^{2}$ +$\displaystyle=\ -\ \bm{m}_{\bm{x}}^{T}\bm{\xi}\ +\ \frac{1}{2}\ \bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}\ M^{2}$ +$\displaystyle\leqslant\ {{\left\|\bm{m}_{\bm{x}}\right\|}}\ {{\left\|\bm{\xi}\right\|}}\ +\ \frac{1}{2}\ {{\left\|\bm{\xi}\right\|}}^{2}\ +\ \frac{1}{2}\ M^{2}$ +$\displaystyle\leqslant\ 2\ M^{2}\ ,$ +where for the first inequality we again applied +Lemma +A19 +with +$\bm{z}=(1/N,\ldots,1/N)$ +and +$\beta^{-1}\sum_{i}1/N\ln(1/N)=-\beta^{-1}\ln(N)$ +. +This inequality also follows from Jensen’s inequality. +The second inequality uses the Cauchy-Schwarz inequality. +The last inequality uses +$\displaystyle{{\left\|\bm{\xi}\right\|}}\ $ +$\displaystyle=\ {{\left\|\sum_{i}p_{i}\ \bm{x}_{i}\right\|}}\ \leqslant\ \sum_{i}p_{i}\ {{\left\|\bm{x}_{i}\right\|}}\ \leqslant\ \sum_{i}p_{i}M\ =\ M$ +(26) +and +$\displaystyle{{\left\|\bm{m}_{\bm{x}}\right\|}}\ $ +$\displaystyle=\ {{\left\|\sum_{i}(1/N)\ \bm{x}_{i}\right\|}}\ \leqslant\ \sum_{i}(1/N)\ {{\left\|\bm{x}_{i}\right\|}}\ \leqslant\ \sum_{i}(1/N)\ M\ =\ M\ .$ +(27) +∎ +A.1.3 +New Update Rule +We now introduce an update rule for minimizing the energy function +$\mathrm{E}$ +. +The new update rule is +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{X}\bm{p}\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ ,$ +(28) +where we used +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ .$ +(29) +The new state +$\bm{\xi}^{\mathrm{new}}$ +is in the simplex defined by the patterns, no matter +what the previous state +$\bm{\xi}$ +was. +For comparison, the synchronous update rule for the classical Hopfield network with threshold zero is +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \mathop{\mathrm{sgn}\,}(\bm{X}\bm{X}^{T}\bm{\xi})\ .$ +(30) +Therefore, instead of using the vector +$\bm{X}^{T}\bm{\xi}$ +as in the +classical Hopfield network, its softmax version +$\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})$ +is used. +In the next section (Section +A.1.4 +) we show +that the update rule Eq. ( +28 +) ensures global convergence. +We show that all the limit points of any sequence generated by +the update rule are the +stationary points (local minima or saddle points) of the +energy function +$\mathrm{E}$ +. +In Section +A.1.5 +we consider the local convergence +of the update rule Eq. ( +28 +) +and see that patterns are retrieved with one update. +A.1.4 +Global Convergence of the Update Rule +We are interested in the +global convergence +, +that is, convergence from each initial point, +of the iteration +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ f(\bm{\xi})\ =\ \bm{X}\bm{p}\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ ,$ +(31) +where we used +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ .$ +(32) +We defined the energy function +$\displaystyle\mathrm{E}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}M^{2}$ +(33) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}M^{2}\ .$ +(34) +We will show that +the update rule in Eq. ( +31 +) +is the Concave-Convex Procedure (CCCP) for minimizing the energy +$\mathrm{E}$ +. +The CCCP is proven to converge globally. +Theorem A1 +(Global Convergence (Zangwill): Energy) +. +The update rule Eq. ( +31 +) +converges globally: +For +$\bm{\xi}^{t+1}=f(\bm{\xi}^{t})$ +, +the energy +$\mathrm{E}(\bm{\xi}^{t})\to\mathrm{E}(\bm{\xi}^{*})$ +for +$t\to\infty$ +and a fixed point +$\bm{\xi}^{*}$ +. +Proof. +The Concave-Convex Procedure (CCCP) +( +Yuille & Rangarajan, 2002 +; +Yuille & Rangarajan, 2003 +) +minimizes a function that is the sum of a concave function and a convex function. +CCCP is equivalent to Legendre minimization +( +Rangarajan et al., 1996 +; +Rangarajan et al., 1999 +) +algorithms +( +Yuille & Rangarajan, 2003 +) +. +The Jacobian of the +softmax is positive semi-definite +according to Lemma +A22 +. +The Jacobian of the softmax is the +Hessian of the +$\mathrm{lse}$ +, therefore +$\mathrm{lse}$ +is a convex and +$-\mathrm{lse}$ +a concave function. +Therefore, the energy function +$\mathrm{E}(\bm{\xi})$ +is the sum of the convex function +$\mathrm{E}_{1}(\bm{\xi})=1/2\bm{\xi}^{T}\bm{\xi}+C_{1}$ +and the concave function +$\mathrm{E}_{2}(\bm{\xi})=-\mathrm{lse}$ +: +$\displaystyle\mathrm{E}(\bm{\xi})\ $ +$\displaystyle=\ \mathrm{E}_{1}(\bm{\xi})\ +\ \mathrm{E}_{2}(\bm{\xi})\ ,$ +(35) +$\displaystyle\mathrm{E}_{1}(\bm{\xi})\ $ +$\displaystyle=\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}M^{2}\ =\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ C_{1}\ ,$ +(36) +$\displaystyle\mathrm{E}_{2}(\bm{\xi})\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})\ ,$ +(37) +where +$C_{1}$ +does not depend on +$\bm{\xi}$ +. +The Concave-Convex Procedure (CCCP) +( +Yuille & Rangarajan, 2002 +; +Yuille & Rangarajan, 2003 +) +applied to +$\mathrm{E}$ +is +$\displaystyle\nabla_{\xi}\mathrm{E}_{1}\left(\bm{\xi}^{t+1}\right)\ $ +$\displaystyle=\ -\ \nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ ,$ +(38) +which is +$\displaystyle\nabla_{\xi}\left(\frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ C_{1}\right)\left(\bm{\xi}^{t+1}\right)\ $ +$\displaystyle=\ \nabla_{\xi}\mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi}^{t})\ .$ +(39) +The resulting update rule is +$\displaystyle\bm{\xi}^{t+1}\ $ +$\displaystyle=\ \bm{X}\bm{p}^{t}\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi}^{t})$ +(40) +using +$\displaystyle\bm{p}^{t}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi}^{t})\ .$ +(41) +This is the update rule in Eq. ( +31 +). +Theorem 2 in +Yuille & Rangarajan (2002) +and Theorem 2 in +Yuille & Rangarajan (2003) +state that +the update rule Eq. ( +31 +) +is guaranteed to monotonically decrease the energy +$\mathrm{E}$ +as a function of time. +See also Theorem 2 in +Sriperumbudur & Lanckriet (2009) +. +∎ +Although the objective converges in all cases, +it does not necessarily converge to a local minimum +( +Lipp & Boyd, 2016 +) +. +However the convergence proof of CCCP in +Yuille & Rangarajan (2002) +; +Yuille & Rangarajan (2003) +was not as rigorous as required. +In +Sriperumbudur & Lanckriet (2009) +a rigorous analysis of the convergence of CCCP +is performed using Zangwill’s global convergence theory +of iterative algorithms. +In +Sriperumbudur & Lanckriet (2009) +the minimization problem +$\displaystyle\min_{\bm{\xi}}$ +$\displaystyle{\mbox{\ ~}}\mathrm{E}_{1}\ +\ \mathrm{E}_{2}$ +(42) +s.t. +$\displaystyle{\mbox{\ ~}}\bm{c}(\bm{\xi})\leqslant\bm{0}\ ,\quad\bm{d}(\bm{\xi})\ =\ \bm{0}$ +is considered with +$\mathrm{E}_{1}$ +convex, +$-\mathrm{E}_{2}$ +convex, +$\bm{c}$ +component-wise convex function, and +$\bm{d}$ +an affine function. +The CCCP algorithm solves this minimization problem by linearization of the +concave part and is defined in +Sriperumbudur & Lanckriet (2009) +as +$\displaystyle\bm{\xi}^{t+1}\ \in\ \arg\min_{\bm{\xi}}$ +$\displaystyle{\mbox{\ ~}}\mathrm{E}_{1}\left(\bm{\xi}\right)\ +\ \bm{\xi}^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)$ +(43) +s.t. +$\displaystyle{\mbox{\ ~}}\bm{c}(\bm{\xi})\leqslant\bm{0}\ ,\quad\bm{d}(\bm{\xi})\ =\ \bm{0}\ .$ +We define the upper bound +$\mathrm{E}_{\mathrm{C}}$ +on the energy: +$\displaystyle\mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)\ $ +$\displaystyle:=\ \mathrm{E}_{1}\left(\bm{\xi}\right)\ +\ \mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ +\ \left(\bm{\xi}\ -\ \bm{\xi}^{t}\right)^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ .$ +(44) +$\mathrm{E}_{\mathrm{C}}$ +is equal to the energy +$\mathrm{E}\left(\bm{\xi}^{t}\right)$ +for +$\bm{\xi}=\bm{\xi}^{t}$ +: +$\displaystyle\mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t},\bm{\xi}^{t}\right)\ $ +$\displaystyle=\ \mathrm{E}_{1}\left(\bm{\xi}^{t}\right)\ +\ \mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ =\ \mathrm{E}\left(\bm{\xi}^{t}\right)\ .$ +(45) +Since +$-\mathrm{E}_{2}$ +is convex, the first order characterization of convexity +holds (Eq. 3.2 in +Boyd & Vandenberghe (2009) +): +$\displaystyle-\ \mathrm{E}_{2}\left(\bm{\xi}\right)\ $ +$\displaystyle\geq\ -\ \mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ -\ \left(\bm{\xi}\ -\ \bm{\xi}^{t}\right)^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ ,$ +(46) +that is +$\displaystyle\mathrm{E}_{2}\left(\bm{\xi}\right)\ $ +$\displaystyle\leqslant\ \mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ +\ \left(\bm{\xi}\ -\ \bm{\xi}^{t}\right)^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ .$ +(47) +Therefore, for +$\bm{\xi}\not=\bm{\xi}^{t}$ +the function +$\mathrm{E}_{\mathrm{C}}$ +is an upper bound on the energy: +$\displaystyle\mathrm{E}\left(\bm{\xi}\right)\ $ +$\displaystyle\leqslant\ \mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)\ =\ \mathrm{E}_{1}\left(\bm{\xi}\right)\ +\ \mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ +\ \left(\bm{\xi}\ -\ \bm{\xi}^{t}\right)^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)$ +(48) +$\displaystyle=\ \mathrm{E}_{1}\left(\bm{\xi}\right)\ +\ \bm{\xi}^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ +\ C_{2}\ ,$ +where +$C_{2}$ +does not depend on +$\bm{\xi}$ +. +Since we do not have constraints, +$\bm{\xi}^{t+1}$ +is defined as +$\displaystyle\bm{\xi}^{t+1}\ \in\ \arg\min_{\bm{\xi}}$ +$\displaystyle{\mbox{\ ~}}\mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)\ ,$ +(49) +hence +$\mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t+1},\bm{\xi}^{t}\right)\leqslant\ \mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t},\bm{\xi}^{t}\right)$ +. +Combining the inequalities gives: +$\displaystyle\mathrm{E}\left(\bm{\xi}^{t+1}\right)\ $ +$\displaystyle\leqslant\ \mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t+1},\bm{\xi}^{t}\right)\ \leqslant\ \mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t},\bm{\xi}^{t}\right)\ =\ \mathrm{E}\left(\bm{\xi}^{t}\right)\ .$ +(50) +Since we do not have constraints, +$\bm{\xi}^{t+1}$ +is the minimum of +$\displaystyle\mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)\ $ +$\displaystyle=\ \mathrm{E}_{1}\left(\bm{\xi}\right)\ +\ \bm{\xi}^{T}\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ +\ C_{2}$ +(51) +as a function of +$\bm{\xi}$ +. +For a minimum not at the border, the derivative has to be the zero vector +$\displaystyle\frac{\partial\mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)}{\partial\bm{\xi}}\ $ +$\displaystyle=\ \bm{\xi}\ +\ \nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ =\ \bm{\xi}\ -\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi}^{t})\ =\ \bm{0}$ +(52) +and the Hessian must be positive semi-definite +$\displaystyle\frac{\partial^{2}\mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)}{\partial\bm{\xi}^{2}}\ $ +$\displaystyle=\ \bm{I}\ .$ +(53) +The Hessian is strict positive definite everywhere, therefore the optimization +problem is strict convex (if the domain is convex) and there exist only one minimum, +which is a global minimum. +$\mathrm{E}_{\mathrm{C}}$ +can even be written as a quadratic form: +$\displaystyle\mathrm{E}_{\mathrm{C}}\left(\bm{\xi},\bm{\xi}^{t}\right)\ $ +$\displaystyle=\ \frac{1}{2}\ \left(\bm{\xi}\ +\ \nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\right)^{T}\left(\bm{\xi}\ +\ \nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\right)\ +\ C_{3}\ ,$ +(54) +where +$C_{3}$ +does not depend on +$\bm{\xi}$ +. +Therefore, the minimum is +$\displaystyle\bm{\xi}^{t+1}\ $ +$\displaystyle=\ -\ \nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi}^{t})$ +(55) +if it is in the domain as we assume. +Using +$M=\max_{i}{{\left\|\bm{x}_{i}\right\|}}$ +, +$\bm{\xi}^{t+1}$ +is in the sphere +$\mathrm{S}=\{\bm{x}\mid{{\left\|\bm{x}\right\|}}\leqslant M\}$ +which is a convex and compact set. +Hence, if +$\bm{\xi}^{0}\in\mathrm{S}$ +, then the iteration is a mapping from +$\mathrm{S}$ +to +$\mathrm{S}$ +. +Therefore, the point-set-map defined by the iteration Eq. ( +55 +) +is uniformly compact on +$\mathrm{S}$ +according to Remark 7 in +Sriperumbudur & Lanckriet (2009) +. +Theorem 2 and Theorem 4 in +( +Sriperumbudur & Lanckriet, 2009 +) +states that +all the limit points of the iteration Eq. ( +55 +) +are stationary points. +These theorems follow from +Zangwill’s global convergence theorem: +Convergence Theorem A, page 91 in +Zangwill (1969) +and page 3 +in +Wu (1983) +. +The global convergence theorem only assures that for the sequence +$\bm{\xi}^{t+1}=f(\bm{\xi}^{t})$ +and +a function +$\Phi$ +we have +$\Phi(\bm{\xi}^{t})\to\Phi(\bm{\xi}^{*})$ +for +$t\to\infty$ +but not +$\bm{\xi}^{t}\to\bm{\xi}^{*}$ +. +However, if +$f$ +is strictly monotone with respect to +$\Phi$ +, then +we can strengthen Zangwill’s global convergence theorem +( +Meyer, 1976 +) +. +We set +$\Phi=\mathrm{E}$ +and show +$\mathrm{E}(\bm{\xi}^{t+1})<\mathrm{E}(\bm{\xi}^{t})$ +if +$\bm{\xi}^{t}$ +is +not a stationary point of +$\mathrm{E}$ +, that is, +$f$ +is strictly monotone with respect +to +$\mathrm{E}$ +. +The following theorem is similar to the convergence results for the +expectation maximization (EM) algorithm in +Wu (1983) +which +are given in theorems 1 to 6 in +Wu (1983) +. +The following theorem is also very similar to Theorem 8 in +Sriperumbudur & Lanckriet (2009) +. +Theorem A2 +(Global Convergence: Stationary Points) +. +For the iteration Eq. ( +55 +) +we have +$\mathrm{E}\left(\bm{\xi}^{t}\right)\to\mathrm{E}\left(\bm{\xi}^{*}\right)=\mathrm{E}^{*}$ +as +$t\to\infty$ +, for some stationary point +$\bm{\xi}^{*}$ +. +Furthermore +${{\left\|\bm{\xi}^{t+1}-\bm{\xi}^{t}\right\|}}\to 0$ +and +either +$\{\bm{\xi}^{t}\}_{t=0}^{\infty}$ +converges +or, in the other case, the set of limit points of +$\{\bm{\xi}^{t}\}_{t=0}^{\infty}$ +is a connected and compact subset of +$\mathcal{L}\left(\mathrm{E}^{*}\right)$ +, where +$\mathcal{L}\left(a\right)=\{\bm{\xi}\in\mathcal{L}\mid\mathrm{E}\left(\bm{\xi}\right)=a\}$ +and +$\mathcal{L}$ +is the set of stationary points of the iteration Eq. ( +55 +). +If +$\mathcal{L}\left(\mathrm{E}^{*}\right)$ +is finite, then any sequence +$\{\bm{\xi}^{t}\}_{t=0}^{\infty}$ +generated by the iteration Eq. ( +55 +) +converges to some +$\bm{\xi}^{*}\in\mathcal{L}\left(\mathrm{E}^{*}\right)$ +. +Proof. +We have +$\mathrm{E}\left(\bm{\xi}^{t}\right)=\mathrm{E}_{1}\left(\bm{\xi}^{t}\right)+\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)$ +. +The gradient +$\nabla_{\xi}\mathrm{E}_{2}\left(\bm{\xi}^{t}\right)=-\nabla_{\xi}\mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})$ +is +continuous. Therefore, Eq. ( +51 +) has minimum in the sphere +$\mathrm{S}$ +, which is +a convex and compact set. +If +$\bm{\xi}^{t+1}\not=\bm{\xi}^{t}$ +, +then +$\bm{\xi}^{t}$ +was not the minimum of +Eq. ( +48 +) as the derivative at +$\bm{\xi}^{t}$ +is not equal to zero. +Eq. ( +53 +) shows that the optimization problem Eq. ( +48 +) +is strict convex, hence it has only one minimum, which is a global minimum. +Eq. ( +54 +) shows that the optimization problem Eq. ( +48 +) +is even a quadratic form. +Therefore, we have +$\displaystyle\mathrm{E}\left(\bm{\xi}^{t+1}\right)\ $ +$\displaystyle\leqslant\ \mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t+1},\bm{\xi}^{t}\right)\ <\ \mathrm{E}_{\mathrm{C}}\left(\bm{\xi}^{t},\bm{\xi}^{t}\right)\ =\ \mathrm{E}\left(\bm{\xi}^{t}\right)\ .$ +(56) +Therefore, the point-set-map defined by the iteration Eq. ( +55 +) +(for definitions see +( +Sriperumbudur & Lanckriet, 2009 +) +) +is strictly monotonic with respect to +$\mathrm{E}$ +. +Therefore, we can apply Theorem 3 in +Sriperumbudur & Lanckriet (2009) +or +Theorem 3.1 and Corollary 3.2 in +Meyer (1976) +, +which give the statements of the theorem. +∎ +We showed global convergence of the iteration Eq. ( +31 +). +We have shown that all the limit points of any sequence generated by +the iteration Eq. ( +31 +) are the +stationary points (critical points; local minima or saddle points) of the +energy function +$\mathrm{E}$ +. +Local maxima as stationary points are only possible +if the iterations exactly hits a local maximum. +However, convergence to a local maximum without being there +is not possible because +Eq. ( +56 +) ensures a strict decrease of the +energy +$\mathrm{E}$ +. Therefore, almost sure local maxima are not +obtained as stationary points. +Either the iteration converges or, +in the second case, the set of limit points +is a connected and compact set. +But what happens if +$\bm{\xi}^{0}$ +is in an +$\epsilon$ +-neighborhood +around a local minimum +$\bm{\xi}^{*}$ +? +Will the iteration Eq. ( +31 +) converge to +$\bm{\xi}^{*}$ +? +What is the rate of convergence? +These questions are about +local convergence +which will be treated in detail in next section. +A.1.5 +Local Convergence of the Update Rule: Fixed Point Iteration +For the proof of local convergence to a fixed point +we will apply Banach fixed point theorem. +For the rate of convergence we will rely on properties of a contraction mapping. +A.1.5.1 +General Bound on the Jacobian of the Iteration. +We consider the iteration +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ f(\bm{\xi})\ =\ \bm{X}\bm{p}\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})$ +(57) +using +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ .$ +(58) +The Jacobian +$\mathrm{J}$ +is symmetric and has the following form: +$\displaystyle\mathrm{J}\ $ +$\displaystyle=\ \frac{\partial f(\bm{\xi})}{\partial\bm{\xi}}\ =\ \beta\ \bm{X}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\bm{X}^{T}\ =\ \bm{X}\mathrm{J}_{s}\bm{X}^{T}\ ,$ +(59) +where +$\mathrm{J}_{s}$ +is Jacobian of the softmax. +To analyze the local convergence of the iteration, +we distinguish between the following three cases (see also Fig. +A.1 +). +Here we only provide an informal discussion to give the reader some +intuition. +A rigorous formulation of the results can be found in the corresponding subsections. +1. +If the patterns +$\bm{x}_{i}$ +are not well separated, +the iteration goes to a fixed point close to +the arithmetic mean of the vectors. +In this case +$\bm{p}$ +is close to +$p_{i}=1/N$ +. +2. +If the patterns +$\bm{x}_{i}$ +are well separated, +then the iteration goes to the pattern to which the initial +$\bm{\xi}$ +is similar. +If the initial +$\bm{\xi}$ +is similar to a vector +$\bm{x}_{i}$ +then it will +converge to a vector close to +$\bm{x}_{i}$ +and +$\bm{p}$ +will converge to a vector +close to +$\bm{e}_{i}$ +. +3. +If some vectors are similar to each other but well separated from all +other vectors, then a so called metastable state between the similar +vectors exists. +Iterations that start near the metastable state converge +to this metastable state. +Figure A.1: +The three cases of fixed points. +a) Stored patterns (fixed point is single pattern) +: +patterns are stored if they are well separated. +Each pattern +$\bm{x}_{i}$ +has a single fixed point +$\bm{x}_{i}^{*}$ +close to it. +In the sphere +$\mathrm{S}_{i}$ +, pattern +$\bm{x}_{i}$ +is the only pattern and +$\bm{x}_{i}^{*}$ +the only fixed point. +b) Metastable state (fixed point is average of similar patterns) +: +$\bm{x}_{i}$ +and +$\bm{x}_{j}$ +are similar to each other and not +well separated. The fixed point +$\bm{m}_{\bm{x}}^{*}$ +is a metastable state +that is close to the mean +$\bm{m}_{\bm{x}}$ +of the similar patterns. +c) Global fixed point (fixed point is average of all patterns) +: +no pattern is well separated from the others. +A single global fixed point +$\bm{m}_{\bm{x}}^{*}$ +exists that is close to +the arithmetic mean +$\bm{m}_{\bm{x}}$ +of all patterns. +We begin with a bound on the Jacobian of the iteration, thereby +heavily relying on +the Jacobian of the softmax from Lemma +A24 +. +Lemma A2 +. +For +$N$ +patterns +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +, +$\bm{p}=\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})$ +, +$M=\max_{i}{{\left\|\bm{x}_{i}\right\|}}$ +, and +$m=\max_{i}p_{i}(1-p_{i})$ +, the spectral norm of the Jacobian +$\mathrm{J}$ +of the fixed point iteration +is bounded: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ {{\left\|\bm{X}\right\|}}_{2}^{2}\ m\ \leqslant\ 2\ \beta\ N\ M^{2}\ m\ .$ +(60) +If +$p_{\max}=\max_{i}p_{i}\geq 1-\epsilon$ +, then for the spectral norm of +the Jacobian holds +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ \epsilon\ -\ 2\ \epsilon^{2}\ \beta\ N\ M^{2}\ <\ 2\ \beta\ N\ M^{2}\ \epsilon\ .$ +(61) +Proof. +With +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ ,$ +(62) +the symmetric Jacobian +$\mathrm{J}$ +is +$\displaystyle\mathrm{J}\ $ +$\displaystyle=\ \frac{\partial f(\bm{\xi})}{\partial\bm{\xi}}\ =\ \beta\ \bm{X}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\bm{X}^{T}\ =\ \bm{X}\mathrm{J}_{s}\bm{X}^{T}\ ,$ +(63) +where +$\mathrm{J}_{s}$ +is Jacobian of the softmax. +With +$m=\max_{i}p_{i}(1-p_{i})$ +, +Eq. ( +476 +) from +Lemma +A24 +is +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{2}\ $ +$\displaystyle=\ \beta\ {{\left\|\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right\|}}_{2}\ \leqslant\ 2\ m\ \beta\ .$ +(64) +Using this bound on +${{\left\|\mathrm{J}_{s}\right\|}}_{2}$ +, we obtain +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \beta\ {{\left\|\bm{X}^{T}\right\|}}_{2}\ {{\left\|\mathrm{J}_{s}\right\|}}_{2}\ {{\left\|\bm{X}\right\|}}_{2}\ \leqslant\ 2\ m\ \beta\ {{\left\|\bm{X}\right\|}}_{2}^{2}\ .$ +(65) +The spectral norm +${{\left\|.\right\|}}_{2}$ +is bounded by the Frobenius norm +${{\left\|.\right\|}}_{F}$ +which can be expressed by the norm squared of its +column vectors: +$\displaystyle{{\left\|\bm{X}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ {{\left\|\bm{X}\right\|}}_{F}\ =\ \sqrt{\sum_{i}{{\left\|\bm{x}_{i}\right\|}}^{2}}\ .$ +(66) +Therefore, we obtain the first statement of the lemma: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ {{\left\|\bm{X}\right\|}}_{2}^{2}\ m\ \leqslant\ 2\ \beta\ N\ M^{2}\ m\ .$ +(67) +With +$p_{\max}=\max_{i}p_{i}\geq 1-\epsilon$ +Eq. ( +480 +) +in Lemma +A24 +is +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ \epsilon\ -\ 2\ \epsilon^{2}\ \beta\ <\ 2\ \beta\ \epsilon\ .$ +(68) +Using this inequality, +we obtain the second statement of the lemma: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ \epsilon\ -\ 2\ \epsilon^{2}\ \beta\ N\ M^{2}\ <\ 2\ \beta\ N\ M^{2}\ \epsilon\ .$ +(69) +∎ +We now define the “separation” +$\Delta_{i}$ +of a pattern +$\bm{x}_{i}$ +from +data +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +here, since it has an important role +for the convergence properties of the iteration. +Definition 2 +(Separation of Patterns) +. +We define +$\Delta_{i}$ +, i.e. the separation of pattern +$\bm{x}_{i}$ +from data +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +as: +$\displaystyle\Delta_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \bm{x}_{i}^{T}\bm{x}_{i}\ -\ \max_{j,j\not=i}\bm{x}_{i}^{T}\bm{x}_{j}\ .$ +(70) +The pattern is separated from the other data if +$0<\Delta_{i}$ +. +Using the parallelogram identity, +$\Delta_{i}$ +can also be expressed as +$\displaystyle\Delta_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\frac{1}{2}\ \left({{\left\|\bm{x}_{i}\right\|}}^{2}\ -\ {{\left\|\bm{x}_{j}\right\|}}^{2}\ +\ {{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}^{2}\right)$ +(71) +$\displaystyle=\ \frac{1}{2}{{\left\|\bm{x}_{i}\right\|}}^{2}\ -\ \frac{1}{2}\ \max_{j,j\not=i}\left({{\left\|\bm{x}_{j}\right\|}}^{2}\ -\ {{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}^{2}\right)\ .$ +For +${{\left\|\bm{x}_{i}\right\|}}={{\left\|\bm{x}_{j}\right\|}}$ +we have +$\Delta_{i}=1/2\min_{j,j\not=i}{{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}^{2}$ +. +Analog we say for a query +$\bm{\xi}$ +and data +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +, +that +$\bm{x}_{i}$ +is least separated from +$\bm{\xi}$ +while +being separated from other +$\bm{x}_{j}$ +with +$j\not=i$ +if +$\displaystyle i\ $ +$\displaystyle=\ \arg\max_{k}\min_{j,j\not=k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \bm{\xi}^{T}\bm{x}_{j}\right)\ =\ \arg\max_{k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \max_{j,j\not=k}\bm{\xi}^{T}\bm{x}_{j}\right)$ +(72) +$\displaystyle 0\ $ +$\displaystyle\leqslant\ c\ =\ \max_{k}\min_{j,j\not=k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \bm{\xi}^{T}\bm{x}_{j}\right)\ =\ \max_{k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \max_{j,j\not=k}\bm{\xi}^{T}\bm{x}_{j}\right)\ .$ +(73) +Next we consider the case where the iteration has only +one stable fixed point. +A.1.5.2 +One Stable State: Fixed Point Near the Mean of the Patterns. +We start with the case where +no pattern is well separated from the others. +• +Global fixed point near the global mean: Analysis using the data center. +We revisit the bound on the Jacobian of the iteration by +utilizing properties of pattern distributions. +We begin with a probabilistic interpretation where +we consider +$p_{i}$ +as the probability of selecting +the vector +$\bm{x}_{i}$ +. +Consequently, we define +expectations as +$\mathbf{\mathrm{E}}_{\bm{p}}[f(\bm{x})]=\sum_{i=1}^{N}p_{i}f(\bm{x}_{i})$ +. +In this setting the matrix +$\displaystyle\bm{X}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\bm{X}^{T}$ +(74) +is the covariance matrix of data +$\bm{X}$ +when its +vectors are selected according +to the probability +$\bm{p}$ +: +$\displaystyle\bm{X}\left(\mathrm{diag}(\bm{p})\ -\ \bm{p}\bm{p}^{T}\right)\bm{X}^{T}\ =\ \bm{X}\mathrm{diag}(\bm{p})\bm{X}^{T}\ -\ \bm{X}\bm{p}\bm{p}^{T}\bm{X}^{T}$ +(75) +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\right)\left(\sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}$ +(76) +$\displaystyle=\ \mathbf{\mathrm{E}}_{\bm{p}}[\bm{x}\ \bm{x}^{T}]\ -\ \mathbf{\mathrm{E}}_{\bm{p}}[\bm{x}]\ \mathbf{\mathrm{E}}_{\bm{p}}[\bm{x}]^{T}\ =\ \mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\ ,$ +(77) +therefore we have +$\displaystyle\mathrm{J}\ $ +$\displaystyle=\ \beta\ \mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\ .$ +(78) +The largest eigenvalue of the covariance matrix +(equal to the largest singular value) +is the variance in the direction of the eigenvector +associated with the largest eigenvalue. +We define: +$\displaystyle\bm{m}_{\bm{x}}\ $ +$\displaystyle=\ \frac{1}{N}\ \sum_{i=1}^{N}\ \bm{x}_{i}\ ,$ +(79) +$\displaystyle m_{\max}\ $ +$\displaystyle=\ \max_{1\leqslant i\leqslant N}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}_{2}\ .$ +(80) +$\bm{m}_{\bm{x}}$ +is the arithmetic mean (the center) of the patterns. +$m_{\max}$ +is the maximal distance of the patterns to the center +$\bm{m}_{\bm{x}}$ +. +The variance of the patterns is +$\displaystyle\mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\ $ +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}$ +(81) +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\ \left(\bm{x}_{i}\ -\ \sum_{i=1}^{N}p_{i}\bm{x}_{i}\right)\ \left(\bm{x}_{i}\ -\ \sum_{i=1}^{N}p_{i}\bm{x}_{i}\right)^{T}\ .$ +The maximal distance to the center +$m_{\max}$ +allows the derivation of a +bound on the norm of the Jacobian. +Next lemma gives a condition for a global fixed point. +Lemma A3 +. +The following bound on the norm +${{\left\|\mathrm{J}\right\|}}_{2}$ +of the +Jacobian of the fixed point iteration +$f$ +holds independent of +$\bm{p}$ +or +the query +$\bm{\xi}$ +. +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \beta\ m_{\max}^{2}\ .$ +(82) +For +$\beta\ m_{\max}^{2}<1$ +there exists +a unique fixed point (global fixed point) of iteration +$f$ +in each compact set. +Proof. +In order to bound the variance +we compute the vector +$\bm{a}$ +that minimizes +$\displaystyle f(\bm{a})\ $ +$\displaystyle=\ \sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}\ -\ \bm{a}\right\|}}^{2}\ =\ \sum_{i=1}^{N}p_{i}(\bm{x}_{i}\ -\ \bm{a})^{T}(\bm{x}_{i}\ -\ \bm{a})\ .$ +(83) +The solution to +$\displaystyle\frac{\partial f(\bm{a})}{\partial\bm{a}}\ $ +$\displaystyle=\ 2\ \sum_{i=1}^{N}p_{i}(\bm{a}\ -\ \bm{x}_{i})\ =\ 0$ +(84) +is +$\displaystyle\bm{a}\ $ +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\bm{x}_{i}\ .$ +(85) +The Hessian of +$f$ +is positive definite since +$\displaystyle\frac{\partial^{2}f(\bm{a})}{\partial\bm{a}^{2}}\ $ +$\displaystyle=\ 2\ \sum_{i=1}^{N}p_{i}\ \bm{I}\ =\ 2\ \bm{I}$ +(86) +and +$f$ +is a convex function. +Hence, the mean +$\displaystyle\bar{\bm{x}}\ $ +$\displaystyle:=\ \sum_{i=1}^{N}p_{i}\ \bm{x}_{i}$ +(87) +minimizes +$\sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}-\bm{a}\right\|}}^{2}$ +. +Therefore, we have +$\displaystyle\sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}\ -\ \bar{\bm{x}}\right\|}}^{2}\ $ +$\displaystyle\leqslant\ \sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}^{2}\ \leqslant\ m_{\max}^{2}\ .$ +(88) +Let us quickly recall that the spectral norm of an outer product of two vectors +is the product of the Euclidean norms of the vectors: +$\displaystyle{{\left\|\bm{a}\bm{b}^{T}\right\|}}_{2}\ $ +$\displaystyle=\ \sqrt{\lambda_{\max}(\bm{b}\bm{a}^{T}\bm{a}\bm{b}^{T})}\ =\ {{\left\|\bm{a}\right\|}}\ \sqrt{\lambda_{\max}(\bm{b}\bm{b}^{T})}\ =\ {{\left\|\bm{a}\right\|}}\ {{\left\|\bm{b}\right\|}}\ ,$ +(89) +since +$\bm{b}\bm{b}^{T}$ +has eigenvector +$\bm{b}/{{\left\|\bm{b}\right\|}}$ +with +eigenvalue +${{\left\|\bm{b}\right\|}}^{2}$ +and otherwise zero eigenvalues. +We now bound the variance of the patterns: +$\displaystyle{{\left\|\mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \sum_{i=1}^{N}p_{i}{{\left\|\left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)\ \left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)^{T}\right\|}}_{2}$ +(90) +$\displaystyle=\ \sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}\ -\ \bar{\bm{x}}\right\|}}^{2}\ \leqslant\ \sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}^{2}\ \leqslant\ \ m_{\max}^{2}\ .$ +The bound of the lemma on +${{\left\|\mathrm{J}\right\|}}_{2}$ +follows from Eq. ( +78 +). +For +${{\left\|\mathrm{J}\right\|}}_{2}\leqslant\beta\ m_{\max}^{2}<1$ +we have a +contraction mapping on each compact set. Banach fixed point theorem +says there is a unique fixed point in the compact set. +∎ +Now let us further investigate the tightness of the bound on +${{\left\|\mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\right\|}}_{2}$ +via +${{\left\|\bm{x}_{i}-\bar{\bm{x}}\right\|}}^{2}$ +: we +consider the trace, which +is the sum +$\sum_{k=1}^{d}e_{k}$ +of the w.l.o.g. ordered nonnegative eigenvalues +$e_{k}$ +of +$\mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]$ +The spectral norm is equal to the +largest eigenvalue +$e_{1}$ +, which is equal to the largest singular +value, as we have positive semidefinite matrices. +We obtain: +$\displaystyle{{\left\|\mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\right\|}}_{2}\ $ +$\displaystyle=\ \mathbf{\mathrm{Tr}}\left(\sum_{i=1}^{N}p_{i}\left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)\ \left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)^{T}\right)\ -\ \sum_{k=2}^{d}e_{k}$ +(91) +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\mathbf{\mathrm{Tr}}\left(\left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)\ \left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)^{T}\right)\ -\ \sum_{k=2}^{d}e_{k}$ +$\displaystyle=\ \sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}\ -\ \bar{\bm{x}}\right\|}}^{2}\ -\ \sum_{k=2}^{d}e_{k}\ .$ +Therefore, the tightness of the bound depends on eigenvalues +which are not the largest. Hence variations which are not +along the largest variation weaken the bound. +Next we investigate the location of +fixed points which existence is ensured by the global convergence +stated in Theorem +A2 +. +For +$N$ +patterns +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +, +we consider the iteration +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ f(\bm{\xi})\ =\ \bm{X}\bm{p}\ =\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})$ +(92) +using +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ .$ +(93) +$\bm{\xi}^{\mathrm{new}}$ +is in the simplex of the patterns, that is, +$\bm{\xi}^{\mathrm{new}}=\sum_{i}p_{i}\bm{x}_{i}$ +with +$\sum_{i}p_{i}=1$ +and +$0\leqslant p_{i}$ +. +Hence, after one update +$\bm{\xi}$ +is in the simplex of the pattern and stays there. +If the center +$\bm{m}_{\bm{x}}$ +is the zero vector +$\bm{m}_{\bm{x}}=\bm{0}$ +, that is, the data is centered, +then the mean is a fixed point of the iteration. +For +$\bm{\xi}=\bm{m}_{\bm{x}}=\bm{0}$ +we have +$\displaystyle\bm{p}\ $ +$\displaystyle=\ 1/N\ \bm{1}$ +(94) +and +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ 1/N\ \bm{X}\ \bm{1}\ =\ \bm{m}_{\bm{x}}\ =\ \bm{\xi}\ .$ +(95) +In particular normalization methods like batch normalization would +promote the mean as a fixed point. +We consider the differences of dot products +for +$\bm{x}_{i}$ +: +$\bm{x}_{i}^{T}\bm{x}_{i}-\bm{x}_{i}^{T}\bm{x}_{j}=\bm{x}_{i}^{T}(\bm{x}_{i}-\bm{x}_{j})$ +, +for fixed point +$\bm{m}_{\bm{x}}^{*}$ +: +$(\bm{m}_{\bm{x}}^{*})^{T}\bm{x}_{i}-(\bm{m}_{\bm{x}}^{*})^{T}\bm{x}_{j}=(\bm{m}_{\bm{x}}^{*})^{T}(\bm{x}_{i}-\bm{x}_{j})$ +, +and for the center +$\bm{m}_{\bm{x}}$ +: +$\bm{m}_{\bm{x}}^{T}\bm{x}_{i}-\bm{m}_{\bm{x}}^{T}\bm{x}_{j}=\bm{m}_{\bm{x}}^{T}(\bm{x}_{i}-\bm{x}_{j})$ +. +Using the Cauchy-Schwarz inequality, we get +$\displaystyle\left|\bm{\xi}^{T}(\bm{x}_{i}\ -\ \bm{x}_{j})\right|\ $ +$\displaystyle\leqslant\ {{\left\|\bm{\xi}\right\|}}\ {{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}\ \leqslant\ {{\left\|\bm{\xi}\right\|}}\ ({{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}\ +\ {{\left\|\bm{x}_{j}\ -\ \bm{m}_{\bm{x}}\right\|}})$ +(96) +$\displaystyle\leqslant\ 2\ m_{\max}\ {{\left\|\bm{\xi}\right\|}}\ .$ +This inequality gives: +$\displaystyle\left|\bm{\xi}^{T}(\bm{x}_{i}\ -\ \bm{x}_{j})\right|\ $ +$\displaystyle\leqslant\ 2\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}})\ ,$ +(97) +$\displaystyle\left|\bm{\xi}^{T}(\bm{x}_{i}\ -\ \bm{x}_{j})\right|\ $ +$\displaystyle\leqslant\ 2\ m_{\max}\ M\ ,$ +where we used +${{\left\|\bm{\xi}-\bm{0}\right\|}}\leqslant{{\left\|\bm{\xi}-\bm{m}_{\bm{x}}\right\|}}+{{\left\|\bm{m}_{\bm{x}}-\bm{0}\right\|}}$ +, +${{\left\|\bm{\xi}-\bm{m}_{\bm{x}}\right\|}}={{\left\|\sum_{i}p_{i}\bm{x}_{i}-\bm{m}_{\bm{x}}\right\|}}\leqslant\sum_{i}p_{i}{{\left\|\bm{x}_{i}-\bm{m}_{\bm{x}}\right\|}}\leqslant m_{\max}$ +, +and +$M=\max_{i}{{\left\|\bm{x}_{i}\right\|}}$ +. +In particular +$\displaystyle\beta\ \left|\bm{m}_{\bm{x}}^{T}(\bm{x}_{i}\ -\ \bm{x}_{j})\right|\ $ +$\displaystyle\leqslant\ 2\ \beta\ m_{\max}\ {{\left\|\bm{m}_{\bm{x}}\right\|}}\ ,$ +(98) +$\displaystyle\beta\ \left|(\bm{m}_{\bm{x}}^{*})^{T}(\bm{x}_{i}\ -\ \bm{x}_{j})\right|\ $ +$\displaystyle\leqslant\ 2\ \beta\ m_{\max}\ {{\left\|\bm{m}_{\bm{x}}^{*}\right\|}}\ \leqslant\ 2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}})\ ,$ +(99) +$\displaystyle\beta\ \left|\bm{x}_{i}^{T}(\bm{x}_{i}\ -\ \bm{x}_{j})\right|\ $ +$\displaystyle\leqslant\ 2\ \beta\ m_{\max}\ {{\left\|\bm{x}_{i}\right\|}}\ \leqslant\ 2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}})\ .$ +(100) +Let +$i=\arg\max_{j}\bm{\xi}^{T}\bm{x}_{j}$ +, therefore the maximal softmax component +is +$i$ +. +For the maximal softmax component +$i$ +we have: +$\displaystyle[\mathrm{softmax}(\beta\ \bm{X}^{T}\bm{\xi})]_{i}\ =\ \frac{1}{1\ +\ \sum_{j\not=i}\exp(-\ \beta\ (\bm{\xi}^{T}\bm{x}_{i}\ -\ \bm{\xi}^{T}\bm{x}_{j}))}$ +(101) +$\displaystyle\leqslant\ \frac{1}{1\ +\ \sum_{j\not=i}\exp(-\ 2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}}))}$ +$\displaystyle=\ \frac{1}{1\ +\ (N-1)\exp(-\ 2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}}))}$ +$\displaystyle=\ \frac{\exp(2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}}))}{\exp(2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}}))\ +\ (N-1)}$ +$\displaystyle\leqslant\ 1/N\ \exp(2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}}))\ .$ +Analogously we obtain for +$i=\arg\max_{j}\bm{m}_{\bm{x}}^{T}\bm{x}_{j}$ +, +a bound on the maximal softmax component +$i$ +if the center is put into +the iteration: +$\displaystyle[\mathrm{softmax}(\beta\ \bm{X}^{T}\bm{m}_{\bm{x}})]_{i}\ $ +$\displaystyle\leqslant\ 1/N\ \exp(2\ \beta\ m_{\max}\ {{\left\|\bm{m}_{\bm{x}}\right\|}})\ .$ +(102) +Analog we obtain a bound for +$i=\arg\max_{j}(\bm{m}_{\bm{x}}^{*})^{T}\bm{x}_{j}$ +on the maximal softmax component +$i$ +of the fixed point: +$\displaystyle[\mathrm{softmax}(\beta\ \bm{X}^{T}\bm{m}_{\bm{x}}^{*})]_{i}\ $ +$\displaystyle\leqslant\ 1/N\ \exp(2\ \beta\ m_{\max}\ {{\left\|\bm{m}_{\bm{x}}^{*}\right\|}})$ +(103) +$\displaystyle\leqslant\ 1/N\ \exp(2\ \beta\ m_{\max}\ (m_{\max}\ +\ {{\left\|\bm{m}_{\bm{x}}\right\|}}))\ .$ +The two important terms are +$m_{\max}$ +, the variance or spread of +the data and +${{\left\|\bm{m}_{\bm{x}}\right\|}}$ +, which tells how well +the data is centered. +For a contraction mapping we already required +$\beta m_{\max}^{2}<1$ +, therefore +the first term in the exponent is +$2\beta m_{\max}^{2}<2$ +. +The second term +$2\beta m_{\max}{{\left\|\bm{m}_{\bm{x}}\right\|}}$ +is small if the data is centered. +• +Global fixed point near the global mean: Analysis using softmax values. +If +$\bm{\xi}^{T}\bm{x}_{i}\approx\bm{\xi}^{T}\bm{x}_{j}$ +for all +$i$ +and +$j$ +, +then +$p_{i}\approx 1/N$ +and we have +$m=\max_{i}p_{i}(1-p_{i})<1/N$ +. +For +$M\leqslant 1/\sqrt{2\beta}$ +we obtain from +Lemma +A2 +: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle<\ 1\ .$ +(104) +The local fixed point is +$\bm{m}_{\bm{x}}^{*}\approx\bm{m}_{\bm{x}}=(1/N)\sum_{i=1}^{N}\bm{x}_{i}$ +with +$p_{i}\approx 1/N$ +. +We now treat this case more formally. +First we discuss conditions that ensure that the iteration is a +contraction mapping. +We consider the iteration Eq. ( +57 +) in the variable +$\bm{p}$ +: +$\displaystyle\bm{p}^{\mathrm{new}}\ $ +$\displaystyle=\ g(\bm{p})\ =\ \mathrm{softmax}(\beta\bm{X}^{T}\bm{X}\bm{p})\ .$ +(105) +The Jacobian is +$\displaystyle\mathrm{J}(\bm{p})\ $ +$\displaystyle=\ \frac{\partial g(\bm{p})}{\partial\bm{p}}\ =\ \bm{X}^{T}\bm{X}\ \mathrm{J}_{s}$ +(106) +with +$\displaystyle\mathrm{J}_{s}(\bm{p}^{\mathrm{new}})\ $ +$\displaystyle=\ \beta\left(\mathrm{diag}(\bm{p}^{\mathrm{new}})\ -\ \bm{p}^{\mathrm{new}}(\bm{p}^{\mathrm{new}})^{T}\right)\ .$ +(107) +The version of the mean value theorem in Lemma +A32 +states for +$\mathrm{J}^{m}=\int_{0}^{1}\mathrm{J}(\lambda\bm{p})\ \mathrm{d}\lambda=\bm{X}^{T}\bm{X}\mathrm{J}_{s}^{m}$ +with the symmetric matrix +$\mathrm{J}_{s}^{m}=\int_{0}^{1}\mathrm{J}_{s}(\lambda\bm{p})\ \mathrm{d}\lambda$ +: +$\displaystyle\bm{p}^{\mathrm{new}}\ $ +$\displaystyle=\ g(\bm{p})\ =\ g(\bm{0})\ +\ (\mathrm{J}^{m})^{T}\bm{p}\ =\ g(\bm{0})\ +\ \mathrm{J}_{s}^{m}\ \bm{X}^{T}\bm{X}\ \bm{p}\ =\ 1/N\ \bm{1}\ +\ \mathrm{J}_{s}^{m}\ \bm{X}^{T}\bm{X}\ \bm{p}\ .$ +(108) +With +$m=\max_{i}p_{i}(1-p_{i})$ +, +Eq. ( +476 +) from +Lemma +A24 +is +$\displaystyle{{\left\|\mathrm{J}_{s}(\bm{p})\right\|}}_{2}\ $ +$\displaystyle=\ \beta\ {{\left\|\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right\|}}_{2}\ \leqslant\ 2\ m\ \beta\ .$ +(109) +First observe that +$\lambda p_{i}(1-\lambda p_{i})\leqslant p_{i}(1-p_{i})$ +for +$p_{i}\leqslant 0.5$ +and +$\lambda\in[0,1]$ +, since +$p_{i}(1-p_{i})-\lambda p_{i}(1-\lambda p_{i})=(1-\lambda)p_{i}(1-(1+\lambda)p_{i})\geq 0$ +. +For +$\max_{i}p_{i}\leqslant 0.5$ +this observation leads to the following bound for +$\mathrm{J}_{s}^{m}$ +: +$\displaystyle{{\left\|\mathrm{J}_{s}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ m\ \beta\ .$ +(110) +Eq. ( +479 +) in Lemma +A24 +states that every +$\mathrm{J}_{s}$ +is bounded by +$1/2\beta$ +, +therefore also the mean: +$\displaystyle{{\left\|\mathrm{J}_{s}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 0.5\ \beta\ .$ +(111) +Since +$m=\max_{i}p_{i}(1-p_{i})<\max_{i}p_{i}=p_{\max}$ +, the previous bounds can be combined as follows: +$\displaystyle{{\left\|\mathrm{J}_{s}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \min\{0.25,p_{\max}\}\ \beta\ .$ +(112) +Consequently, +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ N\ M^{2}\ 2\ \min\{0.25,p_{\max}\}\ \beta\ ,$ +(113) +where we used Eq. ( +170 +). +${{\left\|\bm{X}^{T}\bm{X}\right\|}}_{2}={{\left\|\bm{X}\bm{X}^{T}\right\|}}_{2}$ +, +therefore +${{\left\|\bm{X}^{T}\bm{X}\right\|}}_{2}$ +is +$N$ +times the maximal second moment of the data squared. +Obviously, +$g(\bm{p})$ +is a contraction mapping in compact sets, where +$\displaystyle N\ M^{2}\ 2\ \min\{0.25,p_{\max}\}\ \beta\ <\ 1\ .$ +(114) +$\mathrm{S}$ +is the sphere around the origin +$\bm{0}$ +with radius one. +For +$\displaystyle\bm{p}^{\mathrm{new}}\ $ +$\displaystyle=\ g(\bm{p})\ =\ 1/N\ \bm{1}\ +\ \mathrm{J}^{m}\ \bm{p}\ ,$ +(115) +we have +${{\left\|\bm{p}\right\|}}\leqslant{{\left\|\bm{p}\right\|}}_{1}=1$ +and +${{\left\|\bm{p}^{\mathrm{new}}\right\|}}\leqslant{{\left\|\bm{p}^{\mathrm{new}}\right\|}}_{1}=1$ +. +Therefore, +$g$ +maps points from +$\mathrm{S}$ +into +$\mathrm{S}$ +. +$g$ +is a contraction mapping for +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ N\ M^{2}\ 2\ \min\{0.25,p_{\max}\}\ \beta\ =\ c\ <\ 1\ .$ +(116) +According to Banach fixed point theorem +$g$ +has +a fixed point in the sphere +$\mathrm{S}$ +. +Hölder’s inequality gives: +$\displaystyle{{\left\|\bm{p}\right\|}}^{2}\ $ +$\displaystyle=\ \bm{p}^{T}\bm{p}\ \leqslant\ {{\left\|\bm{p}\right\|}}_{1}{{\left\|\bm{p}\right\|}}_{\infty}\ =\ {{\left\|\bm{p}\right\|}}_{\infty}\ =\ p_{\max}\ .$ +(117) +Alternatively: +$\displaystyle{{\left\|\bm{p}\right\|}}^{2}\ $ +$\displaystyle=\ \sum_{i}p_{i}^{2}\ =\ p_{\max}\sum_{i}\frac{p_{i}}{p_{\max}}\ p_{i}\ \leqslant\ p_{\max}\sum_{i}p_{i}\ =\ p_{\max}\ .$ +(118) +Let now +$\mathrm{S}$ +be the sphere around the origin +$\bm{0}$ +with radius +$1/\sqrt{N}+\sqrt{p_{\max}}$ +and let +${{\left\|\mathrm{J}^{m}(\bm{p})\right\|}}_{2}\leqslant c<1$ +for +$\bm{p}\in\mathrm{S}$ +. +The old +$\bm{p}$ +is in the sphere +$\mathrm{S}$ +( +$\bm{p}\in\mathrm{S}$ +) since +$p_{\max}<\sqrt{p_{\max}}$ +for +$p_{\max}<1$ +. +We have +$\displaystyle{{\left\|\bm{p}^{\mathrm{new}}\right\|}}\ $ +$\displaystyle\leqslant\ 1/\sqrt{N}\ +\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{p}\right\|}}\ \leqslant\ 1/\sqrt{N}\ +\ \sqrt{p_{\max}}\ .$ +(119) +Therefore, +$g$ +is a mapping from +$\mathrm{S}$ +into +$\mathrm{S}$ +and a contraction mapping. +According to Banach fixed point theorem, a fixed point exists in +$\mathrm{S}$ +. +For the 1-norm, we use Lemma +A24 +and +${{\left\|\bm{p}\right\|}}_{1}=1$ +to obtain from Eq. ( +115 +): +$\displaystyle{{\left\|\bm{p}^{\mathrm{new}}\ -\ 1/N\ \bm{1}\right\|}}_{1}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{1}\ \leqslant\ 2\ \beta\ m\ {{\left\|\bm{X}\right\|}}_{\infty}\ M_{1}\ ,$ +(120) +$\displaystyle{{\left\|\bm{p}^{\mathrm{new}}\ -\ 1/N\ \bm{1}\right\|}}_{1}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{1}\ \leqslant\ 2\ \beta\ m\ N\ M_{\infty}\ M_{1}\ ,$ +(121) +$\displaystyle{{\left\|\bm{p}^{\mathrm{new}}\ -\ 1/N\ \bm{1}\right\|}}_{1}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{1}\ \leqslant\ 2\ \beta\ m\ N\ M^{2}\ ,$ +(122) +where +$m=\max_{i}p_{i}(1-p_{i})$ +, +$M_{1}={{\left\|\bm{X}\right\|}}_{1}=\max_{i}{{\left\|\bm{x}_{i}\right\|}}_{1}$ +, +$M=\max_{i}{{\left\|\bm{x}_{i}\right\|}}$ +, +${{\left\|\bm{X}\right\|}}_{\infty}={{\left\|\bm{X}^{T}\right\|}}_{1}=\max_{i}{{\left\|[X^{T}]_{i}\right\|}}_{1}$ +(maximal absolute row sum norm), +and +$M_{\infty}=\max_{i}{{\left\|\bm{x}_{i}\right\|}}_{\infty}$ +. +Let us quickly mention some auxiliary estimates related to +$\bm{X}^{T}\bm{X}$ +: +$\displaystyle{{\left\|\bm{X}^{T}\bm{X}\right\|}}_{1}\ $ +$\displaystyle=\ \max_{i}\sum_{j=1}^{N}\left|\bm{x}_{i}^{T}\bm{x}_{j}\right|\ \leqslant\ \max_{i}\sum_{j=1}^{N}{{\left\|\bm{x}_{i}\right\|}}_{\infty}\ {{\left\|\bm{x}_{j}\right\|}}_{1}$ +(123) +$\displaystyle\leqslant\ M_{\infty}\ \sum_{j=1}^{N}M_{1}\ =\ N\ M_{\infty}\ M_{1}\ ,$ +where the first inequaltiy is from Hölder’s inequality. +We used +$\displaystyle{{\left\|\bm{X}^{T}\bm{X}\right\|}}_{1}\ $ +$\displaystyle=\ \max_{i}\sum_{j=1}^{N}\left|\bm{x}_{i}^{T}\bm{x}_{j}\right|\ \leqslant\ \max_{i}\sum_{j=1}^{N}{{\left\|\bm{x}_{i}\right\|}}\ {{\left\|\bm{x}_{j}\right\|}}$ +(124) +$\displaystyle\leqslant\ M\ \sum_{j=1}^{N}M\ =\ N\ M^{2}\ ,$ +where the first inequality is from Hölder’s inequality (here the same as the Cauchy-Schwarz inequality). +See proof of Lemma +A24 +for the 1-norm bound on +$J_{s}$ +. Everything else +follows from the fact that the 1-norm is sub-multiplicative as induced matrix norm. +We consider the minimal +${{\left\|\bm{p}\right\|}}$ +. +$\displaystyle\min_{\bm{p}}$ +$\displaystyle{\mbox{\ ~}}{{\left\|\bm{p}\right\|}}^{2}$ +(125) +s.t. +$\displaystyle{\mbox{\ ~}}\sum_{i}p_{i}=1$ +$\displaystyle{\mbox{\ ~}}\forall_{i}:\ \ p_{i}\ \geq\ 0\ .$ +The solution to this minimization problem is +$\bm{p}=(1/N)\bm{1}$ +. +Therefore, we have +$1/\sqrt{N}\leqslant{{\left\|\bm{p}\right\|}}$ +and +$1/N\leqslant{{\left\|\bm{p}\right\|}}^{2}$ +Using Eq. ( +119 +) we obtain +$\displaystyle 1/\sqrt{N}\ $ +$\displaystyle\leqslant\ {{\left\|\bm{p}^{\mathrm{new}}\right\|}}\ \leqslant\ 1/\sqrt{N}\ +\ \sqrt{p_{\max}}\ .$ +(126) +Moreover +$\displaystyle{{\left\|\bm{p}^{\mathrm{new}}\right\|}}^{2}\ $ +$\displaystyle=\ (\bm{p}^{\mathrm{new}})^{T}\bm{p}^{\mathrm{new}}\ =\ 1/N\ +\ (\bm{p}^{\mathrm{new}})^{T}\mathrm{J}^{m}\ \bm{p}\ \leqslant\ 1/N\ +\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{p}\right\|}}$ +(127) +$\displaystyle\leqslant\ 1/N\ +\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ ,$ +since +$\bm{p}^{\mathrm{new}}\in\mathrm{S}$ +and +$\bm{p}\in\mathrm{S}$ +. +For the fixed point, we have +$\displaystyle{{\left\|\bm{p}^{*}\right\|}}^{2}\ $ +$\displaystyle=\ (\bm{p}^{*})^{T}\bm{p}^{*}\ =\ 1/N\ +\ (\bm{p}^{*})^{T}\mathrm{J}^{m}\ \bm{p}^{*}\ \leqslant\ 1/N\ +\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{p}^{*}\right\|}}^{2}\ ,$ +(128) +and hence +$\displaystyle 1/N\ $ +$\displaystyle\leqslant\ {{\left\|\bm{p}^{*}\right\|}}^{2}\ \leqslant\ 1/N\frac{1}{1\ -\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}}\ =\ 1/N\ (1\ +\ \frac{{{\left\|\mathrm{J}^{m}\right\|}}_{2}}{1\ -\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}})\ .$ +(129) +Therefore, for small +${{\left\|\mathrm{J}^{m}\right\|}}_{2}$ +we have +$\bm{p}^{*}\approx(1/N)\bm{1}$ +. +A.1.5.3 +Many Stable States: Fixed Points Near Stored Patterns. +We move on to the next case, where the patterns +$\bm{x}_{i}$ +are well separated. +In this case the iteration goes to the pattern to which the initial +$\bm{\xi}$ +is most similar. +If the initial +$\bm{\xi}$ +is similar to a vector +$\bm{x}_{i}$ +then it will +converge to +$\bm{x}_{i}$ +and +$\bm{p}$ +will be +$\bm{e}_{i}$ +. +The main ingredients are again Banach’s Theorem and estimates on the Jacobian norm. +• +Proof of a fixed point by Banach Fixed Point Theorem. +$\rightarrow$ +Mapped Vectors Stay in a Compact Environment. +We show that if +$\bm{x}_{i}$ +is sufficient dissimilar to +other +$\bm{x}_{j}$ +then there is an compact environment of +$\bm{x}_{i}$ +(a sphere) +where the fixed point iteration maps this environment into +itself. +The idea of the proof is to define a sphere around +$\bm{x}_{i}$ +for which points from the sphere are mapped by +$f$ +into the sphere. +We first need following lemma which bounds the distance +${{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}$ +, where +$\bm{x}_{i}$ +is the +pattern that is least separated from +$\bm{\xi}$ +but +separated from other patterns. +Lemma A4 +. +For a query +$\bm{\xi}$ +and data +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +, +there exists a +$\bm{x}_{i}$ +that is least separated from +$\bm{\xi}$ +while +being separated from other +$\bm{x}_{j}$ +with +$j\not=i$ +: +$\displaystyle i\ $ +$\displaystyle=\ \arg\max_{k}\min_{j,j\not=k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \bm{\xi}^{T}\bm{x}_{j}\right)\ =\ \arg\max_{k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \max_{j,j\not=k}\bm{\xi}^{T}\bm{x}_{j}\right)$ +(130) +$\displaystyle 0\ $ +$\displaystyle\leqslant\ c\ =\ \max_{k}\min_{j,j\not=k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \bm{\xi}^{T}\bm{x}_{j}\right)\ =\ \max_{k}\left(\bm{\xi}^{T}\bm{x}_{k}\ -\ \max_{j,j\not=k}\bm{\xi}^{T}\bm{x}_{j}\right)\ .$ +(131) +For +$\bm{x}_{i}$ +, the following holds: +$\displaystyle{{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}\ $ +$\displaystyle\leqslant\ 2\ \epsilon\ M\ ,$ +(132) +where +$\displaystyle M\ $ +$\displaystyle=\ \max_{i}{{\left\|\bm{x}_{i}\right\|}}\ ,$ +(133) +$\displaystyle\epsilon\ $ +$\displaystyle=\ (N-1)\ \exp(-\ \beta\ c)\ .$ +(134) +Proof. +For the softmax component +$i$ +we have: +$\displaystyle[\mathrm{softmax}(\beta\ \bm{X}^{T}\bm{\xi})]_{i}\ $ +$\displaystyle=\ \frac{1}{1\ +\ \sum_{j\not=i}\exp(\beta\ (\bm{\xi}^{T}\bm{x}_{j}\ -\ \bm{\xi}^{T}\bm{x}_{i}))}\ \geq\ \frac{1}{1\ +\ \sum_{j\not=i}\exp(-\ \beta\ c)}$ +(135) +$\displaystyle=\ \frac{1}{1\ +\ (N-1)\exp(-\ \beta\ c)}\ =\ 1\ -\ \frac{(N-1)\exp(-\ \beta\ c)}{1\ +\ (N-1)\exp(-\ \beta\ c)}$ +$\displaystyle\geq\ 1\ -\ (N-1)\exp(-\ \beta\ c)\ =\ 1\ -\ \epsilon\ $ +For softmax components +$k\not=i$ +we have +$\displaystyle[\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})]_{k}\ $ +$\displaystyle=\ \frac{\exp(\beta\ (\bm{\xi}^{T}\bm{x}_{k}\ -\ \bm{\xi}^{T}\bm{x}_{i}))}{1\ +\ \sum_{j\not=i}\exp(\beta\ (\bm{\xi}^{T}\bm{x}_{j}\ -\ \bm{\xi}^{T}\bm{x}_{i}))}\ \leqslant\ \exp(-\ \beta\ c)\ =\ \frac{\epsilon}{N-1}\ .$ +(136) +The iteration +$f$ +can be written as +$\displaystyle f(\bm{\xi})\ $ +$\displaystyle=\ \bm{X}\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})\ =\ \sum_{j=1}^{N}\bm{x}_{j}\ [\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})]_{j}\ .$ +(137) +We now can bound +${{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}$ +: +$\displaystyle{{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}\ $ +$\displaystyle=\ {{\left\|\bm{x}_{i}\ -\ \sum_{j=1}^{N}[\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})]_{j}\ \bm{x}_{j}\right\|}}$ +(138) +$\displaystyle=\ {{\left\|(1-[\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})]_{i})\ \bm{x}_{i}\ -\ \sum_{j=1,j\not=i}^{N}[\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})]_{j}\ \bm{x}_{j}\right\|}}$ +$\displaystyle\leqslant\ \epsilon\ {{\left\|\bm{x}_{i}\right\|}}\ +\ \frac{\epsilon}{N-1}\ \sum_{j=1,j\not=i}^{N}{{\left\|\bm{x}_{j}\right\|}}$ +$\displaystyle\leqslant\ \epsilon\ M\ +\ \frac{\epsilon}{N-1}\ \sum_{j=1,j\not=i}^{N}M\ =\ 2\ \epsilon\ M\ .$ +∎ +We define +$\Delta_{i}$ +, i.e. the separation of pattern +$\bm{x}_{i}$ +from data +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +as: +$\displaystyle\Delta_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \bm{x}_{i}^{T}\bm{x}_{i}\ -\ \max_{j,j\not=i}\bm{x}_{i}^{T}\bm{x}_{j}\ .$ +(139) +The pattern is separated from the other data if +$0<\Delta_{i}$ +. +Using the parallelogram identity, +$\Delta_{i}$ +can also be expressed as +$\displaystyle\Delta_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\frac{1}{2}\ \left({{\left\|\bm{x}_{i}\right\|}}^{2}\ -\ {{\left\|\bm{x}_{j}\right\|}}^{2}\ +\ {{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}^{2}\right)$ +(140) +$\displaystyle=\ \frac{1}{2}{{\left\|\bm{x}_{i}\right\|}}^{2}\ -\ \frac{1}{2}\ \max_{j,j\not=i}\left({{\left\|\bm{x}_{j}\right\|}}^{2}\ -\ {{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}^{2}\right)\ .$ +For +${{\left\|\bm{x}_{i}\right\|}}={{\left\|\bm{x}_{j}\right\|}}$ +we have +$\Delta_{i}=1/2\min_{j,j\not=i}{{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}^{2}$ +. +Next we define the sphere where we want to apply +Banach fixed point theorem. +Definition 3 +(Sphere +$\mathrm{S}_{i}$ +) +. +The sphere +$\mathrm{S}_{i}$ +is defined as +$\displaystyle\mathrm{S}_{i}\ $ +$\displaystyle:=\ \left\{\bm{\xi}\mid{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ \leqslant\ \frac{1}{\beta\ N\ M}\right\}\ .$ +(141) +Lemma A5 +. +With +$\bm{\xi}$ +given, if the assumptions +A1: +$\bm{\xi}$ +is inside sphere: +$\bm{\xi}\in\mathrm{S}_{i}$ +, +A2: +data point +$\bm{x}_{i}$ +is well separated from the other data: +$\displaystyle\Delta_{i}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)$ +(142) +hold, then +$f(\bm{\xi})$ +is inside the sphere: +$f(\bm{\xi})\in\mathrm{S}_{i}$ +. +Therefore, with assumption (A2), +$f$ +is a mapping from +$\mathrm{S}_{i}$ +into +$\mathrm{S}_{i}$ +. +Proof. +We need the separation +$\tilde{\Delta}_{i}$ +of +$\bm{\xi}$ +from the data. +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\bm{\xi}^{T}\bm{x}_{i}\ -\ \bm{\xi}^{T}\bm{x}_{j}\right)\ .$ +(143) +Using the Cauchy-Schwarz inequality, we obtain for +$1\leqslant j\leqslant N$ +: +$\displaystyle\left|\bm{\xi}^{T}\bm{x}_{j}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right|$ +$\displaystyle\leqslant\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ {{\left\|\bm{x}_{j}\right\|}}\ \leqslant\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\ .$ +(144) +We have the lower bound +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle\geq\ \min_{j,j\not=i}\left(\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\right)\ -\ \left(\bm{x}_{i}^{T}\bm{x}_{j}\ +\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\right)\right)$ +(145) +$\displaystyle=\ -\ 2\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\ +\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \Delta_{i}\ -\ 2\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M$ +$\displaystyle\geq\ \Delta_{i}\ -\ \frac{2}{\beta\ N}\ ,$ +where we used the assumption (A1) of the lemma. +From the proof in Lemma +A4 +we have +$\displaystyle p_{\max}\ $ +$\displaystyle=\ [\mathrm{softmax}(\beta\bm{X}^{T}\bm{\xi})]_{i}\ \geq\ 1\ -\ (N-1)\ \exp(-\ \beta\ \tilde{\Delta}_{i})\ =\ 1\ -\ \tilde{\epsilon}\ .$ +(146) +Lemma +A4 +states that +$\displaystyle{{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}\ $ +$\displaystyle\leqslant\ 2\ \tilde{\epsilon}\ M\ =\ 2\ (N-1)\ \exp(-\ \beta\ \tilde{\Delta}_{i})\ M$ +(147) +$\displaystyle\leqslant\ 2\ (N-1)\ \exp(-\ \beta\ (\Delta_{i}\ -\ \frac{2}{\beta\ N}))\ M\ .$ +We have +$\displaystyle{{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}$ +(148) +$\displaystyle\leqslant\ 2\ (N-1)\ \exp(-\ \beta\ (\frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ -\ \frac{2}{\beta\ N}))\ M$ +$\displaystyle=\ 2\ (N-1)\ \exp(-\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right))\ M$ +$\displaystyle=\ \frac{1}{N\ \beta\ M}\ ,$ +where we used assumption (A2) of the lemma. +Therefore, +$f(\bm{\xi})$ +is a mapping from the +sphere +$\mathrm{S}_{i}$ +into the sphere +$\mathrm{S}_{i}$ +: +If +$\bm{\xi}\in\mathrm{S}_{i}$ +then +$f(\bm{\xi})\in\mathrm{S}_{i}$ +. +∎ +• +Contraction mapping. +For applying Banach fixed point theorem we need to show that +$f$ +is contraction in the compact environment +$\mathrm{S}_{i}$ +. +Lemma A6 +. +Assume that +A1: +$\displaystyle\Delta_{i}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ ,$ +(149) +then +$f$ +is a contraction mapping in +$\mathrm{S}_{i}$ +. +Proof. +The version of the mean value theorem Lemma +A32 +states for +$\mathrm{J}^{m}=\int_{0}^{1}\mathrm{J}(\lambda\bm{\xi}+(1-\lambda)\bm{x}_{i})\ \mathrm{d}\lambda$ +: +$\displaystyle f(\bm{\xi})\ $ +$\displaystyle=\ f(\bm{x}_{i})\ +\ \mathrm{J}^{m}\ (\bm{\xi}\ -\ \bm{x}_{i})\ .$ +(150) +Therefore +$\displaystyle{{\left\|f(\bm{\xi})\ -\ f(\bm{x}_{i})\right\|}}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ .$ +(151) +We define +$\tilde{\bm{\xi}}=\lambda\bm{\xi}+(1-\lambda)\bm{x}_{i}$ +for some +$\lambda\in[0,1]$ +. +From the proof in Lemma +A4 +we have +$\displaystyle p_{\max}(\tilde{\bm{\xi}})\ $ +$\displaystyle=\ [\mathrm{softmax}(\beta\ \bm{X}^{T}\ \tilde{\bm{\xi}})]_{i}\ \geq\ 1\ -\ (N-1)\ \exp(-\ \beta\ \tilde{\Delta}_{i})\ =\ 1\ -\ \tilde{\epsilon}\ ,$ +(152) +$\displaystyle\tilde{\epsilon}\ $ +$\displaystyle=\ (N-1)\ \exp(-\ \beta\ \tilde{\Delta}_{i})\ ,$ +(153) +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\tilde{\bm{\xi}}^{T}\bm{x}_{i}\ -\ \tilde{\bm{\xi}}^{T}\bm{x}_{j}\right)\ .$ +(154) +First we compute an upper bound on +$\tilde{\epsilon}$ +. +We need the separation +$\tilde{\Delta}_{i}$ +of +$\bm{\xi}$ +from the data. +Using the Cauchy-Schwarz inequality, we obtain for +$1\leqslant j\leqslant N$ +: +$\displaystyle\left|\tilde{\bm{\xi}}^{T}\bm{x}_{j}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right|$ +$\displaystyle\leqslant\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ {{\left\|\bm{x}_{j}\right\|}}\ \leqslant\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\ .$ +(155) +We have the lower bound on +$\tilde{\Delta}_{i}$ +: +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle\geq\ \min_{j,j\not=i}\left(\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\right)\ -\ \left(\bm{x}_{i}^{T}\bm{x}_{j}\ +\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\right)\right)$ +(156) +$\displaystyle=\ -\ 2\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\ +\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \Delta_{i}\ -\ 2\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M$ +$\displaystyle\geq\ \Delta_{i}\ -\ 2\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\ ,$ +where we used +${{\left\|\tilde{\bm{\xi}}-\bm{x}_{i}\right\|}}=\lambda{{\left\|\bm{\xi}-\bm{x}_{i}\right\|}}\leqslant{{\left\|\bm{\xi}-\bm{x}_{i}\right\|}}$ +. +From the definition of +$\tilde{\epsilon}$ +in Eq. ( +152 +) +we have +$\displaystyle\tilde{\epsilon}\ $ +$\displaystyle=\ (N-1)\ \exp(-\ \beta\ \tilde{\Delta}_{i})$ +(157) +$\displaystyle\leqslant\ (N-1)\ \exp\left(-\ \beta\ \left(\Delta_{i}\ -\ 2\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\right)\right)$ +$\displaystyle\leqslant\ (N-1)\ \exp\left(-\ \beta\ \left(\Delta_{i}\ -\ \frac{2}{\beta\ N}\right)\right)\ ,$ +where we used +$\bm{\xi}\in\mathrm{S}_{i}$ +, therefore +${{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ \leqslant\ \frac{1}{\beta\ N\ M}$ +. +Next we compute an lower bound on +$\tilde{\epsilon}$ +. +We start with an upper on +$\tilde{\Delta}_{i}$ +: +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle\leqslant\ \min_{j,j\not=i}\left(\left(\bm{x}_{i}^{T}\bm{x}_{i}\ +\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\right)\ -\ \left(\bm{x}_{i}^{T}\bm{x}_{j}\ -\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\right)\right)$ +(158) +$\displaystyle=\ 2\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M\ +\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \Delta_{i}\ +\ 2\ {{\left\|\tilde{\bm{\xi}}\ -\ \bm{x}_{i}\right\|}}\ M$ +$\displaystyle\leqslant\ \Delta_{i}\ +\ 2\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\ ,$ +where we used +${{\left\|\tilde{\bm{\xi}}-\bm{x}_{i}\right\|}}=\lambda{{\left\|\bm{\xi}-\bm{x}_{i}\right\|}}\leqslant{{\left\|\bm{\xi}-\bm{x}_{i}\right\|}}$ +. +From the definition of +$\tilde{\epsilon}$ +in Eq. ( +152 +) +we have +$\displaystyle\tilde{\epsilon}\ $ +$\displaystyle=\ (N-1)\ \exp(-\ \beta\ \tilde{\Delta}_{i})$ +(159) +$\displaystyle\geq\ (N-1)\ \exp\left(-\ \beta\ \left(\Delta_{i}\ +\ 2\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ M\right)\right)$ +$\displaystyle\geq\ (N-1)\ \exp\left(-\ \beta\ \left(\Delta_{i}\ +\ \frac{2}{\beta\ N}\right)\right)\ ,$ +where we used +$\bm{\xi}\in\mathrm{S}_{i}$ +, therefore +${{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ \leqslant\ \frac{1}{\beta\ N\ M}$ +. +Now we bound the Jacobian. +We can assume +$\tilde{\epsilon}\leqslant 0.5$ +otherwise +$(1-\tilde{\epsilon})\leqslant 0.5$ +in the following. +From the proof of +Lemma +A24 +we know +for +$p_{\max}(\tilde{\bm{\xi}})\geq 1-\tilde{\epsilon}$ +, +then +$p_{i}(\tilde{\bm{\xi}})\leqslant\tilde{\epsilon}$ +for +$p_{i}(\tilde{\bm{\xi}})\not=p_{\max}(\tilde{\bm{\xi}})$ +. +Therefore, +$p_{i}(\tilde{\bm{\xi}})(1-p_{i}(\tilde{\bm{\xi}}))\leqslant m\leqslant\tilde{\epsilon}(1-\tilde{\epsilon})$ +for all +$i$ +. +Next we use the derived upper and lower bound on +$\tilde{\epsilon}$ +in previous Eq. ( +61 +) in Lemma +A2 +: +$\displaystyle{{\left\|\mathrm{J}(\tilde{\bm{\xi}})\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ \tilde{\epsilon}\ -\ 2\ \tilde{\epsilon}^{2}\ \beta\ N\ M^{2}$ +(160) +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\ \exp\left(-\ \beta\ \left(\Delta_{i}\ -\frac{2}{\beta\ N}\right)\right)\ -$ +$\displaystyle 2\ (N-1)^{2}\ \exp\left(-\ 2\ \beta\ \left(\Delta_{i}\ +\ \frac{2}{\beta\ N}\right)\right)\ \beta\ N\ M^{2}\ .$ +The bound Eq. ( +160 +) holds for the mean +$\mathrm{J}^{m}$ +, too, +since it averages over +$\mathrm{J}(\tilde{\bm{\xi}})$ +: +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\ \exp\left(-\ \beta\ \left(\Delta_{i}\ -\ \frac{2}{\beta\ N}\right)\right)\ -$ +(161) +$\displaystyle 2\ (N-1)^{2}\ \exp\left(-\ 2\ \beta\ \left(\Delta_{i}\ +\ \frac{2}{\beta\ N}\right)\right)\ \beta\ N\ M^{2}\ .$ +The assumption of the lemma is +$\displaystyle\Delta_{i}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ ,$ +(162) +This is +$\displaystyle\Delta_{i}\ -\ \frac{2}{\beta\ N}\ $ +$\displaystyle\geq\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ ,$ +(163) +Therefore, the spectral norm +${{\left\|\mathrm{J}\right\|}}_{2}$ +can be bounded by: +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ \leqslant\ 2\ \beta\ (N-1)\ \exp\left(-\ \beta\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\right)\ N\ M^{2}\ -$ +(164) +$\displaystyle 2\ (N-1)^{2}\ \exp\left(-\ 2\ \beta\ \left(\Delta_{i}\ +\ \frac{2}{\beta\ N}\right)\right)\ \beta\ N\ M^{2}$ +$\displaystyle=\ \ 2\ \beta\ (N-1)\ \frac{1}{2\ (N-1)\ N\ \beta\ M^{2}}\ N\ M^{2}\ -$ +$\displaystyle 2\ (N-1)^{2}\ \exp\left(-\ 2\ \beta\ \left(\Delta_{i}\ +\ \frac{2}{\beta\ N}\right)\right)\ \beta\ N\ M^{2}$ +$\displaystyle=\ 1\ -2\ (N-1)^{2}\ \exp\left(-\ 2\ \beta\ \left(\Delta_{i}\ +\ \frac{2}{\beta\ N}\right)\right)\ \beta\ N\ M^{2}\ <1\ .$ +Therefore, +$f$ +is a contraction mapping in +$\mathrm{S}_{i}$ +. +∎ +• +Banach Fixed Point Theorem. +Now we have all ingredients to apply Banach fixed point theorem. +Lemma A7 +. +Assume that +A1: +$\displaystyle\Delta_{i}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ ,$ +(165) +then +$f$ +has a fixed point in +$\mathrm{S}_{i}$ +. +Proof. +We use Banach fixed point theorem: +Lemma +A5 +says that +$f$ +maps from +$\mathrm{S}_{i}$ +into +$\mathrm{S}_{i}$ +. +Lemma +A6 +says that +$f$ +is a contraction mapping in +$\mathrm{S}_{i}$ +. +∎ +• +Contraction mapping with a fixed point. +We have shown that a fixed point exists. We want to know +how fast the iteration converges to the fixed point. +Let +$\bm{x}_{i}^{*}$ +be the fixed point of the iteration +$f$ +in the sphere +$\mathrm{S}_{i}$ +. +Using the mean value theorem Lemma +A32 +, we have with +$\mathrm{J}^{m}=\int_{0}^{1}\mathrm{J}(\lambda\bm{\xi}+(1-\lambda)\bm{x}_{i}^{*})\ \mathrm{d}\lambda$ +: +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle=\ {{\left\|f(\bm{\xi})\ -\ f(\bm{x}_{i}^{*})\right\|}}\ \leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}$ +(166) +According to Lemma +A24 +, +if +$p_{\max}=\max_{i}p_{i}\geq 1-\epsilon$ +for all +$\tilde{\bm{x}}=\lambda\bm{\xi}+(1-\lambda)\bm{x}_{i}^{*}$ +, +then the spectral norm of +the Jacobian is bounded by +$\displaystyle{{\left\|\mathrm{J}_{s}(\tilde{\bm{x}})\right\|}}_{2}\ $ +$\displaystyle<\ 2\ \epsilon\ \beta\ .$ +(167) +The norm of Jacobian at +$\tilde{\bm{x}}$ +is bounded +$\displaystyle{{\left\|\mathrm{J}(\tilde{\bm{x}})\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ {{\left\|\bm{X}\right\|}}_{2}^{2}\ \epsilon\ \leqslant\ 2\ \beta\ NM^{2}\ \epsilon\ .$ +(168) +We used that +the spectral norm +${{\left\|.\right\|}}_{2}$ +is bounded by the Frobenius norm +${{\left\|.\right\|}}_{F}$ +which can be expressed by the norm squared of its +column vectors: +$\displaystyle{{\left\|\bm{X}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ {{\left\|\bm{X}\right\|}}_{F}\ =\ \sqrt{\sum_{i}{{\left\|\bm{x}_{i}\right\|}}^{2}}\ .$ +(169) +Therefore +$\displaystyle{{\left\|\bm{X}\right\|}}_{2}^{2}\ $ +$\displaystyle\leqslant\ N\ M^{2}\ .$ +(170) +The norm of Jacobian of the fixed point iteration is bounded +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ {{\left\|\bm{X}\right\|}}_{2}^{2}\ \epsilon\ \leqslant\ 2\ \beta\ NM^{2}\ \epsilon\ .$ +(171) +The separation of pattern +$\bm{x}_{i}$ +from data +$\bm{X}=(\bm{x}_{1},\ldots,\bm{x}_{N})$ +is +$\displaystyle\Delta_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \bm{x}_{i}^{T}\bm{x}_{i}\ -\ \max_{j,j\not=i}\bm{x}_{i}^{T}\bm{x}_{j}\ .$ +(172) +We need the separation +$\tilde{\Delta}_{i}$ +of +$\tilde{\bm{x}}=\lambda\bm{\xi}+(1-\lambda)\bm{x}_{i}^{*}$ +from the data: +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\tilde{\bm{x}}^{T}\bm{x}_{i}\ -\ \tilde{\bm{x}}^{T}\bm{x}_{j}\right)\ .$ +(173) +We compute a lower bound on +$\tilde{\Delta}_{i}$ +. +Using the Cauchy-Schwarz inequality, we obtain for +$1\leqslant j\leqslant N$ +: +$\displaystyle\left|\tilde{\bm{x}}^{T}\bm{x}_{j}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right|$ +$\displaystyle\leqslant\ {{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ {{\left\|\bm{x}_{j}\right\|}}\ \leqslant\ {{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ M\ .$ +(174) +We have the lower bound +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle\geq\ \min_{j,j\not=i}\left(\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ {{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ M\right)\ -\ \left(\bm{x}_{i}^{T}\bm{x}_{j}\ +\ {{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ M\right)\right)$ +(175) +$\displaystyle=\ -\ 2\ {{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ M\ +\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \Delta_{i}\ -\ 2\ {{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ M\ .$ +Since +$\displaystyle{{\left\|\tilde{\bm{x}}\ -\ \bm{x}_{i}\right\|}}\ $ +$\displaystyle=\ {{\left\|\lambda\bm{\xi}+(1-\lambda)\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}$ +(176) +$\displaystyle\leqslant\ \lambda\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}}\ +\ (1-\lambda)\ {{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}$ +$\displaystyle\leqslant\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ ,$ +we have +$\displaystyle\tilde{\Delta}_{i}\ $ +$\displaystyle\geq\ \Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M\ .$ +(177) +For the softmax component +$i$ +we have: +$\displaystyle[\mathrm{softmax}(\beta\ \bm{X}^{T}\tilde{\bm{\xi}})]_{i}\ =\ \frac{1}{1\ +\ \sum_{j\not=i}\exp(\beta\ (\tilde{\bm{\xi}}^{T}\bm{x}_{j}\ -\ \tilde{\bm{\xi}}^{T}\bm{x}_{i}))}$ +(178) +$\displaystyle\geq\ \frac{1}{1\ +\ \sum_{j\not=i}\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))}$ +$\displaystyle=\ \frac{1}{1\ +\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))}$ +$\displaystyle=\ 1\ -\ \frac{(N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))}{1\ +\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))}$ +$\displaystyle\geq\ 1\ -\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))$ +$\displaystyle=\ 1\ -\ \epsilon\ .$ +Therefore +$\displaystyle\epsilon\ $ +$\displaystyle=\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(179) +We can bound the spectral norm of +the Jacobian, which upper bounds the Lipschitz constant: +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(180) +For a contraction mapping we require +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ <\ 1\ ,$ +(181) +which can be ensured by +$\displaystyle 2\ \beta\ NM^{2}\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ <\ 1\ .$ +(182) +Solving this inequality for +$\Delta_{i}$ +gives +$\displaystyle\Delta_{i}\ $ +$\displaystyle>\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ .$ +(183) +In an environment around +$\bm{x}_{i}^{*}$ +in +which Eq. ( +183 +) holds, +$f$ +is a contraction mapping and every +point converges under the iteration +$f$ +to +$\bm{x}_{i}^{*}$ +when the iteration stays in +the environment. +After every iteration the mapped point +$f(\bm{\xi})$ +is closer to the fixed point +$\bm{x}_{i}^{*}$ +than the original point +$\bm{x}_{i}$ +: +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}\ <\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}\ .$ +(184) +Using +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ \leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}\ \leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ f(\bm{\xi})\right\|}}\ +\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ ,$ +(185) +we obtain +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ \leqslant\ \frac{{{\left\|\mathrm{J}^{m}\right\|}}_{2}}{1\ -\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}}\ {{\left\|\bm{\xi}\ -\ f(\bm{\xi})\right\|}}\ .$ +(186) +For large +$\Delta_{i}$ +the iteration is close to the fixed point even after +one update. +This has been confirmed in several experiments. +A.1.5.4 +Metastable States: Fixed Points Near Mean of Similar Patterns. +The proof concept is the same as for a single pattern +but now for the arithmetic mean of similar patterns. +• +Bound on the Jacobian. +The Jacobian of the fixed point iteration is +$\displaystyle\mathrm{J}\ $ +$\displaystyle=\ \beta\ \bm{X}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\bm{X}^{T}\ =\ \bm{X}\mathrm{J}_{s}\bm{X}^{T}\ .$ +(187) +If we consider +$p_{i}$ +as the probability of selecting +the vector +$\bm{x}_{i}$ +, then we can define +expectations as +$\mathbf{\mathrm{E}}_{\bm{p}}[f(\bm{x})]=\sum_{i=1}^{N}p_{i}f(\bm{x}_{i})$ +. +In this setting the matrix +$\displaystyle\bm{X}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\bm{X}^{T}$ +(188) +is the covariance matrix of data +$\bm{X}$ +when its +vectors are selected according +to the probability +$\bm{p}$ +: +$\displaystyle\bm{X}\left(\mathrm{diag}(\bm{p})\ -\ \bm{p}\bm{p}^{T}\right)\bm{X}^{T}\ =\ \bm{X}\mathrm{diag}(\bm{p})\bm{X}^{T}\ -\ \bm{X}\bm{p}\bm{p}^{T}\bm{X}^{T}$ +(189) +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\right)\left(\sum_{i=1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}$ +(190) +$\displaystyle=\ \mathbf{\mathrm{E}}_{\bm{p}}[\bm{x}\ \bm{x}^{T}]\ -\ \mathbf{\mathrm{E}}_{\bm{p}}[\bm{x}]\ \mathbf{\mathrm{E}}_{\bm{p}}[\bm{x}]^{T}\ =\ \mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\ ,$ +(191) +therefore we have +$\displaystyle\mathrm{J}\ $ +$\displaystyle=\ \beta\ \mathbf{\mathrm{Var}}_{\bm{p}}[\bm{x}]\ .$ +(192) +We now elaborate more on this interpretation as variance. +Specifically the singular values of +$\mathrm{J}$ +(or in other words: the +covariance) should be reasonably small. +The singular values are the key to ensure convergence of the iteration +Eq. ( +57 +). +Next we present some thoughts. +1. +It’s clear that the largest eigenvalue of the covariance matrix +(equal to the largest singular value) +is the variance in the direction of the eigenvector +associated with the largest eigenvalue. +2. +Furthermore the variance goes to zero as one +$p_{i}$ +goes to +one, since only one pattern is chosen and there is +no variance. +3. +The variance is reasonable small if all patterns +are chosen with equal probability. +4. +The variance is small if few similar patterns are +chosen with high probability. +If the patterns are sufficient similar, then +the spectral norm of the covariance matrix is +smaller than one. +The first three issues have already been adressed. +Now we focus on the last one in greater detail. +We assume that the first +$l$ +patterns +are much more probable (and similar +to one another) than the other patterns. +Therefore, we define: +$\displaystyle M\ $ +$\displaystyle:=\ \max_{i}{{\left\|\bm{x}_{i}\right\|}}\ ,$ +(193) +$\displaystyle\gamma\ $ +$\displaystyle=\ \sum_{i=l+1}^{N}p_{i}\ \leqslant\ \epsilon\ ,$ +(194) +$\displaystyle 1-\gamma\ $ +$\displaystyle=\ \sum_{i=1}^{l}p_{i}\ \geq\ 1\ -\ \epsilon\ ,$ +(195) +$\displaystyle\tilde{p}_{i}\ $ +$\displaystyle:=\ \frac{p_{i}}{1-\gamma}\ \leqslant\ p_{i}/(1-\epsilon)\ ,$ +(196) +$\displaystyle\sum_{i=1}^{l}\tilde{p}_{i}\ $ +$\displaystyle=\ 1\ ,$ +(197) +$\displaystyle\bm{m}_{\bm{x}}\ $ +$\displaystyle=\ \frac{1}{l}\ \sum_{i=1}^{l}\ \bm{x}_{i}\ ,$ +(198) +$\displaystyle m_{\max}\ $ +$\displaystyle=\ \max_{1\leqslant i\leqslant l}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}\ .$ +(199) +$M$ +is an upper bound on the Euclidean norm of the patterns, which are vectors. +$\epsilon$ +is an upper bound on the probability +$\gamma$ +of not choosing one of the first +$l$ +patterns, while +$1-\epsilon$ +is a lower bound the probability +$(1-\gamma)$ +of choosing one of the first +$l$ +patterns. +$\bm{m}_{\bm{x}}$ +is the arithmetic mean (the center) of the first +$l$ +patterns. +$m_{\max}$ +is the maximal distance of the patterns to the center +$\bm{m}_{\bm{x}}$ +. +$\tilde{\bm{p}}$ +is the probability +$\bm{p}$ +normalized for the first +$l$ +patterns. +The variance of the first +$l$ +patterns is +$\displaystyle\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\ $ +$\displaystyle=\ \sum_{i=1}^{l}\tilde{p}_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{l}\tilde{p}_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}\tilde{p}_{i}\ \bm{x}_{i}\right)^{T}$ +(200) +$\displaystyle=\ \sum_{i=1}^{l}\tilde{p}_{i}\ \left(\bm{x}_{i}\ -\ \sum_{i=1}^{l}\tilde{p}_{i}\bm{x}_{i}\right)\ \left(\bm{x}_{i}\ -\ \sum_{i=1}^{l}\tilde{p}_{i}\bm{x}_{i}\right)^{T}\ .$ +Lemma A8 +. +With the definitions in Eq. ( +193 +) +to Eq. ( +200 +), +the following bounds on the norm +${{\left\|\mathrm{J}\right\|}}_{2}$ +of the +Jacobian of the fixed point iteration hold. +The +$\gamma$ +-bound for +${{\left\|\mathrm{J}\right\|}}_{2}$ +is +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \beta\left((1-\gamma)\ m_{\max}^{2}\ +\ \gamma\ 2\ (2\ -\ \gamma)\ M^{2}\right)$ +(201) +and the +$\epsilon$ +-bound for +${{\left\|\mathrm{J}\right\|}}_{2}$ +is: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \beta\left(\ m_{\max}^{2}\ +\ \epsilon\ 2\ (2\ -\ \epsilon)\ M^{2}\right)\ .$ +(202) +Proof. +The variance +$\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]$ +can be expressed as: +$\displaystyle(1-\gamma)\ \mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\ =\ \sum_{i=1}^{l}p_{i}\ \left(\bm{x}_{i}\ -\ \frac{1}{1-\gamma}\ \sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\bm{x}_{i}\ -\ \frac{1}{1-\gamma}\ \sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}$ +(203) +$\displaystyle=\ \sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \frac{1}{1-\gamma}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\ -\ \frac{1}{1-\gamma}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}$ +$\displaystyle+\ \frac{\sum_{i=1}^{l}p_{i}}{(1-\gamma)^{2}}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\ =\ \sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \frac{1}{1-\gamma}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}$ +$\displaystyle=\ \sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\ +\ \left(1\ -\ \frac{1}{1-\gamma}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}$ +$\displaystyle=\ \sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\ -\ \frac{\gamma}{1-\gamma}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\ .$ +Therefore, we have +$\displaystyle\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}$ +(204) +$\displaystyle=\ (1-\gamma)\ \mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\ +\ \frac{\gamma}{1-\gamma}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\ .$ +We now can reformulate the Jacobian +$\mathrm{J}$ +: +$\displaystyle\mathrm{J}\ $ +$\displaystyle=\ \beta\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ +\ \sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\right.$ +(205) +$\displaystyle-\ \left.\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ +\ \sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ +\ \sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\right)$ +$\displaystyle=\ \beta\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\right.$ +$\displaystyle+\ \left.\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\right.$ +$\displaystyle-\ \left.\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\ -\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\right)$ +$\displaystyle=\ \beta\ \left((1-\gamma)\ \mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\ +\ \frac{\gamma}{1-\gamma}\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\right.$ +$\displaystyle+\ \left.\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\ -\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\right.$ +$\displaystyle-\ \left.\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\ -\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\right)\ .$ +The spectral norm of an outer product of two vectors +is the product of the Euclidean norms of the vectors: +$\displaystyle{{\left\|\bm{a}\bm{b}^{T}\right\|}}_{2}\ $ +$\displaystyle=\ \sqrt{\lambda_{\max}(\bm{b}\bm{a}^{T}\bm{a}\bm{b}^{T})}\ =\ {{\left\|\bm{a}\right\|}}\ \sqrt{\lambda_{\max}(\bm{b}\bm{b}^{T})}\ =\ {{\left\|\bm{a}\right\|}}\ {{\left\|\bm{b}\right\|}}\ ,$ +(206) +since +$\bm{b}\bm{b}^{T}$ +has eigenvector +$\bm{b}/{{\left\|\bm{b}\right\|}}$ +with +eigenvalue +${{\left\|\bm{b}\right\|}}^{2}$ +and otherwise zero eigenvalues. +We now bound the norms of some matrices and vectors: +$\displaystyle{{\left\|\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right\|}}\ $ +$\displaystyle\leqslant\ \sum_{i=1}^{l}p_{i}\ {{\left\|\bm{x}_{i}\right\|}}\ \leqslant\ (1-\gamma)\ M\ ,$ +(207) +$\displaystyle{{\left\|\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right\|}}\ $ +$\displaystyle\leqslant\ \sum_{i=l+1}^{N}p_{i}\ {{\left\|\bm{x}_{i}\right\|}}\ \leqslant\ \gamma\ M\ ,$ +(208) +$\displaystyle{{\left\|\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \sum_{i=l+1}^{N}p_{i}\ {{\left\|\bm{x}_{i}\ \bm{x}_{i}^{T}\right\|}}_{2}\ =\ \sum_{i=l+1}^{N}p_{i}\ {{\left\|\bm{x}_{i}\right\|}}^{2}\ \leqslant\ \sum_{i=l+1}^{N}p_{i}\ M^{2}\ =\ \gamma\ M^{2}\ .$ +(209) +In order to bound the variance of the +first +$l$ +patterns, +we compute the vector +$\bm{a}$ +that minimizes +$\displaystyle f(\bm{a})\ $ +$\displaystyle=\ \sum_{i=1}^{l}p_{i}{{\left\|\bm{x}_{i}\ -\ \bm{a}\right\|}}^{2}\ =\ \sum_{i=1}^{l}p_{i}(\bm{x}_{i}\ -\ \bm{a})^{T}(\bm{x}_{i}\ -\ \bm{a})\ .$ +(210) +The solution to +$\displaystyle\frac{\partial f(\bm{a})}{\partial\bm{a}}\ $ +$\displaystyle=\ 2\ \sum_{i=1}^{N}p_{i}(\bm{a}\ -\ \bm{x}_{i})\ =\ 0$ +(211) +is +$\displaystyle\bm{a}\ $ +$\displaystyle=\ \sum_{i=1}^{N}p_{i}\bm{x}_{i}\ .$ +(212) +The Hessian of +$f$ +is positive definite since +$\displaystyle\frac{\partial^{2}f(\bm{a})}{\partial\bm{a}^{2}}\ $ +$\displaystyle=\ 2\ \sum_{i=1}^{N}p_{i}\ \bm{I}\ =\ 2\ \bm{I}$ +(213) +and +$f$ +is a convex function. +Hence, the mean +$\displaystyle\bar{\bm{x}}\ $ +$\displaystyle:=\ \sum_{i=1}^{N}p_{i}\ \bm{x}_{i}$ +(214) +minimizes +$\sum_{i=1}^{N}p_{i}{{\left\|\bm{x}_{i}-\bm{a}\right\|}}^{2}$ +. +Therefore, we have +$\displaystyle\sum_{i=1}^{l}p_{i}{{\left\|\bm{x}_{i}\ -\ \bar{\bm{x}}\right\|}}^{2}\ $ +$\displaystyle\leqslant\ \sum_{i=1}^{l}p_{i}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}^{2}\ \leqslant\ (1\ -\ \gamma)\ m_{\max}^{2}\ .$ +(215) +We now bound the variance on the first +$l$ +patterns: +$\displaystyle(1-\gamma)\ {{\left\|\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \sum_{i=1}^{l}p_{i}{{\left\|\left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)\ \left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)^{T}\right\|}}_{2}$ +(216) +$\displaystyle=\ \sum_{i=1}^{l}p_{i}{{\left\|\bm{x}_{i}\ -\ \bar{\bm{x}}\right\|}}^{2}\ \leqslant\ \sum_{i=1}^{l}p_{i}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}^{2}\ \leqslant\ (1\ -\ \gamma)\ m_{\max}^{2}\ .$ +We obtain for the spectral norm of +$\mathrm{J}$ +: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \beta\left((1-\gamma)\ {{\left\|\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\right\|}}_{2}\right.$ +(217) +$\displaystyle+\ \left.\frac{\gamma}{1-\gamma}\ {{\left\|\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\right\|}}_{2}\right.$ +$\displaystyle+\ \left.{{\left\|\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\ \bm{x}_{i}^{T}\right\|}}_{2}\ +\ {{\left\|\left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\right\|}}_{2}\right.$ +$\displaystyle+\ \left.{{\left\|\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)\ \left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)^{T}\right\|}}_{2}\ +\ {{\left\|\left(\sum_{i=l+1}^{N}p_{i}\ \bm{x}_{i}\right)\left(\sum_{i=1}^{l}p_{i}\ \bm{x}_{i}\right)^{T}\right\|}}_{2}\right)$ +$\displaystyle\leqslant\ \beta\left((1-\gamma)\ {{\left\|\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\right\|}}_{2}\ +\ \gamma\ (1-\gamma)\ M^{2}\ +\ \gamma\ M^{2}\ +\ \gamma^{2}\ M^{2}\ +\right.$ +$\displaystyle\left.\gamma\ (1-\gamma)\ M^{2}\ +\ \gamma\ (1-\gamma)\ M^{2}\right)$ +$\displaystyle=\ \beta\left((1-\gamma)\ \ {{\left\|\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\right\|}}_{2}\ +\ \gamma\ 2\ (2\ -\ \gamma)\ M^{2}\right)\ .$ +Combining the previous two estimates immediately +leads to Eq. ( +201 +). +The function +$h(x)=x2(2-x)$ +has the derivative +$h^{\prime}(x)=4(1-x)$ +. +Therefore, +$h(x)$ +is monotone increasing for +$x<1$ +. +For +$0\leqslant\gamma\leqslant\epsilon<1$ +, +we can immediately deduce that +$\gamma 2(2-\gamma)\leqslant\epsilon 2(2-\epsilon)$ +. +Since +$\epsilon$ +is larger than +$\gamma$ +, +we obtain the following +$\epsilon$ +-bound for +${{\left\|\mathrm{J}\right\|}}_{2}$ +: +$\displaystyle{{\left\|\mathrm{J}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \beta\left(\ m_{\max}^{2}\ +\ \epsilon\ 2\ (2\ -\ \epsilon)\ M^{2}\right)\ .$ +(218) +∎ +We revisit the bound on +$(1-\gamma)\ \mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]$ +. +The trace +$\sum_{k=1}^{d}e_{k}$ +is the sum of the eigenvalues +$e_{k}$ +. The spectral norm is equal to the +largest eigenvalue +$e_{1}$ +, that is, the largest singular value. +We obtain: +$\displaystyle{{\left\|\mathbf{\mathrm{Var}}_{\tilde{p}}[\bm{x}_{1:l}]\right\|}}_{2}\ $ +$\displaystyle=\ \mathbf{\mathrm{Tr}}\left(\sum_{i=1}^{l}p_{i}\left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)\ \left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)^{T}\right)\ -\ \sum_{k=2}^{d}e_{k}$ +(219) +$\displaystyle=\ \sum_{i=1}^{l}p_{i}\mathbf{\mathrm{Tr}}\left(\left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)\ \left(\bm{x}_{i}\ -\ \bar{\bm{x}}\right)^{T}\right)\ -\ \sum_{k=2}^{d}e_{k}$ +$\displaystyle=\ \sum_{i=1}^{l}p_{i}{{\left\|\bm{x}_{i}\ -\ \bar{\bm{x}}\right\|}}^{2}\ -\ \sum_{k=2}^{d}e_{k}\ .$ +Therefore, the tightness of the bound depends on eigenvalues +which are not the largest. That is variations which are not +along the strongest variation weaken the bound. +• +Proof of a fixed point by Banach Fixed Point Theorem. +Without restricting the generality, +we assume that the first +$l$ +patterns are +much more probable (and similar +to one another) than the other patterns. +Therefore, we define: +$\displaystyle M\ $ +$\displaystyle:=\ \max_{i}{{\left\|\bm{x}_{i}\right\|}}\ ,$ +(220) +$\displaystyle\gamma\ $ +$\displaystyle=\ \sum_{i=l+1}^{N}p_{i}\ \leqslant\ \epsilon\ ,$ +(221) +$\displaystyle 1-\gamma\ $ +$\displaystyle=\ \sum_{i=1}^{l}p_{i}\ \geq\ 1\ -\ \epsilon\ ,$ +(222) +$\displaystyle\tilde{p}_{i}\ $ +$\displaystyle:=\ \frac{p_{i}}{1-\gamma}\ \leqslant\ p_{i}/(1-\epsilon)\ ,$ +(223) +$\displaystyle\sum_{i=1}^{l}\tilde{p}_{i}\ $ +$\displaystyle=\ 1\ ,$ +(224) +$\displaystyle\bm{m}_{\bm{x}}\ $ +$\displaystyle=\ \frac{1}{l}\ \sum_{i=1}^{l}\ \bm{x}_{i}\ ,$ +(225) +$\displaystyle m_{\max}\ $ +$\displaystyle=\ \max_{1\leqslant i\leqslant l}{{\left\|\bm{x}_{i}\ -\ \bm{m}_{\bm{x}}\right\|}}\ .$ +(226) +$M$ +is an upper bound on the Euclidean norm of the patterns, which are vectors. +$\epsilon$ +is an upper bound on the probability +$\gamma$ +of not choosing one of the first +$l$ +patterns, while +$1-\epsilon$ +is a lower bound the probability +$(1-\gamma)$ +of choosing one of the first +$l$ +patterns. +$\bm{m}_{\bm{x}}$ +is the arithmetic mean (the center) of the first +$l$ +patterns. +$m_{\max}$ +is the maximal distance of the patterns to the center +$\bm{m}_{\bm{x}}$ +. +$\tilde{\bm{p}}$ +is the probability +$\bm{p}$ +normalized for the first +$l$ +patterns. +• +Mapped vectors stay in a compact environment. +We show that if +$\bm{m}_{\bm{x}}$ +is sufficient dissimilar to +other +$\bm{x}_{j}$ +with +$l\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ (N-1)\ N\ \beta\ M^{2}\right)\ ,$ +(301) +the inequality follows from following master inequality +$\displaystyle\Delta_{i}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\ ,$ +(302) +If we assume that +$\mathrm{S}_{i}\cap\mathrm{S}_{j}\neq\emptyset$ +with +$i\neq j$ +, then +the triangle inequality with a point from the intersection gives +$\displaystyle{{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}\ $ +$\displaystyle\leqslant\ \frac{2}{\beta\ N\ M}\ .$ +(303) +Therefore, we have using the Cauchy-Schwarz inequality: +$\displaystyle\Delta_{i}\ $ +$\displaystyle\leqslant\ \bm{x}_{i}^{T}\left(\bm{x}_{i}\ -\ \bm{x}_{j}\right)\ \leqslant\ {{\left\|\bm{x}_{i}\right\|}}\ {{\left\|\bm{x}_{i}\ -\ \bm{x}_{j}\right\|}}\ \leqslant M\ \frac{2}{\beta\ N\ M}\ =\ \frac{2}{\beta\ N}\ .$ +(304) +The last inequality is a contraction to Eq. ( +302 +) +if we assume that +$\displaystyle 1\ $ +$\displaystyle<\ 2\ (N-1)\ N\ \beta\ M^{2}\ .$ +(305) +With this assumption, the spheres +$\mathrm{S}_{i}$ +and +$\mathrm{S}_{j}$ +do +not intersect. Therefore, each +$\bm{x}_{i}$ +has its separate fixed point in +$\mathrm{S}_{i}$ +. +We define +$\displaystyle\Delta_{\min}\ $ +$\displaystyle=\ \min_{1\leqslant i\leqslant N}\Delta_{i}$ +(306) +to obtain the master inequality +$\displaystyle\Delta_{\min}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\ .$ +(307) +• +Patterns on a sphere. +For simplicity and in accordance with the results of the classical Hopfield +network, we assume all +patterns being on a sphere +with radius +$M$ +: +$\displaystyle\forall_{i}:\ {{\left\|\bm{x}_{i}\right\|}}\ $ +$\displaystyle=\ M\ .$ +(308) +Under assumption Eq. ( +305 +) we have only +to show that the master inequality Eq. ( +307 +) is fulfilled +for each +$\bm{x}_{i}$ +to have a separate fixed point near each +$\bm{x}_{i}$ +. +We defined +$\alpha_{ij}$ +as the angle between +$\bm{x}_{i}$ +and +$\bm{x}_{j}$ +. +The minimal angle +$\alpha_{\min}$ +between two +data points is +$\displaystyle\alpha_{\min}\ $ +$\displaystyle=\ \min_{1\leqslant i0$ +such that +$\frac{\kappa_{d-1}}{2}\delta^{(d-1)}\leqslant 1$ +. +Then +$\displaystyle\mathbf{\mathrm{Pr}}(N^{\frac{2}{d-1}}\alpha_{\min}\ \geq\ \delta)\ $ +$\displaystyle\geq\ 1\ -\ \frac{\kappa_{d-1}}{2}\ \delta^{d-1}\ .$ +(324) +Proof. +The statement of the lemma is Eq. (3-6) from Proposition 3.5 in +Brauchart et al. (2018) +. +∎ +Next we derive upper and lower bounds on the constant +$\kappa_{d}$ +since we require them +later for proving storage capacity bounds. +Lemma A14 +. +For +$\kappa_{d}$ +defined in Eq. ( +323 +) +we have the following bounds for every +$d\geq 1$ +: +$\displaystyle\frac{1}{\exp(1/6)\ \sqrt{e\ \pi\ d}}\ $ +$\displaystyle\leqslant\ \kappa_{d}\ \leqslant\ \frac{\exp(1/12)}{\sqrt{2\ \pi\ d}}\ <\ 1\ .$ +(325) +Proof. +We use for +$x>0$ +the following bound related to Stirling’s approximation formula +for the gamma function, c.f. +( +Olver et al., 2010 +, +(5.6.1) +) +: +$\displaystyle 1\ $ +$\displaystyle<\ \Gamma(x)\ (2\ \pi)^{-\ \frac{1}{2}}x^{\frac{1}{2}\ -\ x}\exp(x)\ <\ \exp\left(\frac{1}{12\ x}\right)\ .$ +(326) +Using Stirling’s formula Eq. ( +326 +), we upper bound +$\kappa_{d}$ +: +$\displaystyle\kappa_{d}\ =\ \frac{1}{d\ \sqrt{\pi}}\ \frac{\Gamma((d+1)/2)}{\Gamma(d/2)}\ <\ \frac{1}{d\ \sqrt{\pi}}\ \frac{\exp\left(\frac{1}{6(d+1)}\right)\ \exp\left(-\ \frac{d+1}{2}\right)\ \left(\frac{d+1}{2}\right)^{\frac{d}{2}}}{\exp\left(-\ \frac{d}{2}\right)\ \left(\frac{d}{2}\right)^{\frac{d}{2}\ -\ \frac{1}{2}}}$ +(327) +$\displaystyle=\ \frac{1}{d\ \sqrt{\pi\ e}}\ \exp\left(\frac{1}{6(d+1)}\right)\ \left(1\ +\ \frac{1}{d}\right)^{\frac{d}{2}}\sqrt{\frac{d}{2}}\ \leqslant\ \frac{\exp\left(\frac{1}{12}\right)}{\sqrt{2\ \pi}\ \sqrt{d}}\ .$ +For the first inequality, we applied Eq. ( +326 +), +while for the second we used +$(1+\frac{1}{d})^{d}\ \frac{1}{d\ \sqrt{\pi}}\ \frac{\exp\left(-\ \frac{d+1}{2}\right)\ \left(\frac{d+1}{2}\right)^{\frac{d}{2}}}{\exp\left(\frac{1}{6\ d}\right)\ \exp\left(-\frac{d}{2}\right)\ \left(\frac{d}{2}\right)^{\frac{d}{2}-\frac{1}{2}}}$ +(328) +$\displaystyle=\ \frac{1}{d\ \sqrt{\pi\ e}\ \exp\left(\frac{1}{6\ d}\right)}\ \left(1+\frac{1}{d}\right)^{\frac{d}{2}}\sqrt{\frac{d}{2}}\ \geq\ \frac{1}{\exp\left(\frac{1}{6}\right)\ \sqrt{e\ \pi\ d}}\ ,$ +where the last inequality holds because of monotonicity of +$(1+\frac{1}{d})^{d}$ +and using the fact that for +$d=1$ +it takes on the value 2. +∎ +We require a bound on +$\cos$ +to bound the master inequality +Eq. ( +311 +). +Lemma A15 +. +For +$0\leqslant x\leqslant\pi$ +the function +$\cos$ +can be upper bounded by: +$\displaystyle\cos(x)\ $ +$\displaystyle\leqslant\ 1\ -\ \frac{x^{2}}{5}\ .$ +(329) +Proof. +We use the infinite product representation of +$\cos$ +, c.f. +( +Olver et al., 2010 +, +(4.22.2) +) +: +$\displaystyle\cos(x)\ $ +$\displaystyle=\ \prod_{n=1}^{\infty}\left(1-\frac{4\ x^{2}}{(2n-1)^{2}\ \pi^{2}}\right)\ .$ +(330) +Since it holds that +$\displaystyle 1\ -\ \frac{4\ x^{2}}{(2n-1)^{2}\ \pi^{2}}\ \leqslant\ 1$ +(331) +for +$|x|\leqslant\pi$ +and +$n\geq 2$ +, we can get the following upper bound on +Eq. ( +330 +): +$\displaystyle\cos(x)\ $ +$\displaystyle\leqslant\ \prod_{n=1}^{2}\left(1-\frac{4\ x^{2}}{(2n-1)^{2}\pi^{2}}\right)\ =\ \left(1\ -\ \frac{4\ x^{2}}{\pi^{2}}\right)\ \left(1\ -\ \frac{4\ x^{2}}{9\ \pi^{2}}\right)$ +(332) +$\displaystyle=\ 1\ -\ \frac{40\ x^{2}}{9\ \pi^{2}}\ +\ \frac{16\ x^{4}}{9\ \pi^{4}}\ \leqslant\ 1\ -\ \frac{40\ x^{2}}{9\ \pi^{2}}\ +\ \frac{16\ x^{2}}{9\ \pi^{2}}$ +$\displaystyle=\ 1\ -\ \frac{24\ x^{2}}{9\ \pi^{2}}\ \leqslant\ 1\ -\ \frac{x^{2}}{5}\ .$ +The last but one inequality uses +$x\leqslant\pi$ +, +which implies +$x/\pi\leqslant 1$ +. +Thus Eq. ( +329 +) is proven. +∎ +• +Exponential storage capacity: the base +$c$ +as a function of +the parameter +$\beta$ +, the radius of the sphere +$M$ +, the probability +$p$ +, +and the dimension +$d$ +of the space. +We express the number +$N$ +of stored patterns by an exponential +function with base +$c>1$ +and an exponent linear in +$d$ +. +We derive constraints on he base +$c$ +as a function of +$\beta$ +, the radius of the sphere +$M$ +, +the probability +$p$ +that all patterns can be stored, +and the dimension +$d$ +of the space. +With +$\beta>0$ +, +$K>0$ +, and +$d\geq 2$ +(to ensure a sphere), +the following theorem gives our main result. +Theorem A5 +(Storage Capacity (Main): Random Patterns) +. +We assume a failure probability +$01.27$ +) +and proven for +$c\geq 1.3718$ +with +$\beta=1$ +, +$K=1$ +, +$d=75$ +, and +$p=0.001$ +( +$a+\ln(b)<-0.94$ +). +Proof. +We consider the probability that the master inequality Eq. ( +311 +) +is fulfilled: +$\displaystyle\mathbf{\mathrm{Pr}}\left(M^{2}(1\ -\cos(\alpha_{\min})))\ \geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\right)\ \geq\ 1\ -\ p\ .$ +(336) +Using Eq. ( +329 +), we have: +$\displaystyle 1\ -\ \cos(\alpha_{\min})\ $ +$\displaystyle\geq\ \frac{1}{5}\ \alpha_{\min}^{2}\ .$ +(337) +Therefore, with probability +$1-p$ +the storage capacity is largest +$N$ +that fulfills +$\displaystyle\mathbf{\mathrm{Pr}}\left(M^{2}\frac{\alpha_{min}^{2}}{5}\ \geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\right)\ \geq\ 1\ -\ p\ .$ +(338) +This inequality is equivalent to +$\displaystyle\mathbf{\mathrm{Pr}}\left(N^{\frac{2}{d-1}}\ \alpha_{min}\ \geq\ \frac{\sqrt{5}\ N^{\frac{2}{d-1}}}{M}\ \left(\frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\right)^{\frac{1}{2}}\right)\ \geq\ 1\ -\ p\ .$ +(339) +We use Eq. ( +324 +) to obtain: +$\displaystyle\mathbf{\mathrm{Pr}}\left(N^{\frac{2}{d-1}}\ \alpha_{min}\ \geq\ \frac{\sqrt{5}\ N^{\frac{2}{d-1}}}{M}\ \left(\frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\right)^{\frac{1}{2}}\right)$ +(340) +$\displaystyle\geq\ 1\ -\ \frac{\kappa_{d-1}}{2}\ 5^{\frac{d-1}{2}}\ N^{2}\ M^{-(d-1)}\left(\frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\right)^{\frac{d-1}{2}}\ .$ +For Eq. ( +339 +) to be fulfilled, it is sufficient that +$\displaystyle\frac{\kappa_{d-1}}{2}\ 5^{\frac{d-1}{2}}\ N^{2}\ M^{-(d-1)}\left(\frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta M^{2}\right)\right)^{\frac{d-1}{2}}\ -\ p\ \leqslant\ 0\ .$ +(341) +If we insert the assumption Eq. ( +334 +) of the theorem +into Eq. ( +335 +), then we obtain +$N\geq 2$ +. +We now apply the upper bound +$\kappa_{d-1}/2<\kappa_{d-1}<1$ +from Eq. ( +325 +) +and the upper bound +$\frac{2}{\beta N}\leqslant\frac{1}{\beta}$ +from +$N\geq 2$ +to inequality Eq. ( +341 +). +In the resulting inequality we insert +$N=\sqrt{p}c^{\frac{d-1}{4}}$ +to check whether it is fulfilled +with this special value of +$N$ +and obtain: +$\displaystyle 5^{\frac{d-1}{2}}\ p\ c^{\frac{d-1}{2}}\ M^{-(d-1)}\left(\frac{1}{\beta}\ +\ \frac{1}{\beta}\ \ln\left(2\ p\ c^{\frac{d-1}{2}}\ \beta M^{2}\right)\right)^{\frac{d-1}{2}}\leqslant\ p\ .$ +(342) +Dividing by +$p$ +, inserting +$M=K\sqrt{d-1}$ +, +and exponentiation of the left and right side by +$\frac{2}{d-1}$ +gives: +$\displaystyle\frac{5\ c}{K^{2}\ (d-1)}\left(\frac{1}{\beta}\ +\ \frac{1}{\beta}\ \ln\left(2\ \beta\ c^{\frac{d-1}{2}}\ p\ K^{2}\ (d-1)\right)\right)\ -\ 1\ \leqslant\ 0\ .$ +(343) +After some algebraic manipulation, this inequality can be written as +$\displaystyle a\ c\ +\ c\ \ln(c)\ -\ b\ \leqslant\ 0\ ,$ +(344) +where we used +$\displaystyle a\ $ +$\displaystyle:=\ \frac{2}{d-1}\ (1\ +\ \ln(2\ \beta\ K^{2}\ p\ (d-1)))\ ,\quad b\ :=\ \frac{2\ K^{2}\ \beta}{5}\ .$ +We determine the value +$\hat{c}$ +of +$c$ +which makes the inequality Eq. ( +344 +) equal to zero. +We solve +$\displaystyle a\ \hat{c}\ +\ \hat{c}\ \ln(\hat{c})\ -\ b\ =\ 0$ +(345) +for +$\hat{c}$ +: +$\displaystyle a\ \hat{c}\ +\ \hat{c}\ \ln(\hat{c})\ -\ b\ =\ 0$ +(346) +$\displaystyle\Leftrightarrow\ \ $ +$\displaystyle a\ +\ \ln(\hat{c})\ =\ b/\hat{c}$ +$\displaystyle\Leftrightarrow\ \ $ +$\displaystyle a\ +\ \ln(b)\ +\ \ln(\hat{c}/b)\ =\ b/\hat{c}$ +$\displaystyle\Leftrightarrow\ \ $ +$\displaystyle b/\hat{c}\ +\ \ln(b/\hat{c})\ =\ a\ +\ \ln(b)$ +$\displaystyle\Leftrightarrow\ \ $ +$\displaystyle b/\hat{c}\ \exp(b/\hat{c})\ =\ \exp(a\ +\ \ln(b))$ +$\displaystyle\Leftrightarrow\ \ $ +$\displaystyle b/\hat{c}\ =\ W_{0}(\exp(a\ +\ \ln(b)))$ +$\displaystyle\Leftrightarrow\ \ $ +$\displaystyle\hat{c}\ =\ \frac{b}{W_{0}(\exp(a\ +\ \ln(b))}\ ,$ +where +$W_{0}$ +is the upper branch of the Lambert +$W$ +function (see Def. +A6 +). +Hence, the solution is +$\displaystyle\hat{c}\ $ +$\displaystyle=\ \frac{b}{W_{0}(\exp(a\ +\ \ln(b))}\ .$ +(347) +The solution exist, since the Lambert function +$W_{0}(x)$ +( +Olver et al., 2010 +, +(4.13) +) +is defined +for +$-1/e\ 0\end{cases}$ +(349) +and ensure +$\displaystyle c\ $ +$\displaystyle\geq\ \left(\frac{2}{\sqrt{p}}\right)^{\frac{4}{d-1}}\ .$ +(350) +Then with probability +$1-p$ +, the number of random patterns +that can be stored +is +$\displaystyle N\ $ +$\displaystyle\geq\ \sqrt{p}\ c^{\frac{d-1}{4}}\ .$ +(351) +Examples are +$c\geq 3.1444$ +for +$\beta=1$ +, +$K=3$ +, +$d=20$ +and +$p=0.001$ +( +$a+\ln(b)>1.27$ +) +and +$c\geq 1.2585$ +for +$\beta=1$ +$K=1$ +, +$d=75$ +, and +$p=0.001$ +( +$a+\ln(b)<-0.94$ +). +Proof. +We lower bound the +$c$ +defined in Theorem +A5 +. +According to +( +Hoorfar & Hassani, 2008 +, Theorem 2.3) +we have for any real +$u$ +and +$y>\frac{1}{e}$ +: +$\displaystyle W_{0}(\exp(u))\ $ +$\displaystyle\leqslant\ \ln\left(\frac{\exp(u)\ +\ y}{1\ +\ \ln(y)}\right)\ .$ +(352) +To upper bound +$W_{0}(x)$ +for +$x\in[0,1]$ +, we set +$\displaystyle y\ $ +$\displaystyle=\ 1/W_{0}(1)\ =\ 1/\Omega\ =\ \exp{\Omega}\ =\ -\ 1/\ln\Omega\ \approx\ 1.76322\ ,$ +(353) +where the Omega constant +$\Omega$ +is +$\displaystyle\Omega\ $ +$\displaystyle=\ \left(\int_{-\infty}^{\infty}\frac{\mathrm{d}t}{\left(e^{t}\ -\ t\right)^{2}\ +\ \pi^{2}}\right)^{-1}\ -\ 1\ \approx\ 0.56714329\ .$ +(354) +See for these equations the special values of the Lambert +$W$ +function in Lemma +A31 +. +We have the upper bound on +$W_{0}$ +: +$\displaystyle W_{0}(\exp(u))\ $ +$\displaystyle\leqslant\ \ln\left(\frac{\exp(u)\ +\ 1/\Omega}{1\ +\ \ln(1/\Omega)}\right)\ =\ \ln\left(\frac{\Omega\ \exp(u)\ +\ 1}{\Omega(1\ +\ \Omega)}\right)\ .$ +(355) +At the right hand side of interval +$[0,1]$ +, +we have +$u=0$ +and +$\exp(u)=1$ +and get: +$\displaystyle\ln\left(\frac{\Omega\ 1\ +\ 1}{\Omega(1\ +\ \Omega)}\right)\ =\ \ln\left(\frac{1}{\Omega}\right)\ =\ -\ \ln\left(\Omega\right)\ =\ \Omega\ =\ W_{0}(1)\ .$ +(356) +Therefore, the bound is tight at the right hand side of of interval +$[0,1]$ +, +that is for +$\exp(u)=1$ +, i.e. +$u=0$ +. +We have derived an bound for +$W_{0}(\exp(u))$ +with +$\exp(u)\in[0,1]$ +or, equivalently, +$u\in[-\infty,0]$ +. +We obtain from +Hoorfar & Hassani (2008, Corollary 2.6) +the following bound +on +$W_{0}(\exp(u))$ +for +$1<\exp(u)$ +, or, equivalently +$00$ +. +We set +$u=a+\ln(b)$ +and obtain +$\displaystyle W_{0}(\exp(a\ +\ \ln(b)))\ $ +$\displaystyle\leqslant\ \begin{cases}\ln\left(\frac{\Omega\ \exp(a\ +\ \ln(b))\ +\ 1}{\Omega\ (1\ +\ \Omega)}\right)^{-1}&\text{for }\ a\ +\ \ln(b)\ \leqslant\ 0\ ,\\ +(a\ +\ \ln(b))^{-\frac{a\ +\ \ln(b)}{a\ +\ \ln(b)\ +\ 1}}&\text{for }\ a\ +\ \ln(b)\ >\ 0\end{cases}$ +(358) +We insert this bound into Eq. ( +347 +), the solution for +$\hat{c}$ +, +to obtain the statement of the theorem. +∎ +• +Exponential storage capacity: the dimension +$d$ +of the space +as a function of the parameter +$\beta$ +, the radius of the sphere +$M$ +, +and the probability +$p$ +. +We express the number +$N$ +of stored patterns by an exponential +function with base +$c>1$ +and an exponent linear in +$d$ +. +We derive constraints on the dimension +$d$ +of the space +as a function of +$\beta$ +, the radius of the sphere +$M$ +, +the probability +$p$ +that all patterns can be stored, +and the base of the exponential storage capacity. +The following theorem gives this result. +Theorem A6 +(Storage Capacity (d computed): Random Patterns) +. +We assume a failure probability +$00$ +we have to use the upper branch +$W_{0}$ +of the Lambert +$W$ +function +and for +$a<0$ +we use the lower branch +$W_{-1}$ +of the Lambert +$W$ +function +( +Olver et al., 2010 +, +(4.13) +) +. +We have to ensure that +$-1/e\leqslant a\exp(-b)$ +for a solution to exist. +For +$a=0$ +we have +$\hat{d}=1+\exp(-b)$ +. +Hence, the solution is +$\displaystyle\hat{d}\ $ +$\displaystyle=\ 1\ +\ \frac{1}{a}\ W(a\exp(-b))\ .$ +(375) +Since +$\hat{d}$ +fulfills inequality Eq. ( +369 +) +and therefore also Eq. ( +368 +), +we have a lower bound on the storage capacity +$N$ +: +$\displaystyle N\ $ +$\displaystyle\geq\ \sqrt{p}\ \hat{c}^{\frac{d-1}{4}}\ .$ +(376) +∎ +Corollary A2 +. +We assume a failure probability +$00$ +. We apply Eq. ( +381 +) to Eq. ( +380 +) +with +$u=-\ln(-a)+b-1$ +. +Since +$a<0$ +we get +$\displaystyle d\ >\ 1\ +\ \frac{-\ln(-a)+b}{a}\ .$ +(382) +∎ +• +Storage capacity for the expected minimal separation instead of the probability that all patterns +can be stored. +In contrast to the previous paragraph, we want to argue about the storage capacity +for the expected minimal separation. +Therefore, we will use the following bound on the expectation of +$\alpha_{\min}$ +(minimal angle), +which gives also a bound on the expected of +$\Delta_{\min}$ +(minimal separation): +Lemma A16 +(Proposition 3.6 in +Brauchart et al. (2018) +) +. +We have the following lower bound on the expectation of +$\alpha_{\min}$ +: +$\displaystyle\mathbf{\mathrm{E}}\left[N^{\frac{2}{d-1}}\ \alpha_{\min}\right]\ $ +$\displaystyle\geq\ \left(\frac{\Gamma(\frac{d}{2})}{2(d-1)\ \sqrt{\pi}\ \Gamma(\frac{d-1}{2})}\right)^{-\frac{1}{d-1}}\Gamma(1+\frac{1}{d-1})\ \frac{d^{-\frac{1}{d-1}}}{\Gamma(2+\frac{1}{d-1})}\ :=\ C_{d-1}.$ +(383) +The bound is valid for all +$N\geq 2$ +and +$d\geq 2$ +. +Let us start with some preliminary estimates. +First of all we need some asymptotics for the constant +$C_{d-1}$ +in Eq. ( +383 +): +Lemma A17 +. +The following estimate holds for +$d\geq 2$ +: +$\displaystyle C_{d}\ $ +$\displaystyle\geq\ 1\ -\ \frac{\ln(d+1)}{d}\ .$ +(384) +Proof. +The recursion formula for the Gamma function is +( +Olver et al., 2010 +, +(5.5.1) +) +: +$\displaystyle\Gamma(x+1)\ $ +$\displaystyle=\ x\ \Gamma(x)\ .$ +(385) +We use Eq. ( +325 +) and +the fact that +$d^{\frac{1}{d}}\geq 1$ +for +$d\geq 1$ +to obtain: +$\displaystyle C_{d}\ $ +$\displaystyle\geq\ (2\ \sqrt{d})^{\frac{1}{d}}\Gamma(1+\frac{1}{d})\ \frac{(d+1)^{-\ \frac{1}{d}}}{\Gamma(2+\frac{1}{d})}\ =\ (2\ \sqrt{d})^{\frac{1}{d}}\frac{(d+1)^{-\ \frac{1}{d}}}{1-\frac{1}{d}}\ >\ (d+1)^{\frac{1}{d}}$ +(386) +$\displaystyle=\ \exp(-\frac{1}{d}\ \ln(d+1))\ \geq\ 1\ -\ \frac{1}{d}\ \ln(d+1)\ ,$ +where in the last step we used the elementary inequality +$\exp(x)\geq 1+x$ +, +which follows from the mean value theorem. +∎ +The next theorem states the number of stored patterns +for the expected minimal separation. +Theorem A7 +(Storage Capacity (expected separation): Random Patterns) +. +We assume patterns on the sphere with radius +$M=K\sqrt{d-1}$ +that are randomly chosen. +Then for all values +$c\geq 1$ +for which +$\displaystyle\frac{1}{5}\ (d-1)\ K^{2}\ c^{-1}(1\ -\ \frac{\ln(d-1)}{(d-1)})^{2}\ $ +$\displaystyle\geq\ \frac{2}{\beta\ c^{\frac{d-1}{4}}}\ +\ \frac{1}{\beta}\ \ln\left(2\ c^{\frac{d-1}{2}}\ \beta\ (d-1)\ K^{2}\right)$ +(387) +holds, +the number of stored patterns for the expected minimal separation is at least +$\displaystyle N\ $ +$\displaystyle=\ c^{\frac{d-1}{4}}\ .$ +(388) +The inequality Eq. ( +387 +) is e.g. fulfilled with +$\beta=1$ +, +$K=3$ +, +$c=2$ +and +$d\geq 17$ +. +Proof. +Instead of considering the probability that the master inequality Eq. ( +311 +) +is fulfilled we now consider whether this inequality is fulfilled for the expected minimal distance. +We consider the expectation of the minimal distance +$\Delta_{\min}$ +: +$\displaystyle\mathbf{\mathrm{E}}[\Delta_{\min}]\ $ +$\displaystyle=\ \mathbf{\mathrm{E}}[M^{2}(1\ -\ \cos(\alpha_{\min})))]\ =\ M^{2}(1\ -\ \mathbf{\mathrm{E}}[\cos(\alpha_{\min}))])\ .$ +(389) +For this expectation, the master inequality Eq. ( +311 +) +becomes +$\displaystyle M^{2}(1\ -\ \mathbf{\mathrm{E}}[\cos(\alpha_{\min}))])\ \geq\ \frac{2}{\beta\ N}\ +\ \frac{1}{\beta}\ \ln\left(2\ N^{2}\ \beta\ M^{2}\right)\ .$ +(390) +We want to find the largest +$N$ +that fulfills this inequality. +We apply Eq. ( +329 +) and Jensen’s inequality to deduce the following lower bound: +$\displaystyle 1\ -\ \mathbf{\mathrm{E}}[\cos(\alpha_{\min})]\ $ +$\displaystyle\geq\ \frac{1}{5}\ \mathbf{\mathrm{E}}\left[\alpha_{\min}^{2}\right]\ \geq\ \frac{1}{5}\ \mathbf{\mathrm{E}}[\alpha_{\min}]^{2}\ .$ +(391) +Now we use Eq. ( +383 +) and Eq. ( +384 +) to arrive at +$\displaystyle\mathbf{\mathrm{E}}[\alpha_{\min}]^{2}\ $ +$\displaystyle\geq\ N^{-\frac{4}{d-1}}\ \mathbf{\mathrm{E}}[N^{\frac{2}{d-1}}\ \alpha_{\min}]^{2}\ \geq\ N^{-\frac{4}{d-1}}\ C_{d-1}^{2}\ \geq\ N^{-\frac{4}{d-1}}\ (1-\frac{\ln(d-1)}{(d-1)})^{2}\ ,$ +(392) +for sufficiently large +$d$ +. +Thus in order to fulfill Eq. ( +390 +), it is +enough to find values that satisfy Eq. ( +387 +). +∎ +A.1.6.2 +Retrieval of Patterns with One Update and Small Retrieval Error. +Retrieval of a pattern +$\bm{x}_{i}$ +for fixed point +$\bm{x}_{i}^{*}$ +and query +$\bm{\xi}$ +is defined via an +$\epsilon$ +by +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}<\epsilon$ +, +that is, the update is +$\epsilon$ +-close to the fixed point. +The update rule retrieves a pattern with one update for well separated patterns, that is, +$\Delta_{i}$ +is large. +Theorem A8 +(Pattern Retrieval with One Update) +. +With query +$\bm{\xi}$ +, after one update the distance of the new point +$f(\bm{\xi})$ +to the fixed point +$\bm{x}_{i}^{*}$ +is exponentially small in the separation +$\Delta_{i}$ +. +The precise bounds using the Jacobian +$\mathrm{J}=\frac{\partial f(\bm{\xi})}{\partial\bm{\xi}}$ +and its value +$\mathrm{J}^{m}$ +in the mean value +theorem are: +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}\ ,$ +(393) +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(394) +For given +$\epsilon$ +and +sufficient large +$\Delta_{i}$ +, we have +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}<\epsilon$ +, +that is, retrieval with one update. +Proof. +From Eq. ( +180 +) we have +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(395) +After every iteration the mapped point +$f(\bm{\xi})$ +is closer to the fixed point +$\bm{x}_{i}^{*}$ +than the original point +$\bm{x}_{i}$ +: +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}^{m}\right\|}}_{2}\ {{\left\|\bm{\xi}\ -\ \bm{x}_{i}^{*}\right\|}}\ .$ +(396) +For given +$\epsilon$ +and +sufficient large +$\Delta_{i}$ +, we have +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}<\epsilon$ +, +since +${{\left\|\mathrm{J}^{m}\right\|}}_{2}$ +foes exponentially fast to zero with increasing +$\Delta_{i}$ +. +∎ +We want to estimate how large +$\Delta_{i}$ +is. +For +$\bm{x}_{i}$ +we have: +$\displaystyle\Delta_{i}\ $ +$\displaystyle=\ \min_{j,j\not=i}\left(\bm{x}_{i}^{T}\bm{x}_{i}\ -\ \bm{x}_{i}^{T}\bm{x}_{j}\right)\ =\ \bm{x}_{i}^{T}\bm{x}_{i}\ -\ \max_{j,j\not=i}\bm{x}_{i}^{T}\bm{x}_{j}\ .$ +(397) +To estimate how large +$\Delta_{i}$ +is, +assume vectors +$\bm{x}\in\mathbb{R}^{d}$ +and +$\bm{y}\in\mathbb{R}^{d}$ +that have as components +standard normally distributed values. +The expected value of the separation of two points +with normally distributed components is +$\displaystyle\mathbf{\mathrm{E}}\left[\bm{x}^{T}\bm{x}\ -\ \bm{x}^{T}\bm{y}\right]\ $ +$\displaystyle=\ \sum_{j=1}^{d}\mathbf{\mathrm{E}}\left[x_{j}^{2}\right]\ +\ \sum_{j=1}^{d}\mathbf{\mathrm{E}}\left[x_{j}\right]\sum_{j=1}^{d}\mathbf{\mathrm{E}}\left[y_{j}\right]\ =\ d\ .$ +(398) +The variance of the separation of two points +with normally distributed components is +$\displaystyle\mathbf{\mathrm{Var}}\left[\bm{x}^{T}\bm{x}\ -\ \bm{x}^{T}\bm{y}\right]\ =\ \mathbf{\mathrm{E}}\left[\left(\bm{x}^{T}\bm{x}\ -\ \bm{x}^{T}\bm{y}\right)^{2}\right]\ -\ d^{2}$ +(399) +$\displaystyle=\ \sum_{j=1}^{d}\mathbf{\mathrm{E}}\left[x_{j}^{4}\right]\ +\ \sum_{j=1,k=1,k\not=j}^{d}\mathbf{\mathrm{E}}\left[x_{j}^{2}\right]\ \mathbf{\mathrm{E}}\left[x_{k}^{2}\right]\ \ -\ 2\ \sum_{j=1}^{d}\mathbf{\mathrm{E}}\left[x_{j}^{3}\right]\mathbf{\mathrm{E}}\left[y_{j}\right]\ -$ +$\displaystyle 2\ \sum_{j=1,k=1,k\not=j}^{d}\mathbf{\mathrm{E}}\left[x_{j}^{2}\right]\mathbf{\mathrm{E}}\left[x_{k}\right]\mathbf{\mathrm{E}}\left[y_{k}\right]\ +\ \sum_{j=1}^{d}\mathbf{\mathrm{E}}\left[x_{j}^{2}\right]\ \mathbf{\mathrm{E}}\left[y_{j}^{2}\right]\ +$ +$\displaystyle\sum_{j=1,k=1,k\not=j}^{d}\mathbf{\mathrm{E}}\left[x_{j}\right]\mathbf{\mathrm{E}}\left[y_{j}\right]\mathbf{\mathrm{E}}\left[x_{k}\right]\mathbf{\mathrm{E}}\left[y_{k}\right]\ -\ d^{2}$ +$\displaystyle=3\ d\ +\ d\ (d-1)\ +\ d\ -\ d^{2}\ =\ 3\ d\ .$ +The expected value for the separation of two random vectors gives: +$\displaystyle{{\left\|\mathrm{J}^{m}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \beta\ N\ M^{2}\ (N-1)\exp(-\ \beta\ (d\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(400) +For the exponential storage we set +$M=2\sqrt{d-1}$ +. +We see the Lipschitz constant +${{\left\|\mathrm{J}^{m}\right\|}}_{2}$ +decreases exponentially with the dimension. +Therefore, +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}^{*}\right\|}}$ +is exponentially small after just one update. +Therefore, the fixed point is well retrieved after one update. +The retrieval error decreases exponentially with the separation +$\Delta_{i}$ +. +Theorem A9 +(Exponentially Small Retrieval Error) +. +The retrieval error +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}\right\|}}$ +of pattern +$\bm{x}_{i}$ +is bounded by +$\displaystyle{{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}\right\|}}\ $ +$\displaystyle\leqslant\ 2\ (N-1)\ \exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ M$ +(401) +and for +${{\left\|\bm{x}_{i}-\bm{x}_{i}^{*}\right\|}}\leqslant\frac{1}{2\ \beta\ M}$ +together with +${{\left\|\bm{x}_{i}-\bm{\xi}\right\|}}\leqslant\frac{1}{2\ \beta\ M}$ +by +$\displaystyle{{\left\|\bm{x}_{i}\ -\ \bm{x}_{i}^{*}\right\|}}\ $ +$\displaystyle\leqslant\ 2\ e\ (N-1)\ M\ \exp(-\ \beta\ \Delta_{i})\ .$ +(402) +Proof. +We compute the retrieval error which is just +${{\left\|f(\bm{\xi})\ -\ \bm{x}_{i}\right\|}}$ +. +From Lemma +A4 +we have +$\displaystyle{{\left\|\bm{x}_{i}\ -\ f(\bm{\xi})\right\|}}\ $ +$\displaystyle\leqslant\ 2\ \epsilon\ M\ ,$ +(403) +From Eq. ( +179 +) we have +$\displaystyle\epsilon\ $ +$\displaystyle=\ (N-1)\exp(-\ \beta\ (\Delta_{i}\ -\ 2\ \max\{{{\left\|\bm{\xi}\ -\ \bm{x}_{i}\right\|}},{{\left\|\bm{x}_{i}^{*}\ -\ \bm{x}_{i}\right\|}}\}\ M))\ .$ +(404) +For +${{\left\|\bm{x}_{i}-\bm{x}_{i}^{*}\right\|}}\leqslant\frac{1}{2\ \beta\ M}$ +and +${{\left\|\bm{x}_{i}-\bm{\xi}\right\|}}\leqslant\frac{1}{2\ \beta\ M}$ +Eq. ( +404 +) +gives +$\displaystyle\epsilon\ $ +$\displaystyle\leqslant\ e\ (N-1)\ M\ \exp(-\ \beta\ \Delta_{i})\ .$ +(405) +∎ +A.1.7 +Learning Associations +We consider three cases of learning associations, +i.e. three cases of how sets are associated. +(i) Non of the sets is mapped in an associative space. +The raw state pattern +$\bm{r}_{n}$ +is the state (query) pattern +$\bm{\xi}_{n}$ +, +i.e. +$\bm{\xi}_{n}=\bm{r}_{n}$ +, and the raw stored pattern +$\bm{y}_{s}$ +is +the stored pattern (key), i.e. +$\bm{x}_{s}=\bm{y}_{s}$ +. +(ii) Either one of the sets is mapped to the space of the +other set or an association matrix is learned. +(iia) The state patterns are equal to the raw patterns, i.e. +$\bm{\xi}_{n}=\bm{r}_{n}$ +, and +raw stored patterns are mapped via +$\bm{W}$ +to the space of the state patterns, +i.e. +$\bm{x}_{s}=\bm{W}\bm{y}_{s}$ +. +(iib) The stored patterns are equal to the raw patterns, i.e. +$\bm{x}_{s}=\bm{y}_{s}$ +, and raw +state patterns are mapped via +$\bm{W}$ +to the space of the stored patterns, i.e. +$\bm{\xi}_{n}=\bm{W}^{T}\bm{r}_{n}$ +. +(iic) The matrix +$\bm{W}$ +is an association matrix. +We will compute the derivative of the new state pattern +with respect to +$\bm{W}$ +, which is valid for all sub-cases (iib)–(iic). +(iii) Both set of patterns are mapped in a common associative space. +A raw state pattern +$\bm{r}_{n}$ +is mapped by +$\bm{W}_{Q}$ +to a state pattern (query) +$\bm{\xi}_{n}$ +, +that is +$\bm{\xi}_{n}=\bm{W}_{Q}\bm{r}_{n}$ +. +A raw stored pattern +$\bm{y}_{s}$ +is mapped via +$\bm{W}_{K}$ +to stored pattern (key) +$\bm{x}_{s}$ +, that is +$\bm{x}_{s}=\bm{W}_{K}\bm{y}_{s}$ +. +We will compute the derivative of the new state pattern with respect to both +$\bm{W}_{Q}$ +and +$\bm{W}_{K}$ +. +A.1.7.1 +Association of Raw Patterns – No Mapping in an Associative Space. +The sets are associated via their raw patterns, +i.e. the raw state pattern +$\bm{r}_{n}$ +is the state (query) pattern +$\bm{\xi}_{n}$ +, +i.e. +$\bm{\xi}_{n}=\bm{r}_{n}$ +, and raw stored pattern +$\bm{y}_{s}$ +is +the stored pattern (key), i.e. +$\bm{x}_{s}=\bm{y}_{s}$ +. +There is no mapping in an associative space. +The update rule is +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{X}\ \bm{p}\ ,$ +(406) +where we used +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\ \bm{X}^{T}\bm{\xi})\ .$ +(407) +The derivative with respect to +$\bm{\xi}$ +is +$\displaystyle\frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}}\ $ +$\displaystyle=\ \beta\ \bm{X}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{X}^{T}$ +(408) +The derivative with respect to +$\bm{X}$ +is +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{X}}\ $ +$\displaystyle=\ \bm{a}\ \bm{p}^{T}\ +\ \beta\ \bm{X}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ (\bm{\xi}^{T}\bm{a})\ .$ +(409) +These derivatives allow to apply the chain rule if a +Hopfield layer is integrated into a deep neural network. +A.1.7.2 +Learning an Association Matrix – Only One Set is Mapped in an Associative Space. +Only one of the sets +$\bm{R}$ +or +$\bm{Y}$ +is mapped in the space of +the patterns of the other set. +Case (a): the state patterns are equal to the raw patterns +$\bm{\xi}_{n}=\bm{r}_{n}$ +and +raw stored patterns are mapped via +$\bm{W}$ +to the space of the state patterns, i.e. +$\bm{x}_{s}=\bm{W}\bm{y}_{s}$ +. +Case (b): the stored patterns are equal to the raw patterns +$\bm{x}_{s}=\bm{y}_{s}$ +and raw state patterns are mapped via +$\bm{W}$ +to the space of the stored patterns, i.e. +$\bm{\xi}_{n}=\bm{W}^{T}\bm{r}_{n}$ +. +Case (c): the matrix +$\bm{W}$ +associates the sets +$\bm{R}$ +and +$\bm{Y}$ +. +This case also includes that +$\bm{W}^{T}=\bm{W}_{K}^{T}\bm{W}_{Q}$ +, which is treated +in next subsection. +The next subsection focuses on a low rank approximation of +$\bm{W}$ +by defining +the dimension +$d_{k}$ +of associative space and use the matrices +$\bm{W}_{K}^{T}$ +and +$\bm{W}_{Q}$ +to define +$\bm{W}$ +, or equivalently to map +$\bm{R}$ +and +$\bm{Y}$ +into the associative space. +From a mathematical point of view all these case are equal as they +lead to the same update rule. +Therefore, we consider in the following Case (a) with +$\bm{x}_{s}=\bm{W}\bm{y}_{s}$ +and +$\bm{\xi}_{n}=\bm{r}_{n}$ +. +Still, the following formula are valid for +all three cases (a)–(c). +The update rule is +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{W}\ \bm{Y}\ \bm{p}\ ,$ +(410) +where we used +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\ \bm{Y}^{T}\bm{W}^{T}\bm{\xi})\ .$ +(411) +We consider the state (query) pattern +$\bm{\xi}$ +with result +$\bm{\xi}^{\mathrm{new}}$ +: +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{W}\ \bm{Y}\ \bm{p}\ =\ \bm{W}\ \bm{Y}\ \mathrm{softmax}(\beta\ \bm{Y}^{T}\bm{W}^{T}\bm{\xi})$ +(412) +For multiple updates this update rule has to be used. +However for a single update, or the last update we consider a +simplified update rule. +Since new state vector +$\bm{\xi}^{\mathrm{new}}$ +is projected +by a weight matrix +$\bm{W}_{V}$ +to another vector, we consider the simplified update rule: +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{Y}\ \bm{p}\ =\ \bm{Y}\ \mathrm{softmax}(\beta\ \bm{Y}^{T}\bm{W}^{T}\bm{\xi})$ +(413) +The derivative with respect to +$\bm{W}$ +is +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}}\ $ +$\displaystyle=\ \frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ =\ \frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial(\bm{W}^{T}\bm{\xi})}\ \frac{\partial(\bm{W}^{T}\bm{\xi})}{\partial\bm{W}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ .$ +(414) +$\displaystyle\frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial(\bm{W}^{T}\bm{\xi})}\ $ +$\displaystyle=\ \beta\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}$ +(415) +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ $ +$\displaystyle=\ \bm{a}\ .$ +(416) +We have the product of the 3-dimensional tensor +$\frac{\partial(\bm{W}^{T}\bm{\xi})}{\partial\bm{W}}$ +with the +vector +$\bm{a}$ +which gives a 2-dimensional tensor, i.e. a +matrix: +$\displaystyle\frac{\partial(\bm{W}^{T}\bm{\xi})}{\partial\bm{W}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ $ +$\displaystyle=\ \frac{\partial(\bm{W}^{T}\bm{\xi})}{\partial\bm{W}}\ \bm{a}\ =\ \bm{\xi}^{T}\bm{a}\bm{I}\ .$ +(417) +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}}\ $ +$\displaystyle=\ \beta\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}(\bm{\xi}^{T}\bm{a})\ =\ \mathrm{J}\ (\bm{\xi}^{T}\bm{a})\ ,$ +(418) +where +$\mathrm{J}$ +is the Jacobian of the update rule defined in Eq. ( +59 +). +To obtain the derivative of the full update rule Eq. ( +412 +) +we have to add the term +$\displaystyle\bm{a}\ \bm{p}^{T}\bm{Y}^{T}$ +(419) +and include the factor +$\bm{W}$ +to get +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}}\ $ +$\displaystyle=\ \bm{a}\ \bm{p}^{T}\bm{Y}^{T}\ +\ \beta\ \bm{W}\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}(\bm{\xi}^{T}\bm{a})$ +(420) +$\displaystyle=\ \bm{a}\ \bm{p}^{T}\bm{Y}^{T}\ +\ \bm{W}\ \mathrm{J}\ (\bm{\xi}^{T}\bm{a})\ .$ +A.1.7.3 +Learning Two Association Mappings – Both Sets are Mapped in an Associative Space. +Both sets +$\bm{R}$ +and +$\bm{Y}$ +are mapped in an associative space. +Every raw state pattern +$\bm{r}_{n}$ +is mapped via +$\bm{W}_{Q}$ +to a state pattern (query) +$\bm{\xi}_{n}=\bm{W}_{Q}\bm{r}_{n}$ +. +Every raw stored pattern +$\bm{y}_{s}$ +is mapped via +$\bm{W}_{K}$ +to a stored pattern (key) +$\bm{x}_{s}=\bm{W}_{K}\bm{y}_{s}$ +. +In the last subsection we considered a single matrix +$\bm{W}$ +. +For +$\bm{W}^{T}=\bm{W}_{K}^{T}\bm{W}_{Q}$ +we have the case of the last subsection. +However in this subsection we are looking for a +low rank approximation of +$\bm{W}$ +. +Toward this end we define the dimension +$d_{k}$ +of associative space and use the matrices +$\bm{W}_{K}^{T}$ +and +$\bm{W}_{Q}$ +to map to the associative space. +The update rule is +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{X}\ \bm{p}\ ,$ +(421) +where we used +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\ \bm{X}^{T}\bm{\xi})\ .$ +(422) +We consider raw state patterns +$\bm{r}_{n}$ +that are mapped to +state patterns +$\bm{\xi}_{n}=\bm{W}_{Q}\bm{r}_{n}$ +with +$\bm{Q}^{T}=\bm{\Xi}=\bm{W}_{Q}\bm{R}$ +and raw stored pattern +$\bm{y}_{s}$ +that are mapped to +stored patterns +$\bm{x}_{s}=\bm{W}_{K}\bm{y}_{s}$ +with +$\bm{K}^{T}=\bm{X}=\bm{W}_{K}\bm{Y}$ +. +The update rule is +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{W}_{K}\ \bm{Y}\ \bm{p}\ =\ \bm{W}_{K}\ \bm{Y}\ \mathrm{softmax}(\beta\ \bm{Y}^{T}\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})\ .$ +(423) +Since new state vector +$\bm{\xi}^{\mathrm{new}}$ +is projected +by a weight matrix +$\bm{W}_{V}$ +to another vector, we consider the simplified update rule: +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{Y}\ \bm{p}\ =\ \bm{Y}\ \mathrm{softmax}(\beta\ \bm{Y}^{T}\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})\ .$ +(424) +For the simplified update rule, +the vector +$\bm{\xi}^{\mathrm{new}}$ +does not live in the associative space but +in the space of raw stored pattern +$\bm{y}$ +. +However +$\bm{W}_{K}$ +would map it to the associative space. +• +Derivative with respect to +$\bm{W}_{Q}$ +. +The derivative with respect to +$\bm{W}_{Q}$ +is +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{Q}}\ $ +$\displaystyle=\ \frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{Q}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ =\ \frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial(\bm{W}_{Q}\ \bm{r})}\ \frac{\partial(\bm{W}_{Q}\ \bm{r})}{\partial\bm{W}_{Q}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ .$ +(425) +$\displaystyle\frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial(\bm{W}_{Q}\ \bm{r})}\ $ +$\displaystyle=\ \beta\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}\bm{W}_{K}^{T}$ +(426) +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ $ +$\displaystyle=\ \bm{a}\ .$ +(427) +We have the product of the 3-dimensional tensor +$\frac{\partial(\bm{W}_{Q}\bm{r})}{\partial\bm{W}_{Q}}$ +with the +vector +$\bm{a}$ +which gives a 2-dimensional tensor, i.e. a +matrix: +$\displaystyle\frac{\partial(\bm{W}_{Q}\ \bm{r})}{\partial\bm{W}_{Q}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ $ +$\displaystyle=\ \frac{\partial(\bm{W}_{Q}\ \bm{r})}{\partial\bm{W}_{Q}}\ \bm{a}\ =\ \bm{r}^{T}\bm{a}\ \bm{I}\ .$ +(428) +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{Q}}\ $ +$\displaystyle=\ \beta\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}\ \bm{W}_{K}^{T}(\bm{r}^{T}\bm{a})\ =\ \mathrm{J}\ \bm{W}_{K}^{T}(\bm{r}^{T}\bm{a})\ ,$ +(429) +where +$\mathrm{J}$ +is the Jacobian of the update rule defined in Eq. ( +59 +). +To obtain the derivative of the full update rule Eq. ( +423 +) +we have to include the factor +$\bm{W}_{K}$ +, then get +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{Q}}\ $ +$\displaystyle=\ \beta\ \bm{W}_{K}\ \bm{Y}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}\ \bm{W}_{K}^{T}(\bm{r}^{T}\bm{a})\ =\ \bm{W}_{K}\ \mathrm{J}\ \bm{W}_{K}^{T}(\bm{r}^{T}\bm{a})\ .$ +(430) +• +Derivative with respect to +$\bm{W}_{K}$ +. +The derivative with respect to +$\bm{W}_{K}$ +is +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{K}}\ $ +$\displaystyle=\ \frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{K}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ =\ \frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial(\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})}\ \frac{\partial(\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})}{\partial\bm{W}_{K}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ .$ +(431) +$\displaystyle\frac{\partial\bm{\xi}^{\mathrm{new}}}{\partial(\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})}\ $ +$\displaystyle=\ \beta\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}$ +(432) +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ $ +$\displaystyle=\ \bm{a}\ .$ +(433) +We have the product of the 3-dimensional tensor +$\frac{\partial(\bm{W}\bm{r})}{\partial\bm{W}_{K}}$ +with the +vector +$\bm{a}$ +which gives a 2-dimensional tensor, i.e. a +matrix: +$\displaystyle\frac{\partial(\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})}{\partial\bm{W}_{K}}\ \frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{\xi}^{\mathrm{new}}}\ $ +$\displaystyle=\ \frac{\partial(\bm{W}_{K}^{T}\bm{W}_{Q}\ \bm{r})}{\partial\bm{W}_{K}}\ \bm{a}\ =\ \bm{W}_{Q}^{T}\bm{r}^{T}\bm{a}\ \bm{I}\ .$ +(434) +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{K}}\ $ +$\displaystyle=\ \beta\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}\ (\bm{W}_{Q}^{T}\bm{r}^{T}\bm{a})\ =\ \mathrm{J}\ (\bm{W}_{Q}^{T}\bm{r}^{T}\bm{a})\ ,$ +(435) +where +$\mathrm{J}$ +is the Jacobian of the update rule defined in Eq. ( +59 +). +To obtain the derivative of the full update rule Eq. ( +423 +) +we have to add the term +$\displaystyle\bm{a}\ \bm{p}^{T}\bm{Y}^{T}$ +(436) +and to include the factor +$\bm{W}_{K}$ +, then get +$\displaystyle\frac{\partial\bm{a}^{T}\bm{\xi}^{\mathrm{new}}}{\partial\bm{W}_{K}}\ $ +$\displaystyle=\ \bm{a}\ \bm{p}^{T}\bm{Y}^{T}\ +\ \beta\ \bm{W}_{K}\ \bm{Y}\ \left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ \bm{Y}^{T}(\bm{W}_{Q}^{T}\bm{r}^{T}\bm{a})$ +(437) +$\displaystyle=\ \bm{a}\ \bm{p}^{T}\bm{Y}^{T}\ +\ \bm{W}_{K}\ \mathrm{J}\ (\bm{W}_{Q}^{T}\bm{r}^{T}\bm{a})\ .$ +A.1.8 +Infinite Many Patterns and Forgetting Patterns +In the next subsection we show how +the new Hopfield networks can be used for auto-regressive tasks +by causal masking. +In the following subsection, +we introduce forgetting to the new Hopfield networks +by adding a negative value to the softmax which is larger +if the pattern was observed more in the past. +A.1.8.1 +Infinite Many Patterns. +The new Hopfield networks can be used for auto-regressive tasks, +that is time series prediction and similar. +Causal masking masks out the future by a large negative +value in the softmax. +We assume to have infinite many stored patterns (keys) +$\bm{x}_{1},\bm{x}_{2},\ldots$ +that are represented by the infinite matrix +$\displaystyle\bm{X}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\bm{x}_{2},\ldots,\right)\ .$ +(438) +The pattern index is now a time index, that is, +we observe +$\bm{x}_{t}$ +at time +$t$ +. +The pattern matrix at time +$t$ +is +$\displaystyle\bm{X}_{t}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\bm{x}_{2},\ldots,\bm{x}_{t}\right)\ .$ +(439) +The query at time +$t$ +is +$\bm{\xi}_{t}$ +. +For +$M_{t}=\max_{1\leqslant i\leqslant t}{{\left\|\bm{x}_{t}\right\|}}$ +, +the energy function at time +$t$ +is +$\mathrm{E}_{t}$ +$\displaystyle\mathrm{E}_{t}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}_{t}^{T}\bm{\xi}_{t})\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}$ +(440) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{t}\exp(\beta\bm{x}_{i}^{T}\bm{\xi}_{t})\right)\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}\ .$ +(441) +The update rule is +$\displaystyle\bm{\xi}_{t}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{X}_{t}\ \bm{p}_{t}\ =\ \bm{X}_{t}\ \mathrm{softmax}(\beta\ \bm{X}_{t}^{T}\bm{\xi}_{t})\ ,$ +(442) +where we used +$\displaystyle\bm{p}_{t}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\ \bm{X}_{t}^{T}\bm{\xi}_{t})\ .$ +(443) +We can use an infinite pattern matrix with +an infinite softmax when using causal masking. +The pattern matrix at time +$t$ +is +$\displaystyle\bm{X}_{t}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\bm{x}_{2},\ldots,\bm{x}_{t},-\alpha\bm{\xi}_{t},-\alpha\bm{\xi}_{t},\ldots\right)\ ,$ +(444) +with the query +$\bm{\xi}_{t}$ +and +$\alpha\to\infty$ +. +The energy function at time +$t$ +is +$\mathrm{E}_{t}$ +$\displaystyle\mathrm{E}_{t}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}_{t}^{T}\bm{\xi}_{t})\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}$ +(445) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{t}\exp(\beta\bm{x}_{i}^{T}\bm{\xi}_{t})\ +\ \sum_{i=t+1}^{\lfloor\alpha\rfloor}\exp(-\beta\alpha{{\left\|\bm{\xi}_{t}\right\|}}^{2})\right)\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +$ +(446) +$\displaystyle~~~~~~~\beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}\ .$ +For +$\alpha\to\infty$ +and +${{\left\|\bm{\xi}_{t}\right\|}}>0$ +this becomes +$\displaystyle\mathrm{E}_{t}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}_{t}^{T}\bm{\xi}_{t})\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}$ +(447) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{t}\exp(\beta\bm{x}_{i}^{T}\bm{\xi}_{t})\right)\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}\ .$ +(448) +A.1.8.2 +Forgetting Patterns. +We introduce forgetting to the new Hopfield networks +by adding a negative value in the softmax which increases +with patterns that are more in the past. +We assume to have infinite many patterns +$\bm{x}_{1},\bm{x}_{2},\ldots$ +that are represented by the infinite matrix +$\displaystyle\bm{X}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\bm{x}_{2},\ldots,\right)\ .$ +(449) +The pattern index is now a time index, that is, +we observe +$\bm{x}_{t}$ +at time +$t$ +. +The pattern matrix at time +$t$ +is +$\displaystyle\bm{X}_{t}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\bm{x}_{2},\ldots,\bm{x}_{t}\right)\ .$ +(450) +The query at time +$t$ +is +$\bm{\xi}_{t}$ +. +The energy function with forgetting parameter +$\gamma$ +at time +$t$ +is +$\mathrm{E}_{t}$ +$\displaystyle\mathrm{E}_{t}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}_{t}^{T}\bm{\xi}_{t}\ -\ \gamma(t-1,t-2,\ldots,0)^{T})\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}$ +(451) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{T}\exp(\beta\bm{x}_{i}^{T}\bm{\xi}_{t}\ -\ \gamma(t-i))\right)\ +\ \frac{1}{2}\bm{\xi}_{t}^{T}\bm{\xi}_{t}\ +\ \beta^{-1}\ln t\ +\ \frac{1}{2}M_{t}^{2}\ .$ +(452) +The update rule is +$\displaystyle\bm{\xi}_{t}^{\mathrm{new}}\ $ +$\displaystyle=\ \bm{X}_{t}\ \bm{p}_{t}\ =\ \bm{X}_{t}\ \mathrm{softmax}(\beta\bm{X}_{t}^{T}\bm{\xi}_{t})\ ,$ +(453) +where we used +$\displaystyle\bm{p}_{t}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{X}_{t}^{T}\bm{\xi}_{t})\ .$ +(454) +A.1.9 +Number of Spurious States +The energy +$\mathrm{E}$ +is defined as +$\displaystyle\mathrm{E}\ $ +$\displaystyle=\ -\ \mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi})\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}M^{2}$ +(455) +$\displaystyle=\ -\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)\ +\ \beta^{-1}\ln N\ +\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}\ +\ \frac{1}{2}M^{2}\ .$ +(456) +Since the negative exponential function is strict monotonic decreasing, +$\exp(-\mathrm{E})$ +has minima, where +$\mathrm{E}$ +has maxima, and has maxima, +where as has minima +$\mathrm{E}$ +. +$\displaystyle\exp(-\mathrm{E})\ $ +$\displaystyle=\ \exp(\mathrm{lse}(\beta,\bm{X}^{T}\bm{\xi}))\ \exp(-\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi})\ C$ +(457) +$\displaystyle=\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)^{\beta^{-1}}\ \exp(-\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi})\ C$ +$\displaystyle=\left(\sum_{i=1}^{N}\exp(\beta\bm{x}_{i}^{T}\bm{\xi})\right)^{\beta^{-1}}\ \left(\exp(-\ \beta\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi})\right)^{\beta^{-1}}\ C$ +$\displaystyle=\left(\sum_{i=1}^{N}\exp(\beta\ (\bm{x}_{i}^{T}\bm{\xi}\ -\ \frac{1}{2}\bm{\xi}^{T}\bm{\xi}))\right)^{\beta^{-1}}\ C$ +$\displaystyle=\left(\sum_{i=1}^{N}\exp(\frac{1}{2}\ \beta\ \bm{x}_{i}^{T}\bm{x}_{i}\ -\ \frac{1}{2}\ \beta\ (\bm{\xi}\ -\ \bm{x}_{i})^{T}(\bm{\xi}\ -\ \bm{x}_{i}))\right)^{\beta^{-1}}\ C$ +$\displaystyle=\left(\sum_{i=1}^{N}\lambda(\bm{x}_{i},\beta)\ G(\bm{\xi};\bm{x}_{i},\beta^{-1}\ \bm{I})\right)^{\beta^{-1}}\ C\ ,$ +where +$C$ +is a positive constant, +$\lambda(\bm{x}_{i},\beta)=\exp(\frac{1}{2}\beta\bm{x}_{i}^{T}\bm{x}_{i})$ +and +$G(\bm{\xi};\bm{x}_{i},\beta^{-1}\bm{I})$ +is the Gaussian with mean +$\bm{x}_{i}$ +and covariance matrix +$\beta^{-1}\bm{I}$ +. +Since +$C$ +is a positive constant and +$x^{\beta^{-1}}=\exp(\beta^{-1}\ln x)$ +is +strict monotonic for positive +$x$ +, the minima of +$\mathrm{E}$ +are the maxima of +$\displaystyle\sum_{i=1}^{N}\lambda(\bm{x}_{i},\beta)\ G(\bm{\xi};\bm{x}_{i},\beta^{-1}\ \bm{I})\ .$ +(458) +In +Carreira-Perpiñán & +Williams (2003) +it was shown +that Eq. ( +458 +) can have more than +$N$ +modes, that is, more +than +$N$ +maxima. +A.2 +Properties of Softmax, Log-Sum-Exponential, Legendre Transform, Lambert W Function +For +$\beta>0$ +, the +softmax +is defined as +Definition A1 +(Softmax) +. +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{x})$ +(459) +$\displaystyle p_{i}\ $ +$\displaystyle=\ [\mathrm{softmax}(\beta\bm{x})]_{i}\ =\ \frac{\exp(\beta x_{i})}{\sum_{k}\exp(\beta x_{k})}\ .$ +(460) +We also need the +log-sum-exp function +( +$\mathrm{lse}$ +), defined as +Definition A2 +(Log-Sum-Exp Function) +. +$\displaystyle\mathrm{lse}(\beta,\bm{x})\ $ +$\displaystyle=\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta x_{i})\right)\ .$ +(461) +We can formulate the +$\mathrm{lse}$ +in another base: +$\displaystyle\beta_{a}\ $ +$\displaystyle=\ \frac{\beta}{\ln a}\ ,$ +(462) +$\displaystyle\mathrm{lse}(\beta,\bm{x})\ $ +$\displaystyle=\ \beta^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta\ x_{i})\right)$ +(463) +$\displaystyle=\ \left(\beta_{a}\ \ln a\right)^{-1}\ln\left(\sum_{i=1}^{N}\exp(\beta_{a}\ \ln a\ x_{i})\right)$ +$\displaystyle=\ \left(\beta_{a}\right)^{-1}\log_{a}\left(\sum_{i=1}^{N}a^{\beta_{a}\ x_{i}}\right)\ .$ +In particular, the base +$a=2$ +can be used to speed up computations. +Next, we give the relation between the softmax and the +$\mathrm{lse}$ +function. +Lemma A18 +. +The softmax is the gradient of the +$\mathrm{lse}$ +: +$\displaystyle\mathrm{softmax}(\beta\bm{x})\ $ +$\displaystyle=\ \nabla_{\bm{x}}\mathrm{lse}(\beta,\bm{x})\ .$ +(464) +In the next lemma we report some important properties of the +$\mathrm{lse}$ +function. +Lemma A19 +. +We define +$\displaystyle\mathrm{L}\ $ +$\displaystyle:=\ \bm{z}^{T}\bm{x}\ -\ \beta^{-1}\sum_{i=1}^{N}z_{i}\ln z_{i}$ +(465) +with +$\mathrm{L}\geq\bm{z}^{T}\bm{x}$ +. +The +$\mathrm{lse}$ +is the maximum of +$\mathrm{L}$ +on +the +$N$ +-dimensional +simplex +$D$ +with +$D=\{\bm{z}\mid\sum_{i}z_{i}=1,0\leqslant z_{i}\}$ +: +$\displaystyle\mathrm{lse}(\beta,\bm{x})\ $ +$\displaystyle=\ \max_{\bm{z}\in D}\bm{z}^{T}\bm{x}\ -\ \beta^{-1}\sum_{i=1}^{N}z_{i}\ln z_{i}\ .$ +(466) +The softmax +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is the argument +of the maximum of +$\mathrm{L}$ +on +the +$N$ +-dimensional +simplex +$D$ +with +$D=\{\bm{z}\mid\sum_{i}z_{i}=1,0\leqslant z_{i}\}$ +: +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\beta\bm{x})\ =\ \arg\max_{\bm{z}\in D}\bm{z}^{T}\bm{x}\ -\ \beta^{-1}\sum_{i=1}^{N}z_{i}\ln z_{i}\ .$ +(467) +Proof. +Eq. ( +466 +) is obtained from Equation (8) in +Gao & Pavel (2017) +and +Eq. ( +467 +) from Equation (11) in +Gao & Pavel (2017) +. +∎ +From a physical point of view, the +$\mathrm{lse}$ +function represents the “free energy” +in statistical thermodynamics +( +Gao & Pavel, 2017 +) +. +Next we consider the Jacobian of the softmax and its properties. +Lemma A20 +. +The Jacobian +$\mathrm{J}_{s}$ +of the softmax +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$\displaystyle\mathrm{J}_{s}\ $ +$\displaystyle=\ \frac{\partial\mathrm{softmax}(\beta\bm{x})}{\partial\bm{x}}\ =\ \beta\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\ ,$ +(468) +which gives the elements +$\displaystyle[\mathrm{J}_{s}]_{ij}\ $ +$\displaystyle=\ \begin{cases}\beta p_{i}(1-p_{i})&\text{for}\ i=j\\ +-\beta p_{i}p_{j}&\text{for}\ i\not=j\end{cases}\ .$ +(469) +Next we show that +$\mathrm{J}_{s}$ +has eigenvalue +$0$ +. +Lemma A21 +. +The Jacobian +$\mathrm{J}_{s}$ +of the softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +has a zero eigenvalue with eigenvector +$\bm{1}$ +. +Proof. +$\displaystyle[\mathrm{J}_{s}\bm{1}]_{i}\ $ +$\displaystyle=\ \beta\left(p_{i}(1-p_{i})\ -\ \sum_{j,j\not=i}p_{i}p_{j}\right)\ =\ \beta\ p_{i}(1\ -\ \sum_{j}p_{j})\ =0\ .$ +(470) +∎ +Next we show that +$0$ +is the smallest eigenvalue of +$\mathrm{J}_{s}$ +, therefore +$\mathrm{J}_{s}$ +is positive semi-definite but not (strict) positive definite. +Lemma A22 +. +The Jacobian +$\mathrm{J}_{s}$ +of the softmax +$\bm{p}=\mathrm{softmax}(\beta\bm{\xi})$ +is symmetric and positive semi-definite. +Proof. +For an arbitrary +$\bm{z}$ +, we have +$\displaystyle\bm{z}^{T}\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)\bm{z}\ $ +$\displaystyle=\ \sum_{i}p_{i}z_{i}^{2}-\left(\sum_{i}p_{i}z_{i}\right)^{2}$ +(471) +$\displaystyle=\ \left(\sum_{i}p_{i}z_{i}^{2}\right)\ \left(\sum_{i}p_{i}\right)-\left(\sum_{i}p_{i}z_{i}\right)^{2}\ \geq\ 0\ .$ +The last inequality hold true because the Cauchy-Schwarz inequality +says +$(\bm{a}^{T}\bm{a})(\bm{b}^{T}\bm{b})\geq(\bm{a}^{T}\bm{b})^{2}$ +, which is the last +inequality with +$a_{i}=z_{i}\sqrt{p_{i}}$ +and +$b_{i}=\sqrt{p_{i}}$ +. +Consequently +$\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)$ +is positive semi-definite. +Alternatively +$\sum_{i}p_{i}z_{i}^{2}-\left(\sum_{i}p_{i}z_{i}\right)^{2}$ +can +be viewed as the expected second moment minus the mean squared which +gives the variance that is larger equal to zero. +The Jacobian is +$0<\beta$ +times a positive semi-definite matrix, which is +a positive semi-definite matrix. +∎ +Moreover, the softmax is a monotonic map, as described in the next lemma. +Lemma A23 +. +The softmax +$\mathrm{softmax}(\beta\bm{x})$ +is monotone for +$\beta>0$ +, that is, +$\displaystyle\left(\mathrm{softmax}(\beta\bm{x})\ -\ \mathrm{softmax}(\beta\bm{x}^{\prime})\right)^{T}\left(\bm{x}\ -\ \bm{x}^{\prime}\right)\ $ +$\displaystyle\geq\ 0\ .$ +(472) +Proof. +We use the version of mean value theorem Lemma +A32 +with the symmetric matrix +$\mathrm{J}_{s}^{m}=\int_{0}^{1}\mathrm{J}_{s}(\lambda\bm{x}\ +\ (1-\lambda)\bm{x}^{\prime})\ \mathrm{d}\lambda$ +: +$\displaystyle\mathrm{softmax}(\bm{x})\ -\ \mathrm{softmax}(\bm{x}^{\prime})\ $ +$\displaystyle=\ \mathrm{J}_{s}^{m}\ \left(\bm{x}\ -\ \bm{x}^{\prime}\right)\ .$ +(473) +Therefore +$\displaystyle\left(\mathrm{softmax}(\bm{x})\ -\ \mathrm{softmax}(\bm{x}^{\prime})\right)^{T}\left(\bm{x}\ -\ \bm{x}^{\prime}\right)\ =\ \left(\bm{x}\ -\ \bm{x}^{\prime}\right)^{T}\mathrm{J}_{s}^{m}\ \left(\bm{x}\ -\ \bm{x}^{\prime}\right)\ \geq\ 0\ ,$ +(474) +since +$\mathrm{J}_{s}^{m}$ +is positive semi-definite. +For all +$\lambda$ +the Jacobians +$\mathrm{J}_{s}(\lambda\bm{x}\ +\ (1-\lambda)\bm{x}^{\prime})$ +are positive semi-definite +according to Lemma +A22 +. +Since +$\displaystyle\bm{x}^{T}\mathrm{J}_{s}^{m}\bm{x}\ $ +$\displaystyle=\ \int_{0}^{1}\bm{x}^{T}\mathrm{J}_{s}(\lambda\bm{x}\ +\ (1-\lambda)\bm{x}^{\prime})\ \bm{x}\ \mathrm{d}\lambda\ \geq\ 0$ +(475) +is an integral over positive values for every +$\bm{x}$ +, +$\mathrm{J}_{s}^{m}$ +is positive semi-definite, too. +∎ +Next we give upper bounds on the norm of +$\mathrm{J}_{s}$ +. +Lemma A24 +. +For a softmax +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +with +$m=\max_{i}p_{i}(1-p_{i})$ +, the spectral norm of +the Jacobian +$\mathrm{J}_{s}$ +of the softmax is bounded: +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ m\ \beta\ ,$ +(476) +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{1}\ $ +$\displaystyle\leqslant\ 2\ m\ \beta\ ,$ +(477) +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{\infty}\ $ +$\displaystyle\leqslant\ 2\ m\ \beta\ .$ +(478) +In particular everywhere holds +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \frac{1}{2}\ \beta\ .$ +(479) +If +$p_{\max}=\max_{i}p_{i}\geq 1-\epsilon\geq 0.5$ +, then for the spectral norm of +the Jacobian holds +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ 2\ \epsilon\ \beta\ \ -\ 2\ \epsilon^{2}\ \beta\ \ <\ 2\ \epsilon\ \beta\ .$ +(480) +Proof. +We consider the maximum absolute column sum norm +$\displaystyle{{\left\|\bm{A}\right\|}}_{1}\ $ +$\displaystyle=\ \max_{j}\sum_{i}{{\left|a_{ij}\right|}}$ +(481) +and the maximum absolute row sum norm +$\displaystyle{{\left\|\bm{A}\right\|}}_{\infty}\ $ +$\displaystyle=\ \max_{i}\sum_{j}{{\left|a_{ij}\right|}}\ .$ +(482) +We have for +$\bm{A}=\mathrm{J}_{s}=\beta\left(\mathrm{diag}(\bm{p})-\bm{p}\bm{p}^{T}\right)$ +$\displaystyle\sum_{j}{{\left|a_{ij}\right|}}\ $ +$\displaystyle=\ \beta\ \left(p_{i}(1-p_{i})\ +\ \sum_{j,j\not=i}p_{i}p_{j}\right)\ =\ \beta\ p_{i}\ (1\ -\ 2p_{i}\ +\ \sum_{j}p_{j})$ +(483) +$\displaystyle=\ 2\ \beta\ p_{i}\ (1-p_{i})\ \leqslant\ 2\ m\ \beta\ ,$ +$\displaystyle\sum_{i}{{\left|a_{ij}\right|}}\ $ +$\displaystyle=\ \beta\ \left(p_{j}\ (1-p_{j})\ +\ \sum_{i,i\not=j}p_{j}p_{i}\right)\ =\ \beta\ p_{j}\ (1\ -\ 2p_{j}\ +\ \sum_{i}p_{i})$ +(484) +$\displaystyle=\ 2\ \beta\ p_{j}\ (1-p_{j})\ \leqslant\ 2\ m\ \beta\ .$ +Therefore, we have +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{1}\ $ +$\displaystyle\leqslant\ 2\ m\ \beta\ ,$ +(485) +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{\infty}\ $ +$\displaystyle\leqslant\ 2\ m\ \beta\ ,$ +(486) +$\displaystyle{{\left\|\mathrm{J}_{s}\right\|}}_{2}\ $ +$\displaystyle\leqslant\ \sqrt{{{\left\|\mathrm{J}_{s}\right\|}}_{1}{{\left\|\mathrm{J}_{s}\right\|}}_{\infty}}\ \leqslant\ 2\ m\ \beta\ .$ +(487) +The last inequality is a direct consequence of Hölder’s inequality. +For +$0\leqslant p_{i}\leqslant 1$ +, we have +$p_{i}(1-p_{i})\leqslant 0.25$ +. +Therefore, +$m\leqslant 0.25$ +for all values of +$p_{i}$ +. +If +$p_{\max}\geq 1-\epsilon\geq 0.5$ +( +$\epsilon\leqslant 0.5$ +), then +$1-p_{\max}\leqslant\epsilon$ +and for +$p_{i}\not=p_{\max}$ +$p_{i}\leqslant\epsilon$ +. +The derivative +$\partial x(1-x)/\partial x=1-2x>0$ +for +$x<0.5$ +, therefore +$x(1-x)$ +increases with +$x$ +for +$x<0.5$ +. +Using +$x=1-p_{\max}$ +and for +$p_{i}\not=p_{\max}$ +$x=p_{i}$ +, we obtain +$p_{i}(1-p_{i})\leqslant\epsilon(1-\epsilon)$ +for all +$i$ +. +Consequently, we have +$m\leqslant\epsilon(1-\epsilon)$ +. +∎ +Using the bounds on the norm of the Jacobian, +we give some Lipschitz properties of the softmax function. +Lemma A25 +. +The softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$(\beta/2)$ +-Lipschitz. +The softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$(2\beta m)$ +-Lipschitz +in a convex environment +$U$ +for which +$m=\max_{\bm{x}\in U}\max_{i}p_{i}(1-p_{i})$ +. +For +$p_{\max}=\min_{\bm{x}\in U}\max_{i}p_{i}=1-\epsilon$ +, +the softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$(2\beta\epsilon)$ +-Lipschitz. +For +$\beta<2m$ +, the softmax +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is contractive in +$U$ +on which +$m$ +is defined. +Proof. +The version of mean value theorem Lemma +A32 +states for the symmetric matrix +$\mathrm{J}_{s}^{m}=\int_{0}^{1}\mathrm{J}(\lambda\bm{x}+(1-\lambda)\bm{x}^{\prime})\ \mathrm{d}\lambda$ +: +$\displaystyle\mathrm{softmax}(\bm{x})\ -\ \mathrm{softmax}(\bm{x}^{\prime})\ $ +$\displaystyle=\ \mathrm{J}_{s}^{m}\ \left(\bm{x}\ -\ \bm{x}^{\prime}\right)\ .$ +(488) +According to Lemma +A24 +for all +$\tilde{\bm{x}}=\lambda\bm{x}+(1-\lambda)\bm{x}^{\prime})$ +$\displaystyle{{\left\|\mathrm{J}_{s}(\tilde{\bm{x}})\right\|}}_{2}\ \leqslant\ 2\ \tilde{m}\ \beta\ ,$ +(489) +where +$\tilde{m}=\max_{i}\tilde{p}_{i}(1-\tilde{p}_{i})$ +. +Since +$\bm{x}\in U$ +and +$\bm{x}^{\prime}\in U$ +we have +$\tilde{\bm{x}}\in U$ +, +since +$U$ +is convex. +For +$m=\max_{\bm{x}\in U}\max_{i}p_{i}(1-p_{i})$ +we have +$\tilde{m}\leqslant m$ +for all +$\tilde{m}$ +. Therefore, we have +$\displaystyle{{\left\|\mathrm{J}_{s}(\tilde{\bm{x}})\right\|}}_{2}\ \leqslant\ 2\ m\ \beta$ +(490) +which also holds for the mean: +$\displaystyle{{\left\|\mathrm{J}_{s}^{m}\right\|}}_{2}\ \leqslant\ 2\ m\ \beta\ .$ +(491) +Therefore, +$\displaystyle{{\left\|\mathrm{softmax}(\bm{x})\ -\ \mathrm{softmax}(\bm{x}^{\prime})\right\|}}\ $ +$\displaystyle\leqslant\ {{\left\|\mathrm{J}_{s}^{m}\right\|}}_{2}\ {{\left\|\bm{x}\ -\ \bm{x}^{\prime}\right\|}}\ \leqslant\ 2\ m\ \beta\ {{\left\|\bm{x}\ -\ \bm{x}^{\prime}\right\|}}\ .$ +(492) +From Lemma +A24 +we know +$m\leqslant 1/4$ +globally. +For +$p_{\max}=\min_{\bm{x}\in U}\max_{i}p_{i}=1-\epsilon$ +we have +according to Lemma +A24 +: +$m\leqslant\epsilon$ +. +∎ +For completeness we present a result about cocoercivity of the softmax: +Lemma A26 +. +For +$m=\max_{\bm{x}\in U}\max_{i}p_{i}(1-p_{i})$ +, +softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$1/(2m\beta)$ +-cocoercive in +$U$ +, that is, +$\displaystyle\left(\mathrm{softmax}(\bm{x})\ -\ \mathrm{softmax}(\bm{x}^{\prime})\right)^{T}\left(\bm{x}\ -\ \bm{x}^{\prime}\right)\ $ +$\displaystyle\geq\ \frac{1}{2\ m\ \beta}{{\left\|\mathrm{softmax}(\bm{x})\ -\ \mathrm{softmax}(\bm{x}^{\prime})\right\|}}.$ +(493) +In particular +the softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$(2/\beta)$ +-cocoercive everywhere. +With +$p_{\max}=\min_{\bm{x}\in U}\max_{i}p_{i}=1-\epsilon$ +, +the softmax function +$\bm{p}=\mathrm{softmax}(\beta\bm{x})$ +is +$1/(2\beta\epsilon)$ +-cocoercive in +$U$ +. +Proof. +We apply the Baillon-Haddad theorem (e.g. Theorem 1 in +Gao & Pavel (2017) +) +together with Lemma +A25 +. +∎ +Finally, we introduce the Legendre transform and use it +to describe further properties of the +$\mathrm{lse}$ +. +We start with the definition of the convex conjugate. +Definition A3 +(Convex Conjugate) +. +The Convex Conjugate (Legendre-Fenchel transform) +of a function +$f$ +from a Hilbert Space +$X$ +to +$[-\infty,\infty]$ +is +$f^{*}$ +which is defined as +$\displaystyle f^{*}(\bm{x}^{*})\ $ +$\displaystyle=\ \sup_{\bm{x}\in X}(\bm{x}^{T}\bm{x}^{*}\ -\ f(\bm{x}))\ ,\quad\bm{x}^{*}\in X$ +(494) +See page 219 Def. 13.1 in +Bauschke & Combettes (2017) +and page 134 in +Garling (2017) +. +Next we define the Legendre transform, which is a more restrictive version of the convex +conjugate. +Definition A4 +(Legendre Transform) +. +The Legendre transform of a convex function +$f$ +from a convex set +$X\subset\mathbb{R}^{n}$ +to +$\mathbb{R}$ +( +$f:X\rightarrow\mathbb{R}$ +) is +$f^{*}$ +, which is +defined as +$\displaystyle f^{*}(\bm{x}^{*})\ $ +$\displaystyle=\ \sup_{\bm{x}\in X}(\bm{x}^{T}\bm{x}^{*}\ -\ f(\bm{x}))\ ,\quad\bm{x}^{*}\in X^{*}\ ,$ +(495) +$\displaystyle X^{*}\ $ +$\displaystyle=\ \left\{\bm{x}^{*}\in\mathbb{R}^{n}\mid\sup_{\bm{x}\in X}(\bm{x}^{T}\bm{x}^{*}\ -\ f(\bm{x}))<\infty\right\}\ .$ +(496) +See page 91 in +Boyd & Vandenberghe (2009) +. +Definition A5 +(Epi-Sum) +. +Let +$f$ +and +$g$ +be two functions from +$X$ +to +$(-\infty,\infty]$ +, then the infimal convolution (or epi-sum) of +$f$ +and +$g$ +is +$\displaystyle f\Box g:X\rightarrow[-\infty,\infty]\ ,\ \bm{x}\mapsto\inf_{\bm{y}\in X}\left(f(\bm{y})+g(\bm{x}-\bm{y})\right)$ +(497) +See Def. 12.1 in +Bauschke & Combettes (2017) +. +Lemma A27 +. +Let +$f$ +and +$g$ +be functions from +$X$ +to +$(-\infty,\infty]$ +. Then +the following hold: +1. +Convex Conjugate of norm squared +$\displaystyle\left(\frac{1}{2}{{\left\|.\right\|}}^{2}\right)^{*}\ $ +$\displaystyle=\ \frac{1}{2}{{\left\|.\right\|}}^{2}\ .$ +(498) +2. +Convex Conjugate of a function multiplied by scalar +$0<\alpha\in\mathbb{R}$ +$\displaystyle\left(\alpha\ f\right)^{*}\ $ +$\displaystyle=\ \alpha\ f^{*}(./\alpha)\ .$ +(499) +3. +Convex Conjugate of the sum of a function and a scalar +$\beta\in\mathbb{R}$ +$\displaystyle\left(f\ +\ \beta\right)^{*}\ $ +$\displaystyle=\ f^{*}\ -\ \beta\ .$ +(500) +4. +Convex Conjugate of affine transformation of the arguments. Let +$\bm{A}$ +be +a non-singular matrix and +$\bm{b}$ +a vector +$\displaystyle\left(f\left(\bm{A}\bm{x}\ +\ \bm{b}\right)\right)^{*}\ $ +$\displaystyle=\ f^{*}\left(\bm{A}^{-T}\bm{x}^{*}\right)\ -\ \bm{b}^{T}\bm{A}^{-T}\bm{x}^{*}\ .$ +(501) +5. +Convex Conjugate of epi-sums +$\displaystyle\left(f\Box g\right)^{*}\ $ +$\displaystyle=\ f^{*}+g^{*}\ .$ +(502) +Proof. +1. +Since +$h(t):=\frac{t^{2}}{2}$ +is a non-negative convex function and +$h(t)=0\iff t=0$ +we have because of Proposition 11.3.3 in +Garling (2017) +that +$h\left({{\left\|x\right\|}}\right)^{*}=h^{*}\left({{\left\|x^{*}\right\|}}\right)$ +. Additionally, by example (a) on page 137 we get for +$1\ 0\ ,$ +(525) +$\displaystyle W(x)\ +\ W(y)\ $ +$\displaystyle=\ W\left(x\ y\ \left(\frac{1}{W(x)}\ +\ \frac{1}{W(y)}\right)\right)\quad\text{for }\ x,y\ >\ 0\ ,$ +(526) +$\displaystyle W_{0}\left(-\ \frac{\ln x}{x}\right)\ $ +$\displaystyle=\ -\ \ln x\quad\text{for }\ 0\ <\ x\ \leqslant\ e\ ,$ +(527) +$\displaystyle W_{-1}\left(-\ \frac{\ln x}{x}\right)\ $ +$\displaystyle=\ -\ \ln x\quad\text{for }\ x\ >\ e\ ,$ +(528) +$\displaystyle e^{-\ W(-\ \ln x)}\ $ +$\displaystyle=\ \frac{W(-\ \ln x)}{-\ \ln x}\quad\text{for }\ x\ \neq\ 1\ .$ +(529) +We also present some special values for the Lambert +$W$ +function +( +Olver et al., 2010 +, +(4.13) +) +: +Lemma A31 +. +$\displaystyle W(0)\ $ +$\displaystyle=\ 0\ ,$ +(530) +$\displaystyle W(e)\ $ +$\displaystyle=\ 1\ ,$ +(531) +$\displaystyle W\left(-\frac{1}{e}\right)\ $ +$\displaystyle=\ -1\ ,$ +(532) +$\displaystyle W\left(e^{1+e}\right)\ $ +$\displaystyle=\ e\ ,$ +(533) +$\displaystyle W\left(2\ln 2\right)\ $ +$\displaystyle=\ \ln 2\ ,$ +(534) +$\displaystyle W(1)\ $ +$\displaystyle=\ \Omega\ ,$ +(535) +$\displaystyle W(1)\ $ +$\displaystyle=\ e^{-W(1)}\ =\ \ln\left(\frac{1}{W(1)}\right)\ =\ -\ \ln W(1)\ ,$ +(536) +$\displaystyle W\left(-\frac{\pi}{2}\right)\ $ +$\displaystyle=\ \frac{i\pi}{2}\ ,$ +(537) +$\displaystyle W(-1)\ $ +$\displaystyle\approx\ -0.31813+1.33723i\ ,$ +(538) +where the Omega constant +$\Omega$ +is +$\displaystyle\Omega\ $ +$\displaystyle=\ \left(\int_{-\infty}^{\infty}\frac{\mathrm{d}t}{\left(e^{t}\ -\ t\right)^{2}\ +\ \pi^{2}}\right)^{-1}\ -\ 1\ \approx\ 0.56714329\ .$ +(539) +We need in some proofs a version of the mean value theorem as +given in the next lemma. +Lemma A32 +(Mean Value Theorem) +. +Let +$U\subset\mathbb{R}^{n}$ +be open, +$f:U\to\mathbb{R}^{m}$ +continuously differentiable, and +$\bm{x}\in U$ +as well as +$\bm{h}\in\mathbb{R}^{n}$ +vectors such that the line segment +$\bm{x}+t\bm{h}$ +for +$0\leqslant t\leqslant 1$ +is in +$U$ +. Then the following holds: +$\displaystyle f(\bm{x}\ +\ \bm{h})\ -\ f(\bm{x})\ $ +$\displaystyle=\ \left(\int_{0}^{1}J(\bm{x}\ +\ t\ \bm{h})\ \mathrm{d}t\right)\ \bm{h}\ ,$ +(540) +where +$J$ +is the Jacobian of +$f$ +and the integral of the matrix is component-wise. +Proof. +Let +$f_{1},\ldots,f_{m}$ +denote the components of +$f$ +and define +$g_{i}:[0,1]\to\mathbb{R}$ +by +$\displaystyle g_{i}(t)\ $ +$\displaystyle=\ f_{i}(\bm{x}\ +\ t\ \bm{h})\ ,$ +(541) +then we obtain +$\displaystyle f_{i}(\bm{x}\ +\ \bm{h})\ -\ f_{i}(\bm{x})\ =\ g_{i}(1)\ -\ g_{i}(0)\ =\ \int_{0}^{1}g^{\prime}(t)\ \mathrm{d}t$ +(542) +$\displaystyle\int_{0}^{1}\left(\sum_{j=1}^{n}\frac{\partial f_{i}}{\partial x_{j}}(\bm{x}\ +\ t\ \bm{h})\ h_{j}\right)\ \mathrm{d}t\ =\ \sum_{j=1}^{n}\left(\int_{0}^{1}\frac{\partial f_{i}}{\partial x_{j}}(\bm{x}\ +\ t\ \bm{h})\ \mathrm{d}t\right)\ h_{j}\ .$ +The statement follows since the Jacobian +$J$ +has as entries +$\frac{\partial f_{i}}{\partial x_{j}}$ +. +∎ +A.3 +Modern Hopfield Networks: Binary States (Krotov and Hopfield) +A.3.1 +Modern Hopfield Networks: Introduction +A.3.1.1 +Additional Memory and Attention for Neural Networks. +Modern Hopfield networks may serve as additional memory for neural networks. +Different approaches have been suggested to equip neural networks with +an additional memory beyond recurrent connections. +The neural Turing machine (NTM) is a neural network equipped with an +external memory and an attention process +( +Graves et al., 2014 +) +. +The NTM can write to the memory and can read from it. +A memory network +( +Weston et al., 2014 +) +consists of a memory together +with the components: +(1) input feature map (converts the incoming input to the internal feature representation) +(2) generalization (updates old memories given the new input), +(3) output feature map (produces a new output), +(4) response (converts the output into the response format). +Memory networks are generalized to an end-to-end trained model, where +the +$\arg\max$ +memory call is +replaced by a differentiable +$\mathrm{softmax}$ +( +Sukhbaatar et al., 2015a +; +Sukhbaatar et al., 2015b +) +. +Linear Memory Network use a linear autoencoder for sequences +as a memory +( +Carta et al., 2020 +) +. +To enhance RNNs with additional associative memory like Hopfield networks +have been proposed +( +Ba et al., 2016a +; +Ba et al., 2016b +) +. +The associative memory stores hidden states of the RNN, retrieves +stored states if they are similar to actual ones, and has a forgetting parameter. +The forgetting and storing parameters of the RNN associative memory +have been +generalized to learned matrices +( +Zhang & Zhou, 2017 +) +. +LSTMs with associative memory via Holographic Reduced Representations have +been proposed +( +Danihelka et al., 2016 +) +. +Recently most approaches to new memories are based on attention. +The neural Turing machine (NTM) is equipped with an +external memory and an attention process +( +Graves et al., 2014 +) +. +End to end memory networks (EMN) make the attention scheme +of memory networks +( +Weston et al., 2014 +) +differentiable +by replacing +$\arg\max$ +through a +$\mathrm{softmax}$ +( +Sukhbaatar et al., 2015a +; +Sukhbaatar et al., 2015b +) +. +EMN with dot products became very popular and implement a key-value +attention +( +Daniluk et al., 2017 +) +for self-attention. +An enhancement of EMN is the transformer +( +Vaswani et al., 2017a +; +Vaswani et al., 2017b +) +and its extensions +( +Dehghani et al., 2018 +) +. +The transformer had great impact on the natural language processing +(NLP) community as new records in NLP benchmarks have been achieved +( +Vaswani et al., 2017a +; +Vaswani et al., 2017b +) +. +MEMO uses the transformer +attention mechanism for reasoning over longer distances +( +Banino et al., 2020 +) +. +Current state-of-the-art for language processing is +a transformer architecture called +“the Bidirectional Encoder Representations from Transformers” +(BERT) +( +Devlin et al., 2018 +; +Devlin et al., 2019 +) +. +A.3.1.2 +Modern Hopfield networks: Overview. +The storage capacity of classical binary Hopfield networks +( +Hopfield, 1982 +) +has been shown to be very limited. +In a +$d$ +-dimensional space, +the standard Hopfield model can store +$d$ +uncorrelated patterns +without errors but only +$Cd/\ln(d)$ +random patterns with +$C<1/2$ +for a fixed stable pattern or +$C<1/4$ +if all patterns +are stable +( +McEliece et al., 1987 +) +. +The same bound holds for nonlinear learning rules +( +Mazza, 1997 +) +. +Using tricks-of-trade and allowing +small retrieval errors, the storage capacity +is about +$0.138d$ +( +Crisanti et al., 1986 +; +Hertz et al., 1991 +; +Torres et al., 2002 +) +. +If the learning rule is not related to the Hebb rule then up to +$d$ +patterns can be stored +( +Abu-Mostafa & StJacques, 1985 +) +. +Using Hopfield networks with non-zero diagonal matrices, +the storage can be +increased to +$Cd\ln(d)$ +( +Folli et al., 2017 +) +. +In contrast to the storage capacity, the number of energy minima +(spurious states, stable states) of Hopfield networks +is exponentially in +$d$ +( +Tanaka & Edwards, 1980 +; +Bruck & Roychowdhury, 1990 +; +Wainrib & Touboul, 2013 +) +. +Recent advances +in the field of binary Hopfield networks +( +Hopfield, 1982 +) +led to new properties of Hopfield networks. +The stability of spurious states or metastable states +was sensibly reduced by a Hamiltonian treatment for +the new relativistic Hopfield model +( +Barra et al., 2018 +) +. +Recently the storage capacity of Hopfield networks +could be increased by new energy functions. +Interaction functions of the form +$F(x)=x^{n}$ +lead to storage capacity of +$\alpha_{n}d^{n-1}$ +, where +$\alpha_{n}$ +depends on the allowed error +probability +( +Krotov & Hopfield, 2016 +; +Krotov & Hopfield, 2018 +; +Demircigil et al., 2017 +) +(see +( +Krotov & Hopfield, 2018 +) +for the non-binary case). +Interaction functions of the form +$F(x)=x^{n}$ +lead to storage capacity of +$\alpha_{n}\frac{d^{n-1}}{c_{n}\ln d}$ +for +$c_{n}>2(2n-3)!!$ +( +Demircigil et al., 2017 +) +. +Interaction functions of the form +$F(x)=\exp(x)$ +lead to +exponential +storage capacity of +$2^{d/2}$ +where all stored patterns are fixed points but the radius of +attraction vanishes +( +Demircigil et al., 2017 +) +. +It has been shown that the network converges with high probability +after one update +( +Demircigil et al., 2017 +) +. +A.3.2 +Energy and Update Rule for Binary Modern Hopfield Networks +We follow +( +Demircigil et al., 2017 +) +where the goal is to store a set of input data +$\bm{x}_{1},\ldots,\bm{x}_{N}$ +that are represented by the matrix +$\displaystyle\bm{X}\ $ +$\displaystyle=\ \left(\bm{x}_{1},\ldots,\bm{x}_{N}\right)\ .$ +(543) +The +$\bm{x}_{i}$ +is pattern with binary components +$x_{ij}\in\{-1,+1\}$ +for all +$i$ +and +$j$ +. +$\bm{\xi}$ +is the actual state of the units of the Hopfield model. +Krotov and Hopfield +( +Krotov & Hopfield, 2016 +) +defined the energy function +$\mathrm{E}$ +with the interaction function +$F$ +that evaluates +the dot product between patterns +$\bm{x}_{i}$ +and the actual state +$\bm{\xi}$ +: +$\displaystyle\mathrm{E}\ $ +$\displaystyle=\ -\ \sum_{i=1}^{N}F\left(\bm{\xi}^{T}\bm{x}_{i}\right)$ +(544) +with +$F(a)=a^{n}$ +, where +$n=2$ +gives the energy function of the classical +Hopfield network. This allows to store +$\alpha_{n}d^{n-1}$ +patterns +( +Krotov & Hopfield, 2016 +) +. +Krotov and Hopfield +( +Krotov & Hopfield, 2016 +) +suggested for minimizing this energy +an asynchronous updating dynamics +$T=(T_{j})$ +for component +$\xi_{j}$ +: +$\displaystyle T_{j}(\bm{\xi})\ $ +$\displaystyle:=\ \mathop{\mathrm{sgn}\,}\Bigl[\sum\limits_{i=1}^{N}\bigl(F\bigl(x_{ij}\ +\ \sum\limits_{l\neq j}x_{il}\ \xi_{l}\bigr)\ -\ F\bigl(-\ x_{ij}\ +\ \sum\limits_{l\neq j}x_{il}\ \xi_{l}\bigr)\bigr)\Bigr]$ +(545) +While Krotov and Hopfield used +$F(a)=a^{n}$ +, +Demircigil et al. +( +Demircigil et al., 2017 +) +went a step further and analyzed +the model with the energy function +$F(a)=\exp(a)$ +, which +leads to an exponential +storage capacity of +$N=2^{d/2}$ +. +Furthermore with a single update the final pattern +is recovered with high probability. +These statements are given in next theorem. +Theorem A10 +(Storage Capacity for Binary Modern Hopfield Nets (Demircigil et al. 2017)) +. +Consider the generalized Hopfield model with the dynamics +described in Eq. ( +545 +) and +interaction function +$F$ +given by +$F(x)=e^{x}$ +. +For a fixed +$0<\alpha<\ln(2)/2$ +let +$N=\exp\left(\alpha d\right)+1$ +and let +$\bm{x}_{1},\ldots,\bm{x}_{N}$ +be +$N$ +patterns chosen uniformly at random from +$\{-1,+1\}^{d}$ +. +Moreover fix +$\varrho\in[0,1/2)$ +. +For any +$i$ +and any +$\widetilde{\bm{x}}_{i}$ +taken uniformly at random +from the Hamming sphere with radius +$\varrho d$ +centered in +$\bm{x}_{i}$ +, +$\mathcal{S}(\bm{x}_{i},\varrho d)$ +, where +$\varrho d$ +is assumed to be an integer, +it holds that +$\displaystyle\mathbf{\mathrm{Pr}}\left(\exists i\;\exists j:\ T_{j}\left(\widetilde{\bm{x}}_{i}\right)\ \neq\ x_{ij}\right)\ \rightarrow\ 0\ ,$ +if +$\alpha$ +is chosen in dependence of +$\varrho$ +such that +$\displaystyle\alpha\ <\ \frac{I(1-2\varrho)}{2}$ +with +$\displaystyle I:\ a\ \mapsto\ \frac{1}{2}\left((1+a)\ln(1+a)\ +\ (1-a)\ln(1-a)\right)\ .$ +Proof. +The proof can be found in +Demircigil et al. (2017) +. +∎ +The number of patterns +$N=\exp\left(\alpha d\right)+1$ +is +exponential in the number +$d$ +of components. +The result +$\displaystyle\mathbf{\mathrm{Pr}}\left(\exists i\;\exists j:\ T_{j}\left(\widetilde{\bm{x}}_{i}\right)\ \neq\ x_{ij}\right)\ \rightarrow\ 0$ +means that one update for each component +is sufficient to recover the pattern with high probability. +The constraint +$\alpha<\frac{I(1-2\varrho)}{2}$ +on +$\alpha$ +gives the +trade-off between the radius of attraction +$\varrho d$ +and the number +$N=\exp\left(\alpha d\right)+1$ +of +pattern that can be stored. +Theorem +A10 +in particular implies that +$\displaystyle\mathbf{\mathrm{Pr}}\left(\exists i\;\exists j:\ T_{j}\left(\bm{x}_{i}\right)\ \neq\ x_{ij}\right)\ \rightarrow\ 0$ +as +$d\rightarrow\infty$ +, i.e. with a probability converging to +$1$ +, +all the patterns are fixed points +of the dynamics. +In this case we can have +$\alpha\to\frac{I(1)}{2}=\ln(2)/2$ +. +Krotov and Hopfield define the update dynamics +$T_{j}(\bm{\xi})$ +in Eq. ( +545 +) via +energy differences of the energy in Eq. ( +544 +). +First we express the energy in Eq. ( +544 +) with +$F(a)=\exp(a)$ +( +Demircigil et al., 2017 +) +by the +$\mathrm{lse}$ +function. +Then we use the mean value theorem to express +the update dynamics +$T_{j}(\bm{\xi})$ +in Eq. ( +545 +) by the softmax function. +For simplicity, we set +$\beta=1$ +in the following. +There exists a +$v\in[-1,1]$ +with +$\displaystyle T_{j}(\bm{\xi})\ $ +$\displaystyle=\ \mathop{\mathrm{sgn}\,}\Bigl[-\ \mathrm{E}(\xi_{j}=1)\ +\ \mathrm{E}(\xi_{j}=-1)\Bigr]\ =\ \mathop{\mathrm{sgn}\,}\Bigl[\exp(\mathrm{lse}(\xi_{j}=1))\ -\ \exp(\mathrm{lse}(\xi_{j}=-1))\Bigr]$ +$\displaystyle=\ \mathop{\mathrm{sgn}\,}\Bigl[-\ (2\bm{e}_{j})^{T}\nabla_{\bm{\xi}}\mathrm{E}(\xi_{j}=v)\Bigr]\ =\ \mathop{\mathrm{sgn}\,}\Bigl[\exp(\mathrm{lse}(\xi_{j}=v))\ (2\bm{e}_{j})^{T}\frac{\mathrm{lse}(\xi_{j}=v)}{\partial\bm{\xi}}\Bigr]$ +(546) +$\displaystyle=\ \mathop{\mathrm{sgn}\,}\Bigl[\exp(\mathrm{lse}(\xi_{j}=1))\ (2\bm{e}_{j})^{T}\bm{X}\mathrm{softmax}(\bm{X}^{T}\bm{\xi}(\xi_{j}=v))\Bigr]$ +$\displaystyle=\ \mathop{\mathrm{sgn}\,}\Bigl[[\bm{X}\mathrm{softmax}(\bm{X}^{T}\bm{\xi}(\xi_{j}=v))]_{j}\Bigr]\ =\ \mathop{\mathrm{sgn}\,}\Bigl[[\bm{X}\bm{p}(\xi_{j}=v)]_{j}\Bigr]\ ,$ +where +$\bm{e}_{j}$ +is the Cartesian unit vector with a one at position +$j$ +and zeros elsewhere, +$[.]_{j}$ +is the projection to the +$j$ +-th component, and +$\displaystyle\bm{p}\ $ +$\displaystyle=\ \mathrm{softmax}(\bm{X}^{T}\bm{\xi})\ .$ +(547) +A.4 +Hopfield Update Rule is Attention of The Transformer +The Hopfield network update rule +is the attention mechanism used +in transformer and BERT models +(see Fig. +A.2 +). +To see this, we assume +$N$ +stored (key) patterns +$\bm{y}_{i}$ +and +$S$ +state (query) patterns +$\bm{r}_{i}$ +that are mapped to the +Hopfield space of dimension +$d_{k}$ +. +We set +$\bm{x}_{i}=\bm{W}_{K}^{T}\bm{y}_{i}$ +, +$\bm{\xi}_{i}=\bm{W}_{Q}^{T}\bm{r}_{i}$ +, +and multiply the result of our update rule with +$\bm{W}_{V}$ +. +The matrices +$\bm{Y}=(\bm{y}_{1},\ldots,\bm{y}_{N})^{T}$ +and +$\bm{R}=(\bm{r}_{1},\ldots,\bm{r}_{S})^{T}$ +combine the +$\bm{y}_{i}$ +and +$\bm{r}_{i}$ +as row vectors. +We define the matrices +$\bm{X}^{T}=\bm{K}=\bm{Y}\bm{W}_{K}$ +, +$\bm{\Xi}^{T}=\bm{Q}=\bm{R}\bm{W}_{Q}$ +, +and +$\bm{V}=\bm{Y}\bm{W}_{K}\bm{W}_{V}=\bm{X}^{T}\bm{W}_{V}$ +, where +$\bm{W}_{K}\in\mathbb{R}^{d_{y}\times d_{k}},\bm{W}_{Q}\in\mathbb{R}^{d_{r}\times d_{k}},\bm{W}_{V}\in\mathbb{R}^{d_{k}\times d_{v}}$ +. +If +$\beta=1/\sqrt{d_{k}}$ +and +$\mathrm{softmax}\in\mathbb{R}^{N}$ +is changed to a row vector, we obtain +for the update rule Eq. ( +3 +) multiplied by +$\bm{W}_{V}$ +: +$\displaystyle\mathrm{softmax}\left(1/\sqrt{d_{k}}\ \bm{Q}\ \bm{K}^{T}\right)\ \bm{V}\ =\mathrm{softmax}\left(\beta\ \bm{R}\bm{W}_{\bm{Q}}\ \bm{W}_{\bm{K}}^{T}\bm{Y}^{T}\right)\ \bm{Y}\bm{W}_{\bm{K}}\bm{W}_{\bm{V}}\ .$ +(548) +The left part of Eq. ( +548 +) is the transformer attention. +Besides the attention mechanism, +Hopfield networks allow for other functionalities +in deep network architectures, +which we introduce via specific layers +in the next section. The right part of Eq. ( +548 +) serves as starting point for these specific layers. +Figure A.2: +We generalized +the energy +of binary modern Hopfield networks for allowing continuous states +while keeping fast convergence and +storage capacity properties. +We defined for the new energy also a new update +rule that minimizes the energy. +The new update rule is the attention mechanism of the transformer. +Formulae are modified to express +$\mathrm{softmax}$ +as row vector as for transformers. +" +$=$ +"-sign means "keeps the properties". +A.5 +Experiments +A.5.1 +Experiment 1: Attention in Transformers described by Hopfield dynamics +A.5.1.1 +Analysis of operating modes of the heads of a pre-trained BERT model. +We analyzed pre-trained BERT models from Hugging +Face Inc. +( +Wolf et al., 2019 +) +according to these operating classes. +In Fig. +A.3 +in the appendix the distribution of the pre-trained +bert-base-cased +model is depicted (for other models see +appendix Section +A.5.1.4 +). +Operating classes (II) (large metastable states) and +(IV) (small metastable states) +are often observed in the middle layers. +Operating class (I) (averaging over a very large number of patterns) +is abundant in lower layers. +Similar observations have been reported in other studies +( +Toneva & Wehbe, 2019a +; +Toneva & Wehbe, 2019b +; +Tay et al., 2020 +) +. +Operating class (III) (medium metastable states) is predominant in the last layers. +Figure A.3: +Analysis of operating modes of the heads of a pre-trained BERT model. +For each head in each layer, the distribution of the minimal number +$k$ +of patterns required to sum up the +$\mathrm{softmax}$ +values to +$0.90$ +is displayed as a violin plot in a panel. +$k$ +indicates the size of a metastable state. +The bold number in the center of each panel gives the median +$\bar{k}$ +of the distribution. +The heads in each layer are sorted according to +$\bar{k}$ +. +Attention heads belong to the class they mainly operate in. +Class (IV) in blue: +Small metastable state or fixed point close to a single pattern, which +is abundant in the middle layers (6, 7, and 8). +Class (II) in orange: +Large metastable state, which is +prominent in middle layers (3, 4, and 5). +Class (I) in red: +Very large metastable state or global fixed point, +which is predominant in the first layer. +These heads can potentially be replaced by averaging operations. +Class (III) in green: +Medium metastable state, +which is frequently observed in higher layers. +We hypothesize that these heads are used to collect information required to +perform the respective task. +These heads should be the main target to improve transformer and BERT models. +A.5.1.2 +Experimental Setup. +Transformer architectures are known for their high computational demands. +To investigate the learning dynamics of such a model and at the same time keeping training time manageable, we adopted the BERT-small setting from ELECTRA +( +Clark et al., 2020 +) +. It has +$12$ +layers, +$4$ +heads and +a reduced hidden size, the sequence length is shortened from +$512$ +to +$128$ +tokens and the batch size is reduced from +$256$ +to +$128$ +. Additionally, the hidden dimension is reduced from +$768$ +to +$256$ +and the embedding dimension is +reduced from +$768$ +to +$128$ +( +Clark et al., 2020 +) +. The training of such a BERT-small model for +$1.45$ +million update steps takes roughly four days on a single NVIDIA V100 GPU. +As the code base we use the +transformers +repository from Hugging Face, Inc +( +Wolf et al., 2019 +) +. +We aim to reproduce the dataset of +Devlin et al. (2019) +as close as possible, which consists of +the English Wikipedia dataset and the Toronto BookCorpus dataset +( +Zhu et al., 2015 +) +. Due to recent copyright claims the later is not publicly available anymore. Therefore, the pre-training experiments use an uncased snapshot of the original BookCorpus dataset. +A.5.1.3 +Hopfield Operating Classes of Transformer and BERT Models. +To better understand how operation modes in attention heads develop, we tracked the distribution of counts +$k$ +(see main paper) over time in a BERT-small model. +At the end of training we visualized the count distribution, grouped into four classes (see Figure +A.4 +). +The thresholds for the classes were chosen according to the thresholds of Figure 2 in the main paper. +However, they are divided by a factor of +$4$ +to adapt to the shorter sequence length of +$128$ +compared to +$512$ +. +From this plot it is clear, that the attention in heads of +Class IV +commit very early to the operating class of small metastable states. +A.5.1.4 +Learning Dynamics of Transformer and BERT Models. +To observe this behavior in the early phase of training, we created a ridge plot of the distributions of counts +$k$ +for the +first +$20,000$ +steps (see Figure +A.5 +(a)). This plot shows that the attention in heads of middle layers often +change the operation mode to +Class IV +around +$9,000$ +to +$10,000$ +steps. At the same time the second big drop in the loss occurs. +The question arises whether this is functionally important or whether it is an artefact which could be even +harmful. To check if the attention mechanism is still able to learn after the change in the operation mode +we analyzed the gradient flow through the +$\mathrm{softmax}$ +function. +For every token we calculate the Frobenius norm of the Jacobian of the +$\mathrm{softmax}$ +over multiple samples. +Then, for every head we plot the distribution of the norm (see Figure +A.5 +(b)). +The gradients with respect to the weights are determined by the Jacobian +$\mathrm{J}$ +defined in Eq. ( +59 +) +as can be seen in Eq. ( +418 +), Eq. ( +429 +), and Eq. ( +435 +). +We can see that +the attention +in heads of +Class IV +remain almost unchanged during the rest of the training. +Figure A.4: +Left +: Ridge plots of the distribution of counts +$k$ +over time for BERT-small +Right +: Violin plot of counts +$k$ +after +$1,450000$ +steps, divided into the four classes from the main paper. The thresholds were adapted to the shorter sequence length. +(a) Densities +(b) Norm of Jacobian +Figure A.5: +(a) +: change of count density during training is depicted for the first +$20,000$ +steps. +(b) +: the corresponding distribution of the Frobenius norm of the Jacobian of the +$\mathrm{softmax}$ +function +is depicted. +The gradients with respect to the weights are determined by the Jacobian +$\mathrm{J}$ +defined in Eq. ( +59 +) +as can be seen in Eq. ( +418 +), Eq. ( +429 +), and Eq. ( +435 +). +A.5.1.5 +Attention Heads Replaced by Gaussian Averaging Layers. +The self-attention mechanism proposed in +Vaswani et al. (2017a) +utilizes the +$\mathrm{softmax}$ +function to compute +the coefficients of a convex combination over the embedded tokens, where the +$\mathrm{softmax}$ +is conditioned on the input. +However, our analysis showed that especially in lower layers many heads perform averaging over a very +large number of patterns. This suggests that at this level neither the dependency on the input +nor a fine grained attention to individual positions is necessary. As an alternative to the original +mechanism we propose Gaussian averaging heads which +are computationally more efficient. Here, the +$\mathrm{softmax}$ +function is replaced by a discrete Gaussian kernel, +where the location +$\mu$ +and the scale +$\sigma$ +are learned. In detail, for a sequence length of +$N$ +tokens we are given a vector of location parameters +$\bm{\mu}=(\mu_{1},\ldots,\mu_{N})^{T}$ +and a vector of +corresponding scale parameters +$\bm{\sigma}=(\sigma_{1},\ldots,\sigma_{N})^{T}$ +. +We subdivide the interval +$[-1,1]$ +into +$N$ +equidistant supporting points +$\{s_{j}\}_{j=1}^{N}$ +, where +$\displaystyle s_{j}=\frac{(j-1)-0.5~(N-1)}{0.5~(N-1)}.$ +The attention +$[A]_{i,j}$ +from the +$i$ +-th token to the +$j$ +-th position is calculated as +$\displaystyle[A]_{i,j}=\frac{1}{z_{i}}\exp\left\{-\frac{1}{2}\big(\frac{s_{j}-\mu_{i}}{\sigma_{i}}\big)^{2}\right\},$ +where +$z_{i}$ +normalizes the +$i$ +-th row of the attention matrix +$A$ +to sum up to one: +$\displaystyle z_{i}=\sum_{j=1}^{N}\exp\left\{-\frac{1}{2}\big(\frac{s_{j}-\mu_{i}}{\sigma_{i}}\big)^{2}\right\}.$ +For initialization we uniformly sample a location vector +$\bm{\mu}\in[-1,1]^{N}$ +and +a scale vector +$\bm{\sigma}\in[0.75,1.25]^{N}$ +per head. A simple way to consider the individual +position of each token at initialization is to use the supporting points +$\mu_{i}=s_{i}$ +(see Figure +A.6 +). In practice no difference to the random initialization was observed. +• +Number of parameters. +Gaussian averaging heads can reduce the number of parameters significantly. +For an input size of +$N$ +tokens, there are +$2\cdot N$ +parameters per head. +In contrast, a standard self-attention head +with word embedding dimension +$d_{y}$ +and projection dimension +$d_{k}$ +has two weight matrices +$W_{Q},W_{K}\in\mathbb{R}^{d_{k}\times d_{y}}$ +, which together amount to +$2\cdot d_{k}\cdot d_{y}$ +parameters. +As a concrete example, the BERT-base model from +Devlin et al. (2019) +has an embedding dimension +$d_{y}=768$ +, +a projection dimension +$d_{k}=64$ +and a sequence length of +$N=512$ +. +Compared to the Gaussian head, in this case +$(2\cdot 768\cdot 64)/(2\cdot 512)~=95.5$ +times more +parameters are trained for the attention mechanism itself. +Only for very long sequences (and given +that the word embedding dimension stays the same) the dependence on +$N$ +may become a disadvantage. +But of course, due to the independence from the input the Gaussian averaging head is less expressive +in comparison to the original attention mechanism. +A recently proposed input independent replacement for self-attention is the so called Random Synthesizer +( +Tay et al., 2020 +) +. Here the +$\mathrm{softmax}$ +-attention is directly parametrized with an +$N\times N$ +matrix. This amounts to +$0.5\cdot N$ +more parameters than Gaussian averaging. +Figure A.6: +Attentions of a Gaussian averaging head at initialization for sequence length +$N=128$ +. Every line depicts one Gaussian kernel. Here, the location parameters are initialized with the value of the supporting points +$\mu_{i}=s_{i}$ +. +A.5.2 +Experiment 2: Multiple Instance Learning Datasets. +A.5.2.1 +Immune Repertoire Classification. +An architecture called DeepRC, +is based on our modern Hopfield networks, for +immune repertoire classification and compared to +other machine learning approaches. +For DeepRC, we consider immune repertoires as input objects, +which are represented as bags of instances. In a bag, each instance is +an immune receptor sequence and each bag can contain a large number of sequences. +At its core, DeepRC consists of a modern +Hopfield network that +extracts information from each repertoire. +The stored patterns (keys) are representations of the immune amino acid +sequences (instances) that are obtained by an 1D convolutional network +with position encoding. +Each state pattern (query) is static and learned via backpropagation. +For details see +Widrich et al. (2020a) +; +Widrich et al. (2020b) +. +Our new Hopfield network has +been integrated into a deep learning architecture +for immune repertoire classification, a massive +multiple instance learning task +( +Widrich et al., 2020a +; +Widrich et al., 2020b +) +. +Theorem +3 +states that modern Hopfield networks possess an exponential +storage capacity which enables to tackle massive multiple instance learning (MIL) +problems +( +Dietterich et al., 1997 +) +. +Immune repertoire classification +( +Emerson et al., 2017 +) +typically requires +to extract few patterns from a large set of sequences, the repertoire, +that are indicative for the respective immune status. +Most MIL methods fail due the large number of instances. +Data is obtained by +experimentally observed immune receptors as well as simulated sequences +sequence motifs +( +Akbar et al., 2019 +; +Weber et al., 2020 +) +with low yet varying degrees +of frequency are implanted. +Four different categories of +datasets are constructed: +(a) Simulated immunosequencing data with implanted motifs, +(b) immunosequencing data generated by long short-term memory (LSTM) with +implanted motifs, (c) real-world immunosequencing data with implanted motifs, and (d) +real-world immunosequencing data with known immune +status +( +Emerson et al., 2017 +) +. Categories (a), (b), and (d) contain approx. +300,000 instances per immune repertoire. With over 30 billion sequences in total, this +represents one of the largest multiple instance +learning experiments ever conducted +( +Carbonneau et al., 2018 +) +. +Despite the massive number of instances as well as the low frequency of sequences +indicative of the respective immune status, deep learning +architectures with modern Hopfield networks outperform +all competing methods with respect to average area under the ROC curve in all four +categories, (a), (b), (c) and (d) (for details see +Widrich et al. (2020a) +). +We evaluate and compare the performance of +DeepRC to a set of machine learning methods that +serve as baseline, were suggested, or +can readily be adapted to immune repertoire +classification. +The methods comprise +(i) known motif, +which counts how often the known implanted motifs occur, +(ii) Support Vector Machine (SVM) approach +that uses a fixed mapping from a bag +of sequences to the corresponding +$k$ +-mer counts +and used the MinMax and Jaccard kernel, +(iii) +$k$ +-Nearest Neighbor (KNN) with +$k$ +-mer representation, +transforming MinMax and Jaccard kernel to distances, +(iv) logistic regression on the +$k$ +-mer representation, +(v) burden test that first identifies sequences or +$k$ +-mers and +then computes a burden +score per individual, and +(vi) logistic multiple instance learning (lMIL). +On the real-world dataset DeepRC achieved +an AUC of +$0.832\pm 0.022$ +, followed by +the SVM with MinMax kernel (AUC +$0.825\pm 0.022$ +) and the burden +test with an AUC of +$0.699\pm 0.041$ +. +Overall on all datasets, DeepRC outperformed all competing methods +with respect to average AUC +(see +Widrich et al. (2020a) +; +Widrich et al. (2020b) +). +Table +A.1 +reports the average +performance in the simulated immunosequencing datasets +(last column) and the performance on datasets of +the remaining three categories. +DeepRC outperforms all competing methods +with respect to average AUC. +Across categories, the runner-up methods are either the SVM for +MIL problems with MinMax kernel or the burden test. +Real-world +Real-world data with implanted signals +LSTM-generated data +Simulated +CMV +OM 1% +OM 0.1% +MM 1% +MM 0.1% +10% +1% +0.5% +0.1% +0.05% +avg. +DeepRC +0.832 +$\pm$ +0.022 +1.00 +$\pm$ +0.00 +0.98 +$\pm$ +0.01 +1.00 +$\pm$ +0.00 +0.94 +$\pm$ +0.01 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.846 +$\pm$ +0.223 +SVM (MM) +0.825 +$\pm$ +0.022 +1.00 +$\pm$ +0.00 +0.58 +$\pm$ +0.02 +1.00 +$\pm$ +0.00 +0.53 +$\pm$ +0.02 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.99 +$\pm$ +0.01 +0.827 +$\pm$ +0.210 +SVM (J) +0.546 +$\pm$ +0.021 +0.99 +$\pm$ +0.00 +0.53 +$\pm$ +0.02 +1.00 +$\pm$ +0.00 +0.57 +$\pm$ +0.02 +0.98 +$\pm$ +0.04 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.90 +$\pm$ +0.04 +0.77 +$\pm$ +0.07 +0.550 +$\pm$ +0.080 +KNN (MM) +0.679 +$\pm$ +0.076 +0.74 +$\pm$ +0.24 +0.49 +$\pm$ +0.03 +0.67 +$\pm$ +0.18 +0.50 +$\pm$ +0.02 +0.70 +$\pm$ +0.27 +0.72 +$\pm$ +0.26 +0.73 +$\pm$ +0.26 +0.54 +$\pm$ +0.16 +0.52 +$\pm$ +0.15 +0.634 +$\pm$ +0.129 +KNN (J) +0.534 +$\pm$ +0.039 +0.65 +$\pm$ +0.16 +0.48 +$\pm$ +0.03 +0.70 +$\pm$ +0.20 +0.51 +$\pm$ +0.03 +0.70 +$\pm$ +0.29 +0.61 +$\pm$ +0.24 +0.52 +$\pm$ +0.16 +0.55 +$\pm$ +0.19 +0.54 +$\pm$ +0.19 +0.501 +$\pm$ +0.007 +Log. regr. +0.607 +$\pm$ +0.058 +1.00 +$\pm$ +0.00 +0.54 +$\pm$ +0.04 +0.99 +$\pm$ +0.00 +0.51 +$\pm$ +0.04 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.93 +$\pm$ +0.15 +0.60 +$\pm$ +0.19 +0.43 +$\pm$ +0.16 +0.826 +$\pm$ +0.211 +Burden test +0.699 +$\pm$ +0.041 +1.00 +$\pm$ +0.00 +0.64 +$\pm$ +0.05 +1.00 +$\pm$ +0.00 +0.89 +$\pm$ +0.02 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.79 +$\pm$ +0.28 +0.549 +$\pm$ +0.074 +Log. MIL (KMER) +0.582 +$\pm$ +0.065 +0.54 +$\pm$ +0.07 +0.51 +$\pm$ +0.03 +0.99 +$\pm$ +0.00 +0.62 +$\pm$ +0.15 +1.00 +$\pm$ +0.00 +0.72 +$\pm$ +0.11 +0.64 +$\pm$ +0.14 +0.57 +$\pm$ +0.15 +0.53 +$\pm$ +0.13 +0.665 +$\pm$ +0.224 +Log. MIL (TCRβ) +0.515 +$\pm$ +0.073 +0.50 +$\pm$ +0.03 +0.50 +$\pm$ +0.02 +0.99 +$\pm$ +0.00 +0.78 +$\pm$ +0.03 +0.54 +$\pm$ +0.09 +0.57 +$\pm$ +0.16 +0.47 +$\pm$ +0.09 +0.51 +$\pm$ +0.07 +0.50 +$\pm$ +0.12 +0.501 +$\pm$ +0.016 +Known motif b. +– +1.00 +$\pm$ +0.00 +0.70 +$\pm$ +0.03 +0.99 +$\pm$ +0.00 +0.62 +$\pm$ +0.04 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.890 +$\pm$ +0.168 +Known motif c. +– +0.92 +$\pm$ +0.00 +0.56 +$\pm$ +0.03 +0.65 +$\pm$ +0.03 +0.52 +$\pm$ +0.03 +1.00 +$\pm$ +0.00 +1.00 +$\pm$ +0.00 +0.99 +$\pm$ +0.01 +0.72 +$\pm$ +0.09 +0.63 +$\pm$ +0.09 +0.738 +$\pm$ +0.202 +Table A.1: +Results immune repertoire classification across all datasets. Results are given in terms of AUC of the competing methods on all datasets. The reported errors are standard deviations across +$5$ +cross-validation (CV) folds (except for the column “Simulated”). +Real-world CMV: +Average performance over +$5$ +CV folds on the +cytomegalovirus (CMV) dataset +Emerson et al. (2017) +. +Real-world data with implanted signals: +Average performance over +$5$ +CV folds for each +of the four datasets. A signal +was implanted with a frequency (=wittness rate) of +$1\%$ +or +$0.1\%$ +. Either a single motif (“OM”) +or multiple motifs (“MM”) were implanted. +LSTM-generated data: +Average performance over +$5$ +CV folds for each +of the +$5$ +datasets. In each dataset, a signal +was implanted with a frequency of +$10\%$ +, +$1\%$ +, +$0.5\%$ +, +$0.1\%$ +, and +$0.05\%$ +, respectively. +Simulated: +Here we report the mean over 18 simulated datasets with implanted signals and varying difficulties. The error reported is the standard deviation of the AUC values across the 18 datasets. +A.5.2.2 +Multiple Instance Learning Benchmark Datasets. +Classical benchmarking datasets comprise +UCSB breast cancer classification +( +Kandemir et al., 2014 +) +, and +the Elephant, Fox, Tiger datasets +( +Andrews et al., 2003 +) +. +Elephant, Fox and Tiger are MIL datasets for image annotation which comprise +color images from the Corel dataset that have been preprocessed and +segmented. An image consists +of a set of segments (or blobs), +each characterized by color, texture and shape +descriptors. +The datasets have 100 positive and 100 negative +example images. +The latter have been randomly drawn from a pool of photos of +other animals. +Elephant has 1391 instances and 230 features. +Fox has 1320 instances and 230 features. +Tiger has 1220 instances and 230 features. +Furthermore, we use the +UCSB breast cancer classification +( +Kandemir et al., 2014 +) +dataset, which consists of 2,002 instances across 58 input objects. An instance +represents a patch of a histopathological image of cancerous or normal tissue. +The layer +HopfieldPooling +is used, which allows for +computing a per-input-object representation by extracting an +average of instances that are indicative for one of the two classes. +The input to the +HopfieldPooling +layer +is a set of embedded instances +$\bm{Y}$ +and +a trainable but fixed state (query) pattern +$\bm{Q}$ +used for averaging of class-indicative instances. +This averaging enables a compression of variable-sized bags to a +fixed-sized representation to discriminate the bags. +We performed a manual hyperparameter search on a validation set. +In detail, we used the following architecture to perform the given task +on the Elephant, Fox, Tiger and UCSCB breast cancer datasets: +(I) we apply fully connected linear embedding layers +with ReLU activation. (II) The output of this embedding serves +as the input to our +HopfieldPooling +layer where the above described +pooling operation is performed. (III) Thereafter we use ’ReLU - Linear blocks’ +as the final linear output layers that perform the classification. +Among other hyperparameters, different hidden layer widths +(for the fully connected pre- and post- +HopfieldPooling +layers), +learning rates and batch sizes were tried. +Additionally our focus resided on the hyperparameters of the +HopfieldPooling +layer. Among those were the number of heads, +the head dimension and the scaling factor β. +parameter +values +learning rates +$\{10^{-3}$ +, +$10^{-5}\}$ +learning rate decay (γ) +$\{0.98,0.96,0.94\}$ +embedding layers +$\{1,2,3\}$ +layer widths +$\{32,64,256,1024,2048\}$ +number of heads +$\{8,12,16,32\}$ +head dimensions +$\{16,32,64\}$ +scaling factors +$\{0.1,1.0,10.0\}$ +hidden dimensions +$\{32,64,128\}$ +bag dropout +$\{0.0,0.75\}$ +Table A.2: +Hyperparameter search-space of a manual hyperparameter selection on the respective validation sets of the Elephant, Fox, Tiger and UCSB breast cancer datasets. +All models were trained for 160 epochs using the AdamW optimizer +( +Loshchilov & Hutter, 2017 +) +with exponential +learning rate decay (see Table +A.2 +), and validated by 10-fold nested cross validation repeated five times with different splits on the data sets. The reported ROC AUC scores are the average of these repetitions. As overfitting imposed quite a problem, bag dropout was applied as the regularization technique of choice. +A.5.3 +Experiment 3: Classification on Small UCI Benchmark Datasets +A.5.3.1 +Motivation. +Datasets with a small number of samples, like the UCI benchmark datasets, are particularly difficult for neural networks to generalize on. +In contrast to their performance on larger datasets, they are consistently outperformed by methods like e.g. gradient boosting, random forests (RF) and support vector machines (SVMs). +Finding samples or even learning prototypes that are highly indicative for the class of a sample (query) suggest the use of Hopfield networks. +We applied a modern Hopfield network via the layer +Hopfield +. +The input vector is mapped to +$\bm{R}$ +using a self-normalizing net (SNN) and +$\bm{W}_{K}$ +is learned, +where the dimension of +$\bm{W}_{K}$ +(the number of stored fixed pattern) +is a hyperparameter. +The output +$\bm{Z}$ +of +Hopfield +enters +the output layer. +A.5.3.2 +Methods compared. +Modern Hopfield networks via the layer Hopfield +are compared to +17 groups of methods +( +Fernández-Delgado et al., 2014 +; +Klambauer et al., 2017a +) +: +1. +Support Vector Machines +2. +Random Forest +3. +Multivariate adaptive regression splines (MARS) +4. +Boosting +5. +Rule-based Methods +6. +Logistic and Multinomial Regression (LMR) +7. +Discriminant Analysis (DA) +8. +Bagging +9. +Nearest Neighbor +10. +Decision Trees +11. +Other Ensembles +12. +Neural Networks (standard NN, BatchNorm, WeighNorm, MSRAinit, LayerNorm, ResNet, Self-Normalizing Nets) +13. +Bayesian Methods +14. +Other Methods +15. +Generalized linear models (GLM) +16. +Partial Least Squares and Principal Component Regression (PLSR) +17. +Stacking (Wolpert) +A.5.3.3 +Experimental design and implementation details. +As specified in the main paper, +we consider +$75$ +datasets of the +UC Irvine Machine Learning Repository +, +which contain less than +$1,000$ +samples per dataset, +following the dataset separation into large and small dataset in +Klambauer et al. (2017a) +. +On each dataset, +we performed a grid-search to determine the best hyperparameter setting and model per dataset. +The hyperparameter search-space of the grid-search is listed in Table +A.3 +. +All models were trained for +$100$ +epochs with a mini-batch size of +$4$ +samples using the cross entropy loss and +the PyTorch SGD module for stochastic gradient descent without momentum and without weight decay or dropout. +After each epoch, the model accuracy was computed on a separated validation set. +Using early stopping, +the model with the best validation set accuracy averaged over +$16$ +consecutive epochs was selected as final model. +This final model was then evaluated against a separated test set to determine the accuracy, +as reported in Tables +2 +and Table +uci_detailed_results.csv +in the supplemental materials. +As network architecture, +we use +$\{0,1,7\}$ +fully connected embedding layers with SELU +Klambauer et al. (2017a) +activation functions and +$\{32,128,1024\}$ +hidden units per embedding layer. +These embedding layers are followed by the layer +Hopfield +. +The number of hidden units is also used as number of dimensions +for the Hopfield association space with a number of +$\{1,32\}$ +heads. +The layer +Hopfield +is followed by a mapping to the output vector, +which has as dimension the number of classes. +Finally, the softmax function is applied to obtain the predicted probability for a class. +parameter +values +learning rates +$\{0.05\}$ +embedding layers +$\{0,1,7\}$ +hidden units +$\{32,128,1024\}$ +heads +$\{1,32\}$ +$\beta$ +$\{1.0,0.1,0.001\}$ +# stored patterns +$\{1,8\}\cdot n\_classes$ +Table A.3: +Hyperparameter search-space for grid-search on small UCI benchmark datasets. +All models were trained for +$100$ +epochs using stochastic gradient descent +with early stopping based on the validation set accuracy and +a minibatch size of +$4$ +samples. +The number of stored patterns is depending on the number of target classes of the individual tasks. +A.5.3.4 +Results. +We compared the performance of 25 methods based on their method rank. +For this we computed the rank per method per dataset based on the accuracy on the test set, +which was then averaged over all 75 datasets for each method to obtain the method rank. +For the baseline methods we used the scores summarized by +( +Klambauer et al., 2017a +) +. +A.5.4 +Experiment 4: Drug Design Benchmark Datasets +A.5.4.1 +Experimental design and implementation details. +We test Hopfield layers on 4 classification datasets from MoleculeNet +( +Wu et al., 2017 +) +, +which are challenging for deep learning methods. +The first dataset is HIV, which +was introduced by the Drug Therapeutics Program (DTP) AIDS Antiviral Screen. +The second dataset is BACE, which +has IC50 measurements for +binding affinities of inhibitors (molecules) to the human +$\beta$ +-secretase 1 (BACE-1). +The third dataset is BBBP (blood-brain barrier permeability), +which stems from modeling and predicting +the blood-brain barrier permeability +( +Martins et al., 2012 +) +. +The fourth dataset is SIDER (Side Effect Resource) +Kuhn et al. (2016) +and contains 1427 approved drugs. +These datasets represent four areas of modeling tasks in drug discovery, +concretely to develop accurate models for predicting +a) new anti-virals (HIV), +b) new protein inhibitors (BACE), +c) metabolic effects (BBBP), and +d) side effects of a chemical compound (SIDER). +We implemented a Hopfield layer +HopfieldLayer +, +in which we used the training-input as stored-pattern +$\bm{Y}$ +or key, +the training-label as pattern-projection +$\bm{Y}\bm{W}_{V}$ +or value and +the input as state-pattern +$\bm{R}$ +or query. As described in section +A.6 +by concatenation of input +$\bm{z}_{i}$ +and target +$\bm{t}_{i}$ +the matrices +$\bm{W}_{K}$ +and +$\bm{W}_{V}$ +can be designed such that inside the softmax the input +$\bm{z}_{i}$ +is used and outside the softmax the target +$\bm{t}_{i}$ +. +All hyperparameters were selected on separate validation sets and +we selected the model with the highest validation AUC +on five different random splits. +parameter +values +beta +$\{0.0001,0.001,0.01,0.1,0.2,0.3\}$ +learning rates +$\{0.0002\}$ +heads +$\{1,32,128,512\}$ +dropout +$\{0.0,0.1,0.2\}$ +state-pattern bias +$\{0.0,-0.1,-0.125,0.15,-0.2\}$ +association-activation +{None, LeakyReLU } +state- and stored-pattern static +{False, True} +normalize state- and stored-pattern +{False, True} +normalize association projection +{False, True} +learnable stored-pattern +{False, True} +Table A.4: +Hyperparameter search-space for grid-search on HIV, BACE, BBBP and SIDER. +All models were trained if applicable for +$4$ +epochs using +Adam and a batch size of +$1$ +sample. +A.5.4.2 +Results. +We compared the Hopfield layer +Hopfieldlayer +to Support Vector Machines (SVMs) +( +Cortes & Vapnik, 1995 +; +Schölkopf & Smola, 2002 +) +, +Extreme Gradient Boosting (XGBoost) +( +Chen & Guestrin, 2016 +) +, +Random Forest (RF) +( +Breiman, 2001 +) +, +Deep Neural Networks (DNNs) +( +LeCun et al., 2015 +; +Schmidhuber, 2015 +) +, and to +graph neural networks (GNN) like +Graph Convolutional Networks (GCNs) +( +Kipf & Welling, 2016 +) +, +Graph Attention Networks (GATs) +( +Velic̆ković et al., 2018 +) +, +Message Passing Neural Networks (MPNNs) +( +Gilmer et al., 2017 +) +, and +Attentive FP +( +Xiong et al., 2020 +) +. +Our architecture with +HopfieldLayer +has reached state-of-the-art +for predicting side +effects on SIDER +$0.672\pm 0.019$ +as well as for predicting +$\beta$ +-secretase BACE +$0.902\pm 0.023$ +. +See Table +A.5 +for all results, where the results +of other methods are taken from +Jiang et al. (2020) +. +Table A.5: +Results on drug design benchmark datasets. Predictive performance (ROCAUC) on test set as reported by +Jiang et al. (2020) +for 50 random splits +Model +HIV +BACE +BBBP +SIDER +SVM +$0.822\pm 0.020$ +$0.893\pm 0.020$ +$0.919\pm 0.028$ +$0.630\pm 0.021$ +XGBoost +$0.816\pm 0.020$ +$0.889\pm 0.021$ +$\mathbf{0.926\pm 0.026}$ +$0.642\pm 0.020$ +RF +$0.820\pm 0.016$ +$0.890\pm 0.022$ +$\mathbf{0.927\pm 0.025}$ +$0.646\pm 0.022$ +GCN +$\mathbf{0.834\pm 0.025}$ +$0.898\pm 0.019$ +$0.903\pm 0.027$ +$0.634\pm 0.026$ +GAT +$0.826\pm 0.030$ +$0.886\pm 0.023$ +$0.898\pm 0.033$ +$0.627\pm 0.024$ +DNN +$0.797\pm 0.018$ +$0.890\pm 0.024$ +$0.898\pm 0.033$ +$0.627\pm 0.024$ +MPNN +$0.811\pm 0.031$ +$0.838\pm 0.027$ +$0.879\pm 0.037$ +$0.598\pm 0.031$ +Attentive FP +$0.822\pm 0.026$ +$0.876\pm 0.023$ +$0.887\pm 0.032$ +$0.623\pm 0.026$ +Hopfield (ours) +$0.815\pm 0.023$ +$\mathbf{0.902\pm 0.023}$ +$0.910\pm 0.026$ +$\mathbf{0.672\pm 0.019}$ +A.6 +PyTorch Implementation of Hopfield Layers +The implementation is available at: +https://github.com/ml-jku/hopfield-layers +A.6.1 +Introduction +In this section, we describe the implementation +of Hopfield layers in PyTorch +( +Paszke et al., 2017 +; +Paszke et al., 2019 +) +and, additionally, provide a brief usage manual. +Possible applications for a Hopfield layer +in a deep network architecture comprise: +• +multiple instance learning (MIL) +( +Dietterich et al., 1997 +) +, +• +processing of and learning with point sets +( +Qi et al., 2017a +; +Qi et al., 2017b +; +Xu et al., 2018 +) +, +• +set-based and permutation invariant learning +( +Guttenberg et al., 2016 +; +Ravanbakhsh et al., 2016 +; +Zaheer et al., 2017 +; +Korshunova et al., 2018 +; +Ilse et al., 2018 +; +Zhai et al., 2020 +) +, +• +attention-based learning +( +Vaswani et al., 2017a +) +, +• +associative learning, +• +natural language processing, +• +sequence analysis and time series prediction, and +• +storing and retrieving reference or experienced data, e.g. to store training data and retrieve it by the model +or to store experiences for reinforcement learning. +The Hopfield layer in a deep neural network architecture can implement: +• +a memory (storage) with associative retrieval +( +Danihelka et al., 2016 +; +Ba et al., 2016a +) +, +• +conditional pooling and averaging operations +( +Wang et al., 2018 +; +Ilse et al., 2020 +) +, +• +combining data by associations +( +Agrawal et al., 1993 +) +, +• +associative credit assignment (e.g. Rescorla-Wagner model or value estimation) +( +Sutton & Barto, 2018 +) +, +and +• +attention mechanisms +( +Vaswani et al., 2017a +; +Bahdanau et al., 2014 +) +. +In particular, a Hopfield layer can substitute +attention layers in architectures of transformer and BERT models. +The Hopfield layer +is designed to be used as plug-in replacement +for existing layers like +• +pooling layers (max-pooling or average pooling), +• +permutation equivariant layers +( +Guttenberg et al., 2016 +; +Ravanbakhsh et al., 2016 +) +, +• +GRU & LSTM layers, and +• +attention layers. +In contrast to classical Hopfield networks, the Hopfield layer is based +on the modern Hopfield networks with continuous states that have increased storage capacity, +as discussed in the main paper. +Like classical Hopfield networks, +the dynamics of the single heads of a Hopfield layer +follow a energy minimization dynamics. +The energy minimization empowers +our Hopfield layer with several advantages +over other architectural designs like memory cells, associative memory, or +attention mechanisms. +For example, the Hopfield layer has more functionality than +a transformer self-attention layer +( +Vaswani et al., 2017a +) +as +described in Sec. +A.6.2 +. +Possible use cases are given in Sec. +A.6.3 +. +Source code will be provided under +github +. +A.6.2 +Functionality +Non-standard functionalities that are added by a Hopfield layer are +• +Association of two sets +, +• +Multiple Updates +for precise fixed points, +• +Variable Beta +that determines the kind of fixed points, +• +Dimension of the associative space +for controlling the storage capacity, +• +Static Patterns +for fixed pattern search, +and +• +Pattern Normalization +to control the fixed point dynamics by norm of +the patterns and shift of the patterns. +A functional sketch of our Hopfield layer is shown in Fig. +A.7 +. +• +Association of two sets. +The Hopfield layer makes it possible +to associate two sets of vectors. +This general functionality allows +• +for transformer-like self-attention, +• +for decoder-encoder attention, +• +for time series prediction (maybe with positional encoding), +• +for sequence analysis, +• +for multiple instance learning, +• +for learning with point sets, +• +for combining data sources by associations, +• +for constructing a memory, +• +for averaging and pooling operations, and +• +for many more. +The first set of vectors consists of +$S$ +raw state patterns +$\bm{R}=(\bm{r}_{1},\ldots,\bm{r}_{S})^{T}$ +with +$\bm{r}_{s}\in\mathbb{R}^{d_{r}}$ +and the second set of vectors consists of +$N$ +raw stored patterns +$\bm{Y}=(\bm{y}_{1},\ldots,\bm{y}_{N})^{T}$ +with +$\bm{y}_{i}\in\mathbb{R}^{d_{y}}$ +. +Both the +$S$ +raw state patterns and +$N$ +raw stored patterns +are mapped to +an associative space in +$\mathbb{R}^{d_{k}}$ +via the matrices +$\bm{W}_{Q}\in\mathbb{R}^{d_{r}\times d_{k}}$ +and +$\bm{W}_{K}\in\mathbb{R}^{d_{y}\times d_{k}}$ +, respectively. +We define a matrix +$\bm{Q}$ +( +$\bm{\Xi}^{T}$ +) of +state patterns +$\bm{\xi}_{n}=\bm{W}_{Q}\bm{r}_{n}$ +in +an associative space +$\mathbb{R}^{d_{k}}$ +and a matrix +$\bm{K}$ +( +$\bm{X}^{T}$ +) of +stored patterns +$\bm{x}_{i}=\bm{W}_{K}\bm{y}_{s}$ +in the associative space +$\mathbb{R}^{d_{k}}$ +: +$\displaystyle\bm{Q}\ $ +$\displaystyle=\ \bm{\Xi}^{T}\ =\ \bm{R}\ \bm{W}_{Q}\ ,$ +(549) +$\displaystyle\bm{K}\ $ +$\displaystyle=\ \bm{X}^{T}\ =\ \bm{Y}\ \bm{W}_{K}\ .$ +(550) +In the main paper, Eq. ( +3 +) +defines the novel update rule: +$\displaystyle\bm{\xi}^{\mathrm{new}}\ $ +$\displaystyle=\ f(\bm{\xi})\ =\ \bm{X}\ \mathrm{softmax}(\beta\ \bm{X}^{T}\bm{\xi})\ ,$ +(551) +For multiple patterns, Eq. ( +3 +) becomes: +$\displaystyle\bm{\Xi}^{\mathrm{new}}\ $ +$\displaystyle=\ f(\bm{\Xi})\ =\ \bm{X}\ \mathrm{softmax}(\beta\ \bm{X}^{T}\bm{\Xi})\ ,$ +(552) +where +$\bm{\Xi}=(\bm{\xi}_{1},\ldots,\bm{\xi}_{N})$ +is the matrix +of +$N$ +state (query) patterns, +$\bm{X}$ +is the matrix of stored (key) patterns, +and +$\bm{\Xi}^{\mathrm{new}}$ +is the matrix of new state patterns, +which are averages over stored patterns. +A new state pattern can also be very similar to a single stored pattern, in which case +we call the stored pattern to be retrieved. +These matrices allow to rewrite Eq. ( +552 +) as: +$\displaystyle\left(\bm{Q}^{\mathrm{new}}\right)^{T}\ $ +$\displaystyle=\ \bm{K}^{T}\mathrm{softmax}(\beta\ \bm{K}\ \bm{Q}^{T})\ .$ +(553) +For +$\beta=1/\sqrt{d_{k}}$ +and changing in Eq. ( +553 +) +$\mathrm{softmax}\in\mathbb{R}^{N}$ +to a row vector (and evaluating a row vector), we obtain: +$\displaystyle\bm{Q}^{\mathrm{new}}\ $ +$\displaystyle=\ \mathrm{softmax}(1/\sqrt{d_{k}}\ \bm{Q}\ \bm{K}^{T})\ \bm{K}\ ,$ +(554) +where +$\bm{Q}^{\mathrm{new}}$ +is again the matrix of new state patterns. +The new state patterns +$\bm{\Xi}^{\mathrm{new}}$ +are projected +via +$\bm{W}_{V}$ +to the result patterns +$\bm{Z}=\bm{\Xi}^{\mathrm{new}}\bm{W}_{V}$ +, +where +$\bm{W}_{V}\in\mathbb{R}^{d_{k}\times d_{v}}$ +. +With the pattern projection +$\bm{V}=\bm{K}\bm{W}_{V}$ +, we obtain +the update rule Eq. ( +10 +) from the main paper: +$\displaystyle\bm{Z}\ $ +$\displaystyle=\ \mathrm{softmax}(1/\sqrt{d_{k}}\ \bm{Q}\ \bm{K}^{T})\ \bm{V}\ .$ +(555) +• +Multiple Updates. +The update Eq. ( +553 +) +can be iteratively applied to the initial state +$\bm{\xi}$ +of every Hopfield layer head. +After the last update, the new states +$\bm{\Xi}^{\mathrm{new}}$ +are projected +via +$\bm{W}_{V}$ +to the result patterns +$\bm{Z}=\bm{\Xi}^{\mathrm{new}}\bm{W}_{V}$ +. +Therefore, the Hopfield layer allows multiple update steps +in the forward pass without changing the number of parameters. +The number of update steps can be given for every Hopfield +head individually. +Furthermore, it is possible to set a threshold +for the number of updates of every Hopfield +head based on +${{\left\|\bm{\xi}-\bm{\xi}^{\mathrm{new}}\right\|}}_{2}$ +. +In the general case of multiple initial states +$\bm{\Xi}$ +, the maximum over the individual norms is taken. +• +Variable +$\beta$ +. +In the main paper, +we have identified +$\beta$ +as a crucial +parameter for the fixed point dynamics of the Hopfield network, +which governs the operating mode of the attention heads. +In appendix, e.g. in Lemma +A7 +or +in Eq. ( +102 +) and Eq. ( +103 +), +we showed that the characteristics of the fixed points of the new +modern Hopfield network are +determined by: +$\beta$ +, +$M$ +(maximal pattern norm), +$m_{\max}$ +(spread of the similar patterns), and +${{\left\|\bm{m}_{\bm{x}}\right\|}}$ +(center of the similar patterns). +Low values of +$\beta$ +induce global averaging and higher values of +$\beta$ +metastable states. +In the transformer attention, the +$\beta$ +parameter +is set to +$\beta=1/\sqrt{d_{k}}$ +as in Eq. ( +555 +). +The Hopfield layer, however, allows to freely choose +$\beta>0$ +, since the fixed +point dynamics does not only depend on the dimension of the associative space +$d_{k}$ +. +Additionally, +$\beta$ +heavily influences the gradient flow to the matrices +$\bm{W}_{Q}$ +and +$\bm{W}_{K}$ +. Thus, finding the right +$\beta$ +for the respective application +can be crucial. +• +Variable dimension of the associative space. +Theorem +A5 +says that the storage capacity of +the modern Hopfield network grows exponentially with the +dimension of the associative space. +However higher dimension of the associative space +also means less averaging and smaller metastable states. +The dimension of the associative space trades off storage capacity against +the size of metastable states, e.g. over how many pattern is averaged. +In Eq. ( +550 +) and in Eq. ( +549 +), +we assumed +$N$ +raw state patterns +$\bm{R}=(\bm{r}_{1},\ldots,\bm{r}_{N})^{T}$ +and +$S$ +raw stored patterns +$\bm{Y}=(\bm{y}_{1},\ldots,\bm{y}_{S})^{T}$ +that are mapped to +a +$d_{k}$ +-dimensional associative space +via the matrices +$\bm{W}_{Q}\in\mathbb{R}^{d_{r}\times d_{k}}$ +and +$\bm{W}_{K}\in\mathbb{R}^{d_{y}\times d_{k}}$ +, respectively. +In the associative space +$\mathbb{R}^{d_{k}}$ +, we obtain the state patterns +$\bm{Q}=\bm{\Xi}^{T}=\bm{R}\bm{W}_{Q}$ +and +the stored patterns +$\bm{K}=\bm{X}^{T}=\bm{Y}\ \bm{W}_{K}$ +. +The Hopfield view relates +the dimension +$d_{k}$ +to the number of input patterns +$N$ +that have to be processed. +The storage capacity depends exponentially on +the dimension +$d_{k}$ +(the dimension of the associative space) and the +size to metastable states is governed by this dimension, too. +Consequently, +$d_{k}$ +should be chosen with respect +to the number +$N$ +of patterns +one wants to store and the desired size of metastable states, +which is the number of patterns one wants to average over. +For example, if the input consists of many low dimensional input patterns, +it makes sense to project the patterns into a higher dimensional space to allow a proper fixed point dynamics. +Intuitively, this coincides with the construction of a +richer feature space for the patterns. +• +Static Patterns. +In Eq. ( +550 +) and Eq. ( +549 +), +the +$N$ +raw state patterns +$\bm{R}=(\bm{r}_{1},\ldots,\bm{r}_{N})^{T}$ +and +$S$ +raw stored patterns +$\bm{Y}=(\bm{y}_{1},\ldots,\bm{y}_{S})^{T}$ +are mapped to +an associative space via the matrices +$\bm{W}_{Q}\in\mathbb{R}^{d_{r}\times d_{k}}$ +and +$\bm{W}_{K}\in\mathbb{R}^{d_{y}\times d_{k}}$ +, which gives +the state patterns +$\bm{Q}=\bm{\Xi}^{T}=\bm{R}\bm{W}_{Q}$ +and +the stored patterns +$\bm{K}=\bm{X}^{T}=\bm{Y}\ \bm{W}_{K}$ +. +We allow for static state and static stored patterns. +Static pattern means that the pattern does not depend on the +network input, i.e. it is determined by the bias weights and +remains constant across different network inputs. +Static state patterns allow to determine whether particular fixed patterns +are among the stored patterns and vice versa. +The static pattern functionality is typically needed if particular patterns +must be identified in the data, e.g. as described +for immune repertoire classification in the main paper, +where a fixed +$d_{k}$ +-dimensional state vector +$\bm{\xi}$ +is used. +• +Pattern Normalization. +In the appendix, e.g. in Lemma +A7 +or +in Eq. ( +102 +) and Eq. ( +103 +), +we showed that the characteristics of the fixed points of the new +modern Hopfield network are +determined by: +$\beta$ +, +$M$ +(maximal pattern norm), +$m_{\max}$ +(spread of the similar patterns), and +${{\left\|\bm{m}_{\bm{x}}\right\|}}$ +(center of the similar patterns). +We already discussed the parameter +$\beta$ +while +the spread of the similar patterns +$m_{\max}$ +is given by the data. +The remaining variables +$M$ +and +$\bm{m}_{\bm{x}}$ +that both control the fixed point dynamics are +adjusted pattern normalization. +$M$ +is the maximal pattern norm and +$\bm{m}_{\bm{x}}$ +the center of the similar patterns. +Theorem +A5 +says +that larger +$M$ +allows for more patterns to +be stored. However, the size of metastable +states will decrease with increasing +$M$ +. +The vector +$\bm{m}_{\bm{x}}$ +says +how well the (similar) patterns are centered. +If the norm +${{\left\|\bm{m}_{\bm{x}}\right\|}}$ +is large, +then this leads to smaller metastable states. +The two parameters +$M$ +and +$\bm{m}_{\bm{x}}$ +are controlled by pattern normalization and determine +the size and convergence properties of metastable states. +These two parameters are important for creating large gradients +if heads start with global averaging which has small gradient. +These two parameters can shift a head towards +small metastable states which have +largest gradient as shown in Fig. +A.5 +(b). +We allow for three different pattern normalizations, where the first is the default setting: +• +pattern normalization of the input patterns, +• +pattern normalization after mapping into the associative space, +• +no pattern normalization. +Figure A.7: +A flowchart of the Hopfield layer. +First, the raw state (query) patterns +$\bm{R}$ +and the raw stored (key) patterns +$\bm{Y}$ +are optionally normalized (with layer normalization), +projected and optionally normalized (with layer normalization) again. +The default setting is a layer normalization of the input +patterns, and no layer normalization of the projected patterns. +The raw stored patterns +$\bm{Y}$ +can in principle be also two different input tensors. +Optionally, multiple updates take place in the +projected space of +$\bm{Q}$ +and +$\bm{K}$ +. +This update rule is obtained e.g. from the full update +Eq. ( +423 +) or the simplified update +Eq. ( +424 +) +in the appendix. +A.6.3 +Usage +As outlined in Sec. +A.6.1 +, there +are a variety of possible use cases for the Hopfield layer, +e.g. to build memory networks or transformer models. +The goal of the implementation is therefore +to provide an easy to use Hopfield module +that can be used in a wide range of applications, +be it as part of a larger architecture or as a standalone module. +Consequently, the focus of the Hopfield layer interface is set +on its core parameters: the association of two sets, +the scaling parameter +$\beta$ +, +the maximum number of updates, +the dimension of the associative space, +the possible usage of static patterns, +and the pattern normalization. +The integration into the PyTorch framework is built such +that with all the above functionalities disabled, +the “HopfieldEncoderLayer” and +the “HopfieldDecoderLayer”, both extensions of the +Hopfield module, +can be used as a one-to-one plug-in replacement +for the +TransformerEncoderLayer +and the +TransformerDecoderLayer +, respectively, +of the PyTorch transformer module. +The Hopfield layer can be used to implement or to substitute different layers: +• +Pooling layers: +We consider the Hopfield layer as a pooling layer if only +one static state (query) pattern exists. Then, it is de facto +a pooling over the sequence, which results from the softmax values +applied on the stored patterns. +Therefore, our Hopfield layer can act as a pooling layer. +• +Permutation equivariant layers: +Our Hopfield layer +can be used as a plug-in replacement for permutation equivariant layers. Since the Hopfield layer is an associative memory it +assumes no dependency between the input patterns. +• +GRU & LSTM layers: +Our Hopfield layer can be used as a plug-in replacement for GRU & LSTM layers. Optionally, for substituting +GRU & LSTM layers, +positional encoding might be considered. +• +Attention layers: +Our Hopfield layer can act as an attention layer, where state (query) and stored (key) patterns are different, +and need to be associated. +• +Finally, the extensions of the Hopfield layer +are able to operate as a self-attention layer +(HopfieldEncoderLayer) and as cross-attention layer +(HopfieldDecoderLayer), +as described in +( +Vaswani et al., 2017a +) +. +As such, it can be used as building block of +transformer-based or general architectures. +References +Abu-Mostafa & StJacques (1985) +Y. Abu-Mostafa and J.-M. StJacques. +Information capacity of the Hopfield model. +IEEE Transactions on Information Theory +, 31, 1985. +doi: +10.1109/tit.1985.1057069 +. +Agrawal et al. (1993) +R. Agrawal, T. Imieliundefinedski, and A. Swami. +Mining association rules between sets of items in large databases. +SIGMOD Rec. +, 22(2):207–216, 1993. +doi: +10.1145/170036.170072 +. +Akbar et al. (2019) +R. Akbar, P. A. Robert, M. Pavlović, J. R. Jeliazkov, I. Snapkov, +A. Slabodkin, C. R. Weber, L. Scheffer, E. Miho, I. H. Haff, et al. +A compact vocabulary of paratope-epitope interactions enables +predictability of antibody-antigen binding. +bioRxiv +, 2019. +Alzahrani & Salem (2018) +F. Alzahrani and A. Salem. +Sharp bounds for the lambert +$w$ +function. +Integral Transforms and Special Functions +, 29(12):971–978, 2018. +Andrews et al. (2003) +S. Andrews, I. Tsochantaridis, and T. Hofmann. +Support vector machines for multiple-instance learning. +In S. Becker, S. Thrun, and K. Obermayer (eds.), +Advances in +Neural Information Processing Systems 15 +, pp. 577–584. MIT Press, 2003. +Ba et al. (2016a) +J. Ba, G. E. Hinton, V. Mnih, J. Z. Leibo, and C. Ionescu. +Using fast weights to attend to the recent past. +In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett +(eds.), +Advances in Neural Information Processing Systems 29 +, pp. 4331–4339. Curran Associates, Inc., 2016a. +Ba et al. (2016b) +J. Ba, G. E. Hinton, V. Mnih, J. Z. Leibo, and C. Ionescu. +Using fast weights to attend to the recent past. +ArXiv +, 1610.06258, 2016b. +Bahdanau et al. (2014) +D. Bahdanau, K. Cho, and Y. Bengio. +Neural machine translation by jointly learning to align and +translate. +ArXiv +, 1409.0473, 2014. +appeared in ICRL 2015. +Banino et al. (2020) +A. Banino, A. P. Badia, R. Köster, M. J. Chadwick, V. Zambaldi, +D. Hassabis, C. Barry, M. Botvinick, D. Kumaran, and C. Blundell. +MEMO: a deep network for flexible combination of episodic memories. +ArXiv +, 2001.10913, 2020. +Barra et al. (2018) +A. Barra, M. Beccaria, and A. Fachechi. +A new mechanical approach to handle generalized Hopfield neural +networks. +Neural Networks +, 106:205–222, 2018. +doi: +10.1016/j.neunet.2018.07.010 +. +Bauschke & Combettes (2017) +H. H. Bauschke and P. L. Combettes. +Convex Analysis and Monotone Operator Theory in Hilbert +Spaces +. +Cham: Springer International Publishing, 2nd edition, 2017. +ISBN 978-3-319-48310-8. +doi: +10.1007/978-3-319-48311-5 +. +Boyd & Vandenberghe (2009) +S. Boyd and L. Vandenberghe. +Convex Optimization +. +Cambridge University Press, 7th edition, 2009. +ISBN 978-0-521-83378-3. +Brauchart et al. (2018) +J. S. Brauchart, A. B. Reznikov, E. B. Saff, I. H. Sloan, Y. G. Wang, and R. S. +Womersley. +Random point sets on the sphere - hole radii, covering, and +separation. +Experimental Mathematics +, 27(1):62–81, +2018. +doi: +10.1080/10586458.2016.1226209 +. +Breiman (2001) +L. Breiman. +Random forests. +Machine Learning +, 45(1):5–32, 2001. +doi: +10.1023/A:1010933404324 +. +Bruck & Roychowdhury (1990) +J. Bruck and V. P. Roychowdhury. +On the number of spurious memories in the Hopfield model. +IEEE Transactions on Information Theory +, 36(2):393–397, 1990. +Cai et al. (2013) +T. Cai, J. Fan, and T. Jiang. +Distributions of angles in random packing on spheres. +Journal of Machine Learning Research +, 14(21):1837–1864, 2013. +Carbonneau et al. (2018) +M.-A. Carbonneau, V. Cheplygina, E. Granger, and G. Gagnon. +Multiple instance learning: a survey of problem characteristics and +applications. +Pattern Recognition +, 77:329–353, 2018. +Carbonneau et al. (2016) +Marc-André Carbonneau, Eric Granger, Alexandre J. Raymond, and Ghyslain +Gagnon. +Robust multiple-instance learning ensembles using random subspace +instance selection. +Pattern Recognition +, 58:83 – 99, 2016. +ISSN 0031-3203. +doi: +https://doi.org/10.1016/j.patcog.2016.03.035 +. +URL +http://www.sciencedirect.com/science/article/pii/S0031320316300346 +. +Carreira-Perpiñán & +Williams (2003) +M. Carreira-Perpiñán and C. K. I. Williams. +An isotropic Gaussian mixture can have more modes than components. +Technical Report EDI-INF-RR-0185, The University of Edinburgh, School +of Informatics, 2003. +Carta et al. (2020) +A. Carta, A. Sperduti, and D. Bacciu. +Encoding-based memory modules for recurrent neural networks. +ArXiv +, 2001.11771, 2020. +Chen & Guestrin (2016) +T. Chen and C. Guestrin. +XGBoost: A scalable tree boosting system. +In +Proceedings of the 22nd ACM SIGKDD International Conference +on Knowledge Discovery and Data Mining +, pp. 785–794. ACM, 2016. +doi: +10.1145/2939672.2939785 +. +Chen et al. (2006) +Y. Chen, J. Bi, and J. Z. Wang. +MILES: Multiple-instance learning via embedded instance selection. +IEEE Transactions on Pattern Analysis and Machine +Intelligence +, 28(12):1931–1947, 2006. +Cheplygina et al. (2016) +V Cheplygina, DM Tax, and M Loog. +Dissimilarity-based ensembles for multiple instance learning. +IEEE transactions on neural networks and learning systems +, +27(6):1379, 2016. +Cho et al. (2014) +K. Cho, B. vanMerriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, +H. Schwenk, and Y. Bengio. +Learning phrase representations using RNN encoder–decoder for +statistical machine translation. +In +Proceedings of the Conference on Empirical Methods in +Natural Language Processing (EMNLP) +, pp. 1724–1734. Association for +Computational Linguistics, 2014. +doi: +10.3115/v1/D14-1179 +. +Clark et al. (2020) +K. Clark, M.-T. Luong, Q. V. Le, and C. D. Manning. +ELECTRA: Pre-training text encoders as discriminators rather than +generators. +ArXiv +, 2003.10555, 2020. +appeared in ICLR 2020. +Cortes & Vapnik (1995) +C. Cortes and V. Vapnik. +Support-vector networks. +Machine learning +, 20(3):273–297, 1995. +Crisanti et al. (1986) +A. Crisanti, D. J. Amit, and H. Gutfreund. +Saturation level of the Hopfield model for neural network. +Europhysics Letters (EPL) +, 2(4):337–341, +1986. +doi: +10.1209/0295-5075/2/4/012 +. +Danihelka et al. (2016) +I. Danihelka, G. Wayne, B. Uria, N. Kalchbrenner, and A. Graves. +Associative long short-term memory. +In M. F. Balcan and K. Q. Weinberger (eds.), +Proceedings of The +33rd International Conference on Machine Learning +, volume 48 of +Proceedings of Machine Learning Research +, pp. 1986–1994, New York, +USA, 2016. +Daniluk et al. (2017) +M. Daniluk, T. Rocktäschel, J. Welbl, and S. Riedel. +Frustratingly short attention spans in neural language modeling. +ArXiv +, 1702.04521, 2017. +appeared in ICRL 2017. +Dehghani et al. (2018) +M. Dehghani, S. Gouws, O. Vinyals, J. Uszkoreit, and L. Kaiser. +Universal transformers. +ArXiv +, 1807.03819, 2018. +Published at ICLR 2019. +Demircigil et al. (2017) +M. Demircigil, J. Heusel, M. Löwe, S. Upgang, and F. Vermet. +On a model of associative memory with huge storage capacity. +Journal of Statistical Physics +, 168(2):288–299, 2017. +Devlin et al. (2018) +J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. +BERT: pre-training of deep bidirectional transformers for language +understanding. +ArXiv +, 1810.04805, 2018. +Devlin et al. (2019) +J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. +BERT: pre-training of deep bidirectional transformers for language +understanding. +In +Proceedings of the 2019 Conference of the North American +Chapter of the Association for Computational Linguistics: Human Language +Technologies, Volume 1 (Long and Short Papers) +, pp. 4171–4186. +Association for Computational Linguistics, 2019. +Dietterich et al. (1997) +T. G. Dietterich, R. H. Lathrop, and T. Lozano-Pérez. +Solving the multiple instance problem with axis-parallel rectangles. +Artificial Intelligence +, 89(1-2):31–71, +1997. +Emerson et al. (2017) +R. O. Emerson, W. S. DeWitt, M. Vignali, J. Gravley, J. K. Hu, E. J. Osborne, +C. Desmarais, M. Klinger, C. S. Carlson, J. A. Hansen, et al. +Immunosequencing identifies signatures of cytomegalovirus exposure +history and HLA-mediated effects on the T cell repertoire. +Nature Genetics +, 49(5):659, 2017. +Fernández-Delgado et al. (2014) +M. Fernández-Delgado, E. Cernadas, S. Barro, and D. Amorim. +Do we need hundreds of classifiers to solve real world classification +problems? +The Journal of Machine Learning Research +, 15(1):3133–3181, 2014. +Folli et al. (2017) +V. Folli, M. Leonetti, and G. Ruocco. +On the maximum storage capacity of the Hopfield model. +Frontiers in Computational Neuroscience +, 10(144), +2017. +doi: +10.3389/fncom.2016.00144 +. +Gao & Pavel (2017) +B. Gao and L. Pavel. +On the properties of the softmax function with application in game +theory and reinforcement learning. +ArXiv +, 1704.00805, 2017. +Garling (2017) +D. J. H. Garling. +Analysis on Polish Spaces and an Introduction to Optimal +Transportation +. +London Mathematical Society Student Texts. Cambridge University +Press, 2017. +ISBN 1108421571. +doi: +10.1017/9781108377362 +. +Gilmer et al. (2017) +J. Gilmer, S. S. Schoenholz, P. F. Riley, O. Vinyals, and G. E. Dahl. +Neural message passing for quantum chemistry. +In +Proceedings of the 34th International Conference on Machine +Learning (ICML) +, volume 70, pp. 1263–1272. JMLR.org, 2017. +Graves et al. (2014) +A. Graves, G. Wayne, and I. Danihelka. +Neural turing machines. +ArXiv +, 1410.5401, 2014. +Guttenberg et al. (2016) +N. Guttenberg, N. Virgo, O. Witkowski, H. Aoki, and R. Kanai. +Permutation-equivariant neural networks applied to dynamics +prediction. +arXiv +, 1612.04530, 2016. +Hertz et al. (1991) +J. Hertz, A. Krogh, and R. G. Palmer. +Introduction to the Theory of Neural Computation +. +Addison-Wesley Longman Publishing Co., Inc., Redwood City, CA, 1991. +ISBN 0201503956. +Hochreiter (1991) +S. Hochreiter. +Untersuchungen zu dynamischen neuronalen Netzen. Diploma thesis, +Institut für Informatik, Lehrstuhl Prof. Brauer, Technische +Universität München, 1991. +Advisor: J. Schmidhuber. +Hochreiter & Schmidhuber (1997) +S. Hochreiter and J. Schmidhuber. +Long short-term memory. +Neural Comput. +, 9(8):1735–1780, 1997. +Hoorfar & Hassani (2008) +A. Hoorfar and M. Hassani. +Inequalities on the Lambert +$w$ +function and hyperpower function. +Journal of Inequalities in Pure and Applied Mathematics +, +9(2):1–5, 2008. +Hopfield (1982) +J. J. Hopfield. +Neural networks and physical systems with emergent collective +computational abilities. +Proceedings of the National Academy of Sciences +, 79(8):2554–2558, 1982. +Hopfield (1984) +J. J. Hopfield. +Neurons with graded response have collective computational properties +like those of two-state neurons. +Proceedings of the National Academy of Sciences +, 81(10):3088–3092, 1984. +doi: +10.1073/pnas.81.10.3088 +. +Ilse et al. (2018) +M. Ilse, J. M. Tomczak, and M. Welling. +Attention-based deep multiple instance learning. +International Conference on Machine Learning (ICML) +, pp. 3376–3391, 2018. +Ilse et al. (2020) +M. Ilse, J. M. Tomczak, and M. Welling. +Deep multiple instance learning for digital histopathology. +In +Handbook of Medical Image Computing and Computer Assisted +Intervention +, pp. 521–546. Elsevier, 2020. +Jiang et al. (2020) +D. Jiang, Z. Wu, C.-Y. Hsieh, G. Chen, B. Liao, Z. Wang, C. Shen, D. Cao, +J. Wu, and T. Hou. +Could graph neural networks learn better molecular representation for +drug discovery? a comparison study of descriptor-based and graph-based +models. +Journal of Cheminformatics +, 2020. +doi: +10.21203/rs.3.rs-81439/v1 +. +Kandemir et al. (2014) +M. Kandemir, C. Zhang, and F. A. Hamprecht. +Empowering multiple instance histopathology cancer diagnosis by cell +graphs. +In +International Conference on Medical Image Computing and +Computer-Assisted Intervention +, pp. 228–235. Springer, 2014. +Khan et al. (2018) +M. M. R. Khan, R. B. Arif, M. A. B. Siddique, and M. R. Oishe. +Study and observation of the variation of accuracies of KNN, SVM, +LMNN, ENN algorithms on eleven different datasets from UCI machine +learning repository. +In +4th International Conference on Electrical Engineering and +Information & Communication Technology (iCEEiCT) +, pp. 124–129. IEEE, +2018. +Kipf & Welling (2016) +T. N. Kipf and M. Welling. +Semi-supervised classification with graph convolutional networks. +ArXiv +, 1609.02907, 2016. +in International Conference On Learning Representations (ICLR) 2017. +Klambauer et al. (2017a) +G. Klambauer, T. Unterthiner, A. Mayr, and S. Hochreiter. +Self-normalizing neural networks. +In +Advances in Neural Information Processing Systems +, pp. 971–980, 2017a. +Klambauer et al. (2017b) +G. Klambauer, T. Unterthiner, A. Mayr, and S. Hochreiter. +Self-normalizing neural networks. +ArXiv +, 1706.02515, 2017b. +Koiran (1994) +P. Koiran. +Dynamics of discrete time, continuous state Hopfield networks. +Neural Computation +, 6(3):459–468, 1994. +doi: +10.1162/neco.1994.6.3.459 +. +Korshunova et al. (2018) +I. Korshunova, J. Degrave, F. Huszar, Y. Gal, A. Gretton, and J. Dambre. +BRUNO: A deep recurrent model for exchangeable data. +In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, +and R. Garnett (eds.), +Advances in Neural Information Processing +Systems 31 +, pp. 7190–7198. Curran Associates, Inc., 2018. +Krotov & Hopfield (2016) +D. Krotov and J. J. Hopfield. +Dense associative memory for pattern recognition. +In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett +(eds.), +Advances in Neural Information Processing Systems +, pp. 1172–1180. Curran Associates, Inc., 2016. +Krotov & Hopfield (2018) +D. Krotov and J. J. Hopfield. +Dense associative memory is robust to adversarial inputs. +Neural Computation +, 30(12):3151–3167, +2018. +Krotov & Hopfield (2020) +D. Krotov and J. J. Hopfield. +Large associative memory problem in neurobiology and machine +learning. +ArXiv +, 2008.06996, 2020. +Küçükaşcı & +Baydoğan (2018) +E. Ş. Küçükaşcı and M. G. Baydoğan. +Bag encoding strategies in multiple instance learning problems. +Information Sciences +, 467:559–578, 2018. +Kuhn et al. (2016) +M. Kuhn, I. Letunic, L. J. Jensen, and P. Bork. +The SIDER database of drugs and side effects. +Nucleic Acids Research +, 44(D1):D1075–D1079, 2016. +doi: +10.1093/nar/gkv1075 +. +LeCun et al. (2015) +Y. LeCun, Y. Bengio, and G. Hinton. +Deep learning. +Nature +, 521:436–444, 2015. +Lipp & Boyd (2016) +T. Lipp and S. Boyd. +Variations and extension of the convex–concave procedure. +Optimization and Engineering +, 17(2):263–287, 2016. +doi: +10.1007/s11081-015-9294-x +. +Loshchilov & Hutter (2017) +Ilya Loshchilov and Frank Hutter. +Decoupled weight decay regularization. +arXiv preprint arXiv:1711.05101 +, 2017. +Maron & Lozano-Pérez (1998) +O. Maron and T. Lozano-Pérez. +A framework for multiple-instance learning. +In M. I. Jordan, M. J. Kearns, and S. A. Solla (eds.), +Advances +in Neural Information Processing Systems +, pp. 570–576. MIT Press, 1998. +Martins et al. (2012) +I. F. Martins, A. L. Teixeira, L. Pinheiro, and A. O. Falcao. +A Bayesian approach to in silico blood-brain barrier penetration +modeling. +Journal of Chemical Information and Modeling +, 52(6):1686–1697, 2012. +doi: +10.1021/ci300124c +. +Mazza (1997) +C. Mazza. +On the storage capacity of nonlinear neural networks. +Neural Networks +, 10(4):593–597, 1997. +doi: +10.1016/S0893-6080(97)00017-8 +. +McEliece et al. (1987) +R. J. McEliece, E. C. Posner, E. R. Rodemich, and S. S. Venkatesh. +The capacity of the Hopfield associative memory. +IEEE Trans. Inf. Theor. +, 33(4):461–482, +1987. +doi: +10.1109/TIT.1987.1057328 +. +Meyer (1976) +R. R. Meyer. +Sufficient conditions for the convergence of monotonic mathematical +programming algorithms. +Journal of Computer and System Sciences +, 12(1):108–121, 1976. +doi: +10.1016/S0022-0000(76)80021-9 +. +Olver et al. (2010) +F. W. J. Olver, D. W. Lozier, R. F. Boisvert, and C. W. Clark. +NIST handbook of mathematical functions +. +Cambridge University Press, 1 pap/cdr edition, 2010. +ISBN 9780521192255. +Paszke et al. (2017) +A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, +A. Desmaison, L. Antiga, and A. Lerer. +Automatic differentiation in PyTorch. +In +Workshop in Advances in Neural Information Processing +Systems (NeurIPS) +, 2017. +Paszke et al. (2019) +A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, +Z. Lin, N. Gimelshein, L. Antiga, et al. +PyTorch: An imperative style, high-performance deep learning +library. +In +Advances in Neural Information Processing Systems +, pp. 8026–8037, 2019. +Qi et al. (2017a) +C. R. Qi, H. Su, M. Kaichun, and L. J. Guibas. +PointNet: Deep learning on point sets for 3d classification and +segmentation. +In +IEEE Conference on Computer Vision and Pattern Recognition +(CVPR) +, pp. 77–85, 2017a. +doi: +10.1109/CVPR.2017.16 +. +Qi et al. (2017b) +C. R. Qi, L. Yi, H. Su, and L. J. Guibas. +PointNet++: Deep hierarchical feature learning on point sets in a +metric space. +In +31st International Conference on Neural Information +Processing Systems +, pp. 5105–5114. Curran Associates Inc., +2017b. +Rangarajan et al. (1996) +A. Rangarajan, S. Gold, and E. Mjolsness. +A novel optimizing network architecture with applications. +Neural Computation +, 8(5):1041–1060, 1996. +doi: +10.1162/neco.1996.8.5.1041 +. +Rangarajan et al. (1999) +A. Rangarajan, A. Yuille, and Eric E. Mjolsness. +Convergence properties of the softassign quadratic assignment +algorithm. +Neural Computation +, 11(6):1455–1474, +1999. +doi: +10.1162/089976699300016313 +. +Ravanbakhsh et al. (2016) +S. Ravanbakhsh, J. Schneider, and B. Poczos. +Deep learning with sets and point clouds. +arXiv +, 1611.04500, 2016. +Schlag & Schmidhuber (2018) +I. Schlag and J. Schmidhuber. +Learning to reason with third order tensor products. +In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, +and R. Garnett (eds.), +Advances in Neural Information Processing +Systems 31 +, pp. 9981–9993. Curran Associates, Inc., 2018. +Schlag et al. (2019) +I. Schlag, P. Smolensky, R. Fernandez, N. Jojic, J. Schmidhuber, and J. Gao. +Enhancing the transformer with explicit relational encoding for math +problem solving. +arXiv +, 1910.06611, 2019. +Schlag et al. (2021) +I. Schlag, K. Irie, and J. Schmidhuber. +Linear transformers are secretly fast weight memory systems. +arXiv +, 2102.11174, 2021. +Schmidhuber (1992) +J. Schmidhuber. +Learning to control fast-weight memories: An alternative to dynamic +recurrent networks. +In +Neural Computations, Volume: 4, Issue: 1 +, pp. 131 – 139. +MIT Press, 1992. +Schmidhuber (2015) +J. Schmidhuber. +Deep learning in neural networks: An overview. +Neural Networks +, 61:85–117, 2015. +doi: +10.1016/j.neunet.2014.09.003 +. +Schölkopf & Smola (2002) +B. Schölkopf and A. J. Smola. +Learning with Kernels – Support Vector Machines, +Regularization, Optimization, and Beyond +. +MIT Press, Cambridge, MA, 2002. +Sriperumbudur & Lanckriet (2009) +B. K. Sriperumbudur and G. R. Lanckriet. +On the convergence of the concave-convex procedure. +In Y. Bengio, D. Schuurmans, J. D. Lafferty, C. K. I. Williams, and +A. Culotta (eds.), +Advances in Neural Information Processing Systems +22 +, pp. 1759–1767. Curran Associates, Inc., 2009. +Subramanian et al. (2016) +G. Subramanian, B. Ramsundar, V. Pande, and R. A. Denny. +Computational modeling of +$\beta$ +-Secretase 1 (BACE-1) inhibitors +using ligand based approaches. +Journal of Chemical Information and Modeling +, 56(10):1936–1949, 2016. +doi: +10.1021/acs.jcim.6b00290 +. +Sukhbaatar et al. (2015a) +S. Sukhbaatar, A. Szlam, J. Weston, and R. Fergus. +End-to-end memory networks. +In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett +(eds.), +Advances in Neural Information Processing Systems 28 +, pp. 2440–2448. Curran Associates, Inc., 2015a. +Sukhbaatar et al. (2015b) +S. Sukhbaatar, A. Szlam, J. Weston, and R. Fergus. +End-to-end memory networks. +ArXiv +, 1503.08895, 2015b. +Sutton & Barto (2018) +R. S. Sutton and A. G. Barto. +Reinforcement Learning: An Introduction +. +MIT Press, Cambridge, MA, 2 edition, 2018. +Tanaka & Edwards (1980) +F. Tanaka and S. F. Edwards. +Analytic theory of the ground state properties of a spin glass. I. +Ising spin glass. +Journal of Physics F: Metal Physics +, 10(12):2769–2778, 1980. +doi: +10.1088/0305-4608/10/12/017 +. +Tay et al. (2020) +Y. Tay, D. Bahri, D. Metzler, D.-C. Juan, Z. Zhao, and C. Zheng. +Synthesizer: Rethinking self-attention in transformer models. +ArXiv +, 2005.00743, 2020. +Toneva & Wehbe (2019a) +M. Toneva and L. Wehbe. +Interpreting and improving natural-language processing (in machines) +with natural language-processing (in the brain). +In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), +Advances in Neural +Information Processing Systems 32 +, pp. 14954–14964. Curran Associates, +Inc., 2019a. +Toneva & Wehbe (2019b) +M. Toneva and L. Wehbe. +Interpreting and improving natural-language processing (in machines) +with natural language-processing (in the brain). +arXiv +, 1905.11833, 2019b. +Torres et al. (2002) +J. J. Torres, L. Pantic, and Hilbert H. J. Kappen. +Storage capacity of attractor neural networks with depressing +synapses. +Phys. Rev. E +, 66:061910, 2002. +doi: +10.1103/PhysRevE.66.061910 +. +Vaswani et al. (2017a) +A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, +L. Kaiser, and I. Polosukhin. +Attention is all you need. +In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, +S. Vishwanathan, and R. Garnett (eds.), +Advances in Neural Information +Processing Systems 30 +, pp. 5998–6008. Curran Associates, Inc., +2017a. +Vaswani et al. (2017b) +A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, +L. Kaiser, and I. Polosukhin. +Attention is all you need. +ArXiv +, 1706.03762, 2017b. +Velic̆ković et al. (2018) +P. Velic̆ković, G. Cucurull, A. Casanova, A. Romero, P. Liò, and +Y. Bengio. +Graph attention networks. +arXiv +, 1710.10903, 2018. +in International Conference On Learning Representations (ICLR) 2018. +Wainberg et al. (2016) +M. Wainberg, B. Alipanahi, and B. J. Frey. +Are random forests truly the best classifiers? +The Journal of Machine Learning Research +, 17(1):3837–3841, 2016. +Wainrib & Touboul (2013) +G. Wainrib and J. Touboul. +Topological and dynamical complexity of random neural networks. +Phys. Rev. Lett. +, 110:118101, 2013. +doi: +10.1103/PhysRevLett.110.118101 +. +Wang (2000) +J. Wang. +Solving the multiple-instance problem: A lazy learning approach. +In +Proceedings of the 17th International Conference on Machine +Learning (ICML) +, 2000. +Wang et al. (2018) +X. Wang, Y. Yan, P. Tang, X. Bai, and W. Liu. +Revisiting multiple instance neural networks. +Pattern Recognition +, 74:15–24, 2018. +Weber et al. (2020) +C. R. Weber, R. Akbar, A. Yermanos, M. Pavlović, I. Snapkov, G. K. Sandve, +S. T. Reddy, and V. Greiff. +immuneSIM: tunable multi-feature simulation of B- and T-cell +receptor repertoires for immunoinformatics benchmarking. +Bioinformatics +, 36(11):3594–3596, 2020. +doi: +10.1093/bioinformatics/btaa158 +. +Weston et al. (2014) +J. Weston, S. Chopra, and A. Bordes. +Memory networks. +ArXiv +, 1410.3916, 2014. +Widrich et al. (2020a) +M. Widrich, B. Schäfl, M. Pavlović, H. Ramsauer, L. Gruber, +M. Holzleitner, J. Brandstetter, G. K. Sandve, V. Greiff, S. Hochreiter, and +G. Klambauer. +Modern Hopfield networks and attention for immune repertoire +classification. +ArXiv +, 2007.13505, 2020a. +Widrich et al. (2020b) +M. Widrich, B. Schäfl, M. Pavlović, H. Ramsauer, L. Gruber, +M. Holzleitner, J. Brandstetter, G. K. Sandve, V. Greiff, S. Hochreiter, and +G. Klambauer. +Modern Hopfield networks and attention for immune repertoire +classification. +In +Advances in Neural Information Processing Systems +. Curran +Associates, Inc., 2020b. +Wolf et al. (2019) +T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, +T. Rault, R. Louf, M. Funtowicz, and J. Brew. +HuggingFace’s transformers: State-of-the-art natural language +processing. +ArXiv +, 1910.03771, 2019. +Wu (1983) +J. C. F. Wu. +On the convergence properties of the em algorithm. +Ann. Statist. +, 11(1):95–103, 1983. +doi: +10.1214/aos/1176346060 +. +Wu et al. (2018) +X. Wu, X. Liu, W. Li, and Q. Wu. +Improved expressivity through dendritic neural networks. +In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, +and R. Garnett (eds.), +Advances in Neural Information Processing +Systems 31 +, pp. 8057–8068. Curran Associates, Inc., 2018. +Wu et al. (2017) +Z. Wu, B. Ramsundar, E. N. Feinberg, J. Gomes, C. Geniesse, A. S. Pappu, +K. Leswing, and V. Pande. +MoleculeNet: A benchmark for molecular machine learning. +arXiv +, 1703.00564, 2017. +Xiong et al. (2020) +Z. Xiong, D. Wang, X. Liu, F. Zhong, X. Wan, X. Li, Z. Li, X. Luo, K. Chen, +H. Jiang, and M. Zheng. +Pushing the boundaries of molecular representation for drug discovery +with the graph attention mechanism. +Journal of Medicinal Chemistry +, 63(16):8749–8760, 2020. +doi: +10.1021/acs.jmedchem.9b00959 +. +Xu et al. (2018) +Y. Xu, T. Fan, M. Xu, L. Zeng, and Y. Qiao. +SpiderCNN: Deep learning on point sets with parameterized +convolutional filters. +In V. Ferrari, M. Hebert, C. Sminchisescu, and Y. Weiss (eds.), +European Conference on Computer Vision (ECCV) +, pp. 90–105. Springer +International Publishing, 2018. +Yuille & Rangarajan (2002) +A. L. Yuille and A. Rangarajan. +The concave-convex procedure (CCCP). +In T. G. Dietterich, S. Becker, and Z. Ghahramani (eds.), +Advances in Neural Information Processing Systems 14 +, pp. 1033–1040. MIT Press, 2002. +Yuille & Rangarajan (2003) +A. L. Yuille and A. Rangarajan. +The concave-convex procedure. +Neural Computation +, 15(4):915–936, 2003. +doi: +10.1162/08997660360581958 +. +Zaheer et al. (2017) +M. Zaheer, S. Kottur, S. Ravanbakhsh, B. Poczos, R. R. Salakhutdinov, and A. J. +Smola. +Deep sets. +In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, +S. Vishwanathan, and R. Garnett (eds.), +Advances in Neural Information +Processing Systems 30 +, pp. 3391–3401. Curran Associates, Inc., 2017. +Zangwill (1969) +W. I. Zangwill. +Nonlinear programming: a unified approach +. +Prentice-Hall international series in management. Englewood Cliffs, +N.J., 1969. +ISBN 9780136235798. +Zhai et al. (2020) +S. Zhai, W. Talbott, M. A. Bautista, C. Guestrin, and J. M. Susskind. +Set distribution networks: a generative model for sets of images. +arXiv +, 2006.10705, 2020. +Zhang & Zhou (2017) +W. Zhang and B. Zhou. +Learning to update auto-associative memory in recurrent neural +networks for improving sequence memorization. +ArXiv +, 1709.06493, 2017. +Zhu et al. (2015) +Y. Zhu, R. Kiros, R. S. Zemel, R. Salakhutdinov, R. Urtasun, A. Torralba, and +S. Fidler. +Aligning books and movies: Towards story-like visual explanations by +watching movies and reading books. +Proceedings of the IEEE international conference on computer +vision +, pp. 19–27, 2015. +arXiv 1506.06724. +Experimental support, please +view the build logs +for errors. Generated by +L +A +T +E +xml +. +Instructions for reporting errors +We are continuing to improve HTML versions of papers, and your feedback helps enhance accessibility and mobile + support. To report errors in the HTML that will help us improve conversion and rendering, choose any of the + methods listed below: +Click the "Report Issue" +( +) +button, located in the page header. +Tip: +You can select the relevant text first, to include it in your report. +Our team has already identified +the following issues +. We appreciate your time reviewing and reporting rendering errors we + may not have found yet. Your efforts will help us improve the HTML versions for all readers, because disability + should not be a barrier to accessing research. Thank you for your continued support in championing open access for + all. +Have a free development cycle? Help support accessibility at arXiv! Our collaborators at LaTeXML maintain a +list of packages that need conversion +, and welcome +developer contributions +. +We gratefully acknowledge support from + our +major funders +, +member institutions +, +, + and all contributors. +About +· +Help +· +Contact +· +Subscribe +· +Copyright +· +Privacy +· +Accessibility +· +Operational Status +(opens in new tab) +Major funding support from \ No newline at end of file diff --git a/results/memory-scaling-theory-v1/sources/loop-reasoning.html b/results/memory-scaling-theory-v1/sources/loop-reasoning.html new file mode 100644 index 0000000000000000000000000000000000000000..105439aaa710980a628fd8bf6534d644762c976d --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/loop-reasoning.html @@ -0,0 +1,1531 @@ + + + +Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers + + + + + + + + + + + + + + + + +
+ + arXiv is now an independent nonprofit! + Learn more + +
+ +
+ + + +
+
+
+ + License: CC BY 4.0 + +
+arXiv:2604.07822v2 [cs.CL] 11 Aug 2026
+
+
+

Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers

+
+ +Harsh Kohli + +   +Srinivasan Parthasarathy + +   +Huan Sun +††thanks: Equal supervision. +   +Yuekun Yao11footnotemark: + 1 + + + + + +Affiliation: The Ohio State University + +Email: {kohli.120,parthasarathy.2,sun.397,yao.1267}@osu.edu + +Affiliation: [0.2em] + +https://github.com/OSU-NLP-Group/Loop-Think-Generalize +
+ +
Abstract
+ +

We study implicit reasoning, i.e. the ability to combine knowledge or rules within a single forward pass. +While transformer-based large language models store substantial factual knowledge and rules, they often fail to compose this knowledge for implicit multi-hop reasoning, suggesting a lack of compositional generalization over their parametric knowledge. +To address this limitation, we study recurrent-depth transformers, which enables iterative computation over the same transformer layers. +We investigate two compositional generalization challenges under the implicit reasoning scenario: systematic generalization, i.e. combining knowledge that is never used for compositions during training, and depth extrapolation, i.e. generalizing from limited reasoning depth (e.g. training on up to 5-hop) to deeper compositions (e.g. 10-hop). +Through controlled studies with models trained from scratch, we show that while vanilla transformers struggle with both generalization challenges, recurrent-depth transformers can effectively make such generalization. +For systematic generalization, we find that this ability emerges through a three-stage grokking process, transitioning from memorization to in-distribution generalization and finally to systematic generalization, supported by mechanistic analysis. +For depth extrapolation, we show that generalization beyond training depth can be unlocked by scaling inference-time recurrence, with more iterations enabling deeper reasoning. +We further study how training strategies affect extrapolation, providing guidance on training recurrent-depth transformers, and identify a key limitation, overthinking, where excessive recurrence degrades predictions and limits generalization to very deep compositions.

+ +
+
+ + + + + +
+
+
+

1 Introduction

+ +
+

Large language models (LLMs) (Brown et al., 2020) are known to acquire substantial factual knowledge during pretraining, storing it in their parameters (Geva et al., 2023). +However, how effectively this knowledge can be composed for reasoning remains less understood (Dziri et al., 2023; Press et al., 2023). +In particular, recent work shows that transformer-based LLMs struggle under implicit reasoning, i.e. reasoning within a single forward pass without explicit chain-of-thought (CoT) (Wei et al., 2022). +Such failures reveal a fundamental limitation of transformers: despite storing rich knowledge, they are often unable to flexibly combine it to solve novel questions. +This limitation has important implications for generalization, as many tasks require composing multiple pieces of seen knowledge in novel ways not observed during training (Lake and Baroni, 2018; Berglund et al., 2023).

+
+
+

Why do transformers struggle to combine their parametric knowledge in implicit reasoning? +Consider a query such as “The spouse of the performer of Imagine is”. +Previous work shows that transformers solve this by chaining two facts: first retrieving that the performer of Imagine is John Lennon in shallow layers, and then that the spouse of John Lennon is Yoko Ono in deeper layers (Biran et al., 2024; Wang et al., 2024a; Yang et al., 2024b). +However, since knowledge is distributed across different layers of the transformer, there is no guarantee that the fact required for a particular query can be accessed correctly. +For example, if the fact the spouse of John Lennon is Yoko Ono is only stored in shallow layers, deeper layers cannot access it because parameters are not shared across layers. +While transformers can be trained to learn to combine such knowledge properly (Wang et al., 2024a; Yao et al., 2025), they fail to compositionally generalize to unfamiliar combinations or deeper recursive combinations.

+
+
+

To address this limitation, we introduce depth-recurrence into transformers, allowing the same set of layers to be applied iteratively. The input sequence is processed multiple times by a shared transformer block, where the output of each iteration serves as input to the next. +In contrast to vanilla transformers, where knowledge is tied to specific layers, recurrence enables more flexible access to and composition of parametric knowledge within a single forward process. +Such models, known as recurrent-depth transformers or looped transformers, have recently gained attention as a promising architecture (Dehghani et al., 2019; Geiping et al., 2025; Zhu et al., 2025). +While prior work has shown that recurrent-depth transformers improve length generalization (Bansal et al., 2022; Fan et al., 2025), it remains unclear whether they can overcome compositional generalization limitations when reasoning over parametric knowledge.

+
+
+

In this paper, we systematically study whether recurrent-depth transformers can compositionally combine their parametric knowledge implicitly. +By constructing synthetic datasets, we train models to learn implicit reasoning from scratch. Unlike LLMs trained on vast, opaque web-scale corpora, this setup provides control over the data and mitigates confounding biases introduced during pretraining. +Specifically, we characterize two challenges: systematic generalization (combining knowledge not used in any composition during training) and depth extrapolation (e.g., training on 5-hop reasoning and evaluating on 10-hop).

+
+
+

Our main findings are two-fold. +First, recurrent-depth transformers exhibit strong systematic generalization, while vanilla transformers fail to do so. +We show that this ability emerges through a sharp three-stage grokking process, +that transitions from memorization to in-distribution generalization, and finally to systematic generalization. +We also support this with evidence from the internal activations of models across different training stages.

+
+
+

Second, recurrent-depth transformers enable depth extrapolation, generalizing to reasoning depths beyond those observed during training, as inference-time compute (i.e., recurrent iterations) increases. +We further find that the training-time recurrence strategy plays a critical role in extrapolation performance, with dynamic recurrence achieving the strongest generalization. +Despite these gains, we identify a key limitation: recurrent-depth transformers suffer from overthinking (Bansal et al., 2022), which degrades performance and limits generalization to extremely deep recursions.

+
+
+
Figure 1: Recurrent depth model architecture. The transformer block is repeated RR times. The embedding layer and language model head (LM Head) have tied weights. In our experiments, we use a simple looped transformer similar to Saunshi et al. (2025) without design elements such as input injection, gated halting, and middle looping.
+
+
+
+

2 Related Work

+ +
+

Several small-scale studies pretrain looped or recurrent-depth transformers on synthetic tasks to better understand their behavior in a controlled setting. Our work best aligns with such studies where we are able to cleanly attribute differences in performance and generalization to specific architectural choices and model design decisions. Yang et al. (2024a) demonstrate how ”looping” a transformer block helps to better emulate learning algorithms such as gradient descent for in-context linear regressions, 2-layer neural networks, and decision trees. Fan et al. (2025) show that such looped transformers offer superior length generalization on algorithmic tasks such as parity and binary addition. Saunshi et al. (2025) conduct a larger-scale pretraining with the 250B tokens of the Pile dataset (Gao et al., 2020) and find that looped versions of transformer models of the same effective depth have a greater inductive bias towards reasoning at the cost of memorization and perplexity. Based on these results, they propose a regularization term that encourages certain layers to be closer to each other, thus improving the tradeoff between reasoning and fact recall.

+
+
+

Relative to other works, our targeted setting yields unique insights on training dynamics and model behavior. +We demonstrate how weight sharing through recurrence can solve systematic composition where vanilla transformers are known to struggle and extrapolation in multi-hop composition is possible with increased recurrence at inference-time. While Fan et al. (2025) propose looped architectures for length generalization, they assume an oracle number of training iterations based on sample complexity. +We believe that our setup is closer to real-world scenarios where task complexity cannot be easily estimated through heuristics (such as input length). +Without the assumption of task complexity a priori, we face distinct challenges in training our models. +We analyze how best to apply methods like recurrent-depth and common pitfalls to avoid, which can help inform more robust implicit reasoning models in the future. We discuss other related work in Appendix D.

+
+
+
+

3 Task Formulation

+ +
+

We formally define our implicit reasoning setup using a synthetic multi-hop reasoning task, and categorize three generalization challenges under this formulation: in-distribution generalization, systematic generalization, and depth extrapolation (Figure 2). +The latter two can be viewed as out-of-distribution (OOD) generalization. Such tasks have been shown to be difficult for vanilla transformers to learn (Yao et al., 2025), highlighting their limitations in composing parametric knowledge for reasoning (Allen-Zhu and Li, 2023; Yang et al., 2024b).

+
+
+

3.1 Task Definition

+ +
+
Figure 2: Illustration of systematic and extrapolation generalization tasks with a sample dataset.
+
+
+

Our implicit reasoning task relies on a directed knowledge graph (KG) where nodes represent a set of entities E={ei}E=\{e_{i}\} and edges represent a set of relations R={rj}R=\{r_{j}\}. +The KG is composed of atomic (1-hop) facts, each taking the form of a triplet (h,r,t)(h,r,t), where h,t∈Eh,t\in E and r∈Rr\in R (here hh and tt imply the head and tail entities, respectively).

+
+
+

A kk-hop inferred fact is defined as a chain of kk atomic facts connecting a head entity hh to a final tail entity tt via a sequence of k−1k-1 intermediate entities (i1,…,ik−1i_{1},\dots,i_{k-1}):

+ + + + + + +
(h,r1,i1),(i1,r2,i2),…,(ik−1,rk,t)(h,r_{1},i_{1}),(i_{1},r_{2},i_{2}),\dots,(i_{k-1},r_{k},t)
+

Given the head entity hh and the sequence of relations r1,…,rkr_{1},\dots,r_{k}, we use an auto-regressive decoder-only model to predict the final tail entity tt. +The input prefix is <eh><r1><r2>⋯<rk><e_{h}><r_{1}><r_{2}>\dots<r_{k}>, and the target is <et><e_{t}>. +Ideally, the model must implicitly perform the kk-hop traversal, successively retrieving each intermediate entity (i1,…,ik−1i_{1},\dots,i_{k-1}) until it can resolve the final tail entity tt.

+
+
+
+

3.2 Generalization Challenges

+ +
+

Given a generated knowledge graph, we first define the complete atomic fact set as 𝒞={(h,r,t)}\mathcal{C}=\{(h,r,t)\}, and the induced set of kk-hop inferred facts from 𝒞\mathcal{C} as

+ + + + + + +
ℐk(𝒞)={(h,r1,…,rk,t)∣∃i1,…,ik−1,(h,r1,i1),…,(ik−1,rk,t)∈𝒞}.\mathcal{I}_{k}(\mathcal{C})=\{(h,r_{1},\dots,r_{k},t)\ \mid\ \exists\ i_{1},\dots,i_{k-1},\ (h,r_{1},i_{1}),\dots,(i_{k-1},r_{k},t)\in\mathcal{C}\}.
+
+
+

Training set.

+ +
+

The training set includes two parts: all possible atomic facts 𝒞\mathcal{C} together with a set of inferred facts ℐt​r​a​i​n\mathcal{I}_{train} up to a maximum depth kt​r​a​i​nk_{train} (e.g. kk-hop facts with k∈[2,kt​r​a​i​n]k\in[2,k_{train}]). +To characterize different generalization challenges, we partition the atomic fact set into two disjoint subsets +𝒞=𝒞I​D∪𝒞O​O​D\mathcal{C}=\mathcal{C}_{ID}\cup\mathcal{C}_{OOD}. +The training inferred facts ℐt​r​a​i​n\mathcal{I}_{train} can then be defined as

+ + + + + + +
ℐt​r​a​i​n={(h,r1,…,rk,t)∣(h,r1,…,rk,t)∈ℐk(𝒞I​D),k≤ktrain}.\mathcal{I}_{train}=\{(h,r_{1},\dots,r_{k},t)\ \mid\ (h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C}_{ID}),\ k\leq k_{\text{train}}\}.
+
+
+

We then define three generalization challenges:

+
+
+
+

In-distribution generalization.

+ +
+

The model is evaluated on inferred facts (h,r1,…,rk,t)∈ℐk​(𝒞I​D)(h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C}_{ID}) that are not observed during training, equivalent to randomly sample inferred facts from ℐk​(𝒞I​D)\mathcal{I}_{k}(\mathcal{C}_{ID}) as held-out test set. +Despite its simplicity, previous work shows that vanilla transformers can only learn such tasks through extended training (Wang et al., 2024a).

+
+
+
+

Systematic generalization.

+ +
+

The model is evaluated on inferred facts (h,r1,…,rk,t)∈ℐk​(𝒞O​O​D)(h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C}_{OOD}), which are induced from atomic facts that are never used in compositions in the training data. +This requires the learner to systematically combine its learned knowledge, without having seen combinations of it in training. +This setting simulates scenarios where knowledge appears only as plain text in pretraining data (e.g. long-tail knowledge), but never forms answers to reasoning queries during training. +Previous work (Wang et al., 2024a) shows that vanilla transformers completely fail on this generalization challenge.

+
+
+
+

Depth extrapolation.

+ +
+

The model is evaluated on inferred facts of greater depth than those included in the training dataset, i.e., (h,r1,…,rk,t)∈ℐk​(𝒞ℐ​𝒟)(h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C_{ID}}) with kk larger than kt​r​a​i​nk_{train}. +Solving this requires the learner to infer the underlying rules of the task and iteratively apply them at depths far beyond those observed during training. +This setting simulates scenarios where the complexity (i.e. reasoning depth) of training data is limited due to budget constraints, yet we expect the model to generalize beyond training. +Such depth generalization poses challenges for vanilla transformers in symbolic (Kim and Linzen, 2020) and knowledge reasoning (Yao et al., 2025). +Although related to length generalization, depth extrapolation is conceptually distinct: it measures the depth to which a model can repeatedly apply learned rules over its parametric knowledge beyond training.

+
+
+
+
+
+

4 Recurrent-Depth Transformer

+ +
+

Model architecture.

+ +
+

Across all experiments we use a decoder-only transformer with a recurrent-depth design illustrated in Figure 1. Concretely, we instantiate a GPT-2 style block with LL layers and reuse this for RR recurrent iterations, yielding an effective rolled-out depth of D=L×RD=L\times R layers. At each recurrent iteration the same stack of layers is applied to the current hidden states. This allows the model to allocate more computation (increasing RR) at inference time without changing the architecture or re-training the parameters. We exploit this property in our inference-time scaling experiments described in Section 6. Formally, let fθf_{\theta} denote the LL transformer layers with shared parameters θ\theta, and let h(0)h^{(0)} be the input sequence after the initial embedding layer. The model computes

+ + + + + + +
h(r+1)=fθ(h(r);m),r=0,…,R−1,h^{(r+1)}=f_{\theta}\big(h^{(r)};m\big),\qquad r=0,\dots,R-1,
+

where mm denotes the causal attention and padding masks. The final representation h(R)h^{(R)} is passed through a final layer normalization and a tied output projection to produce logits over the vocabulary at each position. We only supervise the next-token distribution at the final position corresponding to the tail entity tt. Each entity and relation is represented by a dedicated token (<ei><e_{i}>, <rj><r_{j}>), and the query prefix is mapped to token embeddings.

+
+
+

We adopt a zero-initialization strategy to stabilize training under repeated application of shared weights. +Specifically, we initialize the output projection matrices (c_proj) of both the multi-head attention and feed-forward blocks to zero, so that each recurrent block is an exact identity mapping at initialization. +This ensures that the input-output Jacobian remains stable even when the model is unrolled to a large number of recurrent iterations. +This design is motivated by the known instability of deep networks with shared parameters (Agarwala and Schoenholz, 2022), which becomes particularly pronounced in recurrent-depth transformers (Saunshi et al., 2025). +Following Zhang et al. (2019), this initialization supports stable optimization under unbounded unrolling of the recurrent iterations.

+
+
+
+

Stopping strategies of the recurrent iterations.

+ +
+

Training the looped transformer requires a stopping strategy to determine the number of recurrent iterations in the forward pass on the input. +We consider two stopping strategies: fixed iteration and dynamic iteration. +Fixed iteration determines the recurrent iterations to be the same fixed value for all training instances. +The dynamic iteration strategy samples the number of recurrent iterations independently for each training batch. Concretely, for the dynamic model we sample

+ + + + + + +
R∼clip⁡(Poisson⁡(λ),Rmin,Rmax),R\sim\mathrm{clip}\big(\mathrm{Poisson}(\lambda),R_{\min},R_{\max}\big),
+

Unless otherwise stated, we set the hyperparameters to Rmin=2R_{\min}=2 and Rmax=8R_{\max}=8. +Such strategies have been shown to be effective in realistic pretraining (Geiping et al., 2025; Zhu et al., 2025), and here we adopt a simple Poisson distribution to control the sampling distribution. +Importantly, our strategies contrast with prior studies on the generalization ability of looped transformers, where the iteration number is matched to the complexity of each training instance, assuming oracle access to such complexity. +Instead, our setup reflects practical scenarios (Geiping et al., 2025), where the complexity is unknown and computation cannot be allocated precisely in advance.

+
+
+
+
+

5 Systematic Generalization

+ +
+

In this section, we study systematic generalization, i.e. whether models can combine parametric knowledge not composed during training for multi-hop tasks. +We focus on 22-hop, as Wang et al. (2024a) shows that vanilla transformers already struggle with this simple task.

+
+
+

5.1 Experiment Setup

+ +
+

Dataset.

+ +
+

We construct the dataset by instantiating a knowledge graph with |E|=2000|E|=2000 and |R|=200|R|=200, where each entity has average out-degree 20. +We then include all 40k atomic facts, randomly partitioned with 95% CI​DC_{ID}, and 5% CO​O​DC_{OOD}, together with 273.6k inferred facts for training. +Our in-distribution set includes 3k held-out two-hop inferred facts composed from CI​DC_{ID}, and OOD set includes nearly 2k two-hop inferred facts composed from CO​O​DC_{OOD}.

+
+
+
+

Model.

+ +
+

We train our looped transformer with L=4L=4 layers, and use fixed training recurrence with R∈{1,2,4,8}R\in\{1,2,4,8\}. +The model with R=1R=1 is equivalent to a 4-layer vanilla transformer. +We evaluate the accuracy of the predicted token against the gold answer. +Absolute position embeddings (APE) (Vaswani et al., 2017) are used as positional embeddings in this setup. We do not use dynamic recurrence in this setting, as systematic generalization in the 2-hop task already emerges from weight sharing under fixed recurrence. In the multi-hop setting, however, it improves extrapolation to more complex samples at inference time and helps alleviate latent overthinking, as discussed in Section 6.

+
+
+
+
+

5.2 Results

+ +
Refer to caption +
Figure 3: +Accuracy curves for recurrent-depth models across training epochs and wall-clock time. +Left: Test OOD accuracy for models trained with R∈{1,2,4,8}R\in\{1,2,4,8\}, plotted against training epochs. Curves are smoothed with a 100-epoch rolling mean, with shading indicating standard deviation. +Middle: Test OOD accuracy for the same models, plotted against training wall-clock time (hours). +Right: Accuracy of the R=4R=4 model on the examples from training, ID, and OOD test splits, plotted against training epochs. +
+
+
+

Recurrent-depth transformers perform systematic generalization, while vanilla transformers do not.

+ +
+

On the left of Figure 3, we plot OOD accuracy as a function of training epochs. +We find that the vanilla transformer (i.e. R=1R=1) completely fails when the task requires combining unfamiliar atomic facts, while even the simplest R=2R=2 recurrence achieves non-trivial generalization performance. +Increasing training iterations further accelerates the convergence, e.g.  R=4R=4 converges with 2k epoch, while R=2R=2 takes 7k. This acceleration is not only in terms of training steps, but also in absolute wall-clock time (Figure 3, middle).

+
+
+
+

Systematic generalization emerges through a three-stage grokking dynamic.

+ +
+

We further analyze the training dynamics of the R=4R=4 model (right panel of Figure 3) to understand how systematic generalization emerges. +We observe a three-stage dynamic: +In the first stage, the model overfits the training set, with only training accuracy improving. +In the second stage, in-distribution generalization emerges after prolonged training beyond memorization, a phenomenon referred to as grokking. +In the final stage, systematic generalization arises only after the model achieves near-perfect in-distribution accuracy, occurring at a much later point than training overfitting (e.g., 10410^{4} vs. 10210^{2} epochs).

+
+
+
+

Analyzing model internals with logit lens.

+ +
+

We use the logit lens technique (nostalgebraist, 2020) to examine how models represent the bridge entity and the final target during different stages of training. After each layer and recurrent iteration, we project the intermediate hidden states through the final layer norm and language modeling head to obtain logits over the output vocabulary. For 2-hop inputs of the form (h,r1,r2)(h,r_{1},r_{2}), where hh is the head entity and r1,r2r_{1},r_{2} are the two relations, we measure at each effective depth the accuracy of predicting the bridge entity at the r1r_{1} position and the target entity at the r2r_{2} position. +Figure 4 shows logits lens for an R=2R=2 recurrent-depth model on Training, Test ID, and Test OOD splits, across checkpoints corresponding to the three training stages. +We compare against an iso-FLOP 8-layer vanilla transformer with matched effective depth. +The vanilla model exhibits only two training stages and fails to achieve non-zero systematic generalization regardless of training time, consistent with Wang et al. (2024a). We also include a causal analysis for systematic generalization in Appendix E.

+
+
Refer to caption +
Figure 4: Accuracy of predicting bridge and target entities using logit lens at corresponding token positions for the recurrent-depth (R=2R=2) and the 8-layer vanilla transformer.
+
+
+
+

Grokking marks a transition from memorization to systematic generalization.

+ +
+

We first focus on the recurrent-depth model (Figure 4 left panels), which exhibits distinct mechanisms across the three stages. +In Stage 1, the model predicts targets without reliably decoding the bridge, indicating memorization. +In Stage 2, the bridge becomes decodable, followed by correct target prediction for in-distribution data at deeper effective depths. +Only in Stage 3 does the model succeed on OOD inputs, marking a transition from rote learning to systematic composition. +In contrast, although vanilla transformers (right panels) can recover the bridge entity on Test OOD inputs, they fail to perform the second-hop reasoning, as they lack incentives to encode OOD facts in deeper layers.

+
+
+
+
+
+

6 Depth Extrapolation

+ +
+

In this section, we study depth extrapolation, i.e., whether the model can perform deeper recursions when combining its parametric knowledge than those observed during training.

+
+
Refer to caption +
Figure 5: Accuracy of recurrent-depth models on multi-hop composition, trained under various fixed and dynamic recurrence setups. The violet dash-dotted horizontal line indicates the training recurrence (or maximum in the dynamic setting), while the teal dashed vertical line marks the maximum ID generalization achieved by each model. The x-axis shows hop complexity and the y-axis shows inference-time recurrence (r∗r^{*} denotes adaptive halting).
+
+
+

6.1 Experiment Setup

+ +
+

Curriculum training.

+ +
+

Different from 2-hop scenarios, learning kk-hop tasks generally requires training the model with an easy-to-hard curriculum over hop depth (kk) as suggested in Yao et al. (2025). +Specifically, we start with training on atomic and 2-hop facts until an accuracy threshold (95%95\%) is reached on a held-out 2-hop test split. +Next, 3-hop data is included in the training for the next stage of our curriculum until 95%95\% is achieved on the held-out 3-hop test split. +This process is repeated for each hop level k∈{2,…,Nmax}k\in\{2,\dots,N_{\max}\}. +To prevent forgetting, at each stage we jointly train on all previously introduced facts (e.g., at stage k=5k=5 we train on atomic and 2-hop through 5-hop facts).

+
+
+

Due to this threshold-based curriculum, training facts beyond the model’s capability are never exposed. +That is, if the model fails to achieve above-threshold accuracy on kk-hop queries, training terminates and (k+1)(k+1)-hop data is never introduced. +We define the largest such kk as the learnable recursion depth of the model.

+
+
+
+

Dataset.

+ +
+

We construct the dataset by instantiating a knowledge graph with |E|=200|E|=200 entities and |R|=10|R|=10 relations, where each entity has an average out-degree of 10. +We additionally impose a permutation constraint on the knowledge graph to avoid learning shortcut solutions, for which we provide details in Appendix B. +We pre-generate 2k atomic facts and 15k kk-hop inferred facts for each k∈[2,Km​a​x]k\in[2,K_{max}], with Km​a​x=40K_{max}=40. +During training, these facts are progressively introduced following the curriculum described above.

+
+
+

For each model, we evaluate on 750 held-out kk-hop facts. +Facts with kk up to the model’s learnable recursion depth form the in-distribution test set, while those beyond it constitute the extrapolation test set. +This split is model-dependent, reflecting each model’s maximum achievable reasoning depth.

+
+
+
+

Model.

+ +
+

We follow the model setups in Section 5.1, except that we use R∈R\in{1,2,3,4,5,6,7,8} for fixed iteration. +Here we use no positional embeddings (NoPE) (Kazemnejad et al., 2023; Wang et al., 2024b), which shows better generalization in pilot studies. +In addition to results with L=4L=4, we present results with varying model size and dynamic train recurrence in Appendix J, and across random seed initializations in Appendix I. We also experiment with larger vanilla transformer models, iso-FLOP with recurrent-depth models using R∈{2,4,6}R\in\{2,4,6\} and report results in Appendix G.

+
+
+
+
+

6.2 In-Distribution Generalization

+ +
+

Scaling up training-time iteration increases the learnable recursion depth of looped transformers.

+ +
+

Looking at the blue area of Figure 5, we find that increasing training recurrent iterations accordingly improves the ID generalization. +This is consistent with previous findings (Wang et al., 2024a; Yao et al., 2025) that the learnable recursion depth of a transformer is bounded by the depth of its layers, +and we demonstrate that for looped transformers, scaling up training recurrent iterations can also increase its ”effective depth”, without relying on additional parameters. +Training with dynamic iteration further increases the learnable recursion depth over the fixed iteration, suggesting that the fixed iteration is not an optimal design choice. +Interestingly, more recurrent iterations do not always translate into larger learnable depth. (e.g., both R=7 and R=8 learns up to 16-hop task).

+
+
+
Figure 6: Cumulative gradient updates required to first generalize to each hop complexity.
+
+
+
+

Phase transition from prolonged training to rapid learning.

+ +
+

We observe that models require a prolonged training phase to acquire low-hop tasks, after which they rapidly generalize to much more complex samples (Figure 6). +We illustrate this for the model trained with dynamic recurrence by plotting training steps against the compositional complexity achieved on in-distribution data. +This suggests that the main difficulty lies in discovering the underlying compositional rule. +Once such a rule is internalized, the model can quickly extend it to samples of much higher complexity. +In Figure 6 we observe how the model required over 1.3 million steps for grokking up to 4-hop train samples but was quickly able to learn up to 19-hop samples very few additional steps. Beyond that, for even more complex samples, while each new hop requires additional training steps to cross the 95% threshold, the model still achieves strong generalization (>90%) on hops 20, 21, and 22 within fewer than 8k extra steps per hop which is commensurate with the steps required for each additional hop from 4 through 19. By loading a trained checkpoint (20, say) and continuing training exclusively on 21-hop samples instead of the data mix consisting of samples from all previous stages in our curriculum, generalization over 90% on the new split can be achieved in as little as 50 additional steps of training.

+
+
+
+
+

6.3 Depth Extrapolation

+ +
+

Scaling inference-time iterations unlocks depth extrapolation.

+ +
+

In Figure 5, we observe that when using the same number of recurrent iterations as in training, all models struggle to generalize to tasks of higher complexity than those seen during training. +However, this limitation is immediately alleviated when we increase the number of inference-time iterations, with more iterations enabling generalization to progressively harder tasks. +Notably, this scaling effect only emerges for R>4R>4, suggesting that sufficient training-time iterations are a prerequisite for benefiting from increased inference-time computation.

+
+
+
+

The effect of training iteration strategy on extrapolation.

+ +
+

The above results characterize the maximum reasoning depth each model can achieve under the curriculum setting, +but they do not disentangle whether the differences (e.g. R=6R=6 generalizing to 1717-hop vs. R=8R=8 to 2424-hop) are due to more training iterations or exposure to more complex training data (e.g. R=6R=6 is trained up to 1313-hop, while R=8R=8 up to 1616-hop). +To isolate the effect of the training iteration strategy, we train all models on the same data (up to 1212-hop) and evaluate extrapolation on 1212–2424 hop tasks.

+
+
Refer to caption +
Figure 7: Accuracy of models trained with fixed recurrence R∈{5,6,7,8}R\in\{5,6,7,8\} and dynamic recurrence on up to 12-hop samples.
+
+
+

From Figure 7, we first find that +among fixed-iteration models, increasing the number of training-time iterations substantially improves extrapolation when scaling inference-time iterations (e.g. R=6R=6 extrapolates up to 1414-hop, while R=8R=8 reaches 1919-hop). +Second, under the same training data, the dynamic iteration strategy achieves comparable extrapolation performance to the R=8R=8 model (both reaching 1919-hop). +This contrasts with Figure 5, where the dynamic strategy generalizes to significantly higher complexity than R=8R=8.

+
+
+

These results suggest that the maximum number of iterations used during training determines the extrapolation range (i.e. how far beyond the training complexity the model can generalize), while dynamic iteration effectively exploits this range, since it enables a larger learnable recursion depth. +Hence, when training data is sufficiently complex, dynamic iteration should be preferred over fixed strategies with the same maximum iteration budget. +We provide further evidence of this through matched-data experiments in Appendix H.

+
+
+
+

Scaling inference-time iterations is limited by overthinking.

+ +
+

Despite strong generalization performance, we observe performance degradation when using excessively large inference-time iterations. +For example, increasing iterations beyond 15 for the R=dynamic does not improve OOD performance (Figure 5), a phenomenon known as overthinking (Bansal et al., 2022). +We study this along two key axes: (1) inference iterations, i.e. how increasing the inference iterations affects the model’s prediction confidence, and (2) task complexity, i.e. how increasing task complexity impacts this confidence.

+
+
+
Figure 8: Average logit margin across recurrent iterations for fixed-recurrence (R=6,7,8R=6,7,8) and dynamic-recurrence models. Curves show different hop complexities, and dashed vertical lines indicate the average first-hit iteration t∗t^{*} (when the correct entity is predicted).
+
+
+

In Figure 8, we analyze the logit margin, defined as the difference between the logit of the correct entity and that of the strongest competing token, and make two observations. +First, across all models and tasks, the margin increases with inference iterations until reaching a peak, and then consistently declines as iterations continue. +This suggests that overthinking arises as the iteration number grows, regardless of the task complexity. +Notably, the dynamic model exhibits a much slower margin decay compared to fixed-iteration models, indicating that dynamic iteration is more robust to overthinking. +Second, the peak margin decreases as task complexity increases across all models. +This implies that for more complex tasks, the model’s predictions are inherently less confident and therefore more susceptible to degradation under additional iterations. +As a result, the benefit of increasing inference iterations diminishes for highly complex tasks. +Note that although previous work mitigates overthinking by injecting inputs information in every iteration (Bansal et al., 2022; Geiping et al., 2025), we find that such methods do not resolve the issue in implicit reasoning.

+
+
+
Figure 9: Average recurrent iterations using adaptive halting vs. sample complexity.
+
+
+
+

Adaptive halting improves inference efficiency.

+ +
+

We flexibly halt recurrence in order to allocate compute proportionate to input complexity. +Prior work (Geiping et al., 2025) proposes adaptive halting based on the output distribution pt(⋅∣x)p_{t}(\cdot\mid x), terminating when the change between successive iterations becomes small, measured by KL(pt,|,pt−1)<εKL\mathrm{KL}\bigl(p_{t},|,p_{t-1}\bigr)<\varepsilon_{\mathrm{KL}}. +In our setting, we find that this criterion often halts the recurrence prematurely, leading to suboptimal performance. +To address this, we additionally incorporate the entropy of the output distribution, H⁡(pt)H(p_{t}), and only stop when both the divergence is small, and the prediction is confident, i.e.,

+
+
+ + + + + + +
KL(pt∥pt−1)<εKLandH(pt)<Hthresh.\mathrm{KL}\!\bigl(p_{t}\,\|\,p_{t-1}\bigr)<\varepsilon_{\mathrm{KL}}\qquad\text{and}\qquad H(p_{t})<H_{\mathrm{thresh}}.
+
+
+

In Figure 9, we plot the number of iterations using both methods against the hop count (kk), demonstrating that ours results in better allocation of inference-time compute in accordance with task complexity. While the output distribution may change very little across iterations, the entropy is still high, indicating that the model remains uncertain despite this apparent convergence. We compare results using the two methods in Figure 10. In our setting, combining KL divergence with entropy therefore provides a more reliable halting signal and yields better overall results.

+
+
Refer to caption +
Figure 10: Comparison of adaptive halting based on KL-divergence and entropy (ours) versus KL-divergence alone (Geiping et al., 2025).
+
+
+
+
+
+

7 Conclusion

+ +
+

We study whether recurrent-depth transformers can compositionally use parametric knowledge for implicit multi-hop reasoning, a task that is challenging for vanilla transformers. +Through controlled experiments on models trained from scratch, we show that recurrent-depth transformers successfully address both compositional generalization challenges. +Systematic generalization emerges through a three-stage grokking dynamic, as the model transitions from rote memorization to generalizable solutions. +Depth extrapolation is enabled by scaling inference-time compute, where additional iterations allow for greater reasoning depth, although latent overthinking limits performance on highly complex tasks. +Overall, our results highlight recurrent-depth transformers as a promising architecture for compositional reasoning over parametric knowledge.

+
+
+
+

Acknowledgments

+ +
+

The authors of this paper express their gratitude to Boshi Wang for valuable discussions on this work, and for motivating the permutation-based task formulation for depth exploration described in Appendix B. We also thank Yupei Du for valuable feedback on this paper, and the OSU NLP and DMRL groups for their thoughtful comments.

+
+
+

This research was supported in part by NSF CAREER #1942980, Schmidt Sciences, Coefficient Giving (formerly Open Philanthropy) and Ohio Supercomputer Center (Ohio Supercomputer Center, 1987). The views and conclusions contained herein are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notice herein.

+
+
+
+

References

+ +
    +
  • Agarwala and Schoenholz (2022) +A. Agarwala and S. S. Schoenholz + +Deep equilibrium networks are sensitive to initialization statistics. + +In International Conference on Machine Learning, + +pp. 136–160. + +Cited by: §4. +
  • +
  • Allen-Zhu and Li (2023) +Z. Allen-Zhu and Y. Li + +Physics of language models: part 3.1, knowledge storage and extraction. + +arXiv preprint arXiv:2309.14316. + +Cited by: §3. +
  • +
  • Balesni et al. (2024) +M. Balesni, T. Korbak, and O. Evans + +The two-hop curse: llms trained on A→BA\rightarrow B, B→CB\rightarrow C fail to learn A→CA\rightarrow C. + +arXiv preprint arXiv:2411.16353. + +Cited by: Appendix D. +
  • +
  • Bansal et al. (2022) +A. Bansal, A. Schwarzschild, E. Borgnia, Z. Emam, F. Huang, M. Goldblum, and T. Goldstein + +End-to-end algorithm synthesis with recurrent networks: extrapolation without overthinking. + +Advances in Neural Information Processing Systems 35, pp. 20232–20242. + +Cited by: §1, +§1, +§6.3, +§6.3. +
  • +
  • Berglund et al. (2023) +L. Berglund, M. Tong, M. Kaufmann, M. Balesni, A. C. Stickland, T. Korbak, and O. Evans + +The reversal curse: llms trained on” a is b” fail to learn” b is a”. + +arXiv preprint arXiv:2309.12288. + +Cited by: §1. +
  • +
  • Biran et al. (2024) +E. Biran, D. Gottesman, S. Yang, M. Geva, and A. Globerson + +Hopping too late: exploring the limitations of large language models on multi-hop queries. + +In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Y. Al-Onaizan, M. Bansal, and Y. Chen (Eds.), + +Miami, Florida, USA, pp. 14113–14130. + +External Links: Link, +Document + +Cited by: §1. +
  • +
  • Brown et al. (2020) +T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. + +Language models are few-shot learners. + +Advances in neural information processing systems 33, pp. 1877–1901. + +Cited by: §1. +
  • +
  • Csordás et al. (2024) +R. Csordás, K. Irie, J. Schmidhuber, C. Potts, and C. D. Manning + +MoEUT: mixture-of-experts universal transformers. + +In The Thirty-eighth Annual Conference on Neural Information Processing Systems, + +External Links: Link + +Cited by: Appendix D. +
  • +
  • Csordás et al. (2022) +R. Csordás, K. Irie, and J. Schmidhuber + +The neural data router: adaptive control flow in transformers improves systematic generalization. + +In International Conference on Learning Representations, + +External Links: Link + +Cited by: Appendix D. +
  • +
  • Dehghani et al. (2019) +M. Dehghani, S. Gouws, O. Vinyals, J. Uszkoreit, and L. Kaiser + +Universal transformers. + +In International Conference on Learning Representations, + +External Links: Link + +Cited by: Appendix D, +§1. +
  • +
  • Du et al. (2025) +H. Du, Y. Dong, and X. Ning + +Latent thinking optimization: your latent reasoning language model secretly encodes reward signals in its latent thoughts. + +arXiv preprint arXiv:2509.26314. + +Cited by: Appendix D. +
  • +
  • Dziri et al. (2023) +N. Dziri, X. Lu, M. Sclar, X. L. Li, L. Jiang, B. Y. Lin, P. West, C. Bhagavatula, R. Le Bras, J. D. Hwang, S. Sanyal, S. Welleck, X. Ren, A. Ettinger, Z. Harchaoui, and Y. Choi + +Faith and fate: limits of transformers on compositionality. + +In Proceedings of the 37th International Conference on Neural Information Processing Systems, + +NIPS ’23, Red Hook, NY, USA. + +Cited by: Appendix D, +§1. +
  • +
  • Fan et al. (2025) +Y. Fan, Y. Du, K. Ramchandran, and K. Lee + +Looped transformers for length generalization. + +In The Thirteenth International Conference on Learning Representations, + +External Links: Link + +Cited by: §1, +§2, +§2. +
  • +
  • Gao et al. (2020) +L. Gao, S. Biderman, S. Black, L. Golding, T. Hoppe, C. Foster, J. Phang, H. He, A. Thite, N. Nabeshima, et al. + +The pile: an 800gb dataset of diverse text for language modeling. + +arXiv preprint arXiv:2101.00027. + +Cited by: §2. +
  • +
  • Geiping et al. (2025) +J. Geiping, S. M. McLeish, N. Jain, J. Kirchenbauer, S. Singh, B. R. Bartoldson, B. Kailkhura, A. Bhatele, and T. Goldstein + +Scaling up test-time compute with latent reasoning: a recurrent depth approach. + +In ES-FoMo III: 3rd Workshop on Efficient Systems for Foundation Models, + +External Links: Link + +Cited by: Appendix D, +§1, +§4, +Figure 10, +§6.3, +§6.3. +
  • +
  • Geva et al. (2023) +M. Geva, J. Bastings, K. Filippova, and A. Globerson + +Dissecting recall of factual associations in auto-regressive language models. + +In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, H. Bouamor, J. Pino, and K. Bali (Eds.), + +Singapore, pp. 12216–12235. + +External Links: Link, +Document + +Cited by: §1. +
  • +
  • Hao et al. (2025) +S. Hao, S. Sukhbaatar, D. Su, X. Li, Z. Hu, J. E. Weston, and Y. Tian + +Training large language models to reason in a continuous latent space. + +In Second Conference on Language Modeling, + +External Links: Link + +Cited by: Appendix D. +
  • +
  • Huang and Chang (2023) +J. Huang and K. C. Chang + +Towards reasoning in large language models: a survey. + +In Findings of the Association for Computational Linguistics, ACL 2023, + +pp. 1049–1065. + +Cited by: Appendix A. +
  • +
  • Ju et al. (2022) +D. Ju, S. Roller, S. Sukhbaatar, and J. E. Weston + +Staircase attention for recurrent processing of sequences. + +Advances in neural information processing systems 35, pp. 13203–13213. + +Cited by: Appendix D. +
  • +
  • Kazemnejad et al. (2023) +A. Kazemnejad, I. Padhi, K. Natesan Ramamurthy, P. Das, and S. Reddy + +The impact of positional encoding on length generalization in transformers. + +Advances in Neural Information Processing Systems 36, pp. 24892–24928. + +Cited by: §6.1. +
  • +
  • Kim and Linzen (2020) +N. Kim and T. Linzen + +COGS: a compositional generalization challenge based on semantic interpretation. + +In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), B. Webber, T. Cohn, Y. He, and Y. Liu (Eds.), + +Online, pp. 9087–9105. + +External Links: Link, +Document + +Cited by: §3.2. +
  • +
  • Kohli et al. (2025) +H. Kohli, S. Kumar, and H. Sun + +GroundCocoa: a benchmark for evaluating compositional & conditional reasoning in language models. + +In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), L. Chiruzzo, A. Ritter, and L. Wang (Eds.), + +Albuquerque, New Mexico, pp. 8280–8295. + +External Links: Link, +Document, +ISBN 979-8-89176-189-6 + +Cited by: Appendix D. +
  • +
  • Lake and Baroni (2018) +B. Lake and M. Baroni + +Generalization without systematicity: on the compositional skills of sequence-to-sequence recurrent networks. + +In International conference on machine learning, + +pp. 2873–2882. + +Cited by: §1. +
  • +
  • Lan et al. (2020) +Z. Lan, M. Chen, S. Goodman, K. Gimpel, P. Sharma, and R. Soricut + +ALBERT: a lite bert for self-supervised learning of language representations. + +In International Conference on Learning Representations, + +External Links: Link + +Cited by: Appendix D. +
  • +
  • Li et al. (2026) +Z. Li, Y. Li, and T. Zhou + +Skip a Layer or Loop It? Learning Program-of-Layers in LLMs. + +In Forty-third International Conference on Machine Learning (ICML), + +External Links: Link + +Cited by: Appendix D. +
  • +
  • [26] +I. Loshchilov and F. Hutter + +Decoupled weight decay regularization. + +In International Conference on Learning Representations, + +Cited by: Appendix C. +
  • +
  • Lu et al. (2025) +W. Lu, Y. Yang, K. Lee, Y. Li, and E. Liu + +Latent chain-of-thought? decoding the depth-recurrent transformer. + +arXiv preprint arXiv:2507.02199. + +Cited by: Appendix D. +
  • +
  • nostalgebraist (2020) +nostalgebraist + +Interpreting gpt: the logit lens. + +External Links: Link + +Cited by: §5.2. +
  • +
  • Ohio Supercomputer Center (1987) +Ohio Supercomputer Center + +Ohio supercomputer center. + + Ohio Supercomputer Center. + +External Links: Link + +Cited by: Acknowledgments. +
  • +
  • Press et al. (2023) +O. Press, M. Zhang, S. Min, L. Schmidt, N. Smith, and M. Lewis + +Measuring and narrowing the compositionality gap in language models. + +In Findings of the Association for Computational Linguistics: EMNLP 2023, H. Bouamor, J. Pino, and K. Bali (Eds.), + +Singapore, pp. 5687–5711. + +External Links: Link, +Document + +Cited by: §1. +
  • +
  • Saunshi et al. (2025) +N. Saunshi, N. Dikkala, Z. Li, S. Kumar, and S. J. Reddi + +Reasoning with latent thoughts: on the power of looped transformers. + +In The Thirteenth International Conference on Learning Representations, + +External Links: Link + +Cited by: Figure 1, +§2, +§4. +
  • +
  • Simon and Newell (1971) +H. A. Simon and A. Newell + +Human problem solving: the state of the theory in 1970.. + +American Psychologist 26, pp. 145–159. + +External Links: Link + +Cited by: Appendix D. +
  • +
  • Vaswani et al. (2017) +A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin + +Attention is all you need. + +In Advances in Neural Information Processing Systems, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.), + +Vol. 30, pp. . + +External Links: Link + +Cited by: §5.1. +
  • +
  • Wang et al. (2024a) +B. Wang, X. Yue, Y. Su, and H. Sun + +Grokking of implicit reasoning in transformers: a mechanistic journey to the edge of generalization. + +In Proceedings of the 38th International Conference on Neural Information Processing Systems, + +NIPS ’24, Red Hook, NY, USA. + +External Links: ISBN 9798331314385 + +Cited by: Appendix D, +§1, +§3.2, +§3.2, +§5.2, +§5, +§6.2. +
  • +
  • Wang et al. (2024b) +J. Wang, T. Ji, Y. Wu, H. Yan, T. Gui, Q. Zhang, X. Huang, and X. Wang + +Length generalization of causal transformers without position encoding. + +In Findings of the Association for Computational Linguistics: ACL 2024, + +pp. 14024–14040. + +Cited by: §6.1. +
  • +
  • Wei et al. (2022) +J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou, et al. + +Chain-of-thought prompting elicits reasoning in large language models. + +Advances in neural information processing systems 35, pp. 24824–24837. + +Cited by: §1. +
  • +
  • Yang et al. (2024a) +L. Yang, K. Lee, R. D. Nowak, and D. Papailiopoulos + +Looped transformers are better at learning learning algorithms. + +In The Twelfth International Conference on Learning Representations, + +External Links: Link + +Cited by: §2. +
  • +
  • Yang et al. (2024b) +S. Yang, E. Gribovskaya, N. Kassner, M. Geva, and S. Riedel + +Do large language models latently perform multi-hop reasoning?. + +In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), L. Ku, A. Martins, and V. Srikumar (Eds.), + +Bangkok, Thailand, pp. 10210–10229. + +External Links: Link, +Document + +Cited by: §1, +§3. +
  • +
  • Yao et al. (2025) +Y. Yao, Y. Du, D. Zhu, M. Hahn, and A. Koller + +Language models can learn implicit multi-hop reasoning, but only if they have lots of training data. + +In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, C. Christodoulopoulos, T. Chakraborty, C. Rose, and V. Peng (Eds.), + +Suzhou, China, pp. 9695–9713. + +External Links: Link, +ISBN 979-8-89176-332-6 + +Cited by: Appendix D, +§1, +§3.2, +§3, +§6.1, +§6.2. +
  • +
  • Zhang et al. (2019) +H. Zhang, Y. N. Dauphin, and T. Ma + +Fixup initialization: residual learning without normalization. + +External Links: 1901.09321, +Link + +Cited by: §4. +
  • +
  • Zhu et al. (2025) +R. Zhu, Z. Wang, K. Hua, T. Zhang, Z. Li, H. Que, B. Wei, Z. Wen, F. Yin, H. Xing, et al. + +Scaling latent reasoning via looped language models. + +arXiv preprint arXiv:2510.25741. + +Cited by: Appendix D, +§1, +§4. +
  • +
+
+
+

Appendix A Limitations

+ +
+

Through our paper, we evaluate vanilla and recurrent-depth transformers on a single family of implicit reasoning problems. While we cleanly isolate systematic generalization and depth exploration in compositional reasoning, we do not cover the entire range of reasoning problems relevant to modern language models (Huang and Chang, 2023). In order to maintain a controlled setting and properly study the behavior of recurrent-depth models, our experiments are intentionally small-scale and focused. This potentially limits direct extrapolation of results to modern LLMs whose performance and behavior is shaped by many additional factors like tokenizer choices, heterogeneous internet-scale data, pretraining data, post-training procedures and optimization at a much larger scale. Althought we study somewhat larger models in Appendix J, these are still significantly limited in scale relative to frontier LLMs today.

+
+
+

Additionally, our task formulation abstracts away many aspects of real-world language use. Inputs are presented in a highly structured form with dedicated entity and relation tokens with a very limited vocabulary. This removes challenges that might arise from surface-form variation, underspecification, distractor information, and distribution shift in natural language. Therefore, we do not claim complete and immediate transfer of positive results to LLMs trained with recurrent-depth at scale. However, we hope to isolate architectural effects in a controlled setting and use them to inform future designs for more robust implicit reasoning in future LLMs.

+
+
+
+

Appendix B Dataset

+ +
+

To investigate how our implicit reasoning models scale to deeper kk-hop composition tasks, we design a dataset from a permutation-based knowledge graph. In this setup, we found that models can sometimes achieve high accuracy via shortcuts rather than performing the intended multi-step traversal. For large kk, the final tail entity tt can become nearly determined by a short suffix of the relation sequence. Thus, a model may learn a shallow mapping from the trailing relations to the answer instead of retrieving the intermediate entities. To overcome this, We first construct a set of atomic facts over |E|=200|E|=200 entities and |R|=10|R|=10 relations. For each relation r∈Rr\in R, we sample a random permutation πr\pi_{r} over the entity indices and define the atomic facts as

+ + + + + + +
∀ei∈E:(ei,r,eπr​(i)).\forall e_{i}\in E:\quad(e_{i},r,e_{\pi_{r}(i)}).
+

Thus, each relation acts as a bijection over the entity set. Since the out-degree is set to d=|R|=10d=|R|=10, every entity has exactly one outgoing edge for each relation. This ensures that each relation has full coverage over entities. To generate a kk-hop example, we sample a starting atomic fact and then iteratively extend it by following outgoing edges from the current tail entity. At each step, one outgoing relation-edge pair is selected uniformly at random. Intermediate entities are used only during construction and are not included in the final training example.

+
+
+
+

Appendix C Training details and additional parameters

+ +
+

For most experiments, we use an embedding dimension of 768, 12 attention heads and a recurrent block of 4 transformer layers. However, in Appendix J we experiment with recurrent blocks of greater depth. Similarly, in Section 5.2 we compare with a vanilla transformer of larger depth (8) in our systematicity analysis. AdamW optimizer (Loshchilov and Hutter, ) with a learning rate of 10−410^{-4}, weight decay of 0.01 and a linear warmup schedule of 2000 steps is used in all of our experiments. We use a batch size of 512 and 128 for the systematicity and extrapolation experiments respectively. In our adaptive halting method, we use fixed thresholds εKL=0.01\varepsilon_{\mathrm{KL}}=0.01 and Hthresh=3.00H_{\mathrm{thresh}}=3.00, and halt recurrence when both KL(pt∥pt−1)<εKL\mathrm{KL}\!\bigl(p_{t}\,\|\,p_{t-1}\bigr)<\varepsilon_{\mathrm{KL}} and H⁡(pt)<HthreshH(p_{t})<H_{\mathrm{thresh}}.

+
+
+
+

Appendix D Other related work

+ +
+

Implicit Reasoning LLMs.

+ +
+

Weight-sharing in transformers has been used as a strategy for parameter-efficiency starting with Universal Transformers (Dehghani et al., 2019) and ALBERT (Lan et al., 2020). An earlier closely related architecture is the ladder model by Ju et al. (2022), which repeatedly applies a shared Transformer core to the full input sequence, yielding recurrence in depth. Recent work revisits this idea as a mechanism for implicit reasoning and scaling computation at inference-time. Csordás et al. (2024) introduce Mixture-of-Experts Universal Transformers (MoEUT), combining recurrent layer sharing with sparse experts to improve the parameter-compute trade-off. Recurrent-depth models trained at LLM scale such as Huginn (Geiping et al., 2025) and Ouro (Zhu et al., 2025) have shown promise and often exceed the performance of larger, non-recurrent models on popular benchmarks. Another approach to latent reasoning, Coconut (Hao et al., 2025) replaces discrete reasoning tokens with continuous hidden states, enabling reasoning in latent space rather than through explicit text similar to recurrent-depth models. Complementarily, Li et al. (2026) introduce Program-of-Layers (PoLar), a lightweight predictor that dynamically skips or repeats segments of frozen pretrained LLM layers for each input, improving reasoning accuracy often with fewer executed layers.

+
+
+
+

Studies on Implicit Reasoning in Recurrent Depth LLMs.

+ +
+

There is a growing body of work analyzing the improved performance of models through mechanisms like recurrent-depth architectures that enable reasoning in latent space. At LLM scale, Lu et al. (2025) study the internals of the Huginn-3.5B using logit lens by projecting the intermediate representations through an unembedding matrix or through the models specialized coda layers (coda-lens). They report little evidence of actual latent reasoning and inconsistencies in interpretability across recurrent blocks. Conversely, Du et al. (2025) find that trajectories of hidden states or ”latent thoughts” that lead to correct outcomes are distinguishable from those that lead to incorrect outcomes through certain metrics. The representations of correct trajectories have a higher entropy, anisotropy, and intrinsic dimension but a lower effective rank indicating that correct thinking processes carry richer information with less noise, and generate more expressive latent representations. Both works take a pretrained, generalist LLM (Huginn-3.5B) and focus on probing its latent computations.

+
+
+
+

Compositional Generalization.

+ +
+

Many recent studies have examined the performance of transformer-based language models in compositional generalization, motivated by the view that such step-by-step reasoning is central to human intelligence (Simon and Newell, 1971) and a proxy for analyzing how models can learn internal mechanisms for combining facts instead of emitting long rationales in the form of CoT. Using 3 representative tasks, Dziri et al. (2023) demonstrate that transformers reduce compositional tasks to linearized subgraph matching that fails with increasing complexity. Wang et al. (2024a) show that transformers learn implicit 2-hop compositional generalization only through ”grokking” and that even then systematicity (OOD generalization) is never observed. Kohli et al. (2025) construct a logically grounded dataset to benchmark on compositional generalization and conditional reasoning, and show that even frontier LLMs struggle on tasks of sufficient compositional complexity. Experiments by Yao et al. (2025) indicate that transformers are capable of multi-hop ID generalization but each hop requires exponentially larger amounts of data and that this issue is partially mitigated through curriculum learning. They also show that intermediate entities are retrieved layerwise and that, in order to achieve kk-hop generalization, the numbers of layers needs to grow linearly in kk. Balesni et al. (2024) finetune pretrained LLMs on synthetic or semi-synthetic composition tasks and find that the models are only able to achieve composition when the two synthetic facts co-occur in the same finetuning document or test-time prompt or when one of the hops is a natural fact in the pretraining corpus. On algorithmic compositional tasks, Csordás et al. (2022) introduce the Neural Data Router, augmenting a weight-shared Transformer with copy gates and geometric attention to learn adaptive control flow and improve generalization to longer and deeper compositions.

+
+
+
+
+

Appendix E Causal analysis of systematic generalization

+ +
+

We additionally perform a causal analysis using activation patching together with logit-lens decodability, and present the results in Figure 11. In the figure, the color shading of each node indicates decodability: for the top row, how strongly the bridge entity bb is decoded at token position r1r_{1}, and for the bottom row, how strongly the target entity tt is decoded at position r2r_{2}, across effective depth. The thickness of the curved arrows shows causal strength measured by activation patching: we corrupt the first-hop prefix (h,r1)(h,r_{1}), restore the clean activation at position r1r_{1} at a given effective depth, and measure how much the final target prediction is recovered. We use the term “causal site” in the figure to denote the layer at position r1r_{1} that exhibits the strongest causal effect under activation patching.

+
+
+
Figure 11: Bridge-mediated composition across effective depth in our systematicity setup.
+
+
+

Panel A shows that, on ID data, the bridge becomes decodable at r1r_{1} in shallow layers (layers 5), and these layers exhibit causal effects on the final answer prediction. Panel B shows that, on OOD data, the vanilla model only recovers the bridge at much deeper layers (layer 7+), and the target never becomes decodable. This suggests that the model can access the OOD first-hop rule only too late to use it for the second-hop composition. Panel C shows that the recurrent-depth model alleviates this issue: all layers in the first iteration at position r1r_{1} show causal effects on the final answer prediction, and subsequent recurrent iterations can reuse the same parametric rule to complete the second-hop composition.

+
+
+
+

Appendix F Experiments with default initialization

+ +
+

Here we report results obtained using the default Gaussian initialization for the c_proj matrices, rather than the zero-initialization described in Section 4. As observed from Figure 12, the results are mixed across training runs, and increasing recurrence does not yield a clear or consistent pattern of improved ID or OOD generalization as well as robustness to latent overthinking. Only the model trained with R=7R=7, hows strong signs of inference-time scaling and robustness to latent overthinking. In the case of the model trained with R=5R=5, there is no OOD generalization with increased recurrence at inference-time. For most of the other runs, we see performance degradation due to latent overthinking.

+
+
Refer to caption +
Figure 12: Results with default initialization for training recurrences R∈{1,…,7}R\in\{1,\dots,7\} and dynamic recurrence.
+
+
+

To further examine this instability, we train the r=5r=5 model with five different random seeds. As shown in Figure 13, the resulting behaviors vary substantially across seeds. Seed 1 is not affected by latent overthinking, but it also shows no evidence of inference-time scaling by solving harder compositional examples with increased recurrence. Seed 2 is likewise stable, but does exhibit scaling with additional recurrence. Seeds 3, 4, and 5 show varying degrees of inference-time scaling, but also experience performance degradation as recurrence increases, consistent with latent overthinking.

+
+
Refer to caption +
Figure 13: Five random-seed runs for the R=5R=5 model with default initialization.
+
+
+
+

Appendix G Experiments with larger vanilla transformers

+ +
Refer to caption +
Figure 14: Depth extrapolation with larger vanilla transformers.
+
+
+

We present additional results for larger vanilla transformers in Figure 14. Specifically, we train 8-layer, 16-layer, and 24-layer vanilla transformers using the same setup as in Section 6.1. These results show that deeper vanilla models often achieve better ID generalization and can go beyond the 2-hop or 3-hop generalization observed in the 4-layer vanilla baseline. This is consistent with prior work showing that in-distribution generalization can improve with greater depth in vanilla transformers [1]. However, their ID generalization remains weaker than recurrent-depth models with the same effective depth. More importantly, the vanilla models still do not exhibit OOD generalization to more complex samples, and they lack the flexibility to scale computation according to sample complexity in the way recurrent-depth models can.

+
+
+
+

Appendix H Additional experiments with matched-hop data

+ +
+

We provide additional extrapolation results for models with different loop iterations trained on matched-hop data in Figure 15. From top to bottom, the rows show results for models trained on data up to 8-hop, 10-hop, and 12-hop, while each column corresponds to a different training recurrence setting. The general trend is consistent with Figure 7: models trained with higher recurrence achieve stronger OOD generalization through inference-time scaling.

+
+
Refer to caption +
Figure 15: Matched-data experiments with varying train-time recurrence.
+
+
+
+

Appendix I Results with different random seeds

+ +
+

We run our fixed-recurrence models on 2 separate random seed initializations (including the run shown in Figure 5) and with to 40 recurrent iterations at inference time. On both runs, we notice the same general trend of increasing ID and OOD generalization with higher train-time recurrence as well as issues due to latent overthinking (with the sole exception being the model trained with r=8r=8 in the second run). The results are presented in Figures 16 & 17.

+
+
Refer to caption +
Figure 16: Results for Seed 1.
+
+
Refer to caption +
Figure 17: Results for Seed 2.
+
+
+

We similarly plot the performance of the dynamic recurrence model across three different seeds and observe a generally high ID generalization and OOD extrapolation. Across all seeds, the dynamic recurrence model is robust to the latent overthinking phenomenon and adaptive halting (r∗r^{*}) works reliably to stop recurrence when not necessary.

+
+
Refer to caption +
Figure 18: Dynamic recurrence with 3 difference random seed initializations.
+
+
+
+

Appendix J Extrapolation with varying model size and dynamic recurrence

+ +
+

We carry out additional experiments to study how extrapolation behavior changes with model size and with training recurrence in our dynamic recurrence setting. In addition to our default 4-layer model, we train larger models with 6 and 8 layers. We also vary the maximum recurrence used during dynamic-recurrence training, considering settings with maximum train-time recurrence of 8, 12, and 16. For these, the recurrence at each training iteration is sampled from a Poisson distribution with means 4, 6, and 8 respectively, with a minimum recurrence of 2 in all cases.

+
+
+
Figure 19: Generalization ratio with changing model size and train recurrence.
+
+
+

To summarize extrapolation under these settings, we plot the generalization ratio, defined as the maximum hop complexity to which a model can generalize with at least 60% accuracy with inference-time scaling, divided by the maximum hop complexity that the model has generalized to during training. This can be viewed as the ratio of maximum OOD generalization to maximum ID generalization. A ratio of 1 indicates no extrapolation beyond the level reached during training, while larger values indicate successful extrapolation to more complex compositions at test time.

+
+
+

Figure 19 shows that models initially begin with a ratio close to 1. In particular, when models have only generalized to 2-hop composition during training, they do not yet extrapolate to more complex samples. As training progresses and the models have seen more complex compositions through our curriculum learning setup, the ratio increases. However, across both model-size variations and different maximum train-time recurrence settings, we do not observe a clear or consistent trend indicating that either larger models or larger train-time recurrence systematically improves this ratio.

+
+
+
+

Appendix K Illusion of very deep composition through shortcuts

+ +
+

Prior to adopting the permutation-based dataset construction described in Appendix B, we observed what appeared to be very deep compositional generalization. As shown in Figure 20, models trained on ID examples up to 40 hops achieved strong OOD performance even at 80 hops for models with R=4R=4, R=8R=8, and dynamic recurrence. This indicates that the model is able to resolve multiple hops or compositions in a single layer. To inspect this closely, we perform a causal activation-patching analysis. We first select a clean 60-hop test example whose relation sequence ends in a particular suffix, and a second random example of the same hop type. We then run both examples through the model and cache their hidden states. Next, for each token position and each recurrent iteration-layer location (as well as the embedding layer), we replace the hidden state in the clean run with the corresponding hidden state from the random run, and measure the resulting change in the logit margin of the correct final answer. Figure 21 visualizes this change relative to the clean run.

+
+
Refer to caption +
Figure 20: Apparent deep compositional generalization in the pre-permutation dataset.
+
+
+

This analysis reveals that the model is not solving the full compositional chain. Instead, the strongest causal effects are concentrated on a short suffix of the relation sequence. The final tail entity can often be inferred from trailing relations alone, without explicitly retrieving the intermediate entities. The model learns a shallow mapping from a suffix of the relation sequence to the answer, rather than performing full multi-hop composition. These observations motivate the permutation-based knowledge graph introduced in Appendix B. Under that construction, each relation acts as a permutation over entities, so the correct final entity cannot be recovered from a short suffix alone, and the model must compose the full sequence of relations to solve the task.

+
+
Refer to caption +
Figure 21: Activation-patching analysis on a 60-hop example. Each cell shows the change in logit margin for the correct answer, relative to the clean run, after replacing a single hidden state in the clean example with the corresponding hidden state from a random 60-hop example. Large changes are concentrated towards the end of the relation sequence, indicating shortcut-based prediction rather than genuine multi-hop retrieval.
+
+
+
+
+
+
+ +
+

Instructions for reporting errors

+

We are continuing to improve HTML versions of papers, and your feedback helps enhance accessibility and mobile + support. To report errors in the HTML that will help us improve conversion and rendering, choose any of the + methods listed below:

+
    +
  • Click the "Report Issue" () button, located in the page header.
  • +
+

Tip: You can select the relevant text first, to include it in your report.

+

Our team has already identified the following issues. We appreciate your time reviewing and reporting rendering errors we + may not have found yet. Your efforts will help us improve the HTML versions for all readers, because disability + should not be a barrier to accessing research. Thank you for your continued support in championing open access for + all.

+

Have a free development cycle? Help support accessibility at arXiv! Our collaborators at LaTeXML maintain a list of packages that need conversion, and welcome developer contributions.

+
+
+ diff --git a/results/memory-scaling-theory-v1/sources/loop-reasoning.txt b/results/memory-scaling-theory-v1/sources/loop-reasoning.txt new file mode 100644 index 0000000000000000000000000000000000000000..a1ad4e90a8149636189899d6ee98e47fec75da5e --- /dev/null +++ b/results/memory-scaling-theory-v1/sources/loop-reasoning.txt @@ -0,0 +1,1844 @@ +Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers +Report GitHub Issue +× +Title: +Content selection saved. Describe the issue below: +Description: +Submit without GitHub +Submit in GitHub +arXiv is now an independent nonprofit! +Learn more +× +Back to arXiv +Why HTML? +Report Issue +Back to Abstract +Download PDF +Abstract +1 +Introduction +2 +Related Work +3 +Task Formulation +3.1 +Task Definition +3.2 +Generalization Challenges +Training set. +In-distribution generalization. +Systematic generalization. +Depth extrapolation. +4 +Recurrent-Depth Transformer +Model architecture. +Stopping strategies of the recurrent iterations. +5 +Systematic Generalization +5.1 +Experiment Setup +Dataset. +Model. +5.2 +Results +Recurrent-depth transformers perform systematic generalization, while vanilla transformers do not. +Systematic generalization emerges through a three-stage grokking dynamic. +Analyzing model internals with logit lens. +Grokking marks a transition from memorization to systematic generalization. +6 +Depth Extrapolation +6.1 +Experiment Setup +Curriculum training. +Dataset. +Model. +6.2 +In-Distribution Generalization +Scaling up training-time iteration increases the learnable recursion depth of looped transformers. +Phase transition from prolonged training to rapid learning. +6.3 +Depth Extrapolation +Scaling inference-time iterations unlocks depth extrapolation. +The effect of training iteration strategy on extrapolation. +Scaling inference-time iterations is limited by overthinking. +Adaptive halting improves inference efficiency. +7 +Conclusion +References +A +Limitations +B +Dataset +C +Training details and additional parameters +D +Other related work +Implicit Reasoning LLMs. +Studies on Implicit Reasoning in Recurrent Depth LLMs. +Compositional Generalization. +E +Causal analysis of systematic generalization +F +Experiments with default initialization +G +Experiments with larger vanilla transformers +H +Additional experiments with matched-hop data +I +Results with different random seeds +J +Extrapolation with varying model size and dynamic recurrence +K +Illusion of very deep composition through shortcuts +License: CC BY 4.0 +arXiv:2604.07822v2 [cs.CL] 11 Aug 2026 +Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers +Harsh Kohli +Srinivasan Parthasarathy +Huan Sun +† +† +thanks: +Equal supervision. +Yuekun Yao +1 +1 +footnotemark: +1 +Affiliation: +The Ohio State University +Email: +{kohli.120,parthasarathy.2,sun.397,yao.1267}@osu.edu +Affiliation: +[0.2em] +https://github.com/OSU-NLP-Group/Loop-Think-Generalize +Abstract +We study implicit reasoning, i.e. the ability to combine knowledge or rules within a single forward pass. +While transformer-based large language models store substantial factual knowledge and rules, they often fail to compose this knowledge for implicit multi-hop reasoning, suggesting a lack of compositional generalization over their parametric knowledge. +To address this limitation, we study recurrent-depth transformers, which enables iterative computation over the same transformer layers. +We investigate two compositional generalization challenges under the implicit reasoning scenario: +systematic generalization +, i.e. combining knowledge that is never used for compositions during training, and +depth extrapolation +, i.e. generalizing from limited reasoning depth (e.g. training on up to 5-hop) to deeper compositions (e.g. 10-hop). +Through controlled studies with models trained from scratch, we show that while vanilla transformers struggle with both generalization challenges, recurrent-depth transformers can effectively make such generalization. +For systematic generalization, we find that this ability emerges through a three-stage grokking process, transitioning from memorization to in-distribution generalization and finally to systematic generalization, supported by mechanistic analysis. +For depth extrapolation, we show that generalization beyond training depth can be unlocked by scaling inference-time recurrence, with more iterations enabling deeper reasoning. +We further study how training strategies affect extrapolation, providing guidance on training recurrent-depth transformers, and identify a key limitation, +overthinking +, where excessive recurrence degrades predictions and limits generalization to very deep compositions. +1 +Introduction +Large language models (LLMs) +( +Brown et al., 2020 +) +are known to acquire substantial factual knowledge during pretraining, storing it in their parameters +( +Geva et al., 2023 +) +. +However, how effectively this knowledge can be composed for reasoning remains less understood +( +Dziri et al., 2023 +; +Press et al., 2023 +) +. +In particular, recent work shows that transformer-based LLMs struggle under +implicit reasoning +, i.e. reasoning within a +single forward pass +without explicit chain-of-thought (CoT) +( +Wei et al., 2022 +) +. +Such failures reveal a fundamental limitation of transformers: despite storing rich knowledge, they are often unable to flexibly combine it to solve novel questions. +This limitation has important implications for generalization, as many tasks require composing multiple pieces of seen knowledge in novel ways not observed during training +( +Lake and Baroni, 2018 +; +Berglund et al., 2023 +) +. +Why do transformers struggle to combine their parametric knowledge in implicit reasoning? +Consider a query such as +“The spouse of the performer of Imagine is” +. +Previous work shows that transformers solve this by chaining two facts: first retrieving that +the performer of Imagine is John Lennon +in shallow layers, and then that +the spouse of John Lennon is Yoko Ono +in deeper layers +( +Biran et al., 2024 +; +Wang et al., 2024a +; +Yang et al., 2024b +) +. +However, since knowledge is distributed across different layers of the transformer, there is no guarantee that the fact required for a particular query can be accessed correctly. +For example, if the fact +the spouse of John Lennon is Yoko Ono +is only stored in shallow layers, deeper layers cannot access it because parameters are not shared across layers. +While transformers can be trained to learn to combine such knowledge properly +( +Wang et al., 2024a +; +Yao et al., 2025 +) +, they fail to compositionally generalize to unfamiliar combinations or deeper recursive combinations. +To address this limitation, we introduce depth-recurrence into transformers, allowing the same set of layers to be applied iteratively. The input sequence is processed multiple times by a shared transformer block, where the output of each iteration serves as input to the next. +In contrast to vanilla transformers, where knowledge is tied to specific layers, recurrence enables more flexible access to and composition of parametric knowledge within a single forward process. +Such models, known as +recurrent-depth transformers +or +looped transformers +, have recently gained attention as a promising architecture +( +Dehghani et al., 2019 +; +Geiping et al., 2025 +; +Zhu et al., 2025 +) +. +While prior work has shown that recurrent-depth transformers improve length generalization +( +Bansal et al., 2022 +; +Fan et al., 2025 +) +, it remains unclear whether they can overcome compositional generalization limitations when reasoning over parametric knowledge. +In this paper, we systematically study whether recurrent-depth transformers can compositionally combine their parametric knowledge +implicitly +. +By constructing synthetic datasets, we train models to learn implicit reasoning from scratch. Unlike LLMs trained on vast, opaque web-scale corpora, this setup provides control over the data and mitigates confounding biases introduced during pretraining. +Specifically, we characterize two challenges: +systematic generalization +(combining knowledge not used in any composition during training) and +depth extrapolation +(e.g., training on 5-hop reasoning and evaluating on 10-hop). +Our main findings are two-fold. +First, +recurrent-depth transformers exhibit strong systematic generalization, while vanilla transformers fail to do so +. +We show that this ability emerges through a sharp three-stage +grokking +process, +that transitions from memorization to in-distribution generalization, and finally to systematic generalization. +We also support this with evidence from the internal activations of models across different training stages. +Second, +recurrent-depth transformers enable depth extrapolation +, generalizing to reasoning depths beyond those observed during training, as inference-time compute (i.e., recurrent iterations) increases. +We further find that the training-time recurrence strategy plays a critical role in extrapolation performance, with dynamic recurrence achieving the strongest generalization. +Despite these gains, we identify a key limitation: recurrent-depth transformers suffer from overthinking +( +Bansal et al., 2022 +) +, which degrades performance and limits generalization to extremely deep recursions. +Figure 1: +Recurrent depth model architecture. +The transformer block is repeated +$R$ +times. The embedding layer and language model head (LM Head) have tied weights. In our experiments, we use a simple looped transformer similar to +Saunshi et al. (2025) +without design elements such as input injection, gated halting, and middle looping. +2 +Related Work +Several small-scale studies pretrain looped or recurrent-depth transformers on synthetic tasks to better understand their behavior in a controlled setting. Our work best aligns with such studies where we are able to cleanly attribute differences in performance and generalization to specific architectural choices and model design decisions. +Yang et al. (2024a) +demonstrate how ”looping” a transformer block helps to better emulate learning algorithms such as gradient descent for in-context linear regressions, 2-layer neural networks, and decision trees. +Fan et al. (2025) +show that such looped transformers offer superior length generalization on algorithmic tasks such as parity and binary addition. +Saunshi et al. (2025) +conduct a larger-scale pretraining with the 250B tokens of the Pile dataset +( +Gao et al., 2020 +) +and find that looped versions of transformer models of the same effective depth have a greater inductive bias towards reasoning at the cost of memorization and perplexity. Based on these results, they propose a regularization term that encourages certain layers to be closer to each other, thus improving the tradeoff between reasoning and fact recall. +Relative to other works, our targeted setting yields unique insights on training dynamics and model behavior. +We demonstrate how weight sharing through recurrence can solve systematic composition where vanilla transformers are known to struggle and extrapolation in multi-hop composition is possible with increased recurrence at inference-time. While +Fan et al. (2025) +propose looped architectures for length generalization, they assume an oracle number of training iterations based on sample complexity. +We believe that our setup is closer to real-world scenarios where task complexity cannot be easily estimated through heuristics (such as input length). +Without the assumption of task complexity a priori, we face distinct challenges in training our models. +We analyze how best to apply methods like recurrent-depth and common pitfalls to avoid, which can help inform more robust implicit reasoning models in the future. We discuss other related work in Appendix +D +. +3 +Task Formulation +We formally define our implicit reasoning setup using a synthetic multi-hop reasoning task, and categorize three generalization challenges under this formulation: in-distribution generalization, systematic generalization, and depth extrapolation (Figure +2 +). +The latter two can be viewed as out-of-distribution (OOD) generalization. Such tasks have been shown to be difficult for vanilla transformers to learn +( +Yao et al., 2025 +) +, highlighting their limitations in composing parametric knowledge for reasoning +( +Allen-Zhu and Li, 2023 +; +Yang et al., 2024b +) +. +3.1 +Task Definition +Figure 2: +Illustration of systematic and extrapolation generalization tasks with a sample dataset. +Our implicit reasoning task relies on a directed knowledge graph (KG) where nodes represent a set of entities +$E=\{e_{i}\}$ +and edges represent a set of relations +$R=\{r_{j}\}$ +. +The KG is composed of atomic (1-hop) facts, each taking the form of a triplet +$(h,r,t)$ +, where +$h,t\in E$ +and +$r\in R$ +(here +$h$ +and +$t$ +imply the head and tail entities, respectively). +A +$k$ +-hop inferred fact is defined as a chain of +$k$ +atomic facts connecting a head entity +$h$ +to a final tail entity +$t$ +via a sequence of +$k-1$ +intermediate entities ( +$i_{1},\dots,i_{k-1}$ +): +$(h,r_{1},i_{1}),(i_{1},r_{2},i_{2}),\dots,(i_{k-1},r_{k},t)$ +Given the head entity +$h$ +and the sequence of relations +$r_{1},\dots,r_{k}$ +, we use an auto-regressive decoder-only model to predict the final tail entity +$t$ +. +The input prefix is +$\dots$ +, and the target is +$$ +. +Ideally, the model must implicitly perform the +$k$ +-hop traversal, successively retrieving each intermediate entity ( +$i_{1},\dots,i_{k-1}$ +) until it can resolve the final tail entity +$t$ +. +3.2 +Generalization Challenges +Given a generated knowledge graph, we first define the complete atomic fact set as +$\mathcal{C}=\{(h,r,t)\}$ +, and the induced set of +$k$ +-hop inferred facts from +$\mathcal{C}$ +as +$\mathcal{I}_{k}(\mathcal{C})=\{(h,r_{1},\dots,r_{k},t)\ \mid\ \exists\ i_{1},\dots,i_{k-1},\ (h,r_{1},i_{1}),\dots,(i_{k-1},r_{k},t)\in\mathcal{C}\}.$ +Training set. +The training set includes two parts: all possible atomic facts +$\mathcal{C}$ +together with a set of inferred facts +$\mathcal{I}_{train}$ +up to a maximum depth +$k_{train}$ +(e.g. +$k$ +-hop facts with +$k\in[2,k_{train}]$ +). +To characterize different generalization challenges, we partition the atomic fact set into two disjoint subsets +$\mathcal{C}=\mathcal{C}_{ID}\cup\mathcal{C}_{OOD}$ +. +The training inferred facts +$\mathcal{I}_{train}$ +can then be defined as +$\mathcal{I}_{train}=\{(h,r_{1},\dots,r_{k},t)\ \mid\ (h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C}_{ID}),\ k\leq k_{\text{train}}\}.$ +We then define three generalization challenges: +In-distribution generalization. +The model is evaluated on inferred facts +$(h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C}_{ID})$ +that are not observed during training, equivalent to randomly sample inferred facts from +$\mathcal{I}_{k}(\mathcal{C}_{ID})$ +as held-out test set. +Despite its simplicity, previous work shows that vanilla transformers can only learn such tasks through extended training +( +Wang et al., 2024a +) +. +Systematic generalization. +The model is evaluated on inferred facts +$(h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C}_{OOD})$ +, which are induced from atomic facts that are never used in compositions in the training data. +This requires the learner to systematically combine its learned knowledge, without having seen combinations of it in training. +This setting simulates scenarios where knowledge appears only as plain text in pretraining data (e.g. long-tail knowledge), but never forms answers to reasoning queries during training. +Previous work +( +Wang et al., 2024a +) +shows that vanilla transformers completely fail on this generalization challenge. +Depth extrapolation. +The model is evaluated on inferred facts of greater depth than those included in the training dataset, i.e., +$(h,r_{1},\dots,r_{k},t)\in\mathcal{I}_{k}(\mathcal{C_{ID}})$ +with +$k$ +larger than +$k_{train}$ +. +Solving this requires the learner to infer the underlying rules of the task and iteratively apply them at depths far beyond those observed during training. +This setting simulates scenarios where the complexity (i.e. reasoning depth) of training data is limited due to budget constraints, yet we expect the model to generalize beyond training. +Such depth generalization poses challenges for vanilla transformers in symbolic +( +Kim and Linzen, 2020 +) +and knowledge reasoning +( +Yao et al., 2025 +) +. +Although related to length generalization, depth extrapolation is conceptually distinct: it measures the depth to which a model can repeatedly apply learned rules over its parametric knowledge beyond training. +4 +Recurrent-Depth Transformer +Model architecture. +Across all experiments we use a decoder-only transformer with a +recurrent-depth +design illustrated in Figure +1 +. Concretely, we instantiate a GPT-2 style block with +$L$ +layers and reuse this for +$R$ +recurrent iterations, yielding an effective rolled-out depth of +$D=L\times R$ +layers. At each recurrent iteration the same stack of layers is applied to the current hidden states. This allows the model to allocate more computation (increasing +$R$ +) at inference time without changing the architecture or re-training the parameters. We exploit this property in our inference-time scaling experiments described in Section +6 +. Formally, let +$f_{\theta}$ +denote the +$L$ +transformer layers with shared parameters +$\theta$ +, and let +$h^{(0)}$ +be the input sequence after the initial embedding layer. The model computes +$h^{(r+1)}=f_{\theta}\big(h^{(r)};m\big),\qquad r=0,\dots,R-1,$ +where +$m$ +denotes the causal attention and padding masks. The final representation +$h^{(R)}$ +is passed through a final layer normalization and a tied output projection to produce logits over the vocabulary at each position. We only supervise the next-token distribution at the final position corresponding to the tail entity +$t$ +. Each entity and relation is represented by a dedicated token ( +$$ +, +$$ +), and the query prefix is mapped to token embeddings. +We adopt a zero-initialization strategy to stabilize training under repeated application of shared weights. +Specifically, we initialize the output projection matrices ( +c_proj +) of both the multi-head attention and feed-forward blocks to zero, so that each recurrent block is an exact identity mapping at initialization. +This ensures that the input-output Jacobian remains stable even when the model is unrolled to a large number of recurrent iterations. +This design is motivated by the known instability of deep networks with shared parameters +( +Agarwala and Schoenholz, 2022 +) +, which becomes particularly pronounced in recurrent-depth transformers +( +Saunshi et al., 2025 +) +. +Following +Zhang et al. (2019) +, this initialization supports stable optimization under unbounded unrolling of the recurrent iterations. +Stopping strategies of the recurrent iterations. +Training the looped transformer requires a stopping strategy to determine the number of recurrent iterations in the forward pass on the input. +We consider two stopping strategies: +fixed iteration +and +dynamic iteration +. +Fixed iteration determines the recurrent iterations to be the same fixed value for all training instances. +The dynamic iteration strategy samples the number of recurrent iterations independently for each training batch. Concretely, for the dynamic model we sample +$R\sim\mathrm{clip}\big(\mathrm{Poisson}(\lambda),R_{\min},R_{\max}\big),$ +Unless otherwise stated, we set the hyperparameters to +$R_{\min}=2$ +and +$R_{\max}=8$ +. +Such strategies have been shown to be effective in realistic pretraining +( +Geiping et al., 2025 +; +Zhu et al., 2025 +) +, and here we adopt a simple Poisson distribution to control the sampling distribution. +Importantly, our strategies contrast with prior studies on the generalization ability of looped transformers, where the iteration number is matched to the complexity of each training instance, assuming oracle access to such complexity. +Instead, our setup reflects practical scenarios +( +Geiping et al., 2025 +) +, where the complexity is unknown and computation cannot be allocated precisely in advance. +5 +Systematic Generalization +In this section, we study systematic generalization, i.e. whether models can combine parametric knowledge not composed during training for multi-hop tasks. +We focus on +$2$ +-hop, as +Wang et al. (2024a) +shows that vanilla transformers already struggle with this simple task. +5.1 +Experiment Setup +Dataset. +We construct the dataset by instantiating a knowledge graph with +$|E|=2000$ +and +$|R|=200$ +, where each entity has average out-degree 20. +We then include all 40k atomic facts, randomly partitioned with 95% +$C_{ID}$ +, and 5% +$C_{OOD}$ +, together with 273.6k inferred facts for training. +Our in-distribution set includes 3k held-out two-hop inferred facts composed from +$C_{ID}$ +, and OOD set includes nearly 2k two-hop inferred facts composed from +$C_{OOD}$ +. +Model. +We train our looped transformer with +$L=4$ +layers, and use fixed training recurrence with +$R\in\{1,2,4,8\}$ +. +The model with +$R=1$ +is equivalent to a 4-layer vanilla transformer. +We evaluate the accuracy of the predicted token against the gold answer. +Absolute position embeddings (APE) +( +Vaswani et al., 2017 +) +are used as positional embeddings in this setup. We do not use dynamic recurrence in this setting, as systematic generalization in the 2-hop task already emerges from weight sharing under fixed recurrence. In the multi-hop setting, however, it improves extrapolation to more complex samples at inference time and helps alleviate latent overthinking, as discussed in Section +6 +. +5.2 +Results +Figure 3: +Accuracy curves for recurrent-depth models across training epochs and wall-clock time. +Left: +Test OOD accuracy for models trained with +$R\in\{1,2,4,8\}$ +, plotted against training epochs. Curves are smoothed with a 100-epoch rolling mean, with shading indicating standard deviation. +Middle: +Test OOD accuracy for the same models, plotted against training wall-clock time (hours). +Right: +Accuracy of the +$R=4$ +model on the examples from training, ID, and OOD test splits, plotted against training epochs. +Recurrent-depth transformers perform systematic generalization, while vanilla transformers do not. +On the left of Figure +3 +, we plot OOD accuracy as a function of training epochs. +We find that the vanilla transformer (i.e. +$R=1$ +) completely fails when the task requires combining unfamiliar atomic facts, while even the simplest +$R=2$ +recurrence achieves non-trivial generalization performance. +Increasing training iterations further accelerates the convergence, e.g. +$R=4$ +converges with 2k epoch, while +$R=2$ +takes 7k. This acceleration is not only in terms of training steps, but also in absolute wall-clock time (Figure +3 +, middle). +Systematic generalization emerges through a three-stage grokking dynamic. +We further analyze the training dynamics of the +$R=4$ +model (right panel of Figure +3 +) to understand how systematic generalization emerges. +We observe a three-stage dynamic: +In the first stage, the model overfits the training set, with only training accuracy improving. +In the second stage, in-distribution generalization emerges after prolonged training beyond memorization, a phenomenon referred to as +grokking +. +In the final stage, systematic generalization arises only after the model achieves near-perfect in-distribution accuracy, occurring at a much later point than training overfitting (e.g., +$10^{4}$ +vs. +$10^{2}$ +epochs). +Analyzing model internals with logit lens. +We use the logit lens technique +( +nostalgebraist, 2020 +) +to examine how models represent the bridge entity and the final target during different stages of training. After each layer and recurrent iteration, we project the intermediate hidden states through the final layer norm and language modeling head to obtain logits over the output vocabulary. For 2-hop inputs of the form +$(h,r_{1},r_{2})$ +, where +$h$ +is the head entity and +$r_{1},r_{2}$ +are the two relations, we measure at each effective depth the accuracy of predicting the bridge entity at the +$r_{1}$ +position and the target entity at the +$r_{2}$ +position. +Figure +4 +shows logits lens for an +$R=2$ +recurrent-depth model on Training, Test ID, and Test OOD splits, across checkpoints corresponding to the three training stages. +We compare against an iso-FLOP 8-layer vanilla transformer with matched effective depth. +The vanilla model exhibits only two training stages and fails to achieve non-zero systematic generalization regardless of training time, consistent with +Wang et al. (2024a) +. We also include a causal analysis for systematic generalization in Appendix +E +. +Figure 4: +Accuracy of predicting bridge and target entities using logit lens at corresponding token positions for the recurrent-depth ( +$R=2$ +) and the 8-layer vanilla transformer. +Grokking marks a transition from memorization to systematic generalization. +We first focus on the recurrent-depth model (Figure +4 +left panels), which exhibits distinct mechanisms across the three stages. +In Stage 1, the model predicts targets without reliably decoding the bridge, indicating memorization. +In Stage 2, the bridge becomes decodable, followed by correct target prediction for in-distribution data at deeper effective depths. +Only in Stage 3 does the model succeed on OOD inputs, marking a transition from rote learning to systematic composition. +In contrast, although vanilla transformers (right panels) can recover the bridge entity on Test OOD inputs, they fail to perform the second-hop reasoning, as they lack incentives to encode OOD facts in deeper layers. +6 +Depth Extrapolation +In this section, we study depth extrapolation, i.e., whether the model can perform deeper recursions when combining its parametric knowledge than those observed during training. +Figure 5: +Accuracy of recurrent-depth models on multi-hop composition, trained under various fixed and dynamic recurrence setups. The violet dash-dotted horizontal line indicates the training recurrence (or maximum in the dynamic setting), while the teal dashed vertical line marks the maximum ID generalization achieved by each model. The x-axis shows hop complexity and the y-axis shows inference-time recurrence ( +$r^{*}$ +denotes adaptive halting). +6.1 +Experiment Setup +Curriculum training. +Different from 2-hop scenarios, learning +$k$ +-hop tasks generally requires training the model with an easy-to-hard curriculum over hop depth ( +$k$ +) as suggested in +Yao et al. (2025) +. +Specifically, we start with training on atomic and 2-hop facts until an accuracy threshold ( +$95\%$ +) is reached on a held-out 2-hop test split. +Next, 3-hop data is included in the training for the next stage of our curriculum until +$95\%$ +is achieved on the held-out 3-hop test split. +This process is repeated for each hop level +$k\in\{2,\dots,N_{\max}\}$ +. +To prevent forgetting, at each stage we jointly train on all previously introduced facts (e.g., at stage +$k=5$ +we train on atomic and 2-hop through 5-hop facts). +Due to this threshold-based curriculum, training facts beyond the model’s capability are never exposed. +That is, if the model fails to achieve above-threshold accuracy on +$k$ +-hop queries, training terminates and +$(k+1)$ +-hop data is never introduced. +We define the largest such +$k$ +as the +learnable recursion depth +of the model. +Dataset. +We construct the dataset by instantiating a knowledge graph with +$|E|=200$ +entities and +$|R|=10$ +relations, where each entity has an average out-degree of 10. +We additionally impose a permutation constraint on the knowledge graph to avoid learning shortcut solutions, for which we provide details in Appendix +B +. +We pre-generate 2k atomic facts and 15k +$k$ +-hop inferred facts for each +$k\in[2,K_{max}]$ +, with +$K_{max}=40$ +. +During training, these facts are progressively introduced following the curriculum described above. +For each model, we evaluate on 750 held-out +$k$ +-hop facts. +Facts with +$k$ +up to the model’s learnable recursion depth form the in-distribution test set, while those beyond it constitute the extrapolation test set. +This split is model-dependent, reflecting each model’s maximum achievable reasoning depth. +Model. +We follow the model setups in Section +5.1 +, except that we use +$R\in$ +{1,2,3,4,5,6,7,8} for fixed iteration. +Here we use no positional embeddings (NoPE) +( +Kazemnejad et al., 2023 +; +Wang et al., 2024b +) +, which shows better generalization in pilot studies. +In addition to results with +$L=4$ +, we present results with varying model size and dynamic train recurrence in Appendix +J +, and across random seed initializations in Appendix +I +. We also experiment with larger vanilla transformer models, iso-FLOP with recurrent-depth models using +$R\in\{2,4,6\}$ +and report results in Appendix +G +. +6.2 +In-Distribution Generalization +Scaling up training-time iteration increases the learnable recursion depth of looped transformers. +Looking at the blue area of Figure +5 +, we find that increasing training recurrent iterations accordingly improves the ID generalization. +This is consistent with previous findings +( +Wang et al., 2024a +; +Yao et al., 2025 +) +that the learnable recursion depth of a transformer is bounded by the depth of its layers, +and we demonstrate that for looped transformers, scaling up training recurrent iterations can also increase its ”effective depth”, without relying on additional parameters. +Training with dynamic iteration further increases the learnable recursion depth over the fixed iteration, suggesting that the fixed iteration is not an optimal design choice. +Interestingly, more recurrent iterations do not always translate into larger learnable depth. (e.g., both R=7 and R=8 learns up to 16-hop task). +Figure 6: +Cumulative gradient updates required to first generalize to each hop complexity. +Phase transition from prolonged training to rapid learning. +We observe that models require a prolonged training phase to acquire low-hop tasks, after which they rapidly generalize to much more complex samples (Figure +6 +). +We illustrate this for the model trained with dynamic recurrence by plotting training steps against the compositional complexity achieved on in-distribution data. +This suggests that the main difficulty lies in discovering the underlying compositional rule. +Once such a rule is internalized, the model can quickly extend it to samples of much higher complexity. +In Figure +6 +we observe how the model required over 1.3 million steps for grokking up to 4-hop train samples but was quickly able to learn up to 19-hop samples very few additional steps. Beyond that, for even more complex samples, while each new hop requires additional training steps to cross the 95% threshold, the model still achieves strong generalization (>90%) on hops 20, 21, and 22 within fewer than 8k extra steps per hop which is commensurate with the steps required for each additional hop from 4 through 19. By loading a trained checkpoint (20, say) and continuing training exclusively on 21-hop samples instead of the data mix consisting of samples from all previous stages in our curriculum, generalization over 90% on the new split can be achieved in as little as 50 additional steps of training. +6.3 +Depth Extrapolation +Scaling inference-time iterations unlocks depth extrapolation. +In Figure +5 +, we observe that when using the same number of recurrent iterations as in training, all models struggle to generalize to tasks of higher complexity than those seen during training. +However, this limitation is immediately alleviated when we increase the number of inference-time iterations, with more iterations enabling generalization to progressively harder tasks. +Notably, this scaling effect only emerges for +$R>4$ +, suggesting that sufficient training-time iterations are a prerequisite for benefiting from increased inference-time computation. +The effect of training iteration strategy on extrapolation. +The above results characterize the maximum reasoning depth each model can achieve under the curriculum setting, +but they do not disentangle whether the differences (e.g. +$R=6$ +generalizing to +$17$ +-hop vs. +$R=8$ +to +$24$ +-hop) are due to more training iterations or exposure to more complex training data (e.g. +$R=6$ +is trained up to +$13$ +-hop, while +$R=8$ +up to +$16$ +-hop). +To isolate the effect of the training iteration strategy, we train all models on the same data (up to +$12$ +-hop) and evaluate extrapolation on +$12$ +– +$24$ +hop tasks. +Figure 7: +Accuracy of models trained with fixed recurrence +$R\in\{5,6,7,8\}$ +and dynamic recurrence on up to 12-hop samples. +From Figure +7 +, we first find that +among fixed-iteration models, increasing the number of training-time iterations substantially improves extrapolation when scaling inference-time iterations (e.g. +$R=6$ +extrapolates up to +$14$ +-hop, while +$R=8$ +reaches +$19$ +-hop). +Second, under the same training data, the dynamic iteration strategy achieves comparable extrapolation performance to the +$R=8$ +model (both reaching +$19$ +-hop). +This contrasts with Figure +5 +, where the dynamic strategy generalizes to significantly higher complexity than +$R=8$ +. +These results suggest that the maximum number of iterations used during training determines the extrapolation range (i.e. how far beyond the training complexity the model can generalize), while dynamic iteration effectively exploits this range, since it enables a larger learnable recursion depth. +Hence, when training data is sufficiently complex, dynamic iteration should be preferred over fixed strategies with the same maximum iteration budget. +We provide further evidence of this through matched-data experiments in Appendix +H +. +Scaling inference-time iterations is limited by overthinking. +Despite strong generalization performance, we observe performance degradation when using excessively large inference-time iterations. +For example, increasing iterations beyond 15 for the R=dynamic does not improve OOD performance (Figure +5 +), a phenomenon known as +overthinking +( +Bansal et al., 2022 +) +. +We study this along two key axes: (1) inference iterations, i.e. how increasing the inference iterations affects the model’s prediction confidence, and (2) task complexity, i.e. how increasing task complexity impacts this confidence. +Figure 8: +Average logit margin across recurrent iterations for fixed-recurrence ( +$R=6,7,8$ +) and dynamic-recurrence models. Curves show different hop complexities, and dashed vertical lines indicate the average first-hit iteration +$t^{*}$ +(when the correct entity is predicted). +In Figure +8 +, we analyze the logit margin, defined as the difference between the logit of the correct entity and that of the strongest competing token, and make two observations. +First, across all models and tasks, the margin increases with inference iterations until reaching a peak, and then consistently declines as iterations continue. +This suggests that overthinking arises as the iteration number grows, regardless of the task complexity. +Notably, the dynamic model exhibits a much slower margin decay compared to fixed-iteration models, indicating that dynamic iteration is more robust to overthinking. +Second, the peak margin decreases as task complexity increases across all models. +This implies that for more complex tasks, the model’s predictions are inherently less confident and therefore more susceptible to degradation under additional iterations. +As a result, the benefit of increasing inference iterations diminishes for highly complex tasks. +Note that although previous work mitigates overthinking by injecting inputs information in every iteration +( +Bansal et al., 2022 +; +Geiping et al., 2025 +) +, we find that such methods do not resolve the issue in implicit reasoning. +Figure 9: +Average recurrent iterations using adaptive halting vs. sample complexity. +Adaptive halting improves inference efficiency. +We flexibly halt recurrence in order to allocate compute proportionate to input complexity. +Prior work +( +Geiping et al., 2025 +) +proposes adaptive halting based on the output distribution +$p_{t}(\cdot\mid x)$ +, terminating when the change between successive iterations becomes small, measured by +$\mathrm{KL}\bigl(p_{t},|,p_{t-1}\bigr)<\varepsilon_{\mathrm{KL}}$ +. +In our setting, we find that this criterion often halts the recurrence prematurely, leading to suboptimal performance. +To address this, we additionally incorporate the entropy of the output distribution, +$H(p_{t})$ +, and only stop when both the divergence is small, and the prediction is confident, i.e., +$\mathrm{KL}\!\bigl(p_{t}\,\|\,p_{t-1}\bigr)<\varepsilon_{\mathrm{KL}}\qquad\text{and}\qquad H(p_{t})